studyStudent.vue 697 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div
  4. class="pb_content_body"
  5. style="
  6. display: flex;
  7. height: 900px;
  8. position: relative;
  9. padding: 20px 0 20px 20px;
  10. box-sizing: border-box;
  11. "
  12. >
  13. <div
  14. class="pButton"
  15. style="left: 0; top: 140px"
  16. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  17. @click="setContent2(true)"
  18. >
  19. <!-- 批 , getCourseDetail()-->
  20. <img
  21. src="../assets/icon/newIcons/isRight.png"
  22. style="width: 45px"
  23. alt=""
  24. />
  25. </div>
  26. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  27. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  28. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  29. <div class="courseTitle">
  30. <div
  31. style="
  32. max-width: calc(100% - 40px);
  33. width: auto;
  34. white-space: nowrap;
  35. overflow: hidden;
  36. text-overflow: ellipsis;
  37. word-break: break-word;
  38. display: block;
  39. "
  40. >
  41. <el-tooltip
  42. effect="light"
  43. :content="courseDetail.title"
  44. placement="top"
  45. >
  46. <div class="ctitle">
  47. {{ courseDetail.title }}
  48. </div>
  49. </el-tooltip>
  50. </div>
  51. <el-tooltip effect="light" content="收缩" placement="top">
  52. <div class="mlImg" @click="setContent2(false)">
  53. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  54. </div>
  55. </el-tooltip>
  56. </div>
  57. <div class="inviteBox" v-if="tcid && inviteCode" style="padding: 0 0 15px 0">
  58. <div>
  59. <span>随机码:{{ inviteCode }}</span>
  60. </div>
  61. </div>
  62. </div>
  63. <div class="cru_selectBox">
  64. <div
  65. style="background: #fff; margin: 10px; border-radius: 8px"
  66. v-for="(item, stageIndex) in navList"
  67. :key="stageIndex"
  68. >
  69. <div
  70. class="stageBoxCss"
  71. @click="get(stageIndex)"
  72. :class="{ stageBoxIsCss: item.isOpen }"
  73. >
  74. <div class="stageItemTitle">
  75. <div>阶段{{ stageIndex + 1 }}</div>
  76. <el-tooltip
  77. effect="light"
  78. :content="item.dyName"
  79. placement="top"
  80. >
  81. <div>
  82. {{ item.dyName }}
  83. </div>
  84. </el-tooltip>
  85. </div>
  86. <div class="closeTri" v-if="item.isOpen">
  87. <img src="../assets/icon/newIcons/downC.png" alt />
  88. </div>
  89. <div class="closeTri" v-else>
  90. <img src="../assets/icon/newIcons/right.png" alt />
  91. </div>
  92. </div>
  93. <div class="stageChild" :class="{ navActive: item.isOpen }">
  94. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  95. <div
  96. class="navItem"
  97. :class="{
  98. openTaskActive:
  99. navIndex == taskCount &&
  100. nav.id == navId &&
  101. stageIndex == courseType,
  102. }"
  103. >
  104. <div v-if="nav.tool[0].tool != undefined">
  105. <div
  106. class="closeTri1"
  107. v-if="navIndex == taskCount &&
  108. nav.id == navId &&
  109. stageIndex == courseType"
  110. @click="openTask(stageIndex, navIndex, nav.id)"
  111. >
  112. <img src="../assets/icon/newIcons/bDown.png" alt />
  113. </div>
  114. <div
  115. class="closeTri1"
  116. v-else
  117. @click="openTask(stageIndex, navIndex, nav.id)"
  118. >
  119. <img src="../assets/icon/newIcons/right.png" alt />
  120. </div>
  121. </div>
  122. <div
  123. @click="openTask(stageIndex, navIndex, nav.id)"
  124. class="navItemList"
  125. :class="{
  126. isItemList:
  127. navIndex == taskCount &&
  128. nav.id == navId &&
  129. stageIndex == courseType,
  130. }"
  131. >
  132. <div>任务{{ navIndex + 1 }}:</div>
  133. <el-tooltip
  134. effect="light"
  135. :content="nav.taskName"
  136. placement="top"
  137. >
  138. <div
  139. :style="{
  140. width:
  141. IsLookOpen && !(navIndex == taskCount &&
  142. nav.id == navId &&
  143. stageIndex == courseType)
  144. ? 'calc(100% - 75px)'
  145. : 'auto',
  146. }"
  147. >
  148. {{ nav.taskName }}
  149. </div>
  150. </el-tooltip>
  151. </div>
  152. <div class="lockTaskIcon">
  153. <img
  154. src="../assets/lock.png"
  155. v-if="IsLookOpen && !nav.isLook"
  156. alt=""
  157. />
  158. </div>
  159. </div>
  160. <div
  161. v-if="nav.tool[0].tool != undefined"
  162. class="toolChild"
  163. :class="{ toolActive: navIndex == taskCount &&
  164. nav.id == navId &&
  165. stageIndex == courseType }"
  166. >
  167. <div v-for="(t, toolIndex) in nav.tool" :key="toolIndex">
  168. <div
  169. class="gjCss"
  170. :class="{ isGjCss: t.isTool }"
  171. @click="jumpGj(stageIndex, navIndex, toolIndex)"
  172. >
  173. <div>工具{{ toolIndex + 1 }}:</div>
  174. <div v-if="t.tool == 58">模拟驾驶</div>
  175. <div v-if="t.tool == 59">路径搜索</div>
  176. <div v-if="t.tool == 60">深度学习</div>
  177. <div v-if="t.tool == 10">倒计时</div>
  178. <div v-if="t.tool == 65">挑人</div>
  179. <div v-if="t.tool == 7">思维网格</div>
  180. <div v-if="t.tool == 1">电子白板</div>
  181. <div v-if="t.tool == 52">文档</div>
  182. <div v-if="t.tool == 3">思维导图</div>
  183. <div v-if="t.tool == 48">表格</div>
  184. <div v-if="t.tool == 49">学生分组</div>
  185. <div v-if="t.tool == 4">问卷调查</div>
  186. <div v-if="t.tool == 45">选择题</div>
  187. <div v-if="t.tool == 15">问答</div>
  188. <div v-if="t.tool == 16">作业提交</div>
  189. <div v-if="t.tool == 50">批量上传</div>
  190. <div v-if="t.tool == 41">选择匹配</div>
  191. <div v-if="t.tool == 47">排序</div>
  192. <div v-if="t.tool == 40">个人评价</div>
  193. <div v-if="t.tool == 18">训练平台</div>
  194. <div v-if="t.tool == 21">AIoT Blockly</div>
  195. <div v-if="t.tool == 23">AI Python</div>
  196. <div v-if="t.tool == 24">AI Blockly</div>
  197. <div v-if="t.tool == 32">源码编辑</div>
  198. <div v-if="t.tool == 57">CocoPi</div>
  199. <div v-if="t.tool == 63">海龟编程</div>
  200. <div v-if="t.tool == 28">翻译</div>
  201. <div v-if="t.tool == 31">数字画板</div>
  202. <div v-if="t.tool == 39">GeoGebra</div>
  203. <div v-if="t.tool == 66">公式编辑</div>
  204. <div v-if="t.tool == 67">分子结构</div>
  205. <div v-if="t.tool == 68">时间轴</div>
  206. <div v-if="t.tool == 25">目标管理</div>
  207. <div v-if="t.tool == 26">课程设计</div>
  208. <div v-if="t.tool == 62">交互视频</div>
  209. </div>
  210. </div>
  211. </div>
  212. </div>
  213. </div>
  214. </div>
  215. </div>
  216. </div>
  217. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  218. <div class="new_topFixed"></div>
  219. <div class="new_top" :class="{ navLeftCss: !mlDialog }">
  220. <div class="courseIndex">
  221. <div>任务{{ taskCount + 1 }}</div>
  222. <el-tooltip
  223. effect="light"
  224. :content="
  225. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  226. "
  227. placement="top"
  228. >
  229. <div>
  230. {{
  231. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  232. .task
  233. }}
  234. </div>
  235. </el-tooltip>
  236. </div>
  237. <div class="btnAll">
  238. <div class="btnLeft">
  239. <el-tooltip effect="light" content="刷新" placement="top">
  240. <div class="reBtnIcon" @click="refreshCourse"></div>
  241. </el-tooltip>
  242. <el-tooltip effect="light" content="评论" placement="top">
  243. <div class="commentIcon" @click="setPz" v-if="tType == 1"></div>
  244. </el-tooltip>
  245. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  246. <el-tooltip effect="light" content="录制" placement="top">
  247. <div class="vedioIcon" @click="startRecording"></div>
  248. </el-tooltip>
  249. </div>
  250. <div v-else-if="tType == 1 || tType == 4">
  251. <el-tooltip effect="light" content="下载" placement="top">
  252. <div class="vedioIcon1" @click="stopRecording"></div>
  253. </el-tooltip>
  254. </div>
  255. </div>
  256. <div class="btnRight">
  257. <div
  258. class="last"
  259. @click="nextOrpreSteps(0)"
  260. v-if="!(IsFollow && tType == 2)"
  261. >
  262. <div class="lastImg">
  263. <img src="../assets/icon/newIcons/last.png" alt="" />
  264. </div>
  265. <div class="lastText">上一步</div>
  266. </div>
  267. <div
  268. class="last"
  269. @click="nextOrpreSteps(1)"
  270. v-if="!(IsFollow && tType == 2)"
  271. >
  272. <div class="lastText">下一步</div>
  273. <div class="lastImg">
  274. <img src="../assets/icon/newIcons/next.png" alt="" />
  275. </div>
  276. </div>
  277. <div class="last" @click="juriVisible = true" v-if="tType == 1">
  278. <div class="lastImg">
  279. <img src="../assets/icon/newIcons/lock.png" alt="" />
  280. </div>
  281. <div class="lastText">权限</div>
  282. </div>
  283. <div
  284. class="returnBtn1 returnIcon"
  285. @click.stop="
  286. goTo(
  287. '/courseDetail?userid=' +
  288. userid +
  289. '&oid=' +
  290. oid +
  291. '&org=' +
  292. org +
  293. '&cid=' +
  294. classId +
  295. '&courseId=' +
  296. id +
  297. '&tType=' +
  298. tType +
  299. '&screenType=' +
  300. screenType
  301. )
  302. "
  303. >
  304. <div class="lastImg">
  305. <img src="../assets/icon/newIcon/return.png" alt="" />
  306. </div>
  307. <div class="lastText" style="color: #000">返回</div>
  308. </div>
  309. </div>
  310. <!-- <div
  311. class="returnBtn lockIcon"
  312. @click="juriVisible = true"
  313. v-if="tType == 1"
  314. >
  315. 权限
  316. </div>
  317. <div
  318. class="returnBtn vedioIcon"
  319. @click="startRecording"
  320. v-if="!videoStart && (tType == 1 || tType == 4)"
  321. >
  322. 录制
  323. </div>
  324. <div
  325. class="returnBtn"
  326. @click="stopRecording"
  327. v-else-if="tType == 1 || tType == 4"
  328. style="background: #ee5255"
  329. >
  330. 下载
  331. </div>
  332. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  333. 评论
  334. </div>
  335. <div
  336. class="returnBtn"
  337. @click="nextOrpreSteps(0)"
  338. v-if="!(IsFollow && tType == 2)"
  339. >
  340. 上一步
  341. </div>
  342. <div
  343. class="returnBtn"
  344. @click="nextOrpreSteps(1)"
  345. v-if="!(IsFollow && tType == 2)"
  346. >
  347. 下一步
  348. </div>
  349. <div class="returnBtn" @click="refreshCourse">刷新</div>
  350. <div
  351. class="returnBtn returnIcon"
  352. @click.stop="
  353. goTo(
  354. '/courseDetail?userid=' +
  355. userid +
  356. '&oid=' +
  357. oid +
  358. '&org=' +
  359. org +
  360. '&cid=' +
  361. classId +
  362. '&courseId=' +
  363. id +
  364. '&tType=' +
  365. tType +
  366. '&screenType=' +
  367. screenType
  368. )
  369. "
  370. >
  371. 返回
  372. </div> -->
  373. </div>
  374. </div>
  375. <div
  376. class="isNoMessage"
  377. v-if="
  378. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  379. .chapterData.length == 0 &&
  380. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  381. .toolChoose[0].tool.length == 0 &&
  382. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  383. .taskDetail == '' &&
  384. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  385. .eList &&
  386. !(
  387. courseDetail.userid == userid ||
  388. (courseDetail.course_teacher &&
  389. courseDetail.course_teacher.indexOf(userid) != -1)
  390. )
  391. "
  392. >
  393. <img src="../assets/icon/isNoMessage.png" alt />
  394. </div>
  395. <div class="study_top" :class="{ pzClass: pzDialog }">
  396. <div
  397. class="vedioBox"
  398. v-if="
  399. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  400. .taskDetail != '' ||
  401. vChapterData[taskCount].length > 0 ||
  402. fileC[taskCount].length > 0
  403. "
  404. style="border-radius: 0 0 20px 20px"
  405. >
  406. <div
  407. class="taskBox"
  408. v-if="
  409. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  410. .taskDetail != ''
  411. "
  412. >
  413. <div
  414. style="
  415. display: flex;
  416. flex-wrap: nowrap;
  417. flex-direction: column;
  418. position: relative;
  419. "
  420. >
  421. <div
  422. style="
  423. padding: 15px 0;
  424. line-height: 29px;
  425. font-size: 18px;
  426. color: #0e1e33;
  427. "
  428. class="cont"
  429. v-if="
  430. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  431. .taskDetail != ''
  432. "
  433. v-html="
  434. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  435. .taskDetail
  436. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  437. taskCount
  438. ].taskDetail
  439. : '暂无描述'
  440. "
  441. ></div>
  442. </div>
  443. </div>
  444. <div
  445. class="student_head"
  446. v-if="
  447. vChapterData[taskCount].length > 0 ||
  448. fileC[taskCount].length > 0
  449. "
  450. >
  451. <div class="vedioTaskBox">
  452. <div
  453. :class="
  454. contentDialog == false
  455. ? 'box_course isContentCss'
  456. : 'box_course'
  457. "
  458. v-if="
  459. vChapterData.length > 0 &&
  460. vChapterData[taskCount] &&
  461. showType !== ''
  462. "
  463. >
  464. <div class="wheel" style="height: auto" v-if="showType === 0">
  465. <div
  466. class="workd_media"
  467. style="height: 650px; width: calc(100% - 50px)"
  468. >
  469. <video-player
  470. class="video-player vjs-custom-skin"
  471. :class="contentDialog == false ? 'isAllWidth' : ''"
  472. :playsinline="true"
  473. :options="playerO[taskCount]"
  474. @play="onPlayerPlay($event)"
  475. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  476. ></video-player>
  477. </div>
  478. </div>
  479. <div
  480. class="wheel"
  481. v-if="showType == 1"
  482. style="
  483. box-shadow: 0 0 6px 1px #f2f2f2;
  484. width: 95%;
  485. margin: 0 auto;
  486. background: #f1f1f1;
  487. "
  488. >
  489. <div class="title">查看文档</div>
  490. <el-form class="textBox">
  491. <el-form-item class="textTitle">
  492. <div style="font-size: 22px">
  493. {{ text.name }}
  494. </div>
  495. </el-form-item>
  496. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  497. <div v-html="text.url" class="textContent cont"></div>
  498. </el-form>
  499. </div>
  500. <div
  501. class="wheel"
  502. v-if="
  503. pptImgUrl1.indexOf(
  504. 'https://view.officeapps.live.com/op/view.aspx?src='
  505. ) != -1 && showType == 2
  506. "
  507. style="width: 95%; margin: 0 auto"
  508. >
  509. <iframe
  510. style="width: 100%; height: 100%; border: none"
  511. :src="pptImgUrl1"
  512. ></iframe>
  513. </div>
  514. <div
  515. class="wheel"
  516. v-else-if="showType == 2"
  517. style="width: 95%; margin: 0 auto"
  518. >
  519. <iframe
  520. style="width: 100%; height: 100%; border: none"
  521. security="restricted"
  522. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  523. :src="pptImgUrl1"
  524. ></iframe>
  525. </div>
  526. <div
  527. class="wheel"
  528. v-if="showType == 3"
  529. style="width: 95%; margin: 0 auto"
  530. >
  531. <pdf
  532. :pdfUrl="pptImgUrl1"
  533. style="width: 100%; height: 100%; overflow: auto"
  534. ></pdf>
  535. </div>
  536. <div
  537. class="wheel"
  538. v-if="showType == 4"
  539. style="width: 95%; margin: 0 auto"
  540. >
  541. <el-image
  542. :src="pptImgUrl1"
  543. fit="contain"
  544. style="width: 100%; height: 100%; cursor: pointer"
  545. @click="previewImg(pptImgUrl1)"
  546. ></el-image>
  547. </div>
  548. </div>
  549. <div
  550. class="pButton"
  551. style="position: absolute; right: 20px; top: 0; z-index: 998"
  552. v-if="!contentDialog"
  553. @click="setContent(true)"
  554. >
  555. <!-- 批 -->
  556. <img
  557. src="../assets/icon/newIcons/isLeft.png"
  558. style="width: 45px"
  559. alt=""
  560. />
  561. </div>
  562. <div
  563. v-if="contentDialog == true"
  564. :style="{
  565. width:
  566. (vChapterData[taskCount].length > 0 ||
  567. fileC[taskCount].length > 0) &&
  568. showType === ''
  569. ? 'calc(100%)'
  570. : '300px',
  571. margin:
  572. (vChapterData[taskCount].length > 0 ||
  573. fileC[taskCount].length > 0) &&
  574. showType === ''
  575. ? '0 15px'
  576. : '0 15px 0 0',
  577. }"
  578. >
  579. <div
  580. class="vedioList"
  581. v-if="
  582. vChapterData[taskCount].length > 0 ||
  583. fileC[taskCount].length > 0
  584. "
  585. style="height: 650px"
  586. >
  587. <div class="navCorOpenBox">
  588. <div class="navTitile">内容列表:</div>
  589. <div class="navCorOpen" @click="setContent(false)">
  590. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  591. </div>
  592. </div>
  593. <div class="navBox">
  594. <div
  595. v-show="
  596. vChapterData[taskCount].length > 0 ||
  597. fileC[taskCount].length > 0
  598. "
  599. style="padding: 10px 0 25px 0"
  600. >
  601. <div
  602. class="vedioTimeBox"
  603. v-for="(vitem, vindex) in vChapterData[taskCount]"
  604. :key="vindex + '1'"
  605. >
  606. <div class="navListItem" v-if="vitem.type == 2">
  607. <div
  608. @click="lookVedio(vitem.url, vindex)"
  609. class="navText"
  610. :class="isClickNav == vindex ? 'isClickNav' : ''"
  611. >
  612. <span v-if="vitem.text">{{ vitem.text }}-</span
  613. >{{ vitem.name }}
  614. </div>
  615. <div class="downIcon" @click="downloadFile2(vitem)">
  616. <img src="../assets/icon/newIcon/down.png" alt />
  617. </div>
  618. </div>
  619. <div class="navListItem" v-if="vitem.type == 6">
  620. <div
  621. @click="lookText(taskCount, vindex)"
  622. class="navText"
  623. :class="isClickNav == vindex ? 'isClickNav' : ''"
  624. >
  625. {{ vitem.name }}.doc
  626. </div>
  627. <div
  628. class="downIcon"
  629. @click="checkFileFull1(vitem.type, vitem)"
  630. >
  631. <img
  632. src="../assets/icon/newIcon/allScreen.png"
  633. alt
  634. />
  635. </div>
  636. </div>
  637. <div
  638. class="navListItem"
  639. v-if="vitem.type == 8 || vitem.type == 14"
  640. >
  641. <div
  642. @click="doUrl(vitem.url, vindex)"
  643. class="navText"
  644. :class="isClickNav == vindex ? 'isClickNav' : ''"
  645. >
  646. {{ vitem.title ? vitem.title : vitem.url }}
  647. </div>
  648. <div
  649. class="downIcon"
  650. @click="checkFileFull1(vitem.type, vitem)"
  651. >
  652. <img
  653. src="../assets/icon/newIcon/allScreen.png"
  654. alt
  655. />
  656. </div>
  657. </div>
  658. <div class="navListItem" v-if="vitem.type == 3">
  659. <div
  660. @click="downFile(vitem, vindex)"
  661. class="navText"
  662. :class="isClickNav == vindex ? 'isClickNav' : ''"
  663. >
  664. <span v-if="vitem.text">{{ vitem.text }}-</span
  665. >{{ vitem.name }}
  666. </div>
  667. <div class="downIcon" @click="downloadFile2(vitem)">
  668. <img src="../assets/icon/newIcon/down.png" alt />
  669. </div>
  670. <div
  671. class="downIcon"
  672. @click="checkFileFull1(vitem.type, vitem)"
  673. >
  674. <img
  675. src="../assets/icon/newIcon/allScreen.png"
  676. alt
  677. />
  678. </div>
  679. </div>
  680. <div class="navListItem" v-if="vitem.type == 12">
  681. <div class="navText" @click="downloadFile2(vitem)">
  682. <span v-if="vitem.text">{{ vitem.text }}-</span
  683. >{{ vitem.name }}
  684. </div>
  685. <div class="downIcon" @click="downloadFile2(vitem)">
  686. <img src="../assets/icon/newIcon/down.png" alt />
  687. </div>
  688. <div
  689. class="downIcon"
  690. @click="checkFileFull1(vitem.type, vitem)"
  691. >
  692. <img
  693. src="../assets/icon/newIcon/allScreen.png"
  694. alt
  695. />
  696. </div>
  697. </div>
  698. <div class="navListItem" v-if="vitem.type == 13">
  699. <div
  700. class="navText"
  701. @click="checkPhoto(vitem, vindex)"
  702. :class="isClickNav == vindex ? 'isClickNav' : ''"
  703. >
  704. {{ vitem.name }}
  705. </div>
  706. <div class="downIcon" @click="downloadFile2(vitem)">
  707. <img src="../assets/icon/newIcon/down.png" alt />
  708. </div>
  709. </div>
  710. </div>
  711. <div
  712. class="fileC_box"
  713. v-if="fileC[taskCount].length > 0"
  714. >
  715. <div class="fileC_title">以下文件不支持预览</div>
  716. <div
  717. class="vedioTimeBox"
  718. v-for="(vitem, vindex) in fileC[taskCount]"
  719. :key="vindex + '1'"
  720. >
  721. <div class="navListItem" v-if="vitem.type == 12">
  722. <div class="navText" style="color: #acb4bf">
  723. <span v-if="vitem.text">{{ vitem.text }}-</span
  724. >{{ vitem.name }}
  725. </div>
  726. <div
  727. class="downIcon"
  728. @click="downloadFile2(vitem)"
  729. >
  730. <img
  731. src="../assets/icon/newIcon/down.png"
  732. alt
  733. />
  734. </div>
  735. </div>
  736. </div>
  737. </div>
  738. </div>
  739. </div>
  740. </div>
  741. </div>
  742. </div>
  743. <div style="width: calc(100% - 315px)">
  744. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  745. <!-- <el-button
  746. type="primary"
  747. class="newButton"
  748. @click="checkFileFull(showType, pptImgUrl1)"
  749. >全屏查看</el-button
  750. >
  751. <el-button
  752. type="primary"
  753. class="newButton"
  754. @click="downloadFile(pptImgUrl1)"
  755. v-if="showType != 2"
  756. >文件下载</el-button
  757. > -->
  758. <el-button
  759. class="newButton"
  760. v-if="
  761. showType == 2 &&
  762. pptImgUrl1.indexOf(
  763. 'https://view.officeapps.live.com/op/view.aspx?src='
  764. ) == -1
  765. "
  766. type="primary"
  767. @click="openLine(pptImgUrl1)"
  768. >打开链接
  769. </el-button>
  770. </div>
  771. <!-- <div
  772. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  773. v-if="showType == 1"
  774. >
  775. <el-button
  776. type="primary"
  777. class="newButton"
  778. @click="checkFileFull(showType, text)"
  779. >全屏查看</el-button
  780. >
  781. </div> -->
  782. </div>
  783. </div>
  784. </div>
  785. <div class="student_body" v-resize="resize">
  786. <div
  787. class="vedioBox"
  788. :style="{
  789. borderRadius:
  790. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  791. .taskDetail == '' &&
  792. vChapterData[taskCount].length == 0 &&
  793. fileC[taskCount].length == 0
  794. ? '0 0 20px 20px'
  795. : '20px',
  796. }"
  797. v-if="
  798. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  799. .toolChoose[0].tool &&
  800. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  801. .toolChoose[0].tool.length > 0
  802. "
  803. >
  804. <div
  805. class="toolHeng2"
  806. style="position: relative"
  807. v-if="
  808. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  809. .toolChoose[0].tool &&
  810. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  811. .toolChoose[0].tool.length &&
  812. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  813. .toolChoose[0].tool.length > 0
  814. "
  815. >
  816. <div class="workNav">工作区</div>
  817. <div
  818. class="filebox"
  819. style="flex-wrap: nowrap"
  820. v-for="(tool, toolIndex) in chapInfoList[courseType]
  821. .chapterInfo[0].taskJson[taskCount].toolChoose"
  822. :key="toolIndex"
  823. >
  824. <div class="bzBox">
  825. <div class="yCss"></div>
  826. <div :ref="'bz' + toolIndex" :id="'gj'+toolIndex">步骤{{ toolIndex + 1 }}</div>
  827. <div
  828. v-if="timeWorkList[toolIndex].length > 0"
  829. style="margin: 0 0 0 10px"
  830. >
  831. {{
  832. timeWorkList[toolIndex][0].time
  833. ? "时间:" + timeWorkList[toolIndex][0].time
  834. : ""
  835. }}
  836. </div>
  837. </div>
  838. <div class="toolBox">
  839. <div>
  840. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  841. :key="indexTool"-->
  842. <!-- <div class="iframeBox">
  843. <div
  844. class="addPoint isBorder"
  845. v-for="(tooC, toolCIndex) in tool.tool"
  846. :key="toolCIndex"
  847. >
  848. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  849. <div
  850. class="iframeName"
  851. >
  852. 电子白板
  853. </div>
  854. <iframe
  855. src="https://iwb.cocorobo.cn/"
  856. ref="whiteBoard"
  857. ></iframe>
  858. </div>
  859. </div>
  860. </div>-->
  861. <div class="noiframeBox">
  862. <div
  863. class="addPoint"
  864. v-for="(tooC, toolCIndex) in tool.tool"
  865. :key="toolCIndex"
  866. >
  867. <div v-if="tooC == 1">
  868. <img
  869. src="../assets/icon/secondToolList/whiteBoard.png"
  870. alt
  871. @click="addTools(tooC, toolIndex, taskCount)"
  872. />
  873. <div style="margin: 5px 0">电子白板</div>
  874. </div>
  875. <div v-if="tooC == 3">
  876. <img
  877. src="../assets/icon/secondToolList/mindMapping.png"
  878. alt
  879. @click="addTools(tooC, toolIndex, taskCount)"
  880. />
  881. <div style="margin: 5px 0">思维导图</div>
  882. </div>
  883. <div v-if="tooC == 6">
  884. <img
  885. src="../assets/icon/secondToolList/doc.png"
  886. alt
  887. @click="addTools(tooC, toolIndex, taskCount)"
  888. />
  889. <div style="margin: 5px 0">协同文档</div>
  890. </div>
  891. <div v-if="tooC == 7">
  892. <img
  893. src="../assets/icon/secondToolList/mindNetwork.png"
  894. alt
  895. @click="addTools(tooC, toolIndex, taskCount)"
  896. />
  897. <div style="margin: 5px 0">思维网格</div>
  898. </div>
  899. <div v-if="tooC == 8">
  900. <img
  901. src="../assets/icon/secondToolList/library.png"
  902. alt
  903. @click="addTools(tooC, toolIndex, taskCount)"
  904. />
  905. <div style="margin: 5px 0">素材库</div>
  906. </div>
  907. <div v-if="tooC == 17">
  908. <img
  909. src="../assets/icon/secondToolList/library.png"
  910. alt
  911. @click="addTools(tooC, toolIndex, taskCount)"
  912. />
  913. <div style="margin: 5px 0">学习资料</div>
  914. </div>
  915. <div v-if="tooC == 2">
  916. <img
  917. @click="addTools(tooC, toolIndex, taskCount)"
  918. src="../assets/icon/secondToolList/note.png"
  919. alt
  920. />
  921. <div style="margin: 5px 0">便签</div>
  922. </div>
  923. <div v-if="tooC == 4">
  924. <img
  925. @click="addTools(tooC, toolIndex, taskCount)"
  926. src="../assets/icon/thirdToolList/ask.png"
  927. alt
  928. />
  929. <div style="margin: 5px 0">问卷调查</div>
  930. </div>
  931. <div v-if="tooC == 45">
  932. <img
  933. @click="addTools(tooC, toolIndex, taskCount)"
  934. src="../assets/icon/thirdToolList/choose.png"
  935. alt
  936. />
  937. <div style="margin: 5px 0">选择题</div>
  938. </div>
  939. <!-- <div v-if="tooC == 5">
  940. <img
  941. @click="addTools(tooC, toolIndex, taskCount)"
  942. src="../assets/icon/thirdToolList/score.png"
  943. alt
  944. />
  945. <div style="margin: 5px 0">量规评分</div>
  946. </div> -->
  947. <div v-if="tooC == 10">
  948. <img
  949. @click="addTools(tooC, toolIndex, taskCount)"
  950. src="../assets/icon/thirdToolList/time.png"
  951. alt
  952. />
  953. <div style="margin: 5px 0">倒计时</div>
  954. </div>
  955. <div v-if="tooC == 15">
  956. <img
  957. @click="addTools(tooC, toolIndex, taskCount)"
  958. src="../assets/icon/thirdToolList/answer.png"
  959. alt
  960. />
  961. <div style="margin: 5px 0">问答</div>
  962. </div>
  963. <div v-if="tooC == 26">
  964. <img
  965. @click="addTools(tooC, toolIndex, taskCount)"
  966. src="../assets/icon/thirdToolList/courseDesign.png"
  967. alt
  968. />
  969. <div style="margin: 5px 0">课程设计</div>
  970. </div>
  971. <div v-if="tooC == 18">
  972. <img
  973. @click="addTools(tooC, toolIndex, taskCount)"
  974. src="../assets/icon/thirdToolList/trainPlatform.png"
  975. alt
  976. />
  977. <div style="margin: 5px 0">训练服务器</div>
  978. </div>
  979. <div v-if="tooC == 16">
  980. <img
  981. @click="addTools(tooC, toolIndex, taskCount)"
  982. src="../assets/icon/thirdToolList/work.png"
  983. alt
  984. />
  985. <div style="margin: 5px 0">作业提交</div>
  986. </div>
  987. <div v-if="tooC == 50">
  988. <img
  989. @click="addTools(tooC, toolIndex, taskCount)"
  990. src="../assets/icon/thirdToolList/plwork.png"
  991. alt
  992. />
  993. <div style="margin: 5px 0">批量上传</div>
  994. </div>
  995. <div v-if="tooC == 21">
  996. <img
  997. @click="addTools(tooC, toolIndex, taskCount)"
  998. src="../assets/icon/fourthToolList/program.png"
  999. alt
  1000. />
  1001. <div style="margin: 5px 0">AIoT Blockly</div>
  1002. </div>
  1003. <!-- <div v-if="tooC == 22">
  1004. <img
  1005. @click="addTools(tooC, toolIndex, taskCount)"
  1006. src="../assets/icon/fourthToolList/program.png"
  1007. alt
  1008. />
  1009. <div style="margin: 5px 0">AI体验</div>
  1010. </div> -->
  1011. <div v-if="tooC == 23">
  1012. <img
  1013. @click="addTools(tooC, toolIndex, taskCount)"
  1014. src="../assets/icon/fourthToolList/Pythonprogram.png"
  1015. alt
  1016. />
  1017. <div style="margin: 5px 0">AI Python</div>
  1018. </div>
  1019. <div v-if="tooC == 24">
  1020. <img
  1021. @click="addTools(tooC, toolIndex, taskCount)"
  1022. src="../assets/icon/fourthToolList/AIprogram.png"
  1023. alt
  1024. />
  1025. <div style="margin: 5px 0">AI Blockly</div>
  1026. </div>
  1027. <div v-if="tooC == 25">
  1028. <img
  1029. @click="addTools(tooC, toolIndex, taskCount)"
  1030. src="../assets/icon/thirdToolList/evalua.png"
  1031. alt
  1032. />
  1033. <div style="margin: 5px 0">目标管理</div>
  1034. </div>
  1035. <div v-if="tooC == 31">
  1036. <img
  1037. @click="addTools(tooC, toolIndex, taskCount)"
  1038. src="../assets/icon/secondToolList/networkPanel.png"
  1039. alt
  1040. />
  1041. <div style="margin: 5px 0">数学画板</div>
  1042. </div>
  1043. <div v-if="tooC == 28">
  1044. <img
  1045. @click="addTools(tooC, toolIndex, taskCount)"
  1046. src="../assets/icon/secondToolList/translation.png"
  1047. alt
  1048. />
  1049. <div style="margin: 5px 0">翻译</div>
  1050. </div>
  1051. <div v-if="tooC == 37">
  1052. <img
  1053. @click="addTools(tooC, toolIndex, taskCount)"
  1054. src="../assets/icon/secondToolList/mohe.png"
  1055. alt
  1056. />
  1057. <div style="margin: 5px 0">魔盒识字</div>
  1058. </div>
  1059. <div v-if="tooC == 38">
  1060. <img
  1061. @click="addTools(tooC, toolIndex, taskCount)"
  1062. src="../assets/icon/secondToolList/24game.png"
  1063. alt
  1064. />
  1065. <div style="margin: 5px 0">24点</div>
  1066. </div>
  1067. <div v-if="tooC == 39">
  1068. <img
  1069. @click="addTools(tooC, toolIndex, taskCount)"
  1070. src="../assets/icon/secondToolList/GeoGebra.png"
  1071. alt
  1072. />
  1073. <div style="margin: 5px 0">GeoGebra</div>
  1074. </div>
  1075. <div v-if="tooC == 32">
  1076. <img
  1077. @click="addTools(tooC, toolIndex, taskCount)"
  1078. src="../assets/icon/thirdToolList/code.png"
  1079. alt
  1080. />
  1081. <div style="margin: 5px 0">源码编辑</div>
  1082. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1083. style="position: absolute;left: 110px;bottom: 30px;">
  1084. 上传文件
  1085. <input type="file" accept="*" style="display: none"
  1086. @change="beforeUpload1($event, 7, toolIndex)" />
  1087. </div> -->
  1088. </div>
  1089. <div v-if="tooC == 40">
  1090. <img
  1091. @click="addTools(tooC, toolIndex, taskCount)"
  1092. src="../assets/icon/secondToolList/eval.png"
  1093. alt
  1094. />
  1095. <div style="margin: 5px 0">个人评价</div>
  1096. </div>
  1097. <div v-if="tooC == 41">
  1098. <img
  1099. @click="addTools(tooC, toolIndex, taskCount)"
  1100. src="../assets/icon/thirdToolList/select.png"
  1101. alt
  1102. />
  1103. <div style="margin: 5px 0">选择匹配</div>
  1104. </div>
  1105. <div v-if="tooC == 44">
  1106. <img
  1107. @click="addTools(tooC, toolIndex, taskCount)"
  1108. src="../assets/icon/thirdToolList/hanClass.png"
  1109. alt
  1110. />
  1111. <div style="margin: 5px 0">汉字宫</div>
  1112. </div>
  1113. <div v-if="tooC == 47">
  1114. <img
  1115. @click="addTools(tooC, toolIndex, taskCount)"
  1116. src="../assets/icon/fourthToolList/conSentences.png"
  1117. alt
  1118. />
  1119. <div style="margin: 5px 0">排序</div>
  1120. </div>
  1121. <div v-if="tooC == 48">
  1122. <img
  1123. @click="addTools(tooC, toolIndex, taskCount)"
  1124. src="../assets/icon/fourthToolList/table.png"
  1125. alt
  1126. />
  1127. <div style="margin: 5px 0">表格</div>
  1128. </div>
  1129. <div v-if="tooC == 52">
  1130. <img
  1131. @click="addTools(tooC, toolIndex, taskCount)"
  1132. src="../assets/icon/fourthToolList/text.png"
  1133. alt
  1134. />
  1135. <div style="margin: 5px 0">文档</div>
  1136. </div>
  1137. <div v-if="tooC == 49">
  1138. <img
  1139. @click="addTools(tooC, toolIndex, taskCount)"
  1140. src="../assets/icon/fourthToolList/group.png"
  1141. alt
  1142. />
  1143. <div style="margin: 5px 0">学生分组</div>
  1144. </div>
  1145. <div v-if="tooC == 57">
  1146. <img
  1147. @click="addTools(tooC, toolIndex, taskCount)"
  1148. src="../assets/icon/fourthToolList/cocopi.png"
  1149. alt
  1150. />
  1151. <div style="margin: 5px 0">CocoPi</div>
  1152. </div>
  1153. <div v-if="tooC == 58">
  1154. <img
  1155. @click="addTools(tooC, toolIndex, taskCount)"
  1156. src="../assets/icon/fourthToolList/car.png"
  1157. alt
  1158. />
  1159. <div style="margin: 5px 0">模拟驾驶</div>
  1160. </div>
  1161. <div v-if="tooC == 59">
  1162. <img
  1163. @click="addTools(tooC, toolIndex, taskCount)"
  1164. src="../assets/icon/fourthToolList/lineSearch.png"
  1165. alt
  1166. />
  1167. <div style="margin: 5px 0">路径搜索</div>
  1168. </div>
  1169. <div v-if="tooC == 60">
  1170. <img
  1171. @click="addTools(tooC, toolIndex, taskCount)"
  1172. src="../assets/icon/fourthToolList/deepLearning.png"
  1173. alt
  1174. />
  1175. <div style="margin: 5px 0">深度学习</div>
  1176. </div>
  1177. <div v-if="tooC == 61">
  1178. <img
  1179. @click="addTools(tooC, toolIndex, taskCount)"
  1180. src="../assets/icon/fourthToolList/allHistory.png"
  1181. alt
  1182. />
  1183. <div style="margin: 5px 0">全历史</div>
  1184. </div>
  1185. <div v-if="tooC == 62">
  1186. <img
  1187. @click="addTools(tooC, toolIndex, taskCount)"
  1188. src="../assets/icon/fourthToolList/interVideo.png"
  1189. alt
  1190. />
  1191. <div style="margin: 5px 0">交互视频</div>
  1192. </div>
  1193. <div v-if="tooC == 63">
  1194. <img
  1195. @click="addTools(tooC, toolIndex, taskCount)"
  1196. src="../assets/icon/fourthToolList/Wood.png"
  1197. alt
  1198. />
  1199. <div style="margin: 5px 0">海龟编程</div>
  1200. </div>
  1201. <div v-if="tooC == 65">
  1202. <img
  1203. @click="addTools(tooC, toolIndex, taskCount)"
  1204. src="../assets/icon/firstToolList/pickPeople.png"
  1205. alt
  1206. />
  1207. <div style="margin: 5px 0">挑人</div>
  1208. </div>
  1209. <div v-if="tooC == 66">
  1210. <img
  1211. @click="addTools(tooC, toolIndex, taskCount)"
  1212. src="../assets/icon/secondToolList/formulaEdi.png"
  1213. alt
  1214. />
  1215. <div style="margin: 5px 0">公式编辑</div>
  1216. </div>
  1217. <div v-if="tooC == 67">
  1218. <img
  1219. @click="addTools(tooC, toolIndex, taskCount)"
  1220. src="../assets/icon/secondToolList/molStr.png"
  1221. alt
  1222. />
  1223. <div style="margin: 5px 0">分子结构</div>
  1224. </div>
  1225. <div v-if="tooC == 68">
  1226. <img
  1227. @click="addTools(tooC, toolIndex, taskCount)"
  1228. src="../assets/icon/secondToolList/timeAxis.png"
  1229. alt
  1230. />
  1231. <div style="margin: 5px 0">时间轴</div>
  1232. </div>
  1233. </div>
  1234. </div>
  1235. </div>
  1236. <div class="tooldetail" v-if="tool.toolDetail != ''">
  1237. <!-- <div class="toolTitle">工具描述</div> -->
  1238. <div v-html="contentConvent(tool.toolDetail)"></div>
  1239. </div>
  1240. <el-button
  1241. type="primary"
  1242. v-if="tool.tool[0] == 32"
  1243. style="position: absolute; right: 30px; top: 30px"
  1244. @click="addImg($event)"
  1245. >上传作业<input
  1246. type="file"
  1247. accept="*"
  1248. style="display: none"
  1249. @change="beforeUpload1($event, 7, toolIndex)"
  1250. /></el-button>
  1251. <el-button
  1252. type="primary"
  1253. v-if="tool.tool[0] == 15"
  1254. style="position: absolute; right: 30px; top: 30px"
  1255. @click="openWordCloud(toolIndex)"
  1256. >生成词云</el-button
  1257. >
  1258. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1259. position: absolute;
  1260. right: 30px;
  1261. transform: translateY(-130%);
  1262. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1263. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1264. </div>
  1265. <div
  1266. v-if="
  1267. tType &&
  1268. tType == 2 &&
  1269. !sIsOpen &&
  1270. tool.tool.indexOf(16) != -1
  1271. "
  1272. class="worksBox"
  1273. >
  1274. <div
  1275. class="zuoyeYulan"
  1276. v-if="workStudent[toolIndex].length > 0"
  1277. >
  1278. <span>作业预览</span>
  1279. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1280. </div>
  1281. <div
  1282. class="worksDetailBox"
  1283. v-if="workStudent[toolIndex].length > 0"
  1284. >
  1285. <div
  1286. class="works"
  1287. style="
  1288. width: 200px;
  1289. height: 140px;
  1290. margin: 10px 10px 10px 0;
  1291. box-shadow: 0 0 6px 1px #dfdada;
  1292. "
  1293. v-for="(w, wIndex) in workStudent[toolIndex]"
  1294. :key="wIndex"
  1295. >
  1296. <div class="workImg" v-if="w.type == 0">
  1297. <img
  1298. :src="w.works"
  1299. @click="previewImg(w.works)"
  1300. alt
  1301. />
  1302. <div
  1303. class="answerScore"
  1304. v-if="w.score"
  1305. @click.stop="openScore(w)"
  1306. :class="{
  1307. rightW:
  1308. w.userid == userid || tType == 1 || tType == 4,
  1309. }"
  1310. >
  1311. {{ JSON.parse(w.score).wScore }}分
  1312. </div>
  1313. <div
  1314. class="answerScore"
  1315. @click.stop="openScore(w)"
  1316. v-else-if="courseDetail.userid == userid"
  1317. :class="{
  1318. rightW:
  1319. w.userid == userid || tType == 1 || tType == 4,
  1320. }"
  1321. >
  1322. 评分
  1323. </div>
  1324. <img
  1325. class="deleteImg"
  1326. src="../assets/deleteworks.png"
  1327. v-if="
  1328. w.userid == userid || tType == 1 || tType == 4
  1329. "
  1330. @click.stop="deleteWorks(w.wid)"
  1331. alt
  1332. />
  1333. </div>
  1334. <div class="workImg" v-if="w.type == 1">
  1335. <img :src="word" @click="openFile(w.works)" alt />
  1336. <div
  1337. class="answerScore"
  1338. v-if="w.score"
  1339. @click.stop="openScore(w)"
  1340. :class="{
  1341. rightW:
  1342. w.userid == userid || tType == 1 || tType == 4,
  1343. }"
  1344. >
  1345. {{ JSON.parse(w.score).wScore }}分
  1346. </div>
  1347. <div
  1348. class="answerScore"
  1349. @click.stop="openScore(w)"
  1350. v-else-if="courseDetail.userid == userid"
  1351. :class="{
  1352. rightW:
  1353. w.userid == userid || tType == 1 || tType == 4,
  1354. }"
  1355. >
  1356. 评分
  1357. </div>
  1358. <img
  1359. class="deleteImg"
  1360. src="../assets/deleteworks.png"
  1361. v-if="
  1362. w.userid == userid || tType == 1 || tType == 4
  1363. "
  1364. @click.stop="deleteWorks(w.wid)"
  1365. alt
  1366. />
  1367. </div>
  1368. <div class="workImg" v-if="w.type == 3">
  1369. <img
  1370. style="cursor: pointer"
  1371. :src="video"
  1372. @click="openVideo(w)"
  1373. alt
  1374. />
  1375. <div
  1376. class="answerScore"
  1377. v-if="w.score"
  1378. @click.stop="openScore(w)"
  1379. :class="{
  1380. rightW:
  1381. w.userid == userid || tType == 1 || tType == 4,
  1382. }"
  1383. >
  1384. {{ JSON.parse(w.score).wScore }}分
  1385. </div>
  1386. <div
  1387. class="answerScore"
  1388. @click.stop="openScore(w)"
  1389. v-else-if="courseDetail.userid == userid"
  1390. :class="{
  1391. rightW:
  1392. w.userid == userid || tType == 1 || tType == 4,
  1393. }"
  1394. >
  1395. 评分
  1396. </div>
  1397. <img
  1398. class="deleteImg"
  1399. src="../assets/deleteworks.png"
  1400. v-if="
  1401. w.userid == userid || tType == 1 || tType == 4
  1402. "
  1403. @click.stop="deleteWorks(w.wid)"
  1404. alt
  1405. />
  1406. </div>
  1407. <div class="workImg" v-if="w.type == 12">
  1408. <img
  1409. style="cursor: pointer"
  1410. :src="word2"
  1411. @click="downloadFile(w.works)"
  1412. alt
  1413. />
  1414. <div
  1415. class="answerScore"
  1416. v-if="w.score"
  1417. @click.stop="openScore(w)"
  1418. :class="{
  1419. rightW:
  1420. w.userid == userid || tType == 1 || tType == 4,
  1421. }"
  1422. >
  1423. {{ JSON.parse(w.score).wScore }}分
  1424. </div>
  1425. <div
  1426. class="answerScore"
  1427. @click.stop="openScore(w)"
  1428. v-else-if="courseDetail.userid == userid"
  1429. :class="{
  1430. rightW:
  1431. w.userid == userid || tType == 1 || tType == 4,
  1432. }"
  1433. >
  1434. 评分
  1435. </div>
  1436. <img
  1437. class="deleteImg"
  1438. src="../assets/deleteworks.png"
  1439. v-if="
  1440. w.userid == userid || tType == 1 || tType == 4
  1441. "
  1442. @click.stop="deleteWorks(w.wid)"
  1443. alt
  1444. />
  1445. </div>
  1446. <div class="worksName">
  1447. <div>{{ w.sName }}</div>
  1448. </div>
  1449. </div>
  1450. </div>
  1451. </div>
  1452. <div
  1453. v-if="
  1454. tType &&
  1455. tType == 2 &&
  1456. !sIsOpen &&
  1457. tool.tool.indexOf(32) != -1
  1458. "
  1459. class="worksBox"
  1460. >
  1461. <div
  1462. class="zuoyeYulan"
  1463. v-if="workStudent[toolIndex].length > 0"
  1464. >
  1465. <span>作业预览</span>
  1466. </div>
  1467. <div
  1468. class="worksDetailBox"
  1469. v-if="workStudent[toolIndex].length > 0"
  1470. >
  1471. <div
  1472. class="works"
  1473. style="
  1474. width: 200px;
  1475. height: 140px;
  1476. margin: 10px 10px 10px 0;
  1477. box-shadow: 0 0 6px 1px #dfdada;
  1478. "
  1479. v-for="(w, wIndex) in workStudent[toolIndex]"
  1480. :key="wIndex"
  1481. >
  1482. <div class="workImg">
  1483. <img
  1484. :src="word2"
  1485. @click="downloadFile(w.works)"
  1486. alt
  1487. />
  1488. <div
  1489. class="answerScore"
  1490. v-if="w.score"
  1491. @click.stop="openScore(w)"
  1492. :class="{
  1493. rightW:
  1494. w.userid == userid || tType == 1 || tType == 4,
  1495. }"
  1496. >
  1497. {{ JSON.parse(w.score).wScore }}分
  1498. </div>
  1499. <div
  1500. class="answerScore"
  1501. @click.stop="openScore(w)"
  1502. v-else-if="courseDetail.userid == userid"
  1503. :class="{
  1504. rightW:
  1505. w.userid == userid || tType == 1 || tType == 4,
  1506. }"
  1507. >
  1508. 评分
  1509. </div>
  1510. <img
  1511. class="deleteImg"
  1512. src="../assets/deleteworks.png"
  1513. v-if="
  1514. w.userid == userid || tType == 1 || tType == 4
  1515. "
  1516. @click.stop="deleteWorks(w.wid)"
  1517. alt
  1518. />
  1519. </div>
  1520. <div class="worksName">
  1521. <div>{{ w.sName }}</div>
  1522. </div>
  1523. </div>
  1524. </div>
  1525. </div>
  1526. <div
  1527. v-if="
  1528. tType &&
  1529. tType == 2 &&
  1530. !sIsOpen &&
  1531. tool.tool.indexOf(57) != -1
  1532. "
  1533. class="worksBox"
  1534. >
  1535. <div
  1536. class="zuoyeYulan"
  1537. v-if="workStudent[toolIndex].length > 0"
  1538. >
  1539. <span>作业预览</span>
  1540. </div>
  1541. <div
  1542. class="worksDetailBox"
  1543. v-if="workStudent[toolIndex].length > 0"
  1544. >
  1545. <div
  1546. class="works"
  1547. style="
  1548. width: 200px;
  1549. height: 140px;
  1550. margin: 10px 10px 10px 0;
  1551. box-shadow: 0 0 6px 1px #dfdada;
  1552. "
  1553. v-for="(w, wIndex) in workStudent[toolIndex]"
  1554. :key="wIndex"
  1555. >
  1556. <div class="workImg">
  1557. <img
  1558. :src="word2"
  1559. @click="downloadFile(w.works)"
  1560. v-if="w.type == 12"
  1561. alt
  1562. />
  1563. <img
  1564. :src="word2"
  1565. @click="
  1566. openCocoPi(57, toolIndex, w.userid, w.sName)
  1567. "
  1568. v-else-if="w.type == 15"
  1569. alt
  1570. />
  1571. <div
  1572. class="answerScore"
  1573. v-if="w.score"
  1574. @click.stop="openScore(w)"
  1575. :class="{
  1576. rightW:
  1577. w.userid == userid || tType == 1 || tType == 4,
  1578. }"
  1579. >
  1580. {{ JSON.parse(w.score).wScore }}分
  1581. </div>
  1582. <div
  1583. class="answerScore"
  1584. @click.stop="openScore(w)"
  1585. v-else-if="courseDetail.userid == userid"
  1586. :class="{
  1587. rightW:
  1588. w.userid == userid || tType == 1 || tType == 4,
  1589. }"
  1590. >
  1591. 评分
  1592. </div>
  1593. <img
  1594. class="deleteImg"
  1595. src="../assets/deleteworks.png"
  1596. v-if="
  1597. w.userid == userid || tType == 1 || tType == 4
  1598. "
  1599. @click.stop="deleteWorks(w.wid)"
  1600. alt
  1601. />
  1602. </div>
  1603. <div class="worksName">
  1604. <div>{{ w.sName }}</div>
  1605. </div>
  1606. </div>
  1607. </div>
  1608. </div>
  1609. <div
  1610. v-if="
  1611. tType &&
  1612. tType == 2 &&
  1613. !sIsOpen &&
  1614. tool.tool.indexOf(4) != -1
  1615. "
  1616. class="worksBox"
  1617. >
  1618. <div
  1619. class="zuoyeYulan"
  1620. v-if="workStudent[toolIndex].length > 0"
  1621. >
  1622. <span>作业预览</span>
  1623. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1624. </div>
  1625. <div
  1626. class="worksDetailBox"
  1627. v-if="workStudent[toolIndex].length > 0"
  1628. >
  1629. <div
  1630. class="isWorksName2"
  1631. v-for="(w, wIndex) in workStudent[toolIndex]"
  1632. :key="wIndex"
  1633. @click="
  1634. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1635. "
  1636. >
  1637. {{ w.sName }}
  1638. <img
  1639. class="deleteImg deleteImg2"
  1640. src="../assets/deleteworks.png"
  1641. v-if="w.userid == userid || tType == 1 || tType == 4"
  1642. @click.stop="deleteWorks(w.wid)"
  1643. alt
  1644. />
  1645. </div>
  1646. <!-- <div
  1647. class="works"
  1648. style="
  1649. width: 200px;
  1650. height: 140px;
  1651. border-radius: 10px;
  1652. box-shadow: 0 0 6px 1px #dfdada;
  1653. overflow: hidden;
  1654. "
  1655. v-for="(w, wIndex) in workStudent[toolIndex]"
  1656. :key="wIndex"
  1657. >
  1658. <div class="workImg">
  1659. <img
  1660. src="../assets/icon/works/noImg.png"
  1661. @click="
  1662. openTools(
  1663. 4,
  1664. toolIndex,
  1665. taskCount,
  1666. w.works,
  1667. w.sName
  1668. )
  1669. "
  1670. alt
  1671. />
  1672. </div>
  1673. <div class="worksName">
  1674. <div>{{ w.sName }}</div>
  1675. <div>{{ w.time }}</div>
  1676. </div>
  1677. </div> -->
  1678. </div>
  1679. </div>
  1680. <div
  1681. v-if="
  1682. tType &&
  1683. tType == 2 &&
  1684. !sIsOpen &&
  1685. tool.tool.indexOf(45) != -1
  1686. "
  1687. class="worksBox"
  1688. >
  1689. <div
  1690. class="zuoyeYulan"
  1691. v-if="workStudent[toolIndex].length > 0"
  1692. >
  1693. <span>作业预览</span>
  1694. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1695. </div>
  1696. <div
  1697. class="worksDetailBox"
  1698. v-if="workStudent[toolIndex].length > 0"
  1699. >
  1700. <div
  1701. class="isWorksName2"
  1702. v-for="(w, wIndex) in workStudent[toolIndex]"
  1703. :key="wIndex"
  1704. @click="
  1705. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1706. "
  1707. >
  1708. {{ w.sName }}
  1709. <img
  1710. class="deleteImg deleteImg2"
  1711. src="../assets/deleteworks.png"
  1712. v-if="w.userid == userid || tType == 1 || tType == 4"
  1713. @click.stop="deleteWorks(w.wid)"
  1714. alt
  1715. />
  1716. </div>
  1717. </div>
  1718. </div>
  1719. <div
  1720. v-if="
  1721. tType &&
  1722. tType == 2 &&
  1723. !sIsOpen &&
  1724. tool.tool.indexOf(15) != -1
  1725. "
  1726. class="worksBox"
  1727. >
  1728. <div
  1729. class="zuoyeYulan"
  1730. v-if="workStudent[toolIndex].length > 0"
  1731. >
  1732. <span>作业预览</span>
  1733. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1734. </div>
  1735. <div
  1736. class="worksDetailBox"
  1737. v-if="workStudent[toolIndex].length > 0"
  1738. >
  1739. <div
  1740. class="works"
  1741. v-for="(w, wIndex) in workStudent[toolIndex]"
  1742. :key="wIndex"
  1743. >
  1744. <div class="workImg">
  1745. <!-- <img
  1746. src="../assets/icon/works/noImg.png"
  1747. @click="openTools(15, toolIndex, taskCount, w.works)"
  1748. alt=""
  1749. />-->
  1750. <div class="answerBg">
  1751. <!-- <div>{{ w.sName }}</div> -->
  1752. <el-tooltip
  1753. class="item"
  1754. effect="light"
  1755. :content="JSON.parse(w.works)[0].answer"
  1756. placement="top"
  1757. >
  1758. <div class="answerContent">
  1759. {{ JSON.parse(w.works)[0].answer }}
  1760. </div>
  1761. </el-tooltip>
  1762. <div
  1763. class="answerScore"
  1764. v-if="w.score"
  1765. @click.stop="openScore(w)"
  1766. :class="{
  1767. rightW:
  1768. w.userid == userid ||
  1769. tType == 1 ||
  1770. tType == 4,
  1771. }"
  1772. >
  1773. {{ JSON.parse(w.score).wScore }}分
  1774. </div>
  1775. <div
  1776. class="answerScore"
  1777. @click.stop="openScore(w)"
  1778. v-else-if="courseDetail.userid == userid"
  1779. :class="{
  1780. rightW:
  1781. w.userid == userid ||
  1782. tType == 1 ||
  1783. tType == 4,
  1784. }"
  1785. >
  1786. 评分
  1787. </div>
  1788. <img
  1789. class="deleteImg"
  1790. src="../assets/deleteworks.png"
  1791. v-if="
  1792. w.userid == userid || tType == 1 || tType == 4
  1793. "
  1794. @click.stop="deleteWorks(w.wid)"
  1795. alt
  1796. />
  1797. </div>
  1798. <div class="comment">
  1799. <div class="worksName">
  1800. <div>{{ w.sName }}</div>
  1801. </div>
  1802. </div>
  1803. </div>
  1804. </div>
  1805. </div>
  1806. </div>
  1807. <div
  1808. v-if="
  1809. tType &&
  1810. tType == 2 &&
  1811. !sIsOpen &&
  1812. tool.tool.indexOf(1) != -1
  1813. "
  1814. class="worksBox"
  1815. >
  1816. <div
  1817. class="zuoyeYulan"
  1818. v-if="workStudent[toolIndex].length > 0"
  1819. >
  1820. <span>作业预览</span>
  1821. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1822. </div>
  1823. <div
  1824. class="worksDetailBox"
  1825. v-if="workStudent[toolIndex].length > 0"
  1826. >
  1827. <div
  1828. class="works"
  1829. style="
  1830. width: 200px;
  1831. height: 140px;
  1832. margin: 10px 10px 10px 0;
  1833. box-shadow: 0 0 6px 1px #dfdada;
  1834. "
  1835. v-for="(w, wIndex) in workStudent[toolIndex]"
  1836. :key="wIndex"
  1837. >
  1838. <div class="workImg">
  1839. <img
  1840. :src="w.works"
  1841. @click="previewImg(w.works)"
  1842. alt
  1843. />
  1844. <div
  1845. class="answerScore"
  1846. v-if="w.score"
  1847. @click.stop="openScore(w)"
  1848. :class="{
  1849. rightW:
  1850. w.userid == userid || tType == 1 || tType == 4,
  1851. }"
  1852. >
  1853. {{ JSON.parse(w.score).wScore }}分
  1854. </div>
  1855. <div
  1856. class="answerScore"
  1857. @click.stop="openScore(w)"
  1858. v-else-if="courseDetail.userid == userid"
  1859. :class="{
  1860. rightW:
  1861. w.userid == userid || tType == 1 || tType == 4,
  1862. }"
  1863. >
  1864. 评分
  1865. </div>
  1866. <img
  1867. class="deleteImg"
  1868. src="../assets/deleteworks.png"
  1869. v-if="
  1870. w.userid == userid || tType == 1 || tType == 4
  1871. "
  1872. @click.stop="deleteWorks(w.wid)"
  1873. alt
  1874. />
  1875. </div>
  1876. <div class="worksName">
  1877. <div>{{ w.sName }}</div>
  1878. </div>
  1879. </div>
  1880. </div>
  1881. </div>
  1882. <div
  1883. v-if="
  1884. tType &&
  1885. tType == 2 &&
  1886. !sIsOpen &&
  1887. tool.tool.indexOf(3) != -1
  1888. "
  1889. class="worksBox"
  1890. >
  1891. <div
  1892. class="zuoyeYulan"
  1893. v-if="workStudent[toolIndex].length > 0"
  1894. >
  1895. <span>作业预览</span>
  1896. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1897. </div>
  1898. <div
  1899. class="worksDetailBox"
  1900. v-if="workStudent[toolIndex].length > 0"
  1901. >
  1902. <div
  1903. class="works"
  1904. style="
  1905. width: 200px;
  1906. height: 140px;
  1907. margin: 10px 10px 10px 0;
  1908. box-shadow: 0 0 6px 1px #dfdada;
  1909. "
  1910. v-for="(w, wIndex) in workStudent[toolIndex]"
  1911. :key="wIndex"
  1912. >
  1913. <div class="workImg">
  1914. <img
  1915. :src="w.works"
  1916. @click="previewImg(w.works)"
  1917. alt
  1918. />
  1919. <div
  1920. class="answerScore"
  1921. v-if="w.score"
  1922. @click.stop="openScore(w)"
  1923. :class="{
  1924. rightW:
  1925. w.userid == userid || tType == 1 || tType == 4,
  1926. }"
  1927. >
  1928. {{ JSON.parse(w.score).wScore }}分
  1929. </div>
  1930. <div
  1931. class="answerScore"
  1932. @click.stop="openScore(w)"
  1933. v-else-if="courseDetail.userid == userid"
  1934. :class="{
  1935. rightW:
  1936. w.userid == userid || tType == 1 || tType == 4,
  1937. }"
  1938. >
  1939. 评分
  1940. </div>
  1941. <img
  1942. class="deleteImg"
  1943. src="../assets/deleteworks.png"
  1944. v-if="
  1945. w.userid == userid || tType == 1 || tType == 4
  1946. "
  1947. @click.stop="deleteWorks(w.wid)"
  1948. alt
  1949. />
  1950. </div>
  1951. <div class="worksName">
  1952. <div>{{ w.sName }}</div>
  1953. </div>
  1954. </div>
  1955. </div>
  1956. </div>
  1957. <div
  1958. v-if="
  1959. tType &&
  1960. tType == 2 &&
  1961. !sIsOpen &&
  1962. tool.tool.indexOf(6) != -1
  1963. "
  1964. class="worksBox"
  1965. >
  1966. <div
  1967. class="zuoyeYulan"
  1968. v-if="workStudent[toolIndex].length > 0"
  1969. >
  1970. <span>作业预览</span>
  1971. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1972. </div>
  1973. <div
  1974. class="worksDetailBox"
  1975. v-if="workStudent[toolIndex].length > 0"
  1976. >
  1977. <div
  1978. class="works"
  1979. style="
  1980. width: 200px;
  1981. height: 140px;
  1982. margin: 10px 10px 10px 0;
  1983. box-shadow: 0 0 6px 1px #dfdada;
  1984. "
  1985. v-for="(w, wIndex) in workStudent[toolIndex]"
  1986. :key="wIndex"
  1987. >
  1988. <div class="workImg">
  1989. <img
  1990. :src="w.works"
  1991. @click="previewImg(w.works)"
  1992. alt
  1993. />
  1994. <div
  1995. class="answerScore"
  1996. v-if="w.score"
  1997. @click.stop="openScore(w)"
  1998. :class="{
  1999. rightW:
  2000. w.userid == userid || tType == 1 || tType == 4,
  2001. }"
  2002. >
  2003. {{ JSON.parse(w.score).wScore }}分
  2004. </div>
  2005. <div
  2006. class="answerScore"
  2007. @click.stop="openScore(w)"
  2008. v-else-if="courseDetail.userid == userid"
  2009. :class="{
  2010. rightW:
  2011. w.userid == userid || tType == 1 || tType == 4,
  2012. }"
  2013. >
  2014. 评分
  2015. </div>
  2016. <img
  2017. class="deleteImg"
  2018. src="../assets/deleteworks.png"
  2019. v-if="
  2020. w.userid == userid || tType == 1 || tType == 4
  2021. "
  2022. @click.stop="deleteWorks(w.wid)"
  2023. alt
  2024. />
  2025. </div>
  2026. <div class="worksName">
  2027. <div>{{ w.sName }}</div>
  2028. </div>
  2029. </div>
  2030. </div>
  2031. </div>
  2032. <div
  2033. v-if="
  2034. tType &&
  2035. tType == 2 &&
  2036. !sIsOpen &&
  2037. tool.tool.indexOf(7) != -1
  2038. "
  2039. class="worksBox"
  2040. >
  2041. <div
  2042. class="zuoyeYulan"
  2043. v-if="workStudent[toolIndex].length > 0"
  2044. >
  2045. <span>作业预览</span>
  2046. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2047. </div>
  2048. <div
  2049. class="worksDetailBox"
  2050. v-if="workStudent[toolIndex].length > 0"
  2051. >
  2052. <div
  2053. class="works"
  2054. style="
  2055. width: 200px;
  2056. height: 140px;
  2057. margin: 10px 10px 10px 0;
  2058. box-shadow: 0 0 6px 1px #dfdada;
  2059. "
  2060. v-for="(w, wIndex) in workStudent[toolIndex]"
  2061. :key="wIndex"
  2062. >
  2063. <div class="workImg">
  2064. <img
  2065. :src="w.works"
  2066. @click="previewImg(w.works)"
  2067. alt
  2068. />
  2069. <div
  2070. class="answerScore"
  2071. v-if="w.score"
  2072. @click.stop="openScore(w)"
  2073. :class="{
  2074. rightW:
  2075. w.userid == userid || tType == 1 || tType == 4,
  2076. }"
  2077. >
  2078. {{ JSON.parse(w.score).wScore }}分
  2079. </div>
  2080. <div
  2081. class="answerScore"
  2082. @click.stop="openScore(w)"
  2083. v-else-if="courseDetail.userid == userid"
  2084. :class="{
  2085. rightW:
  2086. w.userid == userid || tType == 1 || tType == 4,
  2087. }"
  2088. >
  2089. 评分
  2090. </div>
  2091. <img
  2092. class="deleteImg"
  2093. src="../assets/deleteworks.png"
  2094. v-if="
  2095. w.userid == userid || tType == 1 || tType == 4
  2096. "
  2097. @click.stop="deleteWorks(w.wid)"
  2098. alt
  2099. />
  2100. </div>
  2101. <div class="worksName">
  2102. <div>{{ w.sName }}</div>
  2103. </div>
  2104. </div>
  2105. </div>
  2106. </div>
  2107. <div
  2108. v-if="
  2109. tType &&
  2110. tType == 2 &&
  2111. !sIsOpen &&
  2112. tool.tool.indexOf(26) != -1
  2113. "
  2114. class="worksBox"
  2115. >
  2116. <div
  2117. class="zuoyeYulan"
  2118. v-if="workStudent[toolIndex].length > 0"
  2119. >
  2120. <span>作业预览</span>
  2121. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2122. </div>
  2123. <div
  2124. class="worksDetailBox"
  2125. v-if="workStudent[toolIndex].length > 0"
  2126. >
  2127. <div
  2128. class="works"
  2129. style="
  2130. width: 200px;
  2131. height: 140px;
  2132. margin: 10px 10px 10px 0;
  2133. box-shadow: 0 0 6px 1px #dfdada;
  2134. "
  2135. v-for="(w, wIndex) in workStudent[toolIndex]"
  2136. :key="wIndex"
  2137. >
  2138. <div class="workImg">
  2139. <img
  2140. :src="w.works"
  2141. @click="previewImg(w.works)"
  2142. alt
  2143. />
  2144. <img
  2145. class="deleteImg"
  2146. src="../assets/deleteworks.png"
  2147. v-if="
  2148. w.userid == userid || tType == 1 || tType == 4
  2149. "
  2150. @click.stop="deleteWorks(w.wid)"
  2151. alt
  2152. />
  2153. </div>
  2154. <div class="worksName">
  2155. <div>{{ w.sName }}</div>
  2156. </div>
  2157. </div>
  2158. </div>
  2159. </div>
  2160. <div
  2161. v-if="
  2162. tType &&
  2163. ((tType == 2 && sIsOpen == true) ||
  2164. tType == 1 ||
  2165. tType == 4) &&
  2166. tool.tool.indexOf(16) != -1
  2167. "
  2168. class="worksBox"
  2169. >
  2170. <div
  2171. class="zuoyeYulan"
  2172. v-if="
  2173. worksStudent.length &&
  2174. worksStudent[toolIndex].length > 0
  2175. "
  2176. >
  2177. <div class="worksTop">
  2178. <div>作业预览</div>
  2179. <div
  2180. class="corOpen"
  2181. @click="contract(toolIndex)"
  2182. v-if="
  2183. worksStudent[toolIndex].length > 6 &&
  2184. isCloseList[toolIndex].isClose == 0
  2185. "
  2186. >
  2187. 收缩
  2188. </div>
  2189. <div
  2190. class="corOpen"
  2191. @click="contract(toolIndex)"
  2192. v-if="isCloseList[toolIndex].isClose == 1"
  2193. >
  2194. 展开
  2195. </div>
  2196. </div>
  2197. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2198. </div>
  2199. <div
  2200. class="group_workBox"
  2201. v-for="(g, gindex) in courseGroup.group"
  2202. :key="gindex"
  2203. >
  2204. <div class="group_box">
  2205. <div class="group_title">
  2206. <el-tooltip
  2207. class="item"
  2208. effect="light"
  2209. :content="g.name"
  2210. placement="top"
  2211. >
  2212. <div class="group_name">{{ g.name }}</div>
  2213. </el-tooltip>
  2214. </div>
  2215. <div
  2216. class="group_work"
  2217. v-if="
  2218. g.works &&
  2219. g.works.length &&
  2220. g.works[toolIndex].length
  2221. "
  2222. >
  2223. <div
  2224. class="works"
  2225. style="
  2226. width: 200px;
  2227. height: 140px;
  2228. margin: 10px 10px 10px 0;
  2229. border-radius: 15px;
  2230. box-shadow: 0 0 6px 1px #dfdada;
  2231. "
  2232. v-for="(w, wIndex) in g.works[toolIndex]"
  2233. :key="wIndex"
  2234. :class="w.type == 1 ? 'isTypeOne' : ''"
  2235. >
  2236. <div class="workImg" v-if="w.type == 0">
  2237. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2238. <img
  2239. :src="w.works"
  2240. @click="previewImg(w.works)"
  2241. alt
  2242. />
  2243. <div
  2244. class="answerScore"
  2245. v-if="w.score"
  2246. @click.stop="openScore(w)"
  2247. :class="{
  2248. rightW:
  2249. w.userid == userid ||
  2250. tType == 1 ||
  2251. tType == 4 ||
  2252. w.ateacher == userid,
  2253. }"
  2254. >
  2255. {{ JSON.parse(w.score).wScore }}分
  2256. </div>
  2257. <div
  2258. class="answerScore"
  2259. @click.stop="openScore(w)"
  2260. v-else-if="courseDetail.userid == userid"
  2261. :class="{
  2262. rightW:
  2263. w.userid == userid ||
  2264. tType == 1 ||
  2265. tType == 4 ||
  2266. w.ateacher == userid,
  2267. }"
  2268. >
  2269. 评分
  2270. </div>
  2271. <img
  2272. class="deleteImg"
  2273. src="../assets/deleteworks.png"
  2274. v-if="
  2275. w.userid == userid || tType == 1 || tType == 4
  2276. "
  2277. @click.stop="deleteWorks(w.wid)"
  2278. alt
  2279. />
  2280. </div>
  2281. <div class="workImg" v-if="w.type == 1">
  2282. <img :src="word" @click="openFile(w.works)" alt />
  2283. <!-- @click="openFile(w.works)" -->
  2284. <div
  2285. class="answerScore"
  2286. v-if="w.score"
  2287. @click.stop="openScore(w)"
  2288. :class="{
  2289. rightW:
  2290. w.userid == userid ||
  2291. tType == 1 ||
  2292. tType == 4 ||
  2293. w.ateacher == userid,
  2294. }"
  2295. >
  2296. {{ JSON.parse(w.score).wScore }}分
  2297. </div>
  2298. <div
  2299. class="answerScore"
  2300. @click.stop="openScore(w)"
  2301. v-else-if="courseDetail.userid == userid"
  2302. :class="{
  2303. rightW:
  2304. w.userid == userid ||
  2305. tType == 1 ||
  2306. tType == 4 ||
  2307. w.ateacher == userid,
  2308. }"
  2309. >
  2310. 评分
  2311. </div>
  2312. <img
  2313. class="deleteImg"
  2314. src="../assets/deleteworks.png"
  2315. v-if="
  2316. w.userid == userid || tType == 1 || tType == 4
  2317. "
  2318. @click.stop="deleteWorks(w.wid)"
  2319. alt
  2320. />
  2321. </div>
  2322. <div class="workImg" v-if="w.type == 3">
  2323. <img
  2324. style="cursor: pointer"
  2325. :src="video"
  2326. @click="openVideo(w)"
  2327. alt
  2328. />
  2329. <!-- @click="openVideo(w.works)" -->
  2330. <div
  2331. class="answerScore"
  2332. v-if="w.score"
  2333. @click.stop="openScore(w)"
  2334. :class="{
  2335. rightW:
  2336. w.userid == userid ||
  2337. tType == 1 ||
  2338. tType == 4 ||
  2339. w.ateacher == userid,
  2340. }"
  2341. >
  2342. {{ JSON.parse(w.score).wScore }}分
  2343. </div>
  2344. <div
  2345. class="answerScore"
  2346. @click.stop="openScore(w)"
  2347. v-else-if="courseDetail.userid == userid"
  2348. :class="{
  2349. rightW:
  2350. w.userid == userid ||
  2351. tType == 1 ||
  2352. tType == 4 ||
  2353. w.ateacher == userid,
  2354. }"
  2355. >
  2356. 评分
  2357. </div>
  2358. <img
  2359. class="deleteImg"
  2360. src="../assets/deleteworks.png"
  2361. v-if="
  2362. w.userid == userid || tType == 1 || tType == 4
  2363. "
  2364. @click.stop="deleteWorks(w.wid)"
  2365. alt
  2366. />
  2367. </div>
  2368. <div class="workImg" v-if="w.type == 12">
  2369. <img
  2370. style="cursor: pointer"
  2371. :src="word2"
  2372. @click="downloadFile(w.works)"
  2373. alt
  2374. />
  2375. <!-- @click="openVideo(w.works)" -->
  2376. <div
  2377. class="answerScore"
  2378. v-if="w.score"
  2379. @click.stop="openScore(w)"
  2380. :class="{
  2381. rightW:
  2382. w.userid == userid ||
  2383. tType == 1 ||
  2384. tType == 4 ||
  2385. w.ateacher == userid,
  2386. }"
  2387. >
  2388. {{ JSON.parse(w.score).wScore }}分
  2389. </div>
  2390. <div
  2391. class="answerScore"
  2392. @click.stop="openScore(w)"
  2393. v-else-if="courseDetail.userid == userid"
  2394. :class="{
  2395. rightW:
  2396. w.userid == userid ||
  2397. tType == 1 ||
  2398. tType == 4 ||
  2399. w.ateacher == userid,
  2400. }"
  2401. >
  2402. 评分
  2403. </div>
  2404. <img
  2405. class="deleteImg"
  2406. src="../assets/deleteworks.png"
  2407. v-if="
  2408. w.userid == userid || tType == 1 || tType == 4
  2409. "
  2410. @click.stop="deleteWorks(w.wid)"
  2411. alt
  2412. />
  2413. </div>
  2414. <div class="comment" style="min-width: 200px">
  2415. <div class="worksName">
  2416. <div>{{ w.sName }}</div>
  2417. </div>
  2418. <div class="commentList">
  2419. <div class="commentList">
  2420. <div
  2421. class="commentImg"
  2422. @click="
  2423. isLikes(w.wid, userid, 1, null, w.isLikes)
  2424. "
  2425. >
  2426. <img
  2427. :src="w.isLikes == true ? likes : noLikes"
  2428. alt=""
  2429. />
  2430. </div>
  2431. <div>{{ w.likesCount }}</div>
  2432. </div>
  2433. <div
  2434. class="commentList"
  2435. style="margin-right: 15px"
  2436. >
  2437. <div
  2438. class="commentImg"
  2439. @click="
  2440. commentOther(
  2441. w,
  2442. toolIndex,
  2443. wIndex,
  2444. null,
  2445. g.id
  2446. )
  2447. "
  2448. >
  2449. <img
  2450. src="../assets/icon/comment/comment.png"
  2451. alt=""
  2452. />
  2453. </div>
  2454. <div>{{ w.commentCount }}</div>
  2455. </div>
  2456. </div>
  2457. </div>
  2458. </div>
  2459. </div>
  2460. <div class="group_work" v-else>暂无提交作业</div>
  2461. </div>
  2462. </div>
  2463. <div
  2464. class="worksDetailBox"
  2465. v-if="
  2466. worksStudent.length &&
  2467. worksStudent[toolIndex].length > 0
  2468. "
  2469. >
  2470. <div
  2471. class="works"
  2472. style="
  2473. width: 200px;
  2474. height: 140px;
  2475. margin: 10px 10px 10px 0;
  2476. border-radius: 15px;
  2477. box-shadow: 0 0 6px 1px #dfdada;
  2478. "
  2479. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2480. 0
  2481. ? worksStudent[toolIndex]
  2482. : worksStudent[toolIndex].slice(0, 6)"
  2483. :key="wIndex"
  2484. :class="w.type == 1 ? 'isTypeOne' : ''"
  2485. >
  2486. <div class="workImg" v-if="w.type == 0">
  2487. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2488. <img
  2489. :src="w.works"
  2490. @click="previewImg(w.works)"
  2491. alt
  2492. />
  2493. <div
  2494. class="answerScore"
  2495. v-if="w.score"
  2496. @click.stop="openScore(w)"
  2497. :class="{
  2498. rightW:
  2499. w.userid == userid ||
  2500. tType == 1 ||
  2501. tType == 4 ||
  2502. w.ateacher == userid,
  2503. }"
  2504. >
  2505. {{ JSON.parse(w.score).wScore }}分
  2506. </div>
  2507. <div
  2508. class="answerScore"
  2509. @click.stop="openScore(w)"
  2510. v-else-if="courseDetail.userid == userid"
  2511. :class="{
  2512. rightW:
  2513. w.userid == userid ||
  2514. tType == 1 ||
  2515. tType == 4 ||
  2516. w.ateacher == userid,
  2517. }"
  2518. >
  2519. 评分
  2520. </div>
  2521. <img
  2522. class="deleteImg"
  2523. src="../assets/deleteworks.png"
  2524. v-if="
  2525. w.userid == userid || tType == 1 || tType == 4
  2526. "
  2527. @click.stop="deleteWorks(w.wid)"
  2528. alt
  2529. />
  2530. </div>
  2531. <div class="workImg" v-if="w.type == 1">
  2532. <img :src="word" @click="openFile(w.works)" alt />
  2533. <!-- @click="openFile(w.works)" -->
  2534. <div
  2535. class="answerScore"
  2536. v-if="w.score"
  2537. @click.stop="openScore(w)"
  2538. :class="{
  2539. rightW:
  2540. w.userid == userid ||
  2541. tType == 1 ||
  2542. tType == 4 ||
  2543. w.ateacher == userid,
  2544. }"
  2545. >
  2546. {{ JSON.parse(w.score).wScore }}分
  2547. </div>
  2548. <div
  2549. class="answerScore"
  2550. @click.stop="openScore(w)"
  2551. v-else-if="courseDetail.userid == userid"
  2552. :class="{
  2553. rightW:
  2554. w.userid == userid ||
  2555. tType == 1 ||
  2556. tType == 4 ||
  2557. w.ateacher == userid,
  2558. }"
  2559. >
  2560. 评分
  2561. </div>
  2562. <img
  2563. class="deleteImg"
  2564. src="../assets/deleteworks.png"
  2565. v-if="
  2566. w.userid == userid || tType == 1 || tType == 4
  2567. "
  2568. @click.stop="deleteWorks(w.wid)"
  2569. alt
  2570. />
  2571. </div>
  2572. <div class="workImg" v-if="w.type == 3">
  2573. <img
  2574. style="cursor: pointer"
  2575. :src="video"
  2576. @click="openVideo(w)"
  2577. alt
  2578. />
  2579. <!-- @click="openVideo(w.works)" -->
  2580. <div
  2581. class="answerScore"
  2582. v-if="w.score"
  2583. @click.stop="openScore(w)"
  2584. :class="{
  2585. rightW:
  2586. w.userid == userid ||
  2587. tType == 1 ||
  2588. tType == 4 ||
  2589. w.ateacher == userid,
  2590. }"
  2591. >
  2592. {{ JSON.parse(w.score).wScore }}分
  2593. </div>
  2594. <div
  2595. class="answerScore"
  2596. @click.stop="openScore(w)"
  2597. v-else-if="courseDetail.userid == userid"
  2598. :class="{
  2599. rightW:
  2600. w.userid == userid ||
  2601. tType == 1 ||
  2602. tType == 4 ||
  2603. w.ateacher == userid,
  2604. }"
  2605. >
  2606. 评分
  2607. </div>
  2608. <img
  2609. class="deleteImg"
  2610. src="../assets/deleteworks.png"
  2611. v-if="
  2612. w.userid == userid || tType == 1 || tType == 4
  2613. "
  2614. @click.stop="deleteWorks(w.wid)"
  2615. alt
  2616. />
  2617. </div>
  2618. <div class="workImg" v-if="w.type == 12">
  2619. <img
  2620. style="cursor: pointer"
  2621. :src="word2"
  2622. @click="downloadFile(w.works)"
  2623. alt
  2624. />
  2625. <!-- @click="openVideo(w.works)" -->
  2626. <div
  2627. class="answerScore"
  2628. v-if="w.score"
  2629. @click.stop="openScore(w)"
  2630. :class="{
  2631. rightW:
  2632. w.userid == userid ||
  2633. tType == 1 ||
  2634. tType == 4 ||
  2635. w.ateacher == userid,
  2636. }"
  2637. >
  2638. {{ JSON.parse(w.score).wScore }}分
  2639. </div>
  2640. <div
  2641. class="answerScore"
  2642. @click.stop="openScore(w)"
  2643. v-else-if="courseDetail.userid == userid"
  2644. :class="{
  2645. rightW:
  2646. w.userid == userid ||
  2647. tType == 1 ||
  2648. tType == 4 ||
  2649. w.ateacher == userid,
  2650. }"
  2651. >
  2652. 评分
  2653. </div>
  2654. <img
  2655. class="deleteImg"
  2656. src="../assets/deleteworks.png"
  2657. v-if="
  2658. w.userid == userid || tType == 1 || tType == 4
  2659. "
  2660. @click.stop="deleteWorks(w.wid)"
  2661. alt
  2662. />
  2663. </div>
  2664. <div class="comment" style="min-width: 200px">
  2665. <div class="worksName">
  2666. <div>{{ w.sName }}</div>
  2667. </div>
  2668. <div class="commentList">
  2669. <div class="commentList">
  2670. <div
  2671. class="commentImg"
  2672. @click="
  2673. isLikes(w.wid, userid, 1, null, w.isLikes)
  2674. "
  2675. >
  2676. <img
  2677. :src="w.isLikes == true ? likes : noLikes"
  2678. alt=""
  2679. />
  2680. </div>
  2681. <div>{{ w.likesCount }}</div>
  2682. </div>
  2683. <div class="commentList" style="margin-right: 15px">
  2684. <div
  2685. class="commentImg"
  2686. @click="commentOther(w, toolIndex, wIndex)"
  2687. >
  2688. <img
  2689. src="../assets/icon/comment/comment.png"
  2690. alt=""
  2691. />
  2692. </div>
  2693. <div>{{ w.commentCount }}</div>
  2694. </div>
  2695. </div>
  2696. </div>
  2697. </div>
  2698. </div>
  2699. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2700. 未提交
  2701. </div>
  2702. <div
  2703. class="noWorksS"
  2704. v-if="noWorksS && noWorksS[toolIndex].length"
  2705. >
  2706. <div
  2707. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2708. :key="sIndex"
  2709. class="noWorksName"
  2710. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  2711. >
  2712. {{ s.student }}
  2713. </div>
  2714. </div>
  2715. </div>
  2716. <div
  2717. v-if="
  2718. tType &&
  2719. ((tType == 2 && sIsOpen == true) ||
  2720. tType == 1 ||
  2721. tType == 4) &&
  2722. tool.tool.indexOf(32) != -1
  2723. "
  2724. class="worksBox"
  2725. >
  2726. <div
  2727. class="zuoyeYulan"
  2728. v-if="
  2729. worksStudent.length &&
  2730. worksStudent[toolIndex].length > 0
  2731. "
  2732. >
  2733. <div class="worksTop">
  2734. <div>作业预览</div>
  2735. <div
  2736. class="corOpen"
  2737. @click="contract(toolIndex)"
  2738. v-if="
  2739. worksStudent[toolIndex].length > 6 &&
  2740. isCloseList[toolIndex].isClose == 0
  2741. "
  2742. >
  2743. 收缩
  2744. </div>
  2745. <div
  2746. class="corOpen"
  2747. @click="contract(toolIndex)"
  2748. v-if="isCloseList[toolIndex].isClose == 1"
  2749. >
  2750. 展开
  2751. </div>
  2752. </div>
  2753. </div>
  2754. <div
  2755. class="worksDetailBox"
  2756. v-if="
  2757. worksStudent.length &&
  2758. worksStudent[toolIndex].length > 0
  2759. "
  2760. >
  2761. <div
  2762. class="works"
  2763. style="
  2764. width: 200px;
  2765. height: 140px;
  2766. margin: 10px 10px 10px 0;
  2767. border-radius: 15px;
  2768. box-shadow: 0 0 6px 1px #dfdada;
  2769. "
  2770. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2771. 0
  2772. ? worksStudent[toolIndex]
  2773. : worksStudent[toolIndex].slice(0, 6)"
  2774. :key="wIndex"
  2775. :class="w.type == 1 ? 'isTypeOne' : ''"
  2776. >
  2777. <div class="workImg">
  2778. <img
  2779. :src="word2"
  2780. @click="downloadFile(w.works)"
  2781. alt
  2782. />
  2783. <div
  2784. class="answerScore"
  2785. v-if="w.score"
  2786. @click.stop="openScore(w)"
  2787. :class="{
  2788. rightW:
  2789. w.userid == userid ||
  2790. tType == 1 ||
  2791. tType == 4 ||
  2792. w.ateacher == userid,
  2793. }"
  2794. >
  2795. {{ JSON.parse(w.score).wScore }}分
  2796. </div>
  2797. <div
  2798. class="answerScore"
  2799. @click.stop="openScore(w)"
  2800. v-else-if="courseDetail.userid == userid"
  2801. :class="{
  2802. rightW:
  2803. w.userid == userid ||
  2804. tType == 1 ||
  2805. tType == 4 ||
  2806. w.ateacher == userid,
  2807. }"
  2808. >
  2809. 评分
  2810. </div>
  2811. <img
  2812. class="deleteImg"
  2813. src="../assets/deleteworks.png"
  2814. v-if="
  2815. w.userid == userid || tType == 1 || tType == 4
  2816. "
  2817. @click.stop="deleteWorks(w.wid)"
  2818. alt
  2819. />
  2820. </div>
  2821. <div class="comment" style="min-width: 200px">
  2822. <div class="worksName">
  2823. <div>{{ w.sName }}</div>
  2824. </div>
  2825. <div class="commentList">
  2826. <div class="commentList">
  2827. <div
  2828. class="commentImg"
  2829. @click="
  2830. isLikes(w.wid, userid, 1, null, w.isLikes)
  2831. "
  2832. >
  2833. <img
  2834. :src="w.isLikes == true ? likes : noLikes"
  2835. alt=""
  2836. />
  2837. </div>
  2838. <div>{{ w.likesCount }}</div>
  2839. </div>
  2840. <div class="commentList" style="margin-right: 15px">
  2841. <div
  2842. class="commentImg"
  2843. @click="commentOther(w, toolIndex, wIndex)"
  2844. >
  2845. <img
  2846. src="../assets/icon/comment/comment.png"
  2847. alt=""
  2848. />
  2849. </div>
  2850. <div>{{ w.commentCount }}</div>
  2851. </div>
  2852. </div>
  2853. </div>
  2854. </div>
  2855. </div>
  2856. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2857. 未提交
  2858. </div>
  2859. <div
  2860. class="noWorksS"
  2861. v-if="noWorksS && noWorksS[toolIndex].length"
  2862. >
  2863. <div
  2864. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2865. :key="sIndex"
  2866. class="noWorksName"
  2867. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  2868. >
  2869. {{ s.student }}
  2870. </div>
  2871. </div>
  2872. </div>
  2873. <div
  2874. v-if="
  2875. tType &&
  2876. ((tType == 2 && sIsOpen == true) ||
  2877. tType == 1 ||
  2878. tType == 4) &&
  2879. tool.tool.indexOf(57) != -1
  2880. "
  2881. class="worksBox"
  2882. >
  2883. <div
  2884. class="zuoyeYulan"
  2885. v-if="
  2886. worksStudent.length &&
  2887. worksStudent[toolIndex].length > 0
  2888. "
  2889. >
  2890. <div class="worksTop">
  2891. <div>作业预览</div>
  2892. <div
  2893. class="corOpen"
  2894. @click="contract(toolIndex)"
  2895. v-if="
  2896. worksStudent[toolIndex].length > 6 &&
  2897. isCloseList[toolIndex].isClose == 0
  2898. "
  2899. >
  2900. 收缩
  2901. </div>
  2902. <div
  2903. class="corOpen"
  2904. @click="contract(toolIndex)"
  2905. v-if="isCloseList[toolIndex].isClose == 1"
  2906. >
  2907. 展开
  2908. </div>
  2909. </div>
  2910. </div>
  2911. <div
  2912. class="worksDetailBox"
  2913. v-if="
  2914. worksStudent.length &&
  2915. worksStudent[toolIndex].length > 0
  2916. "
  2917. >
  2918. <div
  2919. class="works"
  2920. style="
  2921. width: 200px;
  2922. height: 140px;
  2923. margin: 10px 10px 10px 0;
  2924. border-radius: 15px;
  2925. box-shadow: 0 0 6px 1px #dfdada;
  2926. "
  2927. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2928. 0
  2929. ? worksStudent[toolIndex]
  2930. : worksStudent[toolIndex].slice(0, 6)"
  2931. :key="wIndex"
  2932. :class="w.type == 1 ? 'isTypeOne' : ''"
  2933. >
  2934. <div class="workImg">
  2935. <img
  2936. :src="word2"
  2937. @click="downloadFile(w.works)"
  2938. v-if="w.type == 12"
  2939. alt
  2940. />
  2941. <img
  2942. :src="word2"
  2943. @click="
  2944. openCocoPi(57, toolIndex, w.userid, w.sName)
  2945. "
  2946. v-else-if="w.type == 15"
  2947. alt
  2948. />
  2949. <div
  2950. class="answerScore"
  2951. v-if="w.score"
  2952. @click.stop="openScore(w)"
  2953. :class="{
  2954. rightW:
  2955. w.userid == userid ||
  2956. tType == 1 ||
  2957. tType == 4 ||
  2958. w.ateacher == userid,
  2959. }"
  2960. >
  2961. {{ JSON.parse(w.score).wScore }}分
  2962. </div>
  2963. <div
  2964. class="answerScore"
  2965. @click.stop="openScore(w)"
  2966. v-else-if="courseDetail.userid == userid"
  2967. :class="{
  2968. rightW:
  2969. w.userid == userid ||
  2970. tType == 1 ||
  2971. tType == 4 ||
  2972. w.ateacher == userid,
  2973. }"
  2974. >
  2975. 评分
  2976. </div>
  2977. <img
  2978. class="deleteImg"
  2979. src="../assets/deleteworks.png"
  2980. v-if="
  2981. w.userid == userid || tType == 1 || tType == 4
  2982. "
  2983. @click.stop="deleteWorks(w.wid)"
  2984. alt
  2985. />
  2986. </div>
  2987. <div class="comment" style="min-width: 200px">
  2988. <div class="worksName">
  2989. <div>{{ w.sName }}</div>
  2990. </div>
  2991. <div class="commentList">
  2992. <div class="commentList">
  2993. <div
  2994. class="commentImg"
  2995. @click="
  2996. isLikes(w.wid, userid, 1, null, w.isLikes)
  2997. "
  2998. >
  2999. <img
  3000. :src="w.isLikes == true ? likes : noLikes"
  3001. alt=""
  3002. />
  3003. </div>
  3004. <div>{{ w.likesCount }}</div>
  3005. </div>
  3006. <div class="commentList" style="margin-right: 15px">
  3007. <div
  3008. class="commentImg"
  3009. @click="commentOther(w, toolIndex, wIndex)"
  3010. >
  3011. <img
  3012. src="../assets/icon/comment/comment.png"
  3013. alt=""
  3014. />
  3015. </div>
  3016. <div>{{ w.commentCount }}</div>
  3017. </div>
  3018. </div>
  3019. </div>
  3020. </div>
  3021. </div>
  3022. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3023. 未提交
  3024. </div>
  3025. <div
  3026. class="noWorksS"
  3027. v-if="noWorksS && noWorksS[toolIndex].length"
  3028. >
  3029. <div
  3030. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3031. :key="sIndex"
  3032. class="noWorksName"
  3033. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3034. >
  3035. {{ s.student }}
  3036. </div>
  3037. </div>
  3038. </div>
  3039. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3040. <div
  3041. class="zuoyeYulan"
  3042. v-if="
  3043. worksStudent.length &&
  3044. worksStudent[toolIndex].length > 0
  3045. "
  3046. >
  3047. <span>作业预览</span>
  3048. <div
  3049. class="corOpen"
  3050. @click="contract(toolIndex)"
  3051. v-if="
  3052. worksStudent[toolIndex].length > 6 &&
  3053. isCloseList[toolIndex].isClose == 0
  3054. "
  3055. >
  3056. 收缩
  3057. </div>
  3058. <div
  3059. class="corOpen"
  3060. @click="contract(toolIndex)"
  3061. v-if="isCloseList[toolIndex].isClose == 1"
  3062. >
  3063. 展开
  3064. </div>
  3065. </div>
  3066. <div
  3067. class="worksDetailBox"
  3068. v-if="
  3069. worksStudent.length &&
  3070. worksStudent[toolIndex].length > 0
  3071. "
  3072. >
  3073. <div
  3074. class="works"
  3075. style="
  3076. width: 200px;
  3077. height: 140px;
  3078. margin: 10px 10px 10px 0;
  3079. border-radius: 15px;
  3080. box-shadow: 0 0 6px 1px #dfdada;
  3081. "
  3082. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3083. 0
  3084. ? worksStudent[toolIndex]
  3085. : worksStudent[toolIndex].slice(0, 6)"
  3086. :key="wIndex"
  3087. :class="w.type == 1 ? 'isTypeOne' : ''"
  3088. >
  3089. <div class="workImg" v-if="w.type == 0">
  3090. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3091. <img
  3092. :src="w.works"
  3093. @click="previewImg(w.works)"
  3094. alt
  3095. />
  3096. <div
  3097. class="answerScore"
  3098. v-if="w.score"
  3099. @click.stop="openScore(w)"
  3100. :class="{
  3101. rightW:
  3102. w.userid == userid ||
  3103. tType == 1 ||
  3104. tType == 4 ||
  3105. w.ateacher == userid,
  3106. }"
  3107. >
  3108. {{ JSON.parse(w.score).wScore }}分
  3109. </div>
  3110. <div
  3111. class="answerScore"
  3112. @click.stop="openScore(w)"
  3113. v-else-if="courseDetail.userid == userid"
  3114. :class="{
  3115. rightW:
  3116. w.userid == userid ||
  3117. tType == 1 ||
  3118. tType == 4 ||
  3119. w.ateacher == userid,
  3120. }"
  3121. >
  3122. 评分
  3123. </div>
  3124. <img
  3125. class="deleteImg"
  3126. src="../assets/deleteworks.png"
  3127. v-if="
  3128. w.userid == userid || tType == 1 || tType == 4
  3129. "
  3130. @click.stop="deleteWorks(w.wid)"
  3131. alt
  3132. />
  3133. </div>
  3134. <div
  3135. class="workImg"
  3136. style="cursor: pointer"
  3137. v-if="w.type == 1"
  3138. >
  3139. <img :src="word" @click="openFile(w.works)" alt />
  3140. <!-- @click="openFile(w.works)" -->
  3141. <div
  3142. class="answerScore"
  3143. v-if="w.score"
  3144. @click.stop="openScore(w)"
  3145. :class="{
  3146. rightW:
  3147. w.userid == userid ||
  3148. tType == 1 ||
  3149. tType == 4 ||
  3150. w.ateacher == userid,
  3151. }"
  3152. >
  3153. {{ JSON.parse(w.score).wScore }}分
  3154. </div>
  3155. <div
  3156. class="answerScore"
  3157. @click.stop="openScore(w)"
  3158. v-else-if="courseDetail.userid == userid"
  3159. :class="{
  3160. rightW:
  3161. w.userid == userid ||
  3162. tType == 1 ||
  3163. tType == 4 ||
  3164. w.ateacher == userid,
  3165. }"
  3166. >
  3167. 评分
  3168. </div>
  3169. <img
  3170. class="deleteImg"
  3171. src="../assets/deleteworks.png"
  3172. v-if="
  3173. w.userid == userid || tType == 1 || tType == 4
  3174. "
  3175. @click.stop="deleteWorks(w.wid)"
  3176. alt
  3177. />
  3178. </div>
  3179. <div class="workImg" v-if="w.type == 3">
  3180. <img
  3181. style="cursor: pointer"
  3182. :src="video"
  3183. @click="openVideo(w)"
  3184. alt
  3185. />
  3186. <!-- @click="openVideo(w.works)" -->
  3187. <div
  3188. class="answerScore"
  3189. v-if="w.score"
  3190. @click.stop="openScore(w)"
  3191. :class="{
  3192. rightW:
  3193. w.userid == userid ||
  3194. tType == 1 ||
  3195. tType == 4 ||
  3196. w.ateacher == userid,
  3197. }"
  3198. >
  3199. {{ JSON.parse(w.score).wScore }}分
  3200. </div>
  3201. <div
  3202. class="answerScore"
  3203. @click.stop="openScore(w)"
  3204. v-else-if="courseDetail.userid == userid"
  3205. :class="{
  3206. rightW:
  3207. w.userid == userid ||
  3208. tType == 1 ||
  3209. tType == 4 ||
  3210. w.ateacher == userid,
  3211. }"
  3212. >
  3213. 评分
  3214. </div>
  3215. <img
  3216. class="deleteImg"
  3217. src="../assets/deleteworks.png"
  3218. v-if="
  3219. w.userid == userid || tType == 1 || tType == 4
  3220. "
  3221. @click.stop="deleteWorks(w.wid)"
  3222. alt
  3223. />
  3224. </div>
  3225. <div class="comment" style="min-width: 200px">
  3226. <div class="worksName">
  3227. <div
  3228. style="cursor: pointer"
  3229. @click="
  3230. openSname(w.sName, w.wid, toolIndex, w.userid)
  3231. "
  3232. >
  3233. {{ w.sName }}
  3234. </div>
  3235. </div>
  3236. <div class="commentList">
  3237. <div class="commentList">
  3238. <div
  3239. class="commentImg"
  3240. @click="
  3241. isLikes(w.wid, userid, 1, null, w.isLikes)
  3242. "
  3243. >
  3244. <img
  3245. :src="w.isLikes == true ? likes : noLikes"
  3246. alt=""
  3247. />
  3248. </div>
  3249. <div>{{ w.likesCount }}</div>
  3250. </div>
  3251. <div class="commentList" style="margin-right: 15px">
  3252. <div
  3253. class="commentImg"
  3254. @click="commentOther(w, toolIndex, wIndex)"
  3255. >
  3256. <img
  3257. src="../assets/icon/comment/comment.png"
  3258. alt=""
  3259. />
  3260. </div>
  3261. <div>{{ w.commentCount }}</div>
  3262. </div>
  3263. </div>
  3264. </div>
  3265. </div>
  3266. </div>
  3267. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3268. 未提交
  3269. </div>
  3270. <div
  3271. class="noWorksS"
  3272. v-if="noWorksS && noWorksS[toolIndex].length"
  3273. >
  3274. <div
  3275. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3276. :key="sIndex"
  3277. class="noWorksName"
  3278. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3279. >
  3280. {{ s.student }}
  3281. </div>
  3282. </div>
  3283. </div>
  3284. <div
  3285. v-if="
  3286. tType &&
  3287. ((tType == 2 && sIsOpen == true) ||
  3288. tType == 1 ||
  3289. tType == 4) &&
  3290. tool.tool.indexOf(4) != -1 &&
  3291. (tool.askJson[0].answer ||
  3292. tool.askJson[0].answer === 0) &&
  3293. checkJson[toolIndex].length
  3294. "
  3295. class="xuan_right_box"
  3296. >
  3297. <div
  3298. class="tool_right_box"
  3299. v-for="(item, index) in tool.askJson"
  3300. :key="index"
  3301. >
  3302. <div>
  3303. <span
  3304. style="word-break: break-all; white-space: normal"
  3305. >{{ index + 1 + "、" + item.askstitle }}</span
  3306. >
  3307. </div>
  3308. <div class="right_box_xuan">
  3309. <span>正确率</span>
  3310. <span>{{
  3311. (checkJson[toolIndex][index].right
  3312. ? checkJson[toolIndex][index].right
  3313. : 0) + "%"
  3314. }}</span>
  3315. </div>
  3316. </div>
  3317. </div>
  3318. <div
  3319. class="xuan_right_box"
  3320. style="background: unset; padding: 0 10px"
  3321. v-if="
  3322. tType &&
  3323. ((tType == 2 && sIsOpen == true) ||
  3324. tType == 1 ||
  3325. tType == 4) &&
  3326. tool.tool.indexOf(4) != -1
  3327. "
  3328. >
  3329. <AskStatic
  3330. v-if="
  3331. worksStudent.length &&
  3332. worksStudent[toolIndex].length > 0
  3333. "
  3334. :askJSON="tool"
  3335. :checkJson="checkJson[toolIndex]"
  3336. ></AskStatic>
  3337. </div>
  3338. <div
  3339. v-if="
  3340. tType &&
  3341. ((tType == 2 && sIsOpen == true) ||
  3342. tType == 1 ||
  3343. tType == 4) &&
  3344. tool.tool.indexOf(4) != -1
  3345. "
  3346. class="worksBox"
  3347. >
  3348. <div
  3349. class="zuoyeYulan"
  3350. v-if="
  3351. worksStudent.length &&
  3352. worksStudent[toolIndex].length > 0
  3353. "
  3354. >
  3355. <div class="worksTop">
  3356. <div>作业预览</div>
  3357. <div
  3358. class="corOpen"
  3359. @click="contract(toolIndex)"
  3360. v-if="
  3361. worksStudent[toolIndex].length > 6 &&
  3362. isCloseList[toolIndex].isClose == 0
  3363. "
  3364. >
  3365. 收缩
  3366. </div>
  3367. <div
  3368. class="corOpen"
  3369. @click="contract(toolIndex)"
  3370. v-if="isCloseList[toolIndex].isClose == 1"
  3371. >
  3372. 展开
  3373. </div>
  3374. </div>
  3375. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3376. </div>
  3377. <div>
  3378. <div
  3379. class="worksDetailBox"
  3380. v-if="
  3381. worksStudent.length &&
  3382. worksStudent[toolIndex].length > 0
  3383. "
  3384. >
  3385. <div
  3386. v-for="(w, wIndex) in isCloseList[toolIndex]
  3387. .isClose == 0
  3388. ? worksStudent[toolIndex]
  3389. : worksStudent[toolIndex].slice(0, 6)"
  3390. :key="wIndex"
  3391. class="isWorksName2"
  3392. @click="
  3393. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3394. "
  3395. >
  3396. {{ w.sName }}
  3397. <img
  3398. class="deleteImg deleteImg2"
  3399. src="../assets/deleteworks.png"
  3400. v-if="
  3401. w.userid == userid || tType == 1 || tType == 4
  3402. "
  3403. @click.stop="deleteWorks(w.wid)"
  3404. alt
  3405. />
  3406. </div>
  3407. <!-- <div class="works" style="
  3408. width: 200px;
  3409. height: 140px;
  3410. border-radius: 10px;
  3411. box-shadow: 0 0 6px 1px #dfdada;
  3412. overflow: hidden;
  3413. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3414. <div class="workImg">
  3415. <img src="../assets/icon/works/noImg.png" @click="
  3416. openTools(
  3417. 4,
  3418. toolIndex,
  3419. taskCount,
  3420. w.works,
  3421. w.sName
  3422. )
  3423. " alt />
  3424. </div>
  3425. <div class="worksName">
  3426. <div>{{ w.sName }}</div>
  3427. <div>{{ w.time }}</div>
  3428. </div>
  3429. </div> -->
  3430. </div>
  3431. </div>
  3432. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3433. 未提交
  3434. </div>
  3435. <div
  3436. class="noWorksS"
  3437. v-if="noWorksS && noWorksS[toolIndex].length"
  3438. >
  3439. <div
  3440. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3441. :key="sIndex"
  3442. class="noWorksName"
  3443. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3444. >
  3445. {{ s.student }}
  3446. </div>
  3447. </div>
  3448. </div>
  3449. <div
  3450. v-if="
  3451. tType &&
  3452. ((tType == 2 && sIsOpen == true) ||
  3453. tType == 1 ||
  3454. tType == 4) &&
  3455. tool.tool.indexOf(45) != -1 &&
  3456. (tool.testJson.testJson[0].answer ||
  3457. tool.testJson.testJson[0].answer === 0) &&
  3458. checkJson[toolIndex].length
  3459. "
  3460. class="xuan_right_box"
  3461. >
  3462. <div
  3463. class="tool_right_box"
  3464. v-for="(item, index) in tool.testJson.testJson"
  3465. :key="index"
  3466. >
  3467. <div class="right_box_xuan" style="margin-right: 10px">
  3468. <span>正确率</span>
  3469. <span>{{
  3470. (checkJson[toolIndex][index].right
  3471. ? checkJson[toolIndex][index].right
  3472. : 0) + "%"
  3473. }}</span>
  3474. </div>
  3475. <div>
  3476. <span
  3477. style="word-break: break-all; white-space: normal"
  3478. >{{ index + 1 + "、" + item.teststitle }}</span
  3479. >
  3480. </div>
  3481. </div>
  3482. </div>
  3483. <div
  3484. class="xuan_right_box"
  3485. style="background: unset; padding: 0 10px"
  3486. v-if="
  3487. tType &&
  3488. ((tType == 2 && sIsOpen == true) ||
  3489. tType == 1 ||
  3490. tType == 4) &&
  3491. tool.tool.indexOf(45) != -1
  3492. "
  3493. >
  3494. <AskStatic2
  3495. v-if="
  3496. worksStudent.length &&
  3497. worksStudent[toolIndex].length > 0
  3498. "
  3499. :askJSON="tool"
  3500. :checkJson="checkJson[toolIndex]"
  3501. ></AskStatic2>
  3502. </div>
  3503. <div
  3504. v-if="
  3505. tType &&
  3506. ((tType == 2 && sIsOpen == true) ||
  3507. tType == 1 ||
  3508. tType == 4) &&
  3509. tool.tool.indexOf(45) != -1
  3510. "
  3511. class="worksBox"
  3512. >
  3513. <div
  3514. class="zuoyeYulan"
  3515. v-if="
  3516. worksStudent.length &&
  3517. worksStudent[toolIndex].length > 0
  3518. "
  3519. >
  3520. <div class="worksTop">
  3521. <div>作业预览</div>
  3522. <div
  3523. class="corOpen"
  3524. @click="contract(toolIndex)"
  3525. v-if="
  3526. worksStudent[toolIndex].length > 6 &&
  3527. isCloseList[toolIndex].isClose == 0
  3528. "
  3529. >
  3530. 收缩
  3531. </div>
  3532. <div
  3533. class="corOpen"
  3534. @click="contract(toolIndex)"
  3535. v-if="isCloseList[toolIndex].isClose == 1"
  3536. >
  3537. 展开
  3538. </div>
  3539. </div>
  3540. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3541. </div>
  3542. <div>
  3543. <div
  3544. class="worksDetailBox"
  3545. v-if="
  3546. worksStudent.length &&
  3547. worksStudent[toolIndex].length > 0
  3548. "
  3549. >
  3550. <div
  3551. v-for="(w, wIndex) in isCloseList[toolIndex]
  3552. .isClose == 0
  3553. ? worksStudent[toolIndex]
  3554. : worksStudent[toolIndex].slice(0, 6)"
  3555. :key="wIndex"
  3556. class="isWorksName2"
  3557. @click="
  3558. openTools(
  3559. 45,
  3560. toolIndex,
  3561. taskCount,
  3562. w.works,
  3563. w.sName
  3564. )
  3565. "
  3566. >
  3567. {{ w.sName }}
  3568. <img
  3569. class="deleteImg deleteImg2"
  3570. src="../assets/deleteworks.png"
  3571. v-if="
  3572. w.userid == userid || tType == 1 || tType == 4
  3573. "
  3574. @click.stop="deleteWorks(w.wid)"
  3575. alt
  3576. />
  3577. </div>
  3578. </div>
  3579. </div>
  3580. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3581. 未提交
  3582. </div>
  3583. <div
  3584. class="noWorksS"
  3585. v-if="noWorksS && noWorksS[toolIndex].length"
  3586. >
  3587. <div
  3588. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3589. :key="sIndex"
  3590. class="noWorksName"
  3591. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  3592. >
  3593. {{ s.student }}
  3594. </div>
  3595. </div>
  3596. </div>
  3597. <div
  3598. v-if="
  3599. tType &&
  3600. ((tType == 2 && sIsOpen == true) ||
  3601. tType == 1 ||
  3602. tType == 4) &&
  3603. tool.tool.indexOf(15) != -1
  3604. "
  3605. class="worksBox"
  3606. >
  3607. <div
  3608. class="zuoyeYulan"
  3609. v-if="
  3610. worksStudent.length &&
  3611. worksStudent[toolIndex].length > 0
  3612. "
  3613. >
  3614. <div class="worksTop">
  3615. <div>作业预览</div>
  3616. <div
  3617. class="corOpen"
  3618. @click="contract(toolIndex)"
  3619. v-if="
  3620. worksStudent[toolIndex].length > 6 &&
  3621. isCloseList[toolIndex].isClose == 0
  3622. "
  3623. >
  3624. 收缩
  3625. </div>
  3626. <div
  3627. class="corOpen"
  3628. @click="contract(toolIndex)"
  3629. v-if="isCloseList[toolIndex].isClose == 1"
  3630. >
  3631. 展开
  3632. </div>
  3633. </div>
  3634. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3635. </div>
  3636. <div
  3637. class="group_workBox"
  3638. v-for="(g, gindex) in courseGroup.group"
  3639. :key="gindex"
  3640. >
  3641. <div class="group_box">
  3642. <div class="group_title">
  3643. <el-tooltip
  3644. class="item"
  3645. effect="light"
  3646. :content="g.name"
  3647. placement="top"
  3648. >
  3649. <div class="group_name">{{ g.name }}</div>
  3650. </el-tooltip>
  3651. </div>
  3652. <div
  3653. class="group_work"
  3654. v-if="
  3655. g.works &&
  3656. g.works.length &&
  3657. g.works[toolIndex].length
  3658. "
  3659. >
  3660. <div
  3661. class="works"
  3662. v-for="(w, wIndex) in g.works[toolIndex]"
  3663. :key="wIndex"
  3664. >
  3665. <div
  3666. class="workImg"
  3667. style="
  3668. border-radius: 15px;
  3669. box-shadow: #eee 0px 0px 5px 5px;
  3670. "
  3671. >
  3672. <div
  3673. class="answerBg"
  3674. style="border-radius: 15px 15px 0 0"
  3675. @click="
  3676. commentOther(w, toolIndex, wIndex, null, g.id)
  3677. "
  3678. >
  3679. <div class="answerContent">
  3680. {{ JSON.parse(w.works)[0].answer }}
  3681. </div>
  3682. <div
  3683. class="answerScore"
  3684. v-if="w.score"
  3685. @click.stop="openScore(w)"
  3686. :class="{
  3687. rightW:
  3688. w.userid == userid ||
  3689. tType == 1 ||
  3690. tType == 4,
  3691. }"
  3692. >
  3693. {{ JSON.parse(w.score).wScore }}分
  3694. </div>
  3695. <div
  3696. class="answerScore"
  3697. @click.stop="openScore(w)"
  3698. v-else-if="courseDetail.userid == userid"
  3699. :class="{
  3700. rightW:
  3701. w.userid == userid ||
  3702. tType == 1 ||
  3703. tType == 4,
  3704. }"
  3705. >
  3706. 评分
  3707. </div>
  3708. <img
  3709. class="deleteImg"
  3710. src="../assets/deleteworks.png"
  3711. v-if="
  3712. w.userid == userid ||
  3713. tType == 1 ||
  3714. tType == 4
  3715. "
  3716. @click.stop="deleteWorks(w.wid)"
  3717. alt
  3718. />
  3719. </div>
  3720. <div class="comment">
  3721. <div class="worksName">
  3722. <div>{{ w.sName }}</div>
  3723. </div>
  3724. <div class="commentList">
  3725. <div
  3726. class="commentImg"
  3727. @click="
  3728. isLikes(w.wid, userid, 1, null, w.isLikes)
  3729. "
  3730. >
  3731. <img
  3732. :src="w.isLikes == true ? likes : noLikes"
  3733. alt=""
  3734. />
  3735. </div>
  3736. <div>{{ w.likesCount }}</div>
  3737. </div>
  3738. <div
  3739. class="commentList"
  3740. style="margin-right: 15px"
  3741. >
  3742. <div
  3743. class="commentImg"
  3744. @click="
  3745. commentOther(
  3746. w,
  3747. toolIndex,
  3748. wIndex,
  3749. null,
  3750. g.id
  3751. )
  3752. "
  3753. >
  3754. <img
  3755. src="../assets/icon/comment/comment.png"
  3756. alt=""
  3757. />
  3758. </div>
  3759. <div>{{ w.commentCount }}</div>
  3760. </div>
  3761. </div>
  3762. </div>
  3763. </div>
  3764. </div>
  3765. <div class="group_work" v-else>暂无提交作业</div>
  3766. </div>
  3767. </div>
  3768. <div
  3769. class="worksDetailBox"
  3770. v-if="
  3771. worksStudent.length &&
  3772. worksStudent[toolIndex].length > 0
  3773. "
  3774. >
  3775. <div
  3776. class="works"
  3777. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3778. 0
  3779. ? worksStudent[toolIndex]
  3780. : worksStudent[toolIndex].slice(0, 6)"
  3781. :key="wIndex"
  3782. >
  3783. <div
  3784. class="workImg"
  3785. style="
  3786. border-radius: 15px;
  3787. box-shadow: #eee 0px 0px 5px 5px;
  3788. "
  3789. >
  3790. <!-- <img
  3791. src="../assets/icon/works/noImg.png"
  3792. @click="openTools(15, toolIndex, taskCount, w.works)"
  3793. alt=""
  3794. />-->
  3795. <div
  3796. class="answerBg"
  3797. style="border-radius: 15px 15px 0 0"
  3798. @click="commentOther(w, toolIndex, wIndex)"
  3799. >
  3800. <!-- <div>{{ w.sName }}</div> -->
  3801. <div class="answerContent">
  3802. {{ JSON.parse(w.works)[0].answer }}
  3803. </div>
  3804. <div
  3805. class="answerScore"
  3806. v-if="w.score"
  3807. @click.stop="openScore(w)"
  3808. :class="{
  3809. rightW:
  3810. w.userid == userid ||
  3811. tType == 1 ||
  3812. tType == 4,
  3813. }"
  3814. >
  3815. {{ JSON.parse(w.score).wScore }}分
  3816. </div>
  3817. <div
  3818. class="answerScore"
  3819. @click.stop="openScore(w)"
  3820. v-else-if="courseDetail.userid == userid"
  3821. :class="{
  3822. rightW:
  3823. w.userid == userid ||
  3824. tType == 1 ||
  3825. tType == 4,
  3826. }"
  3827. >
  3828. 评分
  3829. </div>
  3830. <img
  3831. class="deleteImg"
  3832. src="../assets/deleteworks.png"
  3833. v-if="
  3834. w.userid == userid || tType == 1 || tType == 4
  3835. "
  3836. @click.stop="deleteWorks(w.wid)"
  3837. alt
  3838. />
  3839. </div>
  3840. <div class="comment">
  3841. <div class="worksName">
  3842. <div>{{ w.sName }}</div>
  3843. </div>
  3844. <div class="commentList">
  3845. <div
  3846. class="commentImg"
  3847. @click="
  3848. isLikes(w.wid, userid, 1, null, w.isLikes)
  3849. "
  3850. >
  3851. <img
  3852. :src="w.isLikes == true ? likes : noLikes"
  3853. alt=""
  3854. />
  3855. </div>
  3856. <div>{{ w.likesCount }}</div>
  3857. </div>
  3858. <div class="commentList" style="margin-right: 15px">
  3859. <div
  3860. class="commentImg"
  3861. @click="commentOther(w, toolIndex, wIndex)"
  3862. >
  3863. <img
  3864. src="../assets/icon/comment/comment.png"
  3865. alt=""
  3866. />
  3867. </div>
  3868. <div>{{ w.commentCount }}</div>
  3869. </div>
  3870. </div>
  3871. </div>
  3872. </div>
  3873. </div>
  3874. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3875. 未提交
  3876. </div>
  3877. <div
  3878. class="noWorksS"
  3879. v-if="noWorksS && noWorksS[toolIndex].length"
  3880. >
  3881. <div
  3882. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3883. :key="sIndex"
  3884. class="noWorksName"
  3885. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  3886. >
  3887. {{ s.student }}
  3888. </div>
  3889. </div>
  3890. </div>
  3891. <div
  3892. v-if="
  3893. tType &&
  3894. ((tType == 2 && sIsOpen == true) ||
  3895. tType == 1 ||
  3896. tType == 4) &&
  3897. tool.tool.indexOf(1) != -1
  3898. "
  3899. class="worksBox"
  3900. >
  3901. <div
  3902. class="zuoyeYulan"
  3903. v-if="
  3904. worksStudent.length &&
  3905. worksStudent[toolIndex].length > 0
  3906. "
  3907. >
  3908. <div class="worksTop">
  3909. <div>作业预览</div>
  3910. <div
  3911. class="corOpen"
  3912. @click="contract(toolIndex)"
  3913. v-if="
  3914. worksStudent[toolIndex].length > 6 &&
  3915. isCloseList[toolIndex].isClose == 0
  3916. "
  3917. >
  3918. 收缩
  3919. </div>
  3920. <div
  3921. class="corOpen"
  3922. @click="contract(toolIndex)"
  3923. v-if="isCloseList[toolIndex].isClose == 1"
  3924. >
  3925. 展开
  3926. </div>
  3927. </div>
  3928. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3929. </div>
  3930. <div
  3931. class="group_workBox"
  3932. v-for="(g, gindex) in courseGroup.group"
  3933. :key="gindex"
  3934. >
  3935. <div class="group_box">
  3936. <div class="group_title">
  3937. <el-tooltip
  3938. class="item"
  3939. effect="light"
  3940. :content="g.name"
  3941. placement="top"
  3942. >
  3943. <div class="group_name">{{ g.name }}</div>
  3944. </el-tooltip>
  3945. </div>
  3946. <div
  3947. class="group_work"
  3948. v-if="
  3949. g.works &&
  3950. g.works.length &&
  3951. g.works[toolIndex].length
  3952. "
  3953. >
  3954. <div
  3955. class="works"
  3956. style="
  3957. width: 200px;
  3958. height: 140px;
  3959. margin: 10px 10px 10px 0;
  3960. border-radius: 15px;
  3961. box-shadow: 0 0 6px 1px #dfdada;
  3962. "
  3963. v-for="(w, wIndex) in g.works[toolIndex]"
  3964. :key="wIndex"
  3965. :class="w.type == 1 ? 'isTypeOne' : ''"
  3966. >
  3967. <div class="workImg">
  3968. <img
  3969. :src="w.works"
  3970. @click="previewImg(w.works)"
  3971. alt
  3972. />
  3973. <div
  3974. class="answerScore"
  3975. v-if="w.score"
  3976. @click.stop="openScore(w)"
  3977. :class="{
  3978. rightW:
  3979. w.userid == userid ||
  3980. tType == 1 ||
  3981. tType == 4,
  3982. }"
  3983. >
  3984. {{ JSON.parse(w.score).wScore }}分
  3985. </div>
  3986. <div
  3987. class="answerScore"
  3988. @click.stop="openScore(w)"
  3989. v-else-if="courseDetail.userid == userid"
  3990. :class="{
  3991. rightW:
  3992. w.userid == userid ||
  3993. tType == 1 ||
  3994. tType == 4,
  3995. }"
  3996. >
  3997. 评分
  3998. </div>
  3999. <img
  4000. class="deleteImg"
  4001. src="../assets/deleteworks.png"
  4002. v-if="
  4003. w.userid == userid || tType == 1 || tType == 4
  4004. "
  4005. @click.stop="deleteWorks(w.wid)"
  4006. alt
  4007. />
  4008. </div>
  4009. <div class="comment" style="min-width: 200px">
  4010. <div class="worksName">
  4011. <div>{{ w.sName }}</div>
  4012. </div>
  4013. <div class="commentList">
  4014. <div class="commentList">
  4015. <div
  4016. class="commentImg"
  4017. @click="
  4018. isLikes(w.wid, userid, 1, null, w.isLikes)
  4019. "
  4020. >
  4021. <img
  4022. :src="w.isLikes == true ? likes : noLikes"
  4023. alt=""
  4024. />
  4025. </div>
  4026. <div>{{ w.likesCount }}</div>
  4027. </div>
  4028. <div
  4029. class="commentList"
  4030. style="margin-right: 15px"
  4031. >
  4032. <div
  4033. class="commentImg"
  4034. @click="
  4035. commentOther(
  4036. w,
  4037. toolIndex,
  4038. wIndex,
  4039. null,
  4040. g.id
  4041. )
  4042. "
  4043. >
  4044. <img
  4045. src="../assets/icon/comment/comment.png"
  4046. alt=""
  4047. />
  4048. </div>
  4049. <div>{{ w.commentCount }}</div>
  4050. </div>
  4051. </div>
  4052. </div>
  4053. </div>
  4054. </div>
  4055. <div class="group_work" v-else>暂无提交作业</div>
  4056. </div>
  4057. </div>
  4058. <div
  4059. class="worksDetailBox"
  4060. v-if="
  4061. worksStudent.length &&
  4062. worksStudent[toolIndex].length > 0
  4063. "
  4064. >
  4065. <div
  4066. class="works"
  4067. style="
  4068. width: 200px;
  4069. height: 140px;
  4070. margin: 10px 10px 10px 0;
  4071. border-radius: 15px;
  4072. box-shadow: 0 0 6px 1px #dfdada;
  4073. "
  4074. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4075. 0
  4076. ? worksStudent[toolIndex]
  4077. : worksStudent[toolIndex].slice(0, 6)"
  4078. :key="wIndex"
  4079. >
  4080. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4081. <div class="workImg">
  4082. <img
  4083. :src="w.works"
  4084. @click="previewImg(w.works)"
  4085. alt
  4086. />
  4087. <div
  4088. class="answerScore"
  4089. v-if="w.score"
  4090. @click.stop="openScore(w)"
  4091. :class="{
  4092. rightW:
  4093. w.userid == userid || tType == 1 || tType == 4,
  4094. }"
  4095. >
  4096. {{ JSON.parse(w.score).wScore }}分
  4097. </div>
  4098. <div
  4099. class="answerScore"
  4100. @click.stop="openScore(w)"
  4101. v-else-if="courseDetail.userid == userid"
  4102. :class="{
  4103. rightW:
  4104. w.userid == userid || tType == 1 || tType == 4,
  4105. }"
  4106. >
  4107. 评分
  4108. </div>
  4109. <img
  4110. class="deleteImg"
  4111. src="../assets/deleteworks.png"
  4112. v-if="
  4113. w.userid == userid || tType == 1 || tType == 4
  4114. "
  4115. @click.stop="deleteWorks(w.wid)"
  4116. alt
  4117. />
  4118. </div>
  4119. <div class="comment" style="min-width: 200px">
  4120. <div class="worksName">
  4121. <div>{{ w.sName }}</div>
  4122. </div>
  4123. <div class="commentList">
  4124. <div class="commentList">
  4125. <div
  4126. class="commentImg"
  4127. @click="
  4128. isLikes(w.wid, userid, 1, null, w.isLikes)
  4129. "
  4130. >
  4131. <img
  4132. :src="w.isLikes == true ? likes : noLikes"
  4133. alt=""
  4134. />
  4135. </div>
  4136. <div>{{ w.likesCount }}</div>
  4137. </div>
  4138. <div class="commentList" style="margin-right: 15px">
  4139. <div
  4140. class="commentImg"
  4141. @click="commentOther(w, toolIndex, wIndex)"
  4142. >
  4143. <img
  4144. src="../assets/icon/comment/comment.png"
  4145. alt=""
  4146. />
  4147. </div>
  4148. <div>{{ w.commentCount }}</div>
  4149. </div>
  4150. </div>
  4151. </div>
  4152. </div>
  4153. </div>
  4154. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4155. 未提交
  4156. </div>
  4157. <div
  4158. class="noWorksS"
  4159. v-if="noWorksS && noWorksS[toolIndex].length"
  4160. >
  4161. <div
  4162. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4163. :key="sIndex"
  4164. class="noWorksName"
  4165. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4166. >
  4167. {{ s.student }}
  4168. </div>
  4169. </div>
  4170. </div>
  4171. <div
  4172. v-if="
  4173. tType &&
  4174. ((tType == 2 && sIsOpen == true) ||
  4175. tType == 1 ||
  4176. tType == 4) &&
  4177. tool.tool.indexOf(3) != -1
  4178. "
  4179. class="worksBox"
  4180. >
  4181. <div
  4182. class="zuoyeYulan"
  4183. v-if="
  4184. worksStudent.length &&
  4185. worksStudent[toolIndex].length > 0
  4186. "
  4187. >
  4188. <div class="worksTop">
  4189. <div>作业预览</div>
  4190. <div
  4191. class="corOpen"
  4192. @click="contract(toolIndex)"
  4193. v-if="
  4194. worksStudent[toolIndex].length > 6 &&
  4195. isCloseList[toolIndex].isClose == 0
  4196. "
  4197. >
  4198. 收缩
  4199. </div>
  4200. <div
  4201. class="corOpen"
  4202. @click="contract(toolIndex)"
  4203. v-if="isCloseList[toolIndex].isClose == 1"
  4204. >
  4205. 展开
  4206. </div>
  4207. </div>
  4208. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4209. </div>
  4210. <div
  4211. class="group_workBox"
  4212. v-for="(g, gindex) in courseGroup.group"
  4213. :key="gindex"
  4214. >
  4215. <div class="group_box">
  4216. <div class="group_title">
  4217. <el-tooltip
  4218. class="item"
  4219. effect="light"
  4220. :content="g.name"
  4221. placement="top"
  4222. >
  4223. <div class="group_name">{{ g.name }}</div>
  4224. </el-tooltip>
  4225. </div>
  4226. <div
  4227. class="group_work"
  4228. v-if="
  4229. g.works &&
  4230. g.works.length &&
  4231. g.works[toolIndex].length
  4232. "
  4233. >
  4234. <div
  4235. class="works"
  4236. style="
  4237. width: 200px;
  4238. height: 140px;
  4239. margin: 10px 10px 10px 0;
  4240. border-radius: 15px;
  4241. box-shadow: 0 0 6px 1px #dfdada;
  4242. "
  4243. v-for="(w, wIndex) in g.works[toolIndex]"
  4244. :key="wIndex"
  4245. :class="w.type == 1 ? 'isTypeOne' : ''"
  4246. >
  4247. <div class="workImg">
  4248. <img
  4249. :src="w.works"
  4250. @click="previewImg(w.works)"
  4251. alt
  4252. />
  4253. <div
  4254. class="answerScore"
  4255. v-if="w.score"
  4256. @click.stop="openScore(w)"
  4257. :class="{
  4258. rightW:
  4259. w.userid == userid ||
  4260. tType == 1 ||
  4261. tType == 4,
  4262. }"
  4263. >
  4264. {{ JSON.parse(w.score).wScore }}分
  4265. </div>
  4266. <div
  4267. class="answerScore"
  4268. @click.stop="openScore(w)"
  4269. v-else-if="courseDetail.userid == userid"
  4270. :class="{
  4271. rightW:
  4272. w.userid == userid ||
  4273. tType == 1 ||
  4274. tType == 4,
  4275. }"
  4276. >
  4277. 评分
  4278. </div>
  4279. <img
  4280. class="deleteImg"
  4281. src="../assets/deleteworks.png"
  4282. v-if="
  4283. w.userid == userid || tType == 1 || tType == 4
  4284. "
  4285. @click.stop="deleteWorks(w.wid)"
  4286. alt
  4287. />
  4288. </div>
  4289. <div class="comment" style="min-width: 200px">
  4290. <div class="worksName">
  4291. <div>{{ w.sName }}</div>
  4292. </div>
  4293. <div class="commentList">
  4294. <div class="commentList">
  4295. <div
  4296. class="commentImg"
  4297. @click="
  4298. isLikes(w.wid, userid, 1, null, w.isLikes)
  4299. "
  4300. >
  4301. <img
  4302. :src="w.isLikes == true ? likes : noLikes"
  4303. alt=""
  4304. />
  4305. </div>
  4306. <div>{{ w.likesCount }}</div>
  4307. </div>
  4308. <div
  4309. class="commentList"
  4310. style="margin-right: 15px"
  4311. >
  4312. <div
  4313. class="commentImg"
  4314. @click="
  4315. commentOther(
  4316. w,
  4317. toolIndex,
  4318. wIndex,
  4319. null,
  4320. g.id
  4321. )
  4322. "
  4323. >
  4324. <img
  4325. src="../assets/icon/comment/comment.png"
  4326. alt=""
  4327. />
  4328. </div>
  4329. <div>{{ w.commentCount }}</div>
  4330. </div>
  4331. </div>
  4332. </div>
  4333. </div>
  4334. </div>
  4335. <div class="group_work" v-else>暂无提交作业</div>
  4336. </div>
  4337. </div>
  4338. <div
  4339. class="worksDetailBox"
  4340. v-if="
  4341. worksStudent.length &&
  4342. worksStudent[toolIndex].length > 0
  4343. "
  4344. >
  4345. <div
  4346. class="works"
  4347. style="
  4348. width: 200px;
  4349. height: 140px;
  4350. margin: 10px 10px 10px 0;
  4351. border-radius: 15px;
  4352. box-shadow: 0 0 6px 1px #dfdada;
  4353. "
  4354. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4355. 0
  4356. ? worksStudent[toolIndex]
  4357. : worksStudent[toolIndex].slice(0, 6)"
  4358. :key="wIndex"
  4359. >
  4360. <!-- @click="previewImg(w.works)" -->
  4361. <div class="workImg">
  4362. <img
  4363. :src="w.works"
  4364. @click="previewImg(w.works)"
  4365. alt
  4366. />
  4367. <div
  4368. class="answerScore"
  4369. v-if="w.score"
  4370. @click.stop="openScore(w)"
  4371. :class="{
  4372. rightW:
  4373. w.userid == userid || tType == 1 || tType == 4,
  4374. }"
  4375. >
  4376. {{ JSON.parse(w.score).wScore }}分
  4377. </div>
  4378. <div
  4379. class="answerScore"
  4380. @click.stop="openScore(w)"
  4381. v-else-if="courseDetail.userid == userid"
  4382. :class="{
  4383. rightW:
  4384. w.userid == userid || tType == 1 || tType == 4,
  4385. }"
  4386. >
  4387. 评分
  4388. </div>
  4389. <img
  4390. class="deleteImg"
  4391. src="../assets/deleteworks.png"
  4392. v-if="
  4393. w.userid == userid || tType == 1 || tType == 4
  4394. "
  4395. @click.stop="deleteWorks(w.wid)"
  4396. alt
  4397. />
  4398. </div>
  4399. <div class="comment" style="min-width: 200px">
  4400. <div class="worksName">
  4401. <div>{{ w.sName }}</div>
  4402. </div>
  4403. <div class="commentList">
  4404. <div class="commentList">
  4405. <div
  4406. class="commentImg"
  4407. @click="
  4408. isLikes(w.wid, userid, 1, null, w.isLikes)
  4409. "
  4410. >
  4411. <img
  4412. :src="w.isLikes == true ? likes : noLikes"
  4413. alt=""
  4414. />
  4415. </div>
  4416. <div>{{ w.likesCount }}</div>
  4417. </div>
  4418. <div class="commentList" style="margin-right: 15px">
  4419. <div
  4420. class="commentImg"
  4421. @click="commentOther(w, toolIndex, wIndex)"
  4422. >
  4423. <img
  4424. src="../assets/icon/comment/comment.png"
  4425. alt=""
  4426. />
  4427. </div>
  4428. <div>{{ w.commentCount }}</div>
  4429. </div>
  4430. </div>
  4431. </div>
  4432. </div>
  4433. </div>
  4434. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4435. 未提交
  4436. </div>
  4437. <div
  4438. class="noWorksS"
  4439. v-if="noWorksS && noWorksS[toolIndex].length"
  4440. >
  4441. <div
  4442. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4443. :key="sIndex"
  4444. class="noWorksName"
  4445. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  4446. >
  4447. {{ s.student }}
  4448. </div>
  4449. </div>
  4450. </div>
  4451. <div
  4452. v-if="
  4453. tType &&
  4454. ((tType == 2 && sIsOpen == true) ||
  4455. tType == 1 ||
  4456. tType == 4) &&
  4457. tool.tool.indexOf(6) != -1
  4458. "
  4459. class="worksBox"
  4460. >
  4461. <div
  4462. class="zuoyeYulan"
  4463. v-if="
  4464. worksStudent.length &&
  4465. worksStudent[toolIndex].length > 0
  4466. "
  4467. >
  4468. <div class="worksTop">
  4469. <div>作业预览</div>
  4470. <div
  4471. class="corOpen"
  4472. @click="contract(toolIndex)"
  4473. v-if="
  4474. worksStudent[toolIndex].length > 6 &&
  4475. isCloseList[toolIndex].isClose == 0
  4476. "
  4477. >
  4478. 收缩
  4479. </div>
  4480. <div
  4481. class="corOpen"
  4482. @click="contract(toolIndex)"
  4483. v-if="isCloseList[toolIndex].isClose == 1"
  4484. >
  4485. 展开
  4486. </div>
  4487. </div>
  4488. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4489. </div>
  4490. <div
  4491. class="group_workBox"
  4492. v-for="(g, gindex) in courseGroup.group"
  4493. :key="gindex"
  4494. >
  4495. <div class="group_box">
  4496. <div class="group_title">
  4497. <el-tooltip
  4498. class="item"
  4499. effect="light"
  4500. :content="g.name"
  4501. placement="top"
  4502. >
  4503. <div class="group_name">{{ g.name }}</div>
  4504. </el-tooltip>
  4505. </div>
  4506. <div
  4507. class="group_work"
  4508. v-if="
  4509. g.works &&
  4510. g.works.length &&
  4511. g.works[toolIndex].length
  4512. "
  4513. >
  4514. <div
  4515. class="works"
  4516. style="
  4517. width: 200px;
  4518. height: 140px;
  4519. margin: 10px 10px 10px 0;
  4520. border-radius: 15px;
  4521. box-shadow: 0 0 6px 1px #dfdada;
  4522. "
  4523. v-for="(w, wIndex) in g.works[toolIndex]"
  4524. :key="wIndex"
  4525. :class="w.type == 1 ? 'isTypeOne' : ''"
  4526. >
  4527. <div class="workImg">
  4528. <img
  4529. :src="w.works"
  4530. @click="previewImg(w.works)"
  4531. alt
  4532. />
  4533. <div
  4534. class="answerScore"
  4535. v-if="w.score"
  4536. @click.stop="openScore(w)"
  4537. :class="{
  4538. rightW:
  4539. w.userid == userid ||
  4540. tType == 1 ||
  4541. tType == 4,
  4542. }"
  4543. >
  4544. {{ JSON.parse(w.score).wScore }}分
  4545. </div>
  4546. <div
  4547. class="answerScore"
  4548. @click.stop="openScore(w)"
  4549. v-else-if="courseDetail.userid == userid"
  4550. :class="{
  4551. rightW:
  4552. w.userid == userid ||
  4553. tType == 1 ||
  4554. tType == 4,
  4555. }"
  4556. >
  4557. 评分
  4558. </div>
  4559. <img
  4560. class="deleteImg"
  4561. src="../assets/deleteworks.png"
  4562. v-if="
  4563. w.userid == userid || tType == 1 || tType == 4
  4564. "
  4565. @click.stop="deleteWorks(w.wid)"
  4566. alt
  4567. />
  4568. </div>
  4569. <div class="comment" style="min-width: 200px">
  4570. <div class="worksName">
  4571. <div>{{ w.sName }}</div>
  4572. </div>
  4573. <div class="commentList">
  4574. <div class="commentList">
  4575. <div
  4576. class="commentImg"
  4577. @click="
  4578. isLikes(w.wid, userid, 1, null, w.isLikes)
  4579. "
  4580. >
  4581. <img
  4582. :src="w.isLikes == true ? likes : noLikes"
  4583. alt=""
  4584. />
  4585. </div>
  4586. <div>{{ w.likesCount }}</div>
  4587. </div>
  4588. <div
  4589. class="commentList"
  4590. style="margin-right: 15px"
  4591. >
  4592. <div
  4593. class="commentImg"
  4594. @click="
  4595. commentOther(
  4596. w,
  4597. toolIndex,
  4598. wIndex,
  4599. null,
  4600. g.id
  4601. )
  4602. "
  4603. >
  4604. <img
  4605. src="../assets/icon/comment/comment.png"
  4606. alt=""
  4607. />
  4608. </div>
  4609. <div>{{ w.commentCount }}</div>
  4610. </div>
  4611. </div>
  4612. </div>
  4613. </div>
  4614. </div>
  4615. <div class="group_work" v-else>暂无提交作业</div>
  4616. </div>
  4617. </div>
  4618. <div
  4619. class="worksDetailBox"
  4620. v-if="
  4621. worksStudent.length &&
  4622. worksStudent[toolIndex].length > 0
  4623. "
  4624. >
  4625. <div
  4626. class="works"
  4627. style="
  4628. width: 200px;
  4629. height: 140px;
  4630. margin: 10px 10px 10px 0;
  4631. border-radius: 15px;
  4632. box-shadow: 0 0 6px 1px #dfdada;
  4633. "
  4634. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4635. 0
  4636. ? worksStudent[toolIndex]
  4637. : worksStudent[toolIndex].slice(0, 6)"
  4638. :key="wIndex"
  4639. >
  4640. <!-- @click="previewImg(w.works)" -->
  4641. <div class="workImg">
  4642. <img
  4643. :src="w.works"
  4644. @click="previewImg(w.works)"
  4645. alt
  4646. />
  4647. <div
  4648. class="answerScore"
  4649. v-if="w.score"
  4650. @click.stop="openScore(w)"
  4651. :class="{
  4652. rightW:
  4653. w.userid == userid || tType == 1 || tType == 4,
  4654. }"
  4655. >
  4656. {{ JSON.parse(w.score).wScore }}分
  4657. </div>
  4658. <div
  4659. class="answerScore"
  4660. @click.stop="openScore(w)"
  4661. v-else-if="courseDetail.userid == userid"
  4662. :class="{
  4663. rightW:
  4664. w.userid == userid || tType == 1 || tType == 4,
  4665. }"
  4666. >
  4667. 评分
  4668. </div>
  4669. <img
  4670. class="deleteImg"
  4671. src="../assets/deleteworks.png"
  4672. v-if="
  4673. w.userid == userid || tType == 1 || tType == 4
  4674. "
  4675. @click.stop="deleteWorks(w.wid)"
  4676. alt
  4677. />
  4678. </div>
  4679. <div class="comment" style="min-width: 200px">
  4680. <div class="worksName">
  4681. <div>{{ w.sName }}</div>
  4682. </div>
  4683. <div class="commentList">
  4684. <div class="commentList">
  4685. <div
  4686. class="commentImg"
  4687. @click="
  4688. isLikes(w.wid, userid, 1, null, w.isLikes)
  4689. "
  4690. >
  4691. <img
  4692. :src="w.isLikes == true ? likes : noLikes"
  4693. alt=""
  4694. />
  4695. </div>
  4696. <div>{{ w.likesCount }}</div>
  4697. </div>
  4698. <div class="commentList" style="margin-right: 15px">
  4699. <div
  4700. class="commentImg"
  4701. @click="commentOther(w, toolIndex, wIndex)"
  4702. >
  4703. <img
  4704. src="../assets/icon/comment/comment.png"
  4705. alt=""
  4706. />
  4707. </div>
  4708. <div>{{ w.commentCount }}</div>
  4709. </div>
  4710. </div>
  4711. </div>
  4712. </div>
  4713. </div>
  4714. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4715. 未提交
  4716. </div>
  4717. <div
  4718. class="noWorksS"
  4719. v-if="noWorksS && noWorksS[toolIndex].length"
  4720. >
  4721. <div
  4722. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4723. :key="sIndex"
  4724. class="noWorksName"
  4725. >
  4726. {{ s.student }}
  4727. </div>
  4728. </div>
  4729. </div>
  4730. <div
  4731. v-if="
  4732. tType &&
  4733. ((tType == 2 && sIsOpen == true) ||
  4734. tType == 1 ||
  4735. tType == 4) &&
  4736. tool.tool.indexOf(7) != -1
  4737. "
  4738. class="worksBox"
  4739. >
  4740. <div
  4741. class="zuoyeYulan"
  4742. v-if="
  4743. worksStudent.length &&
  4744. worksStudent[toolIndex].length > 0
  4745. "
  4746. >
  4747. <div class="worksTop">
  4748. <div>作业预览</div>
  4749. <div
  4750. class="corOpen"
  4751. @click="contract(toolIndex)"
  4752. v-if="
  4753. worksStudent[toolIndex].length > 6 &&
  4754. isCloseList[toolIndex].isClose == 0
  4755. "
  4756. >
  4757. 收缩
  4758. </div>
  4759. <div
  4760. class="corOpen"
  4761. @click="contract(toolIndex)"
  4762. v-if="isCloseList[toolIndex].isClose == 1"
  4763. >
  4764. 展开
  4765. </div>
  4766. </div>
  4767. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4768. </div>
  4769. <div
  4770. class="group_workBox"
  4771. v-for="(g, gindex) in courseGroup.group"
  4772. :key="gindex"
  4773. >
  4774. <div class="group_box">
  4775. <div class="group_title">
  4776. <el-tooltip
  4777. class="item"
  4778. effect="light"
  4779. :content="g.name"
  4780. placement="top"
  4781. >
  4782. <div class="group_name">{{ g.name }}</div>
  4783. </el-tooltip>
  4784. </div>
  4785. <div
  4786. class="group_work"
  4787. v-if="
  4788. g.works &&
  4789. g.works.length &&
  4790. g.works[toolIndex].length
  4791. "
  4792. >
  4793. <div
  4794. class="works"
  4795. style="
  4796. width: 200px;
  4797. height: 140px;
  4798. margin: 10px 10px 10px 0;
  4799. border-radius: 15px;
  4800. box-shadow: 0 0 6px 1px #dfdada;
  4801. "
  4802. v-for="(w, wIndex) in g.works[toolIndex]"
  4803. :key="wIndex"
  4804. :class="w.type == 1 ? 'isTypeOne' : ''"
  4805. >
  4806. <div class="workImg">
  4807. <img
  4808. :src="w.works"
  4809. @click="previewImg(w.works)"
  4810. alt
  4811. />
  4812. <div
  4813. class="answerScore"
  4814. v-if="w.score"
  4815. @click.stop="openScore(w)"
  4816. :class="{
  4817. rightW:
  4818. w.userid == userid ||
  4819. tType == 1 ||
  4820. tType == 4,
  4821. }"
  4822. >
  4823. {{ JSON.parse(w.score).wScore }}分
  4824. </div>
  4825. <div
  4826. class="answerScore"
  4827. @click.stop="openScore(w)"
  4828. v-else-if="courseDetail.userid == userid"
  4829. :class="{
  4830. rightW:
  4831. w.userid == userid ||
  4832. tType == 1 ||
  4833. tType == 4,
  4834. }"
  4835. >
  4836. 评分
  4837. </div>
  4838. <img
  4839. class="deleteImg"
  4840. src="../assets/deleteworks.png"
  4841. v-if="
  4842. w.userid == userid || tType == 1 || tType == 4
  4843. "
  4844. @click.stop="deleteWorks(w.wid)"
  4845. alt
  4846. />
  4847. </div>
  4848. <div class="comment" style="min-width: 200px">
  4849. <div class="worksName">
  4850. <div>{{ w.sName }}</div>
  4851. </div>
  4852. <div class="commentList">
  4853. <div class="commentList">
  4854. <div
  4855. class="commentImg"
  4856. @click="
  4857. isLikes(w.wid, userid, 1, null, w.isLikes)
  4858. "
  4859. >
  4860. <img
  4861. :src="w.isLikes == true ? likes : noLikes"
  4862. alt=""
  4863. />
  4864. </div>
  4865. <div>{{ w.likesCount }}</div>
  4866. </div>
  4867. <div
  4868. class="commentList"
  4869. style="margin-right: 15px"
  4870. >
  4871. <div
  4872. class="commentImg"
  4873. @click="
  4874. commentOther(
  4875. w,
  4876. toolIndex,
  4877. wIndex,
  4878. null,
  4879. g.id
  4880. )
  4881. "
  4882. >
  4883. <img
  4884. src="../assets/icon/comment/comment.png"
  4885. alt=""
  4886. />
  4887. </div>
  4888. <div>{{ w.commentCount }}</div>
  4889. </div>
  4890. </div>
  4891. </div>
  4892. </div>
  4893. </div>
  4894. <div class="group_work" v-else>暂无提交作业</div>
  4895. </div>
  4896. </div>
  4897. <div
  4898. class="worksDetailBox"
  4899. v-if="
  4900. worksStudent.length &&
  4901. worksStudent[toolIndex].length > 0
  4902. "
  4903. >
  4904. <div
  4905. class="works"
  4906. style="
  4907. width: 200px;
  4908. height: 140px;
  4909. margin: 10px 10px 10px 0;
  4910. border-radius: 15px;
  4911. box-shadow: 0 0 6px 1px #dfdada;
  4912. "
  4913. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4914. 0
  4915. ? worksStudent[toolIndex]
  4916. : worksStudent[toolIndex].slice(0, 6)"
  4917. :key="wIndex"
  4918. >
  4919. <!-- @click="previewImg(w.works)" -->
  4920. <div class="workImg">
  4921. <img
  4922. :src="w.works"
  4923. @click="previewImg(w.works)"
  4924. alt
  4925. />
  4926. <div
  4927. class="answerScore"
  4928. v-if="w.score"
  4929. @click.stop="openScore(w)"
  4930. :class="{
  4931. rightW:
  4932. w.userid == userid || tType == 1 || tType == 4,
  4933. }"
  4934. >
  4935. {{ JSON.parse(w.score).wScore }}分
  4936. </div>
  4937. <div
  4938. class="answerScore"
  4939. @click.stop="openScore(w)"
  4940. v-else-if="courseDetail.userid == userid"
  4941. :class="{
  4942. rightW:
  4943. w.userid == userid || tType == 1 || tType == 4,
  4944. }"
  4945. >
  4946. 评分
  4947. </div>
  4948. <img
  4949. class="deleteImg"
  4950. src="../assets/deleteworks.png"
  4951. v-if="
  4952. w.userid == userid || tType == 1 || tType == 4
  4953. "
  4954. @click.stop="deleteWorks(w.wid)"
  4955. alt
  4956. />
  4957. </div>
  4958. <div class="comment" style="min-width: 200px">
  4959. <div class="worksName">
  4960. <div>{{ w.sName }}</div>
  4961. </div>
  4962. <div class="commentList">
  4963. <div class="commentList">
  4964. <div
  4965. class="commentImg"
  4966. @click="
  4967. isLikes(w.wid, userid, 1, null, w.isLikes)
  4968. "
  4969. >
  4970. <img
  4971. :src="w.isLikes == true ? likes : noLikes"
  4972. alt=""
  4973. />
  4974. </div>
  4975. <div>{{ w.likesCount }}</div>
  4976. </div>
  4977. <div class="commentList" style="margin-right: 15px">
  4978. <div
  4979. class="commentImg"
  4980. @click="commentOther(w, toolIndex, wIndex)"
  4981. >
  4982. <img
  4983. src="../assets/icon/comment/comment.png"
  4984. alt=""
  4985. />
  4986. </div>
  4987. <div>{{ w.commentCount }}</div>
  4988. </div>
  4989. </div>
  4990. </div>
  4991. </div>
  4992. </div>
  4993. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4994. 未提交
  4995. </div>
  4996. <div
  4997. class="noWorksS"
  4998. v-if="noWorksS && noWorksS[toolIndex].length"
  4999. >
  5000. <div
  5001. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5002. :key="sIndex"
  5003. class="noWorksName"
  5004. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5005. >
  5006. {{ s.student }}
  5007. </div>
  5008. </div>
  5009. </div>
  5010. <div
  5011. v-if="
  5012. tType &&
  5013. ((tType == 2 && sIsOpen == true) ||
  5014. tType == 1 ||
  5015. tType == 4) &&
  5016. tool.tool.indexOf(26) != -1
  5017. "
  5018. class="worksBox"
  5019. >
  5020. <div
  5021. class="zuoyeYulan"
  5022. v-if="
  5023. worksStudent.length &&
  5024. worksStudent[toolIndex].length > 0
  5025. "
  5026. >
  5027. <div class="worksTop">
  5028. <div>作业预览</div>
  5029. <div
  5030. class="corOpen"
  5031. @click="contract(toolIndex)"
  5032. v-if="
  5033. worksStudent[toolIndex].length > 6 &&
  5034. isCloseList[toolIndex].isClose == 0
  5035. "
  5036. >
  5037. 收缩
  5038. </div>
  5039. <div
  5040. class="corOpen"
  5041. @click="contract(toolIndex)"
  5042. v-if="isCloseList[toolIndex].isClose == 1"
  5043. >
  5044. 展开
  5045. </div>
  5046. </div>
  5047. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5048. </div>
  5049. <div
  5050. class="worksDetailBox"
  5051. v-if="
  5052. worksStudent.length &&
  5053. worksStudent[toolIndex].length > 0
  5054. "
  5055. >
  5056. <div
  5057. class="works"
  5058. style="width: 240px; height: 140px; overflow: hidden"
  5059. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5060. 0
  5061. ? worksStudent[toolIndex]
  5062. : worksStudent[toolIndex].slice(0, 6)"
  5063. :key="wIndex"
  5064. :class="w.type == 1 ? 'isTypeOne' : ''"
  5065. >
  5066. <div class="workImg" v-if="w.type == 0">
  5067. <img
  5068. :src="w.works"
  5069. @click="previewImg(w.works)"
  5070. alt
  5071. />
  5072. <img
  5073. class="deleteImg"
  5074. src="../assets/deleteworks.png"
  5075. v-if="
  5076. w.userid == userid || tType == 1 || tType == 4
  5077. "
  5078. @click.stop="deleteWorks(w.wid)"
  5079. alt
  5080. />
  5081. </div>
  5082. <div class="workImg" v-if="w.type == 1">
  5083. <img :src="word" @click="openFile(w.works)" alt />
  5084. <img
  5085. class="deleteImg"
  5086. src="../assets/deleteworks.png"
  5087. v-if="
  5088. w.userid == userid || tType == 1 || tType == 4
  5089. "
  5090. @click.stop="deleteWorks(w.wid)"
  5091. alt
  5092. />
  5093. </div>
  5094. <div class="worksName">
  5095. <div>{{ w.sName }}</div>
  5096. </div>
  5097. </div>
  5098. </div>
  5099. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5100. 未提交
  5101. </div>
  5102. <div
  5103. class="noWorksS"
  5104. v-if="noWorksS && noWorksS[toolIndex].length"
  5105. >
  5106. <div
  5107. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5108. :key="sIndex"
  5109. class="noWorksName"
  5110. >
  5111. {{ s.student }}
  5112. </div>
  5113. </div>
  5114. </div>
  5115. <div
  5116. v-if="
  5117. tType &&
  5118. ((tType == 2 && sIsOpen == true) ||
  5119. tType == 1 ||
  5120. tType == 4) &&
  5121. tool.tool.indexOf(40) != -1
  5122. "
  5123. class="worksBox"
  5124. >
  5125. <div
  5126. class="zuoyeYulan"
  5127. v-if="
  5128. worksStudent.length &&
  5129. worksStudent[toolIndex].length > 0
  5130. "
  5131. >
  5132. <div class="worksTop">
  5133. <div>作业预览</div>
  5134. <div
  5135. class="corOpen"
  5136. @click="contract(toolIndex)"
  5137. v-if="
  5138. worksStudent[toolIndex].length > 6 &&
  5139. isCloseList[toolIndex].isClose == 0
  5140. "
  5141. >
  5142. 收缩
  5143. </div>
  5144. <div
  5145. class="corOpen"
  5146. @click="contract(toolIndex)"
  5147. v-if="isCloseList[toolIndex].isClose == 1"
  5148. >
  5149. 展开
  5150. </div>
  5151. </div>
  5152. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5153. </div>
  5154. <div
  5155. class="worksDetailBox"
  5156. v-if="
  5157. worksStudent.length &&
  5158. worksStudent[toolIndex].length > 0
  5159. "
  5160. >
  5161. <div
  5162. class="works"
  5163. style="
  5164. width: 200px;
  5165. height: 140px;
  5166. margin: 10px 10px 10px 0;
  5167. border-radius: 15px;
  5168. box-shadow: 0 0 6px 1px #dfdada;
  5169. "
  5170. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5171. 0
  5172. ? worksStudent[toolIndex]
  5173. : worksStudent[toolIndex].slice(0, 6)"
  5174. :key="wIndex"
  5175. :class="w.type == 1 ? 'isTypeOne' : ''"
  5176. >
  5177. <div class="workImg">
  5178. <img
  5179. src="../assets/icon/works/noImg.png"
  5180. @click="openPj(w.works, toolIndex)"
  5181. alt
  5182. />
  5183. <img
  5184. class="deleteImg"
  5185. src="../assets/deleteworks.png"
  5186. v-if="
  5187. w.userid == userid || tType == 1 || tType == 4
  5188. "
  5189. @click.stop="deleteWorks(w.wid)"
  5190. alt
  5191. />
  5192. </div>
  5193. <div class="comment" style="min-width: 200px">
  5194. <div class="worksName">
  5195. <div>{{ w.sName }}</div>
  5196. </div>
  5197. <div class="commentList">
  5198. <div class="commentList">
  5199. <div
  5200. class="commentImg"
  5201. @click="
  5202. isLikes(w.wid, userid, 1, null, w.isLikes)
  5203. "
  5204. >
  5205. <img
  5206. :src="w.isLikes == true ? likes : noLikes"
  5207. alt=""
  5208. />
  5209. </div>
  5210. <div>{{ w.likesCount }}</div>
  5211. </div>
  5212. <div class="commentList" style="margin-right: 15px">
  5213. <div
  5214. class="commentImg"
  5215. @click="commentOther(w, toolIndex, wIndex)"
  5216. >
  5217. <img
  5218. src="../assets/icon/comment/comment.png"
  5219. alt=""
  5220. />
  5221. </div>
  5222. <div>{{ w.commentCount }}</div>
  5223. </div>
  5224. </div>
  5225. </div>
  5226. </div>
  5227. </div>
  5228. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5229. 未提交
  5230. </div>
  5231. <div
  5232. class="noWorksS"
  5233. v-if="noWorksS && noWorksS[toolIndex].length"
  5234. >
  5235. <div
  5236. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5237. :key="sIndex"
  5238. class="noWorksName"
  5239. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5240. >
  5241. {{ s.student }}
  5242. </div>
  5243. </div>
  5244. </div>
  5245. <div
  5246. v-if="
  5247. tType &&
  5248. tType == 2 &&
  5249. !sIsOpen &&
  5250. tool.tool.indexOf(40) != -1
  5251. "
  5252. class="worksBox"
  5253. >
  5254. <div
  5255. class="zuoyeYulan"
  5256. v-if="workStudent[toolIndex].length > 0"
  5257. >
  5258. <span>作业预览</span>
  5259. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5260. </div>
  5261. <div
  5262. class="worksDetailBox"
  5263. v-if="workStudent[toolIndex].length > 0"
  5264. >
  5265. <div
  5266. class="works"
  5267. style="
  5268. width: 200px;
  5269. height: 140px;
  5270. margin: 10px 10px 10px 0;
  5271. "
  5272. v-for="(w, wIndex) in workStudent[toolIndex]"
  5273. :key="wIndex"
  5274. >
  5275. <div class="workImg">
  5276. <img
  5277. src="../assets/icon/works/noImg.png"
  5278. @click="openPj(w.works, toolIndex)"
  5279. alt
  5280. />
  5281. <img
  5282. class="deleteImg"
  5283. src="../assets/deleteworks.png"
  5284. v-if="
  5285. w.userid == userid || tType == 1 || tType == 4
  5286. "
  5287. @click.stop="deleteWorks(w.wid)"
  5288. alt
  5289. />
  5290. </div>
  5291. <div class="worksName">
  5292. <div>{{ w.sName }}</div>
  5293. </div>
  5294. </div>
  5295. </div>
  5296. </div>
  5297. <div
  5298. v-if="
  5299. tType &&
  5300. ((tType == 2 && sIsOpen == true) ||
  5301. tType == 1 ||
  5302. tType == 4) &&
  5303. tool.tool.indexOf(41) != -1
  5304. "
  5305. >
  5306. <AnswerData2
  5307. v-if="
  5308. worksStudent.length &&
  5309. worksStudent[toolIndex].length > 0
  5310. "
  5311. :problemJson="tool.selectJson.answer"
  5312. :people="worksStudent[toolIndex]"
  5313. ></AnswerData2>
  5314. </div>
  5315. <div
  5316. v-if="
  5317. tType &&
  5318. ((tType == 2 && sIsOpen == true) ||
  5319. tType == 1 ||
  5320. tType == 4) &&
  5321. tool.tool.indexOf(41) != -1
  5322. "
  5323. class="worksBox"
  5324. >
  5325. <div
  5326. class="zuoyeYulan"
  5327. v-if="
  5328. worksStudent.length &&
  5329. worksStudent[toolIndex].length > 0
  5330. "
  5331. >
  5332. <div class="worksTop">
  5333. <div>作业预览</div>
  5334. <div
  5335. class="corOpen"
  5336. @click="contract(toolIndex)"
  5337. v-if="
  5338. worksStudent[toolIndex].length > 6 &&
  5339. isCloseList[toolIndex].isClose == 0
  5340. "
  5341. >
  5342. 收缩
  5343. </div>
  5344. <div
  5345. class="corOpen"
  5346. @click="contract(toolIndex)"
  5347. v-if="isCloseList[toolIndex].isClose == 1"
  5348. >
  5349. 展开
  5350. </div>
  5351. </div>
  5352. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5353. </div>
  5354. <div
  5355. class="worksDetailBox"
  5356. v-if="
  5357. worksStudent.length &&
  5358. worksStudent[toolIndex].length > 0
  5359. "
  5360. >
  5361. <div
  5362. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5363. 0
  5364. ? worksStudent[toolIndex]
  5365. : worksStudent[toolIndex].slice(0, 6)"
  5366. :key="wIndex"
  5367. class="isWorksName2"
  5368. @click="openXz(w, toolIndex)"
  5369. >
  5370. {{ w.sName }}
  5371. <img
  5372. class="deleteImg deleteImg2"
  5373. src="../assets/deleteworks.png"
  5374. v-if="w.userid == userid || tType == 1 || tType == 4"
  5375. @click.stop="deleteWorks(w.wid)"
  5376. alt
  5377. />
  5378. </div>
  5379. <!-- <div
  5380. class="works"
  5381. style="
  5382. width: 200px;
  5383. height: 140px;
  5384. margin: 10px 10px 10px 0;
  5385. border-radius: 15px;
  5386. box-shadow: 0 0 6px 1px #dfdada;
  5387. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  5388. :class="w.type == 5 ? 'isTypeOne' : ''">
  5389. <div class="workImg">
  5390. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  5391. </div>
  5392. <div class="worksName">
  5393. <div>{{ w.sName }}</div>
  5394. </div>
  5395. </div> -->
  5396. </div>
  5397. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5398. 未提交
  5399. </div>
  5400. <div
  5401. class="noWorksS"
  5402. v-if="noWorksS && noWorksS[toolIndex].length"
  5403. >
  5404. <div
  5405. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5406. :key="sIndex"
  5407. class="noWorksName"
  5408. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5409. >
  5410. {{ s.student }}
  5411. </div>
  5412. </div>
  5413. </div>
  5414. <div
  5415. v-if="
  5416. tType &&
  5417. tType == 2 &&
  5418. !sIsOpen &&
  5419. tool.tool.indexOf(41) != -1
  5420. "
  5421. class="worksBox"
  5422. >
  5423. <div
  5424. class="zuoyeYulan"
  5425. v-if="workStudent[toolIndex].length > 0"
  5426. >
  5427. <span>作业预览</span>
  5428. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5429. </div>
  5430. <div
  5431. class="worksDetailBox"
  5432. v-if="workStudent[toolIndex].length > 0"
  5433. >
  5434. <div
  5435. class="works"
  5436. style="
  5437. width: 200px;
  5438. height: 140px;
  5439. margin: 10px 10px 10px 0;
  5440. "
  5441. v-for="(w, wIndex) in workStudent[toolIndex]"
  5442. :key="wIndex"
  5443. >
  5444. <div class="workImg">
  5445. <img
  5446. src="../assets/icon/works/noImg.png"
  5447. @click="openXz(w, toolIndex)"
  5448. alt
  5449. />
  5450. <img
  5451. class="deleteImg"
  5452. src="../assets/deleteworks.png"
  5453. v-if="
  5454. w.userid == userid || tType == 1 || tType == 4
  5455. "
  5456. @click.stop="deleteWorks(w.wid)"
  5457. alt
  5458. />
  5459. </div>
  5460. <div class="worksName">
  5461. <div>{{ w.sName }}</div>
  5462. </div>
  5463. </div>
  5464. </div>
  5465. </div>
  5466. <div v-if="false" class="xuan_right_box">
  5467. <div
  5468. class="tool_right_box"
  5469. v-for="(item, index) in tool.sentenceList"
  5470. :key="index"
  5471. >
  5472. <div>
  5473. <span
  5474. style="word-break: break-all; white-space: normal"
  5475. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  5476. >
  5477. </div>
  5478. <div class="right_box_xuan">
  5479. <span>正确率</span>
  5480. <span>{{
  5481. (checkJson[toolIndex][index].right
  5482. ? checkJson[toolIndex][index].right
  5483. : 0) + "%"
  5484. }}</span>
  5485. </div>
  5486. <div class="right_box_xuan">
  5487. <span>答对人数</span>
  5488. <span>{{
  5489. checkJson[toolIndex][index].rightPerson.length
  5490. }}</span>
  5491. </div>
  5492. </div>
  5493. </div>
  5494. <div
  5495. v-if="
  5496. tType &&
  5497. ((tType == 2 && sIsOpen == true) ||
  5498. tType == 1 ||
  5499. tType == 4) &&
  5500. tool.tool.indexOf(47) != -1
  5501. "
  5502. >
  5503. <AnswerData
  5504. v-if="
  5505. checkJson[toolIndex].length &&
  5506. (tool.sentenceList || tool.sentenceList.length > 0)
  5507. "
  5508. :people="checkJson[toolIndex]"
  5509. ></AnswerData>
  5510. </div>
  5511. <div
  5512. v-if="
  5513. tType &&
  5514. tType == 2 &&
  5515. !sIsOpen &&
  5516. tool.tool.indexOf(47) != -1
  5517. "
  5518. class="worksBox"
  5519. >
  5520. <div
  5521. class="zuoyeYulan"
  5522. v-if="workStudent[toolIndex].length > 0"
  5523. >
  5524. <span>作业预览</span>
  5525. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5526. </div>
  5527. <div
  5528. class="worksDetailBox"
  5529. v-if="workStudent[toolIndex].length > 0"
  5530. >
  5531. <div
  5532. class="works"
  5533. style="
  5534. width: 200px;
  5535. height: 140px;
  5536. margin: 10px 10px 10px 0;
  5537. "
  5538. v-for="(w, wIndex) in workStudent[toolIndex]"
  5539. :key="wIndex"
  5540. >
  5541. <!-- @click="openXz(w, toolIndex)" -->
  5542. <div class="workImg" @click="openSen(w, toolIndex)">
  5543. <img src="../assets/icon/works/noImg.png" alt />
  5544. <img
  5545. class="deleteImg"
  5546. src="../assets/deleteworks.png"
  5547. v-if="
  5548. w.userid == userid || tType == 1 || tType == 4
  5549. "
  5550. @click.stop="deleteWorks(w.wid)"
  5551. alt
  5552. />
  5553. </div>
  5554. <div class="worksName">
  5555. <div>
  5556. {{ w.sName }}
  5557. </div>
  5558. </div>
  5559. </div>
  5560. </div>
  5561. </div>
  5562. <div
  5563. v-if="
  5564. tType &&
  5565. ((tType == 2 && sIsOpen == true) ||
  5566. tType == 1 ||
  5567. tType == 4) &&
  5568. tool.tool.indexOf(47) != -1
  5569. "
  5570. class="worksBox"
  5571. >
  5572. <div
  5573. class="zuoyeYulan"
  5574. v-if="
  5575. worksStudent.length &&
  5576. worksStudent[toolIndex].length > 0
  5577. "
  5578. >
  5579. <div class="worksTop">
  5580. <div>作业预览</div>
  5581. <div
  5582. class="corOpen"
  5583. @click="contract(toolIndex)"
  5584. v-if="
  5585. worksStudent[toolIndex].length > 6 &&
  5586. isCloseList[toolIndex].isClose == 0
  5587. "
  5588. >
  5589. 收缩
  5590. </div>
  5591. <div
  5592. class="corOpen"
  5593. @click="contract(toolIndex)"
  5594. v-if="isCloseList[toolIndex].isClose == 1"
  5595. >
  5596. 展开
  5597. </div>
  5598. </div>
  5599. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5600. </div>
  5601. <div
  5602. class="worksDetailBox"
  5603. v-if="
  5604. worksStudent.length &&
  5605. worksStudent[toolIndex].length > 0
  5606. "
  5607. >
  5608. <!-- @click="openXz(w, toolIndex)" -->
  5609. <div
  5610. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5611. 0
  5612. ? worksStudent[toolIndex]
  5613. : worksStudent[toolIndex].slice(0, 6)"
  5614. :key="wIndex"
  5615. class="isWorksName2"
  5616. @click="openSen(w, toolIndex)"
  5617. >
  5618. {{ w.sName }}
  5619. <img
  5620. class="deleteImg deleteImg2"
  5621. src="../assets/deleteworks.png"
  5622. v-if="w.userid == userid || tType == 1 || tType == 4"
  5623. @click.stop="deleteWorks(w.wid)"
  5624. alt
  5625. />
  5626. </div>
  5627. </div>
  5628. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5629. 未提交
  5630. </div>
  5631. <div
  5632. class="noWorksS"
  5633. v-if="noWorksS && noWorksS[toolIndex].length"
  5634. >
  5635. <div
  5636. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5637. :key="sIndex"
  5638. class="noWorksName"
  5639. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  5640. >
  5641. {{ s.student }}
  5642. </div>
  5643. </div>
  5644. </div>
  5645. <div
  5646. v-if="
  5647. tType &&
  5648. ((tType == 2 && sIsOpen == true) ||
  5649. tType == 1 ||
  5650. tType == 4) &&
  5651. tool.tool.indexOf(48) != -1
  5652. "
  5653. class="worksBox"
  5654. >
  5655. <div
  5656. class="zuoyeYulan"
  5657. v-if="
  5658. worksStudent.length &&
  5659. worksStudent[toolIndex].length > 0
  5660. "
  5661. >
  5662. <div class="worksTop">
  5663. <div>作业预览</div>
  5664. <div
  5665. class="corOpen"
  5666. @click="contract(toolIndex)"
  5667. v-if="
  5668. worksStudent[toolIndex].length > 6 &&
  5669. isCloseList[toolIndex].isClose == 0
  5670. "
  5671. >
  5672. 收缩
  5673. </div>
  5674. <div
  5675. class="corOpen"
  5676. @click="contract(toolIndex)"
  5677. v-if="isCloseList[toolIndex].isClose == 1"
  5678. >
  5679. 展开
  5680. </div>
  5681. </div>
  5682. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5683. </div>
  5684. <div
  5685. class="worksDetailBox"
  5686. v-if="
  5687. worksStudent.length &&
  5688. worksStudent[toolIndex].length > 0
  5689. "
  5690. >
  5691. <div
  5692. class="works"
  5693. style="
  5694. width: 200px;
  5695. height: 140px;
  5696. margin: 10px 10px 10px 0;
  5697. border-radius: 15px;
  5698. box-shadow: 0 0 6px 1px #dfdada;
  5699. "
  5700. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5701. 0
  5702. ? worksStudent[toolIndex]
  5703. : worksStudent[toolIndex].slice(0, 6)"
  5704. :key="wIndex"
  5705. :class="w.type == 1 ? 'isTypeOne' : ''"
  5706. >
  5707. <div class="workImg">
  5708. <img :src="word" @click="openTable(w)" alt />
  5709. <!-- @click="openFile(w.works)" -->
  5710. <div
  5711. class="answerScore"
  5712. v-if="w.score"
  5713. @click.stop="openScore(w)"
  5714. :class="{
  5715. rightW:
  5716. w.userid == userid ||
  5717. tType == 1 ||
  5718. tType == 4 ||
  5719. w.ateacher == userid,
  5720. }"
  5721. >
  5722. {{ JSON.parse(w.score).wScore }}分
  5723. </div>
  5724. <div
  5725. class="answerScore"
  5726. @click.stop="openScore(w)"
  5727. v-else-if="courseDetail.userid == userid"
  5728. :class="{
  5729. rightW:
  5730. w.userid == userid ||
  5731. tType == 1 ||
  5732. tType == 4 ||
  5733. w.ateacher == userid,
  5734. }"
  5735. >
  5736. 评分
  5737. </div>
  5738. <img
  5739. class="deleteImg"
  5740. src="../assets/deleteworks.png"
  5741. v-if="
  5742. w.userid == userid || tType == 1 || tType == 4
  5743. "
  5744. @click.stop="deleteWorks(w.wid)"
  5745. alt
  5746. />
  5747. </div>
  5748. <div class="comment" style="min-width: 200px">
  5749. <div class="worksName">
  5750. <div>{{ w.sName }}</div>
  5751. </div>
  5752. <div class="commentList">
  5753. <div class="commentList">
  5754. <div
  5755. class="commentImg"
  5756. @click="
  5757. isLikes(w.wid, userid, 1, null, w.isLikes)
  5758. "
  5759. >
  5760. <img
  5761. :src="w.isLikes == true ? likes : noLikes"
  5762. alt=""
  5763. />
  5764. </div>
  5765. <div>{{ w.likesCount }}</div>
  5766. </div>
  5767. <div class="commentList" style="margin-right: 15px">
  5768. <div
  5769. class="commentImg"
  5770. @click="commentOther(w, toolIndex, wIndex)"
  5771. >
  5772. <img
  5773. src="../assets/icon/comment/comment.png"
  5774. alt=""
  5775. />
  5776. </div>
  5777. <div>{{ w.commentCount }}</div>
  5778. </div>
  5779. </div>
  5780. </div>
  5781. </div>
  5782. </div>
  5783. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5784. 未提交
  5785. </div>
  5786. <div
  5787. class="noWorksS"
  5788. v-if="noWorksS && noWorksS[toolIndex].length"
  5789. >
  5790. <div
  5791. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5792. :key="sIndex"
  5793. class="noWorksName"
  5794. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  5795. >
  5796. {{ s.student }}
  5797. </div>
  5798. </div>
  5799. </div>
  5800. <div
  5801. v-if="
  5802. tType &&
  5803. tType == 2 &&
  5804. !sIsOpen &&
  5805. tool.tool.indexOf(48) != -1
  5806. "
  5807. class="worksBox"
  5808. >
  5809. <div
  5810. class="zuoyeYulan"
  5811. v-if="workStudent[toolIndex].length > 0"
  5812. >
  5813. <span>作业预览</span>
  5814. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5815. </div>
  5816. <div
  5817. class="worksDetailBox"
  5818. v-if="workStudent[toolIndex].length > 0"
  5819. >
  5820. <div
  5821. class="works"
  5822. style="
  5823. width: 200px;
  5824. height: 140px;
  5825. margin: 10px 10px 10px 0;
  5826. box-shadow: 0 0 6px 1px #dfdada;
  5827. "
  5828. v-for="(w, wIndex) in workStudent[toolIndex]"
  5829. :key="wIndex"
  5830. >
  5831. <div class="workImg">
  5832. <img :src="word" @click="openTable(w)" alt />
  5833. <div
  5834. class="answerScore"
  5835. v-if="w.score"
  5836. @click.stop="openScore(w)"
  5837. :class="{
  5838. rightW:
  5839. w.userid == userid || tType == 1 || tType == 4,
  5840. }"
  5841. >
  5842. {{ JSON.parse(w.score).wScore }}分
  5843. </div>
  5844. <div
  5845. class="answerScore"
  5846. @click.stop="openScore(w)"
  5847. v-else-if="courseDetail.userid == userid"
  5848. :class="{
  5849. rightW:
  5850. w.userid == userid || tType == 1 || tType == 4,
  5851. }"
  5852. >
  5853. 评分
  5854. </div>
  5855. <img
  5856. class="deleteImg"
  5857. src="../assets/deleteworks.png"
  5858. v-if="
  5859. w.userid == userid || tType == 1 || tType == 4
  5860. "
  5861. @click.stop="deleteWorks(w.wid)"
  5862. alt
  5863. />
  5864. </div>
  5865. <div class="worksName">
  5866. <div>{{ w.sName }}</div>
  5867. </div>
  5868. </div>
  5869. </div>
  5870. </div>
  5871. <div
  5872. v-if="
  5873. tType &&
  5874. ((tType == 2 && sIsOpen == true) ||
  5875. tType == 1 ||
  5876. tType == 4) &&
  5877. tool.tool.indexOf(52) != -1
  5878. "
  5879. class="worksBox"
  5880. >
  5881. <div
  5882. class="zuoyeYulan"
  5883. v-if="
  5884. worksStudent.length &&
  5885. worksStudent[toolIndex].length > 0
  5886. "
  5887. >
  5888. <div class="worksTop">
  5889. <div>作业预览</div>
  5890. <div
  5891. class="corOpen"
  5892. @click="contract(toolIndex)"
  5893. v-if="
  5894. worksStudent[toolIndex].length > 6 &&
  5895. isCloseList[toolIndex].isClose == 0
  5896. "
  5897. >
  5898. 收缩
  5899. </div>
  5900. <div
  5901. class="corOpen"
  5902. @click="contract(toolIndex)"
  5903. v-if="isCloseList[toolIndex].isClose == 1"
  5904. >
  5905. 展开
  5906. </div>
  5907. </div>
  5908. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5909. </div>
  5910. <div
  5911. class="worksDetailBox"
  5912. v-if="
  5913. worksStudent.length &&
  5914. worksStudent[toolIndex].length > 0
  5915. "
  5916. >
  5917. <div
  5918. class="works"
  5919. style="
  5920. width: 200px;
  5921. height: 140px;
  5922. margin: 10px 10px 10px 0;
  5923. border-radius: 15px;
  5924. box-shadow: 0 0 6px 1px #dfdada;
  5925. "
  5926. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5927. 0
  5928. ? worksStudent[toolIndex]
  5929. : worksStudent[toolIndex].slice(0, 6)"
  5930. :key="wIndex"
  5931. :class="w.type == 1 ? 'isTypeOne' : ''"
  5932. >
  5933. <div class="workImg">
  5934. <img :src="word" @click="openWord(w)" alt />
  5935. <!-- @click="openFile(w.works)" -->
  5936. <div
  5937. class="answerScore"
  5938. v-if="w.score"
  5939. @click.stop="openScore(w)"
  5940. :class="{
  5941. rightW:
  5942. w.userid == userid ||
  5943. tType == 1 ||
  5944. tType == 4 ||
  5945. w.ateacher == userid,
  5946. }"
  5947. >
  5948. {{ JSON.parse(w.score).wScore }}分
  5949. </div>
  5950. <div
  5951. class="answerScore"
  5952. @click.stop="openScore(w)"
  5953. v-else-if="courseDetail.userid == userid"
  5954. :class="{
  5955. rightW:
  5956. w.userid == userid ||
  5957. tType == 1 ||
  5958. tType == 4 ||
  5959. w.ateacher == userid,
  5960. }"
  5961. >
  5962. 评分
  5963. </div>
  5964. <img
  5965. class="deleteImg"
  5966. src="../assets/deleteworks.png"
  5967. v-if="
  5968. w.userid == userid || tType == 1 || tType == 4
  5969. "
  5970. @click.stop="deleteWorks(w.wid)"
  5971. alt
  5972. />
  5973. </div>
  5974. <div class="comment" style="min-width: 200px">
  5975. <div class="worksName">
  5976. <div>{{ w.sName }}</div>
  5977. </div>
  5978. <div class="commentList">
  5979. <div class="commentList">
  5980. <div
  5981. class="commentImg"
  5982. @click="
  5983. isLikes(w.wid, userid, 1, null, w.isLikes)
  5984. "
  5985. >
  5986. <img
  5987. :src="w.isLikes == true ? likes : noLikes"
  5988. alt=""
  5989. />
  5990. </div>
  5991. <div>{{ w.likesCount }}</div>
  5992. </div>
  5993. <div class="commentList" style="margin-right: 15px">
  5994. <div
  5995. class="commentImg"
  5996. @click="commentOther(w, toolIndex, wIndex)"
  5997. >
  5998. <img
  5999. src="../assets/icon/comment/comment.png"
  6000. alt=""
  6001. />
  6002. </div>
  6003. <div>{{ w.commentCount }}</div>
  6004. </div>
  6005. </div>
  6006. </div>
  6007. </div>
  6008. </div>
  6009. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6010. 未提交
  6011. </div>
  6012. <div
  6013. class="noWorksS"
  6014. v-if="noWorksS && noWorksS[toolIndex].length"
  6015. >
  6016. <div
  6017. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6018. :key="sIndex"
  6019. class="noWorksName"
  6020. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6021. >
  6022. {{ s.student }}
  6023. </div>
  6024. </div>
  6025. </div>
  6026. <div
  6027. v-if="
  6028. tType &&
  6029. tType == 2 &&
  6030. !sIsOpen &&
  6031. tool.tool.indexOf(52) != -1
  6032. "
  6033. class="worksBox"
  6034. >
  6035. <div
  6036. class="zuoyeYulan"
  6037. v-if="workStudent[toolIndex].length > 0"
  6038. >
  6039. <span>作业预览</span>
  6040. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6041. </div>
  6042. <div
  6043. class="worksDetailBox"
  6044. v-if="workStudent[toolIndex].length > 0"
  6045. >
  6046. <div
  6047. class="works"
  6048. style="
  6049. width: 200px;
  6050. height: 140px;
  6051. margin: 10px 10px 10px 0;
  6052. box-shadow: 0 0 6px 1px #dfdada;
  6053. "
  6054. v-for="(w, wIndex) in workStudent[toolIndex]"
  6055. :key="wIndex"
  6056. >
  6057. <div class="workImg">
  6058. <img :src="word" @click="openWord(w)" alt />
  6059. <div
  6060. class="answerScore"
  6061. v-if="w.score"
  6062. @click.stop="openScore(w)"
  6063. :class="{
  6064. rightW:
  6065. w.userid == userid || tType == 1 || tType == 4,
  6066. }"
  6067. >
  6068. {{ JSON.parse(w.score).wScore }}分
  6069. </div>
  6070. <div
  6071. class="answerScore"
  6072. @click.stop="openScore(w)"
  6073. v-else-if="courseDetail.userid == userid"
  6074. :class="{
  6075. rightW:
  6076. w.userid == userid || tType == 1 || tType == 4,
  6077. }"
  6078. >
  6079. 评分
  6080. </div>
  6081. <img
  6082. class="deleteImg"
  6083. src="../assets/deleteworks.png"
  6084. v-if="
  6085. w.userid == userid || tType == 1 || tType == 4
  6086. "
  6087. @click.stop="deleteWorks(w.wid)"
  6088. alt
  6089. />
  6090. </div>
  6091. <div class="worksName">
  6092. <div>{{ w.sName }}</div>
  6093. </div>
  6094. </div>
  6095. </div>
  6096. </div>
  6097. <div
  6098. v-if="tool.tool.indexOf(49) != -1"
  6099. class="xuan_right_box"
  6100. >
  6101. <div
  6102. v-if="courseDetail.userid == userid"
  6103. style="display: flex; justify-content: flex-end"
  6104. >
  6105. <el-button
  6106. type="primary"
  6107. size="small"
  6108. @click="addTools(49, toolIndex, taskCount)"
  6109. >分组设置</el-button
  6110. >
  6111. </div>
  6112. <div
  6113. v-if="groupStudentUid[toolIndex]"
  6114. class="group_staic_box"
  6115. >
  6116. <div
  6117. v-for="(gp, gd) in tool.groupJson.group"
  6118. :key="gd"
  6119. class="group_staic"
  6120. >
  6121. <span> {{ gp.name }}</span>
  6122. <span>
  6123. 目前人数{{
  6124. groupStudentUid[toolIndex][gd].length
  6125. }}人</span
  6126. >
  6127. </div>
  6128. </div>
  6129. </div>
  6130. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6131. <div
  6132. class="zuoyeYulan"
  6133. v-if="
  6134. worksStudent.length &&
  6135. worksStudent[toolIndex].length > 0
  6136. "
  6137. >
  6138. <span>作业预览</span>
  6139. </div>
  6140. <div>
  6141. <div
  6142. class="group_workBox"
  6143. v-for="(g, gindex) in tool.groupJson.group"
  6144. :key="gindex"
  6145. >
  6146. <div
  6147. class="group_box"
  6148. v-if="
  6149. groupStudentUid[toolIndex] &&
  6150. worksStudent[toolIndex] &&
  6151. (worksStudent[toolIndex][gindex].length ||
  6152. groupStudentUid[toolIndex][gindex].indexOf(
  6153. userid
  6154. ) != -1)
  6155. "
  6156. >
  6157. <div class="group_title">
  6158. <el-tooltip
  6159. class="item"
  6160. effect="light"
  6161. :content="g.name"
  6162. placement="top"
  6163. >
  6164. <div class="group_name">{{ g.name }}</div>
  6165. </el-tooltip>
  6166. <el-button
  6167. type="primary"
  6168. v-if="
  6169. groupStudentUid[toolIndex][gindex].indexOf(
  6170. userid
  6171. ) != -1
  6172. "
  6173. @click="groupUpload(toolIndex, taskCount, gindex)"
  6174. >上传作业</el-button
  6175. >
  6176. </div>
  6177. <div class="group_work">
  6178. <div
  6179. class="works"
  6180. style="
  6181. width: 200px;
  6182. height: 140px;
  6183. margin: 10px 10px 10px 0;
  6184. border-radius: 15px;
  6185. box-shadow: 0 0 6px 1px #dfdada;
  6186. "
  6187. v-for="(w, wIndex) in worksStudent[toolIndex][
  6188. gindex
  6189. ]"
  6190. :key="wIndex"
  6191. :class="w.type == 1 ? 'isTypeOne' : ''"
  6192. >
  6193. <div class="workImg" v-if="w.type == 0">
  6194. <img
  6195. :src="w.works"
  6196. @click="previewImg(w.works)"
  6197. alt
  6198. />
  6199. <div
  6200. class="answerScore"
  6201. v-if="w.score"
  6202. @click.stop="openScore(w)"
  6203. :class="{
  6204. rightW:
  6205. w.userid == userid ||
  6206. tType == 1 ||
  6207. tType == 4 ||
  6208. w.ateacher == userid,
  6209. }"
  6210. >
  6211. {{ JSON.parse(w.score).wScore }}分
  6212. </div>
  6213. <div
  6214. class="answerScore"
  6215. @click.stop="openScore(w)"
  6216. v-else-if="courseDetail.userid == userid"
  6217. :class="{
  6218. rightW:
  6219. w.userid == userid ||
  6220. tType == 1 ||
  6221. tType == 4 ||
  6222. w.ateacher == userid,
  6223. }"
  6224. >
  6225. 评分
  6226. </div>
  6227. <img
  6228. class="deleteImg"
  6229. src="../assets/deleteworks.png"
  6230. v-if="
  6231. w.userid == userid ||
  6232. tType == 1 ||
  6233. tType == 4
  6234. "
  6235. @click.stop="deleteWorks(w.wid)"
  6236. alt
  6237. />
  6238. </div>
  6239. <div class="workImg" v-if="w.type == 1">
  6240. <img
  6241. :src="word"
  6242. @click="openFile(w.works)"
  6243. alt
  6244. />
  6245. <!-- @click="openFile(w.works)" -->
  6246. <div
  6247. class="answerScore"
  6248. v-if="w.score"
  6249. @click.stop="openScore(w)"
  6250. :class="{
  6251. rightW:
  6252. w.userid == userid ||
  6253. tType == 1 ||
  6254. tType == 4 ||
  6255. w.ateacher == userid,
  6256. }"
  6257. >
  6258. {{ JSON.parse(w.score).wScore }}分
  6259. </div>
  6260. <div
  6261. class="answerScore"
  6262. @click.stop="openScore(w)"
  6263. v-else-if="courseDetail.userid == userid"
  6264. :class="{
  6265. rightW:
  6266. w.userid == userid ||
  6267. tType == 1 ||
  6268. tType == 4 ||
  6269. w.ateacher == userid,
  6270. }"
  6271. >
  6272. 评分
  6273. </div>
  6274. <img
  6275. class="deleteImg"
  6276. src="../assets/deleteworks.png"
  6277. v-if="
  6278. w.userid == userid ||
  6279. tType == 1 ||
  6280. tType == 4
  6281. "
  6282. @click.stop="deleteWorks(w.wid)"
  6283. alt
  6284. />
  6285. </div>
  6286. <div class="workImg" v-if="w.type == 3">
  6287. <img
  6288. style="cursor: pointer"
  6289. :src="video"
  6290. @click="openVideo(w)"
  6291. alt
  6292. />
  6293. <!-- @click="openVideo(w.works)" -->
  6294. <div
  6295. class="answerScore"
  6296. v-if="w.score"
  6297. @click.stop="openScore(w)"
  6298. :class="{
  6299. rightW:
  6300. w.userid == userid ||
  6301. tType == 1 ||
  6302. tType == 4 ||
  6303. w.ateacher == userid,
  6304. }"
  6305. >
  6306. {{ JSON.parse(w.score).wScore }}分
  6307. </div>
  6308. <div
  6309. class="answerScore"
  6310. @click.stop="openScore(w)"
  6311. v-else-if="courseDetail.userid == userid"
  6312. :class="{
  6313. rightW:
  6314. w.userid == userid ||
  6315. tType == 1 ||
  6316. tType == 4 ||
  6317. w.ateacher == userid,
  6318. }"
  6319. >
  6320. 评分
  6321. </div>
  6322. <img
  6323. class="deleteImg"
  6324. src="../assets/deleteworks.png"
  6325. v-if="
  6326. w.userid == userid ||
  6327. tType == 1 ||
  6328. tType == 4
  6329. "
  6330. @click.stop="deleteWorks(w.wid)"
  6331. alt
  6332. />
  6333. </div>
  6334. <div class="workImg" v-if="w.type == 12">
  6335. <img
  6336. style="cursor: pointer"
  6337. :src="word2"
  6338. @click="downloadFile(w.works)"
  6339. alt
  6340. />
  6341. <!-- @click="openVideo(w.works)" -->
  6342. <div
  6343. class="answerScore"
  6344. v-if="w.score"
  6345. @click.stop="openScore(w)"
  6346. :class="{
  6347. rightW:
  6348. w.userid == userid ||
  6349. tType == 1 ||
  6350. tType == 4 ||
  6351. w.ateacher == userid,
  6352. }"
  6353. >
  6354. {{ JSON.parse(w.score).wScore }}分
  6355. </div>
  6356. <div
  6357. class="answerScore"
  6358. @click.stop="openScore(w)"
  6359. v-else-if="courseDetail.userid == userid"
  6360. :class="{
  6361. rightW:
  6362. w.userid == userid ||
  6363. tType == 1 ||
  6364. tType == 4 ||
  6365. w.ateacher == userid,
  6366. }"
  6367. >
  6368. 评分
  6369. </div>
  6370. <img
  6371. class="deleteImg"
  6372. src="../assets/deleteworks.png"
  6373. v-if="
  6374. w.userid == userid ||
  6375. tType == 1 ||
  6376. tType == 4
  6377. "
  6378. @click.stop="deleteWorks(w.wid)"
  6379. alt
  6380. />
  6381. </div>
  6382. <div class="comment" style="min-width: 200px">
  6383. <div class="worksName">
  6384. <div>{{ w.sName }}</div>
  6385. </div>
  6386. <div class="commentList">
  6387. <div class="commentList">
  6388. <div
  6389. class="commentImg"
  6390. @click="
  6391. isLikes(
  6392. w.wid,
  6393. userid,
  6394. 1,
  6395. null,
  6396. w.isLikes
  6397. )
  6398. "
  6399. >
  6400. <img
  6401. :src="
  6402. w.isLikes == true ? likes : noLikes
  6403. "
  6404. alt=""
  6405. />
  6406. </div>
  6407. <div>{{ w.likesCount }}</div>
  6408. </div>
  6409. <div
  6410. class="commentList"
  6411. style="margin-right: 15px"
  6412. >
  6413. <div
  6414. class="commentImg"
  6415. @click="
  6416. commentOther(
  6417. w,
  6418. toolIndex,
  6419. wIndex,
  6420. gindex
  6421. )
  6422. "
  6423. >
  6424. <img
  6425. src="../assets/icon/comment/comment.png"
  6426. alt=""
  6427. />
  6428. </div>
  6429. <div>{{ w.commentCount }}</div>
  6430. </div>
  6431. </div>
  6432. </div>
  6433. </div>
  6434. </div>
  6435. </div>
  6436. </div>
  6437. </div>
  6438. </div>
  6439. </div>
  6440. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  6441. 上传文件
  6442. <input
  6443. type="file"
  6444. accept="image/png, image/gif, image/jpeg"
  6445. style="display: none"
  6446. @change="beforeUpload1($event, 2, index)"
  6447. />
  6448. </div>-->
  6449. </div>
  6450. </div>
  6451. <div
  6452. class="vedioBox"
  6453. style="margin-top: 10px"
  6454. v-if="
  6455. courseDetail.userid == userid ||
  6456. (courseDetail.course_teacher &&
  6457. courseDetail.course_teacher.indexOf(userid) != -1)
  6458. "
  6459. :style="{
  6460. borderRadius:
  6461. !(
  6462. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6463. .toolChoose[0].tool &&
  6464. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6465. .toolChoose[0].tool.length > 0
  6466. ) &&
  6467. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6468. .taskDetail == '' &&
  6469. vChapterData[taskCount].length == 0 &&
  6470. fileC[taskCount].length == 0
  6471. ? '0 0 20px 20px'
  6472. : '20px',
  6473. }"
  6474. >
  6475. <div
  6476. class="queTop"
  6477. @click="isClose = !isClose"
  6478. style="
  6479. padding: 15px 0 15px 37px;
  6480. justify-content: space-between;
  6481. "
  6482. >
  6483. <div class="queTopTitle">新增工具</div>
  6484. <div class="queTopRight">
  6485. <div class="queTopClose" v-if="isClose == 0">
  6486. 展开
  6487. <div class="closeImg">
  6488. <img src="../assets/icon/newIcon/close.png" alt="" />
  6489. </div>
  6490. </div>
  6491. <div class="queTopClose" v-if="isClose == 1">
  6492. 收缩
  6493. <div class="openImg">
  6494. <img src="../assets/icon/newIcon/open.png" alt="" />
  6495. </div>
  6496. </div>
  6497. <el-button
  6498. style="margin: 0 30px 0 auto"
  6499. type="primary"
  6500. size="small"
  6501. v-if="isClose == 1 && checktoolArray.length > 0"
  6502. @click.stop="addToolChoose"
  6503. >确定</el-button
  6504. >
  6505. </div>
  6506. </div>
  6507. <div
  6508. class="tool_work_box"
  6509. :style="isClose == 0 ? 'display:none' : 'display:block'"
  6510. >
  6511. <div class="tool_box">
  6512. <div class="tool_type_box">
  6513. <div class="chooseWho">
  6514. <div
  6515. :class="toolType == 0 ? 'isChooseActive' : ''"
  6516. @click="(toolType = 0), $forceUpdate()"
  6517. >
  6518. 互动类
  6519. </div>
  6520. <div
  6521. :class="toolType == 1 ? 'isChooseActive' : ''"
  6522. @click="(toolType = 1), $forceUpdate()"
  6523. >
  6524. 思维类
  6525. </div>
  6526. <!-- <div
  6527. :class="toolType == 6 ? 'isChooseActive' : ''"
  6528. @click="(toolType = 6), $forceUpdate()"
  6529. >
  6530. 协作类
  6531. </div> -->
  6532. <div
  6533. :class="toolType == 2 ? 'isChooseActive' : ''"
  6534. @click="(toolType = 2), $forceUpdate()"
  6535. >
  6536. 测评类
  6537. </div>
  6538. <!-- <div
  6539. :class="toolType == 7 ? 'isChooseActive' : ''"
  6540. @click="(toolType = 7), $forceUpdate()"
  6541. >
  6542. 评价类
  6543. </div> -->
  6544. <div
  6545. :class="toolType == 3 ? 'isChooseActive' : ''"
  6546. @click="(toolType = 3), $forceUpdate()"
  6547. >
  6548. 编程类
  6549. </div>
  6550. <div
  6551. :class="toolType == 5 ? 'isChooseActive' : ''"
  6552. @click="(toolType = 5), $forceUpdate()"
  6553. >
  6554. 学科类
  6555. </div>
  6556. <!-- <div :class="toolType == 4 ? 'isChooseActive' : ''
  6557. " @click="(toolType = 4), $forceUpdate()">
  6558. 其他
  6559. </div> -->
  6560. </div>
  6561. </div>
  6562. <div>
  6563. <div class="toolSort" v-if="toolType == 0">
  6564. <div class="tool">
  6565. <div class="whiteBIcon" @click="addTools2(10)">
  6566. <img
  6567. src="../assets/icon/thirdToolList/time.png"
  6568. alt
  6569. />
  6570. <div style="margin: 5px 0">倒计时</div>
  6571. </div>
  6572. <div class="check" @click="addTools2(10)">
  6573. <img
  6574. src="../assets/icon/checkNo.png"
  6575. alt
  6576. v-if="checktoolArray.indexOf(10) == -1"
  6577. />
  6578. <div class="checkDiv" v-else>
  6579. <img src="../assets/icon/checkedIs.png" alt /><span
  6580. >已选择</span
  6581. >
  6582. </div>
  6583. </div>
  6584. </div>
  6585. <div class="tool">
  6586. <div class="whiteBIcon" @click="addTools2(65)">
  6587. <img
  6588. src="../assets/icon/firstToolList/pickPeople.png"
  6589. alt
  6590. />
  6591. <div style="margin: 5px 0">挑人</div>
  6592. </div>
  6593. <div class="check" @click="addTools2(65)">
  6594. <img
  6595. src="../assets/icon/checkNo.png"
  6596. alt
  6597. v-if="checktoolArray.indexOf(65) == -1"
  6598. />
  6599. <div class="checkDiv" v-else>
  6600. <img src="../assets/icon/checkedIs.png" alt /><span
  6601. >已选择</span
  6602. >
  6603. </div>
  6604. </div>
  6605. </div>
  6606. </div>
  6607. <div class="toolSort" v-if="toolType == 1">
  6608. <div class="tool">
  6609. <div class="whiteBIcon" @click="addTools2(7)">
  6610. <img
  6611. src="../assets/icon/secondToolList/mindNetwork.png"
  6612. alt
  6613. />
  6614. <div style="margin: 5px 0">思维网格</div>
  6615. </div>
  6616. <div class="check" @click="addTools2(7)">
  6617. <img
  6618. src="../assets/icon/checkNo.png"
  6619. alt
  6620. v-if="checktoolArray.indexOf(7) == -1"
  6621. />
  6622. <div class="checkDiv" v-else>
  6623. <img src="../assets/icon/checkedIs.png" alt /><span
  6624. >已选择</span
  6625. >
  6626. </div>
  6627. </div>
  6628. </div>
  6629. <div class="tool">
  6630. <div class="whiteBIcon" @click="addTools2(1)">
  6631. <img
  6632. src="../assets/icon/secondToolList/whiteBoard.png"
  6633. alt
  6634. />
  6635. <div style="margin: 5px 0">电子白板</div>
  6636. </div>
  6637. <div class="check" @click="addTools2(1)">
  6638. <img
  6639. src="../assets/icon/checkNo.png"
  6640. alt
  6641. v-if="checktoolArray.indexOf(1) == -1"
  6642. />
  6643. <div class="checkDiv" v-else>
  6644. <img src="../assets/icon/checkedIs.png" alt /><span
  6645. >已选择</span
  6646. >
  6647. </div>
  6648. </div>
  6649. </div>
  6650. <div class="tool">
  6651. <div class="whiteBIcon" @click="addTools2(52)">
  6652. <img
  6653. src="../assets/icon/fourthToolList/text.png"
  6654. alt
  6655. />
  6656. <div style="margin: 5px 0">文档</div>
  6657. </div>
  6658. <div class="check" @click="addTools2(52)">
  6659. <img
  6660. src="../assets/icon/checkNo.png"
  6661. alt
  6662. v-if="checktoolArray.indexOf(52) == -1"
  6663. />
  6664. <div class="checkDiv" v-else>
  6665. <img src="../assets/icon/checkedIs.png" alt /><span
  6666. >已选择</span
  6667. >
  6668. </div>
  6669. </div>
  6670. </div>
  6671. <div class="tool">
  6672. <div class="whiteBIcon" @click="addTools2(3)">
  6673. <img
  6674. src="../assets/icon/secondToolList/mindMapping.png"
  6675. alt
  6676. />
  6677. <div style="margin: 5px 0">思维导图</div>
  6678. </div>
  6679. <div class="check" @click="addTools2(3)">
  6680. <img
  6681. src="../assets/icon/checkNo.png"
  6682. alt
  6683. v-if="checktoolArray.indexOf(3) == -1"
  6684. />
  6685. <div class="checkDiv" v-else>
  6686. <img src="../assets/icon/checkedIs.png" alt /><span
  6687. >已选择</span
  6688. >
  6689. </div>
  6690. </div>
  6691. </div>
  6692. <div class="tool">
  6693. <div class="whiteBIcon" @click="addTools2(48)">
  6694. <img
  6695. src="../assets/icon/fourthToolList/table.png"
  6696. alt
  6697. />
  6698. <div style="margin: 5px 0">表格</div>
  6699. </div>
  6700. <div class="check" @click="addTools2(48)">
  6701. <img
  6702. src="../assets/icon/checkNo.png"
  6703. alt
  6704. v-if="checktoolArray.indexOf(48) == -1"
  6705. />
  6706. <div class="checkDiv" v-else>
  6707. <img src="../assets/icon/checkedIs.png" alt /><span
  6708. >已选择</span
  6709. >
  6710. </div>
  6711. </div>
  6712. </div>
  6713. </div>
  6714. <div class="toolSort" v-if="toolType == 6">
  6715. <div v-show="tooC == 49">
  6716. <img
  6717. @click="addTools(tooC, toolIndex, taskCount)"
  6718. src="../assets/icon/fourthToolList/group.png"
  6719. alt
  6720. />
  6721. <div style="margin: 5px 0">学生分组</div>
  6722. </div>
  6723. </div>
  6724. <div class="toolSort" v-if="toolType == 2">
  6725. <div class="tool">
  6726. <div class="whiteBIcon" @click="addTools2(16)">
  6727. <img
  6728. src="../assets/icon/thirdToolList/work.png"
  6729. alt
  6730. />
  6731. <div style="margin: 5px 0">作业提交</div>
  6732. </div>
  6733. <div class="check" @click="addTools2(16)">
  6734. <img
  6735. src="../assets/icon/checkNo.png"
  6736. alt
  6737. v-if="checktoolArray.indexOf(16) == -1"
  6738. />
  6739. <div class="checkDiv" v-else>
  6740. <img src="../assets/icon/checkedIs.png" alt /><span
  6741. >已选择</span
  6742. >
  6743. </div>
  6744. </div>
  6745. </div>
  6746. <div class="tool">
  6747. <div class="whiteBIcon" @click="addTools2(50)">
  6748. <img
  6749. src="../assets/icon/thirdToolList/plwork.png"
  6750. alt
  6751. />
  6752. <div style="margin: 5px 0">批量上传</div>
  6753. </div>
  6754. <div class="check" @click="addTools2(50)">
  6755. <img
  6756. src="../assets/icon/checkNo.png"
  6757. alt
  6758. v-if="checktoolArray.indexOf(50) == -1"
  6759. />
  6760. <div class="checkDiv" v-else>
  6761. <img src="../assets/icon/checkedIs.png" alt /><span
  6762. >已选择</span
  6763. >
  6764. </div>
  6765. </div>
  6766. </div>
  6767. </div>
  6768. <div class="toolSort" v-if="toolType == 3">
  6769. <div class="tool">
  6770. <div class="whiteBIcon" @click="addTools2(18)">
  6771. <img
  6772. src="../assets/icon/thirdToolList/trainPlatform.png"
  6773. alt
  6774. />
  6775. <div style="margin: 5px 0">训练平台</div>
  6776. </div>
  6777. <div class="check" @click="addTools2(18)">
  6778. <img
  6779. src="../assets/icon/checkNo.png"
  6780. alt
  6781. v-if="checktoolArray.indexOf(18) == -1"
  6782. />
  6783. <div class="checkDiv" v-else>
  6784. <img src="../assets/icon/checkedIs.png" alt /><span
  6785. >已选择</span
  6786. >
  6787. </div>
  6788. </div>
  6789. </div>
  6790. <div class="tool">
  6791. <div class="whiteBIcon" @click="addTools2(21)">
  6792. <img
  6793. src="../assets/icon/fourthToolList/program.png"
  6794. alt
  6795. />
  6796. <div style="margin: 5px 0">AIoT Blockly</div>
  6797. </div>
  6798. <div class="check" @click="addTools2(21)">
  6799. <img
  6800. src="../assets/icon/checkNo.png"
  6801. alt
  6802. v-if="checktoolArray.indexOf(21) == -1"
  6803. />
  6804. <div class="checkDiv" v-else>
  6805. <img src="../assets/icon/checkedIs.png" alt /><span
  6806. >已选择</span
  6807. >
  6808. </div>
  6809. </div>
  6810. </div>
  6811. <!-- <div class="tool">
  6812. <div class="whiteBIcon" @click="addTools2(22)">
  6813. <img
  6814. src="../assets/icon/fourthToolList/AIprogram2.png"
  6815. alt
  6816. />
  6817. <div style="margin: 5px 0">AI体验</div>
  6818. </div>
  6819. <div class="check" @click="addTools2(22)">
  6820. <img
  6821. src="../assets/icon/checkNo.png"
  6822. alt
  6823. v-if="checktoolArray.indexOf(22) == -1"
  6824. />
  6825. <div class="checkDiv" v-else>
  6826. <img src="../assets/icon/checkedIs.png" alt /><span
  6827. >已选择</span
  6828. >
  6829. </div>
  6830. </div>
  6831. </div> -->
  6832. <div class="tool">
  6833. <div class="whiteBIcon" @click="addTools2(23)">
  6834. <img
  6835. src="../assets/icon/fourthToolList/Pythonprogram.png"
  6836. alt
  6837. />
  6838. <div style="margin: 5px 0">AI Python</div>
  6839. </div>
  6840. <div class="check" @click="addTools2(23)">
  6841. <img
  6842. src="../assets/icon/checkNo.png"
  6843. alt
  6844. v-if="checktoolArray.indexOf(23) == -1"
  6845. />
  6846. <div class="checkDiv" v-else>
  6847. <img src="../assets/icon/checkedIs.png" alt /><span
  6848. >已选择</span
  6849. >
  6850. </div>
  6851. </div>
  6852. </div>
  6853. <div class="tool">
  6854. <div class="whiteBIcon" @click="addTools2(24)">
  6855. <img
  6856. src="../assets/icon/fourthToolList/AIprogram.png"
  6857. alt
  6858. />
  6859. <div style="margin: 5px 0">AI Blockly</div>
  6860. </div>
  6861. <div class="check" @click="addTools2(24)">
  6862. <img
  6863. src="../assets/icon/checkNo.png"
  6864. alt
  6865. v-if="checktoolArray.indexOf(24) == -1"
  6866. />
  6867. <div class="checkDiv" v-else>
  6868. <img src="../assets/icon/checkedIs.png" alt /><span
  6869. >已选择</span
  6870. >
  6871. </div>
  6872. </div>
  6873. </div>
  6874. <div class="tool">
  6875. <div class="whiteBIcon" @click="addTools2(32)">
  6876. <img
  6877. src="../assets/icon/thirdToolList/code.png"
  6878. alt
  6879. />
  6880. <div style="margin: 5px 0">源码编辑</div>
  6881. </div>
  6882. <div class="check" @click="addTools2(32)">
  6883. <img
  6884. src="../assets/icon/checkNo.png"
  6885. alt
  6886. v-if="checktoolArray.indexOf(32) == -1"
  6887. />
  6888. <div class="checkDiv" v-else>
  6889. <img src="../assets/icon/checkedIs.png" alt /><span
  6890. >已选择</span
  6891. >
  6892. </div>
  6893. </div>
  6894. </div>
  6895. <div class="tool">
  6896. <div class="whiteBIcon" @click="addTools2(57)">
  6897. <img
  6898. src="../assets/icon/fourthToolList/cocopi.png"
  6899. alt
  6900. />
  6901. <div style="margin: 5px 0">CocoPi</div>
  6902. </div>
  6903. <div class="check" @click="addTools2(57)">
  6904. <img
  6905. src="../assets/icon/checkNo.png"
  6906. alt
  6907. v-if="checktoolArray.indexOf(57) == -1"
  6908. />
  6909. <div class="checkDiv" v-else>
  6910. <img src="../assets/icon/checkedIs.png" alt /><span
  6911. >已选择</span
  6912. >
  6913. </div>
  6914. </div>
  6915. </div>
  6916. <div class="tool">
  6917. <div class="whiteBIcon" @click="addTools2(63)">
  6918. <img
  6919. src="../assets/icon/fourthToolList/Wood.png"
  6920. alt
  6921. />
  6922. <div style="margin: 5px 0">海龟编程</div>
  6923. </div>
  6924. <div class="check" @click="addTools2(63)">
  6925. <img
  6926. src="../assets/icon/checkNo.png"
  6927. alt
  6928. v-if="checktoolArray.indexOf(63) == -1"
  6929. />
  6930. <div class="checkDiv" v-else>
  6931. <img src="../assets/icon/checkedIs.png" alt /><span
  6932. >已选择</span
  6933. >
  6934. </div>
  6935. </div>
  6936. </div>
  6937. </div>
  6938. <div class="toolSort" v-if="toolType == 5">
  6939. <div class="tool">
  6940. <div class="whiteBIcon" @click="addTools2(28)">
  6941. <img
  6942. src="../assets/icon/secondToolList/translation.png"
  6943. alt
  6944. />
  6945. <div style="margin: 5px 0">翻译</div>
  6946. </div>
  6947. <div class="check" @click="addTools2(28)">
  6948. <img
  6949. src="../assets/icon/checkNo.png"
  6950. alt
  6951. v-if="checktoolArray.indexOf(28) == -1"
  6952. />
  6953. <div class="checkDiv" v-else>
  6954. <img src="../assets/icon/checkedIs.png" alt /><span
  6955. >已选择</span
  6956. >
  6957. </div>
  6958. </div>
  6959. </div>
  6960. <div class="tool">
  6961. <div class="whiteBIcon" @click="addTools2(31)">
  6962. <img
  6963. src="../assets/icon/secondToolList/networkPanel.png"
  6964. alt
  6965. />
  6966. <div style="margin: 5px 0">数字画板</div>
  6967. </div>
  6968. <div class="check" @click="addTools2(31)">
  6969. <img
  6970. src="../assets/icon/checkNo.png"
  6971. alt
  6972. v-if="checktoolArray.indexOf(31) == -1"
  6973. />
  6974. <div class="checkDiv" v-else>
  6975. <img src="../assets/icon/checkedIs.png" alt /><span
  6976. >已选择</span
  6977. >
  6978. </div>
  6979. </div>
  6980. </div>
  6981. <div class="tool">
  6982. <div class="whiteBIcon" @click="addTools2(39)">
  6983. <img
  6984. src="../assets/icon/secondToolList/GeoGebra.png"
  6985. alt
  6986. />
  6987. <div style="margin: 5px 0">GeoGebra</div>
  6988. </div>
  6989. <div class="check" @click="addTools2(39)">
  6990. <img
  6991. src="../assets/icon/checkNo.png"
  6992. alt
  6993. v-if="checktoolArray.indexOf(39) == -1"
  6994. />
  6995. <div class="checkDiv" v-else>
  6996. <img src="../assets/icon/checkedIs.png" alt /><span
  6997. >已选择</span
  6998. >
  6999. </div>
  7000. </div>
  7001. </div>
  7002. <div class="tool">
  7003. <div class="whiteBIcon" @click="addTools2(66)">
  7004. <img
  7005. src="../assets/icon/secondToolList/formulaEdi.png"
  7006. alt
  7007. />
  7008. <div style="margin: 5px 0">公式编辑</div>
  7009. </div>
  7010. <div class="check" @click="addTools2(66)">
  7011. <img
  7012. src="../assets/icon/checkNo.png"
  7013. alt
  7014. v-if="checktoolArray.indexOf(66) == -1"
  7015. />
  7016. <div class="checkDiv" v-else>
  7017. <img src="../assets/icon/checkedIs.png" alt /><span
  7018. >已选择</span
  7019. >
  7020. </div>
  7021. </div>
  7022. </div>
  7023. <div class="tool">
  7024. <div class="whiteBIcon" @click="addTools2(67)">
  7025. <img
  7026. src="../assets/icon/secondToolList/molStr.png"
  7027. alt
  7028. />
  7029. <div style="margin: 5px 0">分子结构</div>
  7030. </div>
  7031. <div class="check" @click="addTools2(67)">
  7032. <img
  7033. src="../assets/icon/checkNo.png"
  7034. alt
  7035. v-if="checktoolArray.indexOf(67) == -1"
  7036. />
  7037. <div class="checkDiv" v-else>
  7038. <img src="../assets/icon/checkedIs.png" alt /><span
  7039. >已选择</span
  7040. >
  7041. </div>
  7042. </div>
  7043. </div>
  7044. <div class="tool">
  7045. <div class="whiteBIcon" @click="addTools2(68)">
  7046. <img
  7047. src="../assets/icon/secondToolList/timeAxis.png"
  7048. alt
  7049. />
  7050. <div style="margin: 5px 0">时间轴</div>
  7051. </div>
  7052. <div class="check" @click="addTools2(68)">
  7053. <img
  7054. src="../assets/icon/checkNo.png"
  7055. alt
  7056. v-if="checktoolArray.indexOf(68) == -1"
  7057. />
  7058. <div class="checkDiv" v-else>
  7059. <img src="../assets/icon/checkedIs.png" alt /><span
  7060. >已选择</span
  7061. >
  7062. </div>
  7063. </div>
  7064. </div>
  7065. </div>
  7066. <div class="toolSort" v-if="toolType == 7">
  7067. <div class="tool">
  7068. <div class="whiteBIcon" @click="addTools2(40)">
  7069. <img
  7070. src="../assets/icon/secondToolList/eval.png"
  7071. alt
  7072. />
  7073. <div style="margin: 5px 0">个人评价</div>
  7074. </div>
  7075. <div class="check" @click="addTools2(40)">
  7076. <img
  7077. src="../assets/icon/checkNo.png"
  7078. alt
  7079. v-if="checktoolArray.indexOf(40) == -1"
  7080. />
  7081. <div class="checkDiv" v-else>
  7082. <img src="../assets/icon/checkedIs.png" alt /><span
  7083. >已选择</span
  7084. >
  7085. </div>
  7086. </div>
  7087. </div>
  7088. </div>
  7089. <div class="toolSort" v-if="toolType == 4">
  7090. <div class="tool">
  7091. <div class="whiteBIcon" @click="addTools2(26)">
  7092. <img
  7093. src="../assets/icon/thirdToolList/courseDesign.png"
  7094. alt
  7095. />
  7096. <div style="margin: 5px 0">课程设计</div>
  7097. </div>
  7098. <div class="check" @click="addTools2(26)">
  7099. <img
  7100. src="../assets/icon/checkNo.png"
  7101. alt
  7102. v-if="checktoolArray.indexOf(26) == -1"
  7103. />
  7104. <div class="checkDiv" v-else>
  7105. <img src="../assets/icon/checkedIs.png" alt /><span
  7106. >已选择</span
  7107. >
  7108. </div>
  7109. </div>
  7110. </div>
  7111. <div class="tool">
  7112. <div class="whiteBIcon" @click="addTools2(25)">
  7113. <img
  7114. src="../assets/icon/thirdToolList/evalua.png"
  7115. alt
  7116. />
  7117. <div style="margin: 5px 0">目标管理</div>
  7118. </div>
  7119. <div class="check" @click="addTools2(25)">
  7120. <img
  7121. src="../assets/icon/checkNo.png"
  7122. alt
  7123. v-if="checktoolArray.indexOf(25) == -1"
  7124. />
  7125. <div class="checkDiv" v-else>
  7126. <img src="../assets/icon/checkedIs.png" alt /><span
  7127. >已选择</span
  7128. >
  7129. </div>
  7130. </div>
  7131. </div>
  7132. </div>
  7133. </div>
  7134. </div>
  7135. </div>
  7136. </div>
  7137. <div
  7138. class="vedioBox"
  7139. style="margin-top: 10px; border-radius: 20px"
  7140. v-if="
  7141. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7142. .eList &&
  7143. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7144. .eList.length &&
  7145. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7146. .eList.length > 0 &&
  7147. tType != 2
  7148. "
  7149. >
  7150. <div
  7151. class="queTop"
  7152. style="
  7153. font-size: 20px;
  7154. padding: 15px 0 15px 37px;
  7155. font-weight: bold;
  7156. "
  7157. >
  7158. <!-- <div class="question" style="width: 30px">
  7159. <img src="../assets/icon/toolIcon.png" alt />
  7160. </div>
  7161. <div class="queTitle">
  7162. <div>工具</div>
  7163. </div>-->
  7164. 评一评
  7165. </div>
  7166. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7167. <div class="elist_input">
  7168. <el-table
  7169. :data="
  7170. chapInfoList[courseType].chapterInfo[0].taskJson[
  7171. taskCount
  7172. ].eList
  7173. "
  7174. :header-cell-style="{ background: '#F0F4FA' }"
  7175. :row-class-name="tableRowClassName"
  7176. border
  7177. stripe
  7178. style="width: 100%"
  7179. >
  7180. <el-table-column
  7181. label="评价名称"
  7182. width="180"
  7183. align="center"
  7184. >
  7185. <template slot-scope="scope"
  7186. ><div>{{ scope.row.value }}</div></template
  7187. >
  7188. </el-table-column>
  7189. <el-table-column
  7190. label="评价描述"
  7191. width="180"
  7192. align="center"
  7193. >
  7194. <template slot-scope="scope"
  7195. ><div>
  7196. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7197. </div></template
  7198. >
  7199. </el-table-column>
  7200. <el-table-column label="目标" align="center">
  7201. <template slot-scope="scope"
  7202. ><div>
  7203. {{
  7204. scope.row.target
  7205. ? scope.row.target[scope.row.target.length - 1]
  7206. : "-"
  7207. }}
  7208. </div></template
  7209. ></el-table-column
  7210. >
  7211. </el-table>
  7212. <!-- <div
  7213. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7214. .chapterInfo[0].taskJson[taskCount].eList"
  7215. :key="eIndex"
  7216. class="elist_input_box"
  7217. >
  7218. <div style="width: 95%">
  7219. <div
  7220. style="
  7221. display: flex;
  7222. flex-direction: row;
  7223. flex-wrap: nowrap;
  7224. align-items: center;
  7225. "
  7226. >
  7227. <div style="max-width: calc(100% - 285px)">
  7228. <span>{{ eItem.value }}</span>
  7229. </div>
  7230. <div
  7231. style="
  7232. padding-left: 25px;
  7233. display: flex;
  7234. flex-direction: row;
  7235. align-items: center;
  7236. "
  7237. >
  7238. <el-rate
  7239. v-model="eItem.score"
  7240. :colors="colors"
  7241. disabled
  7242. ></el-rate>
  7243. </div>
  7244. </div>
  7245. <div class="elist_inptu_text" style="padding-left: 10px">
  7246. <span v-if="eItem.detail != ''">{{
  7247. eItem.detail
  7248. }}</span>
  7249. <span v-else style="color: #b2b1b3; font-size: 14px"
  7250. >暂无描述...</span
  7251. >
  7252. </div>
  7253. </div>
  7254. </div> -->
  7255. </div>
  7256. <div
  7257. v-if="evalua"
  7258. style="
  7259. border: 1px solid #e5e5e5;
  7260. max-width: 650px;
  7261. width: 100%;
  7262. margin-top: 20px;
  7263. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7264. "
  7265. >
  7266. <div class="e_add_top">
  7267. <div class="e_add_title">
  7268. <span>目标管理名称</span>
  7269. <span>{{ eTitle }}</span>
  7270. <img
  7271. src="../assets/line.png"
  7272. class="cru_line"
  7273. style="
  7274. width: 125px;
  7275. height: 20px;
  7276. bottom: -10px;
  7277. left: 120px;
  7278. "
  7279. />
  7280. <!-- <el-input
  7281. v-model="eTitle"
  7282. placeholder="请输入名称"
  7283. @change="setMindData"
  7284. ></el-input>-->
  7285. </div>
  7286. </div>
  7287. <div class="e_add_content">
  7288. <div class="e_add_list_pbox">
  7289. <div class="e_add_list_pbox_title">
  7290. <span class="type_title">切换模式</span>
  7291. <div class="type_content">
  7292. <span
  7293. :class="{ active: typeMode == 1 }"
  7294. @click="typeMode = 1"
  7295. >目标树</span
  7296. >
  7297. <span
  7298. :class="{ active: typeMode == 2 }"
  7299. @click="typeMode = 2"
  7300. >目标罗盘</span
  7301. >
  7302. <span
  7303. :class="{ active: typeMode == 3 }"
  7304. @click="typeMode = 3"
  7305. >目标看板</span
  7306. >
  7307. </div>
  7308. </div>
  7309. <div class="e_add_list_pbox_content">
  7310. <Mind
  7311. :showBar="false"
  7312. :mindData="data"
  7313. style="width: 100%"
  7314. v-show="typeMode == 1"
  7315. ></Mind>
  7316. <Sunburst
  7317. :Josn="eJson"
  7318. :num="eJSONNum"
  7319. style="width: 100%"
  7320. v-if="typeMode == 2"
  7321. ></Sunburst>
  7322. <SeeBoard
  7323. :Josn="eJson"
  7324. :num="eJSONNum"
  7325. :ename="eTitle"
  7326. style="width: 100%"
  7327. v-if="typeMode == 3"
  7328. >
  7329. </SeeBoard>
  7330. </div>
  7331. </div>
  7332. </div>
  7333. </div>
  7334. </div>
  7335. </div>
  7336. <!-- <div
  7337. class="project_box"
  7338. style="margin-top: 15px; padding-bottom: 30px"
  7339. >
  7340. <div
  7341. style="
  7342. display: flex;
  7343. flex-wrap: nowrap;
  7344. flex-direction: column;
  7345. position: relative;
  7346. "
  7347. >
  7348. <div class="queTop">
  7349. <div class="question">
  7350. <img src="../assets/icon/homeWork.png" alt="" />
  7351. </div>
  7352. <div class="queTitle">
  7353. <div>作业提交<span>(提交图文视频等)</span></div>
  7354. <div>:任务:{{ task.task }}</div>
  7355. </div>
  7356. </div>
  7357. <div class="ediBottom">
  7358. <div
  7359. class="addEditor"
  7360. style="margin-top: 23px"
  7361. @click="openAddWork"
  7362. v-if="!isNoHomeWork"
  7363. >
  7364. 选择文件
  7365. </div>
  7366. <div
  7367. class="addEditor"
  7368. style="margin-top: 23px"
  7369. @click="openAddWork"
  7370. v-else
  7371. >
  7372. 已提交
  7373. </div>
  7374. </div>
  7375. </div>
  7376. </div>-->
  7377. </div>
  7378. </div>
  7379. <el-dialog
  7380. title="作业提交"
  7381. :visible.sync="dialogVisible"
  7382. :append-to-body="true"
  7383. width="500px"
  7384. :before-close="handleClose"
  7385. class="dialog_change"
  7386. >
  7387. <div class="marginT">
  7388. <div>上传文件</div>
  7389. <div
  7390. class="chapter_add"
  7391. @click="addImg($event)"
  7392. v-if="studyJuri[0].cover.length == 0"
  7393. >
  7394. <div class="up_photo">
  7395. <img src="../assets/icon/uploadImg.png" alt />
  7396. </div>
  7397. <!-- <input
  7398. type="file"
  7399. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  7400. style="display: none"
  7401. @change="beforeUpload1($event, 1)"
  7402. /> -->
  7403. <input
  7404. type="file"
  7405. accept="*"
  7406. style="display: none"
  7407. @change="beforeUpload1($event, 1)"
  7408. />
  7409. <!-- <input
  7410. type="file"
  7411. accept="image/*"
  7412. capture="camera"
  7413. style="display: none"
  7414. @change="beforeUpload1($event, 1)"
  7415. /> -->
  7416. </div>
  7417. <div
  7418. class="chapter_add"
  7419. style="
  7420. display: flex;
  7421. width: 100%;
  7422. flex-direction: row;
  7423. flex-wrap: wrap;
  7424. justify-content: flex-start;
  7425. padding: 15px 0;
  7426. "
  7427. v-if="studyJuri[0].cover.length > 0"
  7428. >
  7429. <div class="upCover">
  7430. <img
  7431. :src="studyJuri[0].cover[0].url"
  7432. alt
  7433. v-if="fileType == 0"
  7434. />
  7435. <img :src="word" alt v-else-if="fileType == 1" />
  7436. <img :src="video" alt v-else-if="fileType == 2" />
  7437. <img :src="word2" alt v-else-if="fileType == 3" />
  7438. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  7439. <div class="deleteWord" @click="clean(1)">
  7440. <img src="../assets/icon/deleteWorks.png" alt />
  7441. </div>
  7442. </div>
  7443. </div>
  7444. </div>
  7445. <div
  7446. class="upload_send"
  7447. @click="addCourseWorks(taskCount)"
  7448. v-if="!proVisible"
  7449. >
  7450. 提交
  7451. </div>
  7452. </el-dialog>
  7453. </div>
  7454. </div>
  7455. <div
  7456. class="pButton"
  7457. @click="(pzDialog = true), selectPz()"
  7458. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  7459. >
  7460. <!-- 批 -->
  7461. <img src="../assets/mlBtn.png" style="width: 25px" alt="" />
  7462. </div>
  7463. <div v-if="pzDialog == true" class="newDialogCss">
  7464. <div class="pzTop2">
  7465. <!-- <div>批注</div>
  7466. <div @click="pzDialog = false">
  7467. <img src="../assets/close1.png" alt="" />
  7468. </div> -->
  7469. <div class="checkbox">
  7470. <div class="check" style="font-size: 25px">评课笔记</div>
  7471. <el-select v-model="pzStype" @change="selectPz" class="selectBox">
  7472. <el-option label="时间降序" :value="1"></el-option>
  7473. <el-option label="时间升序" :value="2"></el-option>
  7474. <el-option label="我的评课" :value="3"></el-option>
  7475. </el-select>
  7476. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  7477. </div>
  7478. </div>
  7479. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  7480. <div class="pzListBox" v-if="pzList && pzList.length">
  7481. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  7482. <div class="pzNavTop">
  7483. <div>批</div>
  7484. <div>
  7485. {{
  7486. pz.username && pz.username.length > 5
  7487. ? pz.username.substring(0, 5) + "..."
  7488. : pz.username
  7489. }}的批注
  7490. </div>
  7491. <div
  7492. class="pzDelete"
  7493. v-if="pz.userid == userid"
  7494. @click="deletePz(pz.id)"
  7495. >
  7496. 删除
  7497. </div>
  7498. </div>
  7499. <div
  7500. @click="checkImg(getImgList(pz.content))"
  7501. class="pzContent cont"
  7502. v-html="pz.content"
  7503. v-if="pz.type == '1'"
  7504. ></div>
  7505. <div class="pzContent" v-if="pz.type == '2'">
  7506. <audio :src="pz.content" controls="controls" ref="audio">
  7507. Your browser does not support the audio element.
  7508. </audio>
  7509. </div>
  7510. <div class="pzContent" v-if="pz.type == '3'">
  7511. <img
  7512. :src="pz.content"
  7513. style="width: 90%; margin: 0 auto; display: block"
  7514. @click="previewImg(pz.content)"
  7515. />
  7516. </div>
  7517. <div class="time">
  7518. {{ pz.time }}
  7519. </div>
  7520. </div>
  7521. </div>
  7522. <div class="noPz" v-else>
  7523. <img src="../assets/icon/noPz.png" alt="" />
  7524. </div>
  7525. <div class="addPzButton">
  7526. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  7527. 添加批注
  7528. </div>
  7529. <!-- <div class="img1">
  7530. <div @click="(addPzDialog = true), (pzType = 2)">
  7531. <img src="../assets/audio.png" /><span>音频</span>
  7532. </div>
  7533. </div> -->
  7534. </div>
  7535. </div>
  7536. </div>
  7537. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  7538. <div class="pzTop">
  7539. <div class="teacherPz">
  7540. <div class="teacherPzImg">
  7541. <img src="../assets/icon/teacherPz.png" alt="" />
  7542. </div>
  7543. <div style="margin-left: 10px; height: 25px">教师批注</div>
  7544. </div>
  7545. <div @click="addPzDialog = false">
  7546. <img src="../assets/close1.png" class="pzClose" alt="" />
  7547. </div>
  7548. </div>
  7549. <div class="addPzBox">
  7550. <div class="addPzCheck">
  7551. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  7552. >文本</span
  7553. >
  7554. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  7555. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  7556. >音频</span
  7557. >
  7558. </div>
  7559. <div style="height: calc(100% - 95px)">
  7560. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  7561. v-if="pzType == 1"></textarea> -->
  7562. <editor-bar
  7563. class="binfo_input pzConText"
  7564. style="width: 100% !important"
  7565. placeholder="请输入任务描述"
  7566. v-model="pzConText"
  7567. @change="change"
  7568. v-if="pzType == 1"
  7569. ></editor-bar>
  7570. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  7571. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  7572. <div @click="addImg($event)">
  7573. <el-button type="primary">上传图片</el-button>
  7574. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  7575. @change="beforeUpload1($event, 4)" />
  7576. </div>
  7577. </div> -->
  7578. </div>
  7579. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  7580. 确定
  7581. </div>
  7582. </div>
  7583. </div>
  7584. <div v-if="proVisible" class="mask">
  7585. <div class="progressBox">
  7586. <!-- <div id="closePro" class="closeCss">
  7587. <img src="../assets/icon/close.png" alt />
  7588. </div> -->
  7589. <div class="lbox">
  7590. <img src="../assets/loading.gif" />上传中,请稍后
  7591. </div>
  7592. <div style="margin-bottom: 10px">
  7593. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  7594. </div>
  7595. <el-progress
  7596. :text-inside="true"
  7597. :stroke-width="20"
  7598. :percentage="progress"
  7599. style="width: 80%"
  7600. ></el-progress>
  7601. </div>
  7602. </div>
  7603. <div v-if="proVisible2" class="mask">
  7604. <div class="progressBox">
  7605. <div class="lbox">
  7606. <img src="../assets/loading.gif" />上传中,请稍后
  7607. </div>
  7608. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  7609. </div>
  7610. </div>
  7611. <el-dialog :visible.sync="pictureDialog" size="tiny">
  7612. <img width="100%" :src="dialogImageUrl" alt />
  7613. </el-dialog>
  7614. <el-dialog
  7615. :title="noteName != '' ? noteName : '查看问卷'"
  7616. :visible.sync="dialogVisible5"
  7617. :append-to-body="true"
  7618. width="1000px"
  7619. :before-close="handleClose"
  7620. class="dialog_diy dialog_diy3"
  7621. >
  7622. <div>
  7623. <div
  7624. class="a_add_title"
  7625. style="
  7626. display: flex;
  7627. flex-direction: row;
  7628. align-items: center;
  7629. justify-content: center;
  7630. "
  7631. >
  7632. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  7633. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  7634. </div>
  7635. <div class="a_addBox">
  7636. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  7637. 题目内容
  7638. </div>
  7639. <div
  7640. class="a_add_box"
  7641. v-for="(item1, index1) in askJson.askCount"
  7642. :key="index1"
  7643. >
  7644. <div class="a_add_head">
  7645. <div style="display: flex">
  7646. <span class="askIndex"> {{ index1 + 1 }}</span>
  7647. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  7648. </div>
  7649. <img
  7650. v-if="askJson.askJson[index1].img"
  7651. :src="askJson.askJson[index1].img"
  7652. style="height: 300px; margin-top: 10px; max-width: 100%"
  7653. />
  7654. </div>
  7655. <div class="a_add_body">
  7656. <div class="a_add_input">
  7657. <el-radio-group
  7658. v-model="radio[index1]"
  7659. v-if="
  7660. askJson.askJson[index1].type == '1' ||
  7661. !askJson.askJson[index1].type
  7662. "
  7663. >
  7664. <el-radio
  7665. v-for="(item2, checkIndex) in askJson.askJson[index1]
  7666. .checkList"
  7667. :key="checkIndex"
  7668. :label="checkIndex"
  7669. :disabled="isAnswer"
  7670. class="redioStyle"
  7671. ><span v-html="item2"></span
  7672. ></el-radio>
  7673. </el-radio-group>
  7674. <el-checkbox-group
  7675. v-model="radio[index1]"
  7676. v-if="askJson.askJson[index1].type == '2'"
  7677. >
  7678. <el-checkbox
  7679. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  7680. .checkList"
  7681. :key="checkIndex1"
  7682. :label="checkIndex1"
  7683. :disabled="isAnswer"
  7684. class="redioStyle"
  7685. ><span v-html="item2"></span>
  7686. </el-checkbox>
  7687. </el-checkbox-group>
  7688. </div>
  7689. </div>
  7690. </div>
  7691. </div>
  7692. </div>
  7693. <span slot="footer" class="dialog-footer">
  7694. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  7695. >取 消</el-button
  7696. >
  7697. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  7698. >确 定</el-button
  7699. >
  7700. </span>
  7701. </el-dialog>
  7702. <el-dialog
  7703. :title="noteName != '' ? noteName : '查看问卷'"
  7704. :visible.sync="dialogVisible5Teacher"
  7705. :append-to-body="true"
  7706. width="1000px"
  7707. :before-close="handleClose"
  7708. class="dialog_diy dialog_diy3"
  7709. >
  7710. <div>
  7711. <div class="w_name">
  7712. 学生姓名:<span>{{ sStudent.student }}</span>
  7713. </div>
  7714. <div
  7715. class="a_add_title"
  7716. style="
  7717. display: flex;
  7718. flex-direction: row;
  7719. align-items: center;
  7720. justify-content: center;
  7721. "
  7722. >
  7723. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  7724. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  7725. </div>
  7726. <div class="a_addBox">
  7727. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  7728. 题目内容
  7729. </div>
  7730. <div
  7731. class="a_add_box"
  7732. v-for="(item1, index1) in askJson.askCount"
  7733. :key="index1"
  7734. >
  7735. <div class="a_add_head">
  7736. <div style="display: flex">
  7737. <span class="askIndex">{{ index1 + 1 }}</span>
  7738. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  7739. </div>
  7740. <img
  7741. v-if="askJson.askJson[index1].img"
  7742. :src="askJson.askJson[index1].img"
  7743. style="height: 300px; margin-top: 10px; max-width: 100%"
  7744. />
  7745. </div>
  7746. <div class="a_add_body">
  7747. <div class="a_add_input">
  7748. <el-radio-group
  7749. v-model="radio[index1]"
  7750. v-if="
  7751. askJson.askJson[index1].type == '1' ||
  7752. !askJson.askJson[index1].type
  7753. "
  7754. >
  7755. <el-radio
  7756. v-for="(item2, checkIndex) in askJson.askJson[index1]
  7757. .checkList"
  7758. :key="checkIndex"
  7759. :label="checkIndex"
  7760. :disabled="isAnswer"
  7761. class="redioStyle"
  7762. ><span v-html="item2"></span
  7763. ></el-radio>
  7764. </el-radio-group>
  7765. <el-checkbox-group
  7766. v-model="radio[index1]"
  7767. v-if="askJson.askJson[index1].type == '2'"
  7768. >
  7769. <el-checkbox
  7770. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  7771. .checkList"
  7772. :key="checkIndex1"
  7773. :label="checkIndex1"
  7774. :disabled="isAnswer"
  7775. class="redioStyle"
  7776. ><span v-html="item2"></span>
  7777. </el-checkbox>
  7778. </el-checkbox-group>
  7779. </div>
  7780. </div>
  7781. </div>
  7782. </div>
  7783. </div>
  7784. <span slot="footer" class="dialog-footer">
  7785. <el-button
  7786. @click="dialogVisible5Teacher = false"
  7787. v-show="noteName == ''"
  7788. >取 消</el-button
  7789. >
  7790. <el-button
  7791. type="primary"
  7792. @click="addStudentAskTeacher"
  7793. v-show="noteName == ''"
  7794. >确 定</el-button
  7795. >
  7796. </span>
  7797. </el-dialog>
  7798. <el-dialog
  7799. :title="noteName != '' ? noteName : '查看选择题'"
  7800. :visible.sync="dialogVisibleChoice"
  7801. :append-to-body="true"
  7802. width="1000px"
  7803. :before-close="handleClose"
  7804. class="dialog_diy dialog_diy3"
  7805. >
  7806. <div>
  7807. <!-- <div class="a_add_title" style="
  7808. display: flex;
  7809. flex-direction: row;
  7810. align-items: center;
  7811. justify-content: center;
  7812. ">
  7813. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  7814. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  7815. </div> -->
  7816. <div class="a_addBox">
  7817. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  7818. 题目内容
  7819. </div>
  7820. <div
  7821. class="a_add_box"
  7822. v-for="(item1, index1) in testJson.testCount"
  7823. :key="index1"
  7824. >
  7825. <div class="a_add_head">
  7826. <div style="display: flex">
  7827. <span class="askIndex">{{ index1 + 1 }}</span>
  7828. <div
  7829. v-if="testJson.testJson[index1].type == '1'"
  7830. style="margin-right: 5px; min-width: 70px"
  7831. >
  7832. (单选题)
  7833. </div>
  7834. <div
  7835. v-if="testJson.testJson[index1].type == '2'"
  7836. style="margin-right: 5px; min-width: 70px"
  7837. >
  7838. (多选题)
  7839. </div>
  7840. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  7841. </div>
  7842. <img
  7843. v-if="testJson.testJson[index1].img"
  7844. :src="testJson.testJson[index1].img"
  7845. style="height: 300px; margin-top: 10px; max-width: 100%"
  7846. />
  7847. </div>
  7848. <div
  7849. class="timuImgBox"
  7850. v-if="
  7851. testJson.testJson[index1].timuList &&
  7852. testJson.testJson[index1].timuList.length
  7853. "
  7854. >
  7855. <div
  7856. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  7857. :key="tIndex"
  7858. class="timuImg"
  7859. @click.stop="previewImg(timg.src)"
  7860. >
  7861. <img :src="timg.src" alt="" />
  7862. </div>
  7863. </div>
  7864. <div class="a_add_body">
  7865. <div class="a_add_input">
  7866. <el-radio-group
  7867. v-model="radio[index1]"
  7868. v-if="testJson.testJson[index1].type == '1'"
  7869. >
  7870. <div class="radioBox">
  7871. <el-radio
  7872. v-for="(item2, checkIndex) in testJson.testJson[index1]
  7873. .checkList"
  7874. :key="checkIndex"
  7875. :label="checkIndex"
  7876. :disabled="isAnswer"
  7877. class="redioStyle"
  7878. >
  7879. <div
  7880. style="margin-right: 10px"
  7881. v-if="item2 && item2.imgType && item2.imgType == 1"
  7882. >
  7883. <div class="inImg" @click.stop="previewImg(item2.src)">
  7884. <img :src="item2.src" alt="" />
  7885. </div>
  7886. </div>
  7887. <span v-else v-html="item2"></span>
  7888. </el-radio>
  7889. </div>
  7890. </el-radio-group>
  7891. <el-checkbox-group
  7892. v-model="radio[index1]"
  7893. v-if="testJson.testJson[index1].type == '2'"
  7894. >
  7895. <div class="radioBox">
  7896. <el-checkbox
  7897. v-for="(item2, checkIndex) in testJson.testJson[index1]
  7898. .checkList"
  7899. :key="checkIndex"
  7900. :label="checkIndex"
  7901. :disabled="isAnswer"
  7902. class="redioStyle"
  7903. >
  7904. <div
  7905. style="margin-right: 10px"
  7906. v-if="item2 && item2.imgType && item2.imgType == 1"
  7907. >
  7908. <div class="inImg" @click.stop="previewImg(item2.src)">
  7909. <img :src="item2.src" alt="" />
  7910. </div>
  7911. </div>
  7912. <span v-else v-html="item2"></span>
  7913. </el-checkbox>
  7914. </div>
  7915. </el-checkbox-group>
  7916. </div>
  7917. </div>
  7918. </div>
  7919. </div>
  7920. </div>
  7921. <span slot="footer" class="dialog-footer">
  7922. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  7923. >取 消</el-button
  7924. >
  7925. <el-button
  7926. type="primary"
  7927. @click="addStudentTest"
  7928. v-show="noteName == ''"
  7929. >确 定</el-button
  7930. >
  7931. </span>
  7932. </el-dialog>
  7933. <el-dialog
  7934. :title="noteName != '' ? noteName : '查看选择题'"
  7935. :visible.sync="dialogVisibleChoiceTeacher"
  7936. :append-to-body="true"
  7937. width="1000px"
  7938. :before-close="handleClose"
  7939. class="dialog_diy dialog_diy3"
  7940. >
  7941. <div>
  7942. <div class="w_name">
  7943. 学生姓名:<span>{{ sStudent.student }}</span>
  7944. </div>
  7945. <div class="a_addBox">
  7946. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  7947. 题目内容
  7948. </div>
  7949. <div
  7950. class="a_add_box"
  7951. v-for="(item1, index1) in testJson.testCount"
  7952. :key="index1"
  7953. >
  7954. <div class="a_add_head">
  7955. <div style="display: flex">
  7956. <span class="askIndex">{{ index1 + 1 }}</span>
  7957. <div
  7958. v-if="testJson.testJson[index1].type == '1'"
  7959. style="margin-right: 5px; min-width: 70px"
  7960. >
  7961. (单选题)
  7962. </div>
  7963. <div
  7964. v-if="testJson.testJson[index1].type == '2'"
  7965. style="margin-right: 5px; min-width: 70px"
  7966. >
  7967. (多选题)
  7968. </div>
  7969. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  7970. </div>
  7971. <img
  7972. v-if="testJson.testJson[index1].img"
  7973. :src="testJson.testJson[index1].img"
  7974. style="height: 300px; margin-top: 10px; max-width: 100%"
  7975. />
  7976. </div>
  7977. <div
  7978. class="timuImgBox"
  7979. v-if="
  7980. testJson.testJson[index1].timuList &&
  7981. testJson.testJson[index1].timuList.length
  7982. "
  7983. >
  7984. <div
  7985. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  7986. :key="tIndex"
  7987. class="timuImg"
  7988. @click.stop="previewImg(timg.src)"
  7989. >
  7990. <img :src="timg.src" alt="" />
  7991. </div>
  7992. </div>
  7993. <div class="a_add_body">
  7994. <div class="a_add_input">
  7995. <el-radio-group
  7996. v-model="radio[index1]"
  7997. v-if="testJson.testJson[index1].type == '1'"
  7998. >
  7999. <div class="radioBox">
  8000. <el-radio
  8001. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8002. .checkList"
  8003. :key="checkIndex"
  8004. :label="checkIndex"
  8005. :disabled="isAnswer"
  8006. class="redioStyle"
  8007. >
  8008. <div
  8009. style="margin-right: 10px"
  8010. v-if="item2 && item2.imgType && item2.imgType == 1"
  8011. >
  8012. <div class="inImg" @click.stop="previewImg(item2.src)">
  8013. <img :src="item2.src" alt="" />
  8014. </div>
  8015. </div>
  8016. <span v-else v-html="item2"></span>
  8017. </el-radio>
  8018. </div>
  8019. </el-radio-group>
  8020. <el-checkbox-group
  8021. v-model="radio[index1]"
  8022. v-if="testJson.testJson[index1].type == '2'"
  8023. >
  8024. <div class="radioBox">
  8025. <el-checkbox
  8026. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8027. .checkList"
  8028. :key="checkIndex"
  8029. :label="checkIndex"
  8030. :disabled="isAnswer"
  8031. class="redioStyle"
  8032. >
  8033. <div
  8034. style="margin-right: 10px"
  8035. v-if="item2 && item2.imgType && item2.imgType == 1"
  8036. >
  8037. <div class="inImg" @click.stop="previewImg(item2.src)">
  8038. <img :src="item2.src" alt="" />
  8039. </div>
  8040. </div>
  8041. <span v-else v-html="item2"></span>
  8042. </el-checkbox>
  8043. </div>
  8044. </el-checkbox-group>
  8045. </div>
  8046. </div>
  8047. </div>
  8048. </div>
  8049. </div>
  8050. <span slot="footer" class="dialog-footer">
  8051. <el-button
  8052. @click="dialogVisibleChoiceTeacher = false"
  8053. v-show="noteName == ''"
  8054. >取 消</el-button
  8055. >
  8056. <el-button
  8057. type="primary"
  8058. @click="addStudentTestTeacher"
  8059. v-show="noteName == ''"
  8060. >确 定</el-button
  8061. >
  8062. </span>
  8063. </el-dialog>
  8064. <el-dialog
  8065. title="查看富文本"
  8066. :visible.sync="dialogVisible1"
  8067. :append-to-body="true"
  8068. width="500px"
  8069. :before-close="handleClose"
  8070. class="dialog_diy textCss"
  8071. >
  8072. <el-form style="font-size: 20px">
  8073. <el-form-item label="文本标题" class="textTitle">
  8074. <div style="font-size: 20px">{{ text.name }}</div>
  8075. </el-form-item>
  8076. <div>富文本内容</div>
  8077. <div
  8078. v-html="text.url"
  8079. style="font-size: 18px; padding: 40px 0 0 0"
  8080. ></div>
  8081. </el-form>
  8082. <span slot="footer" class="dialog-footer">
  8083. <el-button type="primary" @click="dialogVisible1 = false"
  8084. >确定</el-button
  8085. >
  8086. </span>
  8087. </el-dialog>
  8088. <el-dialog
  8089. title="文件预览"
  8090. :visible.sync="dialogVisible3"
  8091. width="50%"
  8092. :before-close="handleClose"
  8093. class="dialog_diy"
  8094. :class="{ fullStyle: full }"
  8095. >
  8096. <div slot="title" class="header-title">
  8097. <div style="color: #fff">文件预览</div>
  8098. <div style="position: absolute; top: 19px; right: 50px">
  8099. <img
  8100. src="../assets/full.png"
  8101. style="height: 16px; cursor: pointer"
  8102. alt=""
  8103. @click="fullTools"
  8104. />
  8105. </div>
  8106. </div>
  8107. <pdf
  8108. v-if="showPDF"
  8109. :pdfUrl="pptImgUrl"
  8110. style="width: 100%; height: 520px; overflow: auto"
  8111. :class="{ fullStyle: full }"
  8112. ></pdf>
  8113. <iframe
  8114. v-else
  8115. :src="pptImgUrl"
  8116. frameborder="0"
  8117. width="100%"
  8118. height="600"
  8119. :class="{ fullStyle: full }"
  8120. ></iframe>
  8121. </el-dialog>
  8122. <el-dialog
  8123. title="文件预览"
  8124. :visible.sync="dialogVisible6"
  8125. width="50%"
  8126. :before-close="handleClose"
  8127. class="dialog_diy"
  8128. >
  8129. <iframe
  8130. :src="pptImgUrl1"
  8131. frameborder="0"
  8132. width="100%"
  8133. height="600"
  8134. ></iframe>
  8135. </el-dialog>
  8136. <el-dialog
  8137. title="提示"
  8138. :visible.sync="dialogVisible4"
  8139. :append-to-body="true"
  8140. width="800px"
  8141. :before-close="handleClose"
  8142. class="dialog_diy notice"
  8143. >
  8144. <div>此功能暂未开放!</div>
  8145. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  8146. </el-dialog>
  8147. <el-dialog
  8148. title="问答"
  8149. :visible.sync="answerDialogVisible"
  8150. :append-to-body="true"
  8151. width="800px"
  8152. :before-close="handleClose"
  8153. class="dialog_diy"
  8154. >
  8155. <div>
  8156. <div
  8157. style="
  8158. display: flex;
  8159. flex-wrap: nowrap;
  8160. flex-direction: column;
  8161. position: relative;
  8162. "
  8163. >
  8164. <div class="queTop" style="padding: 20px 0 20px 0">
  8165. <div class="question">
  8166. <img src="../assets/icon/question.png" alt />
  8167. </div>
  8168. <div class="queTitle">
  8169. <div style="width: 90px; min-width: 90px">提问:</div>
  8170. <div>{{ answerQ }}</div>
  8171. </div>
  8172. </div>
  8173. <div class="ediBottom">
  8174. <textarea
  8175. rows="6"
  8176. class="binfo_input"
  8177. cols
  8178. style="width: 95%; height: 120px"
  8179. v-model="questionAnswer"
  8180. ></textarea>
  8181. </div>
  8182. </div>
  8183. </div>
  8184. <div slot="footer">
  8185. <el-button @click="answerDialogVisible = false">取 消</el-button>
  8186. <el-button type="primary" @click="addQuestion">提 交</el-button>
  8187. </div>
  8188. </el-dialog>
  8189. <el-dialog
  8190. title="问答"
  8191. :visible.sync="answerDialogVisibleTeacher"
  8192. :append-to-body="true"
  8193. width="800px"
  8194. :before-close="handleClose"
  8195. class="dialog_diy"
  8196. >
  8197. <div>
  8198. <div class="w_name">
  8199. 学生姓名:<span>{{ sStudent.student }}</span>
  8200. </div>
  8201. <div
  8202. style="
  8203. display: flex;
  8204. flex-wrap: nowrap;
  8205. flex-direction: column;
  8206. position: relative;
  8207. "
  8208. >
  8209. <div class="queTop" style="padding: 20px 0 20px 0">
  8210. <div class="question">
  8211. <img src="../assets/icon/question.png" alt />
  8212. </div>
  8213. <div class="queTitle">
  8214. <div style="width: 90px; min-width: 90px">提问:</div>
  8215. <div>{{ answerQ }}</div>
  8216. </div>
  8217. </div>
  8218. <div class="ediBottom">
  8219. <textarea
  8220. rows="6"
  8221. class="binfo_input"
  8222. cols
  8223. style="width: 95%; height: 120px"
  8224. v-model="questionAnswer"
  8225. ></textarea>
  8226. </div>
  8227. </div>
  8228. </div>
  8229. <div slot="footer">
  8230. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  8231. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  8232. </div>
  8233. </el-dialog>
  8234. <el-dialog
  8235. title="倒计时"
  8236. :visible.sync="timeDialogVisible"
  8237. :append-to-body="true"
  8238. width="800px"
  8239. :before-close="handleClose"
  8240. class="dialog_diy"
  8241. >
  8242. <div>
  8243. <div style="margin-bottom: 20px; color: #999">
  8244. 提示:点击“+”或“-”修改倒计时时长。
  8245. </div>
  8246. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  8247. </div>
  8248. <div slot="footer">
  8249. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  8250. </div>
  8251. </el-dialog>
  8252. <el-dialog
  8253. title="权限设置"
  8254. :visible.sync="juriVisible"
  8255. :append-to-body="true"
  8256. width="400px"
  8257. :before-close="handleClose"
  8258. class="dialog_diy"
  8259. >
  8260. <div>
  8261. <div class="open_box">
  8262. <div class="switch_box">
  8263. <span>允许学生查看所有作业</span>
  8264. <el-switch
  8265. v-model="sIsOpen"
  8266. active-text=""
  8267. class="switchCss"
  8268. @change="updateSLook"
  8269. ></el-switch>
  8270. </div>
  8271. <div
  8272. class="switch_box"
  8273. v-if="
  8274. courseDetail.userid == userid ||
  8275. (courseDetail.course_teacher &&
  8276. courseDetail.course_teacher.indexOf(userid) != -1)
  8277. "
  8278. >
  8279. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  8280. <span>禁止学生查看所有阶段</span>
  8281. <el-switch
  8282. v-model="IsLookOpen"
  8283. active-text=""
  8284. class="switchCss"
  8285. @change="updateLookOpen"
  8286. ></el-switch>
  8287. </div>
  8288. <div class="switch_box" v-if="courseDetail.userid == userid">
  8289. <span>开启跟随模式</span>
  8290. <el-switch
  8291. v-model="IsFollow"
  8292. active-text=""
  8293. class="switchCss"
  8294. @change="updateFollow"
  8295. ></el-switch>
  8296. </div>
  8297. </div>
  8298. </div>
  8299. <div slot="footer">
  8300. <el-button
  8301. style="background: #409efe; color: #fff"
  8302. @click="juriVisible = false"
  8303. >关 闭</el-button
  8304. >
  8305. </div>
  8306. </el-dialog>
  8307. <el-dialog
  8308. title="查看视频"
  8309. :visible.sync="videoVisible"
  8310. :append-to-body="true"
  8311. width="1000px"
  8312. :before-close="handleClose"
  8313. class="dialog_diy1"
  8314. >
  8315. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  8316. <video-player
  8317. class="video-player vjs-custom-skin"
  8318. :playsinline="true"
  8319. :options="videoDetail"
  8320. @play="onPlayerPlay($event)"
  8321. style="width: 100%; height: 100%"
  8322. ></video-player>
  8323. </div>
  8324. <div slot="footer">
  8325. <el-button
  8326. style="background: #409efe; color: #fff"
  8327. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  8328. >
  8329. 关 闭</el-button
  8330. >
  8331. </div>
  8332. </el-dialog>
  8333. <el-dialog
  8334. title="查看详情"
  8335. :visible.sync="commentDialogVisible"
  8336. :append-to-body="true"
  8337. width="800px"
  8338. :before-close="handleClose"
  8339. class="dialog_diy"
  8340. >
  8341. <div class="commentTop">
  8342. <div class="studentDetail">
  8343. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  8344. <div class="nameAndTime">
  8345. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  8346. <div>{{ commentDetail.time }}</div>
  8347. </div>
  8348. <div
  8349. class="returnBtn"
  8350. style="margin-left: auto; width: 80px"
  8351. v-if="
  8352. commentDetail.works &&
  8353. commentDetail.type == 0 &&
  8354. (tType == 1 || tType == 4)
  8355. "
  8356. @click="
  8357. showPicturePaint(
  8358. commentDetail.img ? commentDetail.img : commentDetail.works
  8359. )
  8360. "
  8361. >
  8362. 教师批注
  8363. </div>
  8364. </div>
  8365. <div
  8366. class="worksAnswer"
  8367. v-if="commentDetail.works && commentDetail.type == 2"
  8368. >
  8369. {{ JSON.parse(commentDetail.works)[0].answer }}
  8370. </div>
  8371. <div
  8372. class="worksAnswer"
  8373. v-if="commentDetail.works && commentDetail.type == 1"
  8374. >
  8375. <img
  8376. src="../assets/teacherWork.png"
  8377. v-if="commentDetail.ateacher"
  8378. class="w_teachert"
  8379. />
  8380. <pdf
  8381. v-if="showPDF"
  8382. :pdfUrl="pptImgUrl"
  8383. style="width: 100%; height: 520px; overflow: auto"
  8384. :class="{ fullStyle: full }"
  8385. ></pdf>
  8386. <iframe
  8387. v-else
  8388. :src="pptImgUrl"
  8389. frameborder="0"
  8390. width="100%"
  8391. height="600"
  8392. :class="{ fullStyle: full }"
  8393. ></iframe>
  8394. </div>
  8395. <div
  8396. class="worksAnswer"
  8397. v-if="commentDetail.works && commentDetail.type == 0"
  8398. >
  8399. <img
  8400. src="../assets/teacherWork.png"
  8401. v-if="commentDetail.ateacher"
  8402. class="w_teachert"
  8403. style="right: 105px"
  8404. />
  8405. <img
  8406. :src="commentDetail.works"
  8407. alt=""
  8408. @click="previewImg(commentDetail.works)"
  8409. />
  8410. </div>
  8411. <div
  8412. class="worksAnswer"
  8413. v-if="commentDetail.works && commentDetail.type == 3"
  8414. >
  8415. <img
  8416. src="../assets/teacherWork.png"
  8417. v-if="commentDetail.ateacher"
  8418. class="w_teachert"
  8419. />
  8420. <video-player
  8421. class="video-player vjs-custom-skin"
  8422. :playsinline="true"
  8423. :options="videoDetail"
  8424. @play="onPlayerPlay($event)"
  8425. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  8426. ></video-player>
  8427. </div>
  8428. <div
  8429. class="worksAnswer"
  8430. v-if="commentDetail.works && commentDetail.type == 10"
  8431. >
  8432. <div class="cont" v-html="commentDetail.works.text"></div>
  8433. </div>
  8434. <div
  8435. class="worksAnswer codeFileBox"
  8436. v-if="commentDetail.works && commentDetail.type == 12"
  8437. @click="downloadFile(commentDetail.works)"
  8438. >
  8439. <img src="../assets/icon/codeFile.png" />
  8440. <div>点击下载文件</div>
  8441. </div>
  8442. <div
  8443. class="worksAnswer codeFileBox"
  8444. v-if="commentDetail.works && commentDetail.type == 15"
  8445. @click="
  8446. openCocoPi(
  8447. 57,
  8448. commentIndexJson.toolIndex,
  8449. commentDetail.userid,
  8450. commentDetail.sName
  8451. )
  8452. "
  8453. >
  8454. <img src="../assets/icon/codeFile.png" />
  8455. <div>点击打开CocoPi</div>
  8456. </div>
  8457. <div
  8458. class="worksAnswer"
  8459. v-if="commentDetail.works && commentDetail.type == 13"
  8460. >
  8461. <div v-html="JSON.parse(commentDetail.works).text"></div>
  8462. </div>
  8463. <div
  8464. class="worksAnswer"
  8465. v-if="commentDetail.works && commentDetail.type == 4"
  8466. >
  8467. <div class="evalCss">
  8468. <div class="nav">请选择星星进行评分</div>
  8469. <div class="middleBox" v-if="eScore.eStar">
  8470. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  8471. <div class="nameAndrate">
  8472. <div>{{ e.value }}</div>
  8473. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  8474. </div>
  8475. <div v-if="e.detail">{{ e.detail }}</div>
  8476. </div>
  8477. <div class="bz">
  8478. <textarea
  8479. disabled
  8480. rows="4"
  8481. class="pj"
  8482. style="
  8483. padding: 10px 5px;
  8484. width: 70%;
  8485. background: #f7f6f9;
  8486. font-size: 14px;
  8487. text-indent: 10px;
  8488. color: #000;
  8489. "
  8490. cols
  8491. v-model="eScore.eBzText"
  8492. placeholder="请输入评价内容..."
  8493. ></textarea>
  8494. </div>
  8495. </div>
  8496. </div>
  8497. </div>
  8498. <div class="comment">
  8499. <div class="commentList">
  8500. <div class="commentImg">
  8501. <img
  8502. @click="
  8503. isLikes(
  8504. commentDetail.wid,
  8505. userid,
  8506. 1,
  8507. null,
  8508. commentDetail.isLikes
  8509. )
  8510. "
  8511. :src="commentDetail.isLikes == true ? likes : noLikes"
  8512. alt=""
  8513. />
  8514. </div>
  8515. <div>{{ commentDetail.likesCount }}</div>
  8516. </div>
  8517. <div class="commentList">
  8518. <div class="commentImg">
  8519. <img src="../assets/icon/comment/comment.png" alt="" />
  8520. </div>
  8521. <div>{{ commentDetail.commentCount }}</div>
  8522. </div>
  8523. </div>
  8524. <div class="drawPBox" v-if="commentDetail.img">
  8525. <span>教师批注</span>
  8526. <img
  8527. :src="commentDetail.img"
  8528. alt=""
  8529. @click="previewImg(commentDetail.img)"
  8530. />
  8531. <span
  8532. class="deleteImg"
  8533. v-if="tType == 1 || tType == 4"
  8534. @click.stop="deletePicturePaint(commentDetail.wid)"
  8535. style="
  8536. font-size: 14px;
  8537. width: auto !important;
  8538. color: #b4b4b4;
  8539. top: unset;
  8540. bottom: 0;
  8541. border: none;
  8542. padding: 0;
  8543. height: auto !important;
  8544. margin: 0;
  8545. "
  8546. >删除</span
  8547. >
  8548. </div>
  8549. </div>
  8550. <div class="commentBox">
  8551. <div class="pl">评论:</div>
  8552. <div style="max-height: 200px; overflow: auto">
  8553. <div
  8554. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  8555. style="padding: 10px 0 0 0"
  8556. >
  8557. <div
  8558. class="studentDetail"
  8559. style="padding-top: 10px"
  8560. v-for="(co, coIndex) in commentDetail.commentJson"
  8561. :key="coIndex"
  8562. >
  8563. <div class="tx" style="min-width: 50px">
  8564. <img src="../assets/avatar.png" alt="" />
  8565. </div>
  8566. <div class="plPerson">
  8567. <div class="plName">
  8568. <div>{{ co.commentPeople }}</div>
  8569. <div style="margin-left: 5px">
  8570. {{ co.commentTime }}
  8571. </div>
  8572. <div
  8573. class="deleteComment"
  8574. v-if="userid == co.userid"
  8575. @click="deleteComment(co.wid)"
  8576. >
  8577. 删除
  8578. </div>
  8579. </div>
  8580. <div class="plContent">{{ co.commentText }}</div>
  8581. </div>
  8582. </div>
  8583. </div>
  8584. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  8585. </div>
  8586. </div>
  8587. <div style="margin-top: 10px">
  8588. <div class="displayBox">
  8589. <div
  8590. style="
  8591. color: #556db4;
  8592. font-size: 14px;
  8593. font-weight: bold;
  8594. padding-bottom: 10px;
  8595. "
  8596. >
  8597. 评价
  8598. </div>
  8599. <div class="easy_comment" v-if="false">
  8600. <div
  8601. v-for="(p, pIndex) in PlTextList"
  8602. :key="pIndex"
  8603. @click="fastText(p, 1)"
  8604. >
  8605. {{ p }}
  8606. </div>
  8607. </div>
  8608. </div>
  8609. <div>
  8610. <textarea
  8611. rows="3"
  8612. class="pj"
  8613. style="padding: 10px 5px"
  8614. cols
  8615. v-model="commentText"
  8616. placeholder="请输入评论"
  8617. ></textarea>
  8618. </div>
  8619. </div>
  8620. <div slot="footer">
  8621. <el-button
  8622. @click="
  8623. (commentDialogVisible = false),
  8624. (commentIndexJson = {}),
  8625. videoDetail.sources && videoDetail.sources[0]
  8626. ? (videoDetail.sources[0].src = '')
  8627. : ''
  8628. "
  8629. >取 消</el-button
  8630. >
  8631. <el-button
  8632. type="primary"
  8633. @click="addComment(commentDetail.wid, userid, 2)"
  8634. >确 定</el-button
  8635. >
  8636. </div>
  8637. </el-dialog>
  8638. <el-dialog
  8639. title="查看文档"
  8640. :visible.sync="fullDialogVisible"
  8641. :append-to-body="true"
  8642. width="100%"
  8643. :before-close="handleClose"
  8644. :show-close="false"
  8645. class="dialog_diy full_diy"
  8646. :class="{ full_diy2: fulltype == 3 }"
  8647. >
  8648. <div slot="title" class="header-title">
  8649. <div style="color: #fff">查看文档</div>
  8650. <div
  8651. @click="fullDialogVisible = false"
  8652. style="
  8653. cursor: pointer;
  8654. position: absolute;
  8655. top: 20px;
  8656. right: 20px;
  8657. color: #fff;
  8658. "
  8659. >
  8660. 退出全屏
  8661. </div>
  8662. </div>
  8663. <div style="height: 100%">
  8664. <div
  8665. class="wheel"
  8666. v-if="
  8667. fulltype == 2 &&
  8668. fullUrl.indexOf(
  8669. 'https://view.officeapps.live.com/op/view.aspx?src='
  8670. ) != -1
  8671. "
  8672. style="width: 95%; margin: 0 auto"
  8673. >
  8674. <iframe
  8675. style="width: 100%; height: 100%; border: none"
  8676. :src="fullUrl"
  8677. ></iframe>
  8678. </div>
  8679. <iframe
  8680. v-else-if="fulltype == 2"
  8681. style="width: 100%; height: 100%; border: none"
  8682. :src="fullUrl"
  8683. security="restricted"
  8684. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  8685. ></iframe>
  8686. <pdf
  8687. v-else-if="fulltype == 3"
  8688. :pdfUrl="fullUrl"
  8689. style="width: 100%; height: 100%; overflow: auto"
  8690. ></pdf>
  8691. <div
  8692. class="wheel"
  8693. v-if="fulltype == 1"
  8694. style="
  8695. box-shadow: 0 0 6px 1px #f2f2f2;
  8696. width: 100%;
  8697. background: #f1f1f1;
  8698. "
  8699. >
  8700. <div class="title" style="width: 100%; box-sizing: border-box">
  8701. 查看文档
  8702. </div>
  8703. <el-form class="textBox" style="height: 90%">
  8704. <el-form-item class="textTitle">
  8705. <div style="font-size: 22px">
  8706. {{ fullUrl.name }}
  8707. </div>
  8708. </el-form-item>
  8709. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  8710. <div
  8711. v-html="fullUrl.url"
  8712. class="textContent"
  8713. style="height: auto"
  8714. ></div>
  8715. </el-form>
  8716. </div>
  8717. </div>
  8718. <!-- <div slot="footer">
  8719. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  8720. </div> -->
  8721. </el-dialog>
  8722. <el-dialog
  8723. title="个人评价"
  8724. :visible.sync="studentEvalDialogVisible"
  8725. :append-to-body="true"
  8726. width="800px"
  8727. :before-close="handleClose"
  8728. class="dialog_diy"
  8729. >
  8730. <div class="evalCss">
  8731. <div class="nav">请选择星星进行评分</div>
  8732. <div class="middleBox" v-if="eScore.eStar">
  8733. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  8734. <div class="nameAndrate">
  8735. <div>{{ e.value }}</div>
  8736. <el-rate
  8737. v-model="eScore.eStar[eIndex]"
  8738. :disabled="isStar"
  8739. ></el-rate>
  8740. </div>
  8741. <div v-if="e.detail">{{ e.detail }}</div>
  8742. </div>
  8743. <div class="easy_comment" v-if="false">
  8744. <div
  8745. v-for="(p, pIndex) in PlTextList"
  8746. :key="pIndex"
  8747. @click="fastText(p, 2)"
  8748. >
  8749. {{ p }}
  8750. </div>
  8751. </div>
  8752. <div class="bz">
  8753. <textarea
  8754. :disabled="isStar"
  8755. rows="4"
  8756. class="pj"
  8757. style="
  8758. padding: 10px 5px;
  8759. width: 70%;
  8760. background: #f7f6f9;
  8761. font-size: 14px;
  8762. text-indent: 10px;
  8763. "
  8764. cols
  8765. v-model="eScore.eBzText"
  8766. placeholder="请输入评价内容..."
  8767. ></textarea>
  8768. </div>
  8769. </div>
  8770. </div>
  8771. <div slot="footer">
  8772. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  8773. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  8774. >确 定</el-button
  8775. >
  8776. </div>
  8777. </el-dialog>
  8778. <el-dialog
  8779. title="个人评价"
  8780. :visible.sync="studentEvalDialogVisibleTeacher"
  8781. :append-to-body="true"
  8782. width="800px"
  8783. :before-close="handleClose"
  8784. class="dialog_diy"
  8785. >
  8786. <div class="w_name">
  8787. 学生姓名:<span>{{ sStudent.student }}</span>
  8788. </div>
  8789. <div class="evalCss">
  8790. <div class="nav">请选择星星进行评分</div>
  8791. <div class="middleBox" v-if="eScore.eStar">
  8792. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  8793. <div class="nameAndrate">
  8794. <div>{{ e.value }}</div>
  8795. <el-rate
  8796. v-model="eScore.eStar[eIndex]"
  8797. :disabled="isStar"
  8798. ></el-rate>
  8799. </div>
  8800. <div v-if="e.detail">{{ e.detail }}</div>
  8801. </div>
  8802. <div class="easy_comment" v-if="false">
  8803. <div
  8804. v-for="(p, pIndex) in PlTextList"
  8805. :key="pIndex"
  8806. @click="fastText(p, 2)"
  8807. >
  8808. {{ p }}
  8809. </div>
  8810. </div>
  8811. <div class="bz">
  8812. <textarea
  8813. :disabled="isStar"
  8814. rows="4"
  8815. class="pj"
  8816. style="
  8817. padding: 10px 5px;
  8818. width: 70%;
  8819. background: #f7f6f9;
  8820. font-size: 14px;
  8821. text-indent: 10px;
  8822. "
  8823. cols
  8824. v-model="eScore.eBzText"
  8825. placeholder="请输入评价内容..."
  8826. ></textarea>
  8827. </div>
  8828. </div>
  8829. </div>
  8830. <div slot="footer">
  8831. <el-button @click="studentEvalDialogVisibleTeacher = false"
  8832. >取 消</el-button
  8833. >
  8834. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  8835. >确 定</el-button
  8836. >
  8837. </div>
  8838. </el-dialog>
  8839. <el-dialog
  8840. title="选择匹配"
  8841. :visible.sync="dialogVisibleSelect"
  8842. :append-to-body="true"
  8843. width="90%"
  8844. :before-close="handleClose"
  8845. class="dialog_diy dialog_diy3"
  8846. >
  8847. <div v-if="selectJson">
  8848. <div class="select_box2">
  8849. <div class="select_box2_title">
  8850. <div>选择匹配</div>
  8851. <div>请选择对应的答案进行答题!</div>
  8852. </div>
  8853. <div class="select_box2_box">
  8854. <div class="select_box2_img">
  8855. <img
  8856. :src="selectJson.url"
  8857. @click="previewImg(selectJson.url)"
  8858. alt=""
  8859. />
  8860. </div>
  8861. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  8862. <div style="padding-top: 15px">
  8863. <div class="select_answer_title" v-if="isSelect">
  8864. {{ selectAnswer.stu }}
  8865. </div>
  8866. <div class="select_answer_title" v-else>
  8867. 根据题目选择对应答案
  8868. </div>
  8869. <div
  8870. class="select_box2_answer_box"
  8871. v-for="(item2, checkIndex) in selectJson.select"
  8872. :key="checkIndex"
  8873. >
  8874. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  8875. <el-select
  8876. :disabled="isSelect"
  8877. v-model="selectAnswer.answer[checkIndex]"
  8878. placeholder="请选择正确答案"
  8879. >
  8880. <el-option
  8881. v-for="(e, eIndex) in selectJson.select"
  8882. :key="eIndex"
  8883. :label="e"
  8884. :value="eIndex"
  8885. >
  8886. </el-option>
  8887. </el-select>
  8888. </div>
  8889. </div>
  8890. <div
  8891. class="rightAnswerCss"
  8892. v-if="isSelect && (tType == 1 || tType == 4)"
  8893. >
  8894. <div
  8895. v-for="(a, aIndex) in selectJson.answer"
  8896. :key="aIndex"
  8897. class="rightAnswer"
  8898. >
  8899. <div
  8900. v-if="selectAnswer.answer[aIndex] === a"
  8901. style="color: #767de1"
  8902. >
  8903. 回答正确
  8904. </div>
  8905. <div v-else>回答错误</div>
  8906. <div
  8907. style="margin-left: 10px"
  8908. v-if="selectAnswer.answer[aIndex] !== a"
  8909. >
  8910. 正确答案:
  8911. </div>
  8912. <div
  8913. :class="
  8914. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  8915. "
  8916. >
  8917. {{ selectJson.select[a] }}
  8918. </div>
  8919. </div>
  8920. </div>
  8921. </div>
  8922. <div class="upAnswerCss">
  8923. <el-button
  8924. type="primary"
  8925. @click="addSelectAnswer"
  8926. v-if="!isSelect"
  8927. >提交答案</el-button
  8928. >
  8929. </div>
  8930. </div>
  8931. </div>
  8932. </div>
  8933. </el-dialog>
  8934. <el-dialog
  8935. title="选择匹配"
  8936. :visible.sync="dialogVisibleSelectTeacher"
  8937. :append-to-body="true"
  8938. width="90%"
  8939. :before-close="handleClose"
  8940. class="dialog_diy dialog_diy3"
  8941. >
  8942. <div v-if="selectJson">
  8943. <div class="w_name">
  8944. 学生姓名:<span>{{ sStudent.student }}</span>
  8945. </div>
  8946. <div class="select_box2">
  8947. <div class="select_box2_title">
  8948. <div>选择匹配</div>
  8949. <div>请选择对应的答案进行答题!</div>
  8950. </div>
  8951. <div class="select_box2_box">
  8952. <div class="select_box2_img">
  8953. <img
  8954. :src="selectJson.url"
  8955. @click="previewImg(selectJson.url)"
  8956. alt=""
  8957. />
  8958. </div>
  8959. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  8960. <div style="padding-top: 15px">
  8961. <div class="select_answer_title" v-if="isSelect">
  8962. {{ selectAnswer.stu }}
  8963. </div>
  8964. <div class="select_answer_title" v-else>
  8965. 根据题目选择对应答案
  8966. </div>
  8967. <div
  8968. class="select_box2_answer_box"
  8969. v-for="(item2, checkIndex) in selectJson.select"
  8970. :key="checkIndex"
  8971. >
  8972. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  8973. <el-select
  8974. :disabled="isSelect"
  8975. v-model="selectAnswer.answer[checkIndex]"
  8976. placeholder="请选择正确答案"
  8977. >
  8978. <el-option
  8979. v-for="(e, eIndex) in selectJson.select"
  8980. :key="eIndex"
  8981. :label="e"
  8982. :value="eIndex"
  8983. >
  8984. </el-option>
  8985. </el-select>
  8986. </div>
  8987. </div>
  8988. <div
  8989. class="rightAnswerCss"
  8990. v-if="isSelect && (tType == 1 || tType == 4)"
  8991. >
  8992. <div
  8993. v-for="(a, aIndex) in selectJson.answer"
  8994. :key="aIndex"
  8995. class="rightAnswer"
  8996. >
  8997. <div
  8998. v-if="selectAnswer.answer[aIndex] === a"
  8999. style="color: #767de1"
  9000. >
  9001. 回答正确
  9002. </div>
  9003. <div v-else>回答错误</div>
  9004. <div
  9005. style="margin-left: 10px"
  9006. v-if="selectAnswer.answer[aIndex] !== a"
  9007. >
  9008. 正确答案:
  9009. </div>
  9010. <div
  9011. :class="
  9012. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  9013. "
  9014. >
  9015. {{ selectJson.select[a] }}
  9016. </div>
  9017. </div>
  9018. </div>
  9019. </div>
  9020. <div class="upAnswerCss">
  9021. <el-button
  9022. type="primary"
  9023. @click="addSelectAnswerTeacher"
  9024. v-if="!isSelect"
  9025. >提交答案</el-button
  9026. >
  9027. </div>
  9028. </div>
  9029. </div>
  9030. </div>
  9031. </el-dialog>
  9032. <el-dialog
  9033. title="教师评分"
  9034. :visible.sync="dialogVisibleScore"
  9035. :append-to-body="true"
  9036. width="800px"
  9037. :before-close="handleClose"
  9038. class="dialog_diy"
  9039. >
  9040. <div>
  9041. <div class="studentDetail">
  9042. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  9043. <div class="nameAndTime">
  9044. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9045. <div>{{ commentDetail.time }}</div>
  9046. </div>
  9047. </div>
  9048. <div
  9049. class="worksAnswer"
  9050. v-if="commentDetail.works && commentDetail.type == 2"
  9051. >
  9052. {{ JSON.parse(commentDetail.works)[0].answer }}
  9053. </div>
  9054. <div
  9055. class="worksAnswer"
  9056. v-if="commentDetail.works && commentDetail.type == 1"
  9057. >
  9058. <pdf
  9059. v-if="showPDF"
  9060. :pdfUrl="pptImgUrl"
  9061. style="width: 100%; height: 520px; overflow: auto"
  9062. :class="{ fullStyle: full }"
  9063. ></pdf>
  9064. <iframe
  9065. v-else
  9066. :src="pptImgUrl"
  9067. frameborder="0"
  9068. width="100%"
  9069. height="600"
  9070. :class="{ fullStyle: full }"
  9071. ></iframe>
  9072. </div>
  9073. <div
  9074. class="worksAnswer"
  9075. v-if="commentDetail.works && commentDetail.type == 0"
  9076. >
  9077. <img
  9078. :src="commentDetail.works"
  9079. alt=""
  9080. @click="previewImg(commentDetail.works)"
  9081. />
  9082. </div>
  9083. <div
  9084. class="worksAnswer"
  9085. v-if="commentDetail.works && commentDetail.type == 3"
  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 codeFileBox"
  9097. v-if="commentDetail.works && commentDetail.type == 12"
  9098. @click="downloadFile(commentDetail.works)"
  9099. >
  9100. <img src="../assets/icon/codeFile.png" />
  9101. <div>点击下载文件</div>
  9102. </div>
  9103. <div
  9104. class="worksAnswer codeFileBox"
  9105. v-if="commentDetail.works && commentDetail.type == 15"
  9106. @click="
  9107. openCocoPi(
  9108. 57,
  9109. commentIndexJson.toolIndex,
  9110. commentDetail.userid,
  9111. commentDetail.sName
  9112. )
  9113. "
  9114. >
  9115. <img src="../assets/icon/codeFile.png" />
  9116. <div>点击打开CocoPi</div>
  9117. </div>
  9118. <div
  9119. class="worksAnswer"
  9120. v-if="commentDetail.works && commentDetail.type == 13"
  9121. >
  9122. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9123. </div>
  9124. <div class="scoreBox">
  9125. <span class="t">请输入分数</span>
  9126. <el-input-number
  9127. :disabled="courseDetail.userid != userid"
  9128. v-model="wScore"
  9129. :controls="false"
  9130. :min="0"
  9131. :max="100"
  9132. ></el-input-number>
  9133. </div>
  9134. <div class="scoreDetailBox">
  9135. <span class="t">评分评论</span>
  9136. <el-input
  9137. type="textarea"
  9138. :rows="5"
  9139. :disabled="courseDetail.userid != userid"
  9140. resize="none"
  9141. v-model="scoreDetail"
  9142. placeholder="请输入对学生的评价"
  9143. >
  9144. </el-input>
  9145. </div>
  9146. </div>
  9147. <span slot="footer" class="dialog-footer">
  9148. <el-button
  9149. @click="
  9150. (dialogVisibleScore = false),
  9151. (commentIndexJson = {}),
  9152. videoDetail.sources && videoDetail.sources[0]
  9153. ? (videoDetail.sources[0].src = '')
  9154. : ''
  9155. "
  9156. >取 消</el-button
  9157. >
  9158. <el-button
  9159. type="primary"
  9160. v-if="courseDetail.userid == userid"
  9161. @click="scoreWork(commentDetail.wid)"
  9162. >确 定
  9163. </el-button>
  9164. </span>
  9165. </el-dialog>
  9166. <el-dialog
  9167. title="排序"
  9168. :visible.sync="dialogVisibleSentence"
  9169. :append-to-body="true"
  9170. width="1000px"
  9171. :before-close="handleClose"
  9172. class="dialog_diy dialog_diy3"
  9173. >
  9174. <div>
  9175. <div class="sentenBox">
  9176. <div
  9177. v-for="(st, stIndex) in sentenceList"
  9178. :key="stIndex"
  9179. style="padding-bottom: 20px"
  9180. >
  9181. <div
  9182. style="padding: 15px 0 10px 20px"
  9183. class="sentenceTitle"
  9184. :index="stIndex + 1"
  9185. >
  9186. 题目{{ stIndex + 1 }}:请选择正确顺序
  9187. </div>
  9188. <div class="cardList" v-if="st.chooseSenList">
  9189. <div class="cardBox">
  9190. <div
  9191. v-for="(r, rIndex) in st.chooseSenList"
  9192. :key="rIndex"
  9193. @click="returnCard(r, stIndex, rIndex)"
  9194. >
  9195. <el-tooltip
  9196. class="item"
  9197. effect="light"
  9198. :content="r"
  9199. placement="top"
  9200. v-if="r != '' && r != undefined"
  9201. >
  9202. <div
  9203. :class="{
  9204. isCard: r,
  9205. isChooseCard: r == '' || r == undefined,
  9206. }"
  9207. >
  9208. <div>{{ r }}</div>
  9209. </div>
  9210. </el-tooltip>
  9211. <div
  9212. :class="{
  9213. isCard: r,
  9214. isChooseCard: r == '' || r == undefined,
  9215. }"
  9216. v-else
  9217. >
  9218. <div>{{ r }}</div>
  9219. </div>
  9220. </div>
  9221. </div>
  9222. </div>
  9223. <div class="cardList" v-if="st.addChangeSen">
  9224. <div class="cardBox">
  9225. <div
  9226. v-for="(s, sIndex) in st.addChangeSen"
  9227. :key="sIndex"
  9228. @click="setRightAnswer(s, stIndex, sIndex)"
  9229. >
  9230. <el-tooltip
  9231. class="item"
  9232. effect="light"
  9233. :content="s"
  9234. placement="top"
  9235. v-if="s != '' && s != undefined"
  9236. >
  9237. <div
  9238. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  9239. >
  9240. <div>{{ s }}</div>
  9241. </div>
  9242. </el-tooltip>
  9243. <div
  9244. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  9245. v-else
  9246. >
  9247. <div>{{ s }}</div>
  9248. </div>
  9249. </div>
  9250. </div>
  9251. </div>
  9252. </div>
  9253. </div>
  9254. </div>
  9255. <span slot="footer" class="dialog-footer">
  9256. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  9257. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  9258. </span>
  9259. </el-dialog>
  9260. <el-dialog
  9261. title="排序"
  9262. :visible.sync="dialogVisibleSentenceTeacher"
  9263. :append-to-body="true"
  9264. width="1000px"
  9265. :before-close="handleClose"
  9266. class="dialog_diy dialog_diy3"
  9267. >
  9268. <div>
  9269. <div class="w_name">
  9270. 学生姓名:<span>{{ sStudent.student }}</span>
  9271. </div>
  9272. <div class="sentenBox">
  9273. <div
  9274. v-for="(st, stIndex) in sentenceList"
  9275. :key="stIndex"
  9276. style="padding-bottom: 20px"
  9277. >
  9278. <div
  9279. style="padding: 15px 0 10px 20px"
  9280. class="sentenceTitle"
  9281. :index="stIndex + 1"
  9282. >
  9283. 题目{{ stIndex + 1 }}:请选择正确顺序
  9284. </div>
  9285. <div class="cardList" v-if="st.chooseSenList">
  9286. <div class="cardBox">
  9287. <div
  9288. v-for="(r, rIndex) in st.chooseSenList"
  9289. :key="rIndex"
  9290. @click="returnCard(r, stIndex, rIndex)"
  9291. >
  9292. <el-tooltip
  9293. class="item"
  9294. effect="light"
  9295. :content="r"
  9296. placement="top"
  9297. v-if="r != '' && r != undefined"
  9298. >
  9299. <div
  9300. :class="{
  9301. isCard: r,
  9302. isChooseCard: r == '' || r == undefined,
  9303. }"
  9304. >
  9305. <div>{{ r }}</div>
  9306. </div>
  9307. </el-tooltip>
  9308. <div
  9309. :class="{
  9310. isCard: r,
  9311. isChooseCard: r == '' || r == undefined,
  9312. }"
  9313. v-else
  9314. >
  9315. <div>{{ r }}</div>
  9316. </div>
  9317. </div>
  9318. </div>
  9319. </div>
  9320. <div class="cardList" v-if="st.addChangeSen">
  9321. <div class="cardBox">
  9322. <div
  9323. v-for="(s, sIndex) in st.addChangeSen"
  9324. :key="sIndex"
  9325. @click="setRightAnswer(s, stIndex, sIndex)"
  9326. >
  9327. <el-tooltip
  9328. class="item"
  9329. effect="light"
  9330. :content="s"
  9331. placement="top"
  9332. v-if="s != '' && s != undefined"
  9333. >
  9334. <div
  9335. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  9336. >
  9337. <div>{{ s }}</div>
  9338. </div>
  9339. </el-tooltip>
  9340. <div
  9341. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  9342. v-else
  9343. >
  9344. <div>{{ s }}</div>
  9345. </div>
  9346. </div>
  9347. </div>
  9348. </div>
  9349. </div>
  9350. </div>
  9351. </div>
  9352. <span slot="footer" class="dialog-footer">
  9353. <el-button @click="dialogVisibleSentenceTeacher = false"
  9354. >取 消</el-button
  9355. >
  9356. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  9357. </span>
  9358. </el-dialog>
  9359. <el-dialog
  9360. title="排序"
  9361. :visible.sync="dialogVisibleSentence1"
  9362. :append-to-body="true"
  9363. width="1000px"
  9364. :before-close="handleClose"
  9365. class="dialog_diy dialog_diy3"
  9366. >
  9367. <div>
  9368. <div class="sentenBox">
  9369. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  9370. {{ sentenceList1.stuName }}的作业
  9371. </div>
  9372. <div
  9373. v-for="(st, stIndex) in sentenceList1"
  9374. :key="stIndex"
  9375. style="padding-bottom: 20px"
  9376. >
  9377. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  9378. 第{{ stIndex + 1 }}题
  9379. </div>
  9380. <div class="isWrong">
  9381. <div class="cardList1" v-if="st.chooseSenList">
  9382. <div class="cardBox">
  9383. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  9384. <el-tooltip
  9385. class="item"
  9386. effect="light"
  9387. :content="s"
  9388. placement="top"
  9389. >
  9390. <div class="isCard">
  9391. <div>{{ s }}</div>
  9392. </div>
  9393. </el-tooltip>
  9394. </div>
  9395. </div>
  9396. <div class="cardAnswerBox">
  9397. 组成句子:{{ st.chooseSenList.join(" ") }}
  9398. </div>
  9399. </div>
  9400. <div v-if="tType == 2" class="isTj">
  9401. <div class="isTjImg">
  9402. <img src="../assets/icon/conSentences/right.png" alt="" />
  9403. </div>
  9404. <div>已提交</div>
  9405. </div>
  9406. <div
  9407. class="answerRight isTj"
  9408. v-if="
  9409. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  9410. (tType == 1 || tType == 4)
  9411. "
  9412. >
  9413. <div class="isTjImg">
  9414. <img src="../assets/icon/conSentences/right.png" alt="" />
  9415. </div>
  9416. <div>回答正确</div>
  9417. </div>
  9418. <div
  9419. class="answerRight isTj"
  9420. v-if="
  9421. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  9422. (tType == 1 || tType == 4)
  9423. "
  9424. >
  9425. <div class="isTjImg">
  9426. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  9427. </div>
  9428. <div>回答错误</div>
  9429. </div>
  9430. </div>
  9431. <div
  9432. v-if="
  9433. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  9434. (tType == 1 || tType == 4)
  9435. "
  9436. >
  9437. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  9438. <div
  9439. class="cardList"
  9440. v-if="st.rightAnswer"
  9441. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  9442. >
  9443. <div class="cardBox">
  9444. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  9445. <el-tooltip
  9446. class="item"
  9447. effect="light"
  9448. :content="r"
  9449. placement="top"
  9450. >
  9451. <div class="isCard1">
  9452. <div>{{ r }}</div>
  9453. </div>
  9454. </el-tooltip>
  9455. </div>
  9456. </div>
  9457. <div class="cardAnswerBox">
  9458. 组成句子:{{ st.rightAnswer.join(" ") }}
  9459. </div>
  9460. </div>
  9461. </div>
  9462. </div>
  9463. </div>
  9464. </div>
  9465. <span slot="footer" class="dialog-footer">
  9466. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  9467. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  9468. >确 定</el-button
  9469. >
  9470. </span>
  9471. </el-dialog>
  9472. <el-dialog
  9473. title="教师提交作业"
  9474. :visible.sync="dialogVisibleWorks"
  9475. :append-to-body="true"
  9476. width="500px"
  9477. :before-close="handleClose"
  9478. class="dialog_change"
  9479. >
  9480. <div class="marginT">
  9481. <div class="w_name">
  9482. 学生姓名:<span>{{ sStudent.student }}</span>
  9483. </div>
  9484. <div>上传文件</div>
  9485. <div
  9486. class="chapter_add"
  9487. @click="addImg($event)"
  9488. v-if="studyJuri[0].cover.length == 0"
  9489. >
  9490. <div class="up_photo">
  9491. <img src="../assets/uploadImg2.png" alt />
  9492. </div>
  9493. <!-- <input
  9494. type="file"
  9495. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  9496. style="display: none"
  9497. @change="beforeUpload1($event, 1)"
  9498. /> -->
  9499. <input
  9500. type="file"
  9501. accept="*"
  9502. style="display: none"
  9503. @change="beforeUpload1($event, 1)"
  9504. />
  9505. </div>
  9506. <!-- capture="camera" -->
  9507. <div
  9508. class="chapter_add"
  9509. style="
  9510. display: flex;
  9511. width: 100%;
  9512. flex-direction: row;
  9513. flex-wrap: wrap;
  9514. justify-content: flex-start;
  9515. padding: 15px 0;
  9516. "
  9517. v-if="studyJuri[0].cover.length > 0"
  9518. >
  9519. <div class="upCover">
  9520. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  9521. <img :src="word" alt v-else-if="fileType == 1" />
  9522. <img :src="video" alt v-else-if="fileType == 2" />
  9523. <img :src="word2" alt v-else-if="fileType == 3" />
  9524. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  9525. <div class="deleteWord" @click="clean(1)">
  9526. <img src="../assets/icon/deleteWorks.png" alt />
  9527. </div>
  9528. </div>
  9529. </div>
  9530. </div>
  9531. <div
  9532. class="upload_send"
  9533. @click="addCourseWorksTeacher(taskCount)"
  9534. v-if="!proVisible"
  9535. >
  9536. 提交
  9537. </div>
  9538. </el-dialog>
  9539. <ImgDraw
  9540. :drawShow="drawShow"
  9541. @closeDraw="closeDraw"
  9542. @addImgDraw="addImgDraw"
  9543. :bg="bg"
  9544. ></ImgDraw>
  9545. <el-dialog
  9546. title="表格"
  9547. :visible.sync="dialogVisibleTable"
  9548. :append-to-body="true"
  9549. width="95%"
  9550. :before-close="handleClose"
  9551. class="dialog_diy"
  9552. >
  9553. <el-form>
  9554. <div
  9555. style="
  9556. display: flex;
  9557. align-items: center;
  9558. justify-content: space-between;
  9559. "
  9560. >
  9561. <span>表格内容</span>
  9562. <el-button type="primary" size="small" @click="returnTableText"
  9563. >还原模板</el-button
  9564. >
  9565. </div>
  9566. <Table
  9567. v-model="tableJson.text"
  9568. @change="change"
  9569. v-if="dialogVisibleTable"
  9570. ></Table>
  9571. </el-form>
  9572. <span slot="footer" class="dialog-footer">
  9573. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  9574. <el-button type="primary" @click="addTableWorks">确定</el-button>
  9575. </span>
  9576. </el-dialog>
  9577. <el-dialog
  9578. title="表格"
  9579. :visible.sync="dialogVisibleTableTeacher"
  9580. :append-to-body="true"
  9581. width="95%"
  9582. :before-close="handleClose"
  9583. class="dialog_diy"
  9584. >
  9585. <el-form>
  9586. <div class="w_name">
  9587. 学生姓名:<span>{{ sStudent.student }}</span>
  9588. </div>
  9589. <div>表格内容</div>
  9590. <Table
  9591. v-model="tableJson.text"
  9592. @change="change"
  9593. v-if="dialogVisibleTableTeacher"
  9594. ></Table>
  9595. </el-form>
  9596. <span slot="footer" class="dialog-footer">
  9597. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  9598. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  9599. </span>
  9600. </el-dialog>
  9601. <el-dialog
  9602. title="文档"
  9603. :visible.sync="dialogVisibleWord"
  9604. :append-to-body="true"
  9605. width="95%"
  9606. :before-close="handleClose"
  9607. class="dialog_diy"
  9608. >
  9609. <el-form>
  9610. <div
  9611. style="
  9612. display: flex;
  9613. align-items: center;
  9614. justify-content: space-between;
  9615. "
  9616. >
  9617. <span>文档内容</span>
  9618. <el-button type="primary" size="small" @click="returnWordText"
  9619. >还原模板</el-button
  9620. >
  9621. </div>
  9622. <editor-bar
  9623. v-model="wordJson.text"
  9624. v-if="dialogVisibleWord"
  9625. ></editor-bar>
  9626. </el-form>
  9627. <span slot="footer" class="dialog-footer">
  9628. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  9629. <el-button type="primary" @click="addWordWorks">确定</el-button>
  9630. </span>
  9631. </el-dialog>
  9632. <el-dialog
  9633. title="文档"
  9634. :visible.sync="dialogVisibleWordTeacher"
  9635. :append-to-body="true"
  9636. width="95%"
  9637. :before-close="handleClose"
  9638. class="dialog_diy"
  9639. >
  9640. <el-form>
  9641. <div class="w_name">
  9642. 学生姓名:<span>{{ sStudent.student }}</span>
  9643. </div>
  9644. <div>文档内容</div>
  9645. <editor-bar
  9646. v-model="wordJson.text"
  9647. v-if="dialogVisibleWordTeacher"
  9648. ></editor-bar>
  9649. </el-form>
  9650. <span slot="footer" class="dialog-footer">
  9651. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  9652. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  9653. </span>
  9654. </el-dialog>
  9655. <el-dialog
  9656. title="表格"
  9657. :visible.sync="dialogVisibleTable2"
  9658. :append-to-body="true"
  9659. width="95%"
  9660. :before-close="handleClose"
  9661. class="dialog_diy"
  9662. >
  9663. <el-form>
  9664. <div class="cont" v-html="tableJson.text"></div>
  9665. </el-form>
  9666. <span slot="footer" class="dialog-footer">
  9667. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  9668. </span>
  9669. </el-dialog>
  9670. <el-dialog
  9671. title="文档"
  9672. :visible.sync="dialogVisibleTable3"
  9673. :append-to-body="true"
  9674. width="95%"
  9675. :before-close="handleClose"
  9676. class="dialog_diy"
  9677. >
  9678. <el-form>
  9679. <div class="cont" v-html="tableJson.text"></div>
  9680. </el-form>
  9681. <span slot="footer" class="dialog-footer">
  9682. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  9683. </span>
  9684. </el-dialog>
  9685. <el-dialog
  9686. title="分组设置"
  9687. :visible.sync="dialogVisibleGroup"
  9688. :append-to-body="true"
  9689. width="95%"
  9690. :before-close="handleClose"
  9691. class="dialog_diy"
  9692. >
  9693. <div v-if="dialogVisibleGroup">
  9694. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  9695. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  9696. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  9697. </div>
  9698. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  9699. @click="lockChair">
  9700. 锁定位置
  9701. </div>
  9702. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  9703. 解锁位置
  9704. </div> -->
  9705. <div class="group_switch">
  9706. <span>开放选座</span>
  9707. <el-switch
  9708. v-model="islock"
  9709. active-text=""
  9710. class="switchCss"
  9711. @change="lockChair"
  9712. ></el-switch>
  9713. </div>
  9714. <div
  9715. type="primary"
  9716. @click="updateGroup"
  9717. class="returnBtn"
  9718. style="background-color: #225bc7"
  9719. >
  9720. 分组设置
  9721. </div>
  9722. </div>
  9723. <div>
  9724. <div
  9725. class="g_d_box"
  9726. v-if="groupJson.group && groupStudent[toolindex]"
  9727. >
  9728. <div
  9729. class="g_d_group"
  9730. v-for="(g, gindex) in groupJson.group"
  9731. :key="gindex"
  9732. >
  9733. <div class="g_d_group_chair">
  9734. <div v-if="groupJson.number > 1">
  9735. <span
  9736. :class="{
  9737. isChair:
  9738. groupStudent[toolindex][gindex] &&
  9739. groupStudent[toolindex][gindex][0],
  9740. updateChair:
  9741. courseDetail.userid == userid &&
  9742. groupStudent[toolindex][gindex] &&
  9743. groupStudent[toolindex][gindex][0] &&
  9744. groupJson.islock == 2,
  9745. }"
  9746. ><span
  9747. class="updateChairBtn"
  9748. @click="
  9749. updateGroupChair(
  9750. groupStudent[toolindex][gindex] &&
  9751. groupStudent[toolindex][gindex][0]
  9752. )
  9753. "
  9754. >修改</span
  9755. ></span
  9756. ><span>{{
  9757. groupStudent[toolindex][gindex] &&
  9758. groupStudent[toolindex][gindex][0]
  9759. ? groupStudent[toolindex][gindex] &&
  9760. groupStudent[toolindex][gindex][0].name
  9761. : "空位置"
  9762. }}</span>
  9763. </div>
  9764. <div v-if="groupJson.number > 4">
  9765. <span
  9766. :class="{
  9767. isChair:
  9768. groupStudent[toolindex][gindex] &&
  9769. groupStudent[toolindex][gindex][4],
  9770. updateChair:
  9771. courseDetail.userid == userid &&
  9772. groupStudent[toolindex][gindex] &&
  9773. groupStudent[toolindex][gindex][4] &&
  9774. groupJson.islock == 2,
  9775. }"
  9776. ><span
  9777. class="updateChairBtn"
  9778. @click="
  9779. updateGroupChair(
  9780. groupStudent[toolindex][gindex] &&
  9781. groupStudent[toolindex][gindex][4]
  9782. )
  9783. "
  9784. >修改</span
  9785. ></span
  9786. ><span>{{
  9787. groupStudent[toolindex][gindex] &&
  9788. groupStudent[toolindex][gindex][4]
  9789. ? groupStudent[toolindex][gindex] &&
  9790. groupStudent[toolindex][gindex][4].name
  9791. : "空位置"
  9792. }}</span>
  9793. </div>
  9794. <div v-if="groupJson.number > 8">
  9795. <span
  9796. :class="{
  9797. isChair:
  9798. groupStudent[toolindex][gindex] &&
  9799. groupStudent[toolindex][gindex][8],
  9800. updateChair:
  9801. courseDetail.userid == userid &&
  9802. groupStudent[toolindex][gindex] &&
  9803. groupStudent[toolindex][gindex][8] &&
  9804. groupJson.islock == 2,
  9805. }"
  9806. ><span
  9807. class="updateChairBtn"
  9808. @click="
  9809. updateGroupChair(
  9810. groupStudent[toolindex][gindex] &&
  9811. groupStudent[toolindex][gindex][8]
  9812. )
  9813. "
  9814. >修改</span
  9815. ></span
  9816. ><span>{{
  9817. groupStudent[toolindex][gindex] &&
  9818. groupStudent[toolindex][gindex][8]
  9819. ? groupStudent[toolindex][gindex] &&
  9820. groupStudent[toolindex][gindex][8].name
  9821. : "空位置"
  9822. }}</span>
  9823. </div>
  9824. </div>
  9825. <div class="g_d_group_tableBox">
  9826. <div class="g_d_group_chair2">
  9827. <div v-if="groupJson.number > 2">
  9828. <span
  9829. :class="{
  9830. isChair:
  9831. groupStudent[toolindex][gindex] &&
  9832. groupStudent[toolindex][gindex][2],
  9833. updateChair:
  9834. courseDetail.userid == userid &&
  9835. groupStudent[toolindex][gindex] &&
  9836. groupStudent[toolindex][gindex][2] &&
  9837. groupJson.islock == 2,
  9838. }"
  9839. ><span
  9840. class="updateChairBtn"
  9841. @click="
  9842. updateGroupChair(
  9843. groupStudent[toolindex][gindex] &&
  9844. groupStudent[toolindex][gindex][2]
  9845. )
  9846. "
  9847. >修改</span
  9848. ></span
  9849. ><span>{{
  9850. groupStudent[toolindex][gindex] &&
  9851. groupStudent[toolindex][gindex][2]
  9852. ? groupStudent[toolindex][gindex] &&
  9853. groupStudent[toolindex][gindex][2].name
  9854. : "空位置"
  9855. }}</span>
  9856. </div>
  9857. <div v-if="groupJson.number > 6">
  9858. <span
  9859. :class="{
  9860. isChair:
  9861. groupStudent[toolindex][gindex] &&
  9862. groupStudent[toolindex][gindex][6],
  9863. updateChair:
  9864. courseDetail.userid == userid &&
  9865. groupStudent[toolindex][gindex] &&
  9866. groupStudent[toolindex][gindex][6] &&
  9867. groupJson.islock == 2,
  9868. }"
  9869. ><span
  9870. class="updateChairBtn"
  9871. @click="
  9872. updateGroupChair(
  9873. groupStudent[toolindex][gindex] &&
  9874. groupStudent[toolindex][gindex][6]
  9875. )
  9876. "
  9877. >修改</span
  9878. ></span
  9879. ><span>{{
  9880. groupStudent[toolindex][gindex] &&
  9881. groupStudent[toolindex][gindex][6]
  9882. ? groupStudent[toolindex][gindex] &&
  9883. groupStudent[toolindex][gindex][6].name
  9884. : "空位置"
  9885. }}</span>
  9886. </div>
  9887. </div>
  9888. <div class="g_d_group_table">
  9889. <div>
  9890. {{ g.name }}
  9891. </div>
  9892. <div>
  9893. <div
  9894. v-if="
  9895. courseDetail.userid == userid && groupJson.islock == 2
  9896. "
  9897. @click="deleteGroupChair(gindex)"
  9898. >
  9899. 移除组员
  9900. </div>
  9901. <div
  9902. @click="selectGroup(gindex)"
  9903. v-else-if="
  9904. groupStudentUid[toolindex] &&
  9905. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  9906. "
  9907. >
  9908. 加入分组
  9909. </div>
  9910. <div
  9911. @click="
  9912. exitGroup(
  9913. groupStudent[toolindex][gindex] &&
  9914. groupStudent[toolindex][gindex][
  9915. groupStudentUid[toolindex][gindex].indexOf(userid)
  9916. ].id
  9917. )
  9918. "
  9919. v-else-if="
  9920. groupStudentUid[toolindex] &&
  9921. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  9922. "
  9923. >
  9924. 退出分组
  9925. </div>
  9926. </div>
  9927. </div>
  9928. <div class="g_d_group_chair2">
  9929. <div v-if="groupJson.number > 3">
  9930. <span
  9931. :class="{
  9932. isChair:
  9933. groupStudent[toolindex][gindex] &&
  9934. groupStudent[toolindex][gindex][3],
  9935. updateChair:
  9936. courseDetail.userid == userid &&
  9937. groupStudent[toolindex][gindex] &&
  9938. groupStudent[toolindex][gindex][3] &&
  9939. groupJson.islock == 2,
  9940. }"
  9941. ><span
  9942. class="updateChairBtn"
  9943. @click="
  9944. updateGroupChair(
  9945. groupStudent[toolindex][gindex] &&
  9946. groupStudent[toolindex][gindex][3]
  9947. )
  9948. "
  9949. >修改</span
  9950. ></span
  9951. ><span>{{
  9952. groupStudent[toolindex][gindex] &&
  9953. groupStudent[toolindex][gindex][3]
  9954. ? groupStudent[toolindex][gindex] &&
  9955. groupStudent[toolindex][gindex][3].name
  9956. : "空位置"
  9957. }}</span>
  9958. </div>
  9959. <div v-if="groupJson.number > 7">
  9960. <span
  9961. :class="{
  9962. isChair:
  9963. groupStudent[toolindex][gindex] &&
  9964. groupStudent[toolindex][gindex][7],
  9965. updateChair:
  9966. courseDetail.userid == userid &&
  9967. groupStudent[toolindex][gindex] &&
  9968. groupStudent[toolindex][gindex][7] &&
  9969. groupJson.islock == 2,
  9970. }"
  9971. ><span
  9972. class="updateChairBtn"
  9973. @click="
  9974. updateGroupChair(
  9975. groupStudent[toolindex][gindex] &&
  9976. groupStudent[toolindex][gindex][7]
  9977. )
  9978. "
  9979. >修改</span
  9980. ></span
  9981. ><span>{{
  9982. groupStudent[toolindex][gindex] &&
  9983. groupStudent[toolindex][gindex][7]
  9984. ? groupStudent[toolindex][gindex] &&
  9985. groupStudent[toolindex][gindex][7].name
  9986. : "空位置"
  9987. }}</span>
  9988. </div>
  9989. </div>
  9990. </div>
  9991. <div class="g_d_group_chair">
  9992. <div v-if="groupJson.number > 1">
  9993. <span
  9994. :class="{
  9995. isChair:
  9996. groupStudent[toolindex][gindex] &&
  9997. groupStudent[toolindex][gindex][1],
  9998. updateChair:
  9999. courseDetail.userid == userid &&
  10000. groupStudent[toolindex][gindex] &&
  10001. groupStudent[toolindex][gindex][1] &&
  10002. groupJson.islock == 2,
  10003. }"
  10004. ><span
  10005. class="updateChairBtn"
  10006. @click="
  10007. updateGroupChair(
  10008. groupStudent[toolindex][gindex] &&
  10009. groupStudent[toolindex][gindex][1]
  10010. )
  10011. "
  10012. >修改</span
  10013. ></span
  10014. ><span>{{
  10015. groupStudent[toolindex][gindex] &&
  10016. groupStudent[toolindex][gindex][1]
  10017. ? groupStudent[toolindex][gindex] &&
  10018. groupStudent[toolindex][gindex][1].name
  10019. : "空位置"
  10020. }}</span>
  10021. </div>
  10022. <div v-if="groupJson.number > 5">
  10023. <span
  10024. :class="{
  10025. isChair:
  10026. groupStudent[toolindex][gindex] &&
  10027. groupStudent[toolindex][gindex][5],
  10028. updateChair:
  10029. courseDetail.userid == userid &&
  10030. groupStudent[toolindex][gindex] &&
  10031. groupStudent[toolindex][gindex][5] &&
  10032. groupJson.islock == 2,
  10033. }"
  10034. ><span
  10035. class="updateChairBtn"
  10036. @click="
  10037. updateGroupChair(
  10038. groupStudent[toolindex][gindex] &&
  10039. groupStudent[toolindex][gindex][5]
  10040. )
  10041. "
  10042. >修改</span
  10043. ></span
  10044. ><span>{{
  10045. groupStudent[toolindex][gindex] &&
  10046. groupStudent[toolindex][gindex][5]
  10047. ? groupStudent[toolindex][gindex] &&
  10048. groupStudent[toolindex][gindex][5].name
  10049. : "空位置"
  10050. }}</span>
  10051. </div>
  10052. <div v-if="groupJson.number > 9">
  10053. <span
  10054. :class="{
  10055. isChair:
  10056. groupStudent[toolindex][gindex] &&
  10057. groupStudent[toolindex][gindex][9],
  10058. updateChair:
  10059. courseDetail.userid == userid &&
  10060. groupStudent[toolindex][gindex] &&
  10061. groupStudent[toolindex][gindex][9] &&
  10062. groupJson.islock == 2,
  10063. }"
  10064. ><span
  10065. class="updateChairBtn"
  10066. @click="
  10067. updateGroupChair(
  10068. groupStudent[toolindex][gindex] &&
  10069. groupStudent[toolindex][gindex][9]
  10070. )
  10071. "
  10072. >修改</span
  10073. ></span
  10074. ><span>{{
  10075. groupStudent[toolindex][gindex] &&
  10076. groupStudent[toolindex][gindex][9]
  10077. ? groupStudent[toolindex][gindex] &&
  10078. groupStudent[toolindex][gindex][9].name
  10079. : "空位置"
  10080. }}</span>
  10081. </div>
  10082. </div>
  10083. </div>
  10084. </div>
  10085. </div>
  10086. </div>
  10087. <span slot="footer" class="dialog-footer">
  10088. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  10089. </span>
  10090. </el-dialog>
  10091. <el-dialog
  10092. title="分组设置"
  10093. :visible.sync="dialogVisibleGroup2"
  10094. :append-to-body="true"
  10095. width="650px"
  10096. :before-close="handleClose"
  10097. class="dialog_diy"
  10098. >
  10099. <div class="groupBox">
  10100. <div v-if="groupJson2.group" class="groupContent">
  10101. <div class="groupTitle">请设置小组数量及名称</div>
  10102. <div
  10103. v-for="(item, index) in groupJson2.group"
  10104. :key="index"
  10105. class="groupName"
  10106. >
  10107. <span class="groupn">第{{ index + 1 }}组名称:</span>
  10108. <el-input
  10109. v-model="item.name"
  10110. placeholder="请输入名称..."
  10111. style="width: 250px"
  10112. ></el-input>
  10113. <!-- <div class="groupBtn">
  10114. <el-button type="primary" size="small" @click="addGroup(index)">
  10115. 添加</el-button>
  10116. <el-button type="primary" size="small" @click="deleteGroup(index)"
  10117. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  10118. </div> -->
  10119. </div>
  10120. </div>
  10121. <div class="groupContent">
  10122. <div class="groupTitle">请设置每组人数</div>
  10123. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  10124. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  10125. <el-input
  10126. v-model="groupJson.number"
  10127. style="width: 150px"
  10128. placeholder="请输入2-10的数字"
  10129. @change="numberPan"
  10130. ></el-input>
  10131. </div>
  10132. </div>
  10133. <span slot="footer" class="dialog-footer">
  10134. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  10135. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  10136. </span>
  10137. </el-dialog>
  10138. <el-dialog
  10139. title="作业提交"
  10140. :visible.sync="dialogVisibleGroupWork"
  10141. :append-to-body="true"
  10142. width="500px"
  10143. :before-close="handleClose"
  10144. class="dialog_change"
  10145. >
  10146. <div class="marginT">
  10147. <div>上传文件</div>
  10148. <div
  10149. class="chapter_add"
  10150. @click="addImg($event)"
  10151. v-if="studyJuri[0].cover.length == 0"
  10152. >
  10153. <div class="up_photo">
  10154. <img src="../assets/icon/uploadImg.png" alt />
  10155. </div>
  10156. <!-- <input
  10157. type="file"
  10158. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10159. style="display: none"
  10160. @change="beforeUpload1($event, 1)"
  10161. /> -->
  10162. <input
  10163. type="file"
  10164. accept="*"
  10165. style="display: none"
  10166. @change="beforeUpload1($event, 1)"
  10167. />
  10168. </div>
  10169. <!-- capture="camera" -->
  10170. <div
  10171. class="chapter_add"
  10172. style="
  10173. display: flex;
  10174. width: 100%;
  10175. flex-direction: row;
  10176. flex-wrap: wrap;
  10177. justify-content: flex-start;
  10178. padding: 15px 0;
  10179. "
  10180. v-if="studyJuri[0].cover.length > 0"
  10181. >
  10182. <div class="upCover">
  10183. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10184. <img :src="word" alt v-else-if="fileType == 1" />
  10185. <img :src="video" alt v-else-if="fileType == 2" />
  10186. <img :src="word2" alt v-else-if="fileType == 3" />
  10187. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10188. <div class="deleteWord" @click="clean(1)">
  10189. <img src="../assets/icon/deleteWorks.png" alt />
  10190. </div>
  10191. </div>
  10192. </div>
  10193. </div>
  10194. <div
  10195. class="upload_send"
  10196. @click="addCourseWorks2(taskCount)"
  10197. v-if="!proVisible"
  10198. >
  10199. 提交
  10200. </div>
  10201. </el-dialog>
  10202. <el-dialog
  10203. title="修改分组"
  10204. :visible.sync="dialogVisibleUpdateGroup"
  10205. :append-to-body="true"
  10206. width="350px"
  10207. :before-close="handleClose"
  10208. class="dialog_diy"
  10209. >
  10210. <div>
  10211. <h2>
  10212. {{ this.updateGroupUser.name }}
  10213. </h2>
  10214. <div style="color: rgb(171 171 171); margin-top: 10px">
  10215. 请选择要进入的分组
  10216. </div>
  10217. <el-radio-group v-model="checkChair">
  10218. <el-radio
  10219. style="display: block; margin-top: 20px"
  10220. v-for="(item, index) in updateGroupArray"
  10221. :label="item.label"
  10222. :key="index"
  10223. >{{ item.name }}</el-radio
  10224. >
  10225. </el-radio-group>
  10226. </div>
  10227. <span slot="footer" class="dialog-footer">
  10228. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  10229. <el-button type="primary" @click="updateChair">确定</el-button>
  10230. </span>
  10231. </el-dialog>
  10232. <el-dialog
  10233. title="移除组员"
  10234. :visible.sync="dialogVisibleDeleteGroup"
  10235. :append-to-body="true"
  10236. width="350px"
  10237. :before-close="handleClose"
  10238. class="dialog_diy"
  10239. >
  10240. <div>
  10241. <h2>
  10242. {{ this.deleteGroupArray.name }}
  10243. </h2>
  10244. <div style="color: rgb(171 171 171); margin-top: 10px">
  10245. 请选择要删除的组员
  10246. </div>
  10247. <el-checkbox-group v-model="checkDeleteGroup">
  10248. <el-checkbox
  10249. style="display: block; margin-top: 20px"
  10250. v-for="(item, index) in deleteGroupUser"
  10251. :label="item.userid"
  10252. :key="index"
  10253. >{{ item.name }}</el-checkbox
  10254. >
  10255. </el-checkbox-group>
  10256. </div>
  10257. <span slot="footer" class="dialog-footer">
  10258. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  10259. <el-button type="primary" @click="deleteChair">确定</el-button>
  10260. </span>
  10261. </el-dialog>
  10262. <el-dialog
  10263. title="批量上传"
  10264. :visible.sync="dialogVisiblePl"
  10265. :append-to-body="true"
  10266. width="700px"
  10267. :before-close="handleClose"
  10268. class="dialog_change"
  10269. >
  10270. <div class="marginT">
  10271. <div class="plworkBox">
  10272. <div
  10273. class="chapter_add"
  10274. style="
  10275. display: flex;
  10276. width: 150px;
  10277. flex-direction: row;
  10278. flex-wrap: wrap;
  10279. justify-content: flex-start;
  10280. margin: 0 10px 10px 0;
  10281. "
  10282. v-for="(item, index) in plworkFile"
  10283. :key="index"
  10284. >
  10285. <div class="upCover2">
  10286. <img
  10287. :src="item.url"
  10288. alt
  10289. v-if="item.fileType == 1"
  10290. @click="previewImg(item.url)"
  10291. />
  10292. <img :src="word" alt v-else-if="item.fileType == 4" />
  10293. <img :src="video" alt v-else />
  10294. <!-- <span class="picName">{{ item.name }}</span> -->
  10295. <!-- <el-input
  10296. v-model="item.username"
  10297. placeholder="请输入学生名字"
  10298. style="margin-top: 10px"
  10299. ></el-input> -->
  10300. <div
  10301. class="pl_select_box"
  10302. @click="
  10303. getUpdateMore(true, checkUpload(), item.username, index)
  10304. "
  10305. >
  10306. {{ getSName(item.username) }}
  10307. </div>
  10308. <!-- <el-select
  10309. style="margin-top: 10px"
  10310. v-model="item.username"
  10311. filterable
  10312. allow-create
  10313. placeholder="请选择学生"
  10314. >
  10315. <el-option
  10316. v-for="item1 in checkUpload()"
  10317. :key="item1.userid"
  10318. :label="item1.name ? item1.name : item1.username"
  10319. :value="item1.userid"
  10320. >
  10321. </el-option>
  10322. </el-select> -->
  10323. <div class="deleteWord" @click="clean2(index)">
  10324. <img src="../assets/icon/deleteWorks.png" alt />
  10325. </div>
  10326. </div>
  10327. </div>
  10328. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  10329. <div class="up_photo2">
  10330. <img src="../assets/icon/plwork.png" alt />
  10331. <span>点击上传文件</span>
  10332. </div>
  10333. <input
  10334. type="file"
  10335. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10336. multiple="multiple"
  10337. style="display: none"
  10338. @change="beforeUpload3($event, 6)"
  10339. />
  10340. </div>
  10341. </div>
  10342. </div>
  10343. <!-- capture="camera" -->
  10344. <div
  10345. class="upload_send"
  10346. @click="addCourseWorksPl(taskCount)"
  10347. v-if="!proVisible2"
  10348. >
  10349. 提交
  10350. </div>
  10351. </el-dialog>
  10352. <el-dialog
  10353. title="修改名称"
  10354. :visible.sync="dialogVisibleSname"
  10355. width="500px"
  10356. :before-close="handleClose"
  10357. class="dialog_diy"
  10358. center
  10359. >
  10360. <div
  10361. style="
  10362. text-align: center;
  10363. display: flex;
  10364. align-items: center;
  10365. justify-content: center;
  10366. "
  10367. >
  10368. <span class="tian1">名称</span>
  10369. <div
  10370. class="pl_select_box"
  10371. style="margin-left: 10px; width: 200px"
  10372. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  10373. >
  10374. {{ getSName(worksSName) }}
  10375. </div>
  10376. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  10377. placeholder="请选择学生">
  10378. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  10379. :value="item.userid">
  10380. </el-option>
  10381. </el-select> -->
  10382. <!-- <el-input
  10383. v-model="worksSName"
  10384. style="width: 250px; margin: 15px 0px"
  10385. ></el-input> -->
  10386. </div>
  10387. <span slot="footer" class="dialog-footer">
  10388. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  10389. <el-button type="primary" @click="updateName">确 定</el-button>
  10390. </span>
  10391. </el-dialog>
  10392. <interVideo
  10393. :dialogVisibleVideo.sync="dialogVisibleVideo"
  10394. :videoJson="videoJson"
  10395. :userid="userid"
  10396. :id="id"
  10397. :courseType="courseType"
  10398. :taskCount="taskCount"
  10399. :toolindex="toolindex"
  10400. ></interVideo>
  10401. <UpdateMore
  10402. :dialogVisibleMember.sync="dialogVisibleMember"
  10403. :cList="uploadStudentJuri"
  10404. :userid="userid"
  10405. :searchTN="worksSName2"
  10406. @setPlname="setPlname"
  10407. ></UpdateMore>
  10408. <wordCloud
  10409. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  10410. :data="wordCloudData"
  10411. ></wordCloud>
  10412. <el-dialog
  10413. title="挑人"
  10414. :visible.sync="dialogVisiblePickPeople"
  10415. width="650px"
  10416. :before-close="handleClose"
  10417. class="dialog_diy"
  10418. center
  10419. >
  10420. <div class="pick_box">
  10421. <div
  10422. class="noWorksName"
  10423. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  10424. v-for="(item, index) in uploadStudentJuri"
  10425. :key="index"
  10426. @click="pickStudent(item)"
  10427. >
  10428. {{ item.name }}
  10429. </div>
  10430. </div>
  10431. </el-dialog>
  10432. </div>
  10433. </template>
  10434. <script>
  10435. import "../common/aws-sdk-2.235.1.min.js";
  10436. // import pdf from "./components/pdf3";
  10437. import pdf from "./components/vpdf";
  10438. import AskStatic from "./components/askStatic";
  10439. import AskStatic2 from "./components/askStatic2";
  10440. import AnswerData2 from "./components/answerData2";
  10441. import AnswerData from "./components/answerData";
  10442. import EditorBar from "./tools/wangEnduit.vue";
  10443. import Table from "./tools/table.vue";
  10444. import Time from "./tools/time.vue";
  10445. import Mind from "./tools/jsmind.vue";
  10446. import Sunburst from "./tools/sunburst";
  10447. import SeeBoard from "./tools/seeBoard";
  10448. import * as imageConversion from "image-conversion";
  10449. import Audio from "./components/audio.vue";
  10450. import ImgDraw from "./tools/imgDraw/imgDraw";
  10451. import { Empty } from "element-ui";
  10452. import RecordRTC from "recordrtc";
  10453. import interVideo from "./interVideo/index.vue";
  10454. import UpdateMore from "./updateMore/updateMore.vue";
  10455. import wordCloud from "./wordCloud/index.vue";
  10456. export default {
  10457. components: {
  10458. EditorBar,
  10459. Time,
  10460. pdf,
  10461. AskStatic,
  10462. AskStatic2,
  10463. Mind,
  10464. Sunburst,
  10465. SeeBoard,
  10466. AnswerData2,
  10467. AnswerData,
  10468. Audio,
  10469. ImgDraw,
  10470. Table,
  10471. interVideo,
  10472. UpdateMore,
  10473. wordCloud,
  10474. },
  10475. data() {
  10476. return {
  10477. bg: null,
  10478. drawShow: false,
  10479. dialogVisible: false,
  10480. dialogVisiblePl: false,
  10481. commentDialogVisible: false,
  10482. dialogVisibleMember: false,
  10483. dialogVisibleWordCloud: false,
  10484. videoVisible: false,
  10485. isStar: false,
  10486. studentEvalDialogVisible: false,
  10487. studentEvalDialogVisibleTeacher: false,
  10488. dialogVisibleSelect: false,
  10489. dialogVisibleSelectTeacher: false,
  10490. dialogVisibleScore: false,
  10491. dialogVisibleSentence: false,
  10492. dialogVisibleSentenceTeacher: false,
  10493. dialogVisibleSentence1: false,
  10494. dialogVisibleWorks: false,
  10495. dialogVisibleTable: false,
  10496. dialogVisibleTableTeacher: false,
  10497. dialogVisibleWord: false,
  10498. dialogVisibleWordTeacher: false,
  10499. dialogVisibleTable2: false,
  10500. dialogVisibleTable3: false,
  10501. dialogVisibleGroupWork: false,
  10502. dialogVisibleUpdateGroup: false,
  10503. dialogVisibleDeleteGroup: false,
  10504. dialogVisibleSname: false,
  10505. dialogVisibleVideo: false,
  10506. dialogVisiblePickPeople: false,
  10507. worksSName: "",
  10508. classJuri: [],
  10509. uploadStudentJuri: [],
  10510. uploadCid: "",
  10511. snameWid: "",
  10512. sStudent: {},
  10513. sTool: "",
  10514. bzText: "",
  10515. commentDetail: [],
  10516. selectAnswer: [],
  10517. videoDetail: {},
  10518. selectJson: {},
  10519. eScore: { eBzText: "", eStar: [] },
  10520. id: this.$route.query.courseId,
  10521. userid: this.$route.query.userid,
  10522. classId: this.$route.query.cid,
  10523. // courseTypeLine: this.$route.query.type,
  10524. oid: this.$route.query.oid,
  10525. org: this.$route.query.org,
  10526. tType: this.$route.query.tType,
  10527. courseType: this.$route.query.type,
  10528. screenType: this.$route.query.screenType,
  10529. tcid2: this.$route.query.tcid,
  10530. tcid: "",
  10531. pptImgUrl: "",
  10532. pptImgUrl1: "",
  10533. commentText: "",
  10534. full: false,
  10535. sIsOpen: false,
  10536. IsLookOpen: false,
  10537. IsFollow: false,
  10538. pzDialog: false,
  10539. contentDialog: false,
  10540. mlDialog: false,
  10541. type: 1,
  10542. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  10543. sentenceList1: [],
  10544. tableJson: [],
  10545. tableJsonO: [],
  10546. wordJson: [],
  10547. wordJsonO: [],
  10548. vedio: [],
  10549. text: [],
  10550. textList: [],
  10551. line: [],
  10552. lineList: [],
  10553. chapTools: [],
  10554. chapToolList: [],
  10555. file: [],
  10556. fileC: [],
  10557. vedioTime: [],
  10558. upToolImg: "",
  10559. preTime: 0,
  10560. rateList: {
  10561. ca: 0,
  10562. },
  10563. rateParams: [],
  10564. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  10565. studyJuri: [
  10566. {
  10567. content: "",
  10568. cover: [],
  10569. upVedio: [],
  10570. upFile: [],
  10571. },
  10572. ],
  10573. isClose: 0,
  10574. plworkFile: [],
  10575. mr: require("../assets/vedioPic.png"),
  10576. word: require("../assets/icon/isWord.png"),
  10577. word2: require("../assets/icon/word2.png"),
  10578. video: require("../assets/icon/isVideo.png"),
  10579. noLikes: require("../assets/icon/comment/noLikes.png"),
  10580. likes: require("../assets/icon/comment/likes.png"),
  10581. scoreImg: require("../assets/score.png"),
  10582. courseDetail: {},
  10583. isSelect: false,
  10584. chapInfo: [],
  10585. chapInfoList: [],
  10586. taskCount: 0,
  10587. imgList: [],
  10588. noImgList: [],
  10589. pzList: [],
  10590. timeWorkList: [],
  10591. PlTextList: [
  10592. "Excellent!",
  10593. "nice!",
  10594. "很有创意!",
  10595. "还不错哦~",
  10596. "继续努力哦~",
  10597. ],
  10598. isClickNav: "",
  10599. navId: "",
  10600. playerOptions: {
  10601. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  10602. autoplay: false, //如果true,浏览器准备好时开始回放。
  10603. muted: false, // 默认情况下将会消除任何音频。
  10604. loop: false, // 导致视频一结束就重新开始。
  10605. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  10606. language: "zh-CN",
  10607. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  10608. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  10609. sources: [
  10610. {
  10611. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  10612. src: "", //url地址require("../../assets/media/aaa.mp4")
  10613. },
  10614. ],
  10615. // poster: require("../../assets/tu31.png"), //你的封面地址
  10616. // poster: dataRes.imgUrl, //你的封面地址
  10617. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  10618. controlBar: {
  10619. timeDivider: true, //当前时间和持续时间的分隔符
  10620. durationDisplay: true, //显示持续时间
  10621. remainingTimeDisplay: false, //是否显示剩余时间功能
  10622. fullscreenToggle: true, //全屏按钮
  10623. },
  10624. },
  10625. playerOptions1: {
  10626. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  10627. autoplay: false, //如果true,浏览器准备好时开始回放。
  10628. muted: false, // 默认情况下将会消除任何音频。
  10629. loop: false, // 导致视频一结束就重新开始。
  10630. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  10631. language: "zh-CN",
  10632. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  10633. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  10634. sources: [
  10635. {
  10636. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  10637. src: "", //url地址require("../../assets/media/aaa.mp4")
  10638. },
  10639. ],
  10640. // poster: require("../../assets/tu31.png"), //你的封面地址
  10641. // poster: dataRes.imgUrl, //你的封面地址
  10642. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  10643. controlBar: {
  10644. timeDivider: true, //当前时间和持续时间的分隔符
  10645. durationDisplay: true, //显示持续时间
  10646. remainingTimeDisplay: false, //是否显示剩余时间功能
  10647. fullscreenToggle: true, //全屏按钮
  10648. },
  10649. },
  10650. playerO: {},
  10651. noneBtnImg: false,
  10652. proVisible: false,
  10653. proVisible2: false,
  10654. progress: 0,
  10655. isFinishSize: 0,
  10656. isAllSize: 0,
  10657. questionAnswer: "",
  10658. answerQ: "", //问答标题
  10659. rateJson: [],
  10660. wbCount: 0,
  10661. wordCount: 0,
  10662. mindCount: 0,
  10663. askCount: 0,
  10664. noteCount: 0,
  10665. mindNetWorkCount: 0,
  10666. libraryCount: 0,
  10667. workCount: 0,
  10668. timeCount: 0,
  10669. answerCount: 0,
  10670. trainCount: 0,
  10671. evalCount: 0,
  10672. dialogImageUrl: "",
  10673. pictureDialog: false,
  10674. toolTypeList: [],
  10675. dialogVisible1: false,
  10676. dialogVisible2: false,
  10677. dialogVisible3: false,
  10678. dialogVisible6: false,
  10679. dialogVisible4: false,
  10680. isNoHomeWork: false,
  10681. dialogVisible5: false,
  10682. dialogVisible5Teacher: false,
  10683. dialogVisibleChoice: false,
  10684. dialogVisibleChoiceTeacher: false,
  10685. answerDialogVisible: false,
  10686. answerDialogVisibleTeacher: false,
  10687. juriVisible: false,
  10688. timeDialogVisible: false,
  10689. radio: [],
  10690. isAsk: false,
  10691. askJson: {
  10692. askCount: 1,
  10693. askTitle: "",
  10694. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10695. },
  10696. testJson: {},
  10697. checkJson: [],
  10698. askList: [],
  10699. answerList: [],
  10700. navList: [],
  10701. addPzDialog: false,
  10702. pzConText: "",
  10703. worksStudent: [],
  10704. isCloseList: [],
  10705. workStudent: [],
  10706. groupStudent: [],
  10707. groupStudentUid: [],
  10708. noWorksS: [],
  10709. isWorksS: [],
  10710. noWorksStudent: [],
  10711. toolindex: 0,
  10712. groupIndex: 0,
  10713. workTypeB: false,
  10714. workTypeC: false,
  10715. isAnswer: false,
  10716. timer: null,
  10717. opertimer: null,
  10718. showType: 0,
  10719. fileType: 0,
  10720. showPDF: false,
  10721. noteName: "",
  10722. evaJuri: [],
  10723. evalua: "",
  10724. eTitle: "",
  10725. eName: "",
  10726. eJson: {},
  10727. fid: "", //一级
  10728. sid: "", //二级
  10729. tid: "", //二级
  10730. typeMode: 1,
  10731. eJSONNum: 0,
  10732. Etype: 1,
  10733. data: {
  10734. meta: {
  10735. name: "example",
  10736. author: "dd@163.com",
  10737. version: "0.2",
  10738. },
  10739. format: "node_array",
  10740. data: [{ id: "root", isroot: true, topic: "" }],
  10741. },
  10742. fullDialogVisible: false,
  10743. fulltype: "",
  10744. fullUrl: "",
  10745. commentIndexJson: {},
  10746. Stbodywidth: 0,
  10747. ispzType: 0,
  10748. pzType: 1,
  10749. wScore: 0,
  10750. scoreDetail: "",
  10751. videoStart: false,
  10752. recorder: null,
  10753. groupJson: {},
  10754. islock: false,
  10755. groupJson2: {},
  10756. dialogVisibleGroup: false,
  10757. dialogVisibleGroup2: false,
  10758. updateGroupArray: [],
  10759. updateGroupUser: {},
  10760. deleteGroupUser: [],
  10761. deleteGroupArray: {},
  10762. checkChair: "",
  10763. checkDeleteGroup: [],
  10764. inviteCode: "",
  10765. courseGroupStudent: [],
  10766. courseGroupStudentUid: [],
  10767. courseGroup: {},
  10768. isGroup: false,
  10769. toolIndex: null,
  10770. tool: {},
  10771. isWorkTool: [
  10772. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  10773. ], //, 40
  10774. videoJson: {},
  10775. toolType: 0,
  10776. checktoolArray: [],
  10777. vChapterData: [],
  10778. isUpdateToolDetail: false,
  10779. checkboxList: [],
  10780. plIndex: "",
  10781. worksSName2: "",
  10782. worksSid: "",
  10783. wordCloudData: [],
  10784. isPickStudent: [],
  10785. pzStype: 1,
  10786. };
  10787. },
  10788. methods: {
  10789. addToolChoose() {
  10790. if (!this.checktoolArray.length) {
  10791. this.$message.error("请选择要添加的任务");
  10792. return;
  10793. }
  10794. if (
  10795. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10796. this.taskCount
  10797. ].toolChoose[0].tool.length
  10798. ) {
  10799. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10800. this.taskCount
  10801. ].toolChoose[0].tool = this.checktoolArray;
  10802. } else {
  10803. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10804. this.taskCount
  10805. ].toolChoose.push({
  10806. tool: this.checktoolArray,
  10807. toolDetail: "",
  10808. toolType: 0,
  10809. askCount: 1,
  10810. askTitle: "",
  10811. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10812. });
  10813. }
  10814. let params = [
  10815. {
  10816. cid: this.id,
  10817. chapters: JSON.stringify(this.chapInfoList),
  10818. uid: this.userid,
  10819. unitIndex: this.courseType,
  10820. },
  10821. ];
  10822. this.ajax
  10823. .post(this.$store.state.api + "updateWorkNew4", params)
  10824. .then((res) => {
  10825. this.$message({
  10826. message: "添加成功",
  10827. type: "success",
  10828. });
  10829. this.checktoolArray = [];
  10830. this.getCourseDetail(2);
  10831. this.checkBz(
  10832. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10833. this.taskCount
  10834. ].toolChoose.length - 1
  10835. );
  10836. this.$forceUpdate();
  10837. })
  10838. .catch((err) => {
  10839. console.error(err);
  10840. });
  10841. },
  10842. checkBz(index) {
  10843. this.isUpdateToolDetail = false;
  10844. this.$forceUpdate();
  10845. setTimeout(() => {
  10846. document.scrollingElement.scrollTop =
  10847. document.querySelectorAll(".filebox")[index].offsetTop +
  10848. document.querySelector(".student_body").offsetTop;
  10849. }, 500);
  10850. },
  10851. jumpGj(i, j, k) {
  10852. for (var z = 0; z < this.navList.length; z++) {
  10853. for (var q = 0; q < this.navList[z].task.length; q++) {
  10854. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  10855. this.navList[z].task[q].tool[w].isTool = false;
  10856. }
  10857. }
  10858. }
  10859. this.navList[i].task[j].tool[k].isTool =
  10860. !this.navList[i].task[j].tool[k].isTool;
  10861. var a = document.scrollingElement;
  10862. let target = document.querySelector(`#gj${k}`)
  10863. if (target) {
  10864. target.scrollIntoView(true)
  10865. setTimeout(() => {
  10866. a.scrollTop = a.scrollTop - 150
  10867. }, 0);
  10868. }
  10869. // var b = this.$refs["bz" + k][0];
  10870. // a.scrollTop = b.offsetTop;
  10871. },
  10872. addTools2(i) {
  10873. if (i == 4) {
  10874. // this.openTools2(4);
  10875. this.$message.error("暂未开放");
  10876. return;
  10877. }
  10878. if (i == 45) {
  10879. // this.openTools2(45);
  10880. this.$message.error("暂未开放");
  10881. return;
  10882. }
  10883. if (i == 47) {
  10884. // this.openTools2(47);
  10885. this.$message.error("暂未开放");
  10886. return;
  10887. }
  10888. if (i == 49) {
  10889. // this.openTools2(49);
  10890. this.$message.error("暂未开放");
  10891. return;
  10892. }
  10893. if (i == 62) {
  10894. // this.openTools(itemTaskIndex, 62, toolIndex);
  10895. this.$message.error("暂未开放");
  10896. return;
  10897. }
  10898. if (i == 15) {
  10899. // this.openTools(itemTaskIndex, 15, toolIndex);
  10900. this.$message.error("暂未开放");
  10901. return;
  10902. }
  10903. if (i == 40) {
  10904. // this.openTools(itemTaskIndex, 40, toolIndex);
  10905. this.$message.error("暂未开放");
  10906. return;
  10907. }
  10908. if (i == 41) {
  10909. // this.openTools(itemTaskIndex, 41, toolIndex);
  10910. this.$message.error("暂未开放");
  10911. return;
  10912. }
  10913. if (i == 42) {
  10914. // this.openTools(itemTaskIndex, 42, toolIndex);
  10915. this.$message.error("暂未开放");
  10916. return;
  10917. }
  10918. if (this.checktoolArray.length > 0) {
  10919. if (this.checktoolArray.indexOf(i) != -1) {
  10920. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  10921. } else {
  10922. this.checktoolArray = [];
  10923. this.checktoolArray.push(i);
  10924. }
  10925. } else {
  10926. this.checktoolArray.push(i);
  10927. }
  10928. this.$forceUpdate();
  10929. },
  10930. jump() {
  10931. window.parent.postMessage({ tools: "43" }, "*");
  10932. },
  10933. getUpdateMore(f, checkboxList, searchTN, index) {
  10934. this.dialogVisibleMember = f;
  10935. this.checkboxList = checkboxList;
  10936. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  10937. this.plIndex = index;
  10938. },
  10939. setPlname(a) {
  10940. if (this.plworkFile.length) {
  10941. this.plworkFile[this.plIndex].username = a;
  10942. } else {
  10943. this.worksSName = a;
  10944. }
  10945. this.dialogVisibleMember = false;
  10946. },
  10947. previewImg(url) {
  10948. this.$hevueImgPreview(url);
  10949. },
  10950. checkImg(list) {
  10951. if (!list.length) {
  10952. return;
  10953. }
  10954. this.$hevueImgPreview({
  10955. multiple: true, // 开启多图预览模式
  10956. imgList: list, // 需要预览的多图数组
  10957. });
  10958. },
  10959. change(val) {
  10960. console.log(val);
  10961. },
  10962. goTo(path) {
  10963. this.$router.push(path);
  10964. },
  10965. handlePictureCardPreview(url) {
  10966. this.dialogImageUrl = url;
  10967. this.pictureDialog = true;
  10968. },
  10969. clean(type) {
  10970. if (type == 1) {
  10971. this.studyJuri[0].cover.splice(0, 1);
  10972. } else if (type == 2) {
  10973. this.studyJuri[0].upVedio.splice(0, 1);
  10974. } else {
  10975. this.studyJuri[0].upFile.splice(0, 1);
  10976. }
  10977. },
  10978. clean2(index) {
  10979. this.plworkFile.splice(index, 1);
  10980. },
  10981. handleClose(done) {
  10982. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  10983. this.videoDetail.sources[0].src = "";
  10984. }
  10985. this.commentIndexJson = {};
  10986. done();
  10987. },
  10988. fullTools() {
  10989. this.full = !this.full;
  10990. },
  10991. imgChange(file, fileList, type) {
  10992. if (type == 1) {
  10993. var _tmp = this.studyJuri[0].cover;
  10994. } else if (type == 2) {
  10995. var _tmp = this.studyJuri[0].upVedio;
  10996. } else {
  10997. var _tmp = this.studyJuri[0].upFile;
  10998. }
  10999. this.noneBtnImg = _tmp.length >= 1;
  11000. },
  11001. setContent(bool) {
  11002. this.contentDialog = bool;
  11003. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  11004. document.querySelector(".workd_media").style.height = "650px";
  11005. } else if (document.querySelector(".workd_media")) {
  11006. document.querySelector(".workd_media").style.height = "auto";
  11007. }
  11008. },
  11009. setContent2(bool) {
  11010. this.mlDialog = bool;
  11011. if (
  11012. bool &&
  11013. this.contentDialog &&
  11014. document.querySelector(".workd_media")
  11015. ) {
  11016. document.querySelector(".workd_media").style.height = "650px";
  11017. } else if (document.querySelector(".workd_media")) {
  11018. document.querySelector(".workd_media").style.height = "auto";
  11019. }
  11020. },
  11021. addImg(e) {
  11022. var el = e.currentTarget;
  11023. // this.$message.success('触发上传')
  11024. el.getElementsByTagName("input")[0].click();
  11025. e.target.value = "";
  11026. },
  11027. addSelectAnswer() {
  11028. let params = [
  11029. {
  11030. uid: this.userid,
  11031. cid: this.id,
  11032. stage: this.courseType,
  11033. task: this.taskCount,
  11034. tool: this.toolindex,
  11035. content: this.selectAnswer.answer,
  11036. type: 7,
  11037. },
  11038. ];
  11039. this.ajax
  11040. .post(this.$store.state.api + "addCourseWorks", params)
  11041. .then((res) => {
  11042. this.$message({
  11043. message: "提交成功",
  11044. type: "success",
  11045. });
  11046. this.dialogVisibleSelect = false;
  11047. // this.selectAnswer = {};
  11048. this.selectSWorks();
  11049. this.selectStudent();
  11050. })
  11051. .catch((err) => {
  11052. this.$message.error("提交失败");
  11053. console.error(err);
  11054. });
  11055. },
  11056. addSelectAnswerTeacher() {
  11057. let params = [
  11058. {
  11059. uid: this.sStudent.userid,
  11060. cid: this.id,
  11061. stage: this.courseType,
  11062. task: this.taskCount,
  11063. tool: this.toolindex,
  11064. content: this.selectAnswer.answer,
  11065. type: 7,
  11066. },
  11067. ];
  11068. this.ajax
  11069. .post(this.$store.state.api + "addCourseWorks", params)
  11070. .then((res) => {
  11071. this.$message({
  11072. message: "提交成功",
  11073. type: "success",
  11074. });
  11075. this.dialogVisibleSelectTeacher = false;
  11076. // this.selectAnswer = {};
  11077. this.selectSWorks();
  11078. this.selectStudent();
  11079. })
  11080. .catch((err) => {
  11081. this.$message.error("提交失败");
  11082. console.error(err);
  11083. });
  11084. },
  11085. addSenWorks() {
  11086. for (var i = 0; i < this.sentenceList.length; i++) {
  11087. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  11088. if (
  11089. this.sentenceList[i].chooseSenList[j] == undefined ||
  11090. this.sentenceList[i].chooseSenList[j] == ""
  11091. ) {
  11092. this.$message.error("请将答案填写完整!");
  11093. return;
  11094. }
  11095. }
  11096. }
  11097. let params = [
  11098. {
  11099. uid: this.userid,
  11100. cid: this.id,
  11101. stage: this.courseType,
  11102. task: this.taskCount,
  11103. tool: this.toolindex,
  11104. content: JSON.stringify(this.sentenceList),
  11105. type: 9,
  11106. },
  11107. ];
  11108. this.ajax
  11109. .post(this.$store.state.api + "addCourseWorks", params)
  11110. .then((res) => {
  11111. this.$message({
  11112. message: "提交成功",
  11113. type: "success",
  11114. });
  11115. this.dialogVisibleSentence = false;
  11116. // this.selectAnswer = {};
  11117. this.selectSWorks();
  11118. this.selectStudent();
  11119. })
  11120. .catch((err) => {
  11121. this.$message.error("提交失败");
  11122. console.error(err);
  11123. });
  11124. },
  11125. addSenWorksTeacher() {
  11126. for (var i = 0; i < this.sentenceList.length; i++) {
  11127. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  11128. if (
  11129. this.sentenceList[i].chooseSenList[j] == undefined ||
  11130. this.sentenceList[i].chooseSenList[j] == ""
  11131. ) {
  11132. this.$message.error("请将答案填写完整!");
  11133. return;
  11134. }
  11135. }
  11136. }
  11137. let params = [
  11138. {
  11139. uid: this.sStudent.userid,
  11140. cid: this.id,
  11141. stage: this.courseType,
  11142. task: this.taskCount,
  11143. tool: this.toolindex,
  11144. content: JSON.stringify(this.sentenceList),
  11145. type: 9,
  11146. },
  11147. ];
  11148. this.ajax
  11149. .post(this.$store.state.api + "addCourseWorks", params)
  11150. .then((res) => {
  11151. this.$message({
  11152. message: "提交成功",
  11153. type: "success",
  11154. });
  11155. this.dialogVisibleSentenceTeacher = false;
  11156. // this.selectAnswer = {};
  11157. this.selectSWorks();
  11158. this.selectStudent();
  11159. })
  11160. .catch((err) => {
  11161. this.$message.error("提交失败");
  11162. console.error(err);
  11163. });
  11164. },
  11165. returnTableText() {
  11166. this.$confirm("确定还原此模板吗?", "提示", {
  11167. confirmButtonText: "确定",
  11168. cancelButtonText: "取消",
  11169. type: "warning",
  11170. })
  11171. .then(() => {
  11172. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  11173. })
  11174. .catch(() => {});
  11175. },
  11176. addTableWorks() {
  11177. let params = [
  11178. {
  11179. uid: this.userid,
  11180. cid: this.id,
  11181. stage: this.courseType,
  11182. task: this.taskCount,
  11183. tool: this.toolindex,
  11184. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  11185. type: 10,
  11186. },
  11187. ];
  11188. this.ajax
  11189. .post(this.$store.state.api + "addCourseWorks", params)
  11190. .then((res) => {
  11191. this.$message({
  11192. message: "提交成功",
  11193. type: "success",
  11194. });
  11195. this.dialogVisibleTable = false;
  11196. // this.selectAnswer = {};
  11197. this.selectSWorks();
  11198. this.selectStudent();
  11199. })
  11200. .catch((err) => {
  11201. this.$message.error("提交失败");
  11202. console.error(err);
  11203. });
  11204. },
  11205. tableRowClassName({ row, rowIndex }) {
  11206. if ((rowIndex + 1) % 2 === 0) {
  11207. return "even_row";
  11208. } else {
  11209. return "";
  11210. }
  11211. },
  11212. addTableWorksTeacher() {
  11213. let params = [
  11214. {
  11215. uid: this.sStudent.userid,
  11216. cid: this.id,
  11217. stage: this.courseType,
  11218. task: this.taskCount,
  11219. tool: this.toolindex,
  11220. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  11221. type: 10,
  11222. },
  11223. ];
  11224. this.ajax
  11225. .post(this.$store.state.api + "addCourseWorks", params)
  11226. .then((res) => {
  11227. this.$message({
  11228. message: "提交成功",
  11229. type: "success",
  11230. });
  11231. this.dialogVisibleTableTeacher = false;
  11232. // this.selectAnswer = {};
  11233. this.selectSWorks();
  11234. this.selectStudent();
  11235. })
  11236. .catch((err) => {
  11237. this.$message.error("提交失败");
  11238. console.error(err);
  11239. });
  11240. },
  11241. returnWordText() {
  11242. this.$confirm("确定还原此模板吗?", "提示", {
  11243. confirmButtonText: "确定",
  11244. cancelButtonText: "取消",
  11245. type: "warning",
  11246. })
  11247. .then(() => {
  11248. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  11249. })
  11250. .catch(() => {});
  11251. },
  11252. addWordWorks() {
  11253. let params = [
  11254. {
  11255. uid: this.userid,
  11256. cid: this.id,
  11257. stage: this.courseType,
  11258. task: this.taskCount,
  11259. tool: this.toolindex,
  11260. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  11261. type: 13,
  11262. atool: 52,
  11263. },
  11264. ];
  11265. this.ajax
  11266. .post(this.$store.state.api + "addCourseWorks3-2", params)
  11267. .then((res) => {
  11268. this.$message({
  11269. message: "提交成功",
  11270. type: "success",
  11271. });
  11272. this.dialogVisibleWord = false;
  11273. // this.selectAnswer = {};
  11274. this.selectSWorks();
  11275. this.selectStudent();
  11276. })
  11277. .catch((err) => {
  11278. this.$message.error("提交失败");
  11279. console.error(err);
  11280. });
  11281. },
  11282. addWordWorksTeacher() {
  11283. let params = [
  11284. {
  11285. uid: this.sStudent.userid,
  11286. cid: this.id,
  11287. stage: this.courseType,
  11288. task: this.taskCount,
  11289. tool: this.toolindex,
  11290. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  11291. type: 13,
  11292. atool: 52,
  11293. },
  11294. ];
  11295. this.ajax
  11296. .post(this.$store.state.api + "addCourseWorks3-2", params)
  11297. .then((res) => {
  11298. this.$message({
  11299. message: "提交成功",
  11300. type: "success",
  11301. });
  11302. this.dialogVisibleWordTeacher = false;
  11303. // this.selectAnswer = {};
  11304. this.selectSWorks();
  11305. this.selectStudent();
  11306. })
  11307. .catch((err) => {
  11308. this.$message.error("提交失败");
  11309. console.error(err);
  11310. });
  11311. },
  11312. addCourseWorks(i) {
  11313. var typesql;
  11314. if (this.fileType === 0) {
  11315. typesql = 1;
  11316. } else if (this.fileType === 1) {
  11317. typesql = 4;
  11318. } else if (this.fileType === 2) {
  11319. typesql = 5;
  11320. } else if (this.fileType === 3) {
  11321. typesql = 12;
  11322. }
  11323. if (!this.studyJuri[0].cover[0].url) {
  11324. this.$message.error("请上传文件");
  11325. return;
  11326. }
  11327. let params = [
  11328. {
  11329. uid: this.userid,
  11330. cid: this.id,
  11331. stage: this.courseType,
  11332. task: i,
  11333. tool: this.toolindex,
  11334. content: this.studyJuri[0].cover[0].url,
  11335. type: typesql,
  11336. },
  11337. ];
  11338. this.ajax
  11339. .post(this.$store.state.api + "addCourseWorksR", params)
  11340. .then((res) => {
  11341. this.$message({
  11342. message: "提交成功",
  11343. type: "success",
  11344. });
  11345. this.studyJuri[0].cover = [];
  11346. this.dialogVisible = false;
  11347. this.getCourseDetail(2);
  11348. })
  11349. .catch((err) => {
  11350. this.$message.error("提交失败");
  11351. console.error(err);
  11352. });
  11353. },
  11354. addCourseWorksPl(i) {
  11355. let _files = this.plworkFile;
  11356. var c = 1;
  11357. for (var k = 0; k < _files.length; k++) {
  11358. if (!_files[k].username) {
  11359. c = 2;
  11360. }
  11361. }
  11362. if (c == 2) {
  11363. this.$message.error("请填写学生姓名");
  11364. return;
  11365. }
  11366. let params = [
  11367. {
  11368. ateacher: this.userid,
  11369. cid: this.id,
  11370. stage: this.courseType,
  11371. task: i,
  11372. tool: this.toolindex,
  11373. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  11374. },
  11375. ];
  11376. this.ajax
  11377. .post(this.$store.state.api + "addCourseWorksPl", params)
  11378. .then((res) => {
  11379. this.$message({
  11380. message: "提交成功",
  11381. type: "success",
  11382. });
  11383. this.plworkFile = [];
  11384. this.dialogVisiblePl = false;
  11385. this.getCourseDetail(2);
  11386. })
  11387. .catch((err) => {
  11388. this.$message.error("提交失败");
  11389. console.error(err);
  11390. });
  11391. },
  11392. addCourseWorks2(i) {
  11393. var typesql;
  11394. if (this.fileType === 0) {
  11395. typesql = 0;
  11396. } else if (this.fileType === 1) {
  11397. typesql = 1;
  11398. } else if (this.fileType === 2) {
  11399. typesql = 3;
  11400. } else if (this.fileType === 3) {
  11401. typesql = 12;
  11402. }
  11403. if (!this.studyJuri[0].cover[0].url) {
  11404. this.$message.error("请上传文件");
  11405. return;
  11406. }
  11407. let params = [
  11408. {
  11409. uid: this.userid,
  11410. cid: this.id,
  11411. stage: this.courseType,
  11412. task: i,
  11413. tool: this.toolindex,
  11414. content: JSON.stringify({
  11415. type: typesql,
  11416. groupIndex: this.groupIndex,
  11417. url: this.studyJuri[0].cover[0].url,
  11418. }).replaceAll(/%/g, "%25"),
  11419. type: 11,
  11420. atool: 49,
  11421. text: "",
  11422. },
  11423. ];
  11424. this.ajax
  11425. .post(this.$store.state.api + "addCourseWorks5", params)
  11426. .then((res) => {
  11427. this.$message({
  11428. message: "提交成功",
  11429. type: "success",
  11430. });
  11431. this.studyJuri[0].cover = [];
  11432. this.dialogVisibleGroupWork = false;
  11433. this.getCourseDetail(2);
  11434. })
  11435. .catch((err) => {
  11436. this.$message.error("提交失败");
  11437. console.error(err);
  11438. });
  11439. },
  11440. addCourseWorksGong(i, data, tool) {
  11441. let params = [
  11442. {
  11443. uid: this.userid,
  11444. cid: this.id,
  11445. stage: this.courseType,
  11446. task: this.taskCount,
  11447. tool: i,
  11448. content: data,
  11449. type: 12,
  11450. atool: tool,
  11451. text: "",
  11452. },
  11453. ];
  11454. this.ajax
  11455. .post(this.$store.state.api + "addCourseWorks5", params)
  11456. .then((res) => {
  11457. this.$message({
  11458. message: "提交成功",
  11459. type: "success",
  11460. });
  11461. this.studyJuri[0].cover = [];
  11462. this.selectSWorks();
  11463. this.selectStudent();
  11464. })
  11465. .catch((err) => {
  11466. this.$message.error("提交失败");
  11467. console.error(err);
  11468. });
  11469. },
  11470. addCourseWorksGongTeacher(i, data, tool) {
  11471. let params = [
  11472. {
  11473. uid: this.sStudent.userid,
  11474. cid: this.id,
  11475. stage: this.courseType,
  11476. task: this.taskCount,
  11477. tool: i,
  11478. content: data,
  11479. type: 12,
  11480. atool: tool,
  11481. text: "",
  11482. },
  11483. ];
  11484. this.ajax
  11485. .post(this.$store.state.api + "addCourseWorks5", params)
  11486. .then((res) => {
  11487. this.$message({
  11488. message: "提交成功",
  11489. type: "success",
  11490. });
  11491. this.studyJuri[0].cover = [];
  11492. this.dialogVisibleWorks = false;
  11493. this.selectSWorks();
  11494. this.selectStudent();
  11495. })
  11496. .catch((err) => {
  11497. this.$message.error("提交失败");
  11498. console.error(err);
  11499. });
  11500. },
  11501. addCourseWorksGongPl(i, data, tool, type) {
  11502. let params = [
  11503. {
  11504. uid: this.sStudent.userid,
  11505. cid: this.id,
  11506. stage: this.courseType,
  11507. task: this.taskCount,
  11508. tool: i,
  11509. content: data,
  11510. type: type,
  11511. atool: tool,
  11512. text: "",
  11513. },
  11514. ];
  11515. this.ajax
  11516. .post(this.$store.state.api + "addCourseWorks5", params)
  11517. .then((res) => {
  11518. this.$message({
  11519. message: "提交成功",
  11520. type: "success",
  11521. });
  11522. this.studyJuri[0].cover = [];
  11523. this.dialogVisibleWorks = false;
  11524. this.selectSWorks();
  11525. this.selectStudent();
  11526. })
  11527. .catch((err) => {
  11528. this.$message.error("提交失败");
  11529. console.error(err);
  11530. });
  11531. },
  11532. addCourseWorksTeacher(i) {
  11533. var typesql;
  11534. if (this.sTool == 32) {
  11535. this.addCourseWorksGongTeacher(
  11536. this.toolindex,
  11537. this.studyJuri[0].cover[0].url,
  11538. this.sTool
  11539. );
  11540. return;
  11541. }
  11542. if (this.fileType === 0) {
  11543. typesql = 1;
  11544. } else if (this.fileType === 1) {
  11545. typesql = 4;
  11546. } else if (this.fileType === 2) {
  11547. typesql = 5;
  11548. } else if (this.fileType === 3) {
  11549. typesql = 12;
  11550. }
  11551. if (this.sTool == 50) {
  11552. this.addCourseWorksGongPl(
  11553. this.toolindex,
  11554. this.studyJuri[0].cover[0].url,
  11555. this.sTool,
  11556. typesql
  11557. );
  11558. return;
  11559. }
  11560. if (!this.studyJuri[0].cover[0].url) {
  11561. this.$message.error("请上传文件");
  11562. return;
  11563. }
  11564. let params = [
  11565. {
  11566. uid: this.sStudent.userid,
  11567. cid: this.id,
  11568. stage: this.courseType,
  11569. task: i,
  11570. tool: this.toolindex,
  11571. content: this.studyJuri[0].cover[0].url,
  11572. type: typesql,
  11573. ateacher: this.userid,
  11574. },
  11575. ];
  11576. this.ajax
  11577. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  11578. .then((res) => {
  11579. this.$message({
  11580. message: "提交成功",
  11581. type: "success",
  11582. });
  11583. this.studyJuri[0].cover = [];
  11584. this.dialogVisibleWorks = false;
  11585. this.getCourseDetail(2);
  11586. })
  11587. .catch((err) => {
  11588. this.$message.error("提交失败");
  11589. console.error(err);
  11590. });
  11591. },
  11592. selectUploadStudent(type) {
  11593. const loading = this.$loading.service({
  11594. background: "rgba(255, 255, 255, 0.7)",
  11595. target: document.body,
  11596. });
  11597. let params = {
  11598. cid: this.uploadCid,
  11599. oid: this.oid,
  11600. cn: "",
  11601. };
  11602. this.ajax
  11603. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  11604. .then((res) => {
  11605. loading.close();
  11606. var studentK = [];
  11607. if (this.isWorksS[this.toolindex].length > 0) {
  11608. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  11609. studentK.push(this.isWorksS[this.toolindex][z].uid);
  11610. }
  11611. studentK = studentK.join(",");
  11612. }
  11613. this.uploadStudentJuri = res.data[0].filter((el) => {
  11614. return studentK.indexOf(el.userid) == -1;
  11615. });
  11616. if (this.worksSName && this.worksSid) {
  11617. this.uploadStudentJuri.push({
  11618. userid: this.worksSid,
  11619. name: this.worksSName,
  11620. });
  11621. }
  11622. if (type == 1) {
  11623. this.plworkFile = [];
  11624. this.dialogVisibleSname = true;
  11625. } else if (type == 2) {
  11626. this.dialogVisiblePl = true;
  11627. }
  11628. })
  11629. .catch((err) => {
  11630. loading.close();
  11631. console.error(err);
  11632. });
  11633. },
  11634. selectPickStudent() {
  11635. const loading = this.$loading.service({
  11636. background: "rgba(255, 255, 255, 0.7)",
  11637. target: document.body,
  11638. });
  11639. let params = {
  11640. cid: this.uploadCid,
  11641. oid: this.oid,
  11642. cn: "",
  11643. };
  11644. this.ajax
  11645. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  11646. .then((res) => {
  11647. loading.close();
  11648. this.uploadStudentJuri = res.data[0];
  11649. this.dialogVisiblePickPeople = true;
  11650. })
  11651. .catch((err) => {
  11652. loading.close();
  11653. console.error(err);
  11654. });
  11655. },
  11656. arrayToArray(arrayo, arrayt) {
  11657. let array1 = arrayo;
  11658. let array2 = arrayt;
  11659. let commonElements = [];
  11660. for (let i = 0; i < array1.length; i++) {
  11661. for (let j = 0; j < array2.length; j++) {
  11662. if (array1[i] === array2[j]) {
  11663. commonElements.push(array1[i]);
  11664. }
  11665. }
  11666. }
  11667. return commonElements;
  11668. },
  11669. selectWorksStudent() {
  11670. let params = {
  11671. oid: this.oid,
  11672. cid: this.courseDetail.juri,
  11673. };
  11674. this.ajax
  11675. .get(this.$store.state.api + "selectWorksStudent", params)
  11676. .then((res) => {
  11677. var a = res.data[0];
  11678. for (var i = 0; i < this.isWorksS.length; i++) {
  11679. this.noWorksS[i] = [];
  11680. var studentK = [];
  11681. if (this.isWorksS[i].length > 0) {
  11682. for (var z = 0; z < this.isWorksS[i].length; z++) {
  11683. studentK.push(this.isWorksS[i][z].uid);
  11684. }
  11685. studentK = studentK.join(",");
  11686. for (var j = 0; j < a.length; j++) {
  11687. if (studentK.indexOf(a[j].userid) == -1) {
  11688. if (this.tcid) {
  11689. // a[j].classid.indexOf(this.tcid) != -1
  11690. if (
  11691. this.arrayToArray(
  11692. a[j].classid.split(","),
  11693. this.tcid.split(",")
  11694. ).length
  11695. ) {
  11696. this.noWorksS[i].push({
  11697. student: a[j].name,
  11698. userid: a[j].userid,
  11699. });
  11700. }
  11701. } else {
  11702. this.noWorksS[i].push({
  11703. student: a[j].name,
  11704. userid: a[j].userid,
  11705. });
  11706. }
  11707. }
  11708. }
  11709. } else {
  11710. for (var k = 0; k < a.length; k++) {
  11711. if (this.tcid) {
  11712. if (
  11713. this.arrayToArray(
  11714. a[k].classid.split(","),
  11715. this.tcid.split(",")
  11716. ).length
  11717. ) {
  11718. this.noWorksS[i].push({
  11719. student: a[k].name,
  11720. userid: a[k].userid,
  11721. });
  11722. }
  11723. } else {
  11724. this.noWorksS[i].push({
  11725. student: a[k].name,
  11726. userid: a[k].userid,
  11727. });
  11728. }
  11729. }
  11730. }
  11731. }
  11732. this.$forceUpdate();
  11733. if (
  11734. Object.keys(this.commentDetail).length &&
  11735. Object.keys(this.commentIndexJson).length &&
  11736. !this.dialogVisibleScore
  11737. ) {
  11738. let a = 1;
  11739. let c = this.commentIndexJson;
  11740. if (
  11741. this.commentIndexJson.gindex ||
  11742. this.commentIndexJson.gindex === 0
  11743. ) {
  11744. for (
  11745. var i = 0;
  11746. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  11747. i++
  11748. ) {
  11749. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  11750. groupA: for (var k = 0; k < _el.length; k++) {
  11751. let el = _el[k];
  11752. if (el.wid == this.commentDetail.wid) {
  11753. a = 2;
  11754. this.commentOther(
  11755. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  11756. this.commentIndexJson.toolIndex,
  11757. k,
  11758. this.commentIndexJson.gindex
  11759. );
  11760. break groupA;
  11761. }
  11762. }
  11763. }
  11764. if (a === 1) {
  11765. this.commentDetail = [];
  11766. this.commentIndexJson = {};
  11767. this.commentDialogVisible = false;
  11768. this.$message("此作业已被删除");
  11769. }
  11770. } else {
  11771. if (this.isGroup && this.commentIndexJson.gid) {
  11772. groupA: for (
  11773. var i = 0;
  11774. i < this.courseGroup.group.length;
  11775. i++
  11776. ) {
  11777. let _group = this.courseGroup.group[i];
  11778. if (_group.id == this.commentIndexJson.gid) {
  11779. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  11780. for (var k = 0; k < _el2.length; k++) {
  11781. let el2 = _el2[k];
  11782. if (el2.wid == this.commentDetail.wid) {
  11783. a = 2;
  11784. this.commentOther(
  11785. _el2[k],
  11786. this.commentIndexJson.toolIndex,
  11787. k,
  11788. null,
  11789. this.commentIndexJson.gid
  11790. );
  11791. break groupA;
  11792. }
  11793. }
  11794. }
  11795. }
  11796. }
  11797. if (a == 1) {
  11798. for (
  11799. var i = 0;
  11800. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  11801. i++
  11802. ) {
  11803. let el =
  11804. this.worksStudent[this.commentIndexJson.toolIndex][i];
  11805. if (el.wid == this.commentDetail.wid) {
  11806. a = 2;
  11807. this.commentOther(
  11808. this.worksStudent[this.commentIndexJson.toolIndex][i],
  11809. this.commentIndexJson.toolIndex,
  11810. i
  11811. );
  11812. break;
  11813. }
  11814. }
  11815. }
  11816. if (a === 1) {
  11817. this.commentDetail = [];
  11818. this.commentIndexJson = {};
  11819. this.commentDialogVisible = false;
  11820. this.$message("此作业已被删除");
  11821. }
  11822. }
  11823. }
  11824. })
  11825. .catch((err) => {
  11826. console.error(err);
  11827. });
  11828. },
  11829. selectStudent() {
  11830. //学生查看自己作业
  11831. let params = {
  11832. uid: this.userid,
  11833. cid: this.id,
  11834. s: this.courseType,
  11835. t: this.taskCount,
  11836. };
  11837. this.ajax
  11838. .get(this.$store.state.api + "selectStudentWorks", params)
  11839. .then((res) => {
  11840. var a =
  11841. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11842. this.taskCount
  11843. ].toolChoose;
  11844. var b = res.data[0];
  11845. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  11846. var y = [
  11847. "AVI",
  11848. "NAVI",
  11849. "MPEG",
  11850. "ASF",
  11851. "MOV",
  11852. "WMV",
  11853. "3GP",
  11854. "RM",
  11855. "RMVB",
  11856. "FLV",
  11857. "F4V",
  11858. "H.264",
  11859. "H.265",
  11860. "REAL VIDEO",
  11861. "MKV",
  11862. "WebM",
  11863. "HDDVD",
  11864. "MP4",
  11865. "MPG",
  11866. "M4V",
  11867. "MGV",
  11868. "OGV",
  11869. "QTM",
  11870. "STR",
  11871. "AMC",
  11872. "DVX",
  11873. "EVO",
  11874. "DAT",
  11875. "OGG",
  11876. "OGM",
  11877. ];
  11878. for (var i = 0; i < a.length; i++) {
  11879. this.workStudent[i] = [];
  11880. for (var j = 0; j < b.length; j++) {
  11881. if (i == b[j].tool) {
  11882. if (
  11883. (b[j].type == 1 ||
  11884. b[j].type == 4 ||
  11885. b[j].type == 5 ||
  11886. b[j].type == 6 ||
  11887. b[j].type == 12 ||
  11888. b[j].type == 7) &&
  11889. a[i].tool[0] != 15 &&
  11890. a[i].tool[0] != 4 &&
  11891. a[i].tool[0] != 45 &&
  11892. a[i].tool[0] != 50 &&
  11893. a[i].tool[0] != 32 &&
  11894. a[i].tool[0] != 57 &&
  11895. a[i].tool[0] != 52
  11896. ) {
  11897. if (
  11898. c.indexOf(
  11899. b[j].content
  11900. .split(".")
  11901. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  11902. ) != -1 &&
  11903. a[i].tool[0] == 16 &&
  11904. b[j].atool != 50
  11905. ) {
  11906. this.workStudent[i].push({
  11907. works: b[j].content,
  11908. sName: b[j].name,
  11909. score: b[j].score,
  11910. img: b[j].img,
  11911. type: 1,
  11912. time: b[j].time,
  11913. userid: b[j].userid,
  11914. wid: b[j].id,
  11915. });
  11916. } else if (
  11917. y.indexOf(
  11918. b[j].content
  11919. .split(".")
  11920. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  11921. ) != -1 &&
  11922. a[i].tool[0] == 16 &&
  11923. b[j].atool != 50
  11924. ) {
  11925. this.workStudent[i].push({
  11926. userid: b[j].userid,
  11927. wid: b[j].id,
  11928. works: b[j].content,
  11929. sName: b[j].name,
  11930. score: b[j].score,
  11931. img: b[j].img,
  11932. type: 3,
  11933. time: b[j].time,
  11934. });
  11935. } else if (b[j].type == 6 && b[j].atool != 50) {
  11936. this.workStudent[i].push({
  11937. userid: b[j].userid,
  11938. wid: b[j].id,
  11939. works: b[j].content,
  11940. sName: b[j].name,
  11941. score: b[j].score,
  11942. img: b[j].img,
  11943. type: 4,
  11944. time: b[j].time,
  11945. });
  11946. } else if (b[j].type == 7 && b[j].atool != 50) {
  11947. this.workStudent[i].push({
  11948. userid: b[j].userid,
  11949. wid: b[j].id,
  11950. works: b[j].content,
  11951. sName: b[j].name,
  11952. score: b[j].score,
  11953. img: b[j].img,
  11954. type: 5,
  11955. time: b[j].time,
  11956. });
  11957. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  11958. this.workStudent[i].push({
  11959. works: b[j].content,
  11960. sName: b[j].name,
  11961. score: b[j].score,
  11962. img: b[j].img,
  11963. type: 12,
  11964. time: b[j].time,
  11965. userid: b[j].userid,
  11966. wid: b[j].id,
  11967. });
  11968. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  11969. this.workStudent[i].push({
  11970. works: b[j].content,
  11971. sName: b[j].name,
  11972. score: b[j].score,
  11973. img: b[j].img,
  11974. type: 0,
  11975. time: b[j].time,
  11976. userid: b[j].userid,
  11977. wid: b[j].id,
  11978. });
  11979. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  11980. this.workStudent[i].push({
  11981. works: b[j].content,
  11982. sName: b[j].name,
  11983. score: b[j].score,
  11984. img: b[j].img,
  11985. type: 0,
  11986. time: b[j].time,
  11987. userid: b[j].userid,
  11988. wid: b[j].id,
  11989. });
  11990. }
  11991. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  11992. this.workStudent[i].push({
  11993. works: b[j].content,
  11994. sName: b[j].name,
  11995. score: b[j].score,
  11996. img: b[j].img,
  11997. type: 2,
  11998. time: b[j].time,
  11999. userid: b[j].userid,
  12000. wid: b[j].id,
  12001. });
  12002. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  12003. //问卷
  12004. this.workStudent[i].push({
  12005. works: b[j].content,
  12006. sName: b[j].name,
  12007. score: b[j].score,
  12008. img: b[j].img,
  12009. type: 2,
  12010. time: b[j].time,
  12011. userid: b[j].userid,
  12012. wid: b[j].id,
  12013. });
  12014. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  12015. //选择题
  12016. this.workStudent[i].push({
  12017. works: b[j].content,
  12018. sName: b[j].name,
  12019. score: b[j].score,
  12020. img: b[j].img,
  12021. type: 8,
  12022. time: b[j].time,
  12023. userid: b[j].userid,
  12024. wid: b[j].id,
  12025. });
  12026. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  12027. //选择题
  12028. this.workStudent[i].push({
  12029. works: b[j].content,
  12030. sName: b[j].name,
  12031. score: b[j].score,
  12032. img: b[j].img,
  12033. type: 9,
  12034. time: b[j].time,
  12035. userid: b[j].userid,
  12036. wid: b[j].id,
  12037. });
  12038. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  12039. //选择题
  12040. this.workStudent[i].push({
  12041. works: b[j].content,
  12042. sName: b[j].name,
  12043. score: b[j].score,
  12044. img: b[j].img,
  12045. type: 10,
  12046. time: b[j].time,
  12047. userid: b[j].userid,
  12048. wid: b[j].id,
  12049. });
  12050. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  12051. //选择题
  12052. this.workStudent[i].push({
  12053. works: b[j].content,
  12054. sName: b[j].name,
  12055. score: b[j].score,
  12056. img: b[j].img,
  12057. type: 13,
  12058. time: b[j].time,
  12059. userid: b[j].userid,
  12060. wid: b[j].id,
  12061. });
  12062. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  12063. //选择题
  12064. this.workStudent[i].push({
  12065. works: b[j].content,
  12066. sName: b[j].name,
  12067. score: b[j].score,
  12068. img: b[j].img,
  12069. type: 12,
  12070. time: b[j].time,
  12071. userid: b[j].userid,
  12072. wid: b[j].id,
  12073. });
  12074. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  12075. //选择题
  12076. this.workStudent[i].push({
  12077. works: b[j].content,
  12078. sName: b[j].name,
  12079. score: b[j].score,
  12080. img: b[j].img,
  12081. type: 12,
  12082. time: b[j].time,
  12083. userid: b[j].userid,
  12084. wid: b[j].id,
  12085. });
  12086. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  12087. //选择题
  12088. this.workStudent[i].push({
  12089. works: b[j].content,
  12090. sName: b[j].name,
  12091. score: b[j].score,
  12092. img: b[j].img,
  12093. type: 15,
  12094. time: b[j].time,
  12095. userid: b[j].userid,
  12096. wid: b[j].id,
  12097. });
  12098. }
  12099. }
  12100. }
  12101. }
  12102. })
  12103. .catch((err) => {
  12104. console.error(err);
  12105. });
  12106. },
  12107. openVideo(w) {
  12108. this.videoDetail = {};
  12109. this.playerOptions1.sources[0].src = w.works;
  12110. this.videoDetail = this.playerOptions1;
  12111. this.videoVisible = true;
  12112. },
  12113. isLikes(wid, uid, t, c, isLikes) {
  12114. if (isLikes == false) {
  12115. let params = [
  12116. {
  12117. wid: wid,
  12118. lid: uid,
  12119. t: t,
  12120. c: c,
  12121. },
  12122. ];
  12123. this.ajax
  12124. .post(this.$store.state.api + "insertComment", params)
  12125. .then((res) => {
  12126. this.$message({
  12127. message: "点赞成功",
  12128. type: "success",
  12129. });
  12130. this.selectSWorks();
  12131. this.selectStudent();
  12132. })
  12133. .catch((err) => {
  12134. this.$message.error("点赞失败");
  12135. console.error(err);
  12136. });
  12137. } else {
  12138. let params = {
  12139. wid: wid,
  12140. lid: uid,
  12141. type: t,
  12142. };
  12143. this.ajax
  12144. .get(this.$store.state.api + "deleteComment", params)
  12145. .then((res) => {
  12146. this.$message({
  12147. message: "取消点赞成功",
  12148. type: "success",
  12149. });
  12150. this.selectSWorks();
  12151. this.selectStudent();
  12152. })
  12153. .catch((err) => {
  12154. console.error(err);
  12155. });
  12156. }
  12157. },
  12158. deleteComment(wid) {
  12159. this.$confirm("确定删除此评论吗?", "提示", {
  12160. confirmButtonText: "确定",
  12161. cancelButtonText: "取消",
  12162. type: "warning",
  12163. })
  12164. .then(() => {
  12165. let params = {
  12166. id: wid,
  12167. };
  12168. this.ajax
  12169. .get(this.$store.state.api + "deleteComment2", params)
  12170. .then((res) => {
  12171. this.$message({
  12172. message: "删除评论成功",
  12173. type: "success",
  12174. });
  12175. this.selectSWorks();
  12176. this.selectStudent();
  12177. })
  12178. .catch((err) => {
  12179. console.error(err);
  12180. });
  12181. })
  12182. .catch(() => {});
  12183. },
  12184. commentOther(w, toolIndex, wIndex, gindex, gid) {
  12185. this.commentIndexJson = {
  12186. toolIndex: toolIndex,
  12187. wIndex: wIndex,
  12188. gindex: gindex,
  12189. gid: gid,
  12190. };
  12191. this.commentDetail = [];
  12192. this.commentDialogVisible = true;
  12193. this.commentDetail = w;
  12194. if (w.works && w.type == 1) {
  12195. this.pptImgUrl = "";
  12196. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  12197. if (
  12198. a.indexOf(
  12199. w.works
  12200. .split(".")
  12201. [w.works.split(".").length - 1].toLocaleUpperCase()
  12202. ) != -1
  12203. ) {
  12204. this.pptImgUrl =
  12205. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  12206. this.showPDF = false;
  12207. } else if (
  12208. w.works
  12209. .split(".")
  12210. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  12211. ) {
  12212. this.pptImgUrl = w.works;
  12213. this.showPDF = true;
  12214. }
  12215. } else if (w.works && w.type == 3) {
  12216. this.videoDetail = {};
  12217. this.playerOptions1.sources[0].src = w.works;
  12218. this.videoDetail = this.playerOptions1;
  12219. // this.videoVisible = true;
  12220. } else if (w.works && w.type == 4) {
  12221. this.eScore = JSON.parse(w.works);
  12222. this.rateJson =
  12223. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12224. this.taskCount
  12225. ].toolChoose[toolIndex].rateJson;
  12226. } else if (w.works && w.type == 10) {
  12227. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  12228. } else if (w.works && w.type == 13) {
  12229. this.wordJson =
  12230. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12231. this.taskCount
  12232. ].toolChoose[toolIndex].wordJson;
  12233. }
  12234. },
  12235. openScore(w) {
  12236. this.wScore = 0;
  12237. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  12238. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  12239. this.commentDetail = [];
  12240. this.dialogVisibleScore = true;
  12241. this.commentDetail = w;
  12242. if (w.works && w.type == 1) {
  12243. this.pptImgUrl = "";
  12244. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  12245. if (
  12246. a.indexOf(
  12247. w.works
  12248. .split(".")
  12249. [w.works.split(".").length - 1].toLocaleUpperCase()
  12250. ) != -1
  12251. ) {
  12252. this.pptImgUrl =
  12253. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  12254. this.showPDF = false;
  12255. } else if (
  12256. w.works
  12257. .split(".")
  12258. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  12259. ) {
  12260. this.pptImgUrl = w.works;
  12261. this.showPDF = true;
  12262. }
  12263. } else if (w.works && w.type == 3) {
  12264. this.videoDetail = {};
  12265. this.playerOptions1.sources[0].src = w.works;
  12266. this.videoDetail = this.playerOptions1;
  12267. }
  12268. },
  12269. addComment(wid, uid, t) {
  12270. if (this.commentText == "") {
  12271. this.$message.error("请输入评论");
  12272. return;
  12273. }
  12274. let params2 = [
  12275. {
  12276. wid: wid,
  12277. lid: uid,
  12278. t: t,
  12279. },
  12280. ];
  12281. this.ajax
  12282. .post(this.$store.state.api + "getComment", params2)
  12283. .then((res) => {
  12284. if (res.data[0].length > 0) {
  12285. this.$message.error("一个作业只能评论一条");
  12286. } else {
  12287. let params = [
  12288. {
  12289. wid: wid,
  12290. lid: uid,
  12291. t: t,
  12292. c: this.commentText,
  12293. },
  12294. ];
  12295. this.ajax
  12296. .post(this.$store.state.api + "insertComment", params)
  12297. .then((res) => {
  12298. this.$message({
  12299. message: "评论成功",
  12300. type: "success",
  12301. });
  12302. this.commentText = "";
  12303. this.selectSWorks();
  12304. this.selectStudent();
  12305. })
  12306. .catch((err) => {
  12307. this.$message.error("评论失败");
  12308. console.error(err);
  12309. });
  12310. }
  12311. })
  12312. .catch((err) => {
  12313. // this.$message.error("评论失败");
  12314. console.error(err);
  12315. });
  12316. },
  12317. scoreWork(wid) {
  12318. if (this.wScore == 0) {
  12319. this.$message.error("请评分");
  12320. return;
  12321. }
  12322. let params = [
  12323. {
  12324. wid: wid,
  12325. score: JSON.stringify({
  12326. wScore: this.wScore,
  12327. detail: this.scoreDetail,
  12328. }),
  12329. },
  12330. ];
  12331. this.ajax
  12332. .post(this.$store.state.api + "scoreWork", params)
  12333. .then((res) => {
  12334. this.$message({
  12335. message: "评分成功",
  12336. type: "success",
  12337. });
  12338. this.wScore = 0;
  12339. this.scoreDetail = "";
  12340. this.dialogVisibleScore = false;
  12341. this.selectSWorks();
  12342. this.selectStudent();
  12343. })
  12344. .catch((err) => {
  12345. this.$message.error("评分失败");
  12346. console.error(err);
  12347. });
  12348. },
  12349. openXz(w, i) {
  12350. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  12351. .taskJson[this.taskCount].toolChoose[i].selectJson
  12352. ? JSON.parse(
  12353. JSON.stringify(
  12354. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12355. this.taskCount
  12356. ].toolChoose[i].selectJson
  12357. )
  12358. )
  12359. : { url: "", select: [], answer: [] };
  12360. var a = w.works.split(",");
  12361. for (var k = 0; k < a.length; k++) {
  12362. a[k] = parseInt(a[k]);
  12363. }
  12364. this.selectAnswer = { answer: a, stu: w.sName };
  12365. this.isSelect = true;
  12366. this.dialogVisibleSelect = true;
  12367. },
  12368. openSen(w, i) {
  12369. this.sentenceList1 = JSON.parse(w.works);
  12370. this.sentenceList1.stuName = w.sName;
  12371. this.dialogVisibleSentence1 = true;
  12372. },
  12373. openPj(w, toolindex) {
  12374. this.isStar = true;
  12375. this.eScore = JSON.parse(w);
  12376. this.rateJson =
  12377. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12378. this.taskCount
  12379. ].toolChoose[toolindex].rateJson;
  12380. this.studentEvalDialogVisible = true;
  12381. },
  12382. deleteWorks(id) {
  12383. this.$confirm("确定删除此作业吗?", "提示", {
  12384. confirmButtonText: "确定",
  12385. cancelButtonText: "取消",
  12386. type: "warning",
  12387. })
  12388. .then(() => {
  12389. let params = [
  12390. {
  12391. id: id,
  12392. },
  12393. ];
  12394. this.ajax
  12395. .post(this.$store.state.api + "deleteCourseWork", params)
  12396. .then((res) => {
  12397. this.$message({
  12398. message: "删除成功",
  12399. type: "success",
  12400. });
  12401. this.selectStudent();
  12402. this.selectSWorks();
  12403. this.selectSLook();
  12404. })
  12405. .catch((err) => {
  12406. this.$message.error("网络异常");
  12407. console.error(err);
  12408. });
  12409. })
  12410. .catch(() => {});
  12411. },
  12412. selectSWorks(gindex) {
  12413. //教师查看全部作业
  12414. let params = {
  12415. cid: this.id,
  12416. s: this.courseType,
  12417. t: this.taskCount,
  12418. };
  12419. this.ajax
  12420. .get(this.$store.state.api + "selectSWorks", params)
  12421. .then((res) => {
  12422. var a =
  12423. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12424. this.taskCount
  12425. ].toolChoose;
  12426. var b = res.data[0];
  12427. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  12428. var y = [
  12429. "AVI",
  12430. "NAVI",
  12431. "MPEG",
  12432. "ASF",
  12433. "MOV",
  12434. "WMV",
  12435. "3GP",
  12436. "RM",
  12437. "RMVB",
  12438. "FLV",
  12439. "F4V",
  12440. "H.264",
  12441. "H.265",
  12442. "REAL VIDEO",
  12443. "MKV",
  12444. "WebM",
  12445. "HDDVD",
  12446. "MP4",
  12447. "MPG",
  12448. "M4V",
  12449. "MGV",
  12450. "OGV",
  12451. "QTM",
  12452. "STR",
  12453. "AMC",
  12454. "DVX",
  12455. "EVO",
  12456. "DAT",
  12457. "OGG",
  12458. "OGM",
  12459. ];
  12460. var d = res.data[1];
  12461. var e = res.data[2];
  12462. var f = res.data[3];
  12463. let _worksStudent = [];
  12464. var _worksStudent2 = [];
  12465. for (var i = 0; i < a.length; i++) {
  12466. _worksStudent[i] = [];
  12467. _worksStudent2[i] = [];
  12468. if (
  12469. !this.isCloseList[i] ||
  12470. this.isCloseList[i].isClose == undefined
  12471. ) {
  12472. this.isCloseList[i] = { isClose: 0 };
  12473. }
  12474. this.groupStudent[i] = [];
  12475. this.groupStudentUid[i] = [];
  12476. if (this.isGroup) {
  12477. for (
  12478. var groupI = 0;
  12479. groupI < this.courseGroup.group.length;
  12480. groupI++
  12481. ) {
  12482. this.courseGroup.group[groupI].works[i] = [];
  12483. }
  12484. }
  12485. this.isWorksS[i] = [];
  12486. this.checkJson[i] = [];
  12487. if (a[i].tool[0] == 49) {
  12488. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  12489. this.groupStudent[i][gA] = [];
  12490. this.groupStudentUid[i][gA] = [];
  12491. _worksStudent[i][gA] = [];
  12492. _worksStudent2[i][gA] = [];
  12493. this.isCloseList[i][gA] = [];
  12494. for (var g = 0; g < f.length; g++) {
  12495. if (
  12496. f[g].ttype == 2 &&
  12497. this.tcid &&
  12498. this.arrayToArray(
  12499. f[g].classid.split(","),
  12500. this.tcid.split(",")
  12501. ).length == 0
  12502. ) {
  12503. continue;
  12504. }
  12505. if (gA == f[g].group && f[g].tool == i) {
  12506. this.groupStudent[i][gA].push(f[g]);
  12507. this.groupStudentUid[i][gA].push(f[g].userid);
  12508. }
  12509. }
  12510. }
  12511. this.$forceUpdate();
  12512. }
  12513. for (var j = 0; j < b.length; j++) {
  12514. if (
  12515. b[j].ttype == 2 &&
  12516. this.tcid &&
  12517. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  12518. .length == 0
  12519. ) {
  12520. continue;
  12521. }
  12522. var likesCount = 0;
  12523. var commentCount = 0;
  12524. var isLikes = false;
  12525. var commentJson = [];
  12526. var data = b[j];
  12527. if (i == b[j].tool) {
  12528. if (data.type == 2 && a[i].tool[0] == 4) {
  12529. // if(JSON.parse(data.content)[0].anwer){
  12530. var checkL =
  12531. JSON.parse(data.content)[0].anwer instanceof Array
  12532. ? JSON.parse(data.content)[0].anwer
  12533. : JSON.parse(data.content)[0].anwer.split(",");
  12534. for (var z = 0; z < checkL.length; z++) {
  12535. if (!this.checkJson[i][z]) {
  12536. this.checkJson[i].push({
  12537. checkCount: [],
  12538. checkPerson: [],
  12539. rightPerson: [],
  12540. });
  12541. }
  12542. if (!this.checkJson[i][z].checkCount.length) {
  12543. this.checkJson[i][z].checkCount = [];
  12544. let _askItemCount = JSON.parse(data.content)[0].askJson
  12545. .askJson[z].askItem;
  12546. for (var aic = 0; aic < _askItemCount; aic++) {
  12547. this.checkJson[i][z].checkCount.push(0);
  12548. }
  12549. }
  12550. if (checkL[z] instanceof Array) {
  12551. if (
  12552. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  12553. checkL[z].sort().join(",")
  12554. ) {
  12555. this.checkJson[i][z].rightPerson.push(data.name);
  12556. }
  12557. for (var q = 0; q < checkL[z].length; q++) {
  12558. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  12559. ? this.checkJson[i][z].checkPerson[
  12560. parseInt(checkL[z][q])
  12561. ].push(data.name)
  12562. : (this.checkJson[i][z].checkPerson[
  12563. parseInt(checkL[z][q])
  12564. ] = [data.name]);
  12565. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  12566. ? this.checkJson[i][z].checkCount[
  12567. parseInt(checkL[z][q])
  12568. ]++
  12569. : (this.checkJson[i][z].checkCount[
  12570. parseInt(checkL[z][q])
  12571. ] = 1);
  12572. }
  12573. } else {
  12574. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  12575. this.checkJson[i][z].rightPerson.push(data.name);
  12576. }
  12577. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  12578. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  12579. ? this.checkJson[i][z].checkPerson[
  12580. parseInt(checkL[z])
  12581. ].push(data.name)
  12582. : (this.checkJson[i][z].checkPerson[
  12583. parseInt(checkL[z])
  12584. ] = [data.name]);
  12585. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  12586. ? this.checkJson[i][z].checkCount[
  12587. parseInt(checkL[z])
  12588. ]++
  12589. : (this.checkJson[i][z].checkCount[
  12590. parseInt(checkL[z])
  12591. ] = 1);
  12592. }
  12593. }
  12594. }
  12595. } else if (data.type == 8 && a[i].tool[0] == 45) {
  12596. var checkL = JSON.parse(data.content)[0].anwer;
  12597. for (var z = 0; z < checkL.length; z++) {
  12598. if (!this.checkJson[i][z]) {
  12599. this.checkJson[i].push({
  12600. checkCount: [],
  12601. checkPerson: [],
  12602. rightPerson: [],
  12603. });
  12604. }
  12605. if (!this.checkJson[i][z].checkCount.length) {
  12606. this.checkJson[i][z].checkCount = [];
  12607. let _askItemCount = JSON.parse(data.content)[0].testJson
  12608. .testJson[z].testItem;
  12609. for (var aic = 0; aic < _askItemCount; aic++) {
  12610. this.checkJson[i][z].checkCount.push(0);
  12611. }
  12612. }
  12613. if (checkL[z] instanceof Array) {
  12614. if (
  12615. JSON.parse(data.content)[0]
  12616. .testJson.testJson[z].answer.sort()
  12617. .join(",") == checkL[z].sort().join(",")
  12618. ) {
  12619. this.checkJson[i][z].rightPerson.push(data.name);
  12620. }
  12621. for (var q = 0; q < checkL[z].length; q++) {
  12622. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  12623. ? this.checkJson[i][z].checkPerson[
  12624. parseInt(checkL[z][q])
  12625. ].push(data.name)
  12626. : (this.checkJson[i][z].checkPerson[
  12627. parseInt(checkL[z][q])
  12628. ] = [data.name]);
  12629. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  12630. ? this.checkJson[i][z].checkCount[
  12631. parseInt(checkL[z][q])
  12632. ]++
  12633. : (this.checkJson[i][z].checkCount[
  12634. parseInt(checkL[z][q])
  12635. ] = 1);
  12636. }
  12637. } else {
  12638. if (
  12639. JSON.parse(data.content)[0].testJson.testJson[z]
  12640. .answer == checkL[z]
  12641. ) {
  12642. this.checkJson[i][z].rightPerson.push(data.name);
  12643. }
  12644. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  12645. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  12646. ? this.checkJson[i][z].checkPerson[
  12647. parseInt(checkL[z])
  12648. ].push(data.name)
  12649. : (this.checkJson[i][z].checkPerson[
  12650. parseInt(checkL[z])
  12651. ] = [data.name]);
  12652. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  12653. ? this.checkJson[i][z].checkCount[
  12654. parseInt(checkL[z])
  12655. ]++
  12656. : (this.checkJson[i][z].checkCount[
  12657. parseInt(checkL[z])
  12658. ] = 1);
  12659. }
  12660. }
  12661. }
  12662. } else if (data.type == 9 && a[i].tool[0] == 47) {
  12663. var checkL = JSON.parse(data.content);
  12664. for (var z = 0; z < checkL.length; z++) {
  12665. if (!this.checkJson[i][z]) {
  12666. this.checkJson[i].push({
  12667. checkCount: [],
  12668. checkPerson: [],
  12669. rightPerson: [],
  12670. });
  12671. }
  12672. this.checkJson[i][z].checkPerson.push(data.name);
  12673. if (
  12674. checkL[z].chooseSenList.toString() ==
  12675. checkL[z].rightAnswer.toString()
  12676. ) {
  12677. this.checkJson[i][z].rightPerson.push(data.name);
  12678. }
  12679. }
  12680. }
  12681. for (var k = 0; k < d.length; k++) {
  12682. //点赞
  12683. if (d[k].workId == b[j].id) {
  12684. likesCount++;
  12685. if (d[k].likesId == this.userid) {
  12686. isLikes = true;
  12687. }
  12688. }
  12689. }
  12690. for (var l = 0; l < e.length; l++) {
  12691. //评论
  12692. if (e[l].workId == b[j].id) {
  12693. if (e[l].comment != "") {
  12694. commentCount++;
  12695. commentJson.push({
  12696. commentText: e[l].comment,
  12697. commentTime: e[l].commentTime,
  12698. commentPeople: e[l].commentPeople,
  12699. userid: e[l].userid,
  12700. wid: e[l].id,
  12701. });
  12702. }
  12703. }
  12704. }
  12705. if (
  12706. (b[j].type == 1 ||
  12707. b[j].type == 4 ||
  12708. b[j].type == 5 ||
  12709. b[j].type == 6 ||
  12710. b[j].type == 12 ||
  12711. b[j].type == 7) &&
  12712. a[i].tool[0] != 15 &&
  12713. a[i].tool[0] != 4 &&
  12714. a[i].tool[0] != 45 &&
  12715. a[i].tool[0] != 50 &&
  12716. a[i].tool[0] != 32 &&
  12717. a[i].tool[0] != 57 &&
  12718. a[i].tool[0] != 52
  12719. ) {
  12720. if (
  12721. c.indexOf(
  12722. b[j].content
  12723. .split(".")
  12724. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  12725. ) != -1 &&
  12726. a[i].tool[0] == 16 &&
  12727. b[j].atool != 50
  12728. ) {
  12729. let _works = {
  12730. userid: b[j].userid,
  12731. ateacher: b[j].ateacher,
  12732. wid: b[j].id,
  12733. works: b[j].content,
  12734. sName: b[j].name,
  12735. type: 1,
  12736. time: b[j].time,
  12737. score: b[j].score,
  12738. img: b[j].img,
  12739. likesCount: likesCount,
  12740. commentCount: commentCount,
  12741. isLikes: isLikes,
  12742. commentJson: commentJson,
  12743. };
  12744. if (this.isGroup) {
  12745. let isGw = 1;
  12746. for (
  12747. var groupI = 0;
  12748. groupI < this.courseGroup.group.length;
  12749. groupI++
  12750. ) {
  12751. let gid = this.courseGroup.group[groupI].id;
  12752. if (
  12753. this.courseGroupStudentUid[gid].indexOf(
  12754. b[j].userid
  12755. ) != -1
  12756. ) {
  12757. isGw = 2;
  12758. this.courseGroup.group[groupI].works[i].push(_works);
  12759. break;
  12760. }
  12761. }
  12762. if (isGw == 1) {
  12763. _worksStudent[i].push(_works);
  12764. }
  12765. } else {
  12766. _worksStudent[i].push(_works);
  12767. }
  12768. _worksStudent2[i].push(_works);
  12769. this.isWorksS[i].push({
  12770. uid: b[j].userid,
  12771. sName: b[j].name,
  12772. });
  12773. } else if (
  12774. y.indexOf(
  12775. b[j].content
  12776. .split(".")
  12777. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  12778. ) != -1 &&
  12779. a[i].tool[0] == 16 &&
  12780. b[j].atool != 50
  12781. ) {
  12782. let _works = {
  12783. userid: b[j].userid,
  12784. ateacher: b[j].ateacher,
  12785. wid: b[j].id,
  12786. works: b[j].content,
  12787. sName: b[j].name,
  12788. type: 3,
  12789. time: b[j].time,
  12790. score: b[j].score,
  12791. img: b[j].img,
  12792. likesCount: likesCount,
  12793. commentCount: commentCount,
  12794. isLikes: isLikes,
  12795. commentJson: commentJson,
  12796. };
  12797. if (this.isGroup) {
  12798. let isGw = 1;
  12799. for (
  12800. var groupI = 0;
  12801. groupI < this.courseGroup.group.length;
  12802. groupI++
  12803. ) {
  12804. let gid = this.courseGroup.group[groupI].id;
  12805. if (
  12806. this.courseGroupStudentUid[gid].indexOf(
  12807. b[j].userid
  12808. ) != -1
  12809. ) {
  12810. isGw = 2;
  12811. this.courseGroup.group[groupI].works[i].push(_works);
  12812. break;
  12813. }
  12814. }
  12815. if (isGw == 1) {
  12816. _worksStudent[i].push(_works);
  12817. }
  12818. } else {
  12819. _worksStudent[i].push(_works);
  12820. }
  12821. _worksStudent2[i].push(_works);
  12822. this.isWorksS[i].push({
  12823. uid: b[j].userid,
  12824. sName: b[j].name,
  12825. });
  12826. } else if (b[j].type == 6 && b[j].atool != 50) {
  12827. let _works = {
  12828. userid: b[j].userid,
  12829. ateacher: b[j].ateacher,
  12830. wid: b[j].id,
  12831. works: b[j].content,
  12832. sName: b[j].name,
  12833. type: 4,
  12834. time: b[j].time,
  12835. score: b[j].score,
  12836. img: b[j].img,
  12837. likesCount: likesCount,
  12838. commentCount: commentCount,
  12839. isLikes: isLikes,
  12840. commentJson: commentJson,
  12841. };
  12842. _worksStudent[i].push(_works);
  12843. _worksStudent2[i].push(_works);
  12844. this.isWorksS[i].push({
  12845. uid: b[j].userid,
  12846. sName: b[j].name,
  12847. });
  12848. } else if (b[j].type == 7 && b[j].atool != 50) {
  12849. let _work = {
  12850. userid: b[j].userid,
  12851. ateacher: b[j].ateacher,
  12852. wid: b[j].id,
  12853. works: b[j].content,
  12854. sName: b[j].name,
  12855. type: 5,
  12856. time: b[j].time,
  12857. score: b[j].score,
  12858. img: b[j].img,
  12859. likesCount: likesCount,
  12860. commentCount: commentCount,
  12861. isLikes: isLikes,
  12862. commentJson: commentJson,
  12863. };
  12864. _worksStudent[i].push(_work);
  12865. _worksStudent2[i].push(_work);
  12866. this.isWorksS[i].push({
  12867. uid: b[j].userid,
  12868. sName: b[j].name,
  12869. });
  12870. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  12871. let _works = {
  12872. userid: b[j].userid,
  12873. ateacher: b[j].ateacher,
  12874. wid: b[j].id,
  12875. works: b[j].content,
  12876. sName: b[j].name,
  12877. type: 12,
  12878. time: b[j].time,
  12879. score: b[j].score,
  12880. img: b[j].img,
  12881. likesCount: likesCount,
  12882. commentCount: commentCount,
  12883. isLikes: isLikes,
  12884. commentJson: commentJson,
  12885. };
  12886. if (this.isGroup) {
  12887. let isGw = 1;
  12888. for (
  12889. var groupI = 0;
  12890. groupI < this.courseGroup.group.length;
  12891. groupI++
  12892. ) {
  12893. let gid = this.courseGroup.group[groupI].id;
  12894. if (
  12895. this.courseGroupStudentUid[gid].indexOf(
  12896. b[j].userid
  12897. ) != -1
  12898. ) {
  12899. isGw = 2;
  12900. this.courseGroup.group[groupI].works[i].push(_works);
  12901. break;
  12902. }
  12903. }
  12904. if (isGw == 1) {
  12905. _worksStudent[i].push(_works);
  12906. }
  12907. } else {
  12908. _worksStudent[i].push(_works);
  12909. }
  12910. _worksStudent2[i].push(_works);
  12911. this.isWorksS[i].push({
  12912. uid: b[j].userid,
  12913. sName: b[j].name,
  12914. });
  12915. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  12916. let _works = {
  12917. userid: b[j].userid,
  12918. ateacher: b[j].ateacher,
  12919. wid: b[j].id,
  12920. works: b[j].content,
  12921. sName: b[j].name,
  12922. type: 0,
  12923. time: b[j].time,
  12924. score: b[j].score,
  12925. img: b[j].img,
  12926. likesCount: likesCount,
  12927. commentCount: commentCount,
  12928. isLikes: isLikes,
  12929. commentJson: commentJson,
  12930. };
  12931. if (this.isGroup) {
  12932. let isGw = 1;
  12933. for (
  12934. var groupI = 0;
  12935. groupI < this.courseGroup.group.length;
  12936. groupI++
  12937. ) {
  12938. let gid = this.courseGroup.group[groupI].id;
  12939. if (
  12940. this.courseGroupStudentUid[gid].indexOf(
  12941. b[j].userid
  12942. ) != -1
  12943. ) {
  12944. isGw = 2;
  12945. this.courseGroup.group[groupI].works[i].push(_works);
  12946. break;
  12947. }
  12948. }
  12949. if (isGw == 1) {
  12950. _worksStudent[i].push(_works);
  12951. }
  12952. } else {
  12953. _worksStudent[i].push(_works);
  12954. }
  12955. _worksStudent2[i].push(_works);
  12956. this.isWorksS[i].push({
  12957. uid: b[j].userid,
  12958. sName: b[j].name,
  12959. });
  12960. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  12961. let _works = {
  12962. userid: b[j].userid,
  12963. ateacher: b[j].ateacher,
  12964. wid: b[j].id,
  12965. works: b[j].content,
  12966. sName: b[j].name,
  12967. type: 0,
  12968. time: b[j].time,
  12969. score: b[j].score,
  12970. img: b[j].img,
  12971. likesCount: likesCount,
  12972. commentCount: commentCount,
  12973. isLikes: isLikes,
  12974. commentJson: commentJson,
  12975. };
  12976. if (this.isGroup) {
  12977. let isGw = 1;
  12978. for (
  12979. var groupI = 0;
  12980. groupI < this.courseGroup.group.length;
  12981. groupI++
  12982. ) {
  12983. let gid = this.courseGroup.group[groupI].id;
  12984. if (
  12985. this.courseGroupStudentUid[gid].indexOf(
  12986. b[j].userid
  12987. ) != -1
  12988. ) {
  12989. isGw = 2;
  12990. this.courseGroup.group[groupI].works[i].push(_works);
  12991. break;
  12992. }
  12993. }
  12994. if (isGw == 1) {
  12995. _worksStudent[i].push(_works);
  12996. }
  12997. } else {
  12998. _worksStudent[i].push(_works);
  12999. }
  13000. _worksStudent2[i].push(_works);
  13001. this.isWorksS[i].push({
  13002. uid: b[j].userid,
  13003. sName: b[j].name,
  13004. });
  13005. }
  13006. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13007. let _works = {
  13008. userid: b[j].userid,
  13009. ateacher: b[j].ateacher,
  13010. wid: b[j].id,
  13011. works: b[j].content,
  13012. sName: b[j].name,
  13013. type: 2,
  13014. time: b[j].time,
  13015. score: b[j].score,
  13016. img: b[j].img,
  13017. likesCount: likesCount,
  13018. commentCount: commentCount,
  13019. isLikes: isLikes,
  13020. commentJson: commentJson,
  13021. };
  13022. if (this.isGroup) {
  13023. let isGw = 1;
  13024. for (
  13025. var groupI = 0;
  13026. groupI < this.courseGroup.group.length;
  13027. groupI++
  13028. ) {
  13029. let gid = this.courseGroup.group[groupI].id;
  13030. if (
  13031. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  13032. -1
  13033. ) {
  13034. isGw = 2;
  13035. this.courseGroup.group[groupI].works[i].push(_works);
  13036. break;
  13037. }
  13038. }
  13039. if (isGw == 1) {
  13040. _worksStudent[i].push(_works);
  13041. }
  13042. } else {
  13043. _worksStudent[i].push(_works);
  13044. }
  13045. _worksStudent2[i].push(_works);
  13046. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13047. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13048. //问卷
  13049. let _work = {
  13050. userid: b[j].userid,
  13051. ateacher: b[j].ateacher,
  13052. wid: b[j].id,
  13053. works: b[j].content,
  13054. sName: b[j].name,
  13055. type: 2,
  13056. time: b[j].time,
  13057. score: b[j].score,
  13058. img: b[j].img,
  13059. likesCount: likesCount,
  13060. commentCount: commentCount,
  13061. isLikes: isLikes,
  13062. commentJson: commentJson,
  13063. };
  13064. _worksStudent[i].push(_work);
  13065. _worksStudent2[i].push(_work);
  13066. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13067. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13068. //选择题
  13069. let _work = {
  13070. userid: b[j].userid,
  13071. ateacher: b[j].ateacher,
  13072. wid: b[j].id,
  13073. works: b[j].content,
  13074. sName: b[j].name,
  13075. type: 8,
  13076. time: b[j].time,
  13077. score: b[j].score,
  13078. img: b[j].img,
  13079. likesCount: likesCount,
  13080. commentCount: commentCount,
  13081. isLikes: isLikes,
  13082. commentJson: commentJson,
  13083. };
  13084. _worksStudent[i].push(_work);
  13085. _worksStudent2[i].push(_work);
  13086. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13087. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13088. //选择题
  13089. let _work = {
  13090. userid: b[j].userid,
  13091. ateacher: b[j].ateacher,
  13092. wid: b[j].id,
  13093. works: b[j].content,
  13094. sName: b[j].name,
  13095. type: 9,
  13096. time: b[j].time,
  13097. score: b[j].score,
  13098. img: b[j].img,
  13099. likesCount: likesCount,
  13100. commentCount: commentCount,
  13101. isLikes: isLikes,
  13102. commentJson: commentJson,
  13103. };
  13104. _worksStudent[i].push(_work);
  13105. _worksStudent2[i].push(_work);
  13106. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13107. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13108. //选择题
  13109. let _work = {
  13110. userid: b[j].userid,
  13111. ateacher: b[j].ateacher,
  13112. wid: b[j].id,
  13113. works: b[j].content,
  13114. sName: b[j].name,
  13115. type: 10,
  13116. time: b[j].time,
  13117. score: b[j].score,
  13118. img: b[j].img,
  13119. likesCount: likesCount,
  13120. commentCount: commentCount,
  13121. isLikes: isLikes,
  13122. commentJson: commentJson,
  13123. };
  13124. _worksStudent[i].push(_work);
  13125. _worksStudent2[i].push(_work);
  13126. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13127. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13128. //选择题
  13129. let _work = {
  13130. userid: b[j].userid,
  13131. ateacher: b[j].ateacher,
  13132. wid: b[j].id,
  13133. works: b[j].content,
  13134. sName: b[j].name,
  13135. type: 13,
  13136. time: b[j].time,
  13137. score: b[j].score,
  13138. img: b[j].img,
  13139. likesCount: likesCount,
  13140. commentCount: commentCount,
  13141. isLikes: isLikes,
  13142. commentJson: commentJson,
  13143. };
  13144. _worksStudent[i].push(_work);
  13145. _worksStudent2[i].push(_work);
  13146. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13147. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  13148. let _gindex = JSON.parse(b[j].content);
  13149. if (
  13150. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  13151. b[j].userid
  13152. ) != -1
  13153. ) {
  13154. let _work = {
  13155. userid: b[j].userid,
  13156. ateacher: b[j].ateacher,
  13157. wid: b[j].id,
  13158. works: _gindex.url,
  13159. sName: b[j].name,
  13160. type: _gindex.type,
  13161. time: b[j].time,
  13162. score: b[j].score,
  13163. img: b[j].img,
  13164. likesCount: likesCount,
  13165. commentCount: commentCount,
  13166. isLikes: isLikes,
  13167. commentJson: commentJson,
  13168. };
  13169. _worksStudent[i][_gindex.groupIndex].push(_work);
  13170. _worksStudent2[i][_gindex.groupIndex].push(_work);
  13171. }
  13172. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13173. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  13174. let _work = {
  13175. userid: b[j].userid,
  13176. ateacher: b[j].ateacher,
  13177. wid: b[j].id,
  13178. works: b[j].content,
  13179. sName: b[j].name ? b[j].name : b[j].userid,
  13180. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  13181. time: b[j].time,
  13182. score: b[j].score,
  13183. img: b[j].img,
  13184. likesCount: likesCount,
  13185. commentCount: commentCount,
  13186. isLikes: isLikes,
  13187. commentJson: commentJson,
  13188. };
  13189. _worksStudent[i].push(_work);
  13190. _worksStudent2[i].push(_work);
  13191. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13192. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  13193. let _work = {
  13194. userid: b[j].userid,
  13195. ateacher: b[j].ateacher,
  13196. wid: b[j].id,
  13197. works: b[j].content,
  13198. sName: b[j].name ? b[j].name : b[j].userid,
  13199. type: 12,
  13200. time: b[j].time,
  13201. score: b[j].score,
  13202. img: b[j].img,
  13203. likesCount: likesCount,
  13204. commentCount: commentCount,
  13205. isLikes: isLikes,
  13206. commentJson: commentJson,
  13207. };
  13208. _worksStudent[i].push(_work);
  13209. _worksStudent2[i].push(_work);
  13210. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13211. } else if (
  13212. a[i].tool[0] == 57 &&
  13213. b[j].atool == 57 &&
  13214. b[j].type == 12
  13215. ) {
  13216. let _work = {
  13217. userid: b[j].userid,
  13218. ateacher: b[j].ateacher,
  13219. wid: b[j].id,
  13220. works: b[j].content,
  13221. sName: b[j].name ? b[j].name : b[j].userid,
  13222. type: 12,
  13223. time: b[j].time,
  13224. score: b[j].score,
  13225. img: b[j].img,
  13226. likesCount: likesCount,
  13227. commentCount: commentCount,
  13228. isLikes: isLikes,
  13229. commentJson: commentJson,
  13230. };
  13231. _worksStudent[i].push(_work);
  13232. _worksStudent2[i].push(_work);
  13233. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13234. } else if (
  13235. a[i].tool[0] == 57 &&
  13236. b[j].atool == 57 &&
  13237. b[j].type == 15
  13238. ) {
  13239. let _work = {
  13240. userid: b[j].userid,
  13241. ateacher: b[j].ateacher,
  13242. wid: b[j].id,
  13243. works: b[j].content,
  13244. sName: b[j].name ? b[j].name : b[j].userid,
  13245. type: 15,
  13246. time: b[j].time,
  13247. score: b[j].score,
  13248. img: b[j].img,
  13249. likesCount: likesCount,
  13250. commentCount: commentCount,
  13251. isLikes: isLikes,
  13252. commentJson: commentJson,
  13253. };
  13254. _worksStudent[i].push(_work);
  13255. _worksStudent2[i].push(_work);
  13256. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13257. }
  13258. }
  13259. }
  13260. if (_worksStudent[i] && _worksStudent[i].length) {
  13261. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  13262. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  13263. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  13264. var scoreA = parseFloat(jscoreA);
  13265. var scoreB = parseFloat(jscoreB);
  13266. if (scoreA == scoreB) {
  13267. return b.likesCount - a.likesCount;
  13268. }
  13269. return scoreB - scoreA;
  13270. });
  13271. if (this.isGroup) {
  13272. for (
  13273. var groupI = 0;
  13274. groupI < this.courseGroup.group.length;
  13275. groupI++
  13276. ) {
  13277. this.courseGroup.group[groupI].works[i] =
  13278. this.courseGroup.group[groupI].works[i].sort(function (
  13279. a,
  13280. b
  13281. ) {
  13282. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  13283. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  13284. var scoreA = parseFloat(jscoreA);
  13285. var scoreB = parseFloat(jscoreB);
  13286. if (scoreA == scoreB) {
  13287. return b.likesCount - a.likesCount;
  13288. }
  13289. return scoreB - scoreA;
  13290. });
  13291. }
  13292. }
  13293. }
  13294. }
  13295. this.timeWorkList = _worksStudent2;
  13296. for (var i = 0; i < a.length; i++) {
  13297. for (var j = 0; j < b.length; j++) {
  13298. var data = b[j];
  13299. if (i == b[j].tool) {
  13300. if (data.type == 2 || data.type == 8) {
  13301. for (var z = 0; z < this.checkJson[i].length; z++) {
  13302. this.checkJson[i][z].checkPerent = [];
  13303. this.checkJson[i][z].right = Math.round(
  13304. (this.checkJson[i][z].rightPerson.length /
  13305. parseInt(_worksStudent[i].length)) *
  13306. 100
  13307. );
  13308. let aaaa = this.checkJson[i][z];
  13309. for (
  13310. var k = 0;
  13311. k < this.checkJson[i][z].checkCount.length;
  13312. k++
  13313. ) {
  13314. this.checkJson[i][z].checkPerent.push(
  13315. Math.round(
  13316. (this.checkJson[i][z].checkCount[k] /
  13317. parseInt(_worksStudent[i].length)) *
  13318. 100
  13319. )
  13320. );
  13321. }
  13322. }
  13323. } else if (data.type == 9) {
  13324. for (var z = 0; z < this.checkJson[i].length; z++) {
  13325. this.checkJson[i][z].checkPerent = [];
  13326. this.checkJson[i][z].right = Math.round(
  13327. (this.checkJson[i][z].rightPerson.length /
  13328. this.checkJson[i][z].checkPerson.length) *
  13329. 100
  13330. );
  13331. }
  13332. }
  13333. }
  13334. }
  13335. }
  13336. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  13337. this.joinGroup(gindex);
  13338. }
  13339. this.worksStudent = _worksStudent;
  13340. this.selectWorksStudent();
  13341. })
  13342. .catch((err) => {
  13343. console.error(err);
  13344. });
  13345. },
  13346. pngToWhiteBg(file) {
  13347. const _file = file;
  13348. let read = new FileReader();
  13349. read.readAsDataURL(file); // 文件转base64
  13350. return new Promise((resolve, reject) => {
  13351. read.onload = (e) => {
  13352. let img = new Image();
  13353. img.src = e.target.result;
  13354. img.onload = async () => {
  13355. // 生成canvas
  13356. let canvas = document.createElement("canvas");
  13357. let context = canvas.getContext("2d");
  13358. // 绘制图片到canvas上
  13359. canvas.width = img.width;
  13360. canvas.height = img.height;
  13361. // 在canvas绘制前填充白色背景
  13362. context.fillStyle = "#fff";
  13363. context.fillRect(0, 0, canvas.width, canvas.height);
  13364. context.drawImage(img, 0, 0);
  13365. let base64 = canvas.toDataURL(file["type"], 1);
  13366. let newFile = this.dataUrlToFile(base64, _file);
  13367. resolve(newFile);
  13368. };
  13369. };
  13370. });
  13371. },
  13372. dataUrlToFile(dataurl, file) {
  13373. let arr = dataurl.split(","),
  13374. mime = arr[0].match(/:(.*?);/)[1],
  13375. bstr = atob(arr[1]),
  13376. n = bstr.length,
  13377. u8arr = new Uint8Array(n);
  13378. while (n--) {
  13379. u8arr[n] = bstr.charCodeAt(n);
  13380. }
  13381. // return new Blob([u8arr], { type: mime });
  13382. return new File([new Blob([u8arr], { type: mime })], file.name, {
  13383. type: mime,
  13384. });
  13385. },
  13386. async beforeUpload1(event, type, i) {
  13387. // this.$message.success('进入上传')
  13388. var file = "";
  13389. if (type == 5) {
  13390. file = event;
  13391. } else {
  13392. file = event.target.files[0];
  13393. }
  13394. var credentials = {
  13395. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  13396. secretAccessKey: "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",
  13397. }; //秘钥形式的登录上传
  13398. window.AWS.config.update(credentials);
  13399. window.AWS.config.region = "cn-northwest-1"; //设置区域
  13400. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  13401. var _this = this;
  13402. _this.progress = 0;
  13403. _this.proVisible = true;
  13404. _this.isFinishSize = 0;
  13405. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  13406. var b = [
  13407. "DOC",
  13408. "DOCX",
  13409. "DOCM",
  13410. "DOTM",
  13411. "DOTX",
  13412. "PPTX",
  13413. "PPSX",
  13414. "PPT",
  13415. "PPS",
  13416. "PPTM",
  13417. "POTM",
  13418. "PPAM",
  13419. "POTX",
  13420. "PPSM",
  13421. ];
  13422. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  13423. var photoA = [
  13424. "BMP",
  13425. "GIF",
  13426. "PNG",
  13427. "JPGE",
  13428. "JPEG",
  13429. "JPG",
  13430. "TIF",
  13431. "PCX",
  13432. "TGA",
  13433. "EXIF",
  13434. "FPX",
  13435. "SVG",
  13436. "APNG",
  13437. ];
  13438. // if (
  13439. // b.indexOf(
  13440. // file.name
  13441. // .split(".")
  13442. // [file.name.split(".").length - 1].toLocaleUpperCase()
  13443. // ) != -1
  13444. // ) {
  13445. // if (file.size / 1024 / 1024 > 10) {
  13446. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  13447. // return;
  13448. // }
  13449. // } else if (
  13450. // excelA.indexOf(
  13451. // file.name
  13452. // .split(".")
  13453. // [file.name.split(".").length - 1].toLocaleUpperCase()
  13454. // ) != "-1"
  13455. // ) {
  13456. // if (file.size / 1024 / 1024 > 5) {
  13457. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  13458. // return;
  13459. // }
  13460. // }
  13461. if (
  13462. photoA.indexOf(
  13463. file.name
  13464. .split(".")
  13465. [file.name.split(".").length - 1].toLocaleUpperCase()
  13466. ) != -1 &&
  13467. type != 4
  13468. ) {
  13469. // const blob = await imageConversion.compress(file, 0.8)
  13470. file = await this.pngToWhiteBg(file);
  13471. const blob = await imageConversion.compressAccurately(file, 256);
  13472. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  13473. file = new File([blob], file.name, { type: file.type });
  13474. }
  13475. if (file) {
  13476. var params = {
  13477. Key:
  13478. file.name.split(".")[0] +
  13479. new Date().getTime() +
  13480. "." +
  13481. file.name.split(".")[file.name.split(".").length - 1],
  13482. ContentType: file.type,
  13483. Body: file,
  13484. "Access-Control-Allow-Credentials": "*",
  13485. ACL: "public-read",
  13486. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  13487. var options = {
  13488. // partSize: 2048 * 1024 * 1024,
  13489. partSize: 1024 * 1024 * 1024,
  13490. queueSize: 2,
  13491. leavePartsOnError: true,
  13492. };
  13493. bucket
  13494. .upload(params, options)
  13495. .on("httpUploadProgress", function (evt) {
  13496. //这里可以写进度条
  13497. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  13498. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  13499. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  13500. })
  13501. .send(function (err, data) {
  13502. _this.progress = 100;
  13503. _this.isFinishSize = _this.isAllSize;
  13504. setTimeout(() => {
  13505. _this.proVisible = false;
  13506. }, 1000);
  13507. if (err) {
  13508. var a = _this.$refs.upload1.uploadFiles;
  13509. a.splice(a.length - 1, a.length);
  13510. _this.$message.error("上传失败");
  13511. } else {
  13512. // _this.$message.success('上传成功')
  13513. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13514. var c = [
  13515. "AVI",
  13516. "NAVI",
  13517. "MPEG",
  13518. "ASF",
  13519. "MOV",
  13520. "WMV",
  13521. "3GP",
  13522. "RM",
  13523. "RMVB",
  13524. "FLV",
  13525. "F4V",
  13526. "H.264",
  13527. "H.265",
  13528. "REAL VIDEO",
  13529. "MKV",
  13530. "WebM",
  13531. "HDDVD",
  13532. "MP4",
  13533. "MPG",
  13534. "M4V",
  13535. "MGV",
  13536. "OGV",
  13537. "QTM",
  13538. "STR",
  13539. "AMC",
  13540. "DVX",
  13541. "EVO",
  13542. "DAT",
  13543. "OGG",
  13544. "OGM",
  13545. ];
  13546. if (type == 1) {
  13547. _this.studyJuri[0].cover.push({
  13548. name: file.name,
  13549. url: data.Location,
  13550. uid: file.uid,
  13551. });
  13552. if (
  13553. c.indexOf(
  13554. _this.studyJuri[0].cover[0].url
  13555. .split(".")
  13556. [
  13557. _this.studyJuri[0].cover[0].url.split(".").length - 1
  13558. ].toLocaleUpperCase()
  13559. ) != -1
  13560. ) {
  13561. _this.fileType = 2;
  13562. } else if (
  13563. b.indexOf(
  13564. _this.studyJuri[0].cover[0].url
  13565. .split(".")
  13566. [
  13567. _this.studyJuri[0].cover[0].url.split(".").length - 1
  13568. ].toLocaleUpperCase()
  13569. ) != -1
  13570. ) {
  13571. _this.fileType = 1;
  13572. } else if (
  13573. photoA.indexOf(
  13574. _this.studyJuri[0].cover[0].url
  13575. .split(".")
  13576. [
  13577. _this.studyJuri[0].cover[0].url.split(".").length - 1
  13578. ].toLocaleUpperCase()
  13579. ) != -1
  13580. ) {
  13581. _this.fileType = 0;
  13582. } else {
  13583. _this.fileType = 3;
  13584. }
  13585. _this.imgChange(null, null, type);
  13586. } else if (type == 2) {
  13587. _this.upToolImg = data.Location;
  13588. _this.imgChange(null, null, type);
  13589. _this.addCourseWorks(i);
  13590. } else if (type == 4) {
  13591. _this.addPz("3", data.Location);
  13592. } else if (type == 5) {
  13593. _this.addImgDrawImG(data.Location);
  13594. } else if (type == 6) {
  13595. var _ftype = 1;
  13596. if (
  13597. c.indexOf(
  13598. data.Location.split(".")[
  13599. data.Location.split(".").length - 1
  13600. ].toLocaleUpperCase()
  13601. ) != -1
  13602. ) {
  13603. _ftype = 5;
  13604. } else if (
  13605. b.indexOf(
  13606. data.Location.split(".")[
  13607. data.Location.split(".").length - 1
  13608. ].toLocaleUpperCase()
  13609. ) != -1
  13610. ) {
  13611. _ftype = 4;
  13612. } else {
  13613. _ftype = 1;
  13614. }
  13615. _this.plworkFile.push({
  13616. name: file.name,
  13617. url: data.Location,
  13618. uid: file.uid,
  13619. fileType: _ftype,
  13620. username:
  13621. _this.plworkFile.length > 10
  13622. ? _this.plworkFile.length + 1
  13623. : "0" + (_this.plworkFile.length + 1),
  13624. });
  13625. } else if (type == 7) {
  13626. _this.addCourseWorksGong(i, data.Location, 32);
  13627. } else if (type == 8) {
  13628. _this.addCourseWorksGong(i, data.Location, 57);
  13629. }
  13630. _this.imgChange(null, null, type);
  13631. console.log(data.Location);
  13632. // _this.$message.success('上传成功'+data.Location)
  13633. }
  13634. });
  13635. }
  13636. },
  13637. async beforeUpload3(event, type, i) {
  13638. // this.$message.success('进入上传')
  13639. let file = "";
  13640. let cfindex2 = 0;
  13641. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  13642. file = event.target.files[cfindex];
  13643. var credentials = {
  13644. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  13645. secretAccessKey: "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",
  13646. }; //秘钥形式的登录上传
  13647. window.AWS.config.update(credentials);
  13648. window.AWS.config.region = "cn-northwest-1"; //设置区域
  13649. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  13650. var _this = this;
  13651. // _this.progress = 0;
  13652. _this.proVisible2 = true;
  13653. var b = [
  13654. "DOC",
  13655. "DOCX",
  13656. "DOCM",
  13657. "DOTM",
  13658. "DOTX",
  13659. "PPTX",
  13660. "PPSX",
  13661. "PPT",
  13662. "PPS",
  13663. "PPTM",
  13664. "POTM",
  13665. "PPAM",
  13666. "POTX",
  13667. "PPSM",
  13668. ];
  13669. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  13670. var photoA = [
  13671. "BMP",
  13672. "GIF",
  13673. "PNG",
  13674. "JPGE",
  13675. "JPG",
  13676. "TIF",
  13677. "PCX",
  13678. "TGA",
  13679. "EXIF",
  13680. "FPX",
  13681. "SVG",
  13682. "APNG",
  13683. ];
  13684. if (
  13685. photoA.indexOf(
  13686. file.name
  13687. .split(".")
  13688. [file.name.split(".").length - 1].toLocaleUpperCase()
  13689. ) != -1 &&
  13690. type != 4
  13691. ) {
  13692. // const blob = await imageConversion.compress(file, 0.8)
  13693. file = await this.pngToWhiteBg(file);
  13694. const blob = await imageConversion.compressAccurately(file, 256);
  13695. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  13696. file = new File([blob], file.name, { type: file.type });
  13697. }
  13698. if (file) {
  13699. var params = {
  13700. Key:
  13701. file.name.split(".")[0] +
  13702. new Date().getTime() +
  13703. "." +
  13704. file.name.split(".")[file.name.split(".").length - 1],
  13705. ContentType: file.type,
  13706. Body: file,
  13707. "Access-Control-Allow-Credentials": "*",
  13708. ACL: "public-read",
  13709. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  13710. var options = {
  13711. // partSize: 2048 * 1024 * 1024,
  13712. partSize: 1024 * 1024 * 1024,
  13713. queueSize: 2,
  13714. leavePartsOnError: true,
  13715. };
  13716. bucket
  13717. .upload(params, options)
  13718. .on("httpUploadProgress", function (evt) {
  13719. //这里可以写进度条
  13720. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  13721. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  13722. })
  13723. .send(function (err, data) {
  13724. // _this.progress = 100;
  13725. cfindex2++;
  13726. setTimeout(() => {
  13727. if (
  13728. cfindex2 == event.target.files.length - 1 ||
  13729. cfindex2 > event.target.files.length - 1
  13730. ) {
  13731. _this.proVisible2 = false;
  13732. }
  13733. }, 1000);
  13734. if (err) {
  13735. var a = _this.$refs.upload1.uploadFiles;
  13736. a.splice(a.length - 1, a.length);
  13737. _this.$message.error("上传失败");
  13738. } else {
  13739. // _this.$message.success('上传成功')
  13740. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13741. var c = [
  13742. "AVI",
  13743. "NAVI",
  13744. "MPEG",
  13745. "ASF",
  13746. "MOV",
  13747. "WMV",
  13748. "3GP",
  13749. "RM",
  13750. "RMVB",
  13751. "FLV",
  13752. "F4V",
  13753. "H.264",
  13754. "H.265",
  13755. "REAL VIDEO",
  13756. "MKV",
  13757. "WebM",
  13758. "HDDVD",
  13759. "MP4",
  13760. "MPG",
  13761. "M4V",
  13762. "MGV",
  13763. "OGV",
  13764. "QTM",
  13765. "STR",
  13766. "AMC",
  13767. "DVX",
  13768. "EVO",
  13769. "DAT",
  13770. "OGG",
  13771. "OGM",
  13772. ];
  13773. if (type == 1) {
  13774. _this.studyJuri[0].cover.push({
  13775. name: file.name,
  13776. url: data.Location,
  13777. uid: file.uid,
  13778. });
  13779. if (
  13780. c.indexOf(
  13781. _this.studyJuri[0].cover[0].url
  13782. .split(".")
  13783. [
  13784. _this.studyJuri[0].cover[0].url.split(".").length - 1
  13785. ].toLocaleUpperCase()
  13786. ) != -1
  13787. ) {
  13788. _this.fileType = 2;
  13789. } else if (
  13790. b.indexOf(
  13791. _this.studyJuri[0].cover[0].url
  13792. .split(".")
  13793. [
  13794. _this.studyJuri[0].cover[0].url.split(".").length - 1
  13795. ].toLocaleUpperCase()
  13796. ) != -1
  13797. ) {
  13798. _this.fileType = 1;
  13799. } else {
  13800. _this.fileType = 0;
  13801. }
  13802. _this.imgChange(null, null, type);
  13803. } else if (type == 2) {
  13804. _this.upToolImg = data.Location;
  13805. _this.imgChange(null, null, type);
  13806. _this.addCourseWorks(i);
  13807. } else if (type == 4) {
  13808. _this.addPz("3", data.Location);
  13809. } else if (type == 5) {
  13810. _this.addImgDrawImG(data.Location);
  13811. } else if (type == 6) {
  13812. var _ftype = 1;
  13813. if (
  13814. c.indexOf(
  13815. data.Location.split(".")[
  13816. data.Location.split(".").length - 1
  13817. ].toLocaleUpperCase()
  13818. ) != -1
  13819. ) {
  13820. _ftype = 5;
  13821. } else if (
  13822. b.indexOf(
  13823. data.Location.split(".")[
  13824. data.Location.split(".").length - 1
  13825. ].toLocaleUpperCase()
  13826. ) != -1
  13827. ) {
  13828. _ftype = 4;
  13829. } else {
  13830. _ftype = 1;
  13831. }
  13832. _this.plworkFile.push({
  13833. name: file.name,
  13834. url: data.Location,
  13835. uid: file.uid,
  13836. fileType: _ftype,
  13837. username:
  13838. _this.plworkFile.length + 1 > 9
  13839. ? _this.plworkFile.length + 1
  13840. : "0" + (_this.plworkFile.length + 1),
  13841. });
  13842. }
  13843. _this.imgChange(null, null, type);
  13844. console.log(data.Location);
  13845. // _this.$message.success('上传成功'+data.Location)
  13846. }
  13847. });
  13848. }
  13849. }
  13850. },
  13851. beforeUpload2(event, type) {
  13852. var file = event.target.files[0];
  13853. var credentials = {
  13854. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  13855. secretAccessKey: "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",
  13856. }; //秘钥形式的登录上传
  13857. window.AWS.config.update(credentials);
  13858. window.AWS.config.region = "cn-northwest-1"; //设置区域
  13859. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  13860. var _this = this;
  13861. _this.progress = 0;
  13862. _this.proVisible = true;
  13863. if (file) {
  13864. var params = {
  13865. Key:
  13866. file.name.split(".")[0] +
  13867. new Date().getTime() +
  13868. "." +
  13869. file.name.split(".")[file.name.split(".").length - 1],
  13870. ContentType: file.type,
  13871. Body: file,
  13872. "Access-Control-Allow-Credentials": "*",
  13873. ACL: "public-read",
  13874. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  13875. var options = {
  13876. partSize: 2048 * 1024 * 1024,
  13877. queueSize: 2,
  13878. leavePartsOnError: true,
  13879. };
  13880. bucket
  13881. .upload(params, options)
  13882. .on("httpUploadProgress", function (evt) {
  13883. //这里可以写进度条
  13884. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  13885. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  13886. })
  13887. .send(function (err, data) {
  13888. _this.progress = 100;
  13889. setTimeout(() => {
  13890. _this.proVisible = false;
  13891. }, 1000);
  13892. if (err) {
  13893. var a = _this.$refs.upload1.uploadFiles;
  13894. a.splice(a.length - 1, a.length);
  13895. _this.$message.error("上传失败");
  13896. } else {
  13897. if (type == 2) {
  13898. _this.studyJuri[0].upVedio.push({
  13899. name: file.name,
  13900. url: data.Location,
  13901. uid: file.uid,
  13902. });
  13903. _this.imgChange(null, null, type);
  13904. } else if (type == 3) {
  13905. _this.studyJuri[0].upFile.push({
  13906. name: file.name,
  13907. url: data.Location,
  13908. uid: file.uid,
  13909. });
  13910. _this.imgChange(null, null, type);
  13911. }
  13912. console.log(data.Location);
  13913. }
  13914. });
  13915. }
  13916. },
  13917. allScrell() {
  13918. window.parent.postMessage({ allScreen: this.screenType }, "*");
  13919. },
  13920. nextOrpreSteps(t) {
  13921. if (this.IsFollow && this.tType == 2) {
  13922. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  13923. return;
  13924. }
  13925. var b = this.chapInfoList.length - 1;
  13926. if (t == 0) {
  13927. if (this.courseType == 0) {
  13928. if (this.taskCount == 0) {
  13929. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  13930. if (this.IsLookOpen) {
  13931. if (
  13932. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  13933. ) {
  13934. if (
  13935. this.courseDetail.userid != this.userid &&
  13936. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  13937. ) {
  13938. this.$message.error("任务未解锁");
  13939. } else {
  13940. this.$message.error("上一任务未解锁");
  13941. }
  13942. return;
  13943. }
  13944. }
  13945. this.navList[this.courseType].isOpen = false;
  13946. this.courseType = b;
  13947. this.taskCount =
  13948. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  13949. .length - 1;
  13950. this.navList[this.courseType].isOpen = true;
  13951. } else {
  13952. this.taskCount--;
  13953. }
  13954. } else {
  13955. if (this.taskCount == 0) {
  13956. this.navList[this.courseType].isOpen = false;
  13957. this.courseType--;
  13958. this.taskCount =
  13959. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  13960. .length - 1;
  13961. this.navList[this.courseType].isOpen = true;
  13962. } else {
  13963. this.taskCount--;
  13964. }
  13965. }
  13966. } else {
  13967. if (this.courseType == b) {
  13968. if (
  13969. this.taskCount ==
  13970. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  13971. 1
  13972. ) {
  13973. this.navList[this.courseType].isOpen = false;
  13974. this.courseType = 0;
  13975. this.taskCount = 0;
  13976. this.navList[this.courseType].isOpen = true;
  13977. } else {
  13978. var bbb = parseInt(this.taskCount) + 1;
  13979. if (
  13980. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  13981. .isLook &&
  13982. this.courseDetail.userid != this.userid &&
  13983. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  13984. this.IsLookOpen
  13985. ) {
  13986. this.$message.error("任务未解锁");
  13987. return;
  13988. }
  13989. this.taskCount++;
  13990. if (this.IsLookOpen) {
  13991. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13992. this.taskCount
  13993. ].isLook = true;
  13994. this.addCourseState(3);
  13995. }
  13996. }
  13997. } else {
  13998. if (
  13999. this.taskCount ==
  14000. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  14001. 1
  14002. ) {
  14003. var bbb = parseInt(this.courseType) + 1;
  14004. if (
  14005. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  14006. this.courseDetail.userid != this.userid &&
  14007. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14008. this.IsLookOpen
  14009. ) {
  14010. this.$message.error("任务未解锁");
  14011. return;
  14012. }
  14013. this.navList[this.courseType].isOpen = false;
  14014. this.courseType++;
  14015. this.taskCount = 0;
  14016. this.navList[this.courseType].isOpen = true;
  14017. } else {
  14018. var bbb = parseInt(this.taskCount) + 1;
  14019. if (
  14020. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  14021. .isLook &&
  14022. this.courseDetail.userid != this.userid &&
  14023. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14024. this.IsLookOpen
  14025. ) {
  14026. this.$message.error("任务未解锁");
  14027. return;
  14028. }
  14029. this.taskCount++;
  14030. }
  14031. if (this.IsLookOpen) {
  14032. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14033. this.taskCount
  14034. ].isLook = true;
  14035. this.addCourseState(3);
  14036. }
  14037. }
  14038. // if (
  14039. // this.taskCount ==
  14040. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  14041. // ) {
  14042. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  14043. // } else {
  14044. // this.taskCount++;
  14045. // }
  14046. }
  14047. document.scrollingElement.scrollTop = 0;
  14048. this.showType = 0;
  14049. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  14050. // if (this.vedio[this.taskCount].length > 0) {
  14051. // var a =
  14052. // document.getElementsByClassName("box_course")[this.taskCount]
  14053. // .offsetHeight;
  14054. // document.getElementsByClassName("vedioList")[
  14055. // this.taskCount
  14056. // ].style.height = a + "px";
  14057. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  14058. // a - 40 + "px";
  14059. // }
  14060. this.isNoHomeWork = false;
  14061. (this.studyJuri = [
  14062. {
  14063. content: "",
  14064. cover: [],
  14065. upVedio: [],
  14066. upFile: [],
  14067. },
  14068. ]),
  14069. (this.radio = []);
  14070. this.isClickNav = "";
  14071. this.selectPz();
  14072. this.getHomeWork();
  14073. this.getCourseDetail(2);
  14074. this.$forceUpdate();
  14075. },
  14076. openTask(s, n, i) {
  14077. if (this.IsFollow && this.tType == 2) {
  14078. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14079. return;
  14080. }
  14081. if (this.IsLookOpen) {
  14082. if (
  14083. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  14084. this.courseDetail.userid != this.userid &&
  14085. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  14086. ) {
  14087. this.$message.error("任务未解锁");
  14088. return;
  14089. }
  14090. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  14091. if (
  14092. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  14093. .isLook
  14094. ) {
  14095. this.$message.error("上一任务未解锁");
  14096. return;
  14097. }
  14098. } else if (s > this.courseType) {
  14099. if (n > 0) {
  14100. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  14101. this.$message.error("上一任务未解锁");
  14102. return;
  14103. }
  14104. } else {
  14105. if (
  14106. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  14107. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  14108. ].isLook
  14109. ) {
  14110. this.$message.error("上一任务未解锁");
  14111. return;
  14112. }
  14113. }
  14114. }
  14115. }
  14116. this.courseType = s;
  14117. this.navId = i;
  14118. this.taskCount = n;
  14119. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14120. this.taskCount
  14121. ].isLook =
  14122. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14123. this.taskCount
  14124. ].isLook;
  14125. if (this.IsLookOpen) {
  14126. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14127. this.taskCount
  14128. ].isLook = true;
  14129. this.addCourseState(3);
  14130. }
  14131. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  14132. this.isCloseList[ci].isClose = 0;
  14133. }
  14134. this.showType = 0;
  14135. this.isNoHomeWork = false;
  14136. (this.studyJuri = [
  14137. {
  14138. content: "",
  14139. cover: [],
  14140. upVedio: [],
  14141. upFile: [],
  14142. },
  14143. ]),
  14144. (this.radio = []);
  14145. document.scrollingElement.scrollTop = 0;
  14146. // setTimeout(() => {
  14147. // let a = document.getElementById(i);
  14148. // if (a.offsetTop - 110 == 0) {
  14149. // window.scrollTo(0, 0);
  14150. // } else {
  14151. // window.scrollTo(0, a.offsetTop);
  14152. // }
  14153. // }, 0);
  14154. this.selectPz();
  14155. this.getHomeWork();
  14156. this.getCourseDetail(2);
  14157. },
  14158. get(i) {
  14159. if (this.IsFollow && this.tType == 2) {
  14160. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14161. return;
  14162. }
  14163. // for(var k=0;k<this.navList.length;k++){
  14164. // this.navList[k].isOpen = false;
  14165. // }
  14166. // this.navList[i].isOpen = true;
  14167. this.navList[i].isOpen = !this.navList[i].isOpen;
  14168. if (this.navList[i].isOpen) {
  14169. this.openTask(i, 0, i + "-0");
  14170. }
  14171. },
  14172. addQuestion() {
  14173. this.answerList.push({
  14174. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  14175. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  14176. });
  14177. let params = [
  14178. {
  14179. uid: this.userid,
  14180. cid: this.id,
  14181. stage: this.courseType,
  14182. task: this.taskCount,
  14183. tool: this.toolindex,
  14184. content: JSON.stringify(this.answerList),
  14185. type: 3,
  14186. },
  14187. ];
  14188. this.ajax
  14189. .post(this.$store.state.api + "addCourseWorks", params)
  14190. .then((res) => {
  14191. this.$message({
  14192. message: "提交成功",
  14193. type: "success",
  14194. });
  14195. this.answerList = [];
  14196. this.answerDialogVisible = false;
  14197. this.selectStudent();
  14198. this.selectSWorks();
  14199. this.selectSLook();
  14200. })
  14201. .catch((err) => {
  14202. this.$message.error("提交失败");
  14203. console.error(err);
  14204. });
  14205. },
  14206. addQuestionTeacher() {
  14207. this.answerList.push({
  14208. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  14209. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  14210. });
  14211. let params = [
  14212. {
  14213. uid: this.sStudent.userid,
  14214. cid: this.id,
  14215. stage: this.courseType,
  14216. task: this.taskCount,
  14217. tool: this.toolindex,
  14218. content: JSON.stringify(this.answerList),
  14219. type: 3,
  14220. ateacher: this.userid,
  14221. },
  14222. ];
  14223. this.ajax
  14224. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  14225. .then((res) => {
  14226. this.$message({
  14227. message: "提交成功",
  14228. type: "success",
  14229. });
  14230. this.answerList = [];
  14231. this.questionAnswer = "";
  14232. this.answerDialogVisibleTeacher = false;
  14233. this.selectStudent();
  14234. this.selectSWorks();
  14235. this.selectSLook();
  14236. })
  14237. .catch((err) => {
  14238. this.$message.error("提交失败");
  14239. console.error(err);
  14240. });
  14241. },
  14242. refreshCourse() {
  14243. // window.location.reload();
  14244. this.navList = [];
  14245. this.getCourseDetail(1);
  14246. },
  14247. getCourseDetail(type, gindex) {
  14248. let loading;
  14249. if (type != 2) {
  14250. loading = this.$loading.service({
  14251. background: "rgba(255, 255, 255, 0.7)",
  14252. target: document.querySelector(".student_table"),
  14253. });
  14254. }
  14255. // this.navList[0].isOpen = false;
  14256. // this.navList[this.courseType].isOpen = true;
  14257. // this.courseType = this.courseTypeLine;
  14258. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  14259. let params = {
  14260. courseId: this.id,
  14261. };
  14262. this.ajax
  14263. .get(this.$store.state.api + "selectCourseDetail3", params)
  14264. .then((res) => {
  14265. if (type != 2) {
  14266. loading.close();
  14267. if (
  14268. this.courseType >
  14269. JSON.parse(res.data[0][0].chapters).length - 1
  14270. ) {
  14271. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  14272. }
  14273. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  14274. .chapterInfo[0].taskJson;
  14275. var b = [
  14276. "AVI",
  14277. "NAVI",
  14278. "MPEG",
  14279. "ASF",
  14280. "MOV",
  14281. "WMV",
  14282. "3GP",
  14283. "RM",
  14284. "RMVB",
  14285. "FLV",
  14286. "F4V",
  14287. "H.264",
  14288. "H.265",
  14289. "REAL VIDEO",
  14290. "MKV",
  14291. "WebM",
  14292. "HDDVD",
  14293. "MP4",
  14294. "MPG",
  14295. "M4V",
  14296. "MGV",
  14297. "OGV",
  14298. "QTM",
  14299. "STR",
  14300. "AMC",
  14301. "DVX",
  14302. "EVO",
  14303. "DAT",
  14304. "OGG",
  14305. "OGM",
  14306. "MP3",
  14307. ];
  14308. let _chapterData = [];
  14309. for (var i = 0; i < a.length; i++) {
  14310. var c = a[i].chapterData;
  14311. this.vedio[i] = [];
  14312. this.textList[i] = [];
  14313. this.lineList[i] = [];
  14314. this.chapToolList[i] = [];
  14315. this.file[i] = [];
  14316. this.fileC[i] = [];
  14317. _chapterData[i] = c.filter((el) => {
  14318. return el.type != 12;
  14319. });
  14320. this.fileC[i] = c.filter((el) => {
  14321. return el.type == 12;
  14322. });
  14323. // else if (c[j].type == 12) {
  14324. // this.fileC[i].push(c[j]);
  14325. // }
  14326. for (var j = 0; j < c.length; j++) {
  14327. if (c[j].type == 7) {
  14328. this.chapToolList[i].push(c[j]);
  14329. } else if (c[j].type == 8 || c[j].type == 14) {
  14330. this.lineList[i].push(c[j]);
  14331. } else if (c[j].type == 6) {
  14332. this.textList[i].push(c[j]);
  14333. } else {
  14334. if (
  14335. b.indexOf(
  14336. c[j].url
  14337. .split(".")
  14338. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  14339. ) != -1
  14340. ) {
  14341. this.vedio[i].push(c[j]);
  14342. } else {
  14343. this.file[i].push(c[j]);
  14344. }
  14345. }
  14346. }
  14347. var d = JSON.parse(JSON.stringify(this.playerOptions));
  14348. d.sources[0].src =
  14349. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  14350. this.playerO[i] = d;
  14351. }
  14352. this.courseDetail = res.data[0][0];
  14353. this.tcid = this.arrayToArray(
  14354. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  14355. this.tcid2 ? this.tcid2.split(",") : []
  14356. ).join(",");
  14357. this.evalua = res.data[0][0].evaId;
  14358. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  14359. this.courseType
  14360. ];
  14361. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  14362. if (this.tcid && res.data[1].length) {
  14363. let _inviteA = [];
  14364. for (var ik = 0; ik < res.data[1].length; ik++) {
  14365. _inviteA.push({
  14366. cid: res.data[1][ik].classid,
  14367. ic: res.data[1][ik].code,
  14368. });
  14369. }
  14370. for (var ik = 0; ik < _inviteA.length; ik++) {
  14371. if (
  14372. this.arrayToArray(
  14373. _inviteA[ik].cid.split(","),
  14374. this.tcid.split(",")
  14375. ).length
  14376. ) {
  14377. this.inviteCode = _inviteA[ik].ic;
  14378. break;
  14379. }
  14380. }
  14381. }
  14382. for (var l = 0; l < this.chapInfoList.length; l++) {
  14383. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  14384. for (var m = 0; m < w.length; m++) {
  14385. w[m].id = l + "-" + m;
  14386. }
  14387. }
  14388. if (
  14389. _chapterData[this.taskCount].length &&
  14390. _chapterData[this.taskCount][0].type == 2
  14391. ) {
  14392. this.showType = 0;
  14393. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  14394. } else {
  14395. if (_chapterData[this.taskCount].length > 0) {
  14396. let _url = _chapterData[this.taskCount][0].url;
  14397. if (
  14398. _chapterData[this.taskCount][0].type == 8 ||
  14399. _chapterData[this.taskCount][0].type == 14
  14400. ) {
  14401. this.showType = 2;
  14402. if (
  14403. _url.indexOf("https://") == -1 &&
  14404. _url.indexOf("http://") == -1
  14405. ) {
  14406. _url = "https://" + _url;
  14407. }
  14408. this.pptImgUrl1 = _url;
  14409. } else if (_chapterData[this.taskCount][0].type == 3) {
  14410. if (
  14411. _url
  14412. .split(".")
  14413. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14414. ) {
  14415. this.showType = 3;
  14416. this.pptImgUrl1 = _url;
  14417. } else if (
  14418. this.isAssetTypeAnImage(
  14419. _url
  14420. .split(".")
  14421. [_url.split(".").length - 1].toLocaleLowerCase()
  14422. )
  14423. ) {
  14424. this.showType = 4;
  14425. this.pptImgUrl1 = _url;
  14426. } else {
  14427. this.showType = 2;
  14428. this.pptImgUrl1 =
  14429. "https://view.officeapps.live.com/op/view.aspx?src=" +
  14430. _url;
  14431. }
  14432. } else if (_chapterData[this.taskCount][0].type == 13) {
  14433. this.showType = 4;
  14434. this.pptImgUrl1 = _url;
  14435. } else if (_chapterData[this.taskCount][0].type == 6) {
  14436. this.showType = 1;
  14437. this.text = this.textList[this.taskCount][0];
  14438. }
  14439. }
  14440. }
  14441. this.isClickNav = 0;
  14442. if (
  14443. !_chapterData[this.taskCount].length ||
  14444. _chapterData[this.taskCount][0].type == 12
  14445. ) {
  14446. this.isClickNav = "";
  14447. this.showType = "";
  14448. }
  14449. this.vChapterData = _chapterData;
  14450. } else {
  14451. this.showType = 0;
  14452. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  14453. .chapterInfo[0].taskJson;
  14454. var b = [
  14455. "AVI",
  14456. "NAVI",
  14457. "MPEG",
  14458. "ASF",
  14459. "MOV",
  14460. "WMV",
  14461. "3GP",
  14462. "RM",
  14463. "RMVB",
  14464. "FLV",
  14465. "F4V",
  14466. "H.264",
  14467. "H.265",
  14468. "REAL VIDEO",
  14469. "MKV",
  14470. "WebM",
  14471. "HDDVD",
  14472. "MP4",
  14473. "MPG",
  14474. "M4V",
  14475. "MGV",
  14476. "OGV",
  14477. "QTM",
  14478. "STR",
  14479. "AMC",
  14480. "DVX",
  14481. "EVO",
  14482. "DAT",
  14483. "OGG",
  14484. "OGM",
  14485. "MP3",
  14486. ];
  14487. let _chapterData = [];
  14488. for (var i = 0; i < a.length; i++) {
  14489. var c = a[i].chapterData;
  14490. this.vedio[i] = [];
  14491. this.textList[i] = [];
  14492. this.lineList[i] = [];
  14493. this.chapToolList[i] = [];
  14494. this.file[i] = [];
  14495. this.fileC[i] = [];
  14496. _chapterData[i] = c.filter((el) => {
  14497. return el.type != 12;
  14498. });
  14499. this.fileC[i] = c.filter((el) => {
  14500. return el.type == 12;
  14501. });
  14502. for (var j = 0; j < c.length; j++) {
  14503. if (c[j].type == 7) {
  14504. this.chapToolList[i].push(c[j]);
  14505. } else if (c[j].type == 8 || c[j].type == 14) {
  14506. this.lineList[i].push(c[j]);
  14507. } else if (c[j].type == 6) {
  14508. this.textList[i].push(c[j]);
  14509. } else {
  14510. if (
  14511. b.indexOf(
  14512. c[j].url
  14513. .split(".")
  14514. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  14515. ) != -1
  14516. ) {
  14517. this.vedio[i].push(c[j]);
  14518. } else {
  14519. this.file[i].push(c[j]);
  14520. }
  14521. }
  14522. }
  14523. var d = JSON.parse(JSON.stringify(this.playerOptions));
  14524. d.sources[0].src =
  14525. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  14526. this.playerO[i] = d;
  14527. }
  14528. if (
  14529. _chapterData[this.taskCount].length &&
  14530. _chapterData[this.taskCount][0].type == 2
  14531. ) {
  14532. this.showType = 0;
  14533. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  14534. } else {
  14535. if (_chapterData[this.taskCount].length > 0) {
  14536. let _url = _chapterData[this.taskCount][0].url;
  14537. if (
  14538. _chapterData[this.taskCount][0].type == 8 ||
  14539. _chapterData[this.taskCount][0].type == 14
  14540. ) {
  14541. this.showType = 2;
  14542. if (
  14543. _url.indexOf("https://") == -1 &&
  14544. _url.indexOf("http://") == -1
  14545. ) {
  14546. _url = "https://" + _url;
  14547. }
  14548. this.pptImgUrl1 = _url;
  14549. } else if (_chapterData[this.taskCount][0].type == 3) {
  14550. if (
  14551. _url
  14552. .split(".")
  14553. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14554. ) {
  14555. this.showType = 3;
  14556. this.pptImgUrl1 = _url;
  14557. } else if (
  14558. this.isAssetTypeAnImage(
  14559. _url
  14560. .split(".")
  14561. [_url.split(".").length - 1].toLocaleLowerCase()
  14562. )
  14563. ) {
  14564. this.showType = 4;
  14565. this.pptImgUrl1 = _url;
  14566. } else {
  14567. this.showType = 2;
  14568. this.pptImgUrl1 =
  14569. "https://view.officeapps.live.com/op/view.aspx?src=" +
  14570. _url;
  14571. }
  14572. } else if (_chapterData[this.taskCount][0].type == 13) {
  14573. this.showType = 4;
  14574. this.pptImgUrl1 = _url;
  14575. } else if (_chapterData[this.taskCount][0].type == 6) {
  14576. this.showType = 1;
  14577. this.text = this.textList[this.taskCount][0];
  14578. }
  14579. }
  14580. }
  14581. this.isClickNav = 0;
  14582. if (
  14583. !_chapterData[this.taskCount].length ||
  14584. _chapterData[this.taskCount][0].type == 12
  14585. ) {
  14586. this.isClickNav = "";
  14587. this.showType = "";
  14588. }
  14589. this.vChapterData = _chapterData;
  14590. this.$forceUpdate();
  14591. }
  14592. // else {
  14593. // this.courseDetail = res.data[0][0];
  14594. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  14595. // }
  14596. let _this = this;
  14597. if (_this.timer) {
  14598. clearInterval(_this.timer);
  14599. _this.timer = null;
  14600. }
  14601. if (_this.tcid) {
  14602. _this.getCourseGroup(gindex);
  14603. } else {
  14604. _this.selectSWorks(gindex);
  14605. }
  14606. _this.selectStudent();
  14607. _this.selectSLook();
  14608. _this.getPick();
  14609. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  14610. _this.setCTask();
  14611. }
  14612. if (_this.dialogVisibleGroup) {
  14613. _this.groupJson =
  14614. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  14615. _this.taskCount
  14616. ].toolChoose[_this.toolindex].groupJson;
  14617. }
  14618. _this.$nextTick(() => {
  14619. setTimeout(() => {
  14620. _this.checkEva();
  14621. }, 1000);
  14622. });
  14623. _this.timer = setInterval(function () {
  14624. // _this.getCourseDetail(2);
  14625. if (_this.tcid) {
  14626. _this.getCourseGroup(gindex);
  14627. } else {
  14628. _this.selectSWorks(gindex);
  14629. }
  14630. _this.selectStudent();
  14631. _this.selectSLook();
  14632. _this.getPick();
  14633. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  14634. _this.setCTask();
  14635. }
  14636. if (_this.dialogVisibleGroup) {
  14637. _this.groupJson =
  14638. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  14639. _this.taskCount
  14640. ].toolChoose[_this.toolindex].groupJson;
  14641. }
  14642. if (_this.tType == 4 || _this.ispzType == 4) {
  14643. _this.selectPz();
  14644. }
  14645. }, 5000);
  14646. _this.$nextTick(function () {
  14647. setTimeout(() => {
  14648. // var a =
  14649. // document.getElementsByClassName("box_course")[0].offsetHeight;
  14650. // document.getElementsByClassName("vedioList")[0].style.height =
  14651. // a + "px";
  14652. // document.getElementsByClassName("navBox")[0].style.height =
  14653. // a - 40 + "px";
  14654. // if (_this.vedio[_this.taskCount].length > 0) {
  14655. // _this.vedioTime = [];
  14656. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  14657. // _this.vedioTime[i] = document.getElementsByClassName(
  14658. // "vjs-duration-display"
  14659. // )[i].textContent;
  14660. // }
  14661. // }
  14662. }, 1000);
  14663. });
  14664. })
  14665. .catch((err) => {
  14666. loading.close();
  14667. console.error(err);
  14668. });
  14669. },
  14670. getCourseGroup(gindex) {
  14671. let params = {
  14672. cid: this.id,
  14673. classid: this.tcid ? this.tcid : "1",
  14674. };
  14675. this.ajax
  14676. .get(this.$store.state.api + "getCourseGroup", params)
  14677. .then((res) => {
  14678. if (res.data && res.data[0].length) {
  14679. if (!this.isGroup) {
  14680. let courseGroup = JSON.parse(res.data[0][0].group);
  14681. courseGroup.group = courseGroup.group.filter((el) => {
  14682. el.works = [];
  14683. return el;
  14684. });
  14685. if (courseGroup.isopen == 2) {
  14686. this.isGroup = false;
  14687. this.selectSWorks(gindex);
  14688. return;
  14689. }
  14690. this.courseGroup = courseGroup;
  14691. let groupPerson = res.data[1];
  14692. let group = JSON.parse(res.data[0][0].group).group;
  14693. let courseGroupStudent = {};
  14694. let courseGroupStudentUid = {};
  14695. for (var i = 0; i < group.length; i++) {
  14696. courseGroupStudent[group[i].id] = [];
  14697. courseGroupStudentUid[group[i].id] = [];
  14698. for (var j = 0; j < groupPerson.length; j++) {
  14699. if (groupPerson[j].groupCid == group[i].id) {
  14700. courseGroupStudent[group[i].id].push(groupPerson[j]);
  14701. courseGroupStudentUid[group[i].id].push(
  14702. groupPerson[j].userid
  14703. );
  14704. }
  14705. }
  14706. }
  14707. this.courseGroupStudent = courseGroupStudent;
  14708. this.courseGroupStudentUid = courseGroupStudentUid;
  14709. }
  14710. if (this.courseGroup.isopen == 2) {
  14711. this.isGroup = false;
  14712. } else {
  14713. this.isGroup = true;
  14714. }
  14715. this.selectSWorks(gindex);
  14716. } else {
  14717. this.selectSWorks(gindex);
  14718. this.isGroup = false;
  14719. }
  14720. })
  14721. .catch((err) => {
  14722. // this.$message.error("网络不佳");
  14723. console.error(err);
  14724. });
  14725. },
  14726. setOperationTime() {
  14727. let _this = this;
  14728. if (_this.opertimer) {
  14729. clearInterval(_this.opertimer);
  14730. _this.opertimer = null;
  14731. }
  14732. _this.opertimer = setInterval(() => {
  14733. _this.setoTime("600");
  14734. }, 600000);
  14735. },
  14736. setoTime(time) {
  14737. let params = [
  14738. {
  14739. uid: this.userid,
  14740. cid: this.id,
  14741. type: "2",
  14742. time: time,
  14743. },
  14744. ];
  14745. this.ajax
  14746. .post(this.$store.state.api + "addOperationTimeT2", params)
  14747. .then((res) => {})
  14748. .catch((err) => {
  14749. console.error(err);
  14750. });
  14751. },
  14752. addPz(type, content) {
  14753. if (type == "1" && this.pzConText == "") {
  14754. this.$message.error("批注不能为空!");
  14755. return;
  14756. }
  14757. let params = [
  14758. {
  14759. cid: this.id,
  14760. uid: this.userid,
  14761. s: this.courseType,
  14762. t: this.taskCount,
  14763. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  14764. type: type,
  14765. },
  14766. ];
  14767. this.ajax
  14768. .post(this.$store.state.api + "addPz2", params)
  14769. .then((res) => {
  14770. this.$message({
  14771. message: "添加成功",
  14772. type: "success",
  14773. });
  14774. this.pzConText = "";
  14775. this.addPzDialog = false;
  14776. this.selectPz();
  14777. })
  14778. .catch((err) => {
  14779. this.$message.error("添加失败");
  14780. console.error(err);
  14781. });
  14782. },
  14783. deletePz(id) {
  14784. this.$confirm("确定删除此批注吗?", "提示", {
  14785. confirmButtonText: "确定",
  14786. cancelButtonText: "取消",
  14787. type: "warning",
  14788. })
  14789. .then(() => {
  14790. let params = [
  14791. {
  14792. id: id,
  14793. },
  14794. ];
  14795. this.ajax
  14796. .post(this.$store.state.api + "deletePz", params)
  14797. .then((res) => {
  14798. this.$message({
  14799. message: "删除成功",
  14800. type: "success",
  14801. });
  14802. this.selectPz();
  14803. })
  14804. .catch((err) => {
  14805. this.$message.error("网络异常");
  14806. console.error(err);
  14807. });
  14808. })
  14809. .catch(() => {});
  14810. },
  14811. setPz() {
  14812. if (this.ispzType == 4) {
  14813. this.ispzType = 0;
  14814. this.pzDialog = false;
  14815. return;
  14816. }
  14817. this.ispzType = 4;
  14818. this.pzDialog = true;
  14819. this.selectPz();
  14820. },
  14821. selectPz() {
  14822. let params = {
  14823. cid: this.id,
  14824. s: this.courseType,
  14825. t: this.taskCount,
  14826. type: this.pzStype,
  14827. uid: this.userid,
  14828. };
  14829. this.ajax
  14830. .get(this.$store.state.api + "selectPzListType", params)
  14831. .then((res) => {
  14832. this.pzList = res.data[0];
  14833. })
  14834. .catch((err) => {
  14835. console.error(err);
  14836. });
  14837. },
  14838. updateSLook() {
  14839. let params = {
  14840. sopen: this.sIsOpen == false ? 1 : 2,
  14841. cid: this.id,
  14842. };
  14843. this.ajax
  14844. .get(this.$store.state.api + "updateCourseSLook", params)
  14845. .then((res) => {
  14846. if (this.sIsOpen == true) {
  14847. this.$message({
  14848. message: "权限设置成功",
  14849. type: "success",
  14850. });
  14851. } else {
  14852. this.$message({
  14853. message: "权限关闭成功",
  14854. type: "success",
  14855. });
  14856. }
  14857. })
  14858. .catch((err) => {
  14859. console.error(err);
  14860. });
  14861. },
  14862. updateFollow() {
  14863. let params = [
  14864. {
  14865. sopen: this.IsFollow == false ? 1 : 2,
  14866. cid: this.id,
  14867. },
  14868. ];
  14869. this.ajax
  14870. .post(this.$store.state.api + "updateCourseFollow", params)
  14871. .then((res) => {
  14872. if (this.IsFollow == true) {
  14873. this.$message({
  14874. message: "开启成功",
  14875. type: "success",
  14876. });
  14877. } else {
  14878. this.$message({
  14879. message: "关闭成功",
  14880. type: "success",
  14881. });
  14882. }
  14883. this.setCTask();
  14884. })
  14885. .catch((err) => {
  14886. console.error(err);
  14887. });
  14888. },
  14889. setCTask() {
  14890. let params = [
  14891. {
  14892. sopen: this.courseType + "-" + this.taskCount,
  14893. cid: this.id,
  14894. },
  14895. ];
  14896. this.ajax
  14897. .post(this.$store.state.api + "updateCourseFollowC", params)
  14898. .then((res) => {})
  14899. .catch((err) => {
  14900. console.error(err);
  14901. });
  14902. },
  14903. updateLookOpen() {
  14904. let params = [
  14905. {
  14906. sopen: this.IsLookOpen == false ? 1 : 2,
  14907. cid: this.id,
  14908. },
  14909. ];
  14910. this.ajax
  14911. .post(this.$store.state.api + "updateCourseLookOpen", params)
  14912. .then((res) => {
  14913. if (this.IsLookOpen == true) {
  14914. // if (this.courseType != 0 && this.taskCount != 0) {
  14915. // this.openTask(0, 0, "0-0");
  14916. // }
  14917. this.$message({
  14918. message: "权限设置成功",
  14919. type: "success",
  14920. });
  14921. } else {
  14922. this.$message({
  14923. message: "权限关闭成功",
  14924. type: "success",
  14925. });
  14926. }
  14927. this.getCourseState(2);
  14928. })
  14929. .catch((err) => {
  14930. console.error(err);
  14931. });
  14932. },
  14933. selectSLook() {
  14934. let params = {
  14935. cid: this.id,
  14936. };
  14937. this.ajax
  14938. .get(this.$store.state.api + "selectCourseSLook", params)
  14939. .then((res) => {
  14940. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  14941. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  14942. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  14943. if (!this.IsLookOpen) {
  14944. this.setNavList();
  14945. } else {
  14946. this.getCourseState(1);
  14947. }
  14948. if (this.IsFollow && this.tType == 2) {
  14949. this.setContent2(false);
  14950. let _followC = res.data[0][0].followC.split("-");
  14951. if (
  14952. this.courseType != _followC[0] ||
  14953. this.taskCount != _followC[1]
  14954. ) {
  14955. this.navList[this.courseType].isOpen = false;
  14956. this.courseType = _followC[0];
  14957. this.navList[this.courseType].isOpen = true;
  14958. this.taskCount = parseInt(_followC[1]);
  14959. this.navId = res.data[0][0].followC;
  14960. document.scrollingElement.scrollTop = 0;
  14961. this.getCourseDetail(2);
  14962. }
  14963. }
  14964. })
  14965. .catch((err) => {
  14966. console.error(err);
  14967. });
  14968. },
  14969. setNavList() {
  14970. if (this.navList.length == 0) {
  14971. this.navList = [];
  14972. var copyList = [];
  14973. for (var l = 0; l < this.chapInfoList.length; l++) {
  14974. var q = this.chapInfoList[l].dyName;
  14975. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  14976. var e;
  14977. copyList.push({
  14978. dyName: q,
  14979. isOpen: l === 0 ? true : false,
  14980. task: [],
  14981. });
  14982. for (var r = 0; r < w.length; r++) {
  14983. e = w[r].task;
  14984. if (this.chapInfoList[l].easy == 1) {
  14985. copyList[l].task.push({
  14986. taskName: q,
  14987. id: l + "-" + r,
  14988. isLook: w[r].isLook,
  14989. tool: [],
  14990. });
  14991. } else {
  14992. copyList[l].task.push({
  14993. taskName: e,
  14994. id: l + "-" + r,
  14995. isLook: w[r].isLook,
  14996. tool: [],
  14997. });
  14998. }
  14999. var t = w[r].toolChoose;
  15000. for (var k = 0; k < t.length; k++) {
  15001. var tool = t[k].tool[0];
  15002. copyList[l].task[r].tool.push({
  15003. tool: tool,
  15004. isTool: false,
  15005. });
  15006. }
  15007. // this.navId = this.navId ? this.navId : l + "-" + r;
  15008. // this.navId = l + "-" + r;
  15009. }
  15010. }
  15011. this.navList = copyList;
  15012. this.navList[0].isOpen = false;
  15013. this.navList[this.courseType].isOpen = true;
  15014. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15015. } else {
  15016. this.setNavList2();
  15017. }
  15018. },
  15019. setNavList2() {
  15020. for (var l = 0; l < this.chapInfoList.length; l++) {
  15021. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15022. for (var r = 0; r < w.length; r++) {
  15023. this.navList[l].task[r].isLook = w[r].isLook;
  15024. }
  15025. }
  15026. if (
  15027. this.IsLookOpen &&
  15028. !this.navList[this.courseType].task[this.taskCount].isLook
  15029. ) {
  15030. this.openTask(0, 0, "0-0");
  15031. }
  15032. this.$forceUpdate();
  15033. },
  15034. getCourseState(type) {
  15035. let params = {
  15036. cid: this.id,
  15037. };
  15038. this.ajax
  15039. .get(this.$store.state.api + "getCourseState", params)
  15040. .then((res) => {
  15041. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  15042. this.chapInfoList = JSON.parse(res.data[0][0].state);
  15043. this.setNavList();
  15044. this.$forceUpdate();
  15045. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  15046. this.addCourseState(2);
  15047. } else {
  15048. this.addCourseState(1);
  15049. }
  15050. })
  15051. .catch((err) => {
  15052. console.error(err);
  15053. });
  15054. },
  15055. addCourseState(type) {
  15056. let _state = this.chapInfoList;
  15057. // this.courseType this.taskCount
  15058. if (type == 1 || type == 2) {
  15059. for (var i = 0; i < _state.length; i++) {
  15060. let el = _state[i].chapterInfo[0].taskJson;
  15061. for (var j = 0; j < el.length; j++) {
  15062. // if (i == 0 && j == 0) {
  15063. // el[j].isLook = true;
  15064. // } else {
  15065. // el[j].isLook = false;
  15066. // }
  15067. if (
  15068. this.courseType > i ||
  15069. (this.courseType == i && this.taskCount + 1 > j)
  15070. ) {
  15071. el[j].isLook = true;
  15072. } else {
  15073. el[j].isLook = false;
  15074. }
  15075. }
  15076. }
  15077. }
  15078. let params = [
  15079. {
  15080. cid: this.id,
  15081. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  15082. },
  15083. ];
  15084. this.ajax
  15085. .post(
  15086. this.$store.state.api +
  15087. (type == 1 ? "addCourseState" : "updateCourseSate"),
  15088. params
  15089. )
  15090. .then((res) => {
  15091. if (this.IsLookOpen) {
  15092. this.setNavList();
  15093. }
  15094. if (type == 3 && type == 2) {
  15095. this.getCourseState(1);
  15096. }
  15097. })
  15098. .catch((err) => {
  15099. console.error(err);
  15100. });
  15101. },
  15102. getHomeWork() {
  15103. let params = {
  15104. cid: this.id,
  15105. stage: this.courseType,
  15106. task: this.taskCount,
  15107. uid: this.userid,
  15108. };
  15109. this.ajax
  15110. .get(this.$store.state.api + "selectWork", params)
  15111. .then((res) => {
  15112. if (res.data[0].length > 0) {
  15113. this.studyJuri = JSON.parse(res.data[0][0].content);
  15114. this.isNoHomeWork = true;
  15115. }
  15116. })
  15117. .catch((err) => {
  15118. console.error(err);
  15119. });
  15120. },
  15121. isAssetTypeAnImage(ext) {
  15122. return (
  15123. [
  15124. "png",
  15125. "jpg",
  15126. "jpeg",
  15127. "bmp",
  15128. "gif",
  15129. "webp",
  15130. "psd",
  15131. "svg",
  15132. "tiff",
  15133. ].indexOf(ext) !== -1
  15134. );
  15135. },
  15136. switchVideo(media) {
  15137. this.playerO = {};
  15138. this.playerOptions.poster = "";
  15139. this.playerOptions.sources[0].src = media;
  15140. this.playerO = this.playerOptions;
  15141. },
  15142. onPlayerPlay() {},
  15143. onPlayerTimeupdate(player) {
  15144. let gklog = player.cache_.currentTime; //当前播放的秒数
  15145. let a = player.cache_.duration; //视频的总时长
  15146. let gklog2 = parseInt(gklog);
  15147. // if(gklog2 == '3'){
  15148. // player.pause()
  15149. // setTimeout(()=>{
  15150. // player.currentTime(gklog2+1)
  15151. // player.play()
  15152. // },1000)
  15153. // }
  15154. console.log(" onPlayerTimeupdate!", gklog);
  15155. console.log(" onPlayerTimeupdate!", gklog2);
  15156. },
  15157. lookVedio(u, i) {
  15158. this.isClickNav = "";
  15159. // this.playerOptions.sources[0].src = u;
  15160. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15161. d.sources[0].src = u;
  15162. this.playerO[this.taskCount] = d;
  15163. this.showType = 0;
  15164. // this.isClickNav = "video" + i;
  15165. this.isClickNav = i;
  15166. this.$forceUpdate();
  15167. },
  15168. lookText(i, t) {
  15169. this.isClickNav = "";
  15170. // this.text = this.textList[i][t];
  15171. this.text = this.vChapterData[i][t];
  15172. // this.dialogVisible1 = true;
  15173. this.showType = 1;
  15174. // this.isClickNav = "text" + t;
  15175. this.isClickNav = t;
  15176. },
  15177. lookTools(i, t) {
  15178. this.chapTools = this.chapToolList[i][t];
  15179. this.dialogVisible2 = true;
  15180. },
  15181. openFile(f) {
  15182. this.pptImgUrl = "";
  15183. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  15184. if (
  15185. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  15186. -1
  15187. ) {
  15188. this.pptImgUrl =
  15189. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  15190. this.showPDF = false;
  15191. this.dialogVisible3 = true;
  15192. } else if (
  15193. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15194. ) {
  15195. this.pptImgUrl = f;
  15196. this.showPDF = true;
  15197. this.dialogVisible3 = true;
  15198. }
  15199. },
  15200. openTable(f) {
  15201. this.tableJson = JSON.parse(f.works);
  15202. this.dialogVisibleTable2 = true;
  15203. },
  15204. openWord(f) {
  15205. this.tableJson = JSON.parse(f.works);
  15206. this.dialogVisibleTable3 = true;
  15207. },
  15208. doUrl(url, i) {
  15209. this.isClickNav = "";
  15210. this.pptImgUrl1 = "";
  15211. this.showType = 2;
  15212. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  15213. url = "https://" + url;
  15214. }
  15215. this.pptImgUrl1 = "";
  15216. setTimeout(() => {
  15217. this.pptImgUrl1 = url;
  15218. }, 500);
  15219. // this.isClickNav = "line" + i;
  15220. this.isClickNav = i;
  15221. this.$forceUpdate();
  15222. },
  15223. checkPhoto(f, i) {
  15224. this.showType = 4;
  15225. this.pptImgUrl1 = f.url;
  15226. this.isClickNav = i;
  15227. this.$forceUpdate();
  15228. },
  15229. downFile(f, i) {
  15230. this.isClickNav = "";
  15231. this.pptImgUrl1 = "";
  15232. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  15233. if (
  15234. a.indexOf(
  15235. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  15236. ) != -1
  15237. ) {
  15238. this.pptImgUrl1 =
  15239. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  15240. // this.dialogVisible3 = true;
  15241. this.showType = 2;
  15242. } else if (
  15243. this.isAssetTypeAnImage(
  15244. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  15245. )
  15246. ) {
  15247. this.showType = 4;
  15248. this.pptImgUrl1 = f.url;
  15249. } else if (
  15250. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  15251. "PDF"
  15252. ) {
  15253. this.pptImgUrl1 = f.url;
  15254. // this.dialogVisible3 = true;
  15255. this.showType = 3;
  15256. } else {
  15257. window.open(this.file[i].url);
  15258. }
  15259. // this.isClickNav = "word" + i;
  15260. this.isClickNav = i;
  15261. },
  15262. downFileList(i) {
  15263. window.open(this.noImgList[i].url);
  15264. },
  15265. openAddWork() {
  15266. this.dialogVisible = true;
  15267. },
  15268. addBzWorks() {
  15269. let params = [
  15270. {
  15271. uid: this.userid,
  15272. cid: this.id,
  15273. stage: this.courseType,
  15274. task: this.taskCount,
  15275. tool: this.toolindex,
  15276. content: JSON.stringify(this.eScore),
  15277. type: 6,
  15278. },
  15279. ];
  15280. this.ajax
  15281. .post(this.$store.state.api + "addCourseWorks", params)
  15282. .then((res) => {
  15283. this.$message({
  15284. message: "提交成功",
  15285. type: "success",
  15286. });
  15287. this.eScore = { eBzText: "", eStar: [] };
  15288. this.studentEvalDialogVisible = false;
  15289. this.selectSWorks();
  15290. })
  15291. .catch((err) => {
  15292. this.$message.error("提交失败");
  15293. console.error(err);
  15294. });
  15295. },
  15296. addBzWorksTeacher() {
  15297. let params = [
  15298. {
  15299. uid: this.sStudent.userid,
  15300. cid: this.id,
  15301. stage: this.courseType,
  15302. task: this.taskCount,
  15303. tool: this.toolindex,
  15304. content: JSON.stringify(this.eScore),
  15305. type: 6,
  15306. },
  15307. ];
  15308. this.ajax
  15309. .post(this.$store.state.api + "addCourseWorks", params)
  15310. .then((res) => {
  15311. this.$message({
  15312. message: "提交成功",
  15313. type: "success",
  15314. });
  15315. this.eScore = { eBzText: "", eStar: [] };
  15316. this.studentEvalDialogVisibleTeacher = false;
  15317. this.selectSWorks();
  15318. })
  15319. .catch((err) => {
  15320. this.$message.error("提交失败");
  15321. console.error(err);
  15322. });
  15323. },
  15324. addStudentAsk() {
  15325. if (!this.radio.length) {
  15326. this.$message.error("请选择选项");
  15327. return;
  15328. }
  15329. for (var i = 0; i < this.askJson.askCount; i++) {
  15330. if (
  15331. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15332. (this.radio[i] !== 0 && !this.radio[i])
  15333. ) {
  15334. this.$message.error("请选择选项");
  15335. return;
  15336. }
  15337. }
  15338. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  15339. let params = [
  15340. {
  15341. uid: this.userid,
  15342. cid: this.id,
  15343. stage: this.courseType,
  15344. task: this.taskCount,
  15345. tool: this.toolindex,
  15346. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15347. type: 2,
  15348. },
  15349. ];
  15350. this.ajax
  15351. .post(this.$store.state.api + "addCourseWorks", params)
  15352. .then((res) => {
  15353. this.$message({
  15354. message: "提交成功",
  15355. type: "success",
  15356. });
  15357. this.askList = [];
  15358. this.dialogVisible5 = false;
  15359. this.selectStudent();
  15360. this.selectSWorks();
  15361. this.selectSLook();
  15362. })
  15363. .catch((err) => {
  15364. this.$message.error("提交失败");
  15365. console.error(err);
  15366. });
  15367. },
  15368. addStudentAskTeacher() {
  15369. if (!this.radio.length) {
  15370. this.$message.error("请选择选项");
  15371. return;
  15372. }
  15373. for (var i = 0; i < this.askJson.askCount; i++) {
  15374. if (
  15375. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15376. (this.radio[i] !== 0 && !this.radio[i])
  15377. ) {
  15378. this.$message.error("请选择选项");
  15379. return;
  15380. }
  15381. }
  15382. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  15383. let params = [
  15384. {
  15385. uid: this.sStudent.userid,
  15386. cid: this.id,
  15387. stage: this.courseType,
  15388. task: this.taskCount,
  15389. tool: this.toolindex,
  15390. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15391. type: 2,
  15392. },
  15393. ];
  15394. this.ajax
  15395. .post(this.$store.state.api + "addCourseWorks", params)
  15396. .then((res) => {
  15397. this.$message({
  15398. message: "提交成功",
  15399. type: "success",
  15400. });
  15401. this.askList = [];
  15402. this.dialogVisible5Teacher = false;
  15403. this.selectStudent();
  15404. this.selectSWorks();
  15405. this.selectSLook();
  15406. })
  15407. .catch((err) => {
  15408. this.$message.error("提交失败");
  15409. console.error(err);
  15410. });
  15411. },
  15412. addStudentTest() {
  15413. if (!this.radio.length) {
  15414. this.$message.error("请选择选项");
  15415. return;
  15416. }
  15417. for (var i = 0; i < this.testJson.testCount; i++) {
  15418. if (
  15419. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15420. (this.radio[i] !== 0 && !this.radio[i])
  15421. ) {
  15422. this.$message.error("请选择选项");
  15423. return;
  15424. }
  15425. }
  15426. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  15427. let params = [
  15428. {
  15429. uid: this.userid,
  15430. cid: this.id,
  15431. stage: this.courseType,
  15432. task: this.taskCount,
  15433. tool: this.toolindex,
  15434. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15435. type: 8,
  15436. },
  15437. ];
  15438. this.ajax
  15439. .post(this.$store.state.api + "addCourseWorks", params)
  15440. .then((res) => {
  15441. this.$message({
  15442. message: "提交成功",
  15443. type: "success",
  15444. });
  15445. this.askList = [];
  15446. this.dialogVisibleChoice = false;
  15447. this.selectStudent();
  15448. this.selectSWorks();
  15449. this.selectSLook();
  15450. })
  15451. .catch((err) => {
  15452. this.$message.error("提交失败");
  15453. console.error(err);
  15454. });
  15455. },
  15456. addStudentTestTeacher() {
  15457. if (!this.radio.length) {
  15458. this.$message.error("请选择选项");
  15459. return;
  15460. }
  15461. for (var i = 0; i < this.testJson.testCount; i++) {
  15462. if (
  15463. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15464. (this.radio[i] !== 0 && !this.radio[i])
  15465. ) {
  15466. this.$message.error("请选择选项");
  15467. return;
  15468. }
  15469. }
  15470. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  15471. let params = [
  15472. {
  15473. uid: this.sStudent.userid,
  15474. cid: this.id,
  15475. stage: this.courseType,
  15476. task: this.taskCount,
  15477. tool: this.toolindex,
  15478. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15479. type: 8,
  15480. },
  15481. ];
  15482. this.ajax
  15483. .post(this.$store.state.api + "addCourseWorks", params)
  15484. .then((res) => {
  15485. this.$message({
  15486. message: "提交成功",
  15487. type: "success",
  15488. });
  15489. this.askList = [];
  15490. this.dialogVisibleChoiceTeacher = false;
  15491. this.selectStudent();
  15492. this.selectSWorks();
  15493. this.selectSLook();
  15494. })
  15495. .catch((err) => {
  15496. this.$message.error("提交失败");
  15497. console.error(err);
  15498. });
  15499. },
  15500. addWork() {
  15501. if (this.studyJuri[0].content == "") {
  15502. this.$message.error("请将信息填写完整");
  15503. return;
  15504. } else if (this.studyJuri[0].cover.length == 0) {
  15505. this.$message.error("请将信息填写完整");
  15506. return;
  15507. } else if (this.studyJuri[0].upVedio.length == 0) {
  15508. this.$message.error("请将信息填写完整");
  15509. return;
  15510. }
  15511. if (this.isNoHomeWork) {
  15512. this.$confirm(
  15513. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  15514. "提示",
  15515. {
  15516. confirmButtonText: "确定",
  15517. cancelButtonText: "取消",
  15518. type: "warning",
  15519. }
  15520. )
  15521. .then(() => {
  15522. let params = [
  15523. {
  15524. uid: this.userid,
  15525. cid: this.id,
  15526. stage: this.courseType,
  15527. task: this.taskCount,
  15528. content: JSON.stringify(this.studyJuri),
  15529. },
  15530. ];
  15531. this.ajax
  15532. .post(this.$store.state.api + "addWorks", params)
  15533. .then((res) => {
  15534. this.$message({
  15535. message: "提交成功",
  15536. type: "success",
  15537. });
  15538. this.isNoHomeWork = true;
  15539. this.dialogVisible = false;
  15540. })
  15541. .catch((err) => {
  15542. this.$message.error("提交失败");
  15543. console.error(err);
  15544. });
  15545. })
  15546. .catch(() => {});
  15547. } else {
  15548. let params = [
  15549. {
  15550. uid: this.userid,
  15551. cid: this.id,
  15552. stage: this.courseType,
  15553. task: this.taskCount,
  15554. content: JSON.stringify(this.studyJuri),
  15555. },
  15556. ];
  15557. this.ajax
  15558. .post(this.$store.state.api + "addWorks", params)
  15559. .then((res) => {
  15560. this.$message({
  15561. message: "提交成功",
  15562. type: "success",
  15563. });
  15564. this.isNoHomeWork = true;
  15565. this.dialogVisible = false;
  15566. })
  15567. .catch((err) => {
  15568. this.$message.error("提交失败");
  15569. console.error(err);
  15570. });
  15571. }
  15572. },
  15573. selectCount() {
  15574. let params = {
  15575. cid: this.id,
  15576. chid: this.courseType,
  15577. uid: this.userid,
  15578. };
  15579. this.ajax
  15580. .get(this.$store.state.api + "selectToolsCount", params)
  15581. .then((res) => {
  15582. for (var i = 0; i < res.data[0].length; i++) {
  15583. if (res.data[0][i].tools == 1) {
  15584. this.wbCount = res.data[0][i].count;
  15585. } else if (res.data[0][i].tools == 2) {
  15586. this.wordCount = res.data[0][i].count;
  15587. } else if (res.data[0][i].tools == 3) {
  15588. this.mindCount = res.data[0][i].count;
  15589. } else if (res.data[0][i].tools == 4) {
  15590. this.askCount = res.data[0][i].count;
  15591. } else if (res.data[0][i].tools == 6) {
  15592. this.noteCount = res.data[0][i].count;
  15593. } else if (res.data[0][i].tools == 7) {
  15594. this.mindNetWorkCount = res.data[0][i].count;
  15595. } else if (res.data[0][i].tools == 8) {
  15596. this.libraryCount = res.data[0][i].count;
  15597. } else if (res.data[0][i].tools == 16) {
  15598. this.workCount = res.data[0][i].count;
  15599. } else if (res.data[0][i].tools == 10) {
  15600. this.timeCount = res.data[0][i].count;
  15601. } else if (res.data[0][i].tools == 15) {
  15602. this.answerCount = res.data[0][i].count;
  15603. } else if (res.data[0][i].tools == 18) {
  15604. this.trainCount = res.data[0][i].count;
  15605. }
  15606. }
  15607. })
  15608. .catch((err) => {
  15609. console.error(err);
  15610. });
  15611. },
  15612. openTools(t, i, index, c, sName) {
  15613. var z = JSON.parse(c);
  15614. this.noteName = sName;
  15615. if (t == 4) {
  15616. this.radio = [];
  15617. this.isAnswer = false;
  15618. let b = z[0].anwer;
  15619. this.radio = b;
  15620. this.askJson = z[0].askJson;
  15621. this.isAnswer = true;
  15622. this.dialogVisible5 = true;
  15623. } else if (t == 45) {
  15624. this.radio = [];
  15625. this.isAnswer = false;
  15626. let b = z[0].anwer;
  15627. this.radio = b;
  15628. this.testJson = z[0].testJson;
  15629. this.isAnswer = true;
  15630. this.dialogVisibleChoice = true;
  15631. }
  15632. // else if (t == 15) {
  15633. // this.answerQ = "";
  15634. // this.questionAnswer = "";
  15635. // this.answerQ = z[0].answerTitle;
  15636. // this.questionAnswer = z[0].answer;
  15637. // this.answerDialogVisible = true;
  15638. // }
  15639. },
  15640. fastText(p, t) {
  15641. if (t == 1) {
  15642. this.commentText += p;
  15643. } else {
  15644. this.eScore.eBzText += p;
  15645. }
  15646. },
  15647. addTools(t, i, index) {
  15648. var a = 0;
  15649. // this.taskCount = index;
  15650. this.toolindex = i;
  15651. if (t == 1) {
  15652. if (this.wbCount > 0) {
  15653. this.updateCount(this.wbCount, t);
  15654. } else {
  15655. this.wbCount++;
  15656. a = this.wbCount;
  15657. this.toolsCount(a, t);
  15658. }
  15659. window.parent.postMessage(
  15660. {
  15661. tools: "1",
  15662. cid: this.id,
  15663. stage: this.courseType,
  15664. task: this.taskCount,
  15665. tool: i,
  15666. },
  15667. "*"
  15668. );
  15669. } else if (t == 2) {
  15670. if (this.wordCount > 0) {
  15671. this.updateCount(this.wordCount, t);
  15672. } else {
  15673. this.wordCount++;
  15674. a = this.wordCount;
  15675. this.toolsCount(a, t);
  15676. }
  15677. window.parent.postMessage({ tools: "2" }, "*");
  15678. } else if (t == 3) {
  15679. if (this.mindCount > 0) {
  15680. this.updateCount(this.mindCount, t);
  15681. } else {
  15682. this.mindCount++;
  15683. a = this.mindCount;
  15684. this.toolsCount(a, t);
  15685. }
  15686. window.parent.postMessage(
  15687. {
  15688. tools: "3",
  15689. cid: this.id,
  15690. stage: this.courseType,
  15691. task: this.taskCount,
  15692. tool: i,
  15693. },
  15694. "*"
  15695. );
  15696. } else if (t == 4) {
  15697. this.radio = [];
  15698. this.noteName = "";
  15699. this.isAnswer = false;
  15700. if (this.askCount > 0) {
  15701. this.updateCount(this.askCount, t);
  15702. } else {
  15703. this.askCount++;
  15704. a = this.askCount;
  15705. this.toolsCount(a, t);
  15706. }
  15707. if (!this.dialogVisible2) {
  15708. this.askJson.askJson =
  15709. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15710. index
  15711. ].toolChoose[i].askJson;
  15712. this.askJson.askTitle =
  15713. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15714. index
  15715. ].toolChoose[i].askTitle;
  15716. this.askJson.askCount =
  15717. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15718. index
  15719. ].toolChoose[i].askCount;
  15720. } else {
  15721. this.askJson.askJson = this.chapTools.askJson.askJson;
  15722. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  15723. this.askJson.askCount = this.chapTools.askJson.askCount;
  15724. }
  15725. for (var k = 0; k < this.askJson.askJson.length; k++) {
  15726. if (this.askJson.askJson[k].type == "2") {
  15727. this.radio.push([]);
  15728. } else {
  15729. this.radio.push("");
  15730. }
  15731. }
  15732. this.dialogVisible5 = true;
  15733. // window.parent.postMessage({ tools: "4" }, "*");
  15734. } else if (t == 45) {
  15735. this.noteName = "";
  15736. this.radio = [];
  15737. this.isAnswer = false;
  15738. if (this.askCount > 0) {
  15739. this.updateCount(this.askCount, t);
  15740. } else {
  15741. this.askCount++;
  15742. a = this.askCount;
  15743. this.toolsCount(a, t);
  15744. }
  15745. this.testJson =
  15746. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15747. index
  15748. ].toolChoose[i].testJson;
  15749. for (var k = 0; k < this.testJson.testJson.length; k++) {
  15750. if (this.testJson.testJson[k].type == "2") {
  15751. this.radio.push([]);
  15752. } else {
  15753. this.radio.push("");
  15754. }
  15755. }
  15756. this.dialogVisibleChoice = true;
  15757. // window.parent.postMessage({ tools: "4" }, "*");
  15758. } else if (t == 5) {
  15759. if (this.scoreCount > 0) {
  15760. this.updateCount(this.scoreCount, t);
  15761. } else {
  15762. this.scoreCount++;
  15763. a = this.scoreCount;
  15764. this.toolsCount(a, t);
  15765. }
  15766. this.dialogVisible4 = true;
  15767. // window.parent.postMessage({ tools: "5" }, "*");
  15768. } else if (t == 6) {
  15769. if (this.noteCount > 0) {
  15770. this.updateCount(this.noteCount, t);
  15771. } else {
  15772. this.noteCount++;
  15773. a = this.noteCount;
  15774. this.toolsCount(a, t);
  15775. }
  15776. window.parent.postMessage(
  15777. {
  15778. tools: "6",
  15779. cid: this.id,
  15780. stage: this.courseType,
  15781. task: this.taskCount,
  15782. tool: i,
  15783. },
  15784. "*"
  15785. );
  15786. } else if (t == 7) {
  15787. if (this.mindNetWorkCount > 0) {
  15788. this.updateCount(this.mindNetWorkCount, t);
  15789. } else {
  15790. this.mindNetWorkCount++;
  15791. a = this.mindNetWorkCount;
  15792. this.toolsCount(a, t);
  15793. }
  15794. window.parent.postMessage(
  15795. {
  15796. tools: "7",
  15797. cid: this.id,
  15798. stage: this.courseType,
  15799. task: this.taskCount,
  15800. tool: i,
  15801. },
  15802. "*"
  15803. );
  15804. } else if (t == 16) {
  15805. if (this.workCount > 0) {
  15806. this.updateCount(this.workCount, t);
  15807. } else {
  15808. this.workCount++;
  15809. a = this.workCount;
  15810. this.toolsCount(a, t);
  15811. }
  15812. this.dialogVisible = true;
  15813. } else if (t == 50) {
  15814. if (this.tType == 2) {
  15815. this.$message.error("不支持学生使用");
  15816. return;
  15817. }
  15818. this.plworkFile = [];
  15819. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  15820. if (!this.uploadCid) {
  15821. this.$message.error(
  15822. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  15823. );
  15824. return;
  15825. }
  15826. // this.uploadCid =
  15827. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15828. // index
  15829. // ].toolChoose[i].uploadJson[0];
  15830. this.selectUploadStudent(2);
  15831. } else if (t == 8) {
  15832. if (this.libraryCount > 0) {
  15833. this.updateCount(this.libraryCount, t);
  15834. } else {
  15835. this.libraryCount++;
  15836. a = this.libraryCount;
  15837. this.toolsCount(a, t);
  15838. }
  15839. window.parent.postMessage({ tools: "8" }, "*");
  15840. } else if (t == 17) {
  15841. if (this.libraryCount > 0) {
  15842. this.updateCount(this.libraryCount, t);
  15843. } else {
  15844. this.libraryCount++;
  15845. a = this.libraryCount;
  15846. this.toolsCount(a, t);
  15847. }
  15848. window.parent.postMessage({ tools: "17" }, "*");
  15849. } else if (t == 18) {
  15850. if (this.trainCount > 0) {
  15851. this.updateCount(this.trainCount, t);
  15852. } else {
  15853. this.trainCount++;
  15854. a = this.trainCount;
  15855. this.toolsCount(a, t);
  15856. }
  15857. window.parent.postMessage({ tools: "18" }, "*");
  15858. } else if (t == 10) {
  15859. if (this.timeCount > 0) {
  15860. this.updateCount(this.timeCount, t);
  15861. } else {
  15862. this.timeCount++;
  15863. a = this.timeCount;
  15864. this.toolsCount(a, t);
  15865. }
  15866. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  15867. .taskJson[index].toolChoose[i].preTime
  15868. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  15869. .toolChoose[i].preTime
  15870. : "";
  15871. this.timeDialogVisible = true;
  15872. } else if (t == 15) {
  15873. this.answerQ = "";
  15874. this.questionAnswer = "";
  15875. if (this.answerCount > 0) {
  15876. this.updateCount(this.answerCount, t);
  15877. } else {
  15878. this.answerCount++;
  15879. a = this.answerCount;
  15880. this.toolsCount(a, t);
  15881. }
  15882. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  15883. .taskJson[index].toolChoose[i].answerQ
  15884. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  15885. .toolChoose[i].answerQ
  15886. : "";
  15887. this.answerDialogVisible = true;
  15888. } else if (t == 21) {
  15889. window.parent.postMessage({ tools: "21" }, "*");
  15890. } else if (t == 22) {
  15891. window.parent.postMessage({ tools: "22" }, "*");
  15892. } else if (t == 23) {
  15893. window.parent.postMessage({ tools: "23" }, "*");
  15894. } else if (t == 24) {
  15895. window.parent.postMessage({ tools: "24" }, "*");
  15896. } else if (t == 25) {
  15897. window.parent.postMessage({ tools: "25" }, "*");
  15898. } else if (t == 31) {
  15899. window.parent.postMessage({ tools: "31" }, "*");
  15900. } else if (t == 28) {
  15901. window.parent.postMessage({ tools: "28" }, "*");
  15902. } else if (t == 37) {
  15903. window.parent.postMessage({ tools: "37" }, "*");
  15904. } else if (t == 38) {
  15905. window.parent.postMessage({ tools: "38" }, "*");
  15906. } else if (t == 39) {
  15907. window.parent.postMessage({ tools: "39" }, "*");
  15908. } else if (t == 32) {
  15909. window.parent.postMessage({ tools: "32" }, "*");
  15910. } else if (t == 66) {
  15911. window.parent.postMessage({ tools: "66" }, "*");
  15912. } else if (t == 67) {
  15913. window.parent.postMessage({ tools: "67" }, "*");
  15914. } else if (t == 68) {
  15915. window.parent.postMessage({ tools: "68" }, "*");
  15916. } else if (t == 57) {
  15917. // window.parent.postMessage({ tools: "57" }, "*");
  15918. window.parent.postMessage(
  15919. {
  15920. tools: "57u",
  15921. cid: this.id,
  15922. stage: this.courseType,
  15923. task: this.taskCount,
  15924. tool: i,
  15925. },
  15926. "*"
  15927. );
  15928. } else if (t == 58) {
  15929. window.parent.postMessage({ tools: "58" }, "*");
  15930. } else if (t == 59) {
  15931. window.parent.postMessage({ tools: "59" }, "*");
  15932. } else if (t == 60) {
  15933. window.parent.postMessage({ tools: "60" }, "*");
  15934. } else if (t == 61) {
  15935. window.parent.postMessage({ tools: "61" }, "*");
  15936. } else if (t == 63) {
  15937. window.parent.postMessage({ tools: "63" }, "*");
  15938. } else if (t == 65) {
  15939. if (this.tType == 2) {
  15940. this.$message.error("不支持学生使用");
  15941. return;
  15942. }
  15943. this.uploadCid = this.tcid;
  15944. if (!this.uploadCid) {
  15945. this.$message.error(
  15946. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  15947. );
  15948. return;
  15949. }
  15950. this.selectPickStudent();
  15951. } else if (t == 26) {
  15952. window.parent.postMessage(
  15953. {
  15954. tools: "26",
  15955. cid: this.id,
  15956. stage: this.courseType,
  15957. task: this.taskCount,
  15958. tool: i,
  15959. },
  15960. "*"
  15961. );
  15962. } else if (t == 40) {
  15963. if (this.evalCount > 0) {
  15964. this.updateCount(this.evalCount, t);
  15965. } else {
  15966. this.evalCount++;
  15967. a = this.evalCount;
  15968. this.toolsCount(a, t);
  15969. }
  15970. this.eScore = { eBzText: "", eStar: [] };
  15971. if (this.worksStudent[i].length) {
  15972. for (var k = 0; k < this.worksStudent[i].length; k++) {
  15973. if (this.userid == this.worksStudent[i][k].userid) {
  15974. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  15975. this.rateJson =
  15976. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15977. index
  15978. ].toolChoose[i].rateJson;
  15979. break;
  15980. } else {
  15981. this.rateJson =
  15982. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15983. index
  15984. ].toolChoose[i].rateJson;
  15985. }
  15986. }
  15987. } else {
  15988. this.rateJson =
  15989. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15990. index
  15991. ].toolChoose[i].rateJson;
  15992. }
  15993. this.isStar = false;
  15994. this.studentEvalDialogVisible = true;
  15995. } else if (t == 41) {
  15996. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15997. .taskJson[index].toolChoose[i].selectJson
  15998. ? JSON.parse(
  15999. JSON.stringify(
  16000. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16001. index
  16002. ].toolChoose[i].selectJson
  16003. )
  16004. )
  16005. : { url: "", select: [], answer: [] };
  16006. if (this.worksStudent[i].length) {
  16007. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16008. if (this.userid == this.worksStudent[i][k].userid) {
  16009. var a = this.worksStudent[i][k].works.split(",");
  16010. for (var ki = 0; ki < a.length; ki++) {
  16011. a[ki] = parseInt(a[ki]);
  16012. }
  16013. this.selectAnswer = {
  16014. answer: a,
  16015. stu: this.worksStudent[i][k].sName,
  16016. };
  16017. break;
  16018. } else {
  16019. this.selectAnswer = { answer: [], stu: "" };
  16020. }
  16021. }
  16022. } else {
  16023. this.selectAnswer = { answer: [], stu: "" };
  16024. }
  16025. this.isSelect = false;
  16026. this.dialogVisibleSelect = true;
  16027. } else if (t == 44) {
  16028. window.parent.postMessage({ tools: "44" }, "*");
  16029. } else if (t == 47) {
  16030. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  16031. .taskJson[index].toolChoose[i].sentenceList
  16032. ? JSON.parse(
  16033. JSON.stringify(
  16034. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16035. index
  16036. ].toolChoose[i].sentenceList
  16037. )
  16038. )
  16039. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  16040. for (var q = 0; q < this.sentenceList.length; q++) {
  16041. this.sentenceList[q].chooseSenList = [];
  16042. this.sentenceList[q].addChangeSen = [];
  16043. this.sentenceList[q].addChangeSen = JSON.parse(
  16044. JSON.stringify(this.sentenceList[q].addSentence)
  16045. );
  16046. this.sentenceList[q].chooseSenList.length =
  16047. this.sentenceList[q].rightAnswer.length;
  16048. }
  16049. this.dialogVisibleSentence = true;
  16050. } else if (t == 48) {
  16051. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16052. .taskJson[index].toolChoose[i].tableJson
  16053. ? JSON.parse(
  16054. JSON.stringify(
  16055. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16056. index
  16057. ].toolChoose[i].tableJson
  16058. )
  16059. )
  16060. : { text: "" };
  16061. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  16062. if (this.worksStudent[i].length) {
  16063. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16064. if (this.userid == this.worksStudent[i][k].userid) {
  16065. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  16066. break;
  16067. }
  16068. }
  16069. }
  16070. this.dialogVisibleTable = true;
  16071. } else if (t == 52) {
  16072. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16073. .taskJson[index].toolChoose[i].wordJson
  16074. ? JSON.parse(
  16075. JSON.stringify(
  16076. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16077. index
  16078. ].toolChoose[i].wordJson
  16079. )
  16080. )
  16081. : { text: "" };
  16082. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  16083. if (this.worksStudent[i].length) {
  16084. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16085. if (this.userid == this.worksStudent[i][k].userid) {
  16086. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  16087. break;
  16088. }
  16089. }
  16090. }
  16091. this.dialogVisibleWord = true;
  16092. } else if (t == 49) {
  16093. this.groupJson =
  16094. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16095. index
  16096. ].toolChoose[i].groupJson;
  16097. this.islock = this.groupJson.islock == 1 ? true : false;
  16098. this.dialogVisibleGroup = true;
  16099. } else if (t == 62) {
  16100. this.videoJson =
  16101. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16102. index
  16103. ].toolChoose[i].videoJson;
  16104. this.dialogVisibleVideo = true;
  16105. }
  16106. },
  16107. teacherWorkSubmit(t, i, index, s) {
  16108. this.sStudent = s;
  16109. this.toolindex = i;
  16110. this.sTool = t;
  16111. if (this.tType !== "1" && this.tType !== "4") {
  16112. return;
  16113. }
  16114. if (t == 16 || t == 32 || t == 50) {
  16115. this.dialogVisibleWorks = true;
  16116. } else if (t == 15) {
  16117. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  16118. .taskJson[index].toolChoose[i].answerQ
  16119. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16120. .toolChoose[i].answerQ
  16121. : "";
  16122. this.questionAnswer = "";
  16123. this.answerDialogVisibleTeacher = true; //问答
  16124. } else if (t == 52) {
  16125. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16126. .taskJson[index].toolChoose[i].wordJson
  16127. ? JSON.parse(
  16128. JSON.stringify(
  16129. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16130. index
  16131. ].toolChoose[i].wordJson
  16132. )
  16133. )
  16134. : { text: "" };
  16135. if (this.worksStudent[i].length) {
  16136. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16137. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16138. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  16139. break;
  16140. }
  16141. }
  16142. }
  16143. this.dialogVisibleWordTeacher = true; //文档
  16144. } else if (t == 4) {
  16145. this.radio = [];
  16146. this.noteName = "";
  16147. this.isAnswer = false;
  16148. if (this.askCount > 0) {
  16149. this.updateCount(this.askCount, t);
  16150. } else {
  16151. this.askCount++;
  16152. a = this.askCount;
  16153. this.toolsCount(a, t);
  16154. }
  16155. if (!this.dialogVisible2) {
  16156. this.askJson.askJson =
  16157. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16158. index
  16159. ].toolChoose[i].askJson;
  16160. this.askJson.askTitle =
  16161. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16162. index
  16163. ].toolChoose[i].askTitle;
  16164. this.askJson.askCount =
  16165. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16166. index
  16167. ].toolChoose[i].askCount;
  16168. } else {
  16169. this.askJson.askJson = this.chapTools.askJson.askJson;
  16170. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  16171. this.askJson.askCount = this.chapTools.askJson.askCount;
  16172. }
  16173. for (var k = 0; k < this.askJson.askJson.length; k++) {
  16174. if (this.askJson.askJson[k].type == "2") {
  16175. this.radio.push([]);
  16176. } else {
  16177. this.radio.push("");
  16178. }
  16179. }
  16180. this.dialogVisible5Teacher = true;
  16181. } else if (t == 45) {
  16182. this.noteName = "";
  16183. this.radio = [];
  16184. this.isAnswer = false;
  16185. if (this.askCount > 0) {
  16186. this.updateCount(this.askCount, t);
  16187. } else {
  16188. this.askCount++;
  16189. a = this.askCount;
  16190. this.toolsCount(a, t);
  16191. }
  16192. this.testJson =
  16193. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16194. index
  16195. ].toolChoose[i].testJson;
  16196. for (var k = 0; k < this.testJson.testJson.length; k++) {
  16197. if (this.testJson.testJson[k].type == "2") {
  16198. this.radio.push([]);
  16199. } else {
  16200. this.radio.push("");
  16201. }
  16202. }
  16203. this.dialogVisibleChoiceTeacher = true;
  16204. } else if (t == 41) {
  16205. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16206. .taskJson[index].toolChoose[i].selectJson
  16207. ? JSON.parse(
  16208. JSON.stringify(
  16209. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16210. index
  16211. ].toolChoose[i].selectJson
  16212. )
  16213. )
  16214. : { url: "", select: [], answer: [] };
  16215. if (this.worksStudent[i].length) {
  16216. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16217. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16218. var a = this.worksStudent[i][k].works.split(",");
  16219. for (var ki = 0; ki < a.length; ki++) {
  16220. a[ki] = parseInt(a[ki]);
  16221. }
  16222. this.selectAnswer = {
  16223. answer: a,
  16224. stu: this.worksStudent[i][k].sName,
  16225. };
  16226. break;
  16227. } else {
  16228. this.selectAnswer = { answer: [], stu: "" };
  16229. }
  16230. }
  16231. } else {
  16232. this.selectAnswer = { answer: [], stu: "" };
  16233. }
  16234. this.isSelect = false;
  16235. this.dialogVisibleSelectTeacher = true;
  16236. } else if (t == 47) {
  16237. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  16238. .taskJson[index].toolChoose[i].sentenceList
  16239. ? JSON.parse(
  16240. JSON.stringify(
  16241. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16242. index
  16243. ].toolChoose[i].sentenceList
  16244. )
  16245. )
  16246. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  16247. for (var q = 0; q < this.sentenceList.length; q++) {
  16248. this.sentenceList[q].chooseSenList = [];
  16249. this.sentenceList[q].addChangeSen = [];
  16250. this.sentenceList[q].addChangeSen = JSON.parse(
  16251. JSON.stringify(this.sentenceList[q].addSentence)
  16252. );
  16253. this.sentenceList[q].chooseSenList.length =
  16254. this.sentenceList[q].rightAnswer.length;
  16255. }
  16256. this.dialogVisibleSentenceTeacher = true;
  16257. } else if (t == 48) {
  16258. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16259. .taskJson[index].toolChoose[i].tableJson
  16260. ? JSON.parse(
  16261. JSON.stringify(
  16262. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16263. index
  16264. ].toolChoose[i].tableJson
  16265. )
  16266. )
  16267. : { text: "" };
  16268. if (this.worksStudent[i].length) {
  16269. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16270. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16271. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  16272. break;
  16273. }
  16274. }
  16275. }
  16276. this.dialogVisibleTableTeacher = true;
  16277. } else if (t == 40) {
  16278. if (this.evalCount > 0) {
  16279. this.updateCount(this.evalCount, t);
  16280. } else {
  16281. this.evalCount++;
  16282. a = this.evalCount;
  16283. this.toolsCount(a, t);
  16284. }
  16285. this.eScore = { eBzText: "", eStar: [] };
  16286. if (this.worksStudent[i].length) {
  16287. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16288. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16289. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  16290. this.rateJson =
  16291. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16292. index
  16293. ].toolChoose[i].rateJson;
  16294. break;
  16295. } else {
  16296. this.rateJson =
  16297. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16298. index
  16299. ].toolChoose[i].rateJson;
  16300. }
  16301. }
  16302. } else {
  16303. this.rateJson =
  16304. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16305. index
  16306. ].toolChoose[i].rateJson;
  16307. }
  16308. this.isStar = false;
  16309. this.studentEvalDialogVisibleTeacher = true;
  16310. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  16311. window.parent.postMessage(
  16312. {
  16313. tools: t + "teacher",
  16314. cid: this.id,
  16315. stage: this.courseType,
  16316. task: this.taskCount,
  16317. tool: i,
  16318. student: this.sStudent,
  16319. },
  16320. "*"
  16321. );
  16322. }
  16323. },
  16324. openCocoPi(tool, i, uid, uname) {
  16325. let student = {
  16326. userid: uid,
  16327. student: uname,
  16328. };
  16329. if (tool == 57) {
  16330. window.parent.postMessage(
  16331. {
  16332. tools: tool + "teacher",
  16333. cid: this.id,
  16334. stage: this.courseType,
  16335. task: this.taskCount,
  16336. tool: i,
  16337. student: student,
  16338. },
  16339. "*"
  16340. );
  16341. }
  16342. },
  16343. setRightAnswer(s, i, j) {
  16344. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  16345. if (
  16346. this.sentenceList[i].chooseSenList[q] == undefined ||
  16347. this.sentenceList[i].chooseSenList[q] == ""
  16348. ) {
  16349. this.sentenceList[i].chooseSenList[q] = s;
  16350. this.sentenceList[i].addChangeSen[j] = "";
  16351. break;
  16352. }
  16353. }
  16354. this.$forceUpdate();
  16355. },
  16356. returnCard(r, i, j) {
  16357. var a = this.sentenceList[i].addSentence.indexOf(r);
  16358. this.sentenceList[i].chooseSenList[j] = "";
  16359. this.sentenceList[i].addChangeSen[a] = r;
  16360. this.$forceUpdate();
  16361. },
  16362. // addSentenceTool() {
  16363. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16364. // this.taskCount
  16365. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  16366. // this.sentenceList = [
  16367. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  16368. // ];
  16369. // this.dialogVisibleSentence = false;
  16370. // },
  16371. toolsCount(a, t) {
  16372. let params = {
  16373. cid: this.id,
  16374. chid: this.courseType,
  16375. uid: this.userid,
  16376. tid: t,
  16377. count: a,
  16378. };
  16379. this.ajax
  16380. .get(this.$store.state.api + "insertToolsCount", params)
  16381. .then((res) => {
  16382. this.selectCount();
  16383. })
  16384. .catch((err) => {
  16385. console.error(err);
  16386. });
  16387. },
  16388. updateCount(c, t) {
  16389. c++;
  16390. let params = {
  16391. cid: this.id,
  16392. chid: this.courseType,
  16393. uid: this.userid,
  16394. tid: t,
  16395. count: c,
  16396. };
  16397. this.ajax
  16398. .get(this.$store.state.api + "updateToolsCount", params)
  16399. .then((res) => {
  16400. this.selectCount();
  16401. })
  16402. .catch((err) => {
  16403. console.error(err);
  16404. });
  16405. },
  16406. checkEva() {
  16407. if (this.evalua != "") {
  16408. for (var i = 0; i < this.evaJuri.length; i++) {
  16409. if (this.evalua == this.evaJuri[i].id) {
  16410. this.eTitle = this.evaJuri[i].title;
  16411. this.eJson = JSON.parse(this.evaJuri[i].content);
  16412. }
  16413. }
  16414. this.$forceUpdate();
  16415. setTimeout(() => {
  16416. this.setMindData();
  16417. }, 0);
  16418. }
  16419. },
  16420. selectEva() {
  16421. let params = {
  16422. oid: this.oid,
  16423. };
  16424. this.ajax
  16425. .get(this.$store.state.api + "selectAllEvaluation", params)
  16426. .then((res) => {
  16427. this.evaJuri = res.data[0];
  16428. })
  16429. .catch((err) => {
  16430. console.error(err);
  16431. });
  16432. },
  16433. setMindData() {
  16434. this.data.data = [];
  16435. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  16436. let _eJson = Object.keys(this.eJson);
  16437. let _e = this.eJson;
  16438. for (let i = 0; i < _eJson.length; i++) {
  16439. let element = _e[_eJson[i]];
  16440. this.data.data.push({
  16441. id: element.id,
  16442. parentid: "root",
  16443. topic: element.name,
  16444. });
  16445. let _eJsonc = Object.keys(element.child);
  16446. let _e2 = element.child;
  16447. for (let j = 0; j < _eJsonc.length; j++) {
  16448. let _ec = _e2[_eJsonc[j]];
  16449. this.data.data.push({
  16450. id: _ec.id,
  16451. parentid: element.id,
  16452. topic: _ec.name,
  16453. });
  16454. let _eJsonz = Object.keys(_ec.child);
  16455. let _e3 = _ec.child;
  16456. for (let z = 0; z < _eJsonz.length; z++) {
  16457. let _ez = _e3[_eJsonz[z]];
  16458. this.data.data.push({
  16459. id: _ez.id,
  16460. parentid: _ec.id,
  16461. topic: _ez.name,
  16462. });
  16463. }
  16464. }
  16465. }
  16466. this.$forceUpdate();
  16467. },
  16468. checkFileFull(type, url) {
  16469. this.fullDialogVisible = true;
  16470. this.fulltype = type;
  16471. this.fullUrl = url;
  16472. },
  16473. checkFileFull1(t, f) {
  16474. this.fullDialogVisible = true;
  16475. if (t == 6) {
  16476. this.fulltype = 1;
  16477. this.fullUrl = JSON.parse(JSON.stringify(f));
  16478. } else if (t == 8) {
  16479. this.fulltype = 2;
  16480. this.fullUrl = f.url;
  16481. } else if (
  16482. t == 3 &&
  16483. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  16484. "PDF"
  16485. ) {
  16486. this.fulltype = 3;
  16487. this.fullUrl = f.url;
  16488. } else if (t == 3) {
  16489. this.fulltype = 2;
  16490. this.fullUrl =
  16491. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  16492. }
  16493. },
  16494. openSname(n, id, i, uid) {
  16495. this.snameWid = id;
  16496. this.worksSName = n;
  16497. this.worksSid = uid == n ? "" : uid;
  16498. this.toolindex = i;
  16499. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  16500. if (!this.uploadCid) {
  16501. this.$message.error(
  16502. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  16503. );
  16504. return;
  16505. }
  16506. this.selectUploadStudent(1);
  16507. },
  16508. updateName() {
  16509. let params = {
  16510. n: this.worksSName,
  16511. cid: this.snameWid,
  16512. };
  16513. this.ajax
  16514. .get(this.$store.state.api + "updateCourseWorksName", params)
  16515. .then((res) => {
  16516. this.$message({
  16517. message: "修改成功",
  16518. type: "success",
  16519. });
  16520. this.dialogVisibleSname = false;
  16521. this.getCourseDetail(2);
  16522. this.snameWid = "";
  16523. this.worksSName = "";
  16524. })
  16525. .catch((err) => {
  16526. console.error(err);
  16527. });
  16528. },
  16529. downloadFile2(f) {
  16530. // const loading = this.$loading.service({
  16531. // background: "rgba(255, 255, 255, 0.7)",
  16532. // target: document.body,
  16533. // text: "文件加载中...",
  16534. // });
  16535. // let url2 = f.url;
  16536. // let _url2 = "";
  16537. // if (
  16538. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  16539. // ) {
  16540. // _url2 = url2.split(
  16541. // "https://view.officeapps.live.com/op/view.aspx?src="
  16542. // )[1];
  16543. // } else {
  16544. // _url2 = url2;
  16545. // }
  16546. // let params = {
  16547. // url: _url2,
  16548. // name: f.name,
  16549. // };
  16550. // this.ajax
  16551. // .get(this.$store.state.api + "download", params)
  16552. // .then((res) => {
  16553. // loading.close();
  16554. // let content = res.data.data.data;
  16555. // let ab = new ArrayBuffer(content.length);
  16556. // let view = new Uint8Array(ab);
  16557. // for (var i = 0; i < content.length; ++i) {
  16558. // view[i] = content[i];
  16559. // }
  16560. // let elink = document.createElement("a");
  16561. // elink.download = f.name;
  16562. // elink.style.display = "none";
  16563. // let blob = new Blob([ab], {
  16564. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  16565. // });
  16566. // elink.href = URL.createObjectURL(blob);
  16567. // document.body.appendChild(elink);
  16568. // elink.click();
  16569. // document.body.removeChild(elink);
  16570. // })
  16571. // .catch((err) => {
  16572. // loading.close();
  16573. // console.error(err);
  16574. // });
  16575. let url = f.url;
  16576. let _this = this;
  16577. let _url = "";
  16578. if (
  16579. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  16580. ) {
  16581. _url = url.split(
  16582. "https://view.officeapps.live.com/op/view.aspx?src="
  16583. )[1];
  16584. } else {
  16585. _url = url;
  16586. }
  16587. const loading = _this.$loading.service({
  16588. background: "rgba(255, 255, 255, 0.7)",
  16589. target: document.body,
  16590. text: "文件加载中...",
  16591. });
  16592. let x = new XMLHttpRequest();
  16593. x.open("GET", _url, true);
  16594. x.responseType = "blob";
  16595. x.onload = function () {
  16596. loading.close();
  16597. let url = window.URL.createObjectURL(new Blob([x.response]));
  16598. let a = document.createElement("a");
  16599. a.name = f.name;
  16600. a.href = url;
  16601. a.download = f.name;
  16602. a.click();
  16603. };
  16604. x.send();
  16605. },
  16606. downloadFile(url) {
  16607. let _this = this;
  16608. let _url = "";
  16609. if (
  16610. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  16611. ) {
  16612. _url = url.split(
  16613. "https://view.officeapps.live.com/op/view.aspx?src="
  16614. )[1];
  16615. } else {
  16616. _url = url;
  16617. }
  16618. const x = new XMLHttpRequest();
  16619. x.open("GET", _url, true);
  16620. x.responseType = "blob";
  16621. const loading = _this.$loading.service({
  16622. background: "rgba(255, 255, 255, 0.7)",
  16623. target: document.body,
  16624. text: "文件加载中...",
  16625. });
  16626. // _this.$message.success("文件下载中...");
  16627. x.onload = function (e) {
  16628. loading.close();
  16629. let content = x.response;
  16630. let elink = document.createElement("a");
  16631. elink.download = decodeURI(
  16632. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  16633. );
  16634. elink.style.display = "none";
  16635. let blob = new Blob([content]);
  16636. elink.href = URL.createObjectURL(blob);
  16637. document.body.appendChild(elink);
  16638. elink.click();
  16639. document.body.removeChild(elink);
  16640. };
  16641. x.send();
  16642. },
  16643. openLine(url) {
  16644. window.open(url);
  16645. },
  16646. resize() {
  16647. if (document.getElementsByClassName("box_course").length) {
  16648. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  16649. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  16650. if (this.showType == 2 || this.showType == 3) {
  16651. document.getElementsByClassName("navBox")[0].style.height =
  16652. a - 40 + 46 + "px";
  16653. } else {
  16654. document.getElementsByClassName("navBox")[0].style.height =
  16655. a - 40 + "px";
  16656. }
  16657. }
  16658. this.Stbodywidth =
  16659. document.getElementsByClassName("student_body").length &&
  16660. document.getElementsByClassName("student_body")[0].offsetWidth;
  16661. },
  16662. closeDraw() {
  16663. this.bg = null;
  16664. this.drawShow = false;
  16665. },
  16666. showPicturePaint(url) {
  16667. let params = {
  16668. img: url,
  16669. };
  16670. this.ajax
  16671. .get(this.$store.state.api + "imgToBase64", params)
  16672. .then((res) => {
  16673. this.drawShow = true;
  16674. this.bg = res.data[0].img;
  16675. })
  16676. .catch((err) => {
  16677. console.error(err);
  16678. });
  16679. },
  16680. addImgDraw(base64) {
  16681. let file = { name: "批注图.png" };
  16682. let img = this.dataUrlToFile(base64, file);
  16683. this.beforeUpload1(img, 5);
  16684. },
  16685. addImgDrawImG(url) {
  16686. // console.log(url);
  16687. let params = [
  16688. {
  16689. wid: this.commentDetail.wid,
  16690. img: url,
  16691. },
  16692. ];
  16693. this.ajax
  16694. .post(this.$store.state.api + "updateCourseWorks", params)
  16695. .then((res) => {
  16696. this.$message({
  16697. message: "提交成功",
  16698. type: "success",
  16699. });
  16700. this.drawShow = false;
  16701. this.bg = "";
  16702. this.selectSWorks();
  16703. this.selectStudent();
  16704. })
  16705. .catch((err) => {
  16706. this.$message.error("提交失败");
  16707. console.error(err);
  16708. });
  16709. },
  16710. deletePicturePaint() {
  16711. this.$confirm("确定删除此批注吗?", "提示", {
  16712. confirmButtonText: "确定",
  16713. cancelButtonText: "取消",
  16714. type: "warning",
  16715. })
  16716. .then(() => {
  16717. let params = [
  16718. {
  16719. wid: this.commentDetail.wid,
  16720. img: "",
  16721. },
  16722. ];
  16723. this.ajax
  16724. .post(this.$store.state.api + "updateCourseWorks", params)
  16725. .then((res) => {
  16726. this.$message({
  16727. message: "删除成功",
  16728. type: "success",
  16729. });
  16730. this.selectSWorks();
  16731. this.selectStudent();
  16732. })
  16733. .catch((err) => {
  16734. this.$message.error("删除失败");
  16735. console.error(err);
  16736. });
  16737. })
  16738. .catch(() => {});
  16739. },
  16740. getAudioVideo(constraintsData) {
  16741. if (navigator.mediaDevices === undefined) {
  16742. navigator.mediaDevices = {};
  16743. }
  16744. if (navigator.mediaDevices.getUserMedia === undefined) {
  16745. navigator.mediaDevices.getUserMedia = function (constraints) {
  16746. // 首先,如果有getUserMedia的话,就获得它
  16747. var getUserMedia =
  16748. navigator.getUserMedia ||
  16749. navigator.webkitGetUserMedia ||
  16750. navigator.mozGetUserMedia ||
  16751. navigator.msGetUserMedia;
  16752. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  16753. if (!getUserMedia) {
  16754. return Promise.reject({ code: 404 });
  16755. }
  16756. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  16757. return new Promise(function (resolve, reject) {
  16758. getUserMedia.call(navigator, constraints, resolve, reject);
  16759. });
  16760. };
  16761. }
  16762. return navigator.mediaDevices.getUserMedia(constraintsData);
  16763. },
  16764. /**
  16765. * 开始录制
  16766. */
  16767. startRecording(callback) {
  16768. let _function = (screenStream) => {
  16769. this.addStreamStopListener(screenStream, () => {
  16770. console.log("流停止监听");
  16771. this.stopRecording();
  16772. this.$emit("streamStop", {});
  16773. // this.stopRecording();
  16774. });
  16775. var options = {
  16776. type: "video",
  16777. mimeType: "video/webm",
  16778. disableLogs: false,
  16779. getNativeBlob: false, // enable it for longer recordings
  16780. ignoreMutedMedia: false,
  16781. };
  16782. // this.video.srcObject = screenStream;
  16783. this.recorder = RecordRTC(screenStream, options);
  16784. this.recorder.startRecording();
  16785. this.recorder.screen = screenStream;
  16786. this.videoStart = true;
  16787. // callback(true);
  16788. };
  16789. this.getAudioVideo({ audio: true })
  16790. .then((res) => {
  16791. this.captureScreen(_function, true);
  16792. console.log("已点击允许,开启成功");
  16793. })
  16794. .catch((err) => {
  16795. // console.log('浏览器不支持,请更换浏览器')
  16796. // } else {
  16797. this.captureScreen(_function, false);
  16798. console.log("请检查是否存在麦克风");
  16799. });
  16800. },
  16801. /**
  16802. * 停止录制
  16803. */
  16804. stopRecording(callback) {
  16805. this.recorder.stopRecording(() => {
  16806. // this.video.src = this.video.srcObject = null;
  16807. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  16808. const url = URL.createObjectURL(this.recorder.getBlob());
  16809. const a = document.createElement("a"); //this.fileName+
  16810. let videoFile = new File(
  16811. [this.recorder.getBlob()],
  16812. this.courseDetail.title + "录屏.mp4",
  16813. {
  16814. type: "video/mp4",
  16815. }
  16816. );
  16817. let downloadUrl = URL.createObjectURL(videoFile);
  16818. document.body.appendChild(a);
  16819. a.style.display = "none";
  16820. a.href = url;
  16821. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  16822. a.click();
  16823. this.recorder.screen.stop();
  16824. this.recorder.destroy();
  16825. this.recorder = null;
  16826. this.videoStart = false;
  16827. // callback(false);
  16828. });
  16829. },
  16830. //初始化
  16831. captureScreen(callback, type) {
  16832. if (navigator.getDisplayMedia) {
  16833. //录制结束,文件下载
  16834. navigator
  16835. .getDisplayMedia({
  16836. video: true,
  16837. })
  16838. .then((screenStream) => {
  16839. if (type) {
  16840. navigator.mediaDevices
  16841. .getUserMedia({ audio: true })
  16842. .then((mic) => {
  16843. screenStream.addTrack(mic.getTracks()[0]);
  16844. callback(screenStream);
  16845. });
  16846. } else {
  16847. callback(screenStream);
  16848. }
  16849. })
  16850. .catch(function (error) {
  16851. console.log("error", error);
  16852. });
  16853. } else if (navigator.mediaDevices.getDisplayMedia) {
  16854. navigator.mediaDevices
  16855. .getDisplayMedia({
  16856. video: true,
  16857. })
  16858. .then((screenStream) => {
  16859. if (type) {
  16860. navigator.mediaDevices
  16861. .getUserMedia({ audio: true })
  16862. .then((mic) => {
  16863. screenStream.addTrack(mic.getTracks()[0]);
  16864. callback(screenStream);
  16865. });
  16866. } else {
  16867. callback(screenStream);
  16868. }
  16869. })
  16870. .catch(function (error) {
  16871. console.log("error", error);
  16872. });
  16873. } else {
  16874. var error = "getDisplayMedia API are not supported in this browser.";
  16875. console.log("error", error);
  16876. alert(error);
  16877. }
  16878. },
  16879. //流监听
  16880. addStreamStopListener(stream, callback) {
  16881. stream.addEventListener(
  16882. "ended",
  16883. function () {
  16884. callback();
  16885. callback = function () {};
  16886. },
  16887. false
  16888. );
  16889. stream.addEventListener(
  16890. "inactive",
  16891. function () {
  16892. callback();
  16893. callback = function () {};
  16894. },
  16895. false
  16896. );
  16897. stream.getTracks().forEach(function (track) {
  16898. track.addEventListener(
  16899. "ended",
  16900. function () {
  16901. callback();
  16902. callback = function () {};
  16903. },
  16904. false
  16905. );
  16906. track.addEventListener(
  16907. "inactive",
  16908. function () {
  16909. callback();
  16910. callback = function () {};
  16911. },
  16912. false
  16913. );
  16914. });
  16915. },
  16916. updateGroup() {
  16917. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  16918. this.dialogVisibleGroup2 = true;
  16919. },
  16920. numberPan() {
  16921. if (
  16922. /[^\d]/.test(this.groupJson.number) ||
  16923. this.groupJson.number < 2 ||
  16924. this.groupJson.number > 10
  16925. ) {
  16926. this.$message.error("请输入2-10的数字");
  16927. this.groupJson.number = "";
  16928. }
  16929. },
  16930. updateGroupJson() {
  16931. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  16932. if (
  16933. this.groupStudentUid[this.toolindex][i].length >
  16934. this.groupJson2.number
  16935. ) {
  16936. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  16937. return;
  16938. }
  16939. }
  16940. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  16941. this.islock = this.groupJson.islock == 1 ? true : false;
  16942. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16943. this.taskCount
  16944. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  16945. let params = [
  16946. {
  16947. cid: this.id,
  16948. chapters: JSON.stringify(this.chapInfoList),
  16949. uid: this.userid,
  16950. unitIndex: this.courseType,
  16951. },
  16952. ];
  16953. this.ajax
  16954. .post(this.$store.state.api + "updateWorkNew4", params)
  16955. .then((res) => {
  16956. this.$message.success("设置成功");
  16957. this.getCourseDetail(2);
  16958. this.dialogVisibleGroup2 = false;
  16959. this.groupJson2 = {};
  16960. this.$forceUpdate();
  16961. })
  16962. .catch((err) => {
  16963. this.$message.error("网络不佳");
  16964. console.error(err);
  16965. });
  16966. },
  16967. lockChair() {
  16968. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  16969. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  16970. this.updateGroupJson();
  16971. },
  16972. selectGroup(index) {
  16973. this.getCourseDetail(2, index);
  16974. },
  16975. joinGroup(index) {
  16976. if (this.groupJson.islock == 2) {
  16977. this.$message.error("位置已被锁定,无法加入");
  16978. return;
  16979. }
  16980. if (
  16981. this.groupStudent[this.toolindex][index].length >
  16982. this.groupJson.number ||
  16983. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  16984. ) {
  16985. this.$message.error("位置已满,无法加入");
  16986. return;
  16987. }
  16988. let params = [
  16989. {
  16990. cid: this.id,
  16991. stage: this.courseType,
  16992. task: this.taskCount,
  16993. tool: this.toolindex,
  16994. g: index,
  16995. uid: this.userid,
  16996. },
  16997. ];
  16998. this.ajax
  16999. .post(this.$store.state.api + "joinGroup", params)
  17000. .then((res) => {
  17001. this.$message.success("加入成功");
  17002. this.getCourseDetail(2);
  17003. })
  17004. .catch((err) => {
  17005. this.$message.error("网络不佳");
  17006. console.error(err);
  17007. });
  17008. },
  17009. exitGroup(id) {
  17010. if (this.groupJson.islock == 2) {
  17011. this.$message.error("位置已被锁定,无法退出");
  17012. return;
  17013. }
  17014. let params = [
  17015. {
  17016. gid: id,
  17017. },
  17018. ];
  17019. this.ajax
  17020. .post(this.$store.state.api + "exitGroup", params)
  17021. .then((res) => {
  17022. this.$message.success("退出成功");
  17023. this.getCourseDetail(2);
  17024. })
  17025. .catch((err) => {
  17026. this.$message.error("网络不佳");
  17027. console.error(err);
  17028. });
  17029. },
  17030. groupUpload(index, task, gindex) {
  17031. this.taskCount = task;
  17032. this.toolindex = index;
  17033. this.groupIndex = gindex;
  17034. this.dialogVisibleGroupWork = true;
  17035. },
  17036. updateGroupChair(user) {
  17037. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  17038. el.label = index;
  17039. return index != user.group;
  17040. });
  17041. this.updateGroupUser = user;
  17042. this.dialogVisibleUpdateGroup = true;
  17043. },
  17044. updateChair() {
  17045. if (
  17046. this.groupStudent[this.toolindex][this.checkChair].length >
  17047. this.groupJson.number ||
  17048. this.groupStudent[this.toolindex][this.checkChair].length ==
  17049. this.groupJson.number
  17050. ) {
  17051. this.$message.error("位置已满,无法加入");
  17052. return;
  17053. }
  17054. let params = [
  17055. {
  17056. cid: this.id,
  17057. stage: this.courseType,
  17058. task: this.taskCount,
  17059. tool: this.toolindex,
  17060. g: this.checkChair,
  17061. uid: this.updateGroupUser.userid,
  17062. },
  17063. ];
  17064. this.ajax
  17065. .post(this.$store.state.api + "joinGroup", params)
  17066. .then((res) => {
  17067. this.$message.success("修改成功");
  17068. this.updateGroupUser = {};
  17069. this.checkChair = "";
  17070. this.updateGroupArray = {};
  17071. this.dialogVisibleUpdateGroup = false;
  17072. this.getCourseDetail(2);
  17073. })
  17074. .catch((err) => {
  17075. this.$message.error("网络不佳");
  17076. console.error(err);
  17077. });
  17078. },
  17079. deleteGroupChair(gindex) {
  17080. this.checkDeleteGroup = [];
  17081. this.deleteGroupUser = JSON.parse(
  17082. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  17083. );
  17084. this.deleteGroupArray = this.groupJson.group[gindex];
  17085. this.groupIndex = gindex;
  17086. this.dialogVisibleDeleteGroup = true;
  17087. },
  17088. async deleteChair() {
  17089. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  17090. const gid =
  17091. this.groupStudent[this.toolindex][this.groupIndex][
  17092. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  17093. this.checkDeleteGroup[i]
  17094. )
  17095. ];
  17096. let params = [
  17097. {
  17098. gid: gid.id,
  17099. },
  17100. ];
  17101. var a = await this.deleteChairA(params);
  17102. if (i == this.checkDeleteGroup.length - 1) {
  17103. this.$message.success("退出成功");
  17104. this.dialogVisibleDeleteGroup = false;
  17105. this.deleteGroupUser = [];
  17106. this.deleteGroupArray = {};
  17107. this.groupIndex = "";
  17108. this.checkDeleteGroup = [];
  17109. this.getCourseDetail(2);
  17110. }
  17111. }
  17112. },
  17113. deleteChairA(params) {
  17114. return new Promise((resolve, reject) => {
  17115. this.ajax
  17116. .post(this.$store.state.api + "exitGroup", params)
  17117. .then((res) => {
  17118. resolve(1);
  17119. })
  17120. .catch((err) => {
  17121. this.$message.error("网络不佳");
  17122. console.error(err);
  17123. });
  17124. });
  17125. },
  17126. contract(i) {
  17127. if (this.isCloseList[i].isClose == 0) {
  17128. this.isCloseList[i].isClose = 1;
  17129. } else {
  17130. this.isCloseList[i].isClose = 0;
  17131. }
  17132. this.$forceUpdate();
  17133. },
  17134. openWordCloud(toolindex) {
  17135. let array = [];
  17136. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  17137. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  17138. array.push({ name: works });
  17139. }
  17140. if (this.isGroup) {
  17141. for (var i = 0; i < this.courseGroup.group.length; i++) {
  17142. let works = this.courseGroup.group[i].works[toolindex];
  17143. for (var j = 0; j < works.length; j++) {
  17144. let answer = JSON.parse(works[j].works)[0].answer;
  17145. array.push({ name: answer });
  17146. }
  17147. }
  17148. }
  17149. this.wordCloudData = array;
  17150. this.dialogVisibleWordCloud = true;
  17151. },
  17152. pickStudent(stu) {
  17153. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  17154. return;
  17155. }
  17156. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  17157. confirmButtonText: "确定",
  17158. cancelButtonText: "取消",
  17159. type: "warning",
  17160. })
  17161. .then(() => {
  17162. let params = [
  17163. {
  17164. uid: stu.userid,
  17165. cid: this.id,
  17166. stage: this.courseType,
  17167. task: this.taskCount,
  17168. tool: this.toolindex,
  17169. },
  17170. ];
  17171. this.ajax
  17172. .post(this.$store.state.api + "updateCoursePick", params)
  17173. .then((res) => {
  17174. this.$message.success("操作成功");
  17175. this.getPick();
  17176. })
  17177. .catch((err) => {
  17178. this.$message.error("网络不佳");
  17179. console.error(err);
  17180. });
  17181. })
  17182. .catch(() => {});
  17183. },
  17184. getPick() {
  17185. let params = {
  17186. cid: this.id,
  17187. };
  17188. this.ajax
  17189. .get(this.$store.state.api + "getPick", params)
  17190. .then((res) => {
  17191. let array = [];
  17192. for (var i = 0; i < res.data[0].length; i++) {
  17193. array.push(res.data[0][i].userid);
  17194. }
  17195. this.isPickStudent = array;
  17196. if (array.indexOf(this.userid) !== -1) {
  17197. this.$confirm("你被老师选到啦!", "提示", {
  17198. confirmButtonText: "确定",
  17199. showCancelButton: false,
  17200. closeOnClickModal: false,
  17201. type: "warning",
  17202. })
  17203. .then(() => {
  17204. let pa = [
  17205. {
  17206. uid: this.userid,
  17207. cid: this.id,
  17208. },
  17209. ];
  17210. this.ajax
  17211. .post(this.$store.state.api + "deletePick", pa)
  17212. .then((res) => {
  17213. this.getPick();
  17214. })
  17215. .catch((err) => {
  17216. this.$message.error("网络不佳");
  17217. console.error(err);
  17218. });
  17219. })
  17220. .catch(() => {});
  17221. }
  17222. })
  17223. .catch((err) => {
  17224. this.$message.error("网络不佳");
  17225. console.error(err);
  17226. });
  17227. },
  17228. },
  17229. directives: {
  17230. // 使用局部注册指令的方式
  17231. resize: {
  17232. // 指令的名称
  17233. bind(el, binding) {
  17234. // el为绑定的元素,binding为绑定给指令的对象
  17235. let width = "",
  17236. height = "";
  17237. function isReize() {
  17238. const style = document.defaultView.getComputedStyle(el);
  17239. if (width !== style.width || height !== style.height) {
  17240. binding.value(); // 关键
  17241. }
  17242. width = style.width;
  17243. height = style.height;
  17244. }
  17245. el.__vueSetInterval__ = setInterval(isReize, 300);
  17246. },
  17247. unbind(el) {
  17248. clearInterval(el.__vueSetInterval__);
  17249. },
  17250. },
  17251. },
  17252. beforeDestroy() {
  17253. window.onresize = null;
  17254. clearInterval(this.timer);
  17255. this.timer = null;
  17256. clearInterval(this.opertimer);
  17257. this.opertimer = null;
  17258. },
  17259. computed: {
  17260. contentConvent() {
  17261. return function (c) {
  17262. return c
  17263. ? c
  17264. .replaceAll(/\r\n/g, "<br/>")
  17265. .replaceAll(/\n/g, "<br/>")
  17266. .replaceAll(/\s/g, " &nbsp")
  17267. : "";
  17268. };
  17269. },
  17270. checkUpload() {
  17271. return function () {
  17272. var studentK = [];
  17273. if (this.plworkFile.length > 0) {
  17274. for (var z = 0; z < this.plworkFile.length; z++) {
  17275. studentK.push(this.plworkFile[z].username);
  17276. }
  17277. studentK = studentK.join(",");
  17278. }
  17279. var a = this.uploadStudentJuri.filter((el) => {
  17280. return studentK.indexOf(el.userid) == -1;
  17281. });
  17282. return a;
  17283. };
  17284. },
  17285. getSName() {
  17286. return function (name) {
  17287. var check = name;
  17288. this.uploadStudentJuri.forEach((el) => {
  17289. if (el.userid == check) {
  17290. check = el.name ? el.name : el.username;
  17291. }
  17292. });
  17293. return check;
  17294. };
  17295. },
  17296. getImgList() {
  17297. return function (val) {
  17298. let srcList = []; // 定义一个数组用来接收后面的img地址
  17299. val.replace(
  17300. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  17301. function (match, capture) {
  17302. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  17303. srcList.push(capture);
  17304. }
  17305. );
  17306. return srcList;
  17307. };
  17308. },
  17309. },
  17310. mounted() {
  17311. if (this.screenType == 2) {
  17312. window.parent.postMessage({ allScreen: 4 }, "*");
  17313. } else if (this.screenType == 3) {
  17314. window.parent.postMessage({ allScreen: 5 }, "*");
  17315. } else if (this.screenType == 1) {
  17316. window.parent.postMessage({ allScreen: 6 }, "*");
  17317. }
  17318. this.setOperationTime();
  17319. this.selectEva();
  17320. this.getCourseDetail();
  17321. this.selectCount();
  17322. this.getHomeWork();
  17323. this.contentDialog = true;
  17324. this.setContent2(true);
  17325. if (this.tType == 4) {
  17326. this.pzDialog = true;
  17327. this.selectPz();
  17328. }
  17329. document.scrollingElement.scrollTop = 0;
  17330. window.addEventListener("resize", () => {
  17331. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  17332. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  17333. if (this.showType == 2 || this.showType == 3) {
  17334. document.getElementsByClassName("navBox")[0].style.height =
  17335. a - 40 + 46 + "px";
  17336. } else {
  17337. document.getElementsByClassName("navBox")[0].style.height =
  17338. a - 40 + "px";
  17339. }
  17340. });
  17341. let _this = this;
  17342. setTimeout(() => {
  17343. // _this.vedioTime = [];
  17344. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17345. // _this.vedioTime[i] = document.getElementsByClassName(
  17346. // "vjs-duration-display"
  17347. // )[i].textContent;
  17348. // }
  17349. }, 1000);
  17350. },
  17351. };
  17352. </script>
  17353. <style scoped>
  17354. @media screen and (max-width: 1280px) {
  17355. /* .courseIndex > div:first-child(2) {
  17356. width: 15% !important;
  17357. } */
  17358. /* .navText {
  17359. width: 120px !important;
  17360. } */
  17361. .evaCss {
  17362. flex-direction: column !important;
  17363. align-items: center !important;
  17364. }
  17365. .elist_input {
  17366. width: 90% !important;
  17367. }
  17368. .dialog_diy1 >>> .el-dialog {
  17369. width: 100% !important;
  17370. }
  17371. .rightWidthCss {
  17372. width: 100% !important;
  17373. }
  17374. .dialog_diy3 >>> .el-dialog {
  17375. width: 100% !important;
  17376. }
  17377. /* .textTitle >>> .el-form-item__label {
  17378. width: 150px !important;
  17379. } */
  17380. /* .stageItemTitle > div:last-child{
  17381. max-width: 50px;
  17382. } */
  17383. }
  17384. .evaCssMax {
  17385. flex-direction: column !important;
  17386. align-items: center !important;
  17387. }
  17388. .dialog_diy >>> .el-dialog {
  17389. margin-top: 10vh !important;
  17390. }
  17391. .body_student {
  17392. width: 77%;
  17393. height: 100%;
  17394. position: absolute;
  17395. left: 22%;
  17396. top: 0;
  17397. }
  17398. .student_head {
  17399. width: 100%;
  17400. margin: 20px auto 0;
  17401. padding-bottom: 20px;
  17402. display: flex;
  17403. flex-direction: column;
  17404. flex-wrap: nowrap;
  17405. align-items: flex-start;
  17406. justify-content: flex-start;
  17407. }
  17408. .pb_left {
  17409. width: 20%;
  17410. margin-right: 10px;
  17411. background: rgb(255, 255, 255);
  17412. position: fixed;
  17413. height: calc(100% - 40px);
  17414. border-radius: 20px;
  17415. padding-bottom: 15px;
  17416. box-sizing: border-box;
  17417. }
  17418. .wheel > img,
  17419. .project > img,
  17420. .star > img,
  17421. .evaluate > img,
  17422. .up_photo > img,
  17423. .chapter_add > img,
  17424. .deleteWord > img,
  17425. .question > img,
  17426. .homework > img {
  17427. width: 100%;
  17428. height: 100%;
  17429. }
  17430. .upCover > img {
  17431. width: 131px;
  17432. height: 69px;
  17433. object-fit: cover;
  17434. }
  17435. .upCover {
  17436. width: calc(100% / 3.5);
  17437. position: relative;
  17438. margin: 0 15px 10px 0;
  17439. display: flex;
  17440. flex-direction: column;
  17441. flex-wrap: nowrap;
  17442. justify-content: center;
  17443. align-content: center;
  17444. align-items: center;
  17445. height: fit-content;
  17446. }
  17447. .upCover2 {
  17448. width: 100%;
  17449. position: relative;
  17450. margin: 0 15px 10px 0;
  17451. display: flex;
  17452. flex-direction: column;
  17453. flex-wrap: nowrap;
  17454. justify-content: center;
  17455. align-content: center;
  17456. align-items: center;
  17457. }
  17458. .upCover2 > img {
  17459. width: 100%;
  17460. height: 90px;
  17461. object-fit: contain;
  17462. }
  17463. .chapter_add {
  17464. width: 120px;
  17465. position: relative;
  17466. text-align: center;
  17467. }
  17468. .isAddThings {
  17469. margin-top: 20px;
  17470. position: relative;
  17471. text-align: center;
  17472. background: #f7f8fa;
  17473. height: 90px;
  17474. width: 90px;
  17475. display: flex;
  17476. flex-direction: column;
  17477. justify-content: center;
  17478. }
  17479. .deleteWord {
  17480. width: 22px;
  17481. height: 22px;
  17482. position: absolute;
  17483. right: -5px;
  17484. top: -5px;
  17485. cursor: pointer;
  17486. }
  17487. .box_course {
  17488. /* width: 60%; */
  17489. width: calc(100% - 300px);
  17490. }
  17491. .wheel {
  17492. width: 100%;
  17493. /* height: 100%; */
  17494. height: 650px;
  17495. }
  17496. .right_box {
  17497. display: flex;
  17498. flex-direction: column;
  17499. margin-left: 30px;
  17500. justify-content: space-around;
  17501. }
  17502. .right_box_title {
  17503. font-size: 23px;
  17504. }
  17505. .people {
  17506. display: flex;
  17507. }
  17508. .student_body {
  17509. width: 100%;
  17510. margin: 0 auto;
  17511. margin-top: 10px;
  17512. padding: 0 0 20px;
  17513. }
  17514. .study_top {
  17515. margin-top: 100px;
  17516. width: 100%;
  17517. height: auto;
  17518. padding-bottom: 20px;
  17519. }
  17520. .study_top .checkbox {
  17521. display: flex;
  17522. align-items: center;
  17523. padding: 15px 0 15px 30px;
  17524. flex: 0 0 auto;
  17525. font-weight: bold;
  17526. border-bottom: 1px solid #eee;
  17527. }
  17528. .study_top .check {
  17529. padding-bottom: 5px;
  17530. text-align: center;
  17531. cursor: pointer;
  17532. height: 30px;
  17533. box-sizing: border-box;
  17534. display: flex;
  17535. }
  17536. .study_top .checked {
  17537. border-bottom: 4px solid #3fc6a0;
  17538. padding-bottom: 5px;
  17539. color: #3fc6a0;
  17540. display: flex;
  17541. height: 35px;
  17542. }
  17543. .study_top .checked > div,
  17544. .study_top .check > div {
  17545. margin-right: 5px;
  17546. }
  17547. .videoTop {
  17548. display: flex;
  17549. flex-direction: row;
  17550. justify-content: space-between;
  17551. background: #fff;
  17552. align-items: center;
  17553. width: 95%;
  17554. padding: 20px;
  17555. }
  17556. .filebox {
  17557. display: flex;
  17558. flex-wrap: wrap;
  17559. flex-direction: column;
  17560. padding: 0 0 5px;
  17561. position: relative;
  17562. }
  17563. .filebox:before {
  17564. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  17565. position: absolute;
  17566. top: 20px;
  17567. left: 13px;
  17568. border-left: 2px dotted #cad1dc;
  17569. height: calc(100% - 15px);
  17570. }
  17571. .toolHeng2 > div:last-child::before {
  17572. height: calc(100% - 43px);
  17573. }
  17574. .filebox .tooldetail {
  17575. width: calc(100% - 100px);
  17576. margin: 0px 12px;
  17577. padding: 12px 25px 0 13px;
  17578. line-height: 30px;
  17579. word-break: break-word;
  17580. background: #ffffff;
  17581. border-radius: 8px 8px 8px 8px;
  17582. opacity: 1;
  17583. border: 1px solid #cad1dc;
  17584. }
  17585. .file {
  17586. display: flex;
  17587. flex-direction: column;
  17588. align-items: center;
  17589. justify-content: center;
  17590. cursor: pointer;
  17591. width: 200px;
  17592. }
  17593. .file div {
  17594. margin-top: 10px;
  17595. width: 150px;
  17596. text-align: center;
  17597. overflow: hidden;
  17598. white-space: nowrap;
  17599. text-overflow: ellipsis;
  17600. }
  17601. .media {
  17602. display: flex;
  17603. flex-direction: column;
  17604. align-items: center;
  17605. justify-content: center;
  17606. margin: 0 20px 20px 0;
  17607. cursor: pointer;
  17608. margin: 12px 0 5px 15px;
  17609. overflow: hidden;
  17610. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  17611. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  17612. box-sizing: border-box;
  17613. }
  17614. .media img {
  17615. height: 90px;
  17616. width: 160px;
  17617. object-fit: cover;
  17618. }
  17619. .media .title {
  17620. padding: 5px;
  17621. text-align: left;
  17622. width: 100%;
  17623. box-sizing: border-box;
  17624. }
  17625. .media .btn {
  17626. width: 100%;
  17627. height: 35px;
  17628. line-height: 35px;
  17629. color: #fff;
  17630. background: #606060;
  17631. text-align: center;
  17632. overflow: hidden;
  17633. white-space: nowrap;
  17634. text-overflow: ellipsis;
  17635. }
  17636. .detail_content_top {
  17637. width: 100%;
  17638. padding: 25px 0 25px 0;
  17639. }
  17640. .detail_title {
  17641. text-align: center;
  17642. font-size: 24px;
  17643. }
  17644. .detail_time {
  17645. font-size: 13px;
  17646. padding: 15px 0 0 40px;
  17647. }
  17648. .detail_content {
  17649. line-height: 2pc;
  17650. width: 90%;
  17651. margin: 0 auto;
  17652. padding-top: 30px;
  17653. text-indent: 30px;
  17654. overflow: auto;
  17655. height: 200px;
  17656. }
  17657. .score_box >>> .el-rate {
  17658. margin-left: 10px;
  17659. }
  17660. .dialog_change >>> .el-dialog {
  17661. border-radius: 5px;
  17662. }
  17663. .dialog_change >>> .el-dialog__header {
  17664. background: #f2f2f2;
  17665. text-align: center;
  17666. }
  17667. .dialog_change >>> .el-dialog__title {
  17668. line-height: 5px;
  17669. }
  17670. .dialog_change >>> .el-dialog__body {
  17671. background: #fff;
  17672. padding: 10px 20px;
  17673. }
  17674. .score_box {
  17675. display: flex;
  17676. align-items: center;
  17677. margin-bottom: 18px;
  17678. margin-top: 20px;
  17679. }
  17680. .up_photo {
  17681. width: 120px;
  17682. cursor: pointer;
  17683. margin-top: 10px;
  17684. }
  17685. .up_photo2 {
  17686. width: 180px;
  17687. box-sizing: border-box;
  17688. min-width: 180px;
  17689. height: 180px;
  17690. max-height: 180px;
  17691. min-height: 180px;
  17692. cursor: pointer;
  17693. display: flex;
  17694. flex-direction: column;
  17695. align-items: center;
  17696. justify-content: center;
  17697. background: rgb(242, 246, 255);
  17698. /* padding: 25px; */
  17699. margin-bottom: 10px;
  17700. }
  17701. .up_photo2 img {
  17702. width: 50%;
  17703. height: auto;
  17704. }
  17705. .up_photo2 span {
  17706. color: #898989;
  17707. }
  17708. .plworkBox {
  17709. display: flex;
  17710. align-items: center;
  17711. margin-top: 10px;
  17712. flex-wrap: wrap;
  17713. }
  17714. .upload_send {
  17715. margin: 30px auto 30px;
  17716. width: 60%;
  17717. background: #3681fc;
  17718. text-align: center;
  17719. height: 35px;
  17720. line-height: 35px;
  17721. color: #fff;
  17722. border-radius: 5px;
  17723. cursor: pointer;
  17724. }
  17725. .marginT {
  17726. margin-top: 20px;
  17727. }
  17728. .cd_content_steps {
  17729. display: flex;
  17730. width: 90%;
  17731. justify-content: space-around;
  17732. border-top: 1px solid #eeeeee;
  17733. }
  17734. .cd_steps_box {
  17735. display: flex;
  17736. justify-content: center;
  17737. align-items: center;
  17738. flex-direction: column;
  17739. cursor: pointer;
  17740. }
  17741. .first {
  17742. display: flex;
  17743. align-items: center;
  17744. margin: 15px 0 20px 0;
  17745. font-size: 20px;
  17746. }
  17747. .first > div:nth-child(2) {
  17748. font-size: 16px !important;
  17749. padding-left: 10px;
  17750. line-height: 26px;
  17751. box-sizing: border-box;
  17752. }
  17753. .blue_box_one {
  17754. text-align: center;
  17755. color: #fff;
  17756. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  17757. border-radius: 7px;
  17758. margin: 10px;
  17759. cursor: pointer;
  17760. width: 95%;
  17761. height: 45px;
  17762. display: flex;
  17763. flex-direction: row;
  17764. justify-content: flex-start;
  17765. align-items: center;
  17766. }
  17767. .blue_box_one > div:nth-child(1) {
  17768. line-height: 30px;
  17769. margin: 0 5px 0 10px;
  17770. width: 30%;
  17771. min-width: 70px;
  17772. border-radius: 4px;
  17773. }
  17774. .blue_box_one > div:nth-child(2) {
  17775. white-space: nowrap;
  17776. text-overflow: ellipsis;
  17777. overflow: hidden;
  17778. word-break: break-all;
  17779. width: 70%;
  17780. text-align: left;
  17781. margin-right: 10px;
  17782. max-width: calc(100% - 85px);
  17783. }
  17784. .blue_box_one > div:nth-child(2):hover {
  17785. overflow: hidden;
  17786. text-overflow: ellipsis;
  17787. white-space: nowrap;
  17788. cursor: pointer;
  17789. }
  17790. .upFile {
  17791. margin: 0 auto;
  17792. width: 120px;
  17793. background: #3681fc;
  17794. color: #fff;
  17795. height: 30px;
  17796. text-align: center;
  17797. line-height: 30px;
  17798. border-radius: 5px;
  17799. font-size: 14px;
  17800. cursor: pointer;
  17801. }
  17802. .courseTitle {
  17803. width: 85%;
  17804. margin: 10px auto;
  17805. display: flex;
  17806. flex-direction: row;
  17807. align-items: center;
  17808. justify-content: space-between;
  17809. text-align: center;
  17810. }
  17811. .courseTitle .ctitle {
  17812. font-size: 20px;
  17813. font-weight: bold;
  17814. color: #0e1e33;
  17815. white-space: nowrap;
  17816. overflow: hidden;
  17817. text-overflow: ellipsis;
  17818. }
  17819. .inviteBox {
  17820. font-size: 14px;
  17821. margin-top: 5px;
  17822. color: #a6cbff;
  17823. text-align: center;
  17824. }
  17825. .courseTitle >>> .el-tooltip {
  17826. width: 100%;
  17827. white-space: nowrap;
  17828. overflow: hidden;
  17829. text-overflow: ellipsis;
  17830. word-break: break-word;
  17831. }
  17832. .ml {
  17833. margin-left: 20px;
  17834. color: #5b7dba;
  17835. border-left: 3px solid #5b7dba;
  17836. padding-left: 5px;
  17837. font-weight: bold;
  17838. }
  17839. .return {
  17840. width: 2rem;
  17841. height: 2rem;
  17842. cursor: pointer;
  17843. }
  17844. .return > img {
  17845. width: 100%;
  17846. height: 100%;
  17847. }
  17848. .returnBtn {
  17849. width: 86px;
  17850. height: 36px;
  17851. background: #3681fc;
  17852. border-radius: 4px;
  17853. color: #fff;
  17854. text-align: center;
  17855. line-height: 36px;
  17856. margin-right: 20px;
  17857. cursor: pointer;
  17858. font-size: 14px;
  17859. font-weight: 400;
  17860. display: flex;
  17861. flex-direction: row;
  17862. flex-wrap: nowrap;
  17863. align-items: center;
  17864. justify-content: center;
  17865. }
  17866. .reBtnIcon,
  17867. .commentIcon,
  17868. .vedioIcon,
  17869. .vedioIcon1 {
  17870. width: 36px;
  17871. height: 36px;
  17872. border-radius: 4px;
  17873. position: relative;
  17874. background: #e0eafb;
  17875. cursor: pointer;
  17876. margin-right: 12px;
  17877. }
  17878. .reBtnIcon::before,
  17879. .commentIcon::before,
  17880. .vedioIcon::before,
  17881. .vedioIcon::before {
  17882. content: "";
  17883. display: block;
  17884. background-size: 100% 100%;
  17885. background-repeat: no-repeat;
  17886. width: 20px;
  17887. height: 20px;
  17888. position: absolute;
  17889. top: 8px;
  17890. left: 8px;
  17891. }
  17892. .reBtnIcon::before {
  17893. background-image: url("../assets/icon/newIcons/refresh.png");
  17894. }
  17895. .commentIcon::before {
  17896. background-image: url("../assets/icon/newIcons/comment.png");
  17897. }
  17898. .vedioIcon::before {
  17899. background-image: url("../assets/icon/newIcons/transcribe.png");
  17900. }
  17901. .vedioIcon1::before {
  17902. background-image: url("../assets/icon/newIcons/istranscribe.png");
  17903. }
  17904. .tool {
  17905. display: flex;
  17906. flex-direction: column;
  17907. flex-wrap: nowrap;
  17908. width: 13%;
  17909. margin: 0 30px;
  17910. align-items: center;
  17911. }
  17912. .whiteBIcon {
  17913. width: 150px;
  17914. cursor: pointer;
  17915. }
  17916. .whiteBIcon > img {
  17917. width: 100%;
  17918. height: 100%;
  17919. }
  17920. .mask {
  17921. background-color: rgba(0, 0, 0, 0);
  17922. position: fixed;
  17923. top: 0;
  17924. left: 0;
  17925. width: 100%;
  17926. height: 100%;
  17927. z-index: 20000;
  17928. display: flex;
  17929. align-items: center;
  17930. justify-content: center;
  17931. }
  17932. .progressBox {
  17933. width: 500px;
  17934. height: 180px;
  17935. background: #fff;
  17936. border-radius: 10px;
  17937. box-shadow: 0 0 6px 1px #bfbfbf;
  17938. display: flex;
  17939. align-items: center;
  17940. justify-content: center;
  17941. flex-direction: column;
  17942. position: relative;
  17943. color: #6c6c6c;
  17944. }
  17945. .progressBox >>> .el-progress-bar__outer {
  17946. background-color: #d1dfff !important;
  17947. }
  17948. .progressBox .lbox {
  17949. height: 50px;
  17950. font-size: 19px;
  17951. display: flex;
  17952. align-items: center;
  17953. color: #747474;
  17954. }
  17955. .progressBox .lbox img {
  17956. width: 40px;
  17957. margin-right: 20px;
  17958. }
  17959. .closeCss {
  17960. position: absolute;
  17961. top: 8px;
  17962. right: 8px;
  17963. cursor: pointer;
  17964. width: 20px;
  17965. height: 20px;
  17966. }
  17967. .closeCss > img {
  17968. width: 100%;
  17969. height: 100%;
  17970. }
  17971. .uploadVedio {
  17972. display: flex;
  17973. flex-direction: column;
  17974. flex-wrap: nowrap;
  17975. justify-content: center;
  17976. align-items: center;
  17977. margin: 0 15px 10px 0;
  17978. }
  17979. .uploadVedio > img {
  17980. width: 30px;
  17981. height: 30px;
  17982. }
  17983. .uploadVedio > span {
  17984. white-space: nowrap;
  17985. overflow: hidden;
  17986. text-overflow: ellipsis;
  17987. width: 75px;
  17988. margin-top: 7px;
  17989. }
  17990. .picName {
  17991. white-space: nowrap;
  17992. overflow: hidden;
  17993. text-overflow: ellipsis;
  17994. width: 75px;
  17995. margin-top: 7px;
  17996. }
  17997. .new_top {
  17998. display: flex;
  17999. background: #fff;
  18000. flex-direction: row;
  18001. justify-content: flex-start;
  18002. align-items: center;
  18003. height: 60px;
  18004. position: fixed;
  18005. top: 20px;
  18006. left: 22%;
  18007. width: 77%;
  18008. z-index: 999;
  18009. border-radius: 12px 12px 0 0;
  18010. border-bottom: 1px solid #cad1dc;
  18011. padding: 10px 0;
  18012. }
  18013. .new_topFixed {
  18014. width: 100%;
  18015. height: 40px;
  18016. position: fixed;
  18017. top: 0px;
  18018. display: block;
  18019. background: #f2f2f2;
  18020. z-index: 998;
  18021. }
  18022. .before {
  18023. position: absolute;
  18024. background: #c3dad4;
  18025. width: 6px;
  18026. height: 100%;
  18027. }
  18028. .courseIndex {
  18029. display: flex;
  18030. flex-direction: row;
  18031. align-items: center;
  18032. width: calc(100% - 745px);
  18033. }
  18034. .courseIndex > div:nth-child(1) {
  18035. margin: 0 0 0 10px;
  18036. font-size: 20px;
  18037. min-width: 100px;
  18038. font-weight: bold;
  18039. border-left: 4px solid #3363b9;
  18040. height: 32px;
  18041. text-align: center;
  18042. line-height: 35px;
  18043. }
  18044. .courseIndex > div:nth-child(2) {
  18045. font-size: 20px;
  18046. /* width: 300px; */
  18047. max-width: calc(100% - 105px);
  18048. white-space: nowrap;
  18049. overflow: hidden;
  18050. text-overflow: ellipsis;
  18051. }
  18052. .courseIndex > div:nth-child(3) {
  18053. border-bottom: 1px solid #d7d7d7;
  18054. padding-bottom: 5px;
  18055. background: #3681fc;
  18056. width: 55px;
  18057. min-width: 55px;
  18058. border-radius: 5px;
  18059. color: #fff;
  18060. text-align: center;
  18061. height: 20px;
  18062. line-height: 26px;
  18063. font-size: 14px;
  18064. margin: 0 0 0 10px;
  18065. }
  18066. .course_text {
  18067. padding: 20px 0 0 15px;
  18068. text-indent: 30px;
  18069. width: 80%;
  18070. min-height: 20px;
  18071. }
  18072. .vedioList {
  18073. background: #f2f2f2;
  18074. border: 1px solid #ececec;
  18075. /* width: 38.8%; */
  18076. width: 300px;
  18077. height: 445px;
  18078. border-radius: 10px;
  18079. overflow: hidden;
  18080. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  18081. }
  18082. .vedioNav {
  18083. margin: 10px 0 0 15px;
  18084. border-bottom: 1px solid #d7d7d7;
  18085. padding-bottom: 5px;
  18086. background: #3681fc;
  18087. width: 55px;
  18088. min-width: 55px;
  18089. border-radius: 5px;
  18090. color: #fff;
  18091. text-align: center;
  18092. height: 20px;
  18093. line-height: 26px;
  18094. font-size: 14px;
  18095. }
  18096. .queTop {
  18097. display: flex;
  18098. padding: 20px 0 20px 30px;
  18099. width: 100%;
  18100. flex-direction: row;
  18101. justify-content: flex-start;
  18102. align-items: center;
  18103. box-sizing: border-box;
  18104. }
  18105. .queTopTitle {
  18106. display: flex;
  18107. flex-direction: row;
  18108. flex-wrap: nowrap;
  18109. align-items: center;
  18110. font-weight: bold;
  18111. font-size: 20px;
  18112. color: rgb(14, 30, 51);
  18113. }
  18114. .queTopTitle::before {
  18115. content: "";
  18116. width: 2px;
  18117. height: 22px;
  18118. background: #3681fc;
  18119. border-radius: 3px;
  18120. display: block;
  18121. margin: 2px 6px 0 0;
  18122. }
  18123. .queTopRight {
  18124. display: flex;
  18125. flex-direction: row;
  18126. flex-wrap: nowrap;
  18127. align-items: center;
  18128. }
  18129. .queTopClose {
  18130. margin-right: 20px;
  18131. cursor: pointer;
  18132. position: relative;
  18133. display: flex;
  18134. }
  18135. .closeImg,
  18136. .openImg {
  18137. width: 25px;
  18138. height: 25px;
  18139. position: absolute;
  18140. left: -20px;
  18141. top: -1px;
  18142. }
  18143. .closeImg > img,
  18144. .openImg > img {
  18145. width: 100%;
  18146. height: 100%;
  18147. }
  18148. .question {
  18149. width: 40px;
  18150. margin-right: 10px;
  18151. margin-top: 7px;
  18152. }
  18153. .queTitle {
  18154. margin-left: 5px;
  18155. font-size: 25px;
  18156. display: flex;
  18157. align-items: center;
  18158. }
  18159. .addEditor {
  18160. width: 100px;
  18161. height: 30px;
  18162. background: #42cda6;
  18163. color: #fff;
  18164. border-radius: 5px;
  18165. text-align: center;
  18166. line-height: 30px;
  18167. box-shadow: 1px 3px 6px 1px #bfbfbf;
  18168. cursor: pointer;
  18169. }
  18170. /* .vedioName {
  18171. cursor: pointer;
  18172. margin: 0px 0px 10px 5px;
  18173. white-space: nowrap;
  18174. overflow: hidden;
  18175. text-overflow: ellipsis;
  18176. width: 100%;
  18177. } */
  18178. .vedioTime {
  18179. width: 35px;
  18180. position: absolute;
  18181. color: #fff;
  18182. bottom: 0px;
  18183. right: 0px;
  18184. text-align: center;
  18185. background: #46411f;
  18186. height: 20px;
  18187. font-size: 14px;
  18188. line-height: 20px;
  18189. }
  18190. .homework {
  18191. width: 200px;
  18192. display: flex;
  18193. flex-direction: column;
  18194. flex-wrap: nowrap;
  18195. align-items: center;
  18196. cursor: pointer;
  18197. }
  18198. .homebox {
  18199. display: flex;
  18200. flex-wrap: wrap;
  18201. flex-direction: row;
  18202. justify-content: flex-start;
  18203. align-items: center;
  18204. padding: 15px 0;
  18205. }
  18206. .isChooseActive {
  18207. color: #3681fc !important;
  18208. font-weight: bold !important;
  18209. }
  18210. .chooseWho {
  18211. display: flex;
  18212. width: 100%;
  18213. flex-direction: row;
  18214. flex-wrap: nowrap;
  18215. justify-content: flex-start;
  18216. padding-bottom: 10px;
  18217. }
  18218. .chooseWho > div {
  18219. cursor: pointer;
  18220. padding-bottom: 10px;
  18221. margin: 0 30px 0 0;
  18222. font-weight: 400;
  18223. color: #0e1e33;
  18224. }
  18225. .addPoint > div > img {
  18226. cursor: pointer;
  18227. width: 85px;
  18228. border-radius: 15px;
  18229. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  18230. }
  18231. .addPoint > div {
  18232. display: flex;
  18233. flex-direction: column;
  18234. flex-wrap: nowrap;
  18235. align-items: center;
  18236. }
  18237. .isBorder > div {
  18238. margin: 0 0 10px 0;
  18239. align-items: flex-start !important;
  18240. }
  18241. .noiframeBox {
  18242. display: flex;
  18243. flex-wrap: wrap;
  18244. }
  18245. .iframeBox iframe {
  18246. width: 100%;
  18247. height: 800px;
  18248. border: none;
  18249. margin-bottom: 20px;
  18250. border: 1px solid #ccc;
  18251. }
  18252. .upload_toolBtn {
  18253. background: #3681fc;
  18254. color: #fff;
  18255. width: 110px;
  18256. text-align: center;
  18257. height: 35px;
  18258. line-height: 35px;
  18259. font-size: 14px;
  18260. border-radius: 5px;
  18261. cursor: pointer;
  18262. position: absolute;
  18263. right: 10px;
  18264. bottom: 0;
  18265. }
  18266. .binfo_input,
  18267. .pj {
  18268. font: inherit;
  18269. color: currentColor;
  18270. width: 100%;
  18271. margin: 0;
  18272. padding: 15px 14px;
  18273. display: block;
  18274. min-width: 0;
  18275. outline: none;
  18276. box-sizing: content-box;
  18277. background: none;
  18278. -webkit-tap-highlight-color: transparent;
  18279. border: 1px solid rgba(0, 0, 0, 0.23);
  18280. border-radius: 4px;
  18281. box-sizing: border-box;
  18282. resize: none;
  18283. }
  18284. .binfo_input:focus-visible {
  18285. border: 1px solid rgba(61, 103, 188);
  18286. }
  18287. .dialog_diy >>> .el-dialog__header,
  18288. .dialog_diy1 >>> .el-dialog__header {
  18289. background: #454545 !important;
  18290. padding: 15px 20px;
  18291. }
  18292. .dialog_diy >>> .el-dialog__title,
  18293. .dialog_diy1 >>> .el-dialog__title {
  18294. color: #fff;
  18295. }
  18296. .dialog_diy >>> .el-dialog__headerbtn,
  18297. .dialog_diy1 >>> .el-dialog__headerbtn {
  18298. top: 19px;
  18299. }
  18300. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  18301. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  18302. color: #fff;
  18303. }
  18304. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  18305. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  18306. color: #fff;
  18307. }
  18308. .dialog_diy1 >>> .el-dialog__body {
  18309. padding: 0;
  18310. }
  18311. .dialog_diy >>> .el-dialog__body,
  18312. .dialog_diy >>> .el-dialog__footer,
  18313. .dialog_diy1 >>> .el-dialog__footer {
  18314. background: #fafafa;
  18315. }
  18316. .a_addBox {
  18317. padding: 0 0 0 15px;
  18318. }
  18319. .a_add_box {
  18320. padding: 10px;
  18321. background: #fff;
  18322. margin-bottom: 10px;
  18323. border-radius: 5px;
  18324. box-shadow: 0 0 5px 0 #d5d5d5;
  18325. }
  18326. .a_add_head {
  18327. display: flex;
  18328. align-items: flex-start;
  18329. /* justify-content: space-between; */
  18330. flex-direction: column;
  18331. /* flex-direction: row; */
  18332. margin: 10px 0 20px 0;
  18333. font-size: 18px;
  18334. width: 100%;
  18335. }
  18336. .askIndex {
  18337. background: #3681fc;
  18338. border-radius: 50%;
  18339. color: #fff;
  18340. width: 25px;
  18341. height: 25px;
  18342. min-width: 25px;
  18343. min-height: 25px;
  18344. text-align: center;
  18345. line-height: 25px;
  18346. margin-right: 5px;
  18347. }
  18348. .a_add_head .a_add_head_input {
  18349. width: 300px;
  18350. }
  18351. .a_add_head .a_add_head_div {
  18352. display: flex;
  18353. align-items: center;
  18354. justify-content: space-between;
  18355. }
  18356. .a_add_body {
  18357. display: flex;
  18358. align-items: center;
  18359. }
  18360. .a_add_input {
  18361. display: flex;
  18362. align-items: center;
  18363. flex-wrap: wrap;
  18364. width: 100%;
  18365. }
  18366. .a_add_input >>> .el-radio-group,
  18367. .a_add_input >>> .el-checkbox-group {
  18368. width: 100%;
  18369. }
  18370. .a_add_input >>> .el-radio,
  18371. .a_add_input >>> .el-checkbox {
  18372. display: flex;
  18373. flex-direction: row;
  18374. flex-wrap: nowrap;
  18375. align-items: center;
  18376. padding: 15px 0;
  18377. }
  18378. .a_add_input >>> .el-radio:not(:last-child),
  18379. .a_add_input >>> .el-checkbox:not(:last-child) {
  18380. width: 100%;
  18381. border-bottom: 1px solid #efefef;
  18382. }
  18383. .redioStyle >>> .el-radio__label {
  18384. font-size: 18px;
  18385. }
  18386. .redioStyle >>> .el-radio__label > span,
  18387. .redioStyle >>> .el-checkbox__label > span {
  18388. word-break: break-all;
  18389. white-space: normal;
  18390. }
  18391. .redioStyle >>> .el-checkbox__label {
  18392. font-size: 18px;
  18393. }
  18394. .toolHeng2 {
  18395. width: 100%;
  18396. padding-left: 37px;
  18397. box-sizing: border-box;
  18398. }
  18399. .workNav {
  18400. font-size: 20px;
  18401. font-weight: bold;
  18402. color: #0e1e33;
  18403. display: flex;
  18404. flex-direction: row;
  18405. flex-wrap: nowrap;
  18406. align-items: center;
  18407. padding: 15px 0 15px 0;
  18408. }
  18409. .workNav::before {
  18410. content: "";
  18411. width: 2px;
  18412. height: 22px;
  18413. background: #3681fc;
  18414. border-radius: 3px;
  18415. display: block;
  18416. margin: 2px 6px 0 0;
  18417. }
  18418. .toolHeng {
  18419. display: flex;
  18420. flex-direction: row;
  18421. flex-wrap: wrap;
  18422. justify-content: flex-start;
  18423. align-items: center;
  18424. width: 100%;
  18425. }
  18426. .toolHeng > div {
  18427. padding-left: 20px;
  18428. }
  18429. .isWidth {
  18430. width: 20%;
  18431. }
  18432. .textTitle {
  18433. display: flex;
  18434. flex-direction: row;
  18435. flex-wrap: nowrap;
  18436. align-items: center;
  18437. width: 95%;
  18438. }
  18439. .textTitle >>> .el-form-item__label {
  18440. font-size: 22px;
  18441. color: #918f8f;
  18442. width: 100px;
  18443. }
  18444. .textTitle >>> .el-form-item__content {
  18445. width: calc(100% - 100px);
  18446. }
  18447. .textCss >>> .el-dialog {
  18448. width: 800px !important;
  18449. height: 400px;
  18450. background: #fafafa;
  18451. }
  18452. .textCss >>> .el-dialog__body {
  18453. margin: 55px 8% 0 8%;
  18454. padding: 0 !important;
  18455. }
  18456. .textCss >>> .el-dialog__footer {
  18457. padding-top: 38px;
  18458. }
  18459. .toolsCss >>> .el-dialog__body {
  18460. padding: 20px;
  18461. }
  18462. .lineCss >>> .el-dialog__body {
  18463. display: flex;
  18464. flex-direction: row;
  18465. align-items: center;
  18466. justify-content: center;
  18467. }
  18468. .newNav {
  18469. display: flex;
  18470. flex-direction: row;
  18471. align-items: baseline;
  18472. justify-content: flex-start;
  18473. }
  18474. .navListItem {
  18475. width: 280px;
  18476. height: 50px;
  18477. margin: 0px auto 10px;
  18478. display: flex;
  18479. flex-direction: row;
  18480. flex-wrap: nowrap;
  18481. align-items: center;
  18482. justify-content: space-between;
  18483. background: #f0f4fa;
  18484. border-radius: 6px 6px 6px 6px;
  18485. }
  18486. .navText {
  18487. cursor: pointer;
  18488. white-space: nowrap;
  18489. overflow: hidden;
  18490. text-overflow: ellipsis;
  18491. width: 220px;
  18492. padding: 0 10px;
  18493. font-weight: 400;
  18494. color: #0e1e33;
  18495. }
  18496. .downIcon {
  18497. width: 20px;
  18498. min-width: 20px;
  18499. height: 20px;
  18500. margin-right: 15px;
  18501. cursor: pointer;
  18502. }
  18503. .downIcon > img {
  18504. width: 100%;
  18505. height: 100%;
  18506. }
  18507. .noVedio {
  18508. display: flex;
  18509. flex-direction: row;
  18510. justify-content: center;
  18511. align-content: center;
  18512. }
  18513. .noNavText {
  18514. cursor: pointer;
  18515. margin: 0px 0px 10px 5px;
  18516. width: 112px;
  18517. }
  18518. .listNoVedio {
  18519. margin: 0 0 0 30px;
  18520. width: 97%;
  18521. }
  18522. .video-player >>> .video-js {
  18523. height: 100%;
  18524. }
  18525. .hangVedioList {
  18526. width: 90% !important;
  18527. height: 150px !important;
  18528. margin: 20px 0 0 30px;
  18529. }
  18530. .hangVedio {
  18531. width: 100%;
  18532. height: 170px !important;
  18533. align-items: flex-start !important;
  18534. }
  18535. .hangHand {
  18536. height: 150px !important;
  18537. }
  18538. .twoChild {
  18539. width: 95%;
  18540. margin: 10px;
  18541. border-radius: 5px;
  18542. background: #f2f2f2;
  18543. display: flex;
  18544. flex-direction: column;
  18545. flex-wrap: nowrap;
  18546. justify-content: flex-start;
  18547. align-items: flex-start;
  18548. transition: all 0.5s;
  18549. overflow: hidden;
  18550. height: 0;
  18551. background: #e7f3ff;
  18552. }
  18553. .twoChild > div:nth-child(1) {
  18554. margin-top: 5px;
  18555. }
  18556. .navChild {
  18557. width: 100%;
  18558. cursor: pointer;
  18559. margin-bottom: 10px;
  18560. position: relative;
  18561. }
  18562. .navChild img {
  18563. position: absolute;
  18564. right: 11px;
  18565. width: 15px;
  18566. top: 50%;
  18567. transform: translateY(-50%);
  18568. }
  18569. .navActive,
  18570. .toolActive {
  18571. height: auto !important;
  18572. overflow: auto !important;
  18573. padding-bottom: 16px;
  18574. }
  18575. .toolActive {
  18576. padding: 0;
  18577. }
  18578. .navTask {
  18579. display: flex;
  18580. flex-direction: row;
  18581. flex-wrap: nowrap;
  18582. align-items: center;
  18583. align-content: flex-start;
  18584. height: 40px;
  18585. justify-content: flex-start;
  18586. padding: 0 10px;
  18587. width: 100%;
  18588. box-sizing: border-box;
  18589. }
  18590. .navTaskname {
  18591. white-space: nowrap;
  18592. text-overflow: ellipsis;
  18593. overflow: hidden;
  18594. word-break: break-all;
  18595. padding-left: 5px;
  18596. }
  18597. .openTaskActive {
  18598. background-color: #e0eafb !important;
  18599. color: #0061ff;
  18600. }
  18601. .iframeName {
  18602. margin: 5px 0;
  18603. border-left: 4px solid #41c4a4;
  18604. padding-left: 4px;
  18605. }
  18606. .toolTitle {
  18607. margin: 0px 0px 20px;
  18608. font-size: 20px;
  18609. font-weight: 500;
  18610. border-left: 4px solid #41c4a4;
  18611. padding-left: 4px;
  18612. }
  18613. .cru_selectBox {
  18614. overflow: auto;
  18615. width: 95%;
  18616. margin: 17px auto 0;
  18617. height: calc(100% - 40px - 21px - 20px - 17px);
  18618. background: #fff;
  18619. border-radius: 8px;
  18620. }
  18621. .cru_selectBox::-webkit-scrollbar,
  18622. .study_top::-webkit-scrollbar,
  18623. .textContent::-webkit-scrollbar {
  18624. /*滚动条整体样式*/
  18625. width: 6px;
  18626. /*高宽分别对应横竖滚动条的尺寸*/
  18627. height: 6px;
  18628. }
  18629. /*定义滚动条轨道 内阴影+圆角*/
  18630. .cru_selectBox::-webkit-scrollbar-track,
  18631. .study_top::-webkit-scrollbar-track,
  18632. .textContent::-webkit-scrollbar {
  18633. border-radius: 10px;
  18634. background-color: #b8bdc9;
  18635. }
  18636. /*定义滑块 内阴影+圆角*/
  18637. .cru_selectBox::-webkit-scrollbar-thumb,
  18638. .study_top::-webkit-scrollbar-thumb,
  18639. .textContent::-webkit-scrollbar-thumb {
  18640. border-radius: 10px;
  18641. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  18642. background-color: #2c5ab3;
  18643. }
  18644. .vedioBox {
  18645. border-radius: 0 0 20px 20px;
  18646. background: #fff;
  18647. overflow: auto;
  18648. }
  18649. .taskBox {
  18650. width: 98%;
  18651. background: #f0f4fa;
  18652. margin: 10px auto;
  18653. padding: 0 10px;
  18654. border-radius: 4px;
  18655. box-sizing: border-box;
  18656. }
  18657. .vedioTaskBox {
  18658. width: 100%;
  18659. display: flex;
  18660. flex-direction: row;
  18661. flex-wrap: nowrap;
  18662. align-items: flex-start;
  18663. position: relative;
  18664. }
  18665. .toolBox {
  18666. margin: 15px 0 0 25px;
  18667. display: flex;
  18668. position: relative;
  18669. background: #f0f4fa;
  18670. padding: 18px 20px;
  18671. border-radius: 4px;
  18672. width: 90%;
  18673. }
  18674. .btnAll {
  18675. position: absolute;
  18676. right: 0;
  18677. display: flex;
  18678. flex-direction: row;
  18679. flex-wrap: nowrap;
  18680. align-items: center;
  18681. }
  18682. .btnLeft,
  18683. .btnRight {
  18684. display: flex;
  18685. flex-direction: row;
  18686. flex-wrap: nowrap;
  18687. align-items: center;
  18688. padding: 5px 0;
  18689. }
  18690. .btnLeft {
  18691. border-right: 1px solid #cad1dc;
  18692. }
  18693. .btnLeft > .custom-tooltip {
  18694. background: #3681fc;
  18695. color: #fff;
  18696. }
  18697. .last,
  18698. .returnBtn1 {
  18699. width: 90px;
  18700. height: 36px;
  18701. background: #ffffff;
  18702. border-radius: 4px;
  18703. border: 1px solid #0061ff;
  18704. cursor: pointer;
  18705. display: flex;
  18706. flex-direction: row;
  18707. flex-wrap: nowrap;
  18708. align-items: center;
  18709. justify-content: center;
  18710. margin-left: 12px;
  18711. }
  18712. .returnBtn1 {
  18713. background: #f0f4fa;
  18714. border-radius: 4px;
  18715. border: 1px solid #cad1dc;
  18716. margin: 0 12px;
  18717. }
  18718. .lastImg {
  18719. min-width: 15px;
  18720. width: 15px;
  18721. height: 15px;
  18722. }
  18723. .lastText {
  18724. padding: 0 5px 2px 5px;
  18725. box-sizing: border-box;
  18726. color: #0061ff;
  18727. font-size: 14px;
  18728. }
  18729. .lastImg > img {
  18730. width: 100%;
  18731. height: 100%;
  18732. }
  18733. /* .vedioTimeBox {
  18734. display: flex;
  18735. flex-direction: row;
  18736. align-items: center;
  18737. flex-wrap: nowrap;
  18738. position: relative;
  18739. } */
  18740. .navBox {
  18741. background: #fff;
  18742. height: calc(100% - 40px);
  18743. overflow-y: auto;
  18744. overflow-x: hidden;
  18745. }
  18746. .worksBox {
  18747. margin: 0 0 10px 25px;
  18748. border-bottom: 1px solid #eeeeee;
  18749. background: #f0f4fa;
  18750. padding: 18px 20px;
  18751. border-radius: 4px;
  18752. width: 90%;
  18753. }
  18754. .worksBTitle {
  18755. font-size: 20px;
  18756. padding-bottom: 15px;
  18757. border-bottom: 1px solid #eeeeee;
  18758. display: flex;
  18759. align-items: center;
  18760. }
  18761. .greenBox {
  18762. width: 5px;
  18763. height: 30px;
  18764. background: #63b6fa;
  18765. margin-right: 5px;
  18766. }
  18767. .worksDetailBox {
  18768. display: flex;
  18769. width: 100%;
  18770. flex-direction: row;
  18771. flex-wrap: wrap;
  18772. align-items: flex-end;
  18773. justify-content: flex-start;
  18774. padding: 15px 0;
  18775. }
  18776. .works {
  18777. display: flex;
  18778. flex-direction: column;
  18779. flex-wrap: nowrap;
  18780. align-items: flex-start;
  18781. justify-content: flex-start;
  18782. align-content: center;
  18783. max-width: 240px;
  18784. width: calc(100% / 3 - 10px);
  18785. height: auto;
  18786. margin-right: 10px;
  18787. margin-bottom: 10px;
  18788. overflow: hidden;
  18789. height: 140px;
  18790. box-shadow: 0 0 6px 1px #dfdada;
  18791. border-radius: 15px;
  18792. }
  18793. .workImg {
  18794. width: 100%;
  18795. /* height: calc(100% - 40px); */
  18796. height: 105px;
  18797. position: relative;
  18798. }
  18799. .workImg > img {
  18800. width: 100%;
  18801. height: 100%;
  18802. object-fit: contain;
  18803. cursor: pointer;
  18804. }
  18805. .worksName {
  18806. height: 40px;
  18807. line-height: 40px;
  18808. display: flex;
  18809. width: 100%;
  18810. flex-direction: row;
  18811. flex-wrap: nowrap;
  18812. justify-content: space-between;
  18813. align-items: center;
  18814. margin: 0 0 0 10px;
  18815. }
  18816. .worksName > div:nth-child(1) {
  18817. width: 110px;
  18818. white-space: nowrap;
  18819. overflow: hidden;
  18820. text-overflow: ellipsis;
  18821. }
  18822. .worksName > div:nth-child(2) {
  18823. color: #b7b4b5;
  18824. }
  18825. .noWorksS {
  18826. padding: 15px 0;
  18827. display: flex;
  18828. flex-direction: row;
  18829. flex-wrap: wrap;
  18830. align-items: center;
  18831. justify-content: flex-start;
  18832. }
  18833. .noWorksName,
  18834. .isWorksName,
  18835. .isWorksName2 {
  18836. background: #ddebf8;
  18837. color: #000;
  18838. width: 90px;
  18839. height: 25px;
  18840. text-align: center;
  18841. line-height: 25px;
  18842. border-radius: 4px;
  18843. margin: 10px 15px 10px 0;
  18844. white-space: nowrap;
  18845. overflow: hidden;
  18846. padding: 5px;
  18847. text-overflow: ellipsis;
  18848. cursor: pointer;
  18849. border: 1px solid #ddebf8;
  18850. }
  18851. .isWorksName2 {
  18852. width: 100px;
  18853. height: 40px;
  18854. line-height: 40px;
  18855. position: relative;
  18856. }
  18857. .isWorksName {
  18858. background: #e7ebf1 !important;
  18859. width: 100px;
  18860. height: 40px;
  18861. line-height: 40px;
  18862. position: relative;
  18863. color: #acb4bf;
  18864. border: 1px solid #cad1dc !important;
  18865. }
  18866. .isSelectName,
  18867. .noWorksName:hover {
  18868. background: #3383fa !important;
  18869. color: #fff !important;
  18870. border: 1px solid #3383fa !important;
  18871. }
  18872. .title {
  18873. background: #1e5cc9;
  18874. /* width: 98%; */
  18875. height: 45px;
  18876. color: #fff;
  18877. line-height: 45px;
  18878. padding-left: 20px;
  18879. box-sizing: border-box;
  18880. }
  18881. .textBox {
  18882. font-size: 20px;
  18883. width: 90%;
  18884. display: flex;
  18885. flex-direction: column;
  18886. align-items: center;
  18887. margin: 20px auto 0;
  18888. max-height: calc(100% - 75px);
  18889. overflow: auto;
  18890. }
  18891. .textContent {
  18892. font-size: 18px;
  18893. width: 95%;
  18894. max-width: 95%;
  18895. }
  18896. .answerBg {
  18897. background: url("../assets/icon/answerBgNew.png") no-repeat;
  18898. background-size: 100% 100%;
  18899. width: 100%;
  18900. height: 100%;
  18901. color: #fff;
  18902. text-align: center;
  18903. display: flex;
  18904. flex-direction: column;
  18905. flex-wrap: nowrap;
  18906. align-items: center;
  18907. position: relative;
  18908. justify-content: center;
  18909. }
  18910. .answerBg > div:nth-child(1) {
  18911. /* font-size: 22px;
  18912. padding: 25px 0 10px; */
  18913. }
  18914. .answerContent {
  18915. width: 215px;
  18916. max-height: 60px;
  18917. word-break: break-all;
  18918. text-align: center;
  18919. /* white-space: nowrap; */
  18920. overflow: hidden;
  18921. text-overflow: ellipsis;
  18922. /* padding: 23px 0 0; */
  18923. -webkit-line-clamp: 3;
  18924. -webkit-box-orient: vertical;
  18925. display: -webkit-box;
  18926. font-size: 15px;
  18927. cursor: pointer;
  18928. }
  18929. .elist_input_box {
  18930. display: flex;
  18931. align-items: flex-start;
  18932. flex-wrap: nowrap;
  18933. padding: 10px 0 15px 30px;
  18934. flex-direction: column;
  18935. }
  18936. .elist_input {
  18937. /* width: 40%; */
  18938. width: 45%;
  18939. margin: 20px;
  18940. }
  18941. .elist_input .elist_input_box input {
  18942. font: inherit;
  18943. color: currentColor;
  18944. width: 200px;
  18945. padding: 8px 14px;
  18946. display: block;
  18947. min-width: 0;
  18948. outline: none;
  18949. border: 1px solid rgba(0, 0, 0, 0.23);
  18950. border-radius: 4px;
  18951. box-sizing: border-box;
  18952. background: #fff;
  18953. margin: 0 20px 0 0;
  18954. }
  18955. .elist_input .elist_input_box span {
  18956. height: 36px;
  18957. line-height: 36px;
  18958. color: rgb(82, 82, 82);
  18959. }
  18960. .elist_input .elist_input_box .remove {
  18961. height: 20px;
  18962. width: 20px;
  18963. background-size: 100% 100%;
  18964. background-position: unset;
  18965. margin-left: 5px;
  18966. }
  18967. .elist_input_box >>> .el-rate {
  18968. display: flex;
  18969. height: 36px;
  18970. align-items: center;
  18971. }
  18972. .elist_input_box .elist_inptu_text {
  18973. min-height: 50px;
  18974. /* width: 500px;
  18975. max-height: 150px; */
  18976. width: 100%;
  18977. line-height: 50px;
  18978. color: rgb(82, 82, 82);
  18979. overflow: auto;
  18980. text-indent: 5px;
  18981. background: #f7f6f9;
  18982. border-radius: 10px;
  18983. }
  18984. .elist_input_box .elist_inptu_text input {
  18985. width: 500px;
  18986. }
  18987. .elist_input_box >>> .el-rate__icon {
  18988. font-size: 24px;
  18989. }
  18990. .isClick {
  18991. background: #4d9def;
  18992. }
  18993. .bzBox {
  18994. display: flex;
  18995. flex-direction: row;
  18996. align-items: center;
  18997. }
  18998. .bzBox .yCss {
  18999. width: 14px;
  19000. height: 14px;
  19001. background: #3681fc;
  19002. margin: 0 16px 0 7px;
  19003. border-radius: 50%;
  19004. }
  19005. .bzBox > div:nth-child(2) {
  19006. font-size: 18px;
  19007. font-weight: bold;
  19008. color: #0e1e33;
  19009. }
  19010. .navTitile {
  19011. padding: 0 0px 0 15px;
  19012. font-size: 16px;
  19013. font-weight: bold;
  19014. color: #0e1e33;
  19015. height: 40px;
  19016. line-height: 40px;
  19017. }
  19018. .isTypeOne {
  19019. width: 240px;
  19020. height: 170px;
  19021. /* border: 1px solid #f8f8f8; */
  19022. border-radius: 10px;
  19023. box-shadow: 0 0 6px 1px #dfdada;
  19024. }
  19025. .e_add_top {
  19026. display: flex;
  19027. justify-content: space-between;
  19028. padding: 20px 20px 0 20px;
  19029. border-radius: 3px;
  19030. background: #fff;
  19031. }
  19032. .e_add_title2 {
  19033. display: flex;
  19034. align-items: center;
  19035. }
  19036. .e_add_title2 span {
  19037. width: 40px;
  19038. }
  19039. .e_add_title {
  19040. display: flex;
  19041. align-items: center;
  19042. color: #b8b8b8;
  19043. font-size: 18px;
  19044. position: relative;
  19045. height: 40px;
  19046. }
  19047. .e_add_title span {
  19048. margin-right: 10px;
  19049. }
  19050. .e_add_title .el_input {
  19051. width: 300px;
  19052. }
  19053. .e_add_title >>> .el-input__inner {
  19054. width: 400px;
  19055. }
  19056. .e_add_btn {
  19057. }
  19058. .e_add_content {
  19059. display: flex;
  19060. width: 100%;
  19061. max-width: 650px;
  19062. height: 550px;
  19063. }
  19064. .e_add_list {
  19065. background: #fff;
  19066. height: 500px;
  19067. width: 210px;
  19068. position: relative;
  19069. margin: 15px 5px 0 0;
  19070. flex-shrink: 0;
  19071. display: flex;
  19072. flex-direction: column;
  19073. }
  19074. .e_add_list_title {
  19075. font-size: 20px;
  19076. width: 100%;
  19077. box-sizing: border-box;
  19078. padding: 15px 40px;
  19079. text-align: center;
  19080. border-bottom: 1px solid #eaeaea;
  19081. position: relative;
  19082. display: flex;
  19083. align-items: center;
  19084. justify-content: center;
  19085. height: 57px;
  19086. background: #f6f6f6;
  19087. }
  19088. .e_add_list_title span {
  19089. overflow: hidden;
  19090. white-space: nowrap;
  19091. text-overflow: ellipsis;
  19092. }
  19093. .e_add_list_title img {
  19094. position: absolute;
  19095. right: 15px;
  19096. width: 25px;
  19097. cursor: pointer;
  19098. top: 50%;
  19099. transform: translateY(-50%);
  19100. }
  19101. .e_add_list_body {
  19102. height: calc(100% - 187px);
  19103. overflow: auto;
  19104. }
  19105. .e_add_list_child {
  19106. width: 100%;
  19107. display: flex;
  19108. align-items: center;
  19109. justify-content: center;
  19110. position: relative;
  19111. box-sizing: border-box;
  19112. padding: 15px 40px;
  19113. text-align: center;
  19114. }
  19115. .e_add_list_child span {
  19116. overflow: hidden;
  19117. white-space: nowrap;
  19118. text-overflow: ellipsis;
  19119. cursor: pointer;
  19120. }
  19121. .e_add_list_child img {
  19122. position: absolute;
  19123. right: 10px;
  19124. width: 21px;
  19125. cursor: pointer;
  19126. top: 50%;
  19127. transform: translateY(-50%);
  19128. }
  19129. .e_add_list_child + .e_add_list_child {
  19130. border-top: 1px solid #eaeaea;
  19131. }
  19132. .e_add_list_child .active {
  19133. color: #409eff;
  19134. }
  19135. .e_add_list_btn {
  19136. position: absolute;
  19137. bottom: 0;
  19138. height: 50px;
  19139. background: rgb(120, 120, 254);
  19140. width: 100%;
  19141. color: #fff;
  19142. font-size: 16px;
  19143. text-align: center;
  19144. line-height: 50px;
  19145. cursor: pointer;
  19146. }
  19147. .e_add_list_detail {
  19148. position: absolute;
  19149. bottom: 0;
  19150. height: 130px;
  19151. background: rgb(120, 120, 254);
  19152. width: 100%;
  19153. color: #fff;
  19154. font-size: 16px;
  19155. display: flex;
  19156. align-items: center;
  19157. justify-content: center;
  19158. }
  19159. .e_add_list_detail textarea {
  19160. height: 90%;
  19161. width: 95%;
  19162. border: none;
  19163. resize: none;
  19164. outline: none;
  19165. padding: 5px;
  19166. box-sizing: border-box;
  19167. }
  19168. .e_add_list_pbox {
  19169. width: 100%;
  19170. max-width: 650px;
  19171. /* height: 600px; */
  19172. }
  19173. .e_add_list_pbox_title {
  19174. height: 50px;
  19175. background: #fff;
  19176. display: flex;
  19177. align-items: center;
  19178. width: 100%;
  19179. box-sizing: border-box;
  19180. padding: 0 20px;
  19181. }
  19182. .type_title {
  19183. font-size: 18px;
  19184. font-weight: 700;
  19185. }
  19186. .type_content {
  19187. font-size: 16px;
  19188. margin-left: 30px;
  19189. }
  19190. .type_content span + span {
  19191. margin-left: 20px;
  19192. }
  19193. .type_content span {
  19194. cursor: pointer;
  19195. padding-bottom: 5px;
  19196. box-sizing: border-box;
  19197. }
  19198. .type_content .active {
  19199. color: #409eff;
  19200. border-bottom: 2px solid #409eff;
  19201. }
  19202. .e_add_list_pbox_content {
  19203. height: calc(100% - 50px);
  19204. display: flex;
  19205. align-items: center;
  19206. width: 100%;
  19207. background: #fff;
  19208. }
  19209. .evaCss {
  19210. display: flex;
  19211. flex-direction: row;
  19212. flex-wrap: nowrap;
  19213. align-items: flex-start;
  19214. padding: 0 0 20px;
  19215. }
  19216. .cru_line {
  19217. position: absolute;
  19218. bottom: 0px;
  19219. transition: all 0.5s;
  19220. left: 0px;
  19221. width: 125px;
  19222. margin-left: -25px;
  19223. }
  19224. .isNoMessage {
  19225. width: 20%;
  19226. margin: 25% auto 0;
  19227. }
  19228. .isNoMessage > img {
  19229. width: 100%;
  19230. height: 100%;
  19231. }
  19232. .fullStyle >>> .el-dialog__body {
  19233. height: 100% !important;
  19234. }
  19235. .fullStyle >>> .el-dialog,
  19236. .fullStyle {
  19237. width: 100% !important;
  19238. max-width: 100% !important;
  19239. height: 100% !important;
  19240. margin: 0 !important;
  19241. }
  19242. .full_diy >>> .el-dialog {
  19243. margin: 0 !important;
  19244. height: 100%;
  19245. padding: 4px;
  19246. }
  19247. .full_diy >>> .el-dialog__body {
  19248. height: calc(100% - 100px);
  19249. }
  19250. .full_diy2 >>> .el-dialog__body {
  19251. height: calc(100% - 50px);
  19252. padding: 0;
  19253. }
  19254. .switchCss {
  19255. /* width: 100%; */
  19256. display: flex;
  19257. flex-direction: row;
  19258. flex-wrap: nowrap;
  19259. align-items: center;
  19260. /* justify-content: center; */
  19261. }
  19262. .isClickNav {
  19263. /* color: #499eef; */
  19264. color: #000;
  19265. }
  19266. .commentImg {
  19267. width: 25px;
  19268. height: 25px;
  19269. cursor: pointer;
  19270. }
  19271. .commentImg > img {
  19272. width: 100%;
  19273. height: 100%;
  19274. }
  19275. .comment {
  19276. background: #f9f9f9;
  19277. border-radius: 0 0 4px 4px;
  19278. display: flex;
  19279. flex-direction: row;
  19280. flex-wrap: nowrap;
  19281. align-items: center;
  19282. justify-content: flex-end;
  19283. height: 35px;
  19284. }
  19285. .commentList {
  19286. display: flex;
  19287. flex-direction: row;
  19288. flex-wrap: nowrap;
  19289. align-items: center;
  19290. justify-content: center;
  19291. align-content: center;
  19292. /* margin-left: 15px; */
  19293. /* margin-left: 8px; */
  19294. }
  19295. .scoreImg {
  19296. width: 17px;
  19297. height: 17px;
  19298. }
  19299. .studentDetail {
  19300. display: flex;
  19301. flex-direction: row;
  19302. flex-wrap: nowrap;
  19303. /* align-items: center; */
  19304. align-items: flex-start;
  19305. }
  19306. .tx {
  19307. width: 50px;
  19308. }
  19309. .tx > img {
  19310. width: 100%;
  19311. height: 100%;
  19312. }
  19313. .nameAndTime {
  19314. display: flex;
  19315. flex-direction: column;
  19316. flex-wrap: nowrap;
  19317. align-items: flex-start;
  19318. margin-left: 10px;
  19319. }
  19320. .worksAnswer {
  19321. color: #4078dd;
  19322. margin: 10px 0;
  19323. font-size: 16px;
  19324. position: relative;
  19325. }
  19326. .worksAnswer > img {
  19327. width: 500px;
  19328. height: 300px;
  19329. object-fit: contain;
  19330. margin: 0 auto;
  19331. display: block;
  19332. }
  19333. .commentTop {
  19334. border-bottom: 1px solid #eaeaea;
  19335. padding-bottom: 10px;
  19336. }
  19337. .commentBox {
  19338. padding-top: 15px;
  19339. }
  19340. .pl {
  19341. font-size: 18px;
  19342. }
  19343. .plPerson {
  19344. width: 100%;
  19345. }
  19346. .plName {
  19347. display: flex;
  19348. flex-direction: row;
  19349. flex-wrap: nowrap;
  19350. align-items: baseline;
  19351. color: #78787a;
  19352. width: 100%;
  19353. }
  19354. .deleteComment {
  19355. cursor: pointer;
  19356. margin-left: auto;
  19357. color: #237ade;
  19358. }
  19359. .plContent {
  19360. margin-top: 5px;
  19361. }
  19362. .evalCss {
  19363. background: #fff;
  19364. font-size: 18px;
  19365. }
  19366. .nav {
  19367. color: #9d9d9d;
  19368. padding: 5px 0 15px 20px;
  19369. }
  19370. .middleBox {
  19371. padding: 5px 0 15px 20px;
  19372. }
  19373. .pfBox {
  19374. padding-bottom: 30px;
  19375. }
  19376. .nameAndrate {
  19377. display: flex;
  19378. flex-direction: row;
  19379. flex-wrap: nowrap;
  19380. align-items: center;
  19381. padding-bottom: 10px;
  19382. height: 30px;
  19383. line-height: 30px;
  19384. }
  19385. .nameAndrate > div {
  19386. margin-left: 10px;
  19387. color: #000;
  19388. height: 30px;
  19389. }
  19390. .nameAndrate >>> .el-rate__icon {
  19391. font-size: 28px !important;
  19392. }
  19393. .pfBox > div:nth-child(2) {
  19394. background: #f7f6f9;
  19395. width: 400px;
  19396. min-height: 45px;
  19397. border-radius: 10px;
  19398. font-size: 16px;
  19399. display: flex;
  19400. flex-wrap: wrap;
  19401. align-items: center;
  19402. padding: 10px 20px;
  19403. box-sizing: border-box;
  19404. color: #000;
  19405. }
  19406. .bz {
  19407. display: flex;
  19408. flex-direction: row;
  19409. flex-wrap: nowrap;
  19410. align-items: flex-start;
  19411. }
  19412. .bz > div {
  19413. padding: 0 10px;
  19414. }
  19415. .select_box2_title {
  19416. background: #fff;
  19417. border-radius: 5px;
  19418. padding: 15px 10px;
  19419. box-sizing: border-box;
  19420. margin-bottom: 10px;
  19421. display: flex;
  19422. flex-direction: row;
  19423. flex-wrap: nowrap;
  19424. align-items: center;
  19425. }
  19426. .select_box2_title > div:nth-child(2) {
  19427. margin-left: 10px;
  19428. color: #c4c4c4;
  19429. }
  19430. .select_box2_box {
  19431. display: flex;
  19432. height: 500px;
  19433. }
  19434. .select_box2_img {
  19435. width: calc(100% - 310px);
  19436. height: 100%;
  19437. overflow: auto;
  19438. background: #fff;
  19439. border-radius: 5px;
  19440. }
  19441. .select_box2_img img {
  19442. width: 100%;
  19443. }
  19444. .select_box2_answer {
  19445. background: #fff;
  19446. margin-left: 10px;
  19447. border-radius: 5px;
  19448. width: 300px;
  19449. overflow: auto;
  19450. height: 90%;
  19451. display: flex;
  19452. flex-direction: column;
  19453. align-items: flex-start;
  19454. padding-top: 10px;
  19455. box-sizing: border-box;
  19456. position: relative;
  19457. }
  19458. .select_answer_title {
  19459. padding: 0 0 15px 20px;
  19460. color: #c4c4c4;
  19461. }
  19462. .select_box2_answer_box {
  19463. margin: 0 0 10px 20px;
  19464. width: 85%;
  19465. display: flex;
  19466. flex-direction: row;
  19467. flex-wrap: nowrap;
  19468. align-items: center;
  19469. }
  19470. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  19471. color: #000;
  19472. }
  19473. .upAnswerCss {
  19474. position: absolute;
  19475. bottom: 15px;
  19476. right: 15px;
  19477. }
  19478. .upAnswerCss >>> .el-button {
  19479. width: 95px;
  19480. height: 35px;
  19481. line-height: 35px;
  19482. padding: 0;
  19483. }
  19484. .rightWidthCss {
  19485. width: 60%;
  19486. display: flex;
  19487. flex-direction: row;
  19488. align-items: flex-start;
  19489. }
  19490. .rightAnswer {
  19491. display: flex;
  19492. flex-direction: row;
  19493. flex-wrap: nowrap;
  19494. align-items: center;
  19495. color: red;
  19496. margin-bottom: 31px;
  19497. }
  19498. .rightAnswerCss {
  19499. display: flex;
  19500. flex-direction: column;
  19501. flex-wrap: nowrap;
  19502. padding-top: 60px;
  19503. }
  19504. .blueCss {
  19505. color: #767de1;
  19506. margin-left: 10px;
  19507. }
  19508. .redCss {
  19509. color: red;
  19510. }
  19511. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  19512. color: rgb(0 123 255) !important;
  19513. }
  19514. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  19515. color: rgb(0 123 255) !important;
  19516. }
  19517. .zuoyeYulan {
  19518. padding-top: 0;
  19519. font-size: 18px;
  19520. display: flex;
  19521. align-items: flex-end;
  19522. }
  19523. .buttonA {
  19524. margin-left: 10px;
  19525. padding: 0;
  19526. }
  19527. .displayBox {
  19528. margin-bottom: 10px;
  19529. display: block;
  19530. border-bottom: 3px solid #eee;
  19531. display: flex;
  19532. align-items: center;
  19533. }
  19534. .easy_comment {
  19535. width: calc(100% - 90px);
  19536. margin-left: 10px;
  19537. display: flex;
  19538. flex-wrap: wrap;
  19539. }
  19540. .easy_comment > div {
  19541. border: 1px solid #4a4a4a;
  19542. color: #666;
  19543. border-radius: 15px;
  19544. padding: 5px 10px;
  19545. font-size: 16px;
  19546. margin-bottom: 10px;
  19547. margin-right: 5px;
  19548. cursor: pointer;
  19549. }
  19550. .easy_comment div:hover {
  19551. border: 1px solid #f7ba2a;
  19552. color: #c69217;
  19553. }
  19554. .xuan_right_box {
  19555. padding: 10px;
  19556. background: rgb(247, 247, 247);
  19557. margin: 0 15px 0 30px;
  19558. border-radius: 5px;
  19559. width: 90%;
  19560. }
  19561. .tool_right_box {
  19562. display: flex;
  19563. align-items: center;
  19564. }
  19565. .tool_right_box + .tool_right_box {
  19566. margin-top: 10px;
  19567. }
  19568. .right_box_xuan {
  19569. background: rgb(0 123 255);
  19570. color: #fff;
  19571. border-radius: 5px;
  19572. padding: 5px;
  19573. margin-left: 10px;
  19574. min-width: 95px;
  19575. }
  19576. .pButton:hover {
  19577. opacity: 1 !important;
  19578. }
  19579. .pButton {
  19580. position: fixed;
  19581. text-align: center;
  19582. cursor: pointer;
  19583. z-index: 999;
  19584. right: 20px;
  19585. top: 110px;
  19586. width: 50px;
  19587. height: 50px;
  19588. display: flex;
  19589. align-items: center;
  19590. justify-content: center;
  19591. border-radius: 5px;
  19592. }
  19593. .pzClass {
  19594. width: calc(100% - 340px);
  19595. }
  19596. .newDialogCss {
  19597. /* position: fixed;
  19598. right: 5%;
  19599. top: 50%;
  19600. width: 340px;
  19601. transform: translateY(-50%);
  19602. height: 60%;
  19603. box-shadow: 0px 0 8px 0px #555555;
  19604. border-radius: 15px;
  19605. z-index: 999; */
  19606. position: fixed;
  19607. right: 20px;
  19608. top: 101px;
  19609. width: 330px;
  19610. height: calc(100% - 80px);
  19611. z-index: 999;
  19612. background: #fff;
  19613. border-top-right-radius: 0px;
  19614. border-bottom-right-radius: 0px;
  19615. overflow: hidden;
  19616. }
  19617. .pzTop {
  19618. color: #fff;
  19619. background: #000;
  19620. display: flex;
  19621. flex-direction: row;
  19622. flex-wrap: nowrap;
  19623. align-items: center;
  19624. justify-content: space-between;
  19625. height: 40px;
  19626. border-radius: 15px 15px 0 0;
  19627. user-select: none;
  19628. }
  19629. .pzTop2 .checkbox {
  19630. display: flex;
  19631. align-items: center;
  19632. padding: 5px 30px;
  19633. flex: 0 0 auto;
  19634. font-weight: bold;
  19635. border-bottom: 1px solid #eee;
  19636. justify-content: space-between;
  19637. }
  19638. .pzTop2 .check {
  19639. text-align: center;
  19640. cursor: pointer;
  19641. box-sizing: border-box;
  19642. display: flex;
  19643. }
  19644. .pzTop2 img {
  19645. width: 25px;
  19646. cursor: pointer;
  19647. }
  19648. .pzTop > div:nth-child(1) {
  19649. padding-left: 10px;
  19650. }
  19651. .pzTop > div:nth-child(2) {
  19652. width: 15px;
  19653. height: 15px;
  19654. padding-right: 10px;
  19655. cursor: pointer;
  19656. }
  19657. .pzTop > div:nth-child(2) > img {
  19658. width: 100%;
  19659. height: 100%;
  19660. }
  19661. .pzBox,
  19662. .noPzBox {
  19663. height: calc(100% - 60px);
  19664. /* background: #ededed; */
  19665. background: #fff;
  19666. /* border-radius: 0 0 15px 15px; */
  19667. }
  19668. .noPzBox {
  19669. display: flex;
  19670. flex-direction: column;
  19671. flex-wrap: nowrap;
  19672. justify-content: center;
  19673. align-items: center;
  19674. }
  19675. .pzList {
  19676. background: #f7f7f7;
  19677. width: 90%;
  19678. margin: 0 auto 15px;
  19679. border-radius: 5px;
  19680. }
  19681. .pzNavTop {
  19682. display: flex;
  19683. flex-direction: row;
  19684. flex-wrap: nowrap;
  19685. padding: 10px 10px 0 10px;
  19686. align-items: center;
  19687. }
  19688. .pzDelete {
  19689. cursor: pointer;
  19690. margin-left: auto;
  19691. font-size: 14px;
  19692. color: #afafaf;
  19693. }
  19694. .pzNavTop > div:nth-child(1) {
  19695. background: #3760af;
  19696. width: 35px;
  19697. height: 35px;
  19698. color: #fff;
  19699. text-align: center;
  19700. line-height: 35px;
  19701. border-radius: 50%;
  19702. font-size: 14px;
  19703. }
  19704. .pzNavTop > div:nth-child(2) {
  19705. font-size: 18px;
  19706. color: #959595;
  19707. margin-left: 5px;
  19708. }
  19709. .pzContent {
  19710. padding: 10px;
  19711. word-break: break-word;
  19712. }
  19713. .pzContent audio {
  19714. width: 100%;
  19715. }
  19716. .pzContent audio::-webkit-media-controls-panel {
  19717. background: #fff;
  19718. }
  19719. .pzContent >>> img {
  19720. max-width: 100%;
  19721. }
  19722. .pzListBox {
  19723. padding-top: 15px;
  19724. height: calc(100% - 110px);
  19725. overflow: auto;
  19726. }
  19727. .addPzButton {
  19728. position: relative;
  19729. margin-top: 3px;
  19730. width: 100%;
  19731. }
  19732. .addPzButton .img1 {
  19733. position: absolute;
  19734. top: 50%;
  19735. right: 25px;
  19736. transform: translateY(-50%);
  19737. height: 100%;
  19738. display: flex;
  19739. align-items: center;
  19740. }
  19741. .addPzButton .img1 div {
  19742. display: flex;
  19743. }
  19744. .addPzButton .img1 div img {
  19745. width: 28px;
  19746. margin-left: 10px;
  19747. cursor: pointer;
  19748. }
  19749. .addPzButton .img1 div span {
  19750. font-size: 14px;
  19751. margin: 4px 0 0 3px;
  19752. color: #afafaf;
  19753. }
  19754. .addPz {
  19755. background: #4b79ce;
  19756. width: 100px;
  19757. color: #fff;
  19758. font-size: 12px;
  19759. height: 30px;
  19760. margin: 0 auto;
  19761. text-align: center;
  19762. line-height: 30px;
  19763. border-radius: 10px;
  19764. cursor: pointer;
  19765. }
  19766. .addDialogCss {
  19767. position: fixed;
  19768. width: 600px;
  19769. height: 70%;
  19770. min-height: 450px;
  19771. box-shadow: 0px 0 8px 0px #555555;
  19772. border-radius: 15px;
  19773. z-index: 999;
  19774. left: 50%;
  19775. top: 50%;
  19776. margin: -18% 0 0 -300px;
  19777. }
  19778. .teacherPz {
  19779. display: flex;
  19780. flex-direction: row;
  19781. align-items: center;
  19782. flex-wrap: nowrap;
  19783. }
  19784. .teacherPzImg {
  19785. width: 30px;
  19786. height: 30px;
  19787. }
  19788. .teacherPzImg > img {
  19789. width: 100%;
  19790. height: 100%;
  19791. }
  19792. .addPzBox {
  19793. height: calc(100% - 40px);
  19794. background: #ededed;
  19795. }
  19796. .pzAudioClass {
  19797. margin: 15px 14px;
  19798. background: #fff;
  19799. height: 100%;
  19800. display: flex;
  19801. justify-content: center;
  19802. align-items: center;
  19803. }
  19804. .pzConText {
  19805. width: 95%;
  19806. height: 100%;
  19807. margin: 10px auto 0;
  19808. border: none;
  19809. background: #fff;
  19810. border-radius: 0px;
  19811. }
  19812. .pzConText >>> .text {
  19813. height: calc(100% - 82px);
  19814. }
  19815. .addTextCss {
  19816. background: #4b79ce;
  19817. width: 80px;
  19818. height: 30px;
  19819. text-align: center;
  19820. color: #fff;
  19821. line-height: 30px;
  19822. border-radius: 10px;
  19823. margin: 10px auto 0;
  19824. cursor: pointer;
  19825. }
  19826. .pzConText:focus-visible {
  19827. border: none !important;
  19828. }
  19829. .maxWidth {
  19830. width: 1000px;
  19831. }
  19832. .noPz {
  19833. width: 150px;
  19834. margin: 0 auto 20%;
  19835. }
  19836. .noPz > img {
  19837. width: 100%;
  19838. height: 100%;
  19839. }
  19840. .pzList .time {
  19841. text-align: right;
  19842. box-sizing: border-box;
  19843. padding: 0 10px 10px 0px;
  19844. color: #949494;
  19845. font-size: 14px;
  19846. }
  19847. /* table 样式 */
  19848. .cont >>> table {
  19849. border-top: 1px solid #ccc;
  19850. border-left: 1px solid #ccc;
  19851. }
  19852. .cont >>> table td,
  19853. .cont >>> table th {
  19854. border-bottom: 1px solid #ccc;
  19855. border-right: 1px solid #ccc;
  19856. /* padding: 20px 5px; */
  19857. padding: 5px 10px;
  19858. max-width: 0px;
  19859. height: 30px;
  19860. vertical-align: baseline;
  19861. box-sizing: border-box;
  19862. }
  19863. .cont >>> table th {
  19864. border-bottom: 2px solid #ccc;
  19865. text-align: center;
  19866. }
  19867. /* blockquote 样式 */
  19868. .cont >>> blockquote {
  19869. display: block;
  19870. border-left: 8px solid #d0e5f2;
  19871. padding: 5px 10px;
  19872. margin: 10px 0;
  19873. line-height: 1.4;
  19874. font-size: 100%;
  19875. background-color: #f1f1f1;
  19876. }
  19877. /* code 样式 */
  19878. .cont >>> code {
  19879. display: inline-block;
  19880. /* *display: inline; */
  19881. zoom: 1;
  19882. background-color: #f1f1f1;
  19883. border-radius: 3px;
  19884. padding: 3px 5px;
  19885. margin: 0 3px;
  19886. }
  19887. .cont >>> pre code {
  19888. display: block;
  19889. }
  19890. /* ul ol 样式 */
  19891. .cont >>> ul,
  19892. ol {
  19893. margin: 10px 0 10px 20px;
  19894. }
  19895. .addPzCheck {
  19896. display: flex;
  19897. flex-direction: row;
  19898. flex-wrap: nowrap;
  19899. padding: 10px 15px 0;
  19900. }
  19901. .addPzCheck span {
  19902. cursor: pointer;
  19903. padding-bottom: 5px;
  19904. font-weight: bold;
  19905. }
  19906. .addPzCheck span + span {
  19907. margin-left: 10px;
  19908. }
  19909. .addPzCheck .isChooseActive {
  19910. color: #3e88f4;
  19911. border-bottom: 2px solid #2f80f3;
  19912. }
  19913. /* code 样式 */
  19914. .cont {
  19915. /* -webkit-user-modify: read-write; */
  19916. overflow-wrap: break-word;
  19917. -webkit-line-break: after-white-space;
  19918. }
  19919. .scoreBox,
  19920. .scoreDetailBox {
  19921. display: flex;
  19922. align-items: center;
  19923. justify-content: flex-start;
  19924. margin-top: 20px;
  19925. font-size: 18px;
  19926. width: 100%;
  19927. }
  19928. .scoreBox .t,
  19929. .scoreDetailBox .t {
  19930. margin-right: 10px;
  19931. width: 100px;
  19932. text-align: right;
  19933. }
  19934. .scoreDetailBox {
  19935. align-items: flex-start;
  19936. }
  19937. .scoreDetailBox >>> .el-textarea {
  19938. width: calc(100% - 200px);
  19939. }
  19940. .scoreBox >>> .el-input {
  19941. width: 130px;
  19942. font-size: 38px;
  19943. }
  19944. .scoreBox >>> .el-input__inner {
  19945. height: 60px;
  19946. }
  19947. .answerScore {
  19948. position: absolute;
  19949. top: 10px;
  19950. right: 10px;
  19951. background: #0000008f;
  19952. border-radius: 5px;
  19953. padding: 3px 5px;
  19954. font-size: 14px;
  19955. color: #fff;
  19956. cursor: pointer;
  19957. }
  19958. .open_box .switch_box {
  19959. width: 100%;
  19960. margin: 0 auto;
  19961. display: flex;
  19962. justify-content: space-between;
  19963. }
  19964. .open_box .switch_box + .switch_box {
  19965. margin-top: 10px;
  19966. }
  19967. .deleteImg {
  19968. width: 25px !important;
  19969. height: 25px !important;
  19970. cursor: pointer;
  19971. position: absolute;
  19972. top: 10px;
  19973. right: 10px;
  19974. }
  19975. .deleteImg2 {
  19976. width: 15px !important;
  19977. height: 15px !important;
  19978. top: 5px;
  19979. right: 5px;
  19980. }
  19981. .rightW {
  19982. right: 40px;
  19983. }
  19984. .drawPBox {
  19985. display: flex;
  19986. flex-direction: column;
  19987. position: relative;
  19988. }
  19989. .drawPBox span {
  19990. font-size: 18px;
  19991. color: #606266;
  19992. padding-bottom: 10px;
  19993. margin: 10px 0;
  19994. border-bottom: 1px solid #eaeaea;
  19995. }
  19996. .drawPBox img {
  19997. width: 500px;
  19998. height: 300px;
  19999. object-fit: contain;
  20000. cursor: pointer;
  20001. margin: 0 auto;
  20002. }
  20003. .sentenBox {
  20004. background: #fff;
  20005. height: 450px;
  20006. overflow: auto;
  20007. background-image: url("../assets/icon/conSentences/stuBg.png");
  20008. background-position: 102%;
  20009. background-repeat: no-repeat;
  20010. background-size: 60%;
  20011. }
  20012. .addSen {
  20013. background: #409efe;
  20014. width: 90px;
  20015. color: #fff;
  20016. height: 35px;
  20017. text-align: center;
  20018. line-height: 35px;
  20019. border-radius: 5px;
  20020. float: right;
  20021. margin: 10px 20px 0 0;
  20022. cursor: pointer;
  20023. }
  20024. .sentenTop {
  20025. display: flex;
  20026. flex-direction: row;
  20027. flex-wrap: nowrap;
  20028. align-items: center;
  20029. padding: 55px 0 0 20px;
  20030. box-sizing: border-box;
  20031. }
  20032. .sentenTop > div:nth-child(2) {
  20033. width: 300px;
  20034. margin: 0 15px;
  20035. }
  20036. .sentenTop > div:nth-child(3) {
  20037. background: #409efe;
  20038. color: #fff;
  20039. width: 65px;
  20040. height: 35px;
  20041. text-align: center;
  20042. line-height: 35px;
  20043. border-radius: 5px;
  20044. cursor: pointer;
  20045. }
  20046. .cardList,
  20047. .cardList1 {
  20048. padding: 10px 0 10px 0;
  20049. display: flex;
  20050. flex-direction: row;
  20051. flex-wrap: wrap;
  20052. align-items: center;
  20053. box-sizing: border-box;
  20054. border-bottom: 1px solid #f4f4f4;
  20055. width: 98%;
  20056. margin: 0 auto;
  20057. min-width: 60%;
  20058. max-width: 85%;
  20059. }
  20060. .cardList1 {
  20061. padding: 10px 0 10px 10px !important;
  20062. margin: 0 !important;
  20063. }
  20064. .cardBox {
  20065. display: flex;
  20066. flex-direction: row;
  20067. flex-wrap: wrap;
  20068. align-items: center;
  20069. align-content: center;
  20070. }
  20071. .cardBox > div {
  20072. margin-bottom: 10px;
  20073. }
  20074. .isCard,
  20075. .isChooseCard,
  20076. .noCard,
  20077. .isCard1 {
  20078. width: 130px;
  20079. height: 60px;
  20080. text-align: center;
  20081. line-height: 60px;
  20082. font-size: 20px;
  20083. cursor: pointer;
  20084. background-image: url("../assets/icon/conSentences/titleBorder.png");
  20085. background-size: cover;
  20086. transition: all 2s;
  20087. margin-right: 20px;
  20088. }
  20089. .isCard > div,
  20090. .noCard > div,
  20091. .isCard1 > div {
  20092. white-space: nowrap;
  20093. overflow: hidden;
  20094. text-overflow: ellipsis;
  20095. width: 75%;
  20096. margin: 0 auto;
  20097. }
  20098. .noCard {
  20099. background-image: none;
  20100. }
  20101. .isCard1 {
  20102. background-image: url("../assets/icon/conSentences/answerBorder.png");
  20103. }
  20104. .isChooseCard {
  20105. background-image: none;
  20106. border: 1px dashed #b9b9b9;
  20107. border-radius: 10px;
  20108. }
  20109. .card {
  20110. width: 130px;
  20111. height: 60px;
  20112. }
  20113. .card > img {
  20114. width: 100%;
  20115. height: 100%;
  20116. }
  20117. .rightCardBox {
  20118. margin: 10px 0 0 10px;
  20119. }
  20120. .rightCardBox > div:nth-child(1) {
  20121. margin-bottom: 10px;
  20122. }
  20123. .cardCss {
  20124. display: flex;
  20125. flex-direction: column;
  20126. flex-wrap: nowrap;
  20127. align-items: center;
  20128. border-bottom: 3px solid #b4c3d3;
  20129. padding: 0 0 5px 0;
  20130. margin-right: 10px;
  20131. }
  20132. .cardCss > div:nth-child(2) {
  20133. background: #5b7b9d;
  20134. color: #fff;
  20135. width: 20px;
  20136. height: 20px;
  20137. border-radius: 50%;
  20138. text-align: center;
  20139. line-height: 20px;
  20140. }
  20141. .isWrong {
  20142. display: flex;
  20143. flex-direction: row;
  20144. flex-wrap: nowrap;
  20145. align-content: center;
  20146. align-items: center;
  20147. }
  20148. .answerRight {
  20149. width: 25%;
  20150. }
  20151. .isTj {
  20152. display: flex;
  20153. flex-direction: row;
  20154. flex-wrap: nowrap;
  20155. align-items: center;
  20156. }
  20157. .isTj > div:nth-child(2) {
  20158. color: #727070;
  20159. margin-left: 10px;
  20160. }
  20161. .isTjImg {
  20162. width: 30px;
  20163. height: 30px;
  20164. }
  20165. .isTjImg > img {
  20166. width: 100%;
  20167. height: 100%;
  20168. }
  20169. .cardAnswerBox {
  20170. font-size: 18px;
  20171. width: 97%;
  20172. border: 5px;
  20173. padding: 0;
  20174. border-radius: 5px;
  20175. margin: 10px auto;
  20176. word-break: break-word;
  20177. }
  20178. .w_name {
  20179. margin-bottom: 10px;
  20180. }
  20181. .w_name span {
  20182. font-size: 16px;
  20183. }
  20184. .w_teachert {
  20185. width: 50px !important;
  20186. position: absolute;
  20187. height: auto !important;
  20188. z-index: 10;
  20189. right: 25px;
  20190. top: -25px;
  20191. }
  20192. .group_workBox {
  20193. }
  20194. .group_workBox + .group_workBox {
  20195. margin-top: 20px;
  20196. }
  20197. .group_box {
  20198. padding-bottom: 20px;
  20199. border-bottom: 2px solid #f0f0f0;
  20200. }
  20201. .group_title {
  20202. display: flex;
  20203. align-items: center;
  20204. justify-content: space-between;
  20205. width: 95%;
  20206. }
  20207. .group_name {
  20208. background-image: url(../assets/icon/groupN.png);
  20209. width: 220px;
  20210. background-size: 100% 100%;
  20211. height: 67px;
  20212. padding: 0 20px 0 43px;
  20213. box-sizing: border-box;
  20214. line-height: 63px;
  20215. color: #fff;
  20216. overflow: hidden;
  20217. white-space: nowrap;
  20218. text-overflow: ellipsis;
  20219. }
  20220. .group_work {
  20221. width: 100%;
  20222. padding: 0 10px;
  20223. box-sizing: border-box;
  20224. display: flex;
  20225. flex-wrap: wrap;
  20226. }
  20227. .g_d_box {
  20228. display: flex;
  20229. flex-flow: wrap;
  20230. justify-content: space-around;
  20231. }
  20232. .g_d_box .isChair {
  20233. background-image: url(../assets/avatar.png) !important;
  20234. }
  20235. .g_d_group {
  20236. width: 500px;
  20237. margin-bottom: 80px;
  20238. }
  20239. .g_d_group_chair {
  20240. display: flex;
  20241. align-items: center;
  20242. justify-content: center;
  20243. }
  20244. .g_d_group_chair > div + div {
  20245. margin-left: 30px;
  20246. }
  20247. .g_d_group_chair > div,
  20248. .g_d_group_chair2 > div {
  20249. display: flex;
  20250. flex-direction: column;
  20251. align-items: center;
  20252. }
  20253. .g_d_group_chair > div > span:nth-child(1),
  20254. .g_d_group_chair2 > div > span:nth-child(1) {
  20255. background-image: url(../assets/icon/chair.png);
  20256. width: 50px;
  20257. height: 50px;
  20258. display: block;
  20259. background-size: 100% 100%;
  20260. }
  20261. .g_d_group_tableBox {
  20262. display: flex;
  20263. align-items: center;
  20264. justify-content: center;
  20265. }
  20266. .g_d_group_chair2 {
  20267. display: flex;
  20268. flex-direction: column;
  20269. align-items: center;
  20270. justify-content: center;
  20271. }
  20272. .g_d_group_chair2 > div + div {
  20273. margin-top: 10px;
  20274. }
  20275. .g_d_group_table {
  20276. background-image: url(../assets/icon/groupBg.png);
  20277. width: 354px;
  20278. height: 196px;
  20279. background-size: 100% 100%;
  20280. display: flex;
  20281. align-items: center;
  20282. justify-content: center;
  20283. flex-direction: column;
  20284. color: #fff;
  20285. }
  20286. .g_d_group_table > div:nth-child(1) {
  20287. font-size: 24px;
  20288. margin-bottom: 5px;
  20289. }
  20290. .g_d_group_table > div:nth-child(2) div {
  20291. cursor: pointer;
  20292. background: #2e77bf;
  20293. padding: 4px 10px;
  20294. border-radius: 5px;
  20295. }
  20296. .groupBox {
  20297. }
  20298. .groupContent + .groupContent {
  20299. margin-top: 30px;
  20300. }
  20301. .groupTitle {
  20302. font-size: 24px;
  20303. color: rgb(80, 80, 80);
  20304. margin-bottom: 20px;
  20305. }
  20306. .groupName {
  20307. display: flex;
  20308. align-items: center;
  20309. }
  20310. .groupn {
  20311. font-size: 15px;
  20312. margin-right: 10px;
  20313. }
  20314. .groupName + .groupName {
  20315. margin-top: 15px;
  20316. }
  20317. .groupBtn {
  20318. margin-left: 10px;
  20319. }
  20320. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  20321. text-align: left;
  20322. }
  20323. .g_d_btnBox {
  20324. display: flex;
  20325. justify-content: flex-end;
  20326. align-items: center;
  20327. margin-bottom: 20px;
  20328. }
  20329. .updateChair {
  20330. position: relative;
  20331. }
  20332. .updateChairBtn {
  20333. position: absolute;
  20334. width: 50px;
  20335. height: 50px;
  20336. overflow: hidden;
  20337. /* display: flex; */
  20338. align-items: center;
  20339. justify-content: center;
  20340. background: #00000087;
  20341. color: #fff;
  20342. border-radius: 50px;
  20343. display: none;
  20344. cursor: pointer;
  20345. }
  20346. .updateChair:hover .updateChairBtn {
  20347. display: flex;
  20348. }
  20349. .group_staic_box {
  20350. display: flex;
  20351. padding: 30px 40px 10px;
  20352. flex-wrap: wrap;
  20353. }
  20354. .group_staic {
  20355. /* width: 50%; */
  20356. margin-bottom: 20px;
  20357. display: flex;
  20358. align-items: center;
  20359. }
  20360. .group_staic span:nth-child(1) {
  20361. width: 150px;
  20362. text-align: right;
  20363. margin-right: 15px;
  20364. }
  20365. .group_staic span:nth-child(2) {
  20366. background: rgb(0 123 255);
  20367. color: #fff;
  20368. border-radius: 5px;
  20369. padding: 5px;
  20370. }
  20371. .codeFileBox {
  20372. height: 300px;
  20373. background: #fff;
  20374. display: flex;
  20375. align-items: center;
  20376. justify-content: center;
  20377. }
  20378. .codeFileBox img {
  20379. width: 200px;
  20380. margin: 0;
  20381. height: auto;
  20382. }
  20383. .codeFileBox div {
  20384. background: rgb(80, 142, 226);
  20385. color: #fff;
  20386. padding: 10px 20px;
  20387. border-radius: 25px;
  20388. cursor: pointer;
  20389. margin-left: 15px;
  20390. }
  20391. .radioBox {
  20392. display: flex;
  20393. flex-direction: column;
  20394. flex-wrap: nowrap;
  20395. align-items: flex-start;
  20396. }
  20397. .radioBox > div {
  20398. margin: 10px 0 0 10px;
  20399. }
  20400. /* .radioBox >>> .el-radio__input,
  20401. .radioBox >>> .el-checkbox__inner {
  20402. margin-left: 10px;
  20403. } */
  20404. .radioBox >>> .el-radio__label,
  20405. .radioBox >>> .el-checkbox__label {
  20406. display: flex;
  20407. align-items: center;
  20408. width: 100%;
  20409. }
  20410. .radioBox >>> .el-radio__label > span {
  20411. width: 100%;
  20412. display: -webkit-box;
  20413. overflow: hidden;
  20414. white-space: normal !important;
  20415. text-overflow: ellipsis;
  20416. word-wrap: break-word;
  20417. }
  20418. .inImg {
  20419. width: 100px;
  20420. cursor: pointer;
  20421. }
  20422. .inImg > img {
  20423. width: 100%;
  20424. height: 100%;
  20425. object-fit: cover;
  20426. }
  20427. .timuImgBox {
  20428. margin: 10px 0;
  20429. display: flex;
  20430. flex-direction: column;
  20431. flex-wrap: wrap;
  20432. align-items: flex-start;
  20433. }
  20434. .timuImg {
  20435. width: 150px;
  20436. margin: 5px 0;
  20437. cursor: pointer;
  20438. }
  20439. .timuImg > img {
  20440. width: 100%;
  20441. height: 100%;
  20442. object-fit: cover;
  20443. }
  20444. .worksTop {
  20445. display: flex;
  20446. flex-direction: row;
  20447. align-items: flex-end;
  20448. }
  20449. .corOpen {
  20450. margin: 0 0 0 10px;
  20451. font-size: 14px;
  20452. cursor: pointer;
  20453. color: #505050;
  20454. }
  20455. .corOpen:hover {
  20456. color: #499eef;
  20457. }
  20458. .navCorOpenBox {
  20459. display: flex;
  20460. flex-direction: row;
  20461. align-items: center;
  20462. justify-content: space-between;
  20463. height: 55px;
  20464. background: #ffffff;
  20465. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  20466. border-radius: 8px 8px 0px 0px;
  20467. z-index: 9;
  20468. position: relative;
  20469. }
  20470. .navCorOpen {
  20471. padding-right: 15px;
  20472. cursor: pointer;
  20473. width: 45px;
  20474. display: flex;
  20475. }
  20476. .navCorOpen > img {
  20477. width: 100%;
  20478. height: 100%;
  20479. }
  20480. .mlImg {
  20481. width: 45px !important;
  20482. min-width: 45px;
  20483. cursor: pointer;
  20484. transform: rotate(180deg);
  20485. }
  20486. .mlImg > img {
  20487. width: 100%;
  20488. height: 100%;
  20489. }
  20490. .navLeftCss {
  20491. width: 100% !important;
  20492. left: 0 !important;
  20493. }
  20494. .isContentCss {
  20495. width: 100% !important;
  20496. }
  20497. .isAllWidth {
  20498. width: 100% !important;
  20499. }
  20500. .group_switch {
  20501. margin-right: 10px;
  20502. height: 30px;
  20503. display: flex;
  20504. align-items: center;
  20505. }
  20506. .group_switch > span {
  20507. margin-right: 5px;
  20508. }
  20509. .fileC_box {
  20510. padding-top: 15px;
  20511. }
  20512. .fileC_box > .fileC_title {
  20513. padding: 10px 5px 14px 11px;
  20514. border-top: 1px solid #cad1dc;
  20515. font-size: 14px;
  20516. font-weight: 400;
  20517. color: #cad1dc;
  20518. width: 88%;
  20519. margin: 0 auto;
  20520. }
  20521. .pl_select_box {
  20522. height: 40px;
  20523. line-height: 40px;
  20524. width: 100%;
  20525. cursor: pointer;
  20526. padding: 0 20px;
  20527. box-sizing: border-box;
  20528. border-radius: 5px;
  20529. border: 1px solid #d6d6d6;
  20530. white-space: nowrap;
  20531. overflow: hidden;
  20532. text-overflow: ellipsis;
  20533. background: #fff;
  20534. text-align: left;
  20535. }
  20536. .newButton {
  20537. width: 102px;
  20538. height: 36px;
  20539. background: #e7ebf1;
  20540. border-radius: 4px;
  20541. color: #0e1e33;
  20542. font-weight: 400;
  20543. font-size: 14px;
  20544. border: none;
  20545. float: right;
  20546. margin-left: 10px;
  20547. }
  20548. .el-table >>> .even_row {
  20549. background-color: #f0f4fa;
  20550. }
  20551. .stageBoxCss,
  20552. .stageBoxIsCss {
  20553. display: flex;
  20554. flex-direction: row;
  20555. flex-wrap: nowrap;
  20556. align-items: center;
  20557. height: 50px;
  20558. border-bottom: 1px solid #e2f5fc;
  20559. cursor: pointer;
  20560. width: 100%;
  20561. }
  20562. .stageBoxIsCss {
  20563. background: #0061ff;
  20564. color: #fff;
  20565. border-radius: 8px;
  20566. }
  20567. .stageItemTitle {
  20568. display: flex;
  20569. flex-direction: row;
  20570. flex-wrap: nowrap;
  20571. align-items: center;
  20572. margin-left: 15px;
  20573. width: calc(100% - 50px);
  20574. }
  20575. .stageItemTitle > div:first-child {
  20576. font-size: 16px;
  20577. font-weight: bold;
  20578. min-width: 55px;
  20579. }
  20580. .stageItemTitle > div:last-child {
  20581. font-size: 15px;
  20582. font-weight: 600;
  20583. max-width: 242px;
  20584. white-space: nowrap;
  20585. overflow: hidden;
  20586. text-overflow: ellipsis;
  20587. word-break: break-word;
  20588. width: calc(100% - 55px);
  20589. }
  20590. .closeTri,
  20591. .closeTri1 {
  20592. min-width: 15px;
  20593. width: 15px;
  20594. height: 15px;
  20595. }
  20596. .closeTri1 {
  20597. padding-left: 10px;
  20598. cursor: pointer;
  20599. }
  20600. .closeTri > img,
  20601. .closeTri1 > img {
  20602. width: 100%;
  20603. height: 100%;
  20604. }
  20605. .stageChild,
  20606. .toolChild {
  20607. height: 0;
  20608. overflow: hidden;
  20609. transition: all 0.5s;
  20610. }
  20611. .toolChild {
  20612. margin: 0 0 0 17px;
  20613. padding: 0 0 0 20px;
  20614. border-left: 1px solid #d7d7d7;
  20615. }
  20616. .gjCss {
  20617. display: flex;
  20618. flex-direction: row;
  20619. flex-wrap: nowrap;
  20620. align-items: center;
  20621. padding: 15px 0;
  20622. box-sizing: border-box;
  20623. font-size: 14px;
  20624. cursor: pointer;
  20625. }
  20626. .toolChild > div {
  20627. position: relative;
  20628. }
  20629. .toolChild > div::before {
  20630. content: "";
  20631. width: 15px;
  20632. height: 1px;
  20633. background: #cad1dc;
  20634. position: absolute;
  20635. top: 24px;
  20636. left: -20px;
  20637. display: block;
  20638. }
  20639. .isGjCss {
  20640. color: #0061ff;
  20641. }
  20642. .navItem {
  20643. background: #ffffff;
  20644. border-radius: 4px;
  20645. width: 100%;
  20646. margin: 10px auto 0;
  20647. position: relative;
  20648. height: 48px;
  20649. display: flex;
  20650. flex-direction: row;
  20651. flex-wrap: nowrap;
  20652. align-items: center;
  20653. }
  20654. .navItemList {
  20655. display: flex;
  20656. flex-direction: row;
  20657. flex-wrap: nowrap;
  20658. align-items: center;
  20659. padding: 0 13px;
  20660. cursor: pointer;
  20661. width: calc(100% - 60px);
  20662. height: 100%;
  20663. }
  20664. .navItemList > div:first-child {
  20665. min-width: 60px;
  20666. }
  20667. .navItemList > div:last-child {
  20668. width: calc(100% - 80px);
  20669. white-space: nowrap;
  20670. overflow: hidden;
  20671. text-overflow: ellipsis;
  20672. word-break: break-word;
  20673. }
  20674. /* .isItemList > div {
  20675. color: #fff !important;
  20676. } */
  20677. .tool_work_box {
  20678. width: 100%;
  20679. padding: 0 37px 0;
  20680. box-sizing: border-box;
  20681. }
  20682. .tool_box {
  20683. width: 100%;
  20684. }
  20685. .tool_type_box {
  20686. display: flex;
  20687. flex-direction: row;
  20688. align-items: baseline;
  20689. flex-wrap: nowrap;
  20690. justify-content: flex-start;
  20691. position: relative;
  20692. }
  20693. .toolSort {
  20694. display: flex;
  20695. flex-direction: row;
  20696. flex-wrap: wrap;
  20697. justify-content: flex-start;
  20698. align-items: flex-start;
  20699. }
  20700. .toolSort > div {
  20701. margin: 0 45px 0 0;
  20702. width: auto;
  20703. }
  20704. .tools {
  20705. width: 100%;
  20706. display: flex;
  20707. flex-direction: column;
  20708. flex-wrap: nowrap;
  20709. align-items: flex-start;
  20710. }
  20711. .whiteBIcon {
  20712. width: 80px;
  20713. cursor: pointer;
  20714. display: flex;
  20715. flex-direction: column;
  20716. flex-wrap: nowrap;
  20717. align-items: center;
  20718. font-size: 14px;
  20719. }
  20720. .whiteBIcon > img {
  20721. width: 100%;
  20722. height: 100%;
  20723. }
  20724. .whiteBIcon > img {
  20725. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  20726. border-radius: 15px;
  20727. }
  20728. .check {
  20729. /* width: 20px;
  20730. height: 20px; */
  20731. cursor: pointer;
  20732. margin: 10px 0;
  20733. }
  20734. .checkDiv {
  20735. display: flex;
  20736. align-items: center;
  20737. }
  20738. .checkDiv span {
  20739. margin-left: 5px;
  20740. color: #858585;
  20741. }
  20742. .check img {
  20743. width: 20px;
  20744. height: 20px;
  20745. }
  20746. .lockTaskIcon {
  20747. width: 20px;
  20748. height: 20px;
  20749. position: absolute;
  20750. right: 10px;
  20751. top: 15px;
  20752. }
  20753. .lockTaskIcon > img {
  20754. width: 100%;
  20755. height: 100%;
  20756. }
  20757. .pick_box {
  20758. display: flex;
  20759. align-items: flex-start;
  20760. flex-wrap: wrap;
  20761. }
  20762. .selectBox {
  20763. width: 110px;
  20764. margin-left: 10px;
  20765. margin: 0 10px 0 auto;
  20766. }
  20767. .selectBox >>> .el-input__inner {
  20768. height: 30px;
  20769. line-height: 30px;
  20770. }
  20771. .selectBox >>> .el-input__icon {
  20772. line-height: 30px;
  20773. }
  20774. .sentenceTitle {
  20775. display: flex;
  20776. flex-direction: row;
  20777. flex-wrap: nowrap;
  20778. align-items: center;
  20779. }
  20780. .sentenceTitle::before {
  20781. content: attr(index);
  20782. background: #3681fc;
  20783. border-radius: 50%;
  20784. color: #fff;
  20785. width: 25px;
  20786. height: 25px;
  20787. min-width: 25px;
  20788. min-height: 25px;
  20789. text-align: center;
  20790. line-height: 25px;
  20791. margin-right: 5px;
  20792. }
  20793. </style>