studyStudent.vue 794 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div
  4. class="pb_content_body"
  5. style="
  6. display: flex;
  7. height: 900px;
  8. position: relative;
  9. padding: 20px 0 20px 20px;
  10. box-sizing: border-box;
  11. "
  12. >
  13. <div class="btnAllNT">
  14. <!-- <img src="../../assets/icon/learn/screen.png" @click="allScrell" /> -->
  15. <img
  16. v-if="
  17. courseDetail.userid == userid ||
  18. (courseDetail.course_teacher &&
  19. courseDetail.course_teacher.indexOf(userid) != -1)
  20. "
  21. src="../assets/icon/learn/addTool.png"
  22. @click="openToolAll"
  23. style="position: relative"
  24. />
  25. </div>
  26. <div
  27. class="pButton"
  28. style="left: 0; top: 140px"
  29. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  30. @click="setContent2(true)"
  31. >
  32. <!-- 批 , getCourseDetail()-->
  33. <img
  34. src="../assets/icon/newIcons/isRight.png"
  35. style="width: 45px"
  36. alt=""
  37. />
  38. </div>
  39. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  40. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  41. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  42. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  43. <div
  44. style="
  45. max-width: calc(100% - 40px);
  46. width: auto;
  47. white-space: nowrap;
  48. overflow: hidden;
  49. text-overflow: ellipsis;
  50. word-break: break-word;
  51. display: block;
  52. "
  53. >
  54. <el-tooltip
  55. effect="light"
  56. :content="courseDetail.title"
  57. placement="top"
  58. >
  59. <div class="ctitle">
  60. {{ courseDetail.title }}
  61. </div>
  62. </el-tooltip>
  63. </div>
  64. <el-tooltip effect="light" content="收缩" placement="top">
  65. <div class="mlImg" @click="setContent2(false)">
  66. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  67. </div>
  68. </el-tooltip>
  69. </div>
  70. <div
  71. class="inviteBox"
  72. v-if="tcid && inviteCode"
  73. style="padding: 0 0 8px 0"
  74. >
  75. <div>
  76. <span>随机码:{{ inviteCode }}</span>
  77. </div>
  78. </div>
  79. </div>
  80. <div class="cru_selectBox">
  81. <div
  82. style="background: #fff; margin: 0 10px; border-radius: 8px"
  83. v-for="(item, stageIndex) in navList"
  84. :key="stageIndex"
  85. >
  86. <div
  87. class="stageBoxCss"
  88. @click="get(stageIndex)"
  89. :class="{
  90. // stageBoxIsCss: stageIndex == courseType,
  91. }"
  92. >
  93. <div class="stageItemTitle" :class="{ stageNav: item.isOpen }">
  94. <div>阶段{{ stageIndex + 1 }}</div>
  95. <el-tooltip
  96. effect="light"
  97. :content="item.dyName"
  98. placement="top"
  99. >
  100. <div>
  101. {{ item.dyName }}
  102. </div>
  103. </el-tooltip>
  104. </div>
  105. <!-- <div class="closeTri" v-if="stageIndex == courseType" :style="{transform:item.isOpen ? 'rotate(0deg)' : 'rotate(-90deg)'}">
  106. <img src="../assets/icon/newIcons/downC.png" alt />
  107. </div> -->
  108. <div class="closeTri" :style="{transform:item.isOpen ? 'rotate(90deg)' : 'rotate(0deg)'}">
  109. <img src="../assets/icon/newIcons/right.png" alt />
  110. </div>
  111. </div>
  112. <div class="stageChild" :class="{ navActive: item.isOpen }">
  113. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  114. <div
  115. class="navItem"
  116. :class="{
  117. openTaskActive:
  118. navIndex == taskCount &&
  119. nav.id == navId &&
  120. stageIndex == courseType,
  121. }"
  122. >
  123. <div v-if="nav.tool[0].tool != undefined">
  124. <div
  125. class="closeTri1"
  126. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  127. @click="openTask(stageIndex, navIndex, nav.id)"
  128. >
  129. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../assets/icon/newIcons/bDown2.png" alt />
  130. </div>
  131. <div
  132. class="closeTri1"
  133. v-else
  134. @click="openTask(stageIndex, navIndex, nav.id)"
  135. >
  136. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../assets/icon/newIcons/right.png" alt />
  137. </div>
  138. </div>
  139. <div v-else class="noToolBlue"></div>
  140. <div
  141. @click="openTask(stageIndex, navIndex, nav.id)"
  142. class="navItemList"
  143. :class="{
  144. isItemList:
  145. navIndex == taskCount &&
  146. nav.id == navId &&
  147. stageIndex == courseType,
  148. }"
  149. >
  150. <div>任务{{ navIndex + 1 }}:</div>
  151. <el-tooltip
  152. effect="light"
  153. :content="nav.taskName"
  154. placement="top"
  155. >
  156. <div
  157. :style="{
  158. width:
  159. IsLookOpen &&
  160. !(
  161. navIndex == taskCount &&
  162. nav.id == navId &&
  163. stageIndex == courseType
  164. )
  165. ? 'calc(100% - 75px)'
  166. : 'auto',
  167. }"
  168. >
  169. {{ nav.taskName }}
  170. </div>
  171. </el-tooltip>
  172. </div>
  173. <div class="lockTaskIcon">
  174. <img
  175. src="../assets/lock.png"
  176. v-if="IsLookOpen && !nav.isLook"
  177. alt=""
  178. />
  179. </div>
  180. </div>
  181. <div
  182. v-if="nav.tool[0].tool != undefined"
  183. class="toolChild"
  184. :class="{ toolActive: nav.isOpen }"
  185. >
  186. <div v-for="(t, toolIndex) in nav.tool" :key="toolIndex">
  187. <div
  188. class="gjCss"
  189. :class="{ isGjCss: t.isTool }"
  190. @click="jumpGj(stageIndex, navIndex, toolIndex, nav.id)"
  191. >
  192. <div>工具{{ toolIndex + 1 }}:</div>
  193. <div v-if="t.tool == 58">模拟驾驶</div>
  194. <div v-if="t.tool == 59">路径搜索</div>
  195. <div v-if="t.tool == 60">深度学习</div>
  196. <div v-if="t.tool == 10">倒计时</div>
  197. <div v-if="t.tool == 65">挑人</div>
  198. <div v-if="t.tool == 7">思维网格</div>
  199. <div v-if="t.tool == 1">电子白板</div>
  200. <div v-if="t.tool == 52">文档</div>
  201. <div v-if="t.tool == 3">思维导图</div>
  202. <div v-if="t.tool == 48">表格</div>
  203. <div v-if="t.tool == 49">学生分组</div>
  204. <div v-if="t.tool == 4">问卷调查</div>
  205. <div v-if="t.tool == 45">选择题</div>
  206. <div v-if="t.tool == 15">问答</div>
  207. <div v-if="t.tool == 16">作业提交</div>
  208. <div v-if="t.tool == 50">批量上传</div>
  209. <div v-if="t.tool == 41">选择匹配</div>
  210. <div v-if="t.tool == 47">排序</div>
  211. <div v-if="t.tool == 40">个人评价</div>
  212. <div v-if="t.tool == 18">训练平台</div>
  213. <div v-if="t.tool == 21">AIoT Blockly</div>
  214. <div v-if="t.tool == 23">AI Python</div>
  215. <div v-if="t.tool == 24">AI Blockly</div>
  216. <div v-if="t.tool == 32">源码编辑</div>
  217. <div v-if="t.tool == 57">CocoPi</div>
  218. <div v-if="t.tool == 63">海龟编程</div>
  219. <div v-if="t.tool == 28">翻译</div>
  220. <div v-if="t.tool == 31">数字画板</div>
  221. <div v-if="t.tool == 39">GeoGebra</div>
  222. <div v-if="t.tool == 66">公式编辑</div>
  223. <div v-if="t.tool == 67">分子结构</div>
  224. <div v-if="t.tool == 68">时间轴</div>
  225. <div v-if="t.tool == 69">英语写作</div>
  226. <div v-if="t.tool == 70">英语口语</div>
  227. <div v-if="t.tool == 25">目标管理</div>
  228. <div v-if="t.tool == 26">课程设计</div>
  229. <div v-if="t.tool == 62">交互视频</div>
  230. </div>
  231. </div>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  239. <div class="new_topFixed"></div>
  240. <div class="new_top" :class="{ navLeftCss: !mlDialog }">
  241. <div class="courseIndex">
  242. <div>任务{{ taskCount + 1 }}</div>
  243. <el-tooltip
  244. effect="light"
  245. :content="
  246. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  247. "
  248. placement="top"
  249. >
  250. <div>
  251. {{
  252. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  253. .task
  254. }}
  255. </div>
  256. </el-tooltip>
  257. </div>
  258. <div class="btnAll">
  259. <div class="btnLeft">
  260. <el-tooltip effect="light" content="刷新" placement="top">
  261. <div class="reBtnIcon" @click="refreshCourse">
  262. <span>刷新</span>
  263. </div>
  264. </el-tooltip>
  265. <el-tooltip effect="light" content="评论" placement="top">
  266. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  267. <span>评论</span>
  268. </div>
  269. </el-tooltip>
  270. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  271. <el-tooltip effect="light" content="录制" placement="top">
  272. <div class="vedioIcon" @click="startRecording">
  273. <span>录制</span>
  274. </div>
  275. </el-tooltip>
  276. </div>
  277. <div v-else-if="tType == 1 || tType == 4">
  278. <el-tooltip effect="light" content="下载" placement="top">
  279. <div class="vedioIcon1" @click="stopRecording">
  280. <span>下载</span>
  281. </div>
  282. </el-tooltip>
  283. </div>
  284. </div>
  285. <div class="btnRight">
  286. <div
  287. class="last"
  288. @click="nextOrpreSteps(0)"
  289. v-if="!(IsFollow && tType == 2)"
  290. @mouseover="isHovered = true"
  291. @mouseout="isHovered = false"
  292. >
  293. <div class="lastImg">
  294. <img
  295. :src="
  296. isHovered
  297. ? require('../assets/icon/newIcons/whiteLast.png')
  298. : require('../assets/icon/newIcons/last.png')
  299. "
  300. alt=""
  301. />
  302. </div>
  303. <div class="lastText">上一步</div>
  304. </div>
  305. <div
  306. class="last"
  307. @click="nextOrpreSteps(1)"
  308. v-if="!(IsFollow && tType == 2)"
  309. @mouseover="isHovered1 = true"
  310. @mouseout="isHovered1 = false"
  311. >
  312. <div class="lastText">下一步</div>
  313. <div class="lastImg">
  314. <img
  315. :src="
  316. isHovered1
  317. ? require('../assets/icon/newIcons/whiteNext.png')
  318. : require('../assets/icon/newIcons/next.png')
  319. "
  320. alt=""
  321. />
  322. </div>
  323. </div>
  324. <div
  325. class="last"
  326. @click="juriVisible = true"
  327. v-if="tType == 1"
  328. @mouseover="isHovered2 = true"
  329. @mouseout="isHovered2 = false"
  330. >
  331. <div class="lastImg">
  332. <img
  333. :src="
  334. isHovered2
  335. ? require('../assets/icon/newIcons/whiteLock.png')
  336. : require('../assets/icon/newIcons/lock.png')
  337. "
  338. alt=""
  339. />
  340. </div>
  341. <div class="lastText">权限</div>
  342. </div>
  343. <div
  344. class="returnBtn1 returnIcon"
  345. @click.stop="
  346. goTo(
  347. '/courseDetail?userid=' +
  348. userid +
  349. '&oid=' +
  350. oid +
  351. '&org=' +
  352. org +
  353. '&cid=' +
  354. classId +
  355. '&courseId=' +
  356. id +
  357. '&tType=' +
  358. tType +
  359. '&screenType=' +
  360. screenType
  361. )
  362. "
  363. >
  364. <div class="lastImg">
  365. <img src="../assets/icon/newIcon/return.png" alt="" />
  366. </div>
  367. <div class="lastText" style="color: #000">返回</div>
  368. </div>
  369. </div>
  370. <!-- <div
  371. class="returnBtn lockIcon"
  372. @click="juriVisible = true"
  373. v-if="tType == 1"
  374. >
  375. 权限
  376. </div>
  377. <div
  378. class="returnBtn vedioIcon"
  379. @click="startRecording"
  380. v-if="!videoStart && (tType == 1 || tType == 4)"
  381. >
  382. 录制
  383. </div>
  384. <div
  385. class="returnBtn"
  386. @click="stopRecording"
  387. v-else-if="tType == 1 || tType == 4"
  388. style="background: #ee5255"
  389. >
  390. 下载
  391. </div>
  392. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  393. 评论
  394. </div>
  395. <div
  396. class="returnBtn"
  397. @click="nextOrpreSteps(0)"
  398. v-if="!(IsFollow && tType == 2)"
  399. >
  400. 上一步
  401. </div>
  402. <div
  403. class="returnBtn"
  404. @click="nextOrpreSteps(1)"
  405. v-if="!(IsFollow && tType == 2)"
  406. >
  407. 下一步
  408. </div>
  409. <div class="returnBtn" @click="refreshCourse">刷新</div>
  410. <div
  411. class="returnBtn returnIcon"
  412. @click.stop="
  413. goTo(
  414. '/courseDetail?userid=' +
  415. userid +
  416. '&oid=' +
  417. oid +
  418. '&org=' +
  419. org +
  420. '&cid=' +
  421. classId +
  422. '&courseId=' +
  423. id +
  424. '&tType=' +
  425. tType +
  426. '&screenType=' +
  427. screenType
  428. )
  429. "
  430. >
  431. 返回
  432. </div> -->
  433. </div>
  434. </div>
  435. <div
  436. class="isNoMessage"
  437. v-if="
  438. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  439. .chapterData.length == 0 &&
  440. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  441. .toolChoose[0].tool.length == 0 &&
  442. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  443. .taskDetail == '' &&
  444. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  445. .eList &&
  446. !(
  447. courseDetail.userid == userid ||
  448. (courseDetail.course_teacher &&
  449. courseDetail.course_teacher.indexOf(userid) != -1)
  450. )
  451. "
  452. >
  453. <img src="../assets/icon/isNoMessage.png" alt />
  454. </div>
  455. <div class="study_top" :class="{ pzClass: pzDialog }">
  456. <div
  457. class="vedioBox"
  458. v-if="
  459. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  460. .taskDetail != '' ||
  461. vChapterData[taskCount].length > 0 ||
  462. fileC[taskCount].length > 0
  463. "
  464. style="border-radius: 0 0 20px 20px"
  465. >
  466. <div
  467. class="taskBox"
  468. v-if="
  469. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  470. .taskDetail != ''
  471. "
  472. >
  473. <div
  474. style="
  475. display: flex;
  476. flex-wrap: nowrap;
  477. flex-direction: column;
  478. position: relative;
  479. "
  480. >
  481. <div
  482. style="
  483. padding: 15px 0;
  484. line-height: 29px;
  485. font-size: 18px;
  486. color: #0e1e33;
  487. "
  488. class="cont"
  489. v-if="
  490. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  491. .taskDetail != ''
  492. "
  493. v-html="
  494. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  495. .taskDetail
  496. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  497. taskCount
  498. ].taskDetail
  499. : '暂无描述'
  500. "
  501. ></div>
  502. </div>
  503. </div>
  504. <div
  505. class="student_head"
  506. v-if="
  507. vChapterData[taskCount].length > 0 ||
  508. fileC[taskCount].length > 0
  509. "
  510. >
  511. <div class="vedioTaskBox" v-loading="downLoading">
  512. <div
  513. :class="
  514. contentDialog == false
  515. ? 'box_course isContentCss'
  516. : 'box_course'
  517. "
  518. v-if="
  519. vChapterData.length > 0 &&
  520. vChapterData[taskCount] &&
  521. showType !== ''
  522. "
  523. >
  524. <div class="wheel" style="height: auto" v-if="showType === 0">
  525. <div
  526. class="workd_media"
  527. style="height: 650px; width: calc(100% - 50px)"
  528. >
  529. <video-player
  530. class="video-player vjs-custom-skin"
  531. :class="contentDialog == false ? 'isAllWidth' : ''"
  532. :playsinline="true"
  533. :options="playerO[taskCount]"
  534. @play="onPlayerPlay($event)"
  535. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  536. ></video-player>
  537. </div>
  538. </div>
  539. <div
  540. class="wheel"
  541. v-if="showType == 1"
  542. style="
  543. box-shadow: 0 0 6px 1px #f2f2f2;
  544. width: 95%;
  545. margin: 0 auto;
  546. background: #f1f1f1;
  547. "
  548. >
  549. <div class="title">查看文档</div>
  550. <el-form class="textBox">
  551. <el-form-item class="textTitle">
  552. <div style="font-size: 22px">
  553. {{ text.name }}
  554. </div>
  555. </el-form-item>
  556. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  557. <div v-html="text.url" class="textContent cont"></div>
  558. </el-form>
  559. </div>
  560. <div
  561. class="wheel"
  562. v-if="
  563. pptImgUrl1.indexOf(
  564. 'https://view.officeapps.live.com/op/view.aspx?src='
  565. ) != -1 && showType == 2
  566. "
  567. style="width: 95%; margin: 0 auto"
  568. >
  569. <iframe
  570. style="width: 100%; height: 100%; border: none"
  571. :src="pptImgUrl1"
  572. ></iframe>
  573. </div>
  574. <div
  575. class="wheel"
  576. v-else-if="showType == 2"
  577. style="width: 95%; margin: 0 auto"
  578. >
  579. <iframe
  580. style="width: 100%; height: 100%; border: none"
  581. security="restricted"
  582. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  583. :src="pptImgUrl1"
  584. ></iframe>
  585. </div>
  586. <div
  587. class="wheel"
  588. v-if="showType == 3"
  589. style="width: 95%; margin: 0 auto"
  590. >
  591. <pdf
  592. :pdfUrl="pptImgUrl1"
  593. style="width: 100%; height: 100%; overflow: auto"
  594. ></pdf>
  595. </div>
  596. <div
  597. class="wheel"
  598. v-if="showType == 4"
  599. style="width: 95%; margin: 0 auto"
  600. >
  601. <el-image
  602. :src="pptImgUrl1"
  603. fit="contain"
  604. style="width: 100%; height: 100%; cursor: pointer"
  605. @click="previewImg(pptImgUrl1)"
  606. ></el-image>
  607. </div>
  608. </div>
  609. <div
  610. class="pButton"
  611. style="position: absolute; right: 20px; top: 0; z-index: 998"
  612. v-if="!contentDialog"
  613. @click="setContent(true)"
  614. >
  615. <!-- 批 -->
  616. <img
  617. src="../assets/icon/newIcons/isLeft.png"
  618. style="width: 45px"
  619. alt=""
  620. />
  621. </div>
  622. <div
  623. v-if="contentDialog == true"
  624. :style="{
  625. width:
  626. (vChapterData[taskCount].length > 0 ||
  627. fileC[taskCount].length > 0) &&
  628. showType === ''
  629. ? 'calc(100%)'
  630. : '300px',
  631. margin:
  632. (vChapterData[taskCount].length > 0 ||
  633. fileC[taskCount].length > 0) &&
  634. showType === ''
  635. ? '0 15px'
  636. : '0 15px 0 0',
  637. }"
  638. >
  639. <div
  640. class="vedioList"
  641. v-if="
  642. vChapterData[taskCount].length > 0 ||
  643. fileC[taskCount].length > 0
  644. "
  645. style="height: 650px"
  646. >
  647. <div class="navCorOpenBox">
  648. <div class="navTitile">内容列表:</div>
  649. <div class="navCorOpen" @click="setContent(false)">
  650. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  651. </div>
  652. </div>
  653. <div class="navBox">
  654. <div
  655. v-show="
  656. vChapterData[taskCount].length > 0 ||
  657. fileC[taskCount].length > 0
  658. "
  659. style="padding: 10px 0 25px 0"
  660. >
  661. <div
  662. class="vedioTimeBox"
  663. v-for="(vitem, vindex) in vChapterData[taskCount]"
  664. :key="vindex + '1'"
  665. >
  666. <div class="navListItem" v-if="vitem.type == 2">
  667. <div
  668. @click="lookVedio(vitem.url, vindex)"
  669. class="navText"
  670. :class="isClickNav == vindex ? 'isClickNav' : ''"
  671. >
  672. <span v-if="vitem.text">{{ vitem.text }}-</span
  673. >{{ vitem.name }}
  674. </div>
  675. <div class="downIcon" @click="downloadFile2(vitem)">
  676. <img src="../assets/icon/newIcon/down.png" alt />
  677. </div>
  678. </div>
  679. <div class="navListItem" v-if="vitem.type == 6">
  680. <div
  681. @click="lookText(taskCount, vindex)"
  682. class="navText"
  683. :class="isClickNav == vindex ? 'isClickNav' : ''"
  684. >
  685. {{ vitem.name }}.doc
  686. </div>
  687. <div
  688. class="downIcon"
  689. @click="checkFileFull1(vitem.type, vitem)"
  690. >
  691. <img
  692. src="../assets/icon/newIcon/allScreen.png"
  693. alt
  694. />
  695. </div>
  696. </div>
  697. <div
  698. class="navListItem"
  699. v-if="vitem.type == 8 || vitem.type == 14"
  700. >
  701. <div
  702. @click="doUrl(vitem.url, vindex)"
  703. class="navText"
  704. :class="isClickNav == vindex ? 'isClickNav' : ''"
  705. >
  706. {{ vitem.title ? vitem.title : vitem.url }}
  707. </div>
  708. <div
  709. class="downIcon"
  710. @click="checkFileFull1(vitem.type, vitem)"
  711. >
  712. <img
  713. src="../assets/icon/newIcon/allScreen.png"
  714. alt
  715. />
  716. </div>
  717. </div>
  718. <div class="navListItem" v-if="vitem.type == 3">
  719. <div
  720. @click="downFile(vitem, vindex)"
  721. class="navText"
  722. :class="isClickNav == vindex ? 'isClickNav' : ''"
  723. >
  724. <span v-if="vitem.text">{{ vitem.text }}-</span
  725. >{{ vitem.name }}
  726. </div>
  727. <div
  728. class="downIcon"
  729. @click="checkFileFull1(vitem.type, vitem)"
  730. >
  731. <img
  732. src="../assets/icon/newIcon/allScreen.png"
  733. alt
  734. />
  735. </div>
  736. <div class="downIcon" @click="downloadFile2(vitem)">
  737. <img src="../assets/icon/newIcon/down.png" alt />
  738. </div>
  739. </div>
  740. <div class="navListItem" v-if="vitem.type == 12">
  741. <div class="navText" @click="downloadFile2(vitem)">
  742. <span v-if="vitem.text">{{ vitem.text }}-</span
  743. >{{ vitem.name }}
  744. </div>
  745. <div
  746. class="downIcon"
  747. @click="checkFileFull1(vitem.type, vitem)"
  748. >
  749. <img
  750. src="../assets/icon/newIcon/allScreen.png"
  751. alt
  752. />
  753. </div>
  754. <div class="downIcon" @click="downloadFile2(vitem)">
  755. <img src="../assets/icon/newIcon/down.png" alt />
  756. </div>
  757. </div>
  758. <div class="navListItem" v-if="vitem.type == 13">
  759. <div
  760. class="navText"
  761. @click="checkPhoto(vitem, vindex)"
  762. :class="isClickNav == vindex ? 'isClickNav' : ''"
  763. >
  764. {{ vitem.name }}
  765. </div>
  766. <div class="downIcon" @click="downloadFile2(vitem)">
  767. <img src="../assets/icon/newIcon/down.png" alt />
  768. </div>
  769. </div>
  770. </div>
  771. <div
  772. class="fileC_box"
  773. v-if="fileC[taskCount].length > 0"
  774. >
  775. <div class="fileC_title">以下文件不支持预览</div>
  776. <div
  777. class="vedioTimeBox"
  778. v-for="(vitem, vindex) in fileC[taskCount]"
  779. :key="vindex + '1'"
  780. >
  781. <div class="navListItem" v-if="vitem.type == 12">
  782. <div class="navText" style="color: #acb4bf">
  783. <span v-if="vitem.text">{{ vitem.text }}-</span
  784. >{{ vitem.name }}
  785. </div>
  786. <div
  787. class="downIcon"
  788. @click="downloadFile2(vitem)"
  789. >
  790. <img
  791. src="../assets/icon/newIcon/down.png"
  792. alt
  793. />
  794. </div>
  795. </div>
  796. </div>
  797. </div>
  798. </div>
  799. </div>
  800. </div>
  801. </div>
  802. </div>
  803. <div style="width: calc(100% - 315px)">
  804. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  805. <!-- <el-button
  806. type="primary"
  807. class="newButton"
  808. @click="checkFileFull(showType, pptImgUrl1)"
  809. >全屏查看</el-button
  810. >
  811. <el-button
  812. type="primary"
  813. class="newButton"
  814. @click="downloadFile(pptImgUrl1)"
  815. v-if="showType != 2"
  816. >文件下载</el-button
  817. > -->
  818. <el-button
  819. class="newButton"
  820. v-if="
  821. showType == 2 &&
  822. pptImgUrl1.indexOf(
  823. 'https://view.officeapps.live.com/op/view.aspx?src='
  824. ) == -1
  825. "
  826. type="primary"
  827. @click="openLine(pptImgUrl1)"
  828. >打开链接
  829. </el-button>
  830. </div>
  831. <!-- <div
  832. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  833. v-if="showType == 1"
  834. >
  835. <el-button
  836. type="primary"
  837. class="newButton"
  838. @click="checkFileFull(showType, text)"
  839. >全屏查看</el-button
  840. >
  841. </div> -->
  842. </div>
  843. </div>
  844. </div>
  845. <div class="student_body" v-resize="resize">
  846. <div
  847. class="vedioBox"
  848. :style="{
  849. borderRadius:
  850. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  851. .taskDetail == '' &&
  852. vChapterData[taskCount].length == 0 &&
  853. fileC[taskCount].length == 0
  854. ? '0 0 20px 20px'
  855. : '20px',
  856. }"
  857. v-if="
  858. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  859. .toolChoose[0].tool &&
  860. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  861. .toolChoose[0].tool.length > 0
  862. "
  863. >
  864. <div
  865. class="toolHeng2"
  866. style="position: relative"
  867. v-if="
  868. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  869. .toolChoose[0].tool &&
  870. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  871. .toolChoose[0].tool.length &&
  872. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  873. .toolChoose[0].tool.length > 0
  874. "
  875. >
  876. <div class="workNav">工作区</div>
  877. <div
  878. class="filebox"
  879. style="flex-wrap: nowrap"
  880. v-for="(tool, toolIndex) in chapInfoList[courseType]
  881. .chapterInfo[0].taskJson[taskCount].toolChoose"
  882. :key="toolIndex"
  883. >
  884. <div class="bzBox">
  885. <div class="yCss"></div>
  886. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  887. 工具{{ toolIndex + 1 }}
  888. </div>
  889. <div
  890. v-if="timeWorkList[toolIndex].length > 0"
  891. style="margin: 0 0 0 10px"
  892. >
  893. {{
  894. timeWorkList[toolIndex][0].time
  895. ? "时间:" + timeWorkList[toolIndex][0].time
  896. : ""
  897. }}
  898. </div>
  899. </div>
  900. <div class="toolBox">
  901. <div>
  902. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  903. :key="indexTool"-->
  904. <!-- <div class="iframeBox">
  905. <div
  906. class="addPoint isBorder"
  907. v-for="(tooC, toolCIndex) in tool.tool"
  908. :key="toolCIndex"
  909. >
  910. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  911. <div
  912. class="iframeName"
  913. >
  914. 电子白板
  915. </div>
  916. <iframe
  917. src="https://iwb.cocorobo.cn/"
  918. ref="whiteBoard"
  919. ></iframe>
  920. </div>
  921. </div>
  922. </div>-->
  923. <div class="noiframeBox">
  924. <div
  925. class="addPoint"
  926. v-for="(tooC, toolCIndex) in tool.tool"
  927. :key="toolCIndex"
  928. >
  929. <div v-if="tooC == 1">
  930. <img
  931. src="../assets/icon/secondToolList/whiteBoard.png"
  932. alt
  933. @click="addTools(tooC, toolIndex, taskCount)"
  934. />
  935. <div style="margin: 5px 0">电子白板</div>
  936. </div>
  937. <div v-if="tooC == 3">
  938. <img
  939. src="../assets/icon/secondToolList/mindMapping.png"
  940. alt
  941. @click="addTools(tooC, toolIndex, taskCount)"
  942. />
  943. <div style="margin: 5px 0">思维导图</div>
  944. </div>
  945. <div v-if="tooC == 6">
  946. <img
  947. src="../assets/icon/secondToolList/doc.png"
  948. alt
  949. @click="addTools(tooC, toolIndex, taskCount)"
  950. />
  951. <div style="margin: 5px 0">协同文档</div>
  952. </div>
  953. <div v-if="tooC == 7">
  954. <img
  955. src="../assets/icon/secondToolList/mindNetwork.png"
  956. alt
  957. @click="addTools(tooC, toolIndex, taskCount)"
  958. />
  959. <div style="margin: 5px 0">思维网格</div>
  960. </div>
  961. <div v-if="tooC == 8">
  962. <img
  963. src="../assets/icon/secondToolList/library.png"
  964. alt
  965. @click="addTools(tooC, toolIndex, taskCount)"
  966. />
  967. <div style="margin: 5px 0">素材库</div>
  968. </div>
  969. <div v-if="tooC == 17">
  970. <img
  971. src="../assets/icon/secondToolList/library.png"
  972. alt
  973. @click="addTools(tooC, toolIndex, taskCount)"
  974. />
  975. <div style="margin: 5px 0">学习资料</div>
  976. </div>
  977. <div v-if="tooC == 2">
  978. <img
  979. @click="addTools(tooC, toolIndex, taskCount)"
  980. src="../assets/icon/secondToolList/note.png"
  981. alt
  982. />
  983. <div style="margin: 5px 0">便签</div>
  984. </div>
  985. <div v-if="tooC == 4">
  986. <img
  987. @click="addTools(tooC, toolIndex, taskCount)"
  988. src="../assets/icon/thirdToolList/ask.png"
  989. alt
  990. />
  991. <div style="margin: 5px 0">问卷调查</div>
  992. </div>
  993. <div v-if="tooC == 45">
  994. <img
  995. @click="addTools(tooC, toolIndex, taskCount)"
  996. src="../assets/icon/thirdToolList/choose.png"
  997. alt
  998. />
  999. <div style="margin: 5px 0">选择题</div>
  1000. </div>
  1001. <!-- <div v-if="tooC == 5">
  1002. <img
  1003. @click="addTools(tooC, toolIndex, taskCount)"
  1004. src="../assets/icon/thirdToolList/score.png"
  1005. alt
  1006. />
  1007. <div style="margin: 5px 0">量规评分</div>
  1008. </div> -->
  1009. <div v-if="tooC == 10">
  1010. <img
  1011. @click="addTools(tooC, toolIndex, taskCount)"
  1012. src="../assets/icon/thirdToolList/time.png"
  1013. alt
  1014. />
  1015. <div style="margin: 5px 0">倒计时</div>
  1016. </div>
  1017. <div v-if="tooC == 15">
  1018. <img
  1019. @click="addTools(tooC, toolIndex, taskCount)"
  1020. src="../assets/icon/thirdToolList/answer.png"
  1021. alt
  1022. />
  1023. <div style="margin: 5px 0">问答</div>
  1024. </div>
  1025. <div v-if="tooC == 26">
  1026. <img
  1027. @click="addTools(tooC, toolIndex, taskCount)"
  1028. src="../assets/icon/thirdToolList/courseDesign.png"
  1029. alt
  1030. />
  1031. <div style="margin: 5px 0">课程设计</div>
  1032. </div>
  1033. <div v-if="tooC == 18">
  1034. <img
  1035. @click="addTools(tooC, toolIndex, taskCount)"
  1036. src="../assets/icon/thirdToolList/trainPlatform.png"
  1037. alt
  1038. />
  1039. <div style="margin: 5px 0">训练服务器</div>
  1040. </div>
  1041. <div v-if="tooC == 16">
  1042. <img
  1043. @click="addTools(tooC, toolIndex, taskCount)"
  1044. src="../assets/icon/thirdToolList/work.png"
  1045. alt
  1046. />
  1047. <div style="margin: 5px 0">作业提交</div>
  1048. </div>
  1049. <div v-if="tooC == 50">
  1050. <img
  1051. @click="addTools(tooC, toolIndex, taskCount)"
  1052. src="../assets/icon/thirdToolList/plwork.png"
  1053. alt
  1054. />
  1055. <div style="margin: 5px 0">批量上传</div>
  1056. </div>
  1057. <div v-if="tooC == 21">
  1058. <img
  1059. @click="addTools(tooC, toolIndex, taskCount)"
  1060. src="../assets/icon/fourthToolList/program.png"
  1061. alt
  1062. />
  1063. <div style="margin: 5px 0">AIoT Blockly</div>
  1064. </div>
  1065. <!-- <div v-if="tooC == 22">
  1066. <img
  1067. @click="addTools(tooC, toolIndex, taskCount)"
  1068. src="../assets/icon/fourthToolList/program.png"
  1069. alt
  1070. />
  1071. <div style="margin: 5px 0">AI体验</div>
  1072. </div> -->
  1073. <div v-if="tooC == 23">
  1074. <img
  1075. @click="addTools(tooC, toolIndex, taskCount)"
  1076. src="../assets/icon/fourthToolList/Pythonprogram.png"
  1077. alt
  1078. />
  1079. <div style="margin: 5px 0">AI Python</div>
  1080. </div>
  1081. <div v-if="tooC == 24">
  1082. <img
  1083. @click="addTools(tooC, toolIndex, taskCount)"
  1084. src="../assets/icon/fourthToolList/AIprogram.png"
  1085. alt
  1086. />
  1087. <div style="margin: 5px 0">AI Blockly</div>
  1088. </div>
  1089. <div v-if="tooC == 25">
  1090. <img
  1091. @click="addTools(tooC, toolIndex, taskCount)"
  1092. src="../assets/icon/thirdToolList/evalua.png"
  1093. alt
  1094. />
  1095. <div style="margin: 5px 0">目标管理</div>
  1096. </div>
  1097. <div v-if="tooC == 31">
  1098. <img
  1099. @click="addTools(tooC, toolIndex, taskCount)"
  1100. src="../assets/icon/secondToolList/networkPanel.png"
  1101. alt
  1102. />
  1103. <div style="margin: 5px 0">数学画板</div>
  1104. </div>
  1105. <div v-if="tooC == 28">
  1106. <img
  1107. @click="addTools(tooC, toolIndex, taskCount)"
  1108. src="../assets/icon/secondToolList/translation.png"
  1109. alt
  1110. />
  1111. <div style="margin: 5px 0">翻译</div>
  1112. </div>
  1113. <div v-if="tooC == 37">
  1114. <img
  1115. @click="addTools(tooC, toolIndex, taskCount)"
  1116. src="../assets/icon/secondToolList/mohe.png"
  1117. alt
  1118. />
  1119. <div style="margin: 5px 0">魔盒识字</div>
  1120. </div>
  1121. <div v-if="tooC == 38">
  1122. <img
  1123. @click="addTools(tooC, toolIndex, taskCount)"
  1124. src="../assets/icon/secondToolList/24game.png"
  1125. alt
  1126. />
  1127. <div style="margin: 5px 0">24点</div>
  1128. </div>
  1129. <div v-if="tooC == 39">
  1130. <img
  1131. @click="addTools(tooC, toolIndex, taskCount)"
  1132. src="../assets/icon/secondToolList/GeoGebra.png"
  1133. alt
  1134. />
  1135. <div style="margin: 5px 0">GeoGebra</div>
  1136. </div>
  1137. <div v-if="tooC == 32">
  1138. <img
  1139. @click="addTools(tooC, toolIndex, taskCount)"
  1140. src="../assets/icon/thirdToolList/code.png"
  1141. alt
  1142. />
  1143. <div style="margin: 5px 0">源码编辑</div>
  1144. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1145. style="position: absolute;left: 110px;bottom: 30px;">
  1146. 上传文件
  1147. <input type="file" accept="*" style="display: none"
  1148. @change="beforeUpload1($event, 7, toolIndex)" />
  1149. </div> -->
  1150. </div>
  1151. <div v-if="tooC == 40">
  1152. <img
  1153. @click="addTools(tooC, toolIndex, taskCount)"
  1154. src="../assets/icon/secondToolList/eval.png"
  1155. alt
  1156. />
  1157. <div style="margin: 5px 0">个人评价</div>
  1158. </div>
  1159. <div v-if="tooC == 41">
  1160. <img
  1161. @click="addTools(tooC, toolIndex, taskCount)"
  1162. src="../assets/icon/thirdToolList/select.png"
  1163. alt
  1164. />
  1165. <div style="margin: 5px 0">选择匹配</div>
  1166. </div>
  1167. <div v-if="tooC == 44">
  1168. <img
  1169. @click="addTools(tooC, toolIndex, taskCount)"
  1170. src="../assets/icon/thirdToolList/hanClass.png"
  1171. alt
  1172. />
  1173. <div style="margin: 5px 0">汉字宫</div>
  1174. </div>
  1175. <div v-if="tooC == 47">
  1176. <img
  1177. @click="addTools(tooC, toolIndex, taskCount)"
  1178. src="../assets/icon/fourthToolList/conSentences.png"
  1179. alt
  1180. />
  1181. <div style="margin: 5px 0">排序</div>
  1182. </div>
  1183. <div v-if="tooC == 48">
  1184. <img
  1185. @click="addTools(tooC, toolIndex, taskCount)"
  1186. src="../assets/icon/fourthToolList/table.png"
  1187. alt
  1188. />
  1189. <div style="margin: 5px 0">表格</div>
  1190. </div>
  1191. <div v-if="tooC == 52">
  1192. <img
  1193. @click="addTools(tooC, toolIndex, taskCount)"
  1194. src="../assets/icon/fourthToolList/text.png"
  1195. alt
  1196. />
  1197. <div style="margin: 5px 0">文档</div>
  1198. </div>
  1199. <div v-if="tooC == 49">
  1200. <img
  1201. @click="addTools(tooC, toolIndex, taskCount)"
  1202. src="../assets/icon/fourthToolList/group.png"
  1203. alt
  1204. />
  1205. <div style="margin: 5px 0">学生分组</div>
  1206. </div>
  1207. <div v-if="tooC == 57">
  1208. <img
  1209. @click="addTools(tooC, toolIndex, taskCount)"
  1210. src="../assets/icon/fourthToolList/cocopi.png"
  1211. alt
  1212. />
  1213. <div style="margin: 5px 0">CocoPi</div>
  1214. </div>
  1215. <div v-if="tooC == 58">
  1216. <img
  1217. @click="addTools(tooC, toolIndex, taskCount)"
  1218. src="../assets/icon/fourthToolList/car.png"
  1219. alt
  1220. />
  1221. <div style="margin: 5px 0">模拟驾驶</div>
  1222. </div>
  1223. <div v-if="tooC == 59">
  1224. <img
  1225. @click="addTools(tooC, toolIndex, taskCount)"
  1226. src="../assets/icon/fourthToolList/lineSearch.png"
  1227. alt
  1228. />
  1229. <div style="margin: 5px 0">路径搜索</div>
  1230. </div>
  1231. <div v-if="tooC == 60">
  1232. <img
  1233. @click="addTools(tooC, toolIndex, taskCount)"
  1234. src="../assets/icon/fourthToolList/deepLearning.png"
  1235. alt
  1236. />
  1237. <div style="margin: 5px 0">深度学习</div>
  1238. </div>
  1239. <div v-if="tooC == 61">
  1240. <img
  1241. @click="addTools(tooC, toolIndex, taskCount)"
  1242. src="../assets/icon/fourthToolList/allHistory.png"
  1243. alt
  1244. />
  1245. <div style="margin: 5px 0">全历史</div>
  1246. </div>
  1247. <div v-if="tooC == 62">
  1248. <img
  1249. @click="addTools(tooC, toolIndex, taskCount)"
  1250. src="../assets/icon/fourthToolList/interVideo.png"
  1251. alt
  1252. />
  1253. <div style="margin: 5px 0">交互视频</div>
  1254. </div>
  1255. <div v-if="tooC == 63">
  1256. <img
  1257. @click="addTools(tooC, toolIndex, taskCount)"
  1258. src="../assets/icon/fourthToolList/Wood.png"
  1259. alt
  1260. />
  1261. <div style="margin: 5px 0">海龟编程</div>
  1262. </div>
  1263. <div v-if="tooC == 65">
  1264. <img
  1265. @click="addTools(tooC, toolIndex, taskCount)"
  1266. src="../assets/icon/firstToolList/pickPeople.png"
  1267. alt
  1268. />
  1269. <div style="margin: 5px 0">挑人</div>
  1270. </div>
  1271. <div v-if="tooC == 66">
  1272. <img
  1273. @click="addTools(tooC, toolIndex, taskCount)"
  1274. src="../assets/icon/secondToolList/formulaEdi.png"
  1275. alt
  1276. />
  1277. <div style="margin: 5px 0">公式编辑</div>
  1278. </div>
  1279. <div v-if="tooC == 67">
  1280. <img
  1281. @click="addTools(tooC, toolIndex, taskCount)"
  1282. src="../assets/icon/secondToolList/molStr.png"
  1283. alt
  1284. />
  1285. <div style="margin: 5px 0">分子结构</div>
  1286. </div>
  1287. <div v-if="tooC == 68">
  1288. <img
  1289. @click="addTools(tooC, toolIndex, taskCount)"
  1290. src="../assets/icon/secondToolList/timeAxis.png"
  1291. alt
  1292. />
  1293. <div style="margin: 5px 0">时间轴</div>
  1294. </div>
  1295. <div v-if="tooC == 69">
  1296. <img
  1297. @click="addTools(tooC, toolIndex, taskCount)"
  1298. src="../assets/icon/secondToolList/english.png"
  1299. alt
  1300. />
  1301. <div style="margin: 5px 0">英语写作</div>
  1302. </div>
  1303. <div v-if="tooC == 70">
  1304. <img
  1305. @click="addTools(tooC, toolIndex, taskCount)"
  1306. src="../assets/icon/thirdToolList/englishVoice.png"
  1307. alt
  1308. />
  1309. <div style="margin: 5px 0">英语口语</div>
  1310. </div>
  1311. </div>
  1312. </div>
  1313. </div>
  1314. <div class="tooldetail" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1315. <!-- <div class="toolTitle">工具描述</div> -->
  1316. <div style="height:100%;"
  1317. v-html="contentConvent(tool.toolDetail)"
  1318. v-if="toolDetailIndex != toolIndex"
  1319. @click.stop="updateToolDetail(toolIndex, 2)"
  1320. ></div>
  1321. <div v-else @click.stop="" style="height:100%;">
  1322. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1323. </div>
  1324. </div>
  1325. <el-button
  1326. type="primary"
  1327. v-if="tool.tool[0] == 32"
  1328. style="position: absolute; right: 30px; top: 30px"
  1329. @click="addImg($event)"
  1330. >上传作业<input
  1331. type="file"
  1332. accept="*"
  1333. style="display: none"
  1334. @change="beforeUpload1($event, 7, toolIndex)"
  1335. /></el-button>
  1336. <el-button
  1337. type="primary"
  1338. v-if="tool.tool[0] == 15"
  1339. style="position: absolute; right: 30px; top: 30px"
  1340. @click="openWordCloud(toolIndex)"
  1341. >生成词云</el-button
  1342. >
  1343. <el-button
  1344. type="primary"
  1345. v-if="
  1346. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1347. "
  1348. style="position: absolute; right: 30px; top: 30px"
  1349. @click="uploadWorks(toolIndex)"
  1350. >导出作业</el-button
  1351. >
  1352. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1353. position: absolute;
  1354. right: 30px;
  1355. transform: translateY(-130%);
  1356. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1357. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1358. </div>
  1359. <div
  1360. v-if="
  1361. tType &&
  1362. tType == 2 &&
  1363. !sIsOpen &&
  1364. tool.tool.indexOf(16) != -1
  1365. "
  1366. class="worksBox"
  1367. >
  1368. <div
  1369. class="zuoyeYulan"
  1370. v-if="workStudent[toolIndex].length > 0"
  1371. >
  1372. <span class="worksTitle">作业预览</span>
  1373. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1374. </div>
  1375. <div
  1376. class="worksDetailBox"
  1377. v-if="workStudent[toolIndex].length > 0"
  1378. >
  1379. <div
  1380. class="works"
  1381. style="
  1382. width: 200px;
  1383. height: 140px;
  1384. margin: 10px 10px 10px 0;
  1385. box-shadow: 0 0 6px 1px #dfdada;
  1386. "
  1387. v-for="(w, wIndex) in workStudent[toolIndex]"
  1388. :key="wIndex"
  1389. >
  1390. <div class="workImg" v-if="w.type == 0">
  1391. <img
  1392. :src="w.works"
  1393. @click="previewImg(w.works)"
  1394. alt
  1395. />
  1396. <div
  1397. class="answerScore"
  1398. v-if="w.score"
  1399. @click.stop="openScore(w)"
  1400. :class="{
  1401. rightW:
  1402. w.userid == userid || tType == 1 || tType == 4,
  1403. }"
  1404. >
  1405. {{ JSON.parse(w.score).wScore }}分
  1406. </div>
  1407. <div
  1408. class="answerScore"
  1409. @click.stop="openScore(w)"
  1410. v-else-if="courseDetail.userid == userid"
  1411. :class="{
  1412. rightW:
  1413. w.userid == userid || tType == 1 || tType == 4,
  1414. }"
  1415. >
  1416. 评分
  1417. </div>
  1418. <img
  1419. class="deleteImg"
  1420. src="../assets/deleteworks.png"
  1421. v-if="
  1422. w.userid == userid || tType == 1 || tType == 4
  1423. "
  1424. @click.stop="deleteWorks(w.wid)"
  1425. alt
  1426. />
  1427. </div>
  1428. <div class="workImg" v-if="w.type == 1">
  1429. <img :src="word" @click="openFile(w.works)" alt />
  1430. <div
  1431. class="answerScore"
  1432. v-if="w.score"
  1433. @click.stop="openScore(w)"
  1434. :class="{
  1435. rightW:
  1436. w.userid == userid || tType == 1 || tType == 4,
  1437. }"
  1438. >
  1439. {{ JSON.parse(w.score).wScore }}分
  1440. </div>
  1441. <div
  1442. class="answerScore"
  1443. @click.stop="openScore(w)"
  1444. v-else-if="courseDetail.userid == userid"
  1445. :class="{
  1446. rightW:
  1447. w.userid == userid || tType == 1 || tType == 4,
  1448. }"
  1449. >
  1450. 评分
  1451. </div>
  1452. <img
  1453. class="deleteImg"
  1454. src="../assets/deleteworks.png"
  1455. v-if="
  1456. w.userid == userid || tType == 1 || tType == 4
  1457. "
  1458. @click.stop="deleteWorks(w.wid)"
  1459. alt
  1460. />
  1461. </div>
  1462. <div class="workImg" v-if="w.type == 3">
  1463. <img
  1464. style="cursor: pointer"
  1465. :src="video"
  1466. @click="openVideo(w)"
  1467. alt
  1468. />
  1469. <div
  1470. class="answerScore"
  1471. v-if="w.score"
  1472. @click.stop="openScore(w)"
  1473. :class="{
  1474. rightW:
  1475. w.userid == userid || tType == 1 || tType == 4,
  1476. }"
  1477. >
  1478. {{ JSON.parse(w.score).wScore }}分
  1479. </div>
  1480. <div
  1481. class="answerScore"
  1482. @click.stop="openScore(w)"
  1483. v-else-if="courseDetail.userid == userid"
  1484. :class="{
  1485. rightW:
  1486. w.userid == userid || tType == 1 || tType == 4,
  1487. }"
  1488. >
  1489. 评分
  1490. </div>
  1491. <img
  1492. class="deleteImg"
  1493. src="../assets/deleteworks.png"
  1494. v-if="
  1495. w.userid == userid || tType == 1 || tType == 4
  1496. "
  1497. @click.stop="deleteWorks(w.wid)"
  1498. alt
  1499. />
  1500. </div>
  1501. <div class="workImg" v-if="w.type == 12">
  1502. <img
  1503. style="cursor: pointer"
  1504. :src="word2"
  1505. @click="downloadFile(w.works)"
  1506. alt
  1507. />
  1508. <div
  1509. class="answerScore"
  1510. v-if="w.score"
  1511. @click.stop="openScore(w)"
  1512. :class="{
  1513. rightW:
  1514. w.userid == userid || tType == 1 || tType == 4,
  1515. }"
  1516. >
  1517. {{ JSON.parse(w.score).wScore }}分
  1518. </div>
  1519. <div
  1520. class="answerScore"
  1521. @click.stop="openScore(w)"
  1522. v-else-if="courseDetail.userid == userid"
  1523. :class="{
  1524. rightW:
  1525. w.userid == userid || tType == 1 || tType == 4,
  1526. }"
  1527. >
  1528. 评分
  1529. </div>
  1530. <img
  1531. class="deleteImg"
  1532. src="../assets/deleteworks.png"
  1533. v-if="
  1534. w.userid == userid || tType == 1 || tType == 4
  1535. "
  1536. @click.stop="deleteWorks(w.wid)"
  1537. alt
  1538. />
  1539. </div>
  1540. <div class="worksName">
  1541. <div>{{ w.sName }}</div>
  1542. </div>
  1543. </div>
  1544. </div>
  1545. </div>
  1546. <div
  1547. v-if="
  1548. tType &&
  1549. tType == 2 &&
  1550. !sIsOpen &&
  1551. tool.tool.indexOf(32) != -1
  1552. "
  1553. class="worksBox"
  1554. >
  1555. <div
  1556. class="zuoyeYulan"
  1557. v-if="workStudent[toolIndex].length > 0"
  1558. >
  1559. <span class="worksTitle">作业预览</span>
  1560. </div>
  1561. <div
  1562. class="worksDetailBox"
  1563. v-if="workStudent[toolIndex].length > 0"
  1564. >
  1565. <div
  1566. class="works"
  1567. style="
  1568. width: 200px;
  1569. height: 140px;
  1570. margin: 10px 10px 10px 0;
  1571. box-shadow: 0 0 6px 1px #dfdada;
  1572. "
  1573. v-for="(w, wIndex) in workStudent[toolIndex]"
  1574. :key="wIndex"
  1575. >
  1576. <div class="workImg">
  1577. <img
  1578. :src="word2"
  1579. @click="downloadFile(w.works)"
  1580. alt
  1581. />
  1582. <div
  1583. class="answerScore"
  1584. v-if="w.score"
  1585. @click.stop="openScore(w)"
  1586. :class="{
  1587. rightW:
  1588. w.userid == userid || tType == 1 || tType == 4,
  1589. }"
  1590. >
  1591. {{ JSON.parse(w.score).wScore }}分
  1592. </div>
  1593. <div
  1594. class="answerScore"
  1595. @click.stop="openScore(w)"
  1596. v-else-if="courseDetail.userid == userid"
  1597. :class="{
  1598. rightW:
  1599. w.userid == userid || tType == 1 || tType == 4,
  1600. }"
  1601. >
  1602. 评分
  1603. </div>
  1604. <img
  1605. class="deleteImg"
  1606. src="../assets/deleteworks.png"
  1607. v-if="
  1608. w.userid == userid || tType == 1 || tType == 4
  1609. "
  1610. @click.stop="deleteWorks(w.wid)"
  1611. alt
  1612. />
  1613. </div>
  1614. <div class="worksName">
  1615. <div>{{ w.sName }}</div>
  1616. </div>
  1617. </div>
  1618. </div>
  1619. </div>
  1620. <div
  1621. v-if="
  1622. tType &&
  1623. tType == 2 &&
  1624. !sIsOpen &&
  1625. tool.tool.indexOf(57) != -1
  1626. "
  1627. class="worksBox"
  1628. >
  1629. <div
  1630. class="zuoyeYulan"
  1631. v-if="workStudent[toolIndex].length > 0"
  1632. >
  1633. <span class="worksTitle">作业预览</span>
  1634. </div>
  1635. <div
  1636. class="worksDetailBox"
  1637. v-if="workStudent[toolIndex].length > 0"
  1638. >
  1639. <div
  1640. class="works"
  1641. style="
  1642. width: 200px;
  1643. height: 140px;
  1644. margin: 10px 10px 10px 0;
  1645. box-shadow: 0 0 6px 1px #dfdada;
  1646. "
  1647. v-for="(w, wIndex) in workStudent[toolIndex]"
  1648. :key="wIndex"
  1649. >
  1650. <div class="workImg">
  1651. <img
  1652. :src="word2"
  1653. @click="downloadFile(w.works)"
  1654. v-if="w.type == 12"
  1655. alt
  1656. />
  1657. <img
  1658. :src="word2"
  1659. @click="
  1660. openCocoPi(57, toolIndex, w.userid, w.sName)
  1661. "
  1662. v-else-if="w.type == 15"
  1663. alt
  1664. />
  1665. <div
  1666. class="answerScore"
  1667. v-if="w.score"
  1668. @click.stop="openScore(w)"
  1669. :class="{
  1670. rightW:
  1671. w.userid == userid || tType == 1 || tType == 4,
  1672. }"
  1673. >
  1674. {{ JSON.parse(w.score).wScore }}分
  1675. </div>
  1676. <div
  1677. class="answerScore"
  1678. @click.stop="openScore(w)"
  1679. v-else-if="courseDetail.userid == userid"
  1680. :class="{
  1681. rightW:
  1682. w.userid == userid || tType == 1 || tType == 4,
  1683. }"
  1684. >
  1685. 评分
  1686. </div>
  1687. <img
  1688. class="deleteImg"
  1689. src="../assets/deleteworks.png"
  1690. v-if="
  1691. w.userid == userid || tType == 1 || tType == 4
  1692. "
  1693. @click.stop="deleteWorks(w.wid)"
  1694. alt
  1695. />
  1696. </div>
  1697. <div class="worksName">
  1698. <div>{{ w.sName }}</div>
  1699. </div>
  1700. </div>
  1701. </div>
  1702. </div>
  1703. <div
  1704. v-if="
  1705. tType &&
  1706. tType == 2 &&
  1707. !sIsOpen &&
  1708. tool.tool.indexOf(4) != -1
  1709. "
  1710. class="worksBox"
  1711. >
  1712. <div
  1713. class="zuoyeYulan"
  1714. v-if="workStudent[toolIndex].length > 0"
  1715. >
  1716. <span class="worksTitle">作业预览</span>
  1717. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1718. </div>
  1719. <div
  1720. class="worksDetailBox"
  1721. v-if="workStudent[toolIndex].length > 0"
  1722. >
  1723. <div
  1724. class="isWorksName2"
  1725. v-for="(w, wIndex) in workStudent[toolIndex]"
  1726. :key="wIndex"
  1727. @click="
  1728. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1729. "
  1730. >
  1731. {{ w.sName }}
  1732. <img
  1733. class="deleteImg deleteImg2"
  1734. src="../assets/deleteworks.png"
  1735. v-if="w.userid == userid || tType == 1 || tType == 4"
  1736. @click.stop="deleteWorks(w.wid)"
  1737. alt
  1738. />
  1739. </div>
  1740. <!-- <div
  1741. class="works"
  1742. style="
  1743. width: 200px;
  1744. height: 140px;
  1745. border-radius: 10px;
  1746. box-shadow: 0 0 6px 1px #dfdada;
  1747. overflow: hidden;
  1748. "
  1749. v-for="(w, wIndex) in workStudent[toolIndex]"
  1750. :key="wIndex"
  1751. >
  1752. <div class="workImg">
  1753. <img
  1754. src="../assets/icon/works/noImg.png"
  1755. @click="
  1756. openTools(
  1757. 4,
  1758. toolIndex,
  1759. taskCount,
  1760. w.works,
  1761. w.sName
  1762. )
  1763. "
  1764. alt
  1765. />
  1766. </div>
  1767. <div class="worksName">
  1768. <div>{{ w.sName }}</div>
  1769. <div>{{ w.time }}</div>
  1770. </div>
  1771. </div> -->
  1772. </div>
  1773. </div>
  1774. <div
  1775. v-if="
  1776. tType &&
  1777. tType == 2 &&
  1778. !sIsOpen &&
  1779. tool.tool.indexOf(45) != -1
  1780. "
  1781. class="worksBox"
  1782. >
  1783. <div
  1784. class="zuoyeYulan"
  1785. v-if="workStudent[toolIndex].length > 0"
  1786. >
  1787. <span class="worksTitle">作业预览</span>
  1788. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1789. </div>
  1790. <div
  1791. class="worksDetailBox"
  1792. v-if="workStudent[toolIndex].length > 0"
  1793. >
  1794. <div
  1795. class="isWorksName2"
  1796. v-for="(w, wIndex) in workStudent[toolIndex]"
  1797. :key="wIndex"
  1798. @click="
  1799. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1800. "
  1801. >
  1802. {{ w.sName }}
  1803. <img
  1804. class="deleteImg deleteImg2"
  1805. src="../assets/deleteworks.png"
  1806. v-if="w.userid == userid || tType == 1 || tType == 4"
  1807. @click.stop="deleteWorks(w.wid)"
  1808. alt
  1809. />
  1810. </div>
  1811. </div>
  1812. </div>
  1813. <div
  1814. v-if="
  1815. tType &&
  1816. tType == 2 &&
  1817. !sIsOpen &&
  1818. tool.tool.indexOf(69) != -1
  1819. "
  1820. class="worksBox"
  1821. >
  1822. <div
  1823. class="zuoyeYulan"
  1824. v-if="workStudent[toolIndex].length > 0"
  1825. >
  1826. <span class="worksTitle">作业预览</span>
  1827. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1828. </div>
  1829. <div
  1830. class="worksDetailBox"
  1831. v-if="workStudent[toolIndex].length > 0"
  1832. >
  1833. <div
  1834. class="isWorksName2"
  1835. v-for="(w, wIndex) in workStudent[toolIndex]"
  1836. :key="wIndex"
  1837. @click="
  1838. openTools(69, toolIndex, taskCount, w.works, w.sName)
  1839. "
  1840. >
  1841. {{ w.sName }}
  1842. <img
  1843. class="deleteImg deleteImg2"
  1844. src="../assets/deleteworks.png"
  1845. v-if="w.userid == userid || tType == 1 || tType == 4"
  1846. @click.stop="deleteWorks(w.wid)"
  1847. alt
  1848. />
  1849. </div>
  1850. </div>
  1851. </div>
  1852. <div
  1853. v-if="
  1854. tType &&
  1855. tType == 2 &&
  1856. !sIsOpen &&
  1857. tool.tool.indexOf(15) != -1
  1858. "
  1859. class="worksBox"
  1860. >
  1861. <div
  1862. class="zuoyeYulan"
  1863. v-if="workStudent[toolIndex].length > 0"
  1864. >
  1865. <span class="worksTitle">作业预览</span>
  1866. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1867. </div>
  1868. <div
  1869. class="worksDetailBox"
  1870. v-if="workStudent[toolIndex].length > 0"
  1871. >
  1872. <div
  1873. class="works"
  1874. v-for="(w, wIndex) in workStudent[toolIndex]"
  1875. :key="wIndex"
  1876. >
  1877. <div class="workImg">
  1878. <!-- <img
  1879. src="../assets/icon/works/noImg.png"
  1880. @click="openTools(15, toolIndex, taskCount, w.works)"
  1881. alt=""
  1882. />-->
  1883. <div class="answerBg">
  1884. <!-- <div>{{ w.sName }}</div> -->
  1885. <el-tooltip
  1886. class="item"
  1887. effect="light"
  1888. :content="JSON.parse(w.works)[0].answer"
  1889. placement="top"
  1890. >
  1891. <div class="answerContent">
  1892. {{ JSON.parse(w.works)[0].answer }}
  1893. </div>
  1894. </el-tooltip>
  1895. <div
  1896. class="answerScore"
  1897. v-if="w.score"
  1898. @click.stop="openScore(w)"
  1899. :class="{
  1900. rightW:
  1901. w.userid == userid ||
  1902. tType == 1 ||
  1903. tType == 4,
  1904. }"
  1905. >
  1906. {{ JSON.parse(w.score).wScore }}分
  1907. </div>
  1908. <div
  1909. class="answerScore"
  1910. @click.stop="openScore(w)"
  1911. v-else-if="courseDetail.userid == userid"
  1912. :class="{
  1913. rightW:
  1914. w.userid == userid ||
  1915. tType == 1 ||
  1916. tType == 4,
  1917. }"
  1918. >
  1919. 评分
  1920. </div>
  1921. <img
  1922. class="deleteImg"
  1923. src="../assets/deleteworks.png"
  1924. v-if="
  1925. w.userid == userid || tType == 1 || tType == 4
  1926. "
  1927. @click.stop="deleteWorks(w.wid)"
  1928. alt
  1929. />
  1930. </div>
  1931. <div class="comment">
  1932. <div class="worksName">
  1933. <div>{{ w.sName }}</div>
  1934. </div>
  1935. </div>
  1936. </div>
  1937. </div>
  1938. </div>
  1939. </div>
  1940. <div
  1941. v-if="
  1942. tType &&
  1943. tType == 2 &&
  1944. !sIsOpen &&
  1945. tool.tool.indexOf(1) != -1
  1946. "
  1947. class="worksBox"
  1948. >
  1949. <div
  1950. class="zuoyeYulan"
  1951. v-if="workStudent[toolIndex].length > 0"
  1952. >
  1953. <span class="worksTitle">作业预览</span>
  1954. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1955. </div>
  1956. <div
  1957. class="worksDetailBox"
  1958. v-if="workStudent[toolIndex].length > 0"
  1959. >
  1960. <div
  1961. class="works"
  1962. style="
  1963. width: 200px;
  1964. height: 140px;
  1965. margin: 10px 10px 10px 0;
  1966. box-shadow: 0 0 6px 1px #dfdada;
  1967. "
  1968. v-for="(w, wIndex) in workStudent[toolIndex]"
  1969. :key="wIndex"
  1970. >
  1971. <div class="workImg">
  1972. <img
  1973. :src="w.works"
  1974. @click="previewImg(w.works)"
  1975. alt
  1976. />
  1977. <div
  1978. class="answerScore"
  1979. v-if="w.score"
  1980. @click.stop="openScore(w)"
  1981. :class="{
  1982. rightW:
  1983. w.userid == userid || tType == 1 || tType == 4,
  1984. }"
  1985. >
  1986. {{ JSON.parse(w.score).wScore }}分
  1987. </div>
  1988. <div
  1989. class="answerScore"
  1990. @click.stop="openScore(w)"
  1991. v-else-if="courseDetail.userid == userid"
  1992. :class="{
  1993. rightW:
  1994. w.userid == userid || tType == 1 || tType == 4,
  1995. }"
  1996. >
  1997. 评分
  1998. </div>
  1999. <img
  2000. class="deleteImg"
  2001. src="../assets/deleteworks.png"
  2002. v-if="
  2003. w.userid == userid || tType == 1 || tType == 4
  2004. "
  2005. @click.stop="deleteWorks(w.wid)"
  2006. alt
  2007. />
  2008. </div>
  2009. <div class="worksName">
  2010. <div>{{ w.sName }}</div>
  2011. </div>
  2012. </div>
  2013. </div>
  2014. </div>
  2015. <div
  2016. v-if="
  2017. tType &&
  2018. tType == 2 &&
  2019. !sIsOpen &&
  2020. tool.tool.indexOf(3) != -1
  2021. "
  2022. class="worksBox"
  2023. >
  2024. <div
  2025. class="zuoyeYulan"
  2026. v-if="workStudent[toolIndex].length > 0"
  2027. >
  2028. <span class="worksTitle">作业预览</span>
  2029. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2030. </div>
  2031. <div
  2032. class="worksDetailBox"
  2033. v-if="workStudent[toolIndex].length > 0"
  2034. >
  2035. <div
  2036. class="works"
  2037. style="
  2038. width: 200px;
  2039. height: 140px;
  2040. margin: 10px 10px 10px 0;
  2041. box-shadow: 0 0 6px 1px #dfdada;
  2042. "
  2043. v-for="(w, wIndex) in workStudent[toolIndex]"
  2044. :key="wIndex"
  2045. >
  2046. <div class="workImg">
  2047. <img
  2048. :src="w.works"
  2049. @click="previewImg(w.works)"
  2050. alt
  2051. />
  2052. <div
  2053. class="answerScore"
  2054. v-if="w.score"
  2055. @click.stop="openScore(w)"
  2056. :class="{
  2057. rightW:
  2058. w.userid == userid || tType == 1 || tType == 4,
  2059. }"
  2060. >
  2061. {{ JSON.parse(w.score).wScore }}分
  2062. </div>
  2063. <div
  2064. class="answerScore"
  2065. @click.stop="openScore(w)"
  2066. v-else-if="courseDetail.userid == userid"
  2067. :class="{
  2068. rightW:
  2069. w.userid == userid || tType == 1 || tType == 4,
  2070. }"
  2071. >
  2072. 评分
  2073. </div>
  2074. <img
  2075. class="deleteImg"
  2076. src="../assets/deleteworks.png"
  2077. v-if="
  2078. w.userid == userid || tType == 1 || tType == 4
  2079. "
  2080. @click.stop="deleteWorks(w.wid)"
  2081. alt
  2082. />
  2083. </div>
  2084. <div class="worksName">
  2085. <div>{{ w.sName }}</div>
  2086. </div>
  2087. </div>
  2088. </div>
  2089. </div>
  2090. <div
  2091. v-if="
  2092. tType &&
  2093. tType == 2 &&
  2094. !sIsOpen &&
  2095. tool.tool.indexOf(6) != -1
  2096. "
  2097. class="worksBox"
  2098. >
  2099. <div
  2100. class="zuoyeYulan"
  2101. v-if="workStudent[toolIndex].length > 0"
  2102. >
  2103. <span class="worksTitle">作业预览</span>
  2104. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2105. </div>
  2106. <div
  2107. class="worksDetailBox"
  2108. v-if="workStudent[toolIndex].length > 0"
  2109. >
  2110. <div
  2111. class="works"
  2112. style="
  2113. width: 200px;
  2114. height: 140px;
  2115. margin: 10px 10px 10px 0;
  2116. box-shadow: 0 0 6px 1px #dfdada;
  2117. "
  2118. v-for="(w, wIndex) in workStudent[toolIndex]"
  2119. :key="wIndex"
  2120. >
  2121. <div class="workImg">
  2122. <img
  2123. :src="w.works"
  2124. @click="previewImg(w.works)"
  2125. alt
  2126. />
  2127. <div
  2128. class="answerScore"
  2129. v-if="w.score"
  2130. @click.stop="openScore(w)"
  2131. :class="{
  2132. rightW:
  2133. w.userid == userid || tType == 1 || tType == 4,
  2134. }"
  2135. >
  2136. {{ JSON.parse(w.score).wScore }}分
  2137. </div>
  2138. <div
  2139. class="answerScore"
  2140. @click.stop="openScore(w)"
  2141. v-else-if="courseDetail.userid == userid"
  2142. :class="{
  2143. rightW:
  2144. w.userid == userid || tType == 1 || tType == 4,
  2145. }"
  2146. >
  2147. 评分
  2148. </div>
  2149. <img
  2150. class="deleteImg"
  2151. src="../assets/deleteworks.png"
  2152. v-if="
  2153. w.userid == userid || tType == 1 || tType == 4
  2154. "
  2155. @click.stop="deleteWorks(w.wid)"
  2156. alt
  2157. />
  2158. </div>
  2159. <div class="worksName">
  2160. <div>{{ w.sName }}</div>
  2161. </div>
  2162. </div>
  2163. </div>
  2164. </div>
  2165. <div
  2166. v-if="
  2167. tType &&
  2168. tType == 2 &&
  2169. !sIsOpen &&
  2170. tool.tool.indexOf(7) != -1
  2171. "
  2172. class="worksBox"
  2173. >
  2174. <div
  2175. class="zuoyeYulan"
  2176. v-if="workStudent[toolIndex].length > 0"
  2177. >
  2178. <span class="worksTitle">作业预览</span>
  2179. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2180. </div>
  2181. <div
  2182. class="worksDetailBox"
  2183. v-if="workStudent[toolIndex].length > 0"
  2184. >
  2185. <div
  2186. class="works"
  2187. style="
  2188. width: 200px;
  2189. height: 140px;
  2190. margin: 10px 10px 10px 0;
  2191. box-shadow: 0 0 6px 1px #dfdada;
  2192. "
  2193. v-for="(w, wIndex) in workStudent[toolIndex]"
  2194. :key="wIndex"
  2195. >
  2196. <div class="workImg">
  2197. <img
  2198. :src="w.works"
  2199. @click="previewImg(w.works)"
  2200. alt
  2201. />
  2202. <div
  2203. class="answerScore"
  2204. v-if="w.score"
  2205. @click.stop="openScore(w)"
  2206. :class="{
  2207. rightW:
  2208. w.userid == userid || tType == 1 || tType == 4,
  2209. }"
  2210. >
  2211. {{ JSON.parse(w.score).wScore }}分
  2212. </div>
  2213. <div
  2214. class="answerScore"
  2215. @click.stop="openScore(w)"
  2216. v-else-if="courseDetail.userid == userid"
  2217. :class="{
  2218. rightW:
  2219. w.userid == userid || tType == 1 || tType == 4,
  2220. }"
  2221. >
  2222. 评分
  2223. </div>
  2224. <img
  2225. class="deleteImg"
  2226. src="../assets/deleteworks.png"
  2227. v-if="
  2228. w.userid == userid || tType == 1 || tType == 4
  2229. "
  2230. @click.stop="deleteWorks(w.wid)"
  2231. alt
  2232. />
  2233. </div>
  2234. <div class="worksName">
  2235. <div>{{ w.sName }}</div>
  2236. </div>
  2237. </div>
  2238. </div>
  2239. </div>
  2240. <div
  2241. v-if="
  2242. tType &&
  2243. tType == 2 &&
  2244. !sIsOpen &&
  2245. tool.tool.indexOf(26) != -1
  2246. "
  2247. class="worksBox"
  2248. >
  2249. <div
  2250. class="zuoyeYulan"
  2251. v-if="workStudent[toolIndex].length > 0"
  2252. >
  2253. <span class="worksTitle">作业预览</span>
  2254. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2255. </div>
  2256. <div
  2257. class="worksDetailBox"
  2258. v-if="workStudent[toolIndex].length > 0"
  2259. >
  2260. <div
  2261. class="works"
  2262. style="
  2263. width: 200px;
  2264. height: 140px;
  2265. margin: 10px 10px 10px 0;
  2266. box-shadow: 0 0 6px 1px #dfdada;
  2267. "
  2268. v-for="(w, wIndex) in workStudent[toolIndex]"
  2269. :key="wIndex"
  2270. >
  2271. <div class="workImg">
  2272. <img
  2273. :src="w.works"
  2274. @click="previewImg(w.works)"
  2275. alt
  2276. />
  2277. <img
  2278. class="deleteImg"
  2279. src="../assets/deleteworks.png"
  2280. v-if="
  2281. w.userid == userid || tType == 1 || tType == 4
  2282. "
  2283. @click.stop="deleteWorks(w.wid)"
  2284. alt
  2285. />
  2286. </div>
  2287. <div class="worksName">
  2288. <div>{{ w.sName }}</div>
  2289. </div>
  2290. </div>
  2291. </div>
  2292. </div>
  2293. <div
  2294. v-if="
  2295. tType &&
  2296. ((tType == 2 && sIsOpen == true) ||
  2297. tType == 1 ||
  2298. tType == 4) &&
  2299. tool.tool.indexOf(16) != -1
  2300. "
  2301. class="worksBox"
  2302. >
  2303. <div
  2304. class="zuoyeYulan"
  2305. v-if="
  2306. (worksStudent.length &&
  2307. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2308. "
  2309. >
  2310. <div class="worksTop">
  2311. <div>作业预览</div>
  2312. <div
  2313. class="corOpen"
  2314. @click="contract(toolIndex)"
  2315. v-if="
  2316. (isCloseList[toolIndex].isCloseBoolean) &&
  2317. isCloseList[toolIndex].isClose == 0
  2318. "
  2319. >
  2320. 折叠
  2321. </div>
  2322. <div
  2323. class="corOpen"
  2324. @click="contract(toolIndex)"
  2325. v-if="isCloseList[toolIndex].isClose == 1"
  2326. >
  2327. 展开
  2328. </div>
  2329. </div>
  2330. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2331. </div>
  2332. <div
  2333. class="group_workBox"
  2334. v-for="(g, gindex) in courseGroup.group"
  2335. :key="gindex"
  2336. >
  2337. <div class="group_box">
  2338. <div class="group_title">
  2339. <el-tooltip
  2340. class="item"
  2341. effect="light"
  2342. :content="g.name"
  2343. placement="top"
  2344. >
  2345. <div class="group_name">{{ g.name }}</div>
  2346. </el-tooltip>
  2347. </div>
  2348. <div
  2349. class="group_work"
  2350. v-if="
  2351. g.works &&
  2352. g.works.length &&
  2353. g.works[toolIndex].length
  2354. "
  2355. >
  2356. <div
  2357. class="works"
  2358. style="
  2359. width: 200px;
  2360. height: 140px;
  2361. margin: 10px 10px 10px 0;
  2362. border-radius: 15px;
  2363. box-shadow: 0 0 6px 1px #dfdada;
  2364. "
  2365. v-for="(w, wIndex) in g.works[toolIndex]"
  2366. :key="wIndex"
  2367. :class="w.type == 1 ? 'isTypeOne' : ''"
  2368. >
  2369. <div class="workImg" v-if="w.type == 0">
  2370. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2371. <img
  2372. :src="w.works"
  2373. @click="previewImg(w.works)"
  2374. alt
  2375. />
  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="workImg" v-if="w.type == 1">
  2415. <img :src="word" @click="openFile(w.works)" alt />
  2416. <!-- @click="openFile(w.works)" -->
  2417. <div
  2418. class="answerScore"
  2419. v-if="w.score"
  2420. @click.stop="openScore(w)"
  2421. :class="{
  2422. rightW:
  2423. w.userid == userid ||
  2424. tType == 1 ||
  2425. tType == 4 ||
  2426. w.ateacher == userid,
  2427. }"
  2428. >
  2429. {{ JSON.parse(w.score).wScore }}分
  2430. </div>
  2431. <div
  2432. class="answerScore"
  2433. @click.stop="openScore(w)"
  2434. v-else-if="courseDetail.userid == userid"
  2435. :class="{
  2436. rightW:
  2437. w.userid == userid ||
  2438. tType == 1 ||
  2439. tType == 4 ||
  2440. w.ateacher == userid,
  2441. }"
  2442. >
  2443. 评分
  2444. </div>
  2445. <img
  2446. class="deleteImg"
  2447. src="../assets/deleteworks.png"
  2448. v-if="
  2449. w.userid == userid || tType == 1 || tType == 4
  2450. "
  2451. @click.stop="deleteWorks(w.wid)"
  2452. alt
  2453. />
  2454. </div>
  2455. <div class="workImg" v-if="w.type == 3">
  2456. <img
  2457. style="cursor: pointer"
  2458. :src="video"
  2459. @click="openVideo(w)"
  2460. alt
  2461. />
  2462. <!-- @click="openVideo(w.works)" -->
  2463. <div
  2464. class="answerScore"
  2465. v-if="w.score"
  2466. @click.stop="openScore(w)"
  2467. :class="{
  2468. rightW:
  2469. w.userid == userid ||
  2470. tType == 1 ||
  2471. tType == 4 ||
  2472. w.ateacher == userid,
  2473. }"
  2474. >
  2475. {{ JSON.parse(w.score).wScore }}分
  2476. </div>
  2477. <div
  2478. class="answerScore"
  2479. @click.stop="openScore(w)"
  2480. v-else-if="courseDetail.userid == userid"
  2481. :class="{
  2482. rightW:
  2483. w.userid == userid ||
  2484. tType == 1 ||
  2485. tType == 4 ||
  2486. w.ateacher == userid,
  2487. }"
  2488. >
  2489. 评分
  2490. </div>
  2491. <img
  2492. class="deleteImg"
  2493. src="../assets/deleteworks.png"
  2494. v-if="
  2495. w.userid == userid || tType == 1 || tType == 4
  2496. "
  2497. @click.stop="deleteWorks(w.wid)"
  2498. alt
  2499. />
  2500. </div>
  2501. <div class="workImg" v-if="w.type == 12">
  2502. <img
  2503. style="cursor: pointer"
  2504. :src="word2"
  2505. @click="downloadFile(w.works)"
  2506. alt
  2507. />
  2508. <!-- @click="openVideo(w.works)" -->
  2509. <div
  2510. class="answerScore"
  2511. v-if="w.score"
  2512. @click.stop="openScore(w)"
  2513. :class="{
  2514. rightW:
  2515. w.userid == userid ||
  2516. tType == 1 ||
  2517. tType == 4 ||
  2518. w.ateacher == userid,
  2519. }"
  2520. >
  2521. {{ JSON.parse(w.score).wScore }}分
  2522. </div>
  2523. <div
  2524. class="answerScore"
  2525. @click.stop="openScore(w)"
  2526. v-else-if="courseDetail.userid == userid"
  2527. :class="{
  2528. rightW:
  2529. w.userid == userid ||
  2530. tType == 1 ||
  2531. tType == 4 ||
  2532. w.ateacher == userid,
  2533. }"
  2534. >
  2535. 评分
  2536. </div>
  2537. <img
  2538. class="deleteImg"
  2539. src="../assets/deleteworks.png"
  2540. v-if="
  2541. w.userid == userid || tType == 1 || tType == 4
  2542. "
  2543. @click.stop="deleteWorks(w.wid)"
  2544. alt
  2545. />
  2546. </div>
  2547. <div class="comment" style="min-width: 200px">
  2548. <div class="worksName">
  2549. <div>{{ w.sName }}</div>
  2550. </div>
  2551. <div class="commentList">
  2552. <div class="commentList">
  2553. <div
  2554. class="commentImg"
  2555. @click="
  2556. isLikes(w.wid, userid, 1, null, w.isLikes)
  2557. "
  2558. >
  2559. <img
  2560. :src="w.isLikes == true ? likes : noLikes"
  2561. alt=""
  2562. />
  2563. </div>
  2564. <div>{{ w.likesCount }}</div>
  2565. </div>
  2566. <div
  2567. class="commentList"
  2568. style="margin-right: 15px"
  2569. >
  2570. <div
  2571. class="commentImg"
  2572. @click="
  2573. commentOther(
  2574. w,
  2575. toolIndex,
  2576. wIndex,
  2577. null,
  2578. g.id
  2579. )
  2580. "
  2581. >
  2582. <img
  2583. src="../assets/icon/comment/comment.png"
  2584. alt=""
  2585. />
  2586. </div>
  2587. <div>{{ w.commentCount }}</div>
  2588. </div>
  2589. </div>
  2590. </div>
  2591. </div>
  2592. </div>
  2593. <div class="group_work" v-else>暂无提交作业</div>
  2594. </div>
  2595. </div>
  2596. <div
  2597. :id="'tool-' + toolIndex"
  2598. :style="{
  2599. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2600. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2601. }"
  2602. class="worksDetailBox"
  2603. v-if="
  2604. worksStudent.length &&
  2605. worksStudent[toolIndex].length > 0
  2606. "
  2607. >
  2608. <div
  2609. class="works"
  2610. style="
  2611. width: 200px;
  2612. height: 140px;
  2613. margin: 10px 10px 10px 0;
  2614. border-radius: 15px;
  2615. box-shadow: 0 0 6px 1px #dfdada;
  2616. "
  2617. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2618. :key="wIndex"
  2619. :class="w.type == 1 ? 'isTypeOne' : ''"
  2620. >
  2621. <div class="workImg" v-if="w.type == 0">
  2622. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2623. <img
  2624. :src="w.works"
  2625. @click="previewImg(w.works)"
  2626. alt
  2627. />
  2628. <div
  2629. class="answerScore"
  2630. v-if="w.score"
  2631. @click.stop="openScore(w)"
  2632. :class="{
  2633. rightW:
  2634. w.userid == userid ||
  2635. tType == 1 ||
  2636. tType == 4 ||
  2637. w.ateacher == userid,
  2638. }"
  2639. >
  2640. {{ JSON.parse(w.score).wScore }}分
  2641. </div>
  2642. <div
  2643. class="answerScore"
  2644. @click.stop="openScore(w)"
  2645. v-else-if="courseDetail.userid == userid"
  2646. :class="{
  2647. rightW:
  2648. w.userid == userid ||
  2649. tType == 1 ||
  2650. tType == 4 ||
  2651. w.ateacher == userid,
  2652. }"
  2653. >
  2654. 评分
  2655. </div>
  2656. <img
  2657. class="deleteImg"
  2658. src="../assets/deleteworks.png"
  2659. v-if="
  2660. w.userid == userid || tType == 1 || tType == 4
  2661. "
  2662. @click.stop="deleteWorks(w.wid)"
  2663. alt
  2664. />
  2665. </div>
  2666. <div class="workImg" v-if="w.type == 1">
  2667. <img :src="word" @click="openFile(w.works)" alt />
  2668. <!-- @click="openFile(w.works)" -->
  2669. <div
  2670. class="answerScore"
  2671. v-if="w.score"
  2672. @click.stop="openScore(w)"
  2673. :class="{
  2674. rightW:
  2675. w.userid == userid ||
  2676. tType == 1 ||
  2677. tType == 4 ||
  2678. w.ateacher == userid,
  2679. }"
  2680. >
  2681. {{ JSON.parse(w.score).wScore }}分
  2682. </div>
  2683. <div
  2684. class="answerScore"
  2685. @click.stop="openScore(w)"
  2686. v-else-if="courseDetail.userid == userid"
  2687. :class="{
  2688. rightW:
  2689. w.userid == userid ||
  2690. tType == 1 ||
  2691. tType == 4 ||
  2692. w.ateacher == userid,
  2693. }"
  2694. >
  2695. 评分
  2696. </div>
  2697. <img
  2698. class="deleteImg"
  2699. src="../assets/deleteworks.png"
  2700. v-if="
  2701. w.userid == userid || tType == 1 || tType == 4
  2702. "
  2703. @click.stop="deleteWorks(w.wid)"
  2704. alt
  2705. />
  2706. </div>
  2707. <div class="workImg" v-if="w.type == 3">
  2708. <img
  2709. style="cursor: pointer"
  2710. :src="video"
  2711. @click="openVideo(w)"
  2712. alt
  2713. />
  2714. <!-- @click="openVideo(w.works)" -->
  2715. <div
  2716. class="answerScore"
  2717. v-if="w.score"
  2718. @click.stop="openScore(w)"
  2719. :class="{
  2720. rightW:
  2721. w.userid == userid ||
  2722. tType == 1 ||
  2723. tType == 4 ||
  2724. w.ateacher == userid,
  2725. }"
  2726. >
  2727. {{ JSON.parse(w.score).wScore }}分
  2728. </div>
  2729. <div
  2730. class="answerScore"
  2731. @click.stop="openScore(w)"
  2732. v-else-if="courseDetail.userid == userid"
  2733. :class="{
  2734. rightW:
  2735. w.userid == userid ||
  2736. tType == 1 ||
  2737. tType == 4 ||
  2738. w.ateacher == userid,
  2739. }"
  2740. >
  2741. 评分
  2742. </div>
  2743. <img
  2744. class="deleteImg"
  2745. src="../assets/deleteworks.png"
  2746. v-if="
  2747. w.userid == userid || tType == 1 || tType == 4
  2748. "
  2749. @click.stop="deleteWorks(w.wid)"
  2750. alt
  2751. />
  2752. </div>
  2753. <div class="workImg" v-if="w.type == 12">
  2754. <img
  2755. style="cursor: pointer"
  2756. :src="word2"
  2757. @click="downloadFile(w.works)"
  2758. alt
  2759. />
  2760. <!-- @click="openVideo(w.works)" -->
  2761. <div
  2762. class="answerScore"
  2763. v-if="w.score"
  2764. @click.stop="openScore(w)"
  2765. :class="{
  2766. rightW:
  2767. w.userid == userid ||
  2768. tType == 1 ||
  2769. tType == 4 ||
  2770. w.ateacher == userid,
  2771. }"
  2772. >
  2773. {{ JSON.parse(w.score).wScore }}分
  2774. </div>
  2775. <div
  2776. class="answerScore"
  2777. @click.stop="openScore(w)"
  2778. v-else-if="courseDetail.userid == userid"
  2779. :class="{
  2780. rightW:
  2781. w.userid == userid ||
  2782. tType == 1 ||
  2783. tType == 4 ||
  2784. w.ateacher == userid,
  2785. }"
  2786. >
  2787. 评分
  2788. </div>
  2789. <img
  2790. class="deleteImg"
  2791. src="../assets/deleteworks.png"
  2792. v-if="
  2793. w.userid == userid || tType == 1 || tType == 4
  2794. "
  2795. @click.stop="deleteWorks(w.wid)"
  2796. alt
  2797. />
  2798. </div>
  2799. <div class="comment" style="min-width: 200px">
  2800. <div class="worksName">
  2801. <div>{{ w.sName }}</div>
  2802. </div>
  2803. <div class="commentList">
  2804. <div class="commentList">
  2805. <div
  2806. class="commentImg"
  2807. @click="
  2808. isLikes(w.wid, userid, 1, null, w.isLikes)
  2809. "
  2810. >
  2811. <img
  2812. :src="w.isLikes == true ? likes : noLikes"
  2813. alt=""
  2814. />
  2815. </div>
  2816. <div>{{ w.likesCount }}</div>
  2817. </div>
  2818. <div class="commentList" style="margin-right: 15px">
  2819. <div
  2820. class="commentImg"
  2821. @click="commentOther(w, toolIndex, wIndex)"
  2822. >
  2823. <img
  2824. src="../assets/icon/comment/comment.png"
  2825. alt=""
  2826. />
  2827. </div>
  2828. <div>{{ w.commentCount }}</div>
  2829. </div>
  2830. </div>
  2831. </div>
  2832. </div>
  2833. </div>
  2834. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2835. 未提交
  2836. </div>
  2837. <div
  2838. class="noWorksS"
  2839. v-if="noWorksS && noWorksS[toolIndex].length"
  2840. >
  2841. <div
  2842. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2843. :key="sIndex"
  2844. class="noWorksName"
  2845. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  2846. >
  2847. {{ s.student }}
  2848. </div>
  2849. </div>
  2850. </div>
  2851. <div
  2852. v-if="
  2853. tType &&
  2854. ((tType == 2 && sIsOpen == true) ||
  2855. tType == 1 ||
  2856. tType == 4) &&
  2857. tool.tool.indexOf(70) != -1
  2858. "
  2859. class="worksBox"
  2860. >
  2861. <div
  2862. class="zuoyeYulan"
  2863. v-if="
  2864. (worksStudent.length &&
  2865. worksStudent[toolIndex].length > 0)
  2866. "
  2867. >
  2868. <div class="worksTop">
  2869. <div>作业预览</div>
  2870. <div
  2871. class="corOpen"
  2872. @click="contract(toolIndex)"
  2873. v-if="
  2874. (isCloseList[toolIndex].isCloseBoolean) &&
  2875. isCloseList[toolIndex].isClose == 0
  2876. "
  2877. >
  2878. 折叠
  2879. </div>
  2880. <div
  2881. class="corOpen"
  2882. @click="contract(toolIndex)"
  2883. v-if="isCloseList[toolIndex].isClose == 1"
  2884. >
  2885. 展开
  2886. </div>
  2887. </div>
  2888. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2889. </div>
  2890. <div
  2891. :id="'tool-' + toolIndex"
  2892. :style="{
  2893. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2894. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2895. }"
  2896. class="worksDetailBox"
  2897. v-if="
  2898. worksStudent.length &&
  2899. worksStudent[toolIndex].length > 0
  2900. "
  2901. >
  2902. <div
  2903. class="works"
  2904. style="
  2905. width: 200px;
  2906. height: 140px;
  2907. margin: 10px 10px 10px 0;
  2908. border-radius: 15px;
  2909. box-shadow: 0 0 6px 1px #dfdada;
  2910. "
  2911. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2912. :key="wIndex"
  2913. :class="w.type == 1 ? 'isTypeOne' : ''"
  2914. >
  2915. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  2916. <img :src="word" alt />
  2917. <img
  2918. class="deleteImg"
  2919. src="../assets/deleteworks.png"
  2920. v-if="
  2921. w.userid == userid || tType == 1 || tType == 4
  2922. "
  2923. @click.stop="deleteWorks(w.wid)"
  2924. alt
  2925. />
  2926. </div>
  2927. <div class="comment" style="min-width: 200px">
  2928. <div class="worksName">
  2929. <div>{{ w.sName }}</div>
  2930. </div>
  2931. </div>
  2932. </div>
  2933. </div>
  2934. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2935. 未提交
  2936. </div>
  2937. <div
  2938. class="noWorksS"
  2939. v-if="noWorksS && noWorksS[toolIndex].length"
  2940. >
  2941. <div
  2942. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2943. :key="sIndex"
  2944. class="noWorksName"
  2945. >
  2946. {{ s.student }}
  2947. </div>
  2948. </div>
  2949. </div>
  2950. <div
  2951. v-if="
  2952. tType &&
  2953. tType == 2 &&
  2954. !sIsOpen &&
  2955. tool.tool.indexOf(70) != -1
  2956. "
  2957. class="worksBox"
  2958. >
  2959. <div
  2960. class="zuoyeYulan"
  2961. v-if="workStudent[toolIndex].length > 0"
  2962. >
  2963. <span class="worksTitle">作业预览</span>
  2964. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2965. </div>
  2966. <div
  2967. class="worksDetailBox"
  2968. v-if="workStudent[toolIndex].length > 0"
  2969. >
  2970. <div
  2971. class="works"
  2972. style="
  2973. width: 200px;
  2974. height: 140px;
  2975. margin: 10px 10px 10px 0;
  2976. box-shadow: 0 0 6px 1px #dfdada;
  2977. "
  2978. v-for="(w, wIndex) in workStudent[toolIndex]"
  2979. :key="wIndex"
  2980. >
  2981. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  2982. <img :src="word" alt />
  2983. <img
  2984. class="deleteImg"
  2985. src="../assets/deleteworks.png"
  2986. v-if="
  2987. w.userid == userid || tType == 1 || tType == 4
  2988. "
  2989. @click.stop="deleteWorks(w.wid)"
  2990. alt
  2991. />
  2992. </div>
  2993. <div class="worksName">
  2994. <div>{{ w.sName }}</div>
  2995. </div>
  2996. </div>
  2997. </div>
  2998. </div>
  2999. <div
  3000. v-if="
  3001. tType &&
  3002. ((tType == 2 && sIsOpen == true) ||
  3003. tType == 1 ||
  3004. tType == 4) &&
  3005. tool.tool.indexOf(32) != -1
  3006. "
  3007. class="worksBox"
  3008. >
  3009. <div
  3010. class="zuoyeYulan"
  3011. v-if="
  3012. worksStudent.length &&
  3013. worksStudent[toolIndex].length > 0
  3014. "
  3015. >
  3016. <div class="worksTop">
  3017. <div>作业预览</div>
  3018. <div
  3019. class="corOpen"
  3020. @click="contract(toolIndex)"
  3021. v-if="
  3022. (isCloseList[toolIndex].isCloseBoolean) &&
  3023. isCloseList[toolIndex].isClose == 0
  3024. "
  3025. >
  3026. 折叠
  3027. </div>
  3028. <div
  3029. class="corOpen"
  3030. @click="contract(toolIndex)"
  3031. v-if="isCloseList[toolIndex].isClose == 1"
  3032. >
  3033. 展开
  3034. </div>
  3035. </div>
  3036. </div>
  3037. <div
  3038. :id="'tool-' + toolIndex"
  3039. class="worksDetailBox"
  3040. :style="{
  3041. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3042. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3043. }"
  3044. v-if="
  3045. worksStudent.length &&
  3046. worksStudent[toolIndex].length > 0
  3047. "
  3048. >
  3049. <div
  3050. class="works"
  3051. style="
  3052. width: 200px;
  3053. height: 140px;
  3054. margin: 10px 10px 10px 0;
  3055. border-radius: 15px;
  3056. box-shadow: 0 0 6px 1px #dfdada;
  3057. "
  3058. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3059. :key="wIndex"
  3060. :class="w.type == 1 ? 'isTypeOne' : ''"
  3061. >
  3062. <div class="workImg">
  3063. <img
  3064. :src="word2"
  3065. @click="downloadFile(w.works)"
  3066. alt
  3067. />
  3068. <div
  3069. class="answerScore"
  3070. v-if="w.score"
  3071. @click.stop="openScore(w)"
  3072. :class="{
  3073. rightW:
  3074. w.userid == userid ||
  3075. tType == 1 ||
  3076. tType == 4 ||
  3077. w.ateacher == userid,
  3078. }"
  3079. >
  3080. {{ JSON.parse(w.score).wScore }}分
  3081. </div>
  3082. <div
  3083. class="answerScore"
  3084. @click.stop="openScore(w)"
  3085. v-else-if="courseDetail.userid == userid"
  3086. :class="{
  3087. rightW:
  3088. w.userid == userid ||
  3089. tType == 1 ||
  3090. tType == 4 ||
  3091. w.ateacher == userid,
  3092. }"
  3093. >
  3094. 评分
  3095. </div>
  3096. <img
  3097. class="deleteImg"
  3098. src="../assets/deleteworks.png"
  3099. v-if="
  3100. w.userid == userid || tType == 1 || tType == 4
  3101. "
  3102. @click.stop="deleteWorks(w.wid)"
  3103. alt
  3104. />
  3105. </div>
  3106. <div class="comment" style="min-width: 200px">
  3107. <div class="worksName">
  3108. <div>{{ w.sName }}</div>
  3109. </div>
  3110. <div class="commentList">
  3111. <div class="commentList">
  3112. <div
  3113. class="commentImg"
  3114. @click="
  3115. isLikes(w.wid, userid, 1, null, w.isLikes)
  3116. "
  3117. >
  3118. <img
  3119. :src="w.isLikes == true ? likes : noLikes"
  3120. alt=""
  3121. />
  3122. </div>
  3123. <div>{{ w.likesCount }}</div>
  3124. </div>
  3125. <div class="commentList" style="margin-right: 15px">
  3126. <div
  3127. class="commentImg"
  3128. @click="commentOther(w, toolIndex, wIndex)"
  3129. >
  3130. <img
  3131. src="../assets/icon/comment/comment.png"
  3132. alt=""
  3133. />
  3134. </div>
  3135. <div>{{ w.commentCount }}</div>
  3136. </div>
  3137. </div>
  3138. </div>
  3139. </div>
  3140. </div>
  3141. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3142. 未提交
  3143. </div>
  3144. <div
  3145. class="noWorksS"
  3146. v-if="noWorksS && noWorksS[toolIndex].length"
  3147. >
  3148. <div
  3149. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3150. :key="sIndex"
  3151. class="noWorksName"
  3152. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3153. >
  3154. {{ s.student }}
  3155. </div>
  3156. </div>
  3157. </div>
  3158. <div
  3159. v-if="
  3160. tType &&
  3161. ((tType == 2 && sIsOpen == true) ||
  3162. tType == 1 ||
  3163. tType == 4) &&
  3164. tool.tool.indexOf(57) != -1
  3165. "
  3166. class="worksBox"
  3167. >
  3168. <div
  3169. class="zuoyeYulan"
  3170. v-if="
  3171. worksStudent.length &&
  3172. worksStudent[toolIndex].length > 0
  3173. "
  3174. >
  3175. <div class="worksTop">
  3176. <div>作业预览</div>
  3177. <div
  3178. class="corOpen"
  3179. @click="contract(toolIndex)"
  3180. v-if="
  3181. (isCloseList[toolIndex].isCloseBoolean) &&
  3182. isCloseList[toolIndex].isClose == 0
  3183. "
  3184. >
  3185. 折叠
  3186. </div>
  3187. <div
  3188. class="corOpen"
  3189. @click="contract(toolIndex)"
  3190. v-if="isCloseList[toolIndex].isClose == 1"
  3191. >
  3192. 展开
  3193. </div>
  3194. </div>
  3195. </div>
  3196. <div
  3197. :id="'tool-' + toolIndex"
  3198. class="worksDetailBox"
  3199. :style="{
  3200. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3201. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3202. }"
  3203. v-if="
  3204. worksStudent.length &&
  3205. worksStudent[toolIndex].length > 0
  3206. "
  3207. >
  3208. <div
  3209. class="works"
  3210. style="
  3211. width: 200px;
  3212. height: 140px;
  3213. margin: 10px 10px 10px 0;
  3214. border-radius: 15px;
  3215. box-shadow: 0 0 6px 1px #dfdada;
  3216. "
  3217. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3218. :key="wIndex"
  3219. :class="w.type == 1 ? 'isTypeOne' : ''"
  3220. >
  3221. <div class="workImg">
  3222. <img
  3223. :src="word2"
  3224. @click="downloadFile(w.works)"
  3225. v-if="w.type == 12"
  3226. alt
  3227. />
  3228. <img
  3229. :src="word2"
  3230. @click="
  3231. openCocoPi(57, toolIndex, w.userid, w.sName)
  3232. "
  3233. v-else-if="w.type == 15"
  3234. alt
  3235. />
  3236. <div
  3237. class="answerScore"
  3238. v-if="w.score"
  3239. @click.stop="openScore(w)"
  3240. :class="{
  3241. rightW:
  3242. w.userid == userid ||
  3243. tType == 1 ||
  3244. tType == 4 ||
  3245. w.ateacher == userid,
  3246. }"
  3247. >
  3248. {{ JSON.parse(w.score).wScore }}分
  3249. </div>
  3250. <div
  3251. class="answerScore"
  3252. @click.stop="openScore(w)"
  3253. v-else-if="courseDetail.userid == userid"
  3254. :class="{
  3255. rightW:
  3256. w.userid == userid ||
  3257. tType == 1 ||
  3258. tType == 4 ||
  3259. w.ateacher == userid,
  3260. }"
  3261. >
  3262. 评分
  3263. </div>
  3264. <img
  3265. class="deleteImg"
  3266. src="../assets/deleteworks.png"
  3267. v-if="
  3268. w.userid == userid || tType == 1 || tType == 4
  3269. "
  3270. @click.stop="deleteWorks(w.wid)"
  3271. alt
  3272. />
  3273. </div>
  3274. <div class="comment" style="min-width: 200px">
  3275. <div class="worksName">
  3276. <div>{{ w.sName }}</div>
  3277. </div>
  3278. <div class="commentList">
  3279. <div class="commentList">
  3280. <div
  3281. class="commentImg"
  3282. @click="
  3283. isLikes(w.wid, userid, 1, null, w.isLikes)
  3284. "
  3285. >
  3286. <img
  3287. :src="w.isLikes == true ? likes : noLikes"
  3288. alt=""
  3289. />
  3290. </div>
  3291. <div>{{ w.likesCount }}</div>
  3292. </div>
  3293. <div class="commentList" style="margin-right: 15px">
  3294. <div
  3295. class="commentImg"
  3296. @click="commentOther(w, toolIndex, wIndex)"
  3297. >
  3298. <img
  3299. src="../assets/icon/comment/comment.png"
  3300. alt=""
  3301. />
  3302. </div>
  3303. <div>{{ w.commentCount }}</div>
  3304. </div>
  3305. </div>
  3306. </div>
  3307. </div>
  3308. </div>
  3309. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3310. 未提交
  3311. </div>
  3312. <div
  3313. class="noWorksS"
  3314. v-if="noWorksS && noWorksS[toolIndex].length"
  3315. >
  3316. <div
  3317. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3318. :key="sIndex"
  3319. class="noWorksName"
  3320. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3321. >
  3322. {{ s.student }}
  3323. </div>
  3324. </div>
  3325. </div>
  3326. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3327. <div
  3328. class="zuoyeYulan"
  3329. v-if="
  3330. worksStudent.length &&
  3331. worksStudent[toolIndex].length > 0
  3332. "
  3333. >
  3334. <span class="worksTitle">作业预览</span>
  3335. <div
  3336. class="corOpen"
  3337. @click="contract(toolIndex)"
  3338. v-if="
  3339. (isCloseList[toolIndex].isCloseBoolean) &&
  3340. isCloseList[toolIndex].isClose == 0
  3341. "
  3342. >
  3343. 折叠
  3344. </div>
  3345. <div
  3346. class="corOpen"
  3347. @click="contract(toolIndex)"
  3348. v-if="isCloseList[toolIndex].isClose == 1"
  3349. >
  3350. 展开
  3351. </div>
  3352. </div>
  3353. <div
  3354. :id="'tool-' + toolIndex"
  3355. :style="{
  3356. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3357. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3358. }"
  3359. class="worksDetailBox"
  3360. v-if="
  3361. worksStudent.length &&
  3362. worksStudent[toolIndex].length > 0
  3363. "
  3364. >
  3365. <div
  3366. class="works"
  3367. style="
  3368. width: 200px;
  3369. height: 140px;
  3370. margin: 10px 10px 10px 0;
  3371. border-radius: 15px;
  3372. box-shadow: 0 0 6px 1px #dfdada;
  3373. "
  3374. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3375. :key="wIndex"
  3376. :class="w.type == 1 ? 'isTypeOne' : ''"
  3377. >
  3378. <div class="workImg" v-if="w.type == 0">
  3379. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3380. <img
  3381. :src="w.works"
  3382. @click="previewImg(w.works)"
  3383. alt
  3384. />
  3385. <div
  3386. class="answerScore"
  3387. v-if="w.score"
  3388. @click.stop="openScore(w)"
  3389. :class="{
  3390. rightW:
  3391. w.userid == userid ||
  3392. tType == 1 ||
  3393. tType == 4 ||
  3394. w.ateacher == userid,
  3395. }"
  3396. >
  3397. {{ JSON.parse(w.score).wScore }}分
  3398. </div>
  3399. <div
  3400. class="answerScore"
  3401. @click.stop="openScore(w)"
  3402. v-else-if="courseDetail.userid == userid"
  3403. :class="{
  3404. rightW:
  3405. w.userid == userid ||
  3406. tType == 1 ||
  3407. tType == 4 ||
  3408. w.ateacher == userid,
  3409. }"
  3410. >
  3411. 评分
  3412. </div>
  3413. <img
  3414. class="deleteImg"
  3415. src="../assets/deleteworks.png"
  3416. v-if="
  3417. w.userid == userid || tType == 1 || tType == 4
  3418. "
  3419. @click.stop="deleteWorks(w.wid)"
  3420. alt
  3421. />
  3422. </div>
  3423. <div
  3424. class="workImg"
  3425. style="cursor: pointer"
  3426. v-if="w.type == 1"
  3427. >
  3428. <img :src="word" @click="openFile(w.works)" alt />
  3429. <!-- @click="openFile(w.works)" -->
  3430. <div
  3431. class="answerScore"
  3432. v-if="w.score"
  3433. @click.stop="openScore(w)"
  3434. :class="{
  3435. rightW:
  3436. w.userid == userid ||
  3437. tType == 1 ||
  3438. tType == 4 ||
  3439. w.ateacher == userid,
  3440. }"
  3441. >
  3442. {{ JSON.parse(w.score).wScore }}分
  3443. </div>
  3444. <div
  3445. class="answerScore"
  3446. @click.stop="openScore(w)"
  3447. v-else-if="courseDetail.userid == userid"
  3448. :class="{
  3449. rightW:
  3450. w.userid == userid ||
  3451. tType == 1 ||
  3452. tType == 4 ||
  3453. w.ateacher == userid,
  3454. }"
  3455. >
  3456. 评分
  3457. </div>
  3458. <img
  3459. class="deleteImg"
  3460. src="../assets/deleteworks.png"
  3461. v-if="
  3462. w.userid == userid || tType == 1 || tType == 4
  3463. "
  3464. @click.stop="deleteWorks(w.wid)"
  3465. alt
  3466. />
  3467. </div>
  3468. <div class="workImg" v-if="w.type == 3">
  3469. <img
  3470. style="cursor: pointer"
  3471. :src="video"
  3472. @click="openVideo(w)"
  3473. alt
  3474. />
  3475. <!-- @click="openVideo(w.works)" -->
  3476. <div
  3477. class="answerScore"
  3478. v-if="w.score"
  3479. @click.stop="openScore(w)"
  3480. :class="{
  3481. rightW:
  3482. w.userid == userid ||
  3483. tType == 1 ||
  3484. tType == 4 ||
  3485. w.ateacher == userid,
  3486. }"
  3487. >
  3488. {{ JSON.parse(w.score).wScore }}分
  3489. </div>
  3490. <div
  3491. class="answerScore"
  3492. @click.stop="openScore(w)"
  3493. v-else-if="courseDetail.userid == userid"
  3494. :class="{
  3495. rightW:
  3496. w.userid == userid ||
  3497. tType == 1 ||
  3498. tType == 4 ||
  3499. w.ateacher == userid,
  3500. }"
  3501. >
  3502. 评分
  3503. </div>
  3504. <img
  3505. class="deleteImg"
  3506. src="../assets/deleteworks.png"
  3507. v-if="
  3508. w.userid == userid || tType == 1 || tType == 4
  3509. "
  3510. @click.stop="deleteWorks(w.wid)"
  3511. alt
  3512. />
  3513. </div>
  3514. <div class="comment" style="min-width: 200px">
  3515. <div class="worksName">
  3516. <div
  3517. style="cursor: pointer"
  3518. @click="
  3519. openSname(w.sName, w.wid, toolIndex, w.userid)
  3520. "
  3521. >
  3522. {{ w.sName }}
  3523. </div>
  3524. </div>
  3525. <div class="commentList">
  3526. <div class="commentList">
  3527. <div
  3528. class="commentImg"
  3529. @click="
  3530. isLikes(w.wid, userid, 1, null, w.isLikes)
  3531. "
  3532. >
  3533. <img
  3534. :src="w.isLikes == true ? likes : noLikes"
  3535. alt=""
  3536. />
  3537. </div>
  3538. <div>{{ w.likesCount }}</div>
  3539. </div>
  3540. <div class="commentList" style="margin-right: 15px">
  3541. <div
  3542. class="commentImg"
  3543. @click="commentOther(w, toolIndex, wIndex)"
  3544. >
  3545. <img
  3546. src="../assets/icon/comment/comment.png"
  3547. alt=""
  3548. />
  3549. </div>
  3550. <div>{{ w.commentCount }}</div>
  3551. </div>
  3552. </div>
  3553. </div>
  3554. </div>
  3555. </div>
  3556. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3557. 未提交
  3558. </div>
  3559. <div
  3560. class="noWorksS"
  3561. v-if="noWorksS && noWorksS[toolIndex].length"
  3562. >
  3563. <div
  3564. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3565. :key="sIndex"
  3566. class="noWorksName"
  3567. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3568. >
  3569. {{ s.student }}
  3570. </div>
  3571. </div>
  3572. </div>
  3573. <div
  3574. v-if="
  3575. tType &&
  3576. ((tType == 2 && sIsOpen == true) ||
  3577. tType == 1 ||
  3578. tType == 4) &&
  3579. tool.tool.indexOf(4) != -1 &&
  3580. (tool.askJson[0].answer ||
  3581. tool.askJson[0].answer === 0) &&
  3582. checkJson[toolIndex].length
  3583. "
  3584. class="xuan_right_box"
  3585. >
  3586. <div
  3587. class="tool_right_box"
  3588. v-for="(item, index) in tool.askJson"
  3589. :key="index"
  3590. >
  3591. <div style="width: calc(100% - 30px);">
  3592. <el-tooltip
  3593. effect="light"
  3594. :content="index + 1 + '、' + item.askstitle"
  3595. placement="top"
  3596. popper-class="text_tooltip"
  3597. >
  3598. <div
  3599. style="
  3600. width: calc(100% - 130px);
  3601. display: block;
  3602. white-space: nowrap;
  3603. overflow: hidden;
  3604. text-overflow: ellipsis;
  3605. word-break: break-word;
  3606. cursor: pointer;
  3607. "
  3608. >
  3609. {{ index + 1 + "、" + item.askstitle }}
  3610. </div>
  3611. </el-tooltip>
  3612. </div>
  3613. <div class="right_box_xuan">
  3614. <span>正确率</span>
  3615. <span>{{
  3616. (checkJson[toolIndex][index].right
  3617. ? checkJson[toolIndex][index].right
  3618. : 0) + "%"
  3619. }}</span>
  3620. </div>
  3621. </div>
  3622. </div>
  3623. <div
  3624. class="xuan_right_box"
  3625. style="background: unset; padding: 0 10px"
  3626. v-if="
  3627. tType &&
  3628. ((tType == 2 && sIsOpen == true) ||
  3629. tType == 1 ||
  3630. tType == 4) &&
  3631. tool.tool.indexOf(4) != -1
  3632. "
  3633. >
  3634. <AskStatic
  3635. v-if="
  3636. worksStudent.length &&
  3637. worksStudent[toolIndex].length > 0
  3638. "
  3639. :askJSON="tool"
  3640. :checkJson="checkJson[toolIndex]"
  3641. ></AskStatic>
  3642. </div>
  3643. <div
  3644. v-if="
  3645. tType &&
  3646. ((tType == 2 && sIsOpen == true) ||
  3647. tType == 1 ||
  3648. tType == 4) &&
  3649. tool.tool.indexOf(4) != -1
  3650. "
  3651. class="worksBox"
  3652. >
  3653. <div
  3654. class="zuoyeYulan"
  3655. v-if="
  3656. worksStudent.length &&
  3657. worksStudent[toolIndex].length > 0
  3658. "
  3659. >
  3660. <div class="worksTop">
  3661. <div>作业预览</div>
  3662. <div
  3663. class="corOpen"
  3664. @click="contract(toolIndex)"
  3665. v-if="
  3666. (isCloseList[toolIndex].isCloseBoolean) &&
  3667. isCloseList[toolIndex].isClose == 0
  3668. "
  3669. >
  3670. 折叠
  3671. </div>
  3672. <div
  3673. class="corOpen"
  3674. @click="contract(toolIndex)"
  3675. v-if="isCloseList[toolIndex].isClose == 1"
  3676. >
  3677. 展开
  3678. </div>
  3679. </div>
  3680. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3681. </div>
  3682. <div>
  3683. <div
  3684. :id="'tool-' + toolIndex"
  3685. :style="{
  3686. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3687. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3688. }"
  3689. class="worksDetailBox"
  3690. v-if="
  3691. worksStudent.length &&
  3692. worksStudent[toolIndex].length > 0
  3693. "
  3694. >
  3695. <div
  3696. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3697. :key="wIndex"
  3698. class="isWorksName2"
  3699. @click="
  3700. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3701. "
  3702. >
  3703. {{ w.sName }}
  3704. <img
  3705. class="deleteImg deleteImg2"
  3706. src="../assets/deleteworks.png"
  3707. v-if="
  3708. w.userid == userid || tType == 1 || tType == 4
  3709. "
  3710. @click.stop="deleteWorks(w.wid)"
  3711. alt
  3712. />
  3713. </div>
  3714. <!-- <div class="works" style="
  3715. width: 200px;
  3716. height: 140px;
  3717. border-radius: 10px;
  3718. box-shadow: 0 0 6px 1px #dfdada;
  3719. overflow: hidden;
  3720. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3721. <div class="workImg">
  3722. <img src="../assets/icon/works/noImg.png" @click="
  3723. openTools(
  3724. 4,
  3725. toolIndex,
  3726. taskCount,
  3727. w.works,
  3728. w.sName
  3729. )
  3730. " alt />
  3731. </div>
  3732. <div class="worksName">
  3733. <div>{{ w.sName }}</div>
  3734. <div>{{ w.time }}</div>
  3735. </div>
  3736. </div> -->
  3737. </div>
  3738. </div>
  3739. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3740. 未提交
  3741. </div>
  3742. <div
  3743. class="noWorksS"
  3744. v-if="noWorksS && noWorksS[toolIndex].length"
  3745. >
  3746. <div
  3747. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3748. :key="sIndex"
  3749. class="noWorksName"
  3750. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3751. >
  3752. {{ s.student }}
  3753. </div>
  3754. </div>
  3755. </div>
  3756. <div
  3757. v-if="
  3758. tType &&
  3759. ((tType == 2 && sIsOpen == true) ||
  3760. tType == 1 ||
  3761. tType == 4) &&
  3762. tool.tool.indexOf(45) != -1 &&
  3763. (tool.testJson.testJson[0].answer ||
  3764. tool.testJson.testJson[0].answer === 0) &&
  3765. checkJson[toolIndex].length
  3766. "
  3767. class="xuan_right_box"
  3768. >
  3769. <div
  3770. class="tool_right_box"
  3771. v-for="(item, index) in tool.testJson.testJson"
  3772. :key="index"
  3773. >
  3774. <div class="right_box_xuan" style="margin-right: 10px">
  3775. <span>正确率</span>
  3776. <span>{{
  3777. (checkJson[toolIndex][index].right
  3778. ? checkJson[toolIndex][index].right
  3779. : 0) + "%"
  3780. }}</span>
  3781. </div>
  3782. <div style="width: calc(100% - 30px);">
  3783. <el-tooltip
  3784. effect="light"
  3785. :content="index + 1 + '、' + item.teststitle"
  3786. placement="top"
  3787. popper-class="text_tooltip"
  3788. >
  3789. <div
  3790. style="
  3791. width: calc(100% - 130px);
  3792. display: block;
  3793. white-space: nowrap;
  3794. overflow: hidden;
  3795. text-overflow: ellipsis;
  3796. word-break: break-word;
  3797. cursor: pointer;
  3798. "
  3799. >
  3800. {{ index + 1 + "、" + item.teststitle }}
  3801. </div>
  3802. </el-tooltip>
  3803. </div>
  3804. </div>
  3805. </div>
  3806. <div
  3807. class="xuan_right_box"
  3808. style="background: unset; padding: 0 10px; width: 91.5%"
  3809. v-if="
  3810. tType &&
  3811. ((tType == 2 && sIsOpen == true) ||
  3812. tType == 1 ||
  3813. tType == 4) &&
  3814. tool.tool.indexOf(45) != -1
  3815. "
  3816. >
  3817. <AskStatic2
  3818. v-if="
  3819. worksStudent.length &&
  3820. worksStudent[toolIndex].length > 0
  3821. "
  3822. :askJSON="tool"
  3823. :checkJson="checkJson[toolIndex]"
  3824. ></AskStatic2>
  3825. </div>
  3826. <div
  3827. v-if="
  3828. tType &&
  3829. ((tType == 2 && sIsOpen == true) ||
  3830. tType == 1 ||
  3831. tType == 4) &&
  3832. tool.tool.indexOf(45) != -1
  3833. "
  3834. class="worksBox"
  3835. >
  3836. <div
  3837. class="zuoyeYulan"
  3838. v-if="
  3839. worksStudent.length &&
  3840. worksStudent[toolIndex].length > 0
  3841. "
  3842. >
  3843. <div class="worksTop">
  3844. <div>作业预览</div>
  3845. <div
  3846. class="corOpen"
  3847. @click="contract(toolIndex)"
  3848. v-if="
  3849. (isCloseList[toolIndex].isCloseBoolean) &&
  3850. isCloseList[toolIndex].isClose == 0
  3851. "
  3852. >
  3853. 折叠
  3854. </div>
  3855. <div
  3856. class="corOpen"
  3857. @click="contract(toolIndex)"
  3858. v-if="isCloseList[toolIndex].isClose == 1"
  3859. >
  3860. 展开
  3861. </div>
  3862. </div>
  3863. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3864. </div>
  3865. <div>
  3866. <div
  3867. :id="'tool-' + toolIndex"
  3868. :style="{
  3869. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3870. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3871. }"
  3872. class="worksDetailBox"
  3873. v-if="
  3874. worksStudent.length &&
  3875. worksStudent[toolIndex].length > 0
  3876. "
  3877. >
  3878. <div
  3879. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3880. :key="wIndex"
  3881. class="isWorksName2"
  3882. @click="
  3883. openTools(
  3884. 45,
  3885. toolIndex,
  3886. taskCount,
  3887. w.works,
  3888. w.sName
  3889. )
  3890. "
  3891. >
  3892. {{ w.sName }}
  3893. <img
  3894. class="deleteImg deleteImg2"
  3895. src="../assets/deleteworks.png"
  3896. v-if="
  3897. w.userid == userid || tType == 1 || tType == 4
  3898. "
  3899. @click.stop="deleteWorks(w.wid)"
  3900. alt
  3901. />
  3902. </div>
  3903. </div>
  3904. </div>
  3905. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3906. 未提交
  3907. </div>
  3908. <div
  3909. class="noWorksS"
  3910. v-if="noWorksS && noWorksS[toolIndex].length"
  3911. >
  3912. <div
  3913. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3914. :key="sIndex"
  3915. class="noWorksName"
  3916. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  3917. >
  3918. {{ s.student }}
  3919. </div>
  3920. </div>
  3921. </div>
  3922. <div
  3923. v-if="
  3924. tType &&
  3925. ((tType == 2 && sIsOpen == true) ||
  3926. tType == 1 ||
  3927. tType == 4) &&
  3928. tool.tool.indexOf(69) != -1
  3929. "
  3930. class="worksBox"
  3931. >
  3932. <div
  3933. class="zuoyeYulan"
  3934. v-if="
  3935. worksStudent.length &&
  3936. worksStudent[toolIndex].length > 0
  3937. "
  3938. >
  3939. <div class="worksTop">
  3940. <div>作业预览</div>
  3941. <div
  3942. class="corOpen"
  3943. @click="contract(toolIndex)"
  3944. v-if="
  3945. (isCloseList[toolIndex].isCloseBoolean) &&
  3946. isCloseList[toolIndex].isClose == 0
  3947. "
  3948. >
  3949. 折叠
  3950. </div>
  3951. <div
  3952. class="corOpen"
  3953. @click="contract(toolIndex)"
  3954. v-if="isCloseList[toolIndex].isClose == 1"
  3955. >
  3956. 展开
  3957. </div>
  3958. </div>
  3959. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3960. </div>
  3961. <div>
  3962. <div
  3963. :id="'tool-' + toolIndex"
  3964. :style="{
  3965. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3966. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3967. }"
  3968. class="worksDetailBox"
  3969. v-if="
  3970. worksStudent.length &&
  3971. worksStudent[toolIndex].length > 0
  3972. "
  3973. >
  3974. <div
  3975. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3976. :key="wIndex"
  3977. class="isWorksName2"
  3978. style="width: 160px;height: 65px;line-height: 65px;"
  3979. @click="
  3980. openTools(
  3981. 69,
  3982. toolIndex,
  3983. taskCount,
  3984. w.works,
  3985. w.sName,
  3986. w.wid
  3987. )
  3988. "
  3989. >
  3990. {{ w.sName }}
  3991. <img
  3992. class="deleteImg1"
  3993. src="../assets/evaEnglish.png"
  3994. @click.stop="openEnglishEva(w.wid,toolIndex)"
  3995. alt
  3996. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  3997. />
  3998. <img
  3999. class="deleteImg deleteImg2"
  4000. src="../assets/deleteworks.png"
  4001. v-if="
  4002. w.userid == userid || tType == 1 || tType == 4
  4003. "
  4004. @click.stop="deleteWorks(w.wid)"
  4005. alt
  4006. />
  4007. </div>
  4008. </div>
  4009. </div>
  4010. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4011. 未提交
  4012. </div>
  4013. <div
  4014. class="noWorksS"
  4015. v-if="noWorksS && noWorksS[toolIndex].length"
  4016. >
  4017. <div
  4018. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4019. :key="sIndex"
  4020. class="noWorksName"
  4021. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4022. >
  4023. {{ s.student }}
  4024. </div>
  4025. </div>
  4026. </div>
  4027. <div
  4028. v-if="
  4029. tType &&
  4030. ((tType == 2 && sIsOpen == true) ||
  4031. tType == 1 ||
  4032. tType == 4) &&
  4033. tool.tool.indexOf(15) != -1
  4034. "
  4035. class="worksBox"
  4036. >
  4037. <div
  4038. class="zuoyeYulan"
  4039. v-if="
  4040. (worksStudent.length &&
  4041. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4042. "
  4043. >
  4044. <div class="worksTop">
  4045. <div>作业预览</div>
  4046. <div
  4047. class="corOpen"
  4048. @click="contract(toolIndex)"
  4049. v-if="
  4050. (isCloseList[toolIndex].isCloseBoolean) &&
  4051. isCloseList[toolIndex].isClose == 0
  4052. "
  4053. >
  4054. 折叠
  4055. </div>
  4056. <div
  4057. class="corOpen"
  4058. @click="contract(toolIndex)"
  4059. v-if="isCloseList[toolIndex].isClose == 1"
  4060. >
  4061. 展开
  4062. </div>
  4063. </div>
  4064. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4065. </div>
  4066. <div
  4067. class="group_workBox"
  4068. v-for="(g, gindex) in courseGroup.group"
  4069. :key="gindex"
  4070. >
  4071. <div class="group_box">
  4072. <div class="group_title">
  4073. <el-tooltip
  4074. class="item"
  4075. effect="light"
  4076. :content="g.name"
  4077. placement="top"
  4078. >
  4079. <div class="group_name">{{ g.name }}</div>
  4080. </el-tooltip>
  4081. </div>
  4082. <div
  4083. class="group_work"
  4084. v-if="
  4085. g.works &&
  4086. g.works.length &&
  4087. g.works[toolIndex].length
  4088. "
  4089. >
  4090. <div
  4091. class="works"
  4092. v-for="(w, wIndex) in g.works[toolIndex]"
  4093. :key="wIndex"
  4094. >
  4095. <div
  4096. class="workImg"
  4097. style="
  4098. border-radius: 15px;
  4099. box-shadow: #eee 0px 0px 5px 5px;
  4100. "
  4101. >
  4102. <div
  4103. class="answerBg"
  4104. style="border-radius: 15px 15px 0 0"
  4105. @click="
  4106. commentOther(w, toolIndex, wIndex, null, g.id)
  4107. "
  4108. >
  4109. <div class="answerContent">
  4110. {{ JSON.parse(w.works)[0].answer }}
  4111. </div>
  4112. <div
  4113. class="answerScore"
  4114. v-if="w.score"
  4115. @click.stop="openScore(w)"
  4116. :class="{
  4117. rightW:
  4118. w.userid == userid ||
  4119. tType == 1 ||
  4120. tType == 4,
  4121. }"
  4122. >
  4123. {{ JSON.parse(w.score).wScore }}分
  4124. </div>
  4125. <div
  4126. class="answerScore"
  4127. @click.stop="openScore(w)"
  4128. v-else-if="courseDetail.userid == userid"
  4129. :class="{
  4130. rightW:
  4131. w.userid == userid ||
  4132. tType == 1 ||
  4133. tType == 4,
  4134. }"
  4135. >
  4136. 评分
  4137. </div>
  4138. <img
  4139. class="deleteImg"
  4140. src="../assets/deleteworks.png"
  4141. v-if="
  4142. w.userid == userid ||
  4143. tType == 1 ||
  4144. tType == 4
  4145. "
  4146. @click.stop="deleteWorks(w.wid)"
  4147. alt
  4148. />
  4149. </div>
  4150. <div class="comment">
  4151. <div class="worksName">
  4152. <div>{{ w.sName }}</div>
  4153. </div>
  4154. <div class="commentList">
  4155. <div
  4156. class="commentImg"
  4157. @click="
  4158. isLikes(w.wid, userid, 1, null, w.isLikes)
  4159. "
  4160. >
  4161. <img
  4162. :src="w.isLikes == true ? likes : noLikes"
  4163. alt=""
  4164. />
  4165. </div>
  4166. <div>{{ w.likesCount }}</div>
  4167. </div>
  4168. <div
  4169. class="commentList"
  4170. style="margin-right: 15px"
  4171. >
  4172. <div
  4173. class="commentImg"
  4174. @click="
  4175. commentOther(
  4176. w,
  4177. toolIndex,
  4178. wIndex,
  4179. null,
  4180. g.id
  4181. )
  4182. "
  4183. >
  4184. <img
  4185. src="../assets/icon/comment/comment.png"
  4186. alt=""
  4187. />
  4188. </div>
  4189. <div>{{ w.commentCount }}</div>
  4190. </div>
  4191. </div>
  4192. </div>
  4193. </div>
  4194. </div>
  4195. <div class="group_work" v-else>暂无提交作业</div>
  4196. </div>
  4197. </div>
  4198. <div
  4199. :id="'tool-' + toolIndex"
  4200. :style="{
  4201. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4202. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4203. }"
  4204. class="worksDetailBox"
  4205. v-if="
  4206. worksStudent.length &&
  4207. worksStudent[toolIndex].length > 0
  4208. "
  4209. >
  4210. <div
  4211. class="works"
  4212. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4213. :key="wIndex"
  4214. >
  4215. <div
  4216. class="workImg"
  4217. style="
  4218. border-radius: 15px;
  4219. box-shadow: #eee 0px 0px 5px 5px;
  4220. "
  4221. >
  4222. <!-- <img
  4223. src="../assets/icon/works/noImg.png"
  4224. @click="openTools(15, toolIndex, taskCount, w.works)"
  4225. alt=""
  4226. />-->
  4227. <div
  4228. class="answerBg"
  4229. style="border-radius: 15px 15px 0 0"
  4230. @click="commentOther(w, toolIndex, wIndex)"
  4231. >
  4232. <!-- <div>{{ w.sName }}</div> -->
  4233. <div class="answerContent">
  4234. {{ JSON.parse(w.works)[0].answer }}
  4235. </div>
  4236. <div
  4237. class="answerScore"
  4238. v-if="w.score"
  4239. @click.stop="openScore(w)"
  4240. :class="{
  4241. rightW:
  4242. w.userid == userid ||
  4243. tType == 1 ||
  4244. tType == 4,
  4245. }"
  4246. >
  4247. {{ JSON.parse(w.score).wScore }}分
  4248. </div>
  4249. <div
  4250. class="answerScore"
  4251. @click.stop="openScore(w)"
  4252. v-else-if="courseDetail.userid == userid"
  4253. :class="{
  4254. rightW:
  4255. w.userid == userid ||
  4256. tType == 1 ||
  4257. tType == 4,
  4258. }"
  4259. >
  4260. 评分
  4261. </div>
  4262. <img
  4263. class="deleteImg"
  4264. src="../assets/deleteworks.png"
  4265. v-if="
  4266. w.userid == userid || tType == 1 || tType == 4
  4267. "
  4268. @click.stop="deleteWorks(w.wid)"
  4269. alt
  4270. />
  4271. </div>
  4272. <div class="comment">
  4273. <div class="worksName">
  4274. <div>{{ w.sName }}</div>
  4275. </div>
  4276. <div class="commentList">
  4277. <div
  4278. class="commentImg"
  4279. @click="
  4280. isLikes(w.wid, userid, 1, null, w.isLikes)
  4281. "
  4282. >
  4283. <img
  4284. :src="w.isLikes == true ? likes : noLikes"
  4285. alt=""
  4286. />
  4287. </div>
  4288. <div>{{ w.likesCount }}</div>
  4289. </div>
  4290. <div class="commentList" style="margin-right: 15px">
  4291. <div
  4292. class="commentImg"
  4293. @click="commentOther(w, toolIndex, wIndex)"
  4294. >
  4295. <img
  4296. src="../assets/icon/comment/comment.png"
  4297. alt=""
  4298. />
  4299. </div>
  4300. <div>{{ w.commentCount }}</div>
  4301. </div>
  4302. </div>
  4303. </div>
  4304. </div>
  4305. </div>
  4306. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4307. 未提交
  4308. </div>
  4309. <div
  4310. class="noWorksS"
  4311. v-if="noWorksS && noWorksS[toolIndex].length"
  4312. >
  4313. <div
  4314. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4315. :key="sIndex"
  4316. class="noWorksName"
  4317. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4318. >
  4319. {{ s.student }}
  4320. </div>
  4321. </div>
  4322. </div>
  4323. <div
  4324. v-if="
  4325. tType &&
  4326. ((tType == 2 && sIsOpen == true) ||
  4327. tType == 1 ||
  4328. tType == 4) &&
  4329. tool.tool.indexOf(1) != -1
  4330. "
  4331. class="worksBox"
  4332. >
  4333. <div
  4334. class="zuoyeYulan"
  4335. v-if="
  4336. (worksStudent.length &&
  4337. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4338. "
  4339. >
  4340. <div class="worksTop">
  4341. <div>作业预览</div>
  4342. <div
  4343. class="corOpen"
  4344. @click="contract(toolIndex)"
  4345. v-if="
  4346. (isCloseList[toolIndex].isCloseBoolean) &&
  4347. isCloseList[toolIndex].isClose == 0
  4348. "
  4349. >
  4350. 折叠
  4351. </div>
  4352. <div
  4353. class="corOpen"
  4354. @click="contract(toolIndex)"
  4355. v-if="isCloseList[toolIndex].isClose == 1"
  4356. >
  4357. 展开
  4358. </div>
  4359. </div>
  4360. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4361. </div>
  4362. <div
  4363. class="group_workBox"
  4364. v-for="(g, gindex) in courseGroup.group"
  4365. :key="gindex"
  4366. >
  4367. <div class="group_box">
  4368. <div class="group_title">
  4369. <el-tooltip
  4370. class="item"
  4371. effect="light"
  4372. :content="g.name"
  4373. placement="top"
  4374. >
  4375. <div class="group_name">{{ g.name }}</div>
  4376. </el-tooltip>
  4377. </div>
  4378. <div
  4379. class="group_work"
  4380. v-if="
  4381. g.works &&
  4382. g.works.length &&
  4383. g.works[toolIndex].length
  4384. "
  4385. >
  4386. <div
  4387. class="works"
  4388. style="
  4389. width: 200px;
  4390. height: 140px;
  4391. margin: 10px 10px 10px 0;
  4392. border-radius: 15px;
  4393. box-shadow: 0 0 6px 1px #dfdada;
  4394. "
  4395. v-for="(w, wIndex) in g.works[toolIndex]"
  4396. :key="wIndex"
  4397. :class="w.type == 1 ? 'isTypeOne' : ''"
  4398. >
  4399. <div class="workImg">
  4400. <img
  4401. :src="w.works"
  4402. @click="previewImg(w.works)"
  4403. alt
  4404. />
  4405. <div
  4406. class="answerScore"
  4407. v-if="w.score"
  4408. @click.stop="openScore(w)"
  4409. :class="{
  4410. rightW:
  4411. w.userid == userid ||
  4412. tType == 1 ||
  4413. tType == 4,
  4414. }"
  4415. >
  4416. {{ JSON.parse(w.score).wScore }}分
  4417. </div>
  4418. <div
  4419. class="answerScore"
  4420. @click.stop="openScore(w)"
  4421. v-else-if="courseDetail.userid == userid"
  4422. :class="{
  4423. rightW:
  4424. w.userid == userid ||
  4425. tType == 1 ||
  4426. tType == 4,
  4427. }"
  4428. >
  4429. 评分
  4430. </div>
  4431. <img
  4432. class="deleteImg"
  4433. src="../assets/deleteworks.png"
  4434. v-if="
  4435. w.userid == userid || tType == 1 || tType == 4
  4436. "
  4437. @click.stop="deleteWorks(w.wid)"
  4438. alt
  4439. />
  4440. </div>
  4441. <div class="comment" style="min-width: 200px">
  4442. <div class="worksName">
  4443. <div>{{ w.sName }}</div>
  4444. </div>
  4445. <div class="commentList">
  4446. <div class="commentList">
  4447. <div
  4448. class="commentImg"
  4449. @click="
  4450. isLikes(w.wid, userid, 1, null, w.isLikes)
  4451. "
  4452. >
  4453. <img
  4454. :src="w.isLikes == true ? likes : noLikes"
  4455. alt=""
  4456. />
  4457. </div>
  4458. <div>{{ w.likesCount }}</div>
  4459. </div>
  4460. <div
  4461. class="commentList"
  4462. style="margin-right: 15px"
  4463. >
  4464. <div
  4465. class="commentImg"
  4466. @click="
  4467. commentOther(
  4468. w,
  4469. toolIndex,
  4470. wIndex,
  4471. null,
  4472. g.id
  4473. )
  4474. "
  4475. >
  4476. <img
  4477. src="../assets/icon/comment/comment.png"
  4478. alt=""
  4479. />
  4480. </div>
  4481. <div>{{ w.commentCount }}</div>
  4482. </div>
  4483. </div>
  4484. </div>
  4485. </div>
  4486. </div>
  4487. <div class="group_work" v-else>暂无提交作业</div>
  4488. </div>
  4489. </div>
  4490. <div
  4491. :id="'tool-' + toolIndex"
  4492. :style="{
  4493. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4494. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4495. }"
  4496. class="worksDetailBox"
  4497. v-if="
  4498. worksStudent.length &&
  4499. worksStudent[toolIndex].length > 0
  4500. "
  4501. >
  4502. <div
  4503. class="works"
  4504. style="
  4505. width: 200px;
  4506. height: 140px;
  4507. margin: 10px 10px 10px 0;
  4508. border-radius: 15px;
  4509. box-shadow: 0 0 6px 1px #dfdada;
  4510. "
  4511. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4512. :key="wIndex"
  4513. >
  4514. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4515. <div class="workImg">
  4516. <img
  4517. :src="w.works"
  4518. @click="previewImg(w.works)"
  4519. alt
  4520. />
  4521. <div
  4522. class="answerScore"
  4523. v-if="w.score"
  4524. @click.stop="openScore(w)"
  4525. :class="{
  4526. rightW:
  4527. w.userid == userid || tType == 1 || tType == 4,
  4528. }"
  4529. >
  4530. {{ JSON.parse(w.score).wScore }}分
  4531. </div>
  4532. <div
  4533. class="answerScore"
  4534. @click.stop="openScore(w)"
  4535. v-else-if="courseDetail.userid == userid"
  4536. :class="{
  4537. rightW:
  4538. w.userid == userid || tType == 1 || tType == 4,
  4539. }"
  4540. >
  4541. 评分
  4542. </div>
  4543. <img
  4544. class="deleteImg"
  4545. src="../assets/deleteworks.png"
  4546. v-if="
  4547. w.userid == userid || tType == 1 || tType == 4
  4548. "
  4549. @click.stop="deleteWorks(w.wid)"
  4550. alt
  4551. />
  4552. </div>
  4553. <div class="comment" style="min-width: 200px">
  4554. <div class="worksName">
  4555. <div>{{ w.sName }}</div>
  4556. </div>
  4557. <div class="commentList">
  4558. <div class="commentList">
  4559. <div
  4560. class="commentImg"
  4561. @click="
  4562. isLikes(w.wid, userid, 1, null, w.isLikes)
  4563. "
  4564. >
  4565. <img
  4566. :src="w.isLikes == true ? likes : noLikes"
  4567. alt=""
  4568. />
  4569. </div>
  4570. <div>{{ w.likesCount }}</div>
  4571. </div>
  4572. <div class="commentList" style="margin-right: 15px">
  4573. <div
  4574. class="commentImg"
  4575. @click="commentOther(w, toolIndex, wIndex)"
  4576. >
  4577. <img
  4578. src="../assets/icon/comment/comment.png"
  4579. alt=""
  4580. />
  4581. </div>
  4582. <div>{{ w.commentCount }}</div>
  4583. </div>
  4584. </div>
  4585. </div>
  4586. </div>
  4587. </div>
  4588. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4589. 未提交
  4590. </div>
  4591. <div
  4592. class="noWorksS"
  4593. v-if="noWorksS && noWorksS[toolIndex].length"
  4594. >
  4595. <div
  4596. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4597. :key="sIndex"
  4598. class="noWorksName"
  4599. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4600. >
  4601. {{ s.student }}
  4602. </div>
  4603. </div>
  4604. </div>
  4605. <div
  4606. v-if="
  4607. tType &&
  4608. ((tType == 2 && sIsOpen == true) ||
  4609. tType == 1 ||
  4610. tType == 4) &&
  4611. tool.tool.indexOf(3) != -1
  4612. "
  4613. class="worksBox"
  4614. >
  4615. <div
  4616. class="zuoyeYulan"
  4617. v-if="
  4618. (worksStudent.length &&
  4619. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4620. "
  4621. >
  4622. <div class="worksTop">
  4623. <div>作业预览</div>
  4624. <div
  4625. class="corOpen"
  4626. @click="contract(toolIndex)"
  4627. v-if="
  4628. (isCloseList[toolIndex].isCloseBoolean) &&
  4629. isCloseList[toolIndex].isClose == 0
  4630. "
  4631. >
  4632. 折叠
  4633. </div>
  4634. <div
  4635. class="corOpen"
  4636. @click="contract(toolIndex)"
  4637. v-if="isCloseList[toolIndex].isClose == 1"
  4638. >
  4639. 展开
  4640. </div>
  4641. </div>
  4642. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4643. </div>
  4644. <div
  4645. class="group_workBox"
  4646. v-for="(g, gindex) in courseGroup.group"
  4647. :key="gindex"
  4648. >
  4649. <div class="group_box">
  4650. <div class="group_title">
  4651. <el-tooltip
  4652. class="item"
  4653. effect="light"
  4654. :content="g.name"
  4655. placement="top"
  4656. >
  4657. <div class="group_name">{{ g.name }}</div>
  4658. </el-tooltip>
  4659. </div>
  4660. <div
  4661. class="group_work"
  4662. v-if="
  4663. g.works &&
  4664. g.works.length &&
  4665. g.works[toolIndex].length
  4666. "
  4667. >
  4668. <div
  4669. class="works"
  4670. style="
  4671. width: 200px;
  4672. height: 140px;
  4673. margin: 10px 10px 10px 0;
  4674. border-radius: 15px;
  4675. box-shadow: 0 0 6px 1px #dfdada;
  4676. "
  4677. v-for="(w, wIndex) in g.works[toolIndex]"
  4678. :key="wIndex"
  4679. :class="w.type == 1 ? 'isTypeOne' : ''"
  4680. >
  4681. <div class="workImg">
  4682. <img
  4683. :src="w.works"
  4684. @click="previewImg(w.works)"
  4685. alt
  4686. />
  4687. <div
  4688. class="answerScore"
  4689. v-if="w.score"
  4690. @click.stop="openScore(w)"
  4691. :class="{
  4692. rightW:
  4693. w.userid == userid ||
  4694. tType == 1 ||
  4695. tType == 4,
  4696. }"
  4697. >
  4698. {{ JSON.parse(w.score).wScore }}分
  4699. </div>
  4700. <div
  4701. class="answerScore"
  4702. @click.stop="openScore(w)"
  4703. v-else-if="courseDetail.userid == userid"
  4704. :class="{
  4705. rightW:
  4706. w.userid == userid ||
  4707. tType == 1 ||
  4708. tType == 4,
  4709. }"
  4710. >
  4711. 评分
  4712. </div>
  4713. <img
  4714. class="deleteImg"
  4715. src="../assets/deleteworks.png"
  4716. v-if="
  4717. w.userid == userid || tType == 1 || tType == 4
  4718. "
  4719. @click.stop="deleteWorks(w.wid)"
  4720. alt
  4721. />
  4722. </div>
  4723. <div class="comment" style="min-width: 200px">
  4724. <div class="worksName">
  4725. <div>{{ w.sName }}</div>
  4726. </div>
  4727. <div class="commentList">
  4728. <div class="commentList">
  4729. <div
  4730. class="commentImg"
  4731. @click="
  4732. isLikes(w.wid, userid, 1, null, w.isLikes)
  4733. "
  4734. >
  4735. <img
  4736. :src="w.isLikes == true ? likes : noLikes"
  4737. alt=""
  4738. />
  4739. </div>
  4740. <div>{{ w.likesCount }}</div>
  4741. </div>
  4742. <div
  4743. class="commentList"
  4744. style="margin-right: 15px"
  4745. >
  4746. <div
  4747. class="commentImg"
  4748. @click="
  4749. commentOther(
  4750. w,
  4751. toolIndex,
  4752. wIndex,
  4753. null,
  4754. g.id
  4755. )
  4756. "
  4757. >
  4758. <img
  4759. src="../assets/icon/comment/comment.png"
  4760. alt=""
  4761. />
  4762. </div>
  4763. <div>{{ w.commentCount }}</div>
  4764. </div>
  4765. </div>
  4766. </div>
  4767. </div>
  4768. </div>
  4769. <div class="group_work" v-else>暂无提交作业</div>
  4770. </div>
  4771. </div>
  4772. <div
  4773. :id="'tool-' + toolIndex"
  4774. :style="{
  4775. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4776. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4777. }"
  4778. class="worksDetailBox"
  4779. v-if="
  4780. worksStudent.length &&
  4781. worksStudent[toolIndex].length > 0
  4782. "
  4783. >
  4784. <div
  4785. class="works"
  4786. style="
  4787. width: 200px;
  4788. height: 140px;
  4789. margin: 10px 10px 10px 0;
  4790. border-radius: 15px;
  4791. box-shadow: 0 0 6px 1px #dfdada;
  4792. "
  4793. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4794. :key="wIndex"
  4795. >
  4796. <!-- @click="previewImg(w.works)" -->
  4797. <div class="workImg">
  4798. <img
  4799. :src="w.works"
  4800. @click="previewImg(w.works)"
  4801. alt
  4802. />
  4803. <div
  4804. class="answerScore"
  4805. v-if="w.score"
  4806. @click.stop="openScore(w)"
  4807. :class="{
  4808. rightW:
  4809. w.userid == userid || tType == 1 || tType == 4,
  4810. }"
  4811. >
  4812. {{ JSON.parse(w.score).wScore }}分
  4813. </div>
  4814. <div
  4815. class="answerScore"
  4816. @click.stop="openScore(w)"
  4817. v-else-if="courseDetail.userid == userid"
  4818. :class="{
  4819. rightW:
  4820. w.userid == userid || tType == 1 || tType == 4,
  4821. }"
  4822. >
  4823. 评分
  4824. </div>
  4825. <img
  4826. class="deleteImg"
  4827. src="../assets/deleteworks.png"
  4828. v-if="
  4829. w.userid == userid || tType == 1 || tType == 4
  4830. "
  4831. @click.stop="deleteWorks(w.wid)"
  4832. alt
  4833. />
  4834. </div>
  4835. <div class="comment" style="min-width: 200px">
  4836. <div class="worksName">
  4837. <div>{{ w.sName }}</div>
  4838. </div>
  4839. <div class="commentList">
  4840. <div class="commentList">
  4841. <div
  4842. class="commentImg"
  4843. @click="
  4844. isLikes(w.wid, userid, 1, null, w.isLikes)
  4845. "
  4846. >
  4847. <img
  4848. :src="w.isLikes == true ? likes : noLikes"
  4849. alt=""
  4850. />
  4851. </div>
  4852. <div>{{ w.likesCount }}</div>
  4853. </div>
  4854. <div class="commentList" style="margin-right: 15px">
  4855. <div
  4856. class="commentImg"
  4857. @click="commentOther(w, toolIndex, wIndex)"
  4858. >
  4859. <img
  4860. src="../assets/icon/comment/comment.png"
  4861. alt=""
  4862. />
  4863. </div>
  4864. <div>{{ w.commentCount }}</div>
  4865. </div>
  4866. </div>
  4867. </div>
  4868. </div>
  4869. </div>
  4870. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4871. 未提交
  4872. </div>
  4873. <div
  4874. class="noWorksS"
  4875. v-if="noWorksS && noWorksS[toolIndex].length"
  4876. >
  4877. <div
  4878. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4879. :key="sIndex"
  4880. class="noWorksName"
  4881. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  4882. >
  4883. {{ s.student }}
  4884. </div>
  4885. </div>
  4886. </div>
  4887. <div
  4888. v-if="
  4889. tType &&
  4890. ((tType == 2 && sIsOpen == true) ||
  4891. tType == 1 ||
  4892. tType == 4) &&
  4893. tool.tool.indexOf(6) != -1
  4894. "
  4895. class="worksBox"
  4896. >
  4897. <div
  4898. class="zuoyeYulan"
  4899. v-if="
  4900. (worksStudent.length &&
  4901. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4902. "
  4903. >
  4904. <div class="worksTop">
  4905. <div>作业预览</div>
  4906. <div
  4907. class="corOpen"
  4908. @click="contract(toolIndex)"
  4909. v-if="
  4910. (isCloseList[toolIndex].isCloseBoolean) &&
  4911. isCloseList[toolIndex].isClose == 0
  4912. "
  4913. >
  4914. 折叠
  4915. </div>
  4916. <div
  4917. class="corOpen"
  4918. @click="contract(toolIndex)"
  4919. v-if="isCloseList[toolIndex].isClose == 1"
  4920. >
  4921. 展开
  4922. </div>
  4923. </div>
  4924. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4925. </div>
  4926. <div
  4927. class="group_workBox"
  4928. v-for="(g, gindex) in courseGroup.group"
  4929. :key="gindex"
  4930. >
  4931. <div class="group_box">
  4932. <div class="group_title">
  4933. <el-tooltip
  4934. class="item"
  4935. effect="light"
  4936. :content="g.name"
  4937. placement="top"
  4938. >
  4939. <div class="group_name">{{ g.name }}</div>
  4940. </el-tooltip>
  4941. </div>
  4942. <div
  4943. class="group_work"
  4944. v-if="
  4945. g.works &&
  4946. g.works.length &&
  4947. g.works[toolIndex].length
  4948. "
  4949. >
  4950. <div
  4951. class="works"
  4952. style="
  4953. width: 200px;
  4954. height: 140px;
  4955. margin: 10px 10px 10px 0;
  4956. border-radius: 15px;
  4957. box-shadow: 0 0 6px 1px #dfdada;
  4958. "
  4959. v-for="(w, wIndex) in g.works[toolIndex]"
  4960. :key="wIndex"
  4961. :class="w.type == 1 ? 'isTypeOne' : ''"
  4962. >
  4963. <div class="workImg">
  4964. <img
  4965. :src="w.works"
  4966. @click="previewImg(w.works)"
  4967. alt
  4968. />
  4969. <div
  4970. class="answerScore"
  4971. v-if="w.score"
  4972. @click.stop="openScore(w)"
  4973. :class="{
  4974. rightW:
  4975. w.userid == userid ||
  4976. tType == 1 ||
  4977. tType == 4,
  4978. }"
  4979. >
  4980. {{ JSON.parse(w.score).wScore }}分
  4981. </div>
  4982. <div
  4983. class="answerScore"
  4984. @click.stop="openScore(w)"
  4985. v-else-if="courseDetail.userid == userid"
  4986. :class="{
  4987. rightW:
  4988. w.userid == userid ||
  4989. tType == 1 ||
  4990. tType == 4,
  4991. }"
  4992. >
  4993. 评分
  4994. </div>
  4995. <img
  4996. class="deleteImg"
  4997. src="../assets/deleteworks.png"
  4998. v-if="
  4999. w.userid == userid || tType == 1 || tType == 4
  5000. "
  5001. @click.stop="deleteWorks(w.wid)"
  5002. alt
  5003. />
  5004. </div>
  5005. <div class="comment" style="min-width: 200px">
  5006. <div class="worksName">
  5007. <div>{{ w.sName }}</div>
  5008. </div>
  5009. <div class="commentList">
  5010. <div class="commentList">
  5011. <div
  5012. class="commentImg"
  5013. @click="
  5014. isLikes(w.wid, userid, 1, null, w.isLikes)
  5015. "
  5016. >
  5017. <img
  5018. :src="w.isLikes == true ? likes : noLikes"
  5019. alt=""
  5020. />
  5021. </div>
  5022. <div>{{ w.likesCount }}</div>
  5023. </div>
  5024. <div
  5025. class="commentList"
  5026. style="margin-right: 15px"
  5027. >
  5028. <div
  5029. class="commentImg"
  5030. @click="
  5031. commentOther(
  5032. w,
  5033. toolIndex,
  5034. wIndex,
  5035. null,
  5036. g.id
  5037. )
  5038. "
  5039. >
  5040. <img
  5041. src="../assets/icon/comment/comment.png"
  5042. alt=""
  5043. />
  5044. </div>
  5045. <div>{{ w.commentCount }}</div>
  5046. </div>
  5047. </div>
  5048. </div>
  5049. </div>
  5050. </div>
  5051. <div class="group_work" v-else>暂无提交作业</div>
  5052. </div>
  5053. </div>
  5054. <div
  5055. :id="'tool-' + toolIndex"
  5056. :style="{
  5057. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5058. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5059. }"
  5060. class="worksDetailBox"
  5061. v-if="
  5062. worksStudent.length &&
  5063. worksStudent[toolIndex].length > 0
  5064. "
  5065. >
  5066. <div
  5067. class="works"
  5068. style="
  5069. width: 200px;
  5070. height: 140px;
  5071. margin: 10px 10px 10px 0;
  5072. border-radius: 15px;
  5073. box-shadow: 0 0 6px 1px #dfdada;
  5074. "
  5075. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5076. :key="wIndex"
  5077. >
  5078. <!-- @click="previewImg(w.works)" -->
  5079. <div class="workImg">
  5080. <img
  5081. :src="w.works"
  5082. @click="previewImg(w.works)"
  5083. alt
  5084. />
  5085. <div
  5086. class="answerScore"
  5087. v-if="w.score"
  5088. @click.stop="openScore(w)"
  5089. :class="{
  5090. rightW:
  5091. w.userid == userid || tType == 1 || tType == 4,
  5092. }"
  5093. >
  5094. {{ JSON.parse(w.score).wScore }}分
  5095. </div>
  5096. <div
  5097. class="answerScore"
  5098. @click.stop="openScore(w)"
  5099. v-else-if="courseDetail.userid == userid"
  5100. :class="{
  5101. rightW:
  5102. w.userid == userid || tType == 1 || tType == 4,
  5103. }"
  5104. >
  5105. 评分
  5106. </div>
  5107. <img
  5108. class="deleteImg"
  5109. src="../assets/deleteworks.png"
  5110. v-if="
  5111. w.userid == userid || tType == 1 || tType == 4
  5112. "
  5113. @click.stop="deleteWorks(w.wid)"
  5114. alt
  5115. />
  5116. </div>
  5117. <div class="comment" style="min-width: 200px">
  5118. <div class="worksName">
  5119. <div>{{ w.sName }}</div>
  5120. </div>
  5121. <div class="commentList">
  5122. <div class="commentList">
  5123. <div
  5124. class="commentImg"
  5125. @click="
  5126. isLikes(w.wid, userid, 1, null, w.isLikes)
  5127. "
  5128. >
  5129. <img
  5130. :src="w.isLikes == true ? likes : noLikes"
  5131. alt=""
  5132. />
  5133. </div>
  5134. <div>{{ w.likesCount }}</div>
  5135. </div>
  5136. <div class="commentList" style="margin-right: 15px">
  5137. <div
  5138. class="commentImg"
  5139. @click="commentOther(w, toolIndex, wIndex)"
  5140. >
  5141. <img
  5142. src="../assets/icon/comment/comment.png"
  5143. alt=""
  5144. />
  5145. </div>
  5146. <div>{{ w.commentCount }}</div>
  5147. </div>
  5148. </div>
  5149. </div>
  5150. </div>
  5151. </div>
  5152. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5153. 未提交
  5154. </div>
  5155. <div
  5156. class="noWorksS"
  5157. v-if="noWorksS && noWorksS[toolIndex].length"
  5158. >
  5159. <div
  5160. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5161. :key="sIndex"
  5162. class="noWorksName"
  5163. >
  5164. {{ s.student }}
  5165. </div>
  5166. </div>
  5167. </div>
  5168. <div
  5169. v-if="
  5170. tType &&
  5171. ((tType == 2 && sIsOpen == true) ||
  5172. tType == 1 ||
  5173. tType == 4) &&
  5174. tool.tool.indexOf(7) != -1
  5175. "
  5176. class="worksBox"
  5177. >
  5178. <div
  5179. class="zuoyeYulan"
  5180. v-if="
  5181. (worksStudent.length &&
  5182. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5183. "
  5184. >
  5185. <div class="worksTop">
  5186. <div>作业预览</div>
  5187. <div
  5188. class="corOpen"
  5189. @click="contract(toolIndex)"
  5190. v-if="
  5191. (isCloseList[toolIndex].isCloseBoolean) &&
  5192. isCloseList[toolIndex].isClose == 0
  5193. "
  5194. >
  5195. 折叠
  5196. </div>
  5197. <div
  5198. class="corOpen"
  5199. @click="contract(toolIndex)"
  5200. v-if="isCloseList[toolIndex].isClose == 1"
  5201. >
  5202. 展开
  5203. </div>
  5204. </div>
  5205. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5206. </div>
  5207. <div
  5208. class="group_workBox"
  5209. v-for="(g, gindex) in courseGroup.group"
  5210. :key="gindex"
  5211. >
  5212. <div class="group_box">
  5213. <div class="group_title">
  5214. <el-tooltip
  5215. class="item"
  5216. effect="light"
  5217. :content="g.name"
  5218. placement="top"
  5219. >
  5220. <div class="group_name">{{ g.name }}</div>
  5221. </el-tooltip>
  5222. </div>
  5223. <div
  5224. class="group_work"
  5225. v-if="
  5226. g.works &&
  5227. g.works.length &&
  5228. g.works[toolIndex].length
  5229. "
  5230. >
  5231. <div
  5232. class="works"
  5233. style="
  5234. width: 200px;
  5235. height: 140px;
  5236. margin: 10px 10px 10px 0;
  5237. border-radius: 15px;
  5238. box-shadow: 0 0 6px 1px #dfdada;
  5239. "
  5240. v-for="(w, wIndex) in g.works[toolIndex]"
  5241. :key="wIndex"
  5242. :class="w.type == 1 ? 'isTypeOne' : ''"
  5243. >
  5244. <div class="workImg">
  5245. <img
  5246. :src="w.works"
  5247. @click="previewImg(w.works)"
  5248. alt
  5249. />
  5250. <div
  5251. class="answerScore"
  5252. v-if="w.score"
  5253. @click.stop="openScore(w)"
  5254. :class="{
  5255. rightW:
  5256. w.userid == userid ||
  5257. tType == 1 ||
  5258. tType == 4,
  5259. }"
  5260. >
  5261. {{ JSON.parse(w.score).wScore }}分
  5262. </div>
  5263. <div
  5264. class="answerScore"
  5265. @click.stop="openScore(w)"
  5266. v-else-if="courseDetail.userid == userid"
  5267. :class="{
  5268. rightW:
  5269. w.userid == userid ||
  5270. tType == 1 ||
  5271. tType == 4,
  5272. }"
  5273. >
  5274. 评分
  5275. </div>
  5276. <img
  5277. class="deleteImg"
  5278. src="../assets/deleteworks.png"
  5279. v-if="
  5280. w.userid == userid || tType == 1 || tType == 4
  5281. "
  5282. @click.stop="deleteWorks(w.wid)"
  5283. alt
  5284. />
  5285. </div>
  5286. <div class="comment" style="min-width: 200px">
  5287. <div class="worksName">
  5288. <div>{{ w.sName }}</div>
  5289. </div>
  5290. <div class="commentList">
  5291. <div class="commentList">
  5292. <div
  5293. class="commentImg"
  5294. @click="
  5295. isLikes(w.wid, userid, 1, null, w.isLikes)
  5296. "
  5297. >
  5298. <img
  5299. :src="w.isLikes == true ? likes : noLikes"
  5300. alt=""
  5301. />
  5302. </div>
  5303. <div>{{ w.likesCount }}</div>
  5304. </div>
  5305. <div
  5306. class="commentList"
  5307. style="margin-right: 15px"
  5308. >
  5309. <div
  5310. class="commentImg"
  5311. @click="
  5312. commentOther(
  5313. w,
  5314. toolIndex,
  5315. wIndex,
  5316. null,
  5317. g.id
  5318. )
  5319. "
  5320. >
  5321. <img
  5322. src="../assets/icon/comment/comment.png"
  5323. alt=""
  5324. />
  5325. </div>
  5326. <div>{{ w.commentCount }}</div>
  5327. </div>
  5328. </div>
  5329. </div>
  5330. </div>
  5331. </div>
  5332. <div class="group_work" v-else>暂无提交作业</div>
  5333. </div>
  5334. </div>
  5335. <div
  5336. :id="'tool-' + toolIndex"
  5337. :style="{
  5338. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5339. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5340. }"
  5341. class="worksDetailBox"
  5342. v-if="
  5343. worksStudent.length &&
  5344. worksStudent[toolIndex].length > 0
  5345. "
  5346. >
  5347. <div
  5348. class="works"
  5349. style="
  5350. width: 200px;
  5351. height: 140px;
  5352. margin: 10px 10px 10px 0;
  5353. border-radius: 15px;
  5354. box-shadow: 0 0 6px 1px #dfdada;
  5355. "
  5356. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5357. :key="wIndex"
  5358. >
  5359. <!-- @click="previewImg(w.works)" -->
  5360. <div class="workImg">
  5361. <img
  5362. :src="w.works"
  5363. @click="previewImg(w.works)"
  5364. alt
  5365. />
  5366. <div
  5367. class="answerScore"
  5368. v-if="w.score"
  5369. @click.stop="openScore(w)"
  5370. :class="{
  5371. rightW:
  5372. w.userid == userid || tType == 1 || tType == 4,
  5373. }"
  5374. >
  5375. {{ JSON.parse(w.score).wScore }}分
  5376. </div>
  5377. <div
  5378. class="answerScore"
  5379. @click.stop="openScore(w)"
  5380. v-else-if="courseDetail.userid == userid"
  5381. :class="{
  5382. rightW:
  5383. w.userid == userid || tType == 1 || tType == 4,
  5384. }"
  5385. >
  5386. 评分
  5387. </div>
  5388. <img
  5389. class="deleteImg"
  5390. src="../assets/deleteworks.png"
  5391. v-if="
  5392. w.userid == userid || tType == 1 || tType == 4
  5393. "
  5394. @click.stop="deleteWorks(w.wid)"
  5395. alt
  5396. />
  5397. </div>
  5398. <div class="comment" style="min-width: 200px">
  5399. <div class="worksName">
  5400. <div>{{ w.sName }}</div>
  5401. </div>
  5402. <div class="commentList">
  5403. <div class="commentList">
  5404. <div
  5405. class="commentImg"
  5406. @click="
  5407. isLikes(w.wid, userid, 1, null, w.isLikes)
  5408. "
  5409. >
  5410. <img
  5411. :src="w.isLikes == true ? likes : noLikes"
  5412. alt=""
  5413. />
  5414. </div>
  5415. <div>{{ w.likesCount }}</div>
  5416. </div>
  5417. <div class="commentList" style="margin-right: 15px">
  5418. <div
  5419. class="commentImg"
  5420. @click="commentOther(w, toolIndex, wIndex)"
  5421. >
  5422. <img
  5423. src="../assets/icon/comment/comment.png"
  5424. alt=""
  5425. />
  5426. </div>
  5427. <div>{{ w.commentCount }}</div>
  5428. </div>
  5429. </div>
  5430. </div>
  5431. </div>
  5432. </div>
  5433. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5434. 未提交
  5435. </div>
  5436. <div
  5437. class="noWorksS"
  5438. v-if="noWorksS && noWorksS[toolIndex].length"
  5439. >
  5440. <div
  5441. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5442. :key="sIndex"
  5443. class="noWorksName"
  5444. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5445. >
  5446. {{ s.student }}
  5447. </div>
  5448. </div>
  5449. </div>
  5450. <div
  5451. v-if="
  5452. tType &&
  5453. ((tType == 2 && sIsOpen == true) ||
  5454. tType == 1 ||
  5455. tType == 4) &&
  5456. tool.tool.indexOf(26) != -1
  5457. "
  5458. class="worksBox"
  5459. >
  5460. <div
  5461. class="zuoyeYulan"
  5462. v-if="
  5463. worksStudent.length &&
  5464. worksStudent[toolIndex].length > 0
  5465. "
  5466. >
  5467. <div class="worksTop">
  5468. <div>作业预览</div>
  5469. <div
  5470. class="corOpen"
  5471. @click="contract(toolIndex)"
  5472. v-if="
  5473. (isCloseList[toolIndex].isCloseBoolean) &&
  5474. isCloseList[toolIndex].isClose == 0
  5475. "
  5476. >
  5477. 折叠
  5478. </div>
  5479. <div
  5480. class="corOpen"
  5481. @click="contract(toolIndex)"
  5482. v-if="isCloseList[toolIndex].isClose == 1"
  5483. >
  5484. 展开
  5485. </div>
  5486. </div>
  5487. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5488. </div>
  5489. <div
  5490. :id="'tool-' + toolIndex"
  5491. :style="{
  5492. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5493. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5494. }"
  5495. class="worksDetailBox"
  5496. v-if="
  5497. worksStudent.length &&
  5498. worksStudent[toolIndex].length > 0
  5499. "
  5500. >
  5501. <div
  5502. class="works"
  5503. style="width: 240px; height: 140px; overflow: hidden"
  5504. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5505. :key="wIndex"
  5506. :class="w.type == 1 ? 'isTypeOne' : ''"
  5507. >
  5508. <div class="workImg" v-if="w.type == 0">
  5509. <img
  5510. :src="w.works"
  5511. @click="previewImg(w.works)"
  5512. alt
  5513. />
  5514. <img
  5515. class="deleteImg"
  5516. src="../assets/deleteworks.png"
  5517. v-if="
  5518. w.userid == userid || tType == 1 || tType == 4
  5519. "
  5520. @click.stop="deleteWorks(w.wid)"
  5521. alt
  5522. />
  5523. </div>
  5524. <div class="workImg" v-if="w.type == 1">
  5525. <img :src="word" @click="openFile(w.works)" alt />
  5526. <img
  5527. class="deleteImg"
  5528. src="../assets/deleteworks.png"
  5529. v-if="
  5530. w.userid == userid || tType == 1 || tType == 4
  5531. "
  5532. @click.stop="deleteWorks(w.wid)"
  5533. alt
  5534. />
  5535. </div>
  5536. <div class="worksName">
  5537. <div>{{ w.sName }}</div>
  5538. </div>
  5539. </div>
  5540. </div>
  5541. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5542. 未提交
  5543. </div>
  5544. <div
  5545. class="noWorksS"
  5546. v-if="noWorksS && noWorksS[toolIndex].length"
  5547. >
  5548. <div
  5549. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5550. :key="sIndex"
  5551. class="noWorksName"
  5552. >
  5553. {{ s.student }}
  5554. </div>
  5555. </div>
  5556. </div>
  5557. <div
  5558. v-if="
  5559. tType &&
  5560. ((tType == 2 && sIsOpen == true) ||
  5561. tType == 1 ||
  5562. tType == 4) &&
  5563. tool.tool.indexOf(40) != -1
  5564. "
  5565. class="worksBox"
  5566. >
  5567. <div
  5568. class="zuoyeYulan"
  5569. v-if="
  5570. worksStudent.length &&
  5571. worksStudent[toolIndex].length > 0
  5572. "
  5573. >
  5574. <div class="worksTop">
  5575. <div>作业预览</div>
  5576. <div
  5577. class="corOpen"
  5578. @click="contract(toolIndex)"
  5579. v-if="
  5580. (isCloseList[toolIndex].isCloseBoolean) &&
  5581. isCloseList[toolIndex].isClose == 0
  5582. "
  5583. >
  5584. 折叠
  5585. </div>
  5586. <div
  5587. class="corOpen"
  5588. @click="contract(toolIndex)"
  5589. v-if="isCloseList[toolIndex].isClose == 1"
  5590. >
  5591. 展开
  5592. </div>
  5593. </div>
  5594. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5595. </div>
  5596. <div
  5597. :id="'tool-' + toolIndex"
  5598. :style="{
  5599. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5600. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5601. }"
  5602. class="worksDetailBox"
  5603. v-if="
  5604. worksStudent.length &&
  5605. worksStudent[toolIndex].length > 0
  5606. "
  5607. >
  5608. <div
  5609. class="works"
  5610. style="
  5611. width: 200px;
  5612. height: 140px;
  5613. margin: 10px 10px 10px 0;
  5614. border-radius: 15px;
  5615. box-shadow: 0 0 6px 1px #dfdada;
  5616. "
  5617. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5618. :key="wIndex"
  5619. :class="w.type == 1 ? 'isTypeOne' : ''"
  5620. >
  5621. <div class="workImg">
  5622. <img
  5623. src="../assets/icon/works/noImg.png"
  5624. @click="openPj(w.works, toolIndex)"
  5625. alt
  5626. />
  5627. <img
  5628. class="deleteImg"
  5629. src="../assets/deleteworks.png"
  5630. v-if="
  5631. w.userid == userid || tType == 1 || tType == 4
  5632. "
  5633. @click.stop="deleteWorks(w.wid)"
  5634. alt
  5635. />
  5636. </div>
  5637. <div class="comment" style="min-width: 200px">
  5638. <div class="worksName">
  5639. <div>{{ w.sName }}</div>
  5640. </div>
  5641. <div class="commentList">
  5642. <div class="commentList">
  5643. <div
  5644. class="commentImg"
  5645. @click="
  5646. isLikes(w.wid, userid, 1, null, w.isLikes)
  5647. "
  5648. >
  5649. <img
  5650. :src="w.isLikes == true ? likes : noLikes"
  5651. alt=""
  5652. />
  5653. </div>
  5654. <div>{{ w.likesCount }}</div>
  5655. </div>
  5656. <div class="commentList" style="margin-right: 15px">
  5657. <div
  5658. class="commentImg"
  5659. @click="commentOther(w, toolIndex, wIndex)"
  5660. >
  5661. <img
  5662. src="../assets/icon/comment/comment.png"
  5663. alt=""
  5664. />
  5665. </div>
  5666. <div>{{ w.commentCount }}</div>
  5667. </div>
  5668. </div>
  5669. </div>
  5670. </div>
  5671. </div>
  5672. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5673. 未提交
  5674. </div>
  5675. <div
  5676. class="noWorksS"
  5677. v-if="noWorksS && noWorksS[toolIndex].length"
  5678. >
  5679. <div
  5680. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5681. :key="sIndex"
  5682. class="noWorksName"
  5683. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5684. >
  5685. {{ s.student }}
  5686. </div>
  5687. </div>
  5688. </div>
  5689. <div
  5690. v-if="
  5691. tType &&
  5692. tType == 2 &&
  5693. !sIsOpen &&
  5694. tool.tool.indexOf(40) != -1
  5695. "
  5696. class="worksBox"
  5697. >
  5698. <div
  5699. class="zuoyeYulan"
  5700. v-if="workStudent[toolIndex].length > 0"
  5701. >
  5702. <span class="worksTitle">作业预览</span>
  5703. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5704. </div>
  5705. <div
  5706. class="worksDetailBox"
  5707. v-if="workStudent[toolIndex].length > 0"
  5708. >
  5709. <div
  5710. class="works"
  5711. style="
  5712. width: 200px;
  5713. height: 140px;
  5714. margin: 10px 10px 10px 0;
  5715. "
  5716. v-for="(w, wIndex) in workStudent[toolIndex]"
  5717. :key="wIndex"
  5718. >
  5719. <div class="workImg">
  5720. <img
  5721. src="../assets/icon/works/noImg.png"
  5722. @click="openPj(w.works, toolIndex)"
  5723. alt
  5724. />
  5725. <img
  5726. class="deleteImg"
  5727. src="../assets/deleteworks.png"
  5728. v-if="
  5729. w.userid == userid || tType == 1 || tType == 4
  5730. "
  5731. @click.stop="deleteWorks(w.wid)"
  5732. alt
  5733. />
  5734. </div>
  5735. <div class="worksName">
  5736. <div>{{ w.sName }}</div>
  5737. </div>
  5738. </div>
  5739. </div>
  5740. </div>
  5741. <div
  5742. v-if="
  5743. tType &&
  5744. ((tType == 2 && sIsOpen == true) ||
  5745. tType == 1 ||
  5746. tType == 4) &&
  5747. tool.tool.indexOf(41) != -1
  5748. "
  5749. >
  5750. <AnswerData2
  5751. v-if="
  5752. worksStudent.length &&
  5753. worksStudent[toolIndex].length > 0
  5754. "
  5755. :problemJson="tool.selectJson.answer"
  5756. :people="worksStudent[toolIndex]"
  5757. ></AnswerData2>
  5758. </div>
  5759. <div
  5760. v-if="
  5761. tType &&
  5762. ((tType == 2 && sIsOpen == true) ||
  5763. tType == 1 ||
  5764. tType == 4) &&
  5765. tool.tool.indexOf(41) != -1
  5766. "
  5767. class="worksBox"
  5768. >
  5769. <div
  5770. class="zuoyeYulan"
  5771. v-if="
  5772. worksStudent.length &&
  5773. worksStudent[toolIndex].length > 0
  5774. "
  5775. >
  5776. <div class="worksTop">
  5777. <div>作业预览</div>
  5778. <div
  5779. class="corOpen"
  5780. @click="contract(toolIndex)"
  5781. v-if="
  5782. (isCloseList[toolIndex].isCloseBoolean) &&
  5783. isCloseList[toolIndex].isClose == 0
  5784. "
  5785. >
  5786. 折叠
  5787. </div>
  5788. <div
  5789. class="corOpen"
  5790. @click="contract(toolIndex)"
  5791. v-if="isCloseList[toolIndex].isClose == 1"
  5792. >
  5793. 展开
  5794. </div>
  5795. </div>
  5796. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5797. </div>
  5798. <div
  5799. :id="'tool-' + toolIndex"
  5800. :style="{
  5801. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5802. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5803. }"
  5804. class="worksDetailBox"
  5805. v-if="
  5806. worksStudent.length &&
  5807. worksStudent[toolIndex].length > 0
  5808. "
  5809. >
  5810. <div
  5811. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5812. :key="wIndex"
  5813. class="isWorksName2"
  5814. @click="openXz(w, toolIndex)"
  5815. >
  5816. {{ w.sName }}
  5817. <img
  5818. class="deleteImg deleteImg2"
  5819. src="../assets/deleteworks.png"
  5820. v-if="w.userid == userid || tType == 1 || tType == 4"
  5821. @click.stop="deleteWorks(w.wid)"
  5822. alt
  5823. />
  5824. </div>
  5825. <!-- <div
  5826. class="works"
  5827. style="
  5828. width: 200px;
  5829. height: 140px;
  5830. margin: 10px 10px 10px 0;
  5831. border-radius: 15px;
  5832. box-shadow: 0 0 6px 1px #dfdada;
  5833. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  5834. :class="w.type == 5 ? 'isTypeOne' : ''">
  5835. <div class="workImg">
  5836. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  5837. </div>
  5838. <div class="worksName">
  5839. <div>{{ w.sName }}</div>
  5840. </div>
  5841. </div> -->
  5842. </div>
  5843. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5844. 未提交
  5845. </div>
  5846. <div
  5847. class="noWorksS"
  5848. v-if="noWorksS && noWorksS[toolIndex].length"
  5849. >
  5850. <div
  5851. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5852. :key="sIndex"
  5853. class="noWorksName"
  5854. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5855. >
  5856. {{ s.student }}
  5857. </div>
  5858. </div>
  5859. </div>
  5860. <div
  5861. v-if="
  5862. tType &&
  5863. tType == 2 &&
  5864. !sIsOpen &&
  5865. tool.tool.indexOf(41) != -1
  5866. "
  5867. class="worksBox"
  5868. >
  5869. <div
  5870. class="zuoyeYulan"
  5871. v-if="workStudent[toolIndex].length > 0"
  5872. >
  5873. <span class="worksTitle">作业预览</span>
  5874. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5875. </div>
  5876. <div
  5877. class="worksDetailBox"
  5878. v-if="workStudent[toolIndex].length > 0"
  5879. >
  5880. <div
  5881. class="works"
  5882. style="
  5883. width: 200px;
  5884. height: 140px;
  5885. margin: 10px 10px 10px 0;
  5886. "
  5887. v-for="(w, wIndex) in workStudent[toolIndex]"
  5888. :key="wIndex"
  5889. >
  5890. <div class="workImg">
  5891. <img
  5892. src="../assets/icon/works/noImg.png"
  5893. @click="openXz(w, toolIndex)"
  5894. alt
  5895. />
  5896. <img
  5897. class="deleteImg"
  5898. src="../assets/deleteworks.png"
  5899. v-if="
  5900. w.userid == userid || tType == 1 || tType == 4
  5901. "
  5902. @click.stop="deleteWorks(w.wid)"
  5903. alt
  5904. />
  5905. </div>
  5906. <div class="worksName">
  5907. <div>{{ w.sName }}</div>
  5908. </div>
  5909. </div>
  5910. </div>
  5911. </div>
  5912. <div v-if="false" class="xuan_right_box">
  5913. <div
  5914. class="tool_right_box"
  5915. v-for="(item, index) in tool.sentenceList"
  5916. :key="index"
  5917. >
  5918. <div>
  5919. <span
  5920. style="word-break: break-all; white-space: normal"
  5921. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  5922. >
  5923. </div>
  5924. <div class="right_box_xuan">
  5925. <span>正确率</span>
  5926. <span>{{
  5927. (checkJson[toolIndex][index].right
  5928. ? checkJson[toolIndex][index].right
  5929. : 0) + "%"
  5930. }}</span>
  5931. </div>
  5932. <div class="right_box_xuan">
  5933. <span>答对人数</span>
  5934. <span>{{
  5935. checkJson[toolIndex][index].rightPerson.length
  5936. }}</span>
  5937. </div>
  5938. </div>
  5939. </div>
  5940. <div
  5941. v-if="
  5942. tType &&
  5943. ((tType == 2 && sIsOpen == true) ||
  5944. tType == 1 ||
  5945. tType == 4) &&
  5946. tool.tool.indexOf(47) != -1
  5947. "
  5948. >
  5949. <AnswerData
  5950. v-if="
  5951. checkJson[toolIndex].length &&
  5952. (tool.sentenceList || tool.sentenceList.length > 0)
  5953. "
  5954. :people="checkJson[toolIndex]"
  5955. ></AnswerData>
  5956. </div>
  5957. <div
  5958. v-if="
  5959. tType &&
  5960. tType == 2 &&
  5961. !sIsOpen &&
  5962. tool.tool.indexOf(47) != -1
  5963. "
  5964. class="worksBox"
  5965. >
  5966. <div
  5967. class="zuoyeYulan"
  5968. v-if="workStudent[toolIndex].length > 0"
  5969. >
  5970. <span class="worksTitle">作业预览</span>
  5971. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5972. </div>
  5973. <div
  5974. class="worksDetailBox"
  5975. v-if="workStudent[toolIndex].length > 0"
  5976. >
  5977. <div
  5978. class="works"
  5979. style="
  5980. width: 200px;
  5981. height: 140px;
  5982. margin: 10px 10px 10px 0;
  5983. "
  5984. v-for="(w, wIndex) in workStudent[toolIndex]"
  5985. :key="wIndex"
  5986. >
  5987. <!-- @click="openXz(w, toolIndex)" -->
  5988. <div class="workImg" @click="openSen(w, toolIndex)">
  5989. <img src="../assets/icon/works/noImg.png" alt />
  5990. <img
  5991. class="deleteImg"
  5992. src="../assets/deleteworks.png"
  5993. v-if="
  5994. w.userid == userid || tType == 1 || tType == 4
  5995. "
  5996. @click.stop="deleteWorks(w.wid)"
  5997. alt
  5998. />
  5999. </div>
  6000. <div class="worksName">
  6001. <div>
  6002. {{ w.sName }}
  6003. </div>
  6004. </div>
  6005. </div>
  6006. </div>
  6007. </div>
  6008. <div
  6009. v-if="
  6010. tType &&
  6011. ((tType == 2 && sIsOpen == true) ||
  6012. tType == 1 ||
  6013. tType == 4) &&
  6014. tool.tool.indexOf(47) != -1
  6015. "
  6016. class="worksBox"
  6017. >
  6018. <div
  6019. class="zuoyeYulan"
  6020. v-if="
  6021. worksStudent.length &&
  6022. worksStudent[toolIndex].length > 0
  6023. "
  6024. >
  6025. <div class="worksTop">
  6026. <div>作业预览</div>
  6027. <div
  6028. class="corOpen"
  6029. @click="contract(toolIndex)"
  6030. v-if="
  6031. (isCloseList[toolIndex].isCloseBoolean) &&
  6032. isCloseList[toolIndex].isClose == 0
  6033. "
  6034. >
  6035. 折叠
  6036. </div>
  6037. <div
  6038. class="corOpen"
  6039. @click="contract(toolIndex)"
  6040. v-if="isCloseList[toolIndex].isClose == 1"
  6041. >
  6042. 展开
  6043. </div>
  6044. </div>
  6045. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6046. </div>
  6047. <div
  6048. :id="'tool-' + toolIndex"
  6049. :style="{
  6050. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6051. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6052. }"
  6053. class="worksDetailBox"
  6054. v-if="
  6055. worksStudent.length &&
  6056. worksStudent[toolIndex].length > 0
  6057. "
  6058. >
  6059. <!-- @click="openXz(w, toolIndex)" -->
  6060. <div
  6061. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6062. :key="wIndex"
  6063. class="isWorksName2"
  6064. @click="openSen(w, toolIndex)"
  6065. >
  6066. {{ w.sName }}
  6067. <img
  6068. class="deleteImg deleteImg2"
  6069. src="../assets/deleteworks.png"
  6070. v-if="w.userid == userid || tType == 1 || tType == 4"
  6071. @click.stop="deleteWorks(w.wid)"
  6072. alt
  6073. />
  6074. </div>
  6075. </div>
  6076. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6077. 未提交
  6078. </div>
  6079. <div
  6080. class="noWorksS"
  6081. v-if="noWorksS && noWorksS[toolIndex].length"
  6082. >
  6083. <div
  6084. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6085. :key="sIndex"
  6086. class="noWorksName"
  6087. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6088. >
  6089. {{ s.student }}
  6090. </div>
  6091. </div>
  6092. </div>
  6093. <div
  6094. v-if="
  6095. tType &&
  6096. ((tType == 2 && sIsOpen == true) ||
  6097. tType == 1 ||
  6098. tType == 4) &&
  6099. tool.tool.indexOf(48) != -1
  6100. "
  6101. class="worksBox"
  6102. >
  6103. <div
  6104. class="zuoyeYulan"
  6105. v-if="
  6106. worksStudent.length &&
  6107. worksStudent[toolIndex].length > 0
  6108. "
  6109. >
  6110. <div class="worksTop">
  6111. <div>作业预览</div>
  6112. <div
  6113. class="corOpen"
  6114. @click="contract(toolIndex)"
  6115. v-if="
  6116. (isCloseList[toolIndex].isCloseBoolean) &&
  6117. isCloseList[toolIndex].isClose == 0
  6118. "
  6119. >
  6120. 折叠
  6121. </div>
  6122. <div
  6123. class="corOpen"
  6124. @click="contract(toolIndex)"
  6125. v-if="isCloseList[toolIndex].isClose == 1"
  6126. >
  6127. 展开
  6128. </div>
  6129. </div>
  6130. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6131. </div>
  6132. <div
  6133. :id="'tool-' + toolIndex"
  6134. :style="{
  6135. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6136. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6137. }"
  6138. class="worksDetailBox"
  6139. v-if="
  6140. worksStudent.length &&
  6141. worksStudent[toolIndex].length > 0
  6142. "
  6143. >
  6144. <div
  6145. class="works"
  6146. style="
  6147. width: 200px;
  6148. height: 140px;
  6149. margin: 10px 10px 10px 0;
  6150. border-radius: 15px;
  6151. box-shadow: 0 0 6px 1px #dfdada;
  6152. "
  6153. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6154. :key="wIndex"
  6155. :class="w.type == 1 ? 'isTypeOne' : ''"
  6156. >
  6157. <div class="workImg">
  6158. <img :src="word" @click="openTable(w)" alt />
  6159. <!-- @click="openFile(w.works)" -->
  6160. <div
  6161. class="answerScore"
  6162. v-if="w.score"
  6163. @click.stop="openScore(w)"
  6164. :class="{
  6165. rightW:
  6166. w.userid == userid ||
  6167. tType == 1 ||
  6168. tType == 4 ||
  6169. w.ateacher == userid,
  6170. }"
  6171. >
  6172. {{ JSON.parse(w.score).wScore }}分
  6173. </div>
  6174. <div
  6175. class="answerScore"
  6176. @click.stop="openScore(w)"
  6177. v-else-if="courseDetail.userid == userid"
  6178. :class="{
  6179. rightW:
  6180. w.userid == userid ||
  6181. tType == 1 ||
  6182. tType == 4 ||
  6183. w.ateacher == userid,
  6184. }"
  6185. >
  6186. 评分
  6187. </div>
  6188. <img
  6189. class="deleteImg"
  6190. src="../assets/deleteworks.png"
  6191. v-if="
  6192. w.userid == userid || tType == 1 || tType == 4
  6193. "
  6194. @click.stop="deleteWorks(w.wid)"
  6195. alt
  6196. />
  6197. </div>
  6198. <div class="comment" style="min-width: 200px">
  6199. <div class="worksName">
  6200. <div>{{ w.sName }}</div>
  6201. </div>
  6202. <div class="commentList">
  6203. <div class="commentList">
  6204. <div
  6205. class="commentImg"
  6206. @click="
  6207. isLikes(w.wid, userid, 1, null, w.isLikes)
  6208. "
  6209. >
  6210. <img
  6211. :src="w.isLikes == true ? likes : noLikes"
  6212. alt=""
  6213. />
  6214. </div>
  6215. <div>{{ w.likesCount }}</div>
  6216. </div>
  6217. <div class="commentList" style="margin-right: 15px">
  6218. <div
  6219. class="commentImg"
  6220. @click="commentOther(w, toolIndex, wIndex)"
  6221. >
  6222. <img
  6223. src="../assets/icon/comment/comment.png"
  6224. alt=""
  6225. />
  6226. </div>
  6227. <div>{{ w.commentCount }}</div>
  6228. </div>
  6229. </div>
  6230. </div>
  6231. </div>
  6232. </div>
  6233. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6234. 未提交
  6235. </div>
  6236. <div
  6237. class="noWorksS"
  6238. v-if="noWorksS && noWorksS[toolIndex].length"
  6239. >
  6240. <div
  6241. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6242. :key="sIndex"
  6243. class="noWorksName"
  6244. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6245. >
  6246. {{ s.student }}
  6247. </div>
  6248. </div>
  6249. </div>
  6250. <div
  6251. v-if="
  6252. tType &&
  6253. tType == 2 &&
  6254. !sIsOpen &&
  6255. tool.tool.indexOf(48) != -1
  6256. "
  6257. class="worksBox"
  6258. >
  6259. <div
  6260. class="zuoyeYulan"
  6261. v-if="workStudent[toolIndex].length > 0"
  6262. >
  6263. <span class="worksTitle">作业预览</span>
  6264. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6265. </div>
  6266. <div
  6267. class="worksDetailBox"
  6268. v-if="workStudent[toolIndex].length > 0"
  6269. >
  6270. <div
  6271. class="works"
  6272. style="
  6273. width: 200px;
  6274. height: 140px;
  6275. margin: 10px 10px 10px 0;
  6276. box-shadow: 0 0 6px 1px #dfdada;
  6277. "
  6278. v-for="(w, wIndex) in workStudent[toolIndex]"
  6279. :key="wIndex"
  6280. >
  6281. <div class="workImg">
  6282. <img :src="word" @click="openTable(w)" alt />
  6283. <div
  6284. class="answerScore"
  6285. v-if="w.score"
  6286. @click.stop="openScore(w)"
  6287. :class="{
  6288. rightW:
  6289. w.userid == userid || tType == 1 || tType == 4,
  6290. }"
  6291. >
  6292. {{ JSON.parse(w.score).wScore }}分
  6293. </div>
  6294. <div
  6295. class="answerScore"
  6296. @click.stop="openScore(w)"
  6297. v-else-if="courseDetail.userid == userid"
  6298. :class="{
  6299. rightW:
  6300. w.userid == userid || tType == 1 || tType == 4,
  6301. }"
  6302. >
  6303. 评分
  6304. </div>
  6305. <img
  6306. class="deleteImg"
  6307. src="../assets/deleteworks.png"
  6308. v-if="
  6309. w.userid == userid || tType == 1 || tType == 4
  6310. "
  6311. @click.stop="deleteWorks(w.wid)"
  6312. alt
  6313. />
  6314. </div>
  6315. <div class="worksName">
  6316. <div>{{ w.sName }}</div>
  6317. </div>
  6318. </div>
  6319. </div>
  6320. </div>
  6321. <div
  6322. v-if="
  6323. tType &&
  6324. ((tType == 2 && sIsOpen == true) ||
  6325. tType == 1 ||
  6326. tType == 4) &&
  6327. tool.tool.indexOf(52) != -1
  6328. "
  6329. class="worksBox"
  6330. >
  6331. <div
  6332. class="zuoyeYulan"
  6333. v-if="
  6334. worksStudent.length &&
  6335. worksStudent[toolIndex].length > 0
  6336. "
  6337. >
  6338. <div class="worksTop">
  6339. <div>作业预览</div>
  6340. <div
  6341. class="corOpen"
  6342. @click="contract(toolIndex)"
  6343. v-if="
  6344. (isCloseList[toolIndex].isCloseBoolean) &&
  6345. isCloseList[toolIndex].isClose == 0
  6346. "
  6347. >
  6348. 折叠
  6349. </div>
  6350. <div
  6351. class="corOpen"
  6352. @click="contract(toolIndex)"
  6353. v-if="isCloseList[toolIndex].isClose == 1"
  6354. >
  6355. 展开
  6356. </div>
  6357. </div>
  6358. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6359. </div>
  6360. <div
  6361. :id="'tool-' + toolIndex"
  6362. :style="{
  6363. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6364. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6365. }"
  6366. class="worksDetailBox"
  6367. v-if="
  6368. worksStudent.length &&
  6369. worksStudent[toolIndex].length > 0
  6370. "
  6371. >
  6372. <div
  6373. class="works"
  6374. style="
  6375. width: 200px;
  6376. height: 140px;
  6377. margin: 10px 10px 10px 0;
  6378. border-radius: 15px;
  6379. box-shadow: 0 0 6px 1px #dfdada;
  6380. "
  6381. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6382. :key="wIndex"
  6383. :class="w.type == 1 ? 'isTypeOne' : ''"
  6384. >
  6385. <div class="workImg">
  6386. <img :src="word" @click="openWord(w)" alt />
  6387. <!-- @click="openFile(w.works)" -->
  6388. <div
  6389. class="answerScore"
  6390. v-if="w.score"
  6391. @click.stop="openScore(w)"
  6392. :class="{
  6393. rightW:
  6394. w.userid == userid ||
  6395. tType == 1 ||
  6396. tType == 4 ||
  6397. w.ateacher == userid,
  6398. }"
  6399. >
  6400. {{ JSON.parse(w.score).wScore }}分
  6401. </div>
  6402. <div
  6403. class="answerScore"
  6404. @click.stop="openScore(w)"
  6405. v-else-if="courseDetail.userid == userid"
  6406. :class="{
  6407. rightW:
  6408. w.userid == userid ||
  6409. tType == 1 ||
  6410. tType == 4 ||
  6411. w.ateacher == userid,
  6412. }"
  6413. >
  6414. 评分
  6415. </div>
  6416. <img
  6417. class="deleteImg"
  6418. src="../assets/deleteworks.png"
  6419. v-if="
  6420. w.userid == userid || tType == 1 || tType == 4
  6421. "
  6422. @click.stop="deleteWorks(w.wid)"
  6423. alt
  6424. />
  6425. </div>
  6426. <div class="comment" style="min-width: 200px">
  6427. <div class="worksName">
  6428. <div>{{ w.sName }}</div>
  6429. </div>
  6430. <div class="commentList">
  6431. <div class="commentList">
  6432. <div
  6433. class="commentImg"
  6434. @click="
  6435. isLikes(w.wid, userid, 1, null, w.isLikes)
  6436. "
  6437. >
  6438. <img
  6439. :src="w.isLikes == true ? likes : noLikes"
  6440. alt=""
  6441. />
  6442. </div>
  6443. <div>{{ w.likesCount }}</div>
  6444. </div>
  6445. <div class="commentList" style="margin-right: 15px">
  6446. <div
  6447. class="commentImg"
  6448. @click="commentOther(w, toolIndex, wIndex)"
  6449. >
  6450. <img
  6451. src="../assets/icon/comment/comment.png"
  6452. alt=""
  6453. />
  6454. </div>
  6455. <div>{{ w.commentCount }}</div>
  6456. </div>
  6457. </div>
  6458. </div>
  6459. </div>
  6460. </div>
  6461. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6462. 未提交
  6463. </div>
  6464. <div
  6465. class="noWorksS"
  6466. v-if="noWorksS && noWorksS[toolIndex].length"
  6467. >
  6468. <div
  6469. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6470. :key="sIndex"
  6471. class="noWorksName"
  6472. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6473. >
  6474. {{ s.student }}
  6475. </div>
  6476. </div>
  6477. </div>
  6478. <div
  6479. v-if="
  6480. tType &&
  6481. tType == 2 &&
  6482. !sIsOpen &&
  6483. tool.tool.indexOf(52) != -1
  6484. "
  6485. class="worksBox"
  6486. >
  6487. <div
  6488. class="zuoyeYulan"
  6489. v-if="workStudent[toolIndex].length > 0"
  6490. >
  6491. <span class="worksTitle">作业预览</span>
  6492. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6493. </div>
  6494. <div
  6495. class="worksDetailBox"
  6496. v-if="workStudent[toolIndex].length > 0"
  6497. >
  6498. <div
  6499. class="works"
  6500. style="
  6501. width: 200px;
  6502. height: 140px;
  6503. margin: 10px 10px 10px 0;
  6504. box-shadow: 0 0 6px 1px #dfdada;
  6505. "
  6506. v-for="(w, wIndex) in workStudent[toolIndex]"
  6507. :key="wIndex"
  6508. >
  6509. <div class="workImg">
  6510. <img :src="word" @click="openWord(w)" alt />
  6511. <div
  6512. class="answerScore"
  6513. v-if="w.score"
  6514. @click.stop="openScore(w)"
  6515. :class="{
  6516. rightW:
  6517. w.userid == userid || tType == 1 || tType == 4,
  6518. }"
  6519. >
  6520. {{ JSON.parse(w.score).wScore }}分
  6521. </div>
  6522. <div
  6523. class="answerScore"
  6524. @click.stop="openScore(w)"
  6525. v-else-if="courseDetail.userid == userid"
  6526. :class="{
  6527. rightW:
  6528. w.userid == userid || tType == 1 || tType == 4,
  6529. }"
  6530. >
  6531. 评分
  6532. </div>
  6533. <img
  6534. class="deleteImg"
  6535. src="../assets/deleteworks.png"
  6536. v-if="
  6537. w.userid == userid || tType == 1 || tType == 4
  6538. "
  6539. @click.stop="deleteWorks(w.wid)"
  6540. alt
  6541. />
  6542. </div>
  6543. <div class="worksName">
  6544. <div>{{ w.sName }}</div>
  6545. </div>
  6546. </div>
  6547. </div>
  6548. </div>
  6549. <div
  6550. v-if="tool.tool.indexOf(49) != -1"
  6551. class="xuan_right_box"
  6552. style="margin: 0 15px 0 25px; width: 93%"
  6553. >
  6554. <div
  6555. v-if="courseDetail.userid == userid"
  6556. style="
  6557. display: flex;
  6558. justify-content: flex-end;
  6559. margin-right: 10px;
  6560. "
  6561. >
  6562. <el-button
  6563. type="primary"
  6564. size="small"
  6565. @click="addTools(49, toolIndex, taskCount)"
  6566. >分组设置</el-button
  6567. >
  6568. </div>
  6569. <div
  6570. v-if="groupStudentUid[toolIndex]"
  6571. class="group_staic_box"
  6572. >
  6573. <div
  6574. v-for="(gp, gd) in tool.groupJson.group"
  6575. :key="gd"
  6576. class="group_staic"
  6577. >
  6578. <span> {{ gp.name }}</span>
  6579. <span>
  6580. 目前人数{{
  6581. groupStudentUid[toolIndex][gd].length
  6582. }}人</span
  6583. >
  6584. </div>
  6585. </div>
  6586. </div>
  6587. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6588. <div
  6589. class="zuoyeYulan"
  6590. v-if="
  6591. worksStudent.length &&
  6592. worksStudent[toolIndex].length > 0
  6593. "
  6594. >
  6595. <span class="worksTitle">作业预览</span>
  6596. </div>
  6597. <div>
  6598. <div
  6599. class="group_workBox"
  6600. v-for="(g, gindex) in tool.groupJson.group"
  6601. :key="gindex"
  6602. >
  6603. <div
  6604. class="group_box"
  6605. v-if="
  6606. groupStudentUid[toolIndex] &&
  6607. worksStudent[toolIndex] &&
  6608. (worksStudent[toolIndex][gindex].length ||
  6609. groupStudentUid[toolIndex][gindex].indexOf(
  6610. userid
  6611. ) != -1)
  6612. "
  6613. >
  6614. <div class="group_title">
  6615. <el-tooltip
  6616. class="item"
  6617. effect="light"
  6618. :content="g.name"
  6619. placement="top"
  6620. >
  6621. <div class="group_name">{{ g.name }}</div>
  6622. </el-tooltip>
  6623. <el-button
  6624. type="primary"
  6625. v-if="
  6626. groupStudentUid[toolIndex][gindex].indexOf(
  6627. userid
  6628. ) != -1
  6629. "
  6630. @click="groupUpload(toolIndex, taskCount, gindex)"
  6631. >上传作业</el-button
  6632. >
  6633. </div>
  6634. <div class="group_work">
  6635. <div
  6636. class="works"
  6637. style="
  6638. width: 200px;
  6639. height: 140px;
  6640. margin: 10px 10px 10px 0;
  6641. border-radius: 15px;
  6642. box-shadow: 0 0 6px 1px #dfdada;
  6643. "
  6644. v-for="(w, wIndex) in worksStudent[toolIndex][
  6645. gindex
  6646. ]"
  6647. :key="wIndex"
  6648. :class="w.type == 1 ? 'isTypeOne' : ''"
  6649. >
  6650. <div class="workImg" v-if="w.type == 0">
  6651. <img
  6652. :src="w.works"
  6653. @click="previewImg(w.works)"
  6654. alt
  6655. />
  6656. <div
  6657. class="answerScore"
  6658. v-if="w.score"
  6659. @click.stop="openScore(w)"
  6660. :class="{
  6661. rightW:
  6662. w.userid == userid ||
  6663. tType == 1 ||
  6664. tType == 4 ||
  6665. w.ateacher == userid,
  6666. }"
  6667. >
  6668. {{ JSON.parse(w.score).wScore }}分
  6669. </div>
  6670. <div
  6671. class="answerScore"
  6672. @click.stop="openScore(w)"
  6673. v-else-if="courseDetail.userid == userid"
  6674. :class="{
  6675. rightW:
  6676. w.userid == userid ||
  6677. tType == 1 ||
  6678. tType == 4 ||
  6679. w.ateacher == userid,
  6680. }"
  6681. >
  6682. 评分
  6683. </div>
  6684. <img
  6685. class="deleteImg"
  6686. src="../assets/deleteworks.png"
  6687. v-if="
  6688. w.userid == userid ||
  6689. tType == 1 ||
  6690. tType == 4
  6691. "
  6692. @click.stop="deleteWorks(w.wid)"
  6693. alt
  6694. />
  6695. </div>
  6696. <div class="workImg" v-if="w.type == 1">
  6697. <img
  6698. :src="word"
  6699. @click="openFile(w.works)"
  6700. alt
  6701. />
  6702. <!-- @click="openFile(w.works)" -->
  6703. <div
  6704. class="answerScore"
  6705. v-if="w.score"
  6706. @click.stop="openScore(w)"
  6707. :class="{
  6708. rightW:
  6709. w.userid == userid ||
  6710. tType == 1 ||
  6711. tType == 4 ||
  6712. w.ateacher == userid,
  6713. }"
  6714. >
  6715. {{ JSON.parse(w.score).wScore }}分
  6716. </div>
  6717. <div
  6718. class="answerScore"
  6719. @click.stop="openScore(w)"
  6720. v-else-if="courseDetail.userid == userid"
  6721. :class="{
  6722. rightW:
  6723. w.userid == userid ||
  6724. tType == 1 ||
  6725. tType == 4 ||
  6726. w.ateacher == userid,
  6727. }"
  6728. >
  6729. 评分
  6730. </div>
  6731. <img
  6732. class="deleteImg"
  6733. src="../assets/deleteworks.png"
  6734. v-if="
  6735. w.userid == userid ||
  6736. tType == 1 ||
  6737. tType == 4
  6738. "
  6739. @click.stop="deleteWorks(w.wid)"
  6740. alt
  6741. />
  6742. </div>
  6743. <div class="workImg" v-if="w.type == 3">
  6744. <img
  6745. style="cursor: pointer"
  6746. :src="video"
  6747. @click="openVideo(w)"
  6748. alt
  6749. />
  6750. <!-- @click="openVideo(w.works)" -->
  6751. <div
  6752. class="answerScore"
  6753. v-if="w.score"
  6754. @click.stop="openScore(w)"
  6755. :class="{
  6756. rightW:
  6757. w.userid == userid ||
  6758. tType == 1 ||
  6759. tType == 4 ||
  6760. w.ateacher == userid,
  6761. }"
  6762. >
  6763. {{ JSON.parse(w.score).wScore }}分
  6764. </div>
  6765. <div
  6766. class="answerScore"
  6767. @click.stop="openScore(w)"
  6768. v-else-if="courseDetail.userid == userid"
  6769. :class="{
  6770. rightW:
  6771. w.userid == userid ||
  6772. tType == 1 ||
  6773. tType == 4 ||
  6774. w.ateacher == userid,
  6775. }"
  6776. >
  6777. 评分
  6778. </div>
  6779. <img
  6780. class="deleteImg"
  6781. src="../assets/deleteworks.png"
  6782. v-if="
  6783. w.userid == userid ||
  6784. tType == 1 ||
  6785. tType == 4
  6786. "
  6787. @click.stop="deleteWorks(w.wid)"
  6788. alt
  6789. />
  6790. </div>
  6791. <div class="workImg" v-if="w.type == 12">
  6792. <img
  6793. style="cursor: pointer"
  6794. :src="word2"
  6795. @click="downloadFile(w.works)"
  6796. alt
  6797. />
  6798. <!-- @click="openVideo(w.works)" -->
  6799. <div
  6800. class="answerScore"
  6801. v-if="w.score"
  6802. @click.stop="openScore(w)"
  6803. :class="{
  6804. rightW:
  6805. w.userid == userid ||
  6806. tType == 1 ||
  6807. tType == 4 ||
  6808. w.ateacher == userid,
  6809. }"
  6810. >
  6811. {{ JSON.parse(w.score).wScore }}分
  6812. </div>
  6813. <div
  6814. class="answerScore"
  6815. @click.stop="openScore(w)"
  6816. v-else-if="courseDetail.userid == userid"
  6817. :class="{
  6818. rightW:
  6819. w.userid == userid ||
  6820. tType == 1 ||
  6821. tType == 4 ||
  6822. w.ateacher == userid,
  6823. }"
  6824. >
  6825. 评分
  6826. </div>
  6827. <img
  6828. class="deleteImg"
  6829. src="../assets/deleteworks.png"
  6830. v-if="
  6831. w.userid == userid ||
  6832. tType == 1 ||
  6833. tType == 4
  6834. "
  6835. @click.stop="deleteWorks(w.wid)"
  6836. alt
  6837. />
  6838. </div>
  6839. <div class="comment" style="min-width: 200px">
  6840. <div class="worksName">
  6841. <div>{{ w.sName }}</div>
  6842. </div>
  6843. <div class="commentList">
  6844. <div class="commentList">
  6845. <div
  6846. class="commentImg"
  6847. @click="
  6848. isLikes(
  6849. w.wid,
  6850. userid,
  6851. 1,
  6852. null,
  6853. w.isLikes
  6854. )
  6855. "
  6856. >
  6857. <img
  6858. :src="
  6859. w.isLikes == true ? likes : noLikes
  6860. "
  6861. alt=""
  6862. />
  6863. </div>
  6864. <div>{{ w.likesCount }}</div>
  6865. </div>
  6866. <div
  6867. class="commentList"
  6868. style="margin-right: 15px"
  6869. >
  6870. <div
  6871. class="commentImg"
  6872. @click="
  6873. commentOther(
  6874. w,
  6875. toolIndex,
  6876. wIndex,
  6877. gindex
  6878. )
  6879. "
  6880. >
  6881. <img
  6882. src="../assets/icon/comment/comment.png"
  6883. alt=""
  6884. />
  6885. </div>
  6886. <div>{{ w.commentCount }}</div>
  6887. </div>
  6888. </div>
  6889. </div>
  6890. </div>
  6891. </div>
  6892. </div>
  6893. </div>
  6894. </div>
  6895. </div>
  6896. </div>
  6897. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  6898. 上传文件
  6899. <input
  6900. type="file"
  6901. accept="image/png, image/gif, image/jpeg"
  6902. style="display: none"
  6903. @change="beforeUpload1($event, 2, index)"
  6904. />
  6905. </div>-->
  6906. </div>
  6907. </div>
  6908. <!-- <div
  6909. class="vedioBox"
  6910. style="margin-top: 10px"
  6911. v-if="
  6912. courseDetail.userid == userid ||
  6913. (courseDetail.course_teacher &&
  6914. courseDetail.course_teacher.indexOf(userid) != -1)
  6915. "
  6916. :style="{
  6917. borderRadius:
  6918. !(
  6919. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6920. .toolChoose[0].tool &&
  6921. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6922. .toolChoose[0].tool.length > 0
  6923. ) &&
  6924. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6925. .taskDetail == '' &&
  6926. vChapterData[taskCount].length == 0 &&
  6927. fileC[taskCount].length == 0
  6928. ? '0 0 20px 20px'
  6929. : '20px',
  6930. }"
  6931. >
  6932. <div
  6933. class="queTop"
  6934. @click="isClose = !isClose"
  6935. style="
  6936. padding: 15px 0 15px 37px;
  6937. justify-content: space-between;
  6938. "
  6939. >
  6940. <div class="queTopTitle">新增工具</div>
  6941. <div class="queTopRight">
  6942. <div class="queTopClose" v-if="isClose == 0">
  6943. 展开
  6944. <div class="closeImg">
  6945. <img src="../assets/icon/newIcon/close.png" alt="" />
  6946. </div>
  6947. </div>
  6948. <div class="queTopClose" v-if="isClose == 1">
  6949. 折叠
  6950. <div class="openImg">
  6951. <img src="../assets/icon/newIcon/open.png" alt="" />
  6952. </div>
  6953. </div>
  6954. <el-button
  6955. style="margin: 0 30px 0 auto"
  6956. type="primary"
  6957. size="small"
  6958. v-if="isClose == 1 && checktoolArray.length > 0"
  6959. @click.stop="addToolChoose"
  6960. >确定</el-button
  6961. >
  6962. </div>
  6963. </div>
  6964. <div
  6965. class="tool_work_box"
  6966. :style="isClose == 0 ? 'display:none' : 'display:block'"
  6967. >
  6968. <div class="tool_box">
  6969. <div class="tool_type_box">
  6970. <div class="chooseWho">
  6971. <div
  6972. :class="toolType == 0 ? 'isChooseActive' : ''"
  6973. @click="(toolType = 0), $forceUpdate()"
  6974. >
  6975. 互动类
  6976. </div>
  6977. <div
  6978. :class="toolType == 1 ? 'isChooseActive' : ''"
  6979. @click="(toolType = 1), $forceUpdate()"
  6980. >
  6981. 思维类
  6982. </div>
  6983. <div
  6984. :class="toolType == 2 ? 'isChooseActive' : ''"
  6985. @click="(toolType = 2), $forceUpdate()"
  6986. >
  6987. 测评类
  6988. </div>
  6989. <div
  6990. :class="toolType == 3 ? 'isChooseActive' : ''"
  6991. @click="(toolType = 3), $forceUpdate()"
  6992. >
  6993. 编程类
  6994. </div>
  6995. <div
  6996. :class="toolType == 5 ? 'isChooseActive' : ''"
  6997. @click="(toolType = 5), $forceUpdate()"
  6998. >
  6999. 学科类
  7000. </div>
  7001. </div>
  7002. </div>
  7003. <div>
  7004. <div class="toolSort" v-if="toolType == 0">
  7005. <div class="tool">
  7006. <div class="whiteBIcon" @click="addTools2(10)">
  7007. <img
  7008. src="../assets/icon/thirdToolList/time.png"
  7009. alt
  7010. />
  7011. <div style="margin: 5px 0">倒计时</div>
  7012. </div>
  7013. <div class="check" @click="addTools2(10)">
  7014. <img
  7015. src="../assets/icon/checkNo.png"
  7016. alt
  7017. v-if="checktoolArray.indexOf(10) == -1"
  7018. />
  7019. <div class="checkDiv" v-else>
  7020. <img src="../assets/icon/checkedIs.png" alt /><span
  7021. >已选择</span
  7022. >
  7023. </div>
  7024. </div>
  7025. </div>
  7026. <div class="tool">
  7027. <div class="whiteBIcon" @click="addTools2(65)">
  7028. <img
  7029. src="../assets/icon/firstToolList/pickPeople.png"
  7030. alt
  7031. />
  7032. <div style="margin: 5px 0">挑人</div>
  7033. </div>
  7034. <div class="check" @click="addTools2(65)">
  7035. <img
  7036. src="../assets/icon/checkNo.png"
  7037. alt
  7038. v-if="checktoolArray.indexOf(65) == -1"
  7039. />
  7040. <div class="checkDiv" v-else>
  7041. <img src="../assets/icon/checkedIs.png" alt /><span
  7042. >已选择</span
  7043. >
  7044. </div>
  7045. </div>
  7046. </div>
  7047. </div>
  7048. <div class="toolSort" v-if="toolType == 1">
  7049. <div class="tool">
  7050. <div class="whiteBIcon" @click="addTools2(7)">
  7051. <img
  7052. src="../assets/icon/secondToolList/mindNetwork.png"
  7053. alt
  7054. />
  7055. <div style="margin: 5px 0">思维网格</div>
  7056. </div>
  7057. <div class="check" @click="addTools2(7)">
  7058. <img
  7059. src="../assets/icon/checkNo.png"
  7060. alt
  7061. v-if="checktoolArray.indexOf(7) == -1"
  7062. />
  7063. <div class="checkDiv" v-else>
  7064. <img src="../assets/icon/checkedIs.png" alt /><span
  7065. >已选择</span
  7066. >
  7067. </div>
  7068. </div>
  7069. </div>
  7070. <div class="tool">
  7071. <div class="whiteBIcon" @click="addTools2(1)">
  7072. <img
  7073. src="../assets/icon/secondToolList/whiteBoard.png"
  7074. alt
  7075. />
  7076. <div style="margin: 5px 0">电子白板</div>
  7077. </div>
  7078. <div class="check" @click="addTools2(1)">
  7079. <img
  7080. src="../assets/icon/checkNo.png"
  7081. alt
  7082. v-if="checktoolArray.indexOf(1) == -1"
  7083. />
  7084. <div class="checkDiv" v-else>
  7085. <img src="../assets/icon/checkedIs.png" alt /><span
  7086. >已选择</span
  7087. >
  7088. </div>
  7089. </div>
  7090. </div>
  7091. <div class="tool">
  7092. <div class="whiteBIcon" @click="addTools2(52)">
  7093. <img
  7094. src="../assets/icon/fourthToolList/text.png"
  7095. alt
  7096. />
  7097. <div style="margin: 5px 0">文档</div>
  7098. </div>
  7099. <div class="check" @click="addTools2(52)">
  7100. <img
  7101. src="../assets/icon/checkNo.png"
  7102. alt
  7103. v-if="checktoolArray.indexOf(52) == -1"
  7104. />
  7105. <div class="checkDiv" v-else>
  7106. <img src="../assets/icon/checkedIs.png" alt /><span
  7107. >已选择</span
  7108. >
  7109. </div>
  7110. </div>
  7111. </div>
  7112. <div class="tool">
  7113. <div class="whiteBIcon" @click="addTools2(3)">
  7114. <img
  7115. src="../assets/icon/secondToolList/mindMapping.png"
  7116. alt
  7117. />
  7118. <div style="margin: 5px 0">思维导图</div>
  7119. </div>
  7120. <div class="check" @click="addTools2(3)">
  7121. <img
  7122. src="../assets/icon/checkNo.png"
  7123. alt
  7124. v-if="checktoolArray.indexOf(3) == -1"
  7125. />
  7126. <div class="checkDiv" v-else>
  7127. <img src="../assets/icon/checkedIs.png" alt /><span
  7128. >已选择</span
  7129. >
  7130. </div>
  7131. </div>
  7132. </div>
  7133. <div class="tool">
  7134. <div class="whiteBIcon" @click="addTools2(48)">
  7135. <img
  7136. src="../assets/icon/fourthToolList/table.png"
  7137. alt
  7138. />
  7139. <div style="margin: 5px 0">表格</div>
  7140. </div>
  7141. <div class="check" @click="addTools2(48)">
  7142. <img
  7143. src="../assets/icon/checkNo.png"
  7144. alt
  7145. v-if="checktoolArray.indexOf(48) == -1"
  7146. />
  7147. <div class="checkDiv" v-else>
  7148. <img src="../assets/icon/checkedIs.png" alt /><span
  7149. >已选择</span
  7150. >
  7151. </div>
  7152. </div>
  7153. </div>
  7154. </div>
  7155. <div class="toolSort" v-if="toolType == 6">
  7156. <div v-show="tooC == 49">
  7157. <img
  7158. @click="addTools(tooC, toolIndex, taskCount)"
  7159. src="../assets/icon/fourthToolList/group.png"
  7160. alt
  7161. />
  7162. <div style="margin: 5px 0">学生分组</div>
  7163. </div>
  7164. </div>
  7165. <div class="toolSort" v-if="toolType == 2">
  7166. <div class="tool">
  7167. <div class="whiteBIcon" @click="addTools2(16)">
  7168. <img
  7169. src="../assets/icon/thirdToolList/work.png"
  7170. alt
  7171. />
  7172. <div style="margin: 5px 0">作业提交</div>
  7173. </div>
  7174. <div class="check" @click="addTools2(16)">
  7175. <img
  7176. src="../assets/icon/checkNo.png"
  7177. alt
  7178. v-if="checktoolArray.indexOf(16) == -1"
  7179. />
  7180. <div class="checkDiv" v-else>
  7181. <img src="../assets/icon/checkedIs.png" alt /><span
  7182. >已选择</span
  7183. >
  7184. </div>
  7185. </div>
  7186. </div>
  7187. <div class="tool">
  7188. <div class="whiteBIcon" @click="addTools2(50)">
  7189. <img
  7190. src="../assets/icon/thirdToolList/plwork.png"
  7191. alt
  7192. />
  7193. <div style="margin: 5px 0">批量上传</div>
  7194. </div>
  7195. <div class="check" @click="addTools2(50)">
  7196. <img
  7197. src="../assets/icon/checkNo.png"
  7198. alt
  7199. v-if="checktoolArray.indexOf(50) == -1"
  7200. />
  7201. <div class="checkDiv" v-else>
  7202. <img src="../assets/icon/checkedIs.png" alt /><span
  7203. >已选择</span
  7204. >
  7205. </div>
  7206. </div>
  7207. </div>
  7208. </div>
  7209. <div class="toolSort" v-if="toolType == 3">
  7210. <div class="tool">
  7211. <div class="whiteBIcon" @click="addTools2(18)">
  7212. <img
  7213. src="../assets/icon/thirdToolList/trainPlatform.png"
  7214. alt
  7215. />
  7216. <div style="margin: 5px 0">训练平台</div>
  7217. </div>
  7218. <div class="check" @click="addTools2(18)">
  7219. <img
  7220. src="../assets/icon/checkNo.png"
  7221. alt
  7222. v-if="checktoolArray.indexOf(18) == -1"
  7223. />
  7224. <div class="checkDiv" v-else>
  7225. <img src="../assets/icon/checkedIs.png" alt /><span
  7226. >已选择</span
  7227. >
  7228. </div>
  7229. </div>
  7230. </div>
  7231. <div class="tool">
  7232. <div class="whiteBIcon" @click="addTools2(21)">
  7233. <img
  7234. src="../assets/icon/fourthToolList/program.png"
  7235. alt
  7236. />
  7237. <div style="margin: 5px 0">AIoT Blockly</div>
  7238. </div>
  7239. <div class="check" @click="addTools2(21)">
  7240. <img
  7241. src="../assets/icon/checkNo.png"
  7242. alt
  7243. v-if="checktoolArray.indexOf(21) == -1"
  7244. />
  7245. <div class="checkDiv" v-else>
  7246. <img src="../assets/icon/checkedIs.png" alt /><span
  7247. >已选择</span
  7248. >
  7249. </div>
  7250. </div>
  7251. </div>
  7252. <div class="tool">
  7253. <div class="whiteBIcon" @click="addTools2(23)">
  7254. <img
  7255. src="../assets/icon/fourthToolList/Pythonprogram.png"
  7256. alt
  7257. />
  7258. <div style="margin: 5px 0">AI Python</div>
  7259. </div>
  7260. <div class="check" @click="addTools2(23)">
  7261. <img
  7262. src="../assets/icon/checkNo.png"
  7263. alt
  7264. v-if="checktoolArray.indexOf(23) == -1"
  7265. />
  7266. <div class="checkDiv" v-else>
  7267. <img src="../assets/icon/checkedIs.png" alt /><span
  7268. >已选择</span
  7269. >
  7270. </div>
  7271. </div>
  7272. </div>
  7273. <div class="tool">
  7274. <div class="whiteBIcon" @click="addTools2(24)">
  7275. <img
  7276. src="../assets/icon/fourthToolList/AIprogram.png"
  7277. alt
  7278. />
  7279. <div style="margin: 5px 0">AI Blockly</div>
  7280. </div>
  7281. <div class="check" @click="addTools2(24)">
  7282. <img
  7283. src="../assets/icon/checkNo.png"
  7284. alt
  7285. v-if="checktoolArray.indexOf(24) == -1"
  7286. />
  7287. <div class="checkDiv" v-else>
  7288. <img src="../assets/icon/checkedIs.png" alt /><span
  7289. >已选择</span
  7290. >
  7291. </div>
  7292. </div>
  7293. </div>
  7294. <div class="tool">
  7295. <div class="whiteBIcon" @click="addTools2(32)">
  7296. <img
  7297. src="../assets/icon/thirdToolList/code.png"
  7298. alt
  7299. />
  7300. <div style="margin: 5px 0">源码编辑</div>
  7301. </div>
  7302. <div class="check" @click="addTools2(32)">
  7303. <img
  7304. src="../assets/icon/checkNo.png"
  7305. alt
  7306. v-if="checktoolArray.indexOf(32) == -1"
  7307. />
  7308. <div class="checkDiv" v-else>
  7309. <img src="../assets/icon/checkedIs.png" alt /><span
  7310. >已选择</span
  7311. >
  7312. </div>
  7313. </div>
  7314. </div>
  7315. <div class="tool">
  7316. <div class="whiteBIcon" @click="addTools2(57)">
  7317. <img
  7318. src="../assets/icon/fourthToolList/cocopi.png"
  7319. alt
  7320. />
  7321. <div style="margin: 5px 0">CocoPi</div>
  7322. </div>
  7323. <div class="check" @click="addTools2(57)">
  7324. <img
  7325. src="../assets/icon/checkNo.png"
  7326. alt
  7327. v-if="checktoolArray.indexOf(57) == -1"
  7328. />
  7329. <div class="checkDiv" v-else>
  7330. <img src="../assets/icon/checkedIs.png" alt /><span
  7331. >已选择</span
  7332. >
  7333. </div>
  7334. </div>
  7335. </div>
  7336. <div class="tool">
  7337. <div class="whiteBIcon" @click="addTools2(63)">
  7338. <img
  7339. src="../assets/icon/fourthToolList/Wood.png"
  7340. alt
  7341. />
  7342. <div style="margin: 5px 0">海龟编程</div>
  7343. </div>
  7344. <div class="check" @click="addTools2(63)">
  7345. <img
  7346. src="../assets/icon/checkNo.png"
  7347. alt
  7348. v-if="checktoolArray.indexOf(63) == -1"
  7349. />
  7350. <div class="checkDiv" v-else>
  7351. <img src="../assets/icon/checkedIs.png" alt /><span
  7352. >已选择</span
  7353. >
  7354. </div>
  7355. </div>
  7356. </div>
  7357. </div>
  7358. <div class="toolSort" v-if="toolType == 5">
  7359. <div class="tool">
  7360. <div class="whiteBIcon" @click="addTools2(28)">
  7361. <img
  7362. src="../assets/icon/secondToolList/translation.png"
  7363. alt
  7364. />
  7365. <div style="margin: 5px 0">翻译</div>
  7366. </div>
  7367. <div class="check" @click="addTools2(28)">
  7368. <img
  7369. src="../assets/icon/checkNo.png"
  7370. alt
  7371. v-if="checktoolArray.indexOf(28) == -1"
  7372. />
  7373. <div class="checkDiv" v-else>
  7374. <img src="../assets/icon/checkedIs.png" alt /><span
  7375. >已选择</span
  7376. >
  7377. </div>
  7378. </div>
  7379. </div>
  7380. <div class="tool">
  7381. <div class="whiteBIcon" @click="addTools2(31)">
  7382. <img
  7383. src="../assets/icon/secondToolList/networkPanel.png"
  7384. alt
  7385. />
  7386. <div style="margin: 5px 0">数字画板</div>
  7387. </div>
  7388. <div class="check" @click="addTools2(31)">
  7389. <img
  7390. src="../assets/icon/checkNo.png"
  7391. alt
  7392. v-if="checktoolArray.indexOf(31) == -1"
  7393. />
  7394. <div class="checkDiv" v-else>
  7395. <img src="../assets/icon/checkedIs.png" alt /><span
  7396. >已选择</span
  7397. >
  7398. </div>
  7399. </div>
  7400. </div>
  7401. <div class="tool">
  7402. <div class="whiteBIcon" @click="addTools2(39)">
  7403. <img
  7404. src="../assets/icon/secondToolList/GeoGebra.png"
  7405. alt
  7406. />
  7407. <div style="margin: 5px 0">GeoGebra</div>
  7408. </div>
  7409. <div class="check" @click="addTools2(39)">
  7410. <img
  7411. src="../assets/icon/checkNo.png"
  7412. alt
  7413. v-if="checktoolArray.indexOf(39) == -1"
  7414. />
  7415. <div class="checkDiv" v-else>
  7416. <img src="../assets/icon/checkedIs.png" alt /><span
  7417. >已选择</span
  7418. >
  7419. </div>
  7420. </div>
  7421. </div>
  7422. <div class="tool">
  7423. <div class="whiteBIcon" @click="addTools2(66)">
  7424. <img
  7425. src="../assets/icon/secondToolList/formulaEdi.png"
  7426. alt
  7427. />
  7428. <div style="margin: 5px 0">公式编辑</div>
  7429. </div>
  7430. <div class="check" @click="addTools2(66)">
  7431. <img
  7432. src="../assets/icon/checkNo.png"
  7433. alt
  7434. v-if="checktoolArray.indexOf(66) == -1"
  7435. />
  7436. <div class="checkDiv" v-else>
  7437. <img src="../assets/icon/checkedIs.png" alt /><span
  7438. >已选择</span
  7439. >
  7440. </div>
  7441. </div>
  7442. </div>
  7443. <div class="tool">
  7444. <div class="whiteBIcon" @click="addTools2(67)">
  7445. <img
  7446. src="../assets/icon/secondToolList/molStr.png"
  7447. alt
  7448. />
  7449. <div style="margin: 5px 0">分子结构</div>
  7450. </div>
  7451. <div class="check" @click="addTools2(67)">
  7452. <img
  7453. src="../assets/icon/checkNo.png"
  7454. alt
  7455. v-if="checktoolArray.indexOf(67) == -1"
  7456. />
  7457. <div class="checkDiv" v-else>
  7458. <img src="../assets/icon/checkedIs.png" alt /><span
  7459. >已选择</span
  7460. >
  7461. </div>
  7462. </div>
  7463. </div>
  7464. <div class="tool">
  7465. <div class="whiteBIcon" @click="addTools2(68)">
  7466. <img
  7467. src="../assets/icon/secondToolList/timeAxis.png"
  7468. alt
  7469. />
  7470. <div style="margin: 5px 0">时间轴</div>
  7471. </div>
  7472. <div class="check" @click="addTools2(68)">
  7473. <img
  7474. src="../assets/icon/checkNo.png"
  7475. alt
  7476. v-if="checktoolArray.indexOf(68) == -1"
  7477. />
  7478. <div class="checkDiv" v-else>
  7479. <img src="../assets/icon/checkedIs.png" alt /><span
  7480. >已选择</span
  7481. >
  7482. </div>
  7483. </div>
  7484. </div>
  7485. </div>
  7486. <div class="toolSort" v-if="toolType == 7">
  7487. <div class="tool">
  7488. <div class="whiteBIcon" @click="addTools2(40)">
  7489. <img
  7490. src="../assets/icon/secondToolList/eval.png"
  7491. alt
  7492. />
  7493. <div style="margin: 5px 0">个人评价</div>
  7494. </div>
  7495. <div class="check" @click="addTools2(40)">
  7496. <img
  7497. src="../assets/icon/checkNo.png"
  7498. alt
  7499. v-if="checktoolArray.indexOf(40) == -1"
  7500. />
  7501. <div class="checkDiv" v-else>
  7502. <img src="../assets/icon/checkedIs.png" alt /><span
  7503. >已选择</span
  7504. >
  7505. </div>
  7506. </div>
  7507. </div>
  7508. </div>
  7509. <div class="toolSort" v-if="toolType == 4">
  7510. <div class="tool">
  7511. <div class="whiteBIcon" @click="addTools2(26)">
  7512. <img
  7513. src="../assets/icon/thirdToolList/courseDesign.png"
  7514. alt
  7515. />
  7516. <div style="margin: 5px 0">课程设计</div>
  7517. </div>
  7518. <div class="check" @click="addTools2(26)">
  7519. <img
  7520. src="../assets/icon/checkNo.png"
  7521. alt
  7522. v-if="checktoolArray.indexOf(26) == -1"
  7523. />
  7524. <div class="checkDiv" v-else>
  7525. <img src="../assets/icon/checkedIs.png" alt /><span
  7526. >已选择</span
  7527. >
  7528. </div>
  7529. </div>
  7530. </div>
  7531. <div class="tool">
  7532. <div class="whiteBIcon" @click="addTools2(25)">
  7533. <img
  7534. src="../assets/icon/thirdToolList/evalua.png"
  7535. alt
  7536. />
  7537. <div style="margin: 5px 0">目标管理</div>
  7538. </div>
  7539. <div class="check" @click="addTools2(25)">
  7540. <img
  7541. src="../assets/icon/checkNo.png"
  7542. alt
  7543. v-if="checktoolArray.indexOf(25) == -1"
  7544. />
  7545. <div class="checkDiv" v-else>
  7546. <img src="../assets/icon/checkedIs.png" alt /><span
  7547. >已选择</span
  7548. >
  7549. </div>
  7550. </div>
  7551. </div>
  7552. </div>
  7553. </div>
  7554. </div>
  7555. </div>
  7556. </div> -->
  7557. <div
  7558. class="vedioBox"
  7559. style="margin-top: 10px; border-radius: 20px"
  7560. v-if="
  7561. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7562. .eList &&
  7563. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7564. .eList.length &&
  7565. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7566. .eList.length > 0 &&
  7567. tType != 2
  7568. "
  7569. >
  7570. <div
  7571. class="queTop"
  7572. style="
  7573. font-size: 20px;
  7574. padding: 15px 0 15px 37px;
  7575. font-weight: bold;
  7576. "
  7577. >
  7578. <!-- <div class="question" style="width: 30px">
  7579. <img src="../assets/icon/toolIcon.png" alt />
  7580. </div>
  7581. <div class="queTitle">
  7582. <div>工具</div>
  7583. </div>-->
  7584. 评一评
  7585. </div>
  7586. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7587. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  7588. <el-table
  7589. :data="
  7590. chapInfoList[courseType].chapterInfo[0].taskJson[
  7591. taskCount
  7592. ].eList
  7593. "
  7594. :header-cell-style="{ background: '#F0F4FA' }"
  7595. :row-class-name="tableRowClassName"
  7596. border
  7597. stripe
  7598. style="width: 100%"
  7599. >
  7600. <el-table-column
  7601. label="评价名称"
  7602. align="center"
  7603. >
  7604. <template slot-scope="scope"
  7605. ><div>{{ scope.row.value }}</div></template
  7606. >
  7607. </el-table-column>
  7608. <el-table-column
  7609. label="评价描述"
  7610. align="center"
  7611. >
  7612. <template slot-scope="scope"
  7613. ><div>
  7614. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7615. </div></template
  7616. >
  7617. </el-table-column>
  7618. <el-table-column label="目标" align="center">
  7619. <template slot-scope="scope"
  7620. ><div>
  7621. {{
  7622. scope.row.target
  7623. ? scope.row.target[scope.row.target.length - 1]
  7624. : "-"
  7625. }}
  7626. </div></template
  7627. ></el-table-column
  7628. >
  7629. </el-table>
  7630. <!-- <div
  7631. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7632. .chapterInfo[0].taskJson[taskCount].eList"
  7633. :key="eIndex"
  7634. class="elist_input_box"
  7635. >
  7636. <div style="width: 95%">
  7637. <div
  7638. style="
  7639. display: flex;
  7640. flex-direction: row;
  7641. flex-wrap: nowrap;
  7642. align-items: center;
  7643. "
  7644. >
  7645. <div style="max-width: calc(100% - 285px)">
  7646. <span>{{ eItem.value }}</span>
  7647. </div>
  7648. <div
  7649. style="
  7650. padding-left: 25px;
  7651. display: flex;
  7652. flex-direction: row;
  7653. align-items: center;
  7654. "
  7655. >
  7656. <el-rate
  7657. v-model="eItem.score"
  7658. :colors="colors"
  7659. disabled
  7660. ></el-rate>
  7661. </div>
  7662. </div>
  7663. <div class="elist_inptu_text" style="padding-left: 10px">
  7664. <span v-if="eItem.detail != ''">{{
  7665. eItem.detail
  7666. }}</span>
  7667. <span v-else style="color: #b2b1b3; font-size: 14px"
  7668. >暂无描述...</span
  7669. >
  7670. </div>
  7671. </div>
  7672. </div> -->
  7673. </div>
  7674. <div
  7675. v-if="evalua"
  7676. style="
  7677. border: 1px solid #e5e5e5;
  7678. max-width: 650px;
  7679. width: 100%;
  7680. margin-top: 20px;
  7681. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7682. "
  7683. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  7684. >
  7685. <div class="e_add_top">
  7686. <div class="e_add_title" style="width: 100%">
  7687. <!-- <span>目标管理名称</span> -->
  7688. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  7689. <img
  7690. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  7691. src="../assets/line.png"
  7692. class="cru_line"
  7693. style="
  7694. width: 125px;
  7695. height: 20px;
  7696. bottom: -10px;
  7697. left: 5px;
  7698. "
  7699. />
  7700. <!-- <el-input
  7701. v-model="eTitle"
  7702. placeholder="请输入名称"
  7703. @change="setMindData"
  7704. ></el-input>-->
  7705. <div v-show="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" class="show_taskD show" style="margin:0 0 0 auto" @click="foldEva()"><img src="../assets/icon/newIcon/icon-slide.png" />收起目标</div>
  7706. <div v-show="!chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" style="margin:0 0 0 auto" class="show_taskD" @click="foldEva()"><img src="../assets/icon/newIcon/icon-slide.png" />展开目标</div>
  7707. </div>
  7708. </div>
  7709. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  7710. <div class="e_add_list_pbox">
  7711. <div class="e_add_list_pbox_title">
  7712. <!-- <span class="type_title">切换模式</span> -->
  7713. <div class="type_content">
  7714. <span
  7715. :class="{ active: typeMode == 1 }"
  7716. @click="typeMode = 1"
  7717. >目标树</span
  7718. >
  7719. <span
  7720. :class="{ active: typeMode == 2 }"
  7721. @click="typeMode = 2"
  7722. >目标罗盘</span
  7723. >
  7724. <!-- <span
  7725. :class="{ active: typeMode == 3 }"
  7726. @click="typeMode = 3"
  7727. >目标看板</span
  7728. > -->
  7729. </div>
  7730. </div>
  7731. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  7732. <Mind
  7733. :showBar="false"
  7734. :mindData="data"
  7735. style="width: 100%"
  7736. v-show="typeMode == 1"
  7737. ></Mind>
  7738. <Sunburst
  7739. :Josn="eJson"
  7740. :num="eJSONNum"
  7741. style="width: 100%"
  7742. v-if="typeMode == 2"
  7743. ></Sunburst>
  7744. <SeeBoard
  7745. :Josn="eJson"
  7746. :num="eJSONNum"
  7747. :ename="eTitle"
  7748. style="width: 100%"
  7749. v-if="typeMode == 3"
  7750. >
  7751. </SeeBoard>
  7752. </div>
  7753. </div>
  7754. </div>
  7755. </div>
  7756. </div>
  7757. </div>
  7758. <!-- <div
  7759. class="project_box"
  7760. style="margin-top: 15px; padding-bottom: 30px"
  7761. >
  7762. <div
  7763. style="
  7764. display: flex;
  7765. flex-wrap: nowrap;
  7766. flex-direction: column;
  7767. position: relative;
  7768. "
  7769. >
  7770. <div class="queTop">
  7771. <div class="question">
  7772. <img src="../assets/icon/homeWork.png" alt="" />
  7773. </div>
  7774. <div class="queTitle">
  7775. <div>作业提交<span>(提交图文视频等)</span></div>
  7776. <div>:任务:{{ task.task }}</div>
  7777. </div>
  7778. </div>
  7779. <div class="ediBottom">
  7780. <div
  7781. class="addEditor"
  7782. style="margin-top: 23px"
  7783. @click="openAddWork"
  7784. v-if="!isNoHomeWork"
  7785. >
  7786. 选择文件
  7787. </div>
  7788. <div
  7789. class="addEditor"
  7790. style="margin-top: 23px"
  7791. @click="openAddWork"
  7792. v-else
  7793. >
  7794. 已提交
  7795. </div>
  7796. </div>
  7797. </div>
  7798. </div>-->
  7799. </div>
  7800. </div>
  7801. <el-dialog
  7802. title="作业提交"
  7803. :visible.sync="dialogVisible"
  7804. :append-to-body="true"
  7805. width="500px"
  7806. :before-close="handleClose"
  7807. class="dialog_change"
  7808. >
  7809. <div class="marginT">
  7810. <div>上传文件</div>
  7811. <div
  7812. class="chapter_add"
  7813. @click="addImg($event)"
  7814. v-if="studyJuri[0].cover.length == 0"
  7815. >
  7816. <div class="up_photo">
  7817. <img src="../assets/icon/uploadImg.png" alt />
  7818. </div>
  7819. <!-- <input
  7820. type="file"
  7821. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  7822. style="display: none"
  7823. @change="beforeUpload1($event, 1)"
  7824. /> -->
  7825. <input
  7826. type="file"
  7827. accept="*"
  7828. style="display: none"
  7829. @change="beforeUpload1($event, 1)"
  7830. />
  7831. <!-- <input
  7832. type="file"
  7833. accept="image/*"
  7834. capture="camera"
  7835. style="display: none"
  7836. @change="beforeUpload1($event, 1)"
  7837. /> -->
  7838. </div>
  7839. <div
  7840. class="chapter_add"
  7841. style="
  7842. display: flex;
  7843. width: 100%;
  7844. flex-direction: row;
  7845. flex-wrap: wrap;
  7846. justify-content: flex-start;
  7847. padding: 15px 0;
  7848. "
  7849. v-if="studyJuri[0].cover.length > 0"
  7850. >
  7851. <div class="upCover">
  7852. <img
  7853. :src="studyJuri[0].cover[0].url"
  7854. alt
  7855. v-if="fileType == 0"
  7856. />
  7857. <img :src="word" alt v-else-if="fileType == 1" />
  7858. <img :src="video" alt v-else-if="fileType == 2" />
  7859. <img :src="word2" alt v-else-if="fileType == 3" />
  7860. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  7861. <div class="deleteWord" @click="clean(1)">
  7862. <img src="../assets/icon/deleteWorks.png" alt />
  7863. </div>
  7864. </div>
  7865. </div>
  7866. </div>
  7867. <div
  7868. class="upload_send"
  7869. @click="addCourseWorks(taskCount)"
  7870. v-if="!proVisible"
  7871. >
  7872. 提交
  7873. </div>
  7874. </el-dialog>
  7875. </div>
  7876. </div>
  7877. <div
  7878. class="pButton"
  7879. @click="(pzDialog = true), selectPz()"
  7880. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  7881. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  7882. >
  7883. <!-- 批 -->
  7884. <img src="../assets/mlBtn.png" style="width: 25px" alt="" />
  7885. </div>
  7886. <div v-if="pzDialog == true" class="newDialogCss">
  7887. <div class="pzTop2">
  7888. <!-- <div>评论</div>
  7889. <div @click="pzDialog = false">
  7890. <img src="../assets/close1.png" alt="" />
  7891. </div> -->
  7892. <div class="checkbox">
  7893. <div class="check" style="font-size: 25px; position: unset">
  7894. 评论
  7895. </div>
  7896. <el-select v-model="pzStype" @change="selectPz" class="selectBox">
  7897. <el-option label="时间降序" :value="1"></el-option>
  7898. <el-option label="时间升序" :value="2"></el-option>
  7899. <el-option label="我的评课" :value="3"></el-option>
  7900. </el-select>
  7901. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  7902. </div>
  7903. </div>
  7904. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  7905. <div class="pzListBox" v-if="pzList && pzList.length">
  7906. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  7907. <div class="pzNavTop">
  7908. <div>评</div>
  7909. <div>
  7910. {{
  7911. pz.username && pz.username.length > 5
  7912. ? pz.username.substring(0, 5) + "..."
  7913. : pz.username
  7914. }}的评论
  7915. </div>
  7916. <div
  7917. class="pzDelete"
  7918. v-if="pz.userid == userid"
  7919. @click="deletePz(pz.id)"
  7920. >
  7921. 删除
  7922. </div>
  7923. </div>
  7924. <div
  7925. @click="checkImg(getImgList(pz.content))"
  7926. class="pzContent cont"
  7927. v-html="pz.content"
  7928. v-if="pz.type == '1'"
  7929. ></div>
  7930. <div class="pzContent" v-if="pz.type == '2'">
  7931. <audio :src="pz.content" controls="controls" ref="audio">
  7932. Your browser does not support the audio element.
  7933. </audio>
  7934. </div>
  7935. <div class="pzContent" v-if="pz.type == '3'">
  7936. <img
  7937. :src="pz.content"
  7938. style="width: 90%; margin: 0 auto; display: block"
  7939. @click="previewImg(pz.content)"
  7940. />
  7941. </div>
  7942. <div class="timeAndReply">
  7943. <div class="time">
  7944. {{ pz.time }}
  7945. </div>
  7946. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  7947. </div>
  7948. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  7949. <div
  7950. v-for="(h, hIndex) in pz.hfList"
  7951. :key="hIndex"
  7952. class="hfItem"
  7953. >
  7954. <div class="whoReplyWho">
  7955. <div class="hfName">{{ h.username }}</div>
  7956. <div class="hfImg">
  7957. <img src="../assets/icon/newIcons/right.png" alt="" />
  7958. </div>
  7959. <div class="hfName">{{ pz.username }}</div>
  7960. </div>
  7961. <div class="hfContent" v-html="h.content"></div>
  7962. <div class="hfBottom">
  7963. <div class="hfTime">{{ h.time }}</div>
  7964. <div
  7965. class="deleteHfItem"
  7966. @click="deleteReply(h.id)"
  7967. v-if="userid == h.userid"
  7968. >
  7969. <img src="../assets/icon/newIcons/delete.png" alt="" />
  7970. </div>
  7971. </div>
  7972. </div>
  7973. </div>
  7974. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  7975. <div class="replyInput">
  7976. <el-input v-model="reply[pzIndex]"></el-input>
  7977. </div>
  7978. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  7979. </div> -->
  7980. </div>
  7981. </div>
  7982. <div class="noPz" v-else>
  7983. <img src="../assets/icon/noPz.png" alt="" />
  7984. </div>
  7985. <div class="addPzButton">
  7986. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  7987. 添加评论
  7988. </div>
  7989. <!-- <div class="img1">
  7990. <div @click="(addPzDialog = true), (pzType = 2)">
  7991. <img src="../assets/audio.png" /><span>音频</span>
  7992. </div>
  7993. </div> -->
  7994. </div>
  7995. </div>
  7996. </div>
  7997. <div
  7998. v-if="toolDialogVisible == true"
  7999. class="toolMask"
  8000. @click="toolDialogVisible = false"
  8001. ></div>
  8002. <div v-if="toolDialogVisible == true" class="addToolCss">
  8003. <div class="toolTop">
  8004. <div style="font-weight: bold">新增工具</div>
  8005. <div @click="toolDialogVisible = false">
  8006. <img src="../assets/icon/close.png" class="toolClose" alt="" />
  8007. </div>
  8008. </div>
  8009. <div class="tool_box">
  8010. <div class="tool_type_box">
  8011. <div class="chooseWho">
  8012. <div
  8013. :class="toolType == 0 ? 'isChooseActive' : ''"
  8014. @click="(toolType = 0), $forceUpdate()"
  8015. >
  8016. 互动类
  8017. </div>
  8018. <div
  8019. :class="toolType == 1 ? 'isChooseActive' : ''"
  8020. @click="(toolType = 1), $forceUpdate()"
  8021. >
  8022. 思维类
  8023. </div>
  8024. <div
  8025. :class="toolType == 2 ? 'isChooseActive' : ''"
  8026. @click="(toolType = 2), $forceUpdate()"
  8027. >
  8028. 测评类
  8029. </div>
  8030. <div
  8031. :class="toolType == 3 ? 'isChooseActive' : ''"
  8032. @click="(toolType = 3), $forceUpdate()"
  8033. >
  8034. 编程类
  8035. </div>
  8036. <div
  8037. :class="toolType == 5 ? 'isChooseActive' : ''"
  8038. @click="(toolType = 5), $forceUpdate()"
  8039. >
  8040. 学科类
  8041. </div>
  8042. </div>
  8043. </div>
  8044. <div>
  8045. <div class="toolSort" v-if="toolType == 0">
  8046. <div
  8047. class="tool"
  8048. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8049. @click="addTools2(10)"
  8050. >
  8051. <div class="whiteBIcon">
  8052. <img src="../assets/icon/thirdToolList/time.png" alt />
  8053. <div style="margin: 5px 0">倒计时</div>
  8054. </div>
  8055. <div class="check">
  8056. <div
  8057. v-if="checktoolArray.indexOf(10) == -1"
  8058. class="noChoose"
  8059. ></div>
  8060. <div v-else class="isChoose"></div>
  8061. </div>
  8062. </div>
  8063. <div
  8064. class="tool"
  8065. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8066. @click="addTools2(65)"
  8067. >
  8068. <div class="whiteBIcon">
  8069. <img src="../assets/icon/firstToolList/pickPeople.png" alt />
  8070. <div style="margin: 5px 0">挑人</div>
  8071. </div>
  8072. <div class="check">
  8073. <div
  8074. v-if="checktoolArray.indexOf(65) == -1"
  8075. class="noChoose"
  8076. ></div>
  8077. <div v-else class="isChoose"></div>
  8078. </div>
  8079. </div>
  8080. </div>
  8081. <div class="toolSort" v-if="toolType == 1">
  8082. <div
  8083. class="tool"
  8084. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8085. @click="addTools2(7)"
  8086. >
  8087. <div class="whiteBIcon">
  8088. <img src="../assets/icon/secondToolList/mindNetwork.png" alt />
  8089. <div style="margin: 5px 0">思维网格</div>
  8090. </div>
  8091. <div class="check">
  8092. <div
  8093. v-if="checktoolArray.indexOf(7) == -1"
  8094. class="noChoose"
  8095. ></div>
  8096. <div v-else class="isChoose"></div>
  8097. </div>
  8098. </div>
  8099. <div
  8100. class="tool"
  8101. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8102. @click="addTools2(1)"
  8103. >
  8104. <div class="whiteBIcon">
  8105. <img src="../assets/icon/secondToolList/whiteBoard.png" alt />
  8106. <div style="margin: 5px 0">电子白板</div>
  8107. </div>
  8108. <div class="check">
  8109. <div
  8110. v-if="checktoolArray.indexOf(1) == -1"
  8111. class="noChoose"
  8112. ></div>
  8113. <div v-else class="isChoose"></div>
  8114. </div>
  8115. </div>
  8116. <div
  8117. class="tool"
  8118. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8119. @click="addTools2(52)"
  8120. >
  8121. <div class="whiteBIcon">
  8122. <img src="../assets/icon/fourthToolList/text.png" alt />
  8123. <div style="margin: 5px 0">文档</div>
  8124. </div>
  8125. <div class="check">
  8126. <div
  8127. v-if="checktoolArray.indexOf(52) == -1"
  8128. class="noChoose"
  8129. ></div>
  8130. <div v-else class="isChoose"></div>
  8131. </div>
  8132. </div>
  8133. <div
  8134. class="tool"
  8135. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8136. @click="addTools2(3)"
  8137. >
  8138. <div class="whiteBIcon">
  8139. <img src="../assets/icon/secondToolList/mindMapping.png" alt />
  8140. <div style="margin: 5px 0">思维导图</div>
  8141. </div>
  8142. <div class="check">
  8143. <div
  8144. v-if="checktoolArray.indexOf(3) == -1"
  8145. class="noChoose"
  8146. ></div>
  8147. <div v-else class="isChoose"></div>
  8148. </div>
  8149. </div>
  8150. <div
  8151. class="tool"
  8152. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8153. @click="addTools2(48)"
  8154. >
  8155. <div class="whiteBIcon">
  8156. <img src="../assets/icon/fourthToolList/table.png" alt />
  8157. <div style="margin: 5px 0">表格</div>
  8158. </div>
  8159. <div class="check">
  8160. <div
  8161. v-if="checktoolArray.indexOf(48) == -1"
  8162. class="noChoose"
  8163. ></div>
  8164. <div v-else class="isChoose"></div>
  8165. </div>
  8166. </div>
  8167. </div>
  8168. <div class="toolSort" v-if="toolType == 6">
  8169. <div v-show="tooC == 49">
  8170. <img
  8171. @click="addTools(tooC, toolIndex, taskCount)"
  8172. src="../assets/icon/fourthToolList/group.png"
  8173. alt
  8174. />
  8175. <div style="margin: 5px 0">学生分组</div>
  8176. </div>
  8177. </div>
  8178. <div class="toolSort" v-if="toolType == 2">
  8179. <div
  8180. class="tool"
  8181. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8182. @click="addTools2(16)"
  8183. >
  8184. <div class="whiteBIcon">
  8185. <img src="../assets/icon/thirdToolList/work.png" alt />
  8186. <div style="margin: 5px 0">作业提交</div>
  8187. </div>
  8188. <div class="check">
  8189. <div
  8190. v-if="checktoolArray.indexOf(16) == -1"
  8191. class="noChoose"
  8192. ></div>
  8193. <div v-else class="isChoose"></div>
  8194. </div>
  8195. </div>
  8196. <div
  8197. class="tool"
  8198. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8199. @click="addTools2(50)"
  8200. >
  8201. <div class="whiteBIcon">
  8202. <img src="../assets/icon/thirdToolList/plwork.png" alt />
  8203. <div style="margin: 5px 0">批量上传</div>
  8204. </div>
  8205. <div class="check">
  8206. <div
  8207. v-if="checktoolArray.indexOf(50) == -1"
  8208. class="noChoose"
  8209. ></div>
  8210. <div v-else class="isChoose"></div>
  8211. </div>
  8212. </div>
  8213. </div>
  8214. <div class="toolSort" v-if="toolType == 3">
  8215. <div
  8216. class="tool"
  8217. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8218. @click="addTools2(18)"
  8219. >
  8220. <div class="whiteBIcon">
  8221. <img src="../assets/icon/thirdToolList/trainPlatform.png" alt />
  8222. <div style="margin: 5px 0">训练平台</div>
  8223. </div>
  8224. <div class="check">
  8225. <div
  8226. v-if="checktoolArray.indexOf(18) == -1"
  8227. class="noChoose"
  8228. ></div>
  8229. <div v-else class="isChoose"></div>
  8230. </div>
  8231. </div>
  8232. <div
  8233. class="tool"
  8234. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8235. @click="addTools2(21)"
  8236. >
  8237. <div class="whiteBIcon">
  8238. <img src="../assets/icon/fourthToolList/program.png" alt />
  8239. <div style="margin: 5px 0">AIoT Blockly</div>
  8240. </div>
  8241. <div class="check">
  8242. <div
  8243. v-if="checktoolArray.indexOf(21) == -1"
  8244. class="noChoose"
  8245. ></div>
  8246. <div v-else class="isChoose"></div>
  8247. </div>
  8248. </div>
  8249. <div
  8250. class="tool"
  8251. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8252. @click="addTools2(23)"
  8253. >
  8254. <div class="whiteBIcon">
  8255. <img
  8256. src="../assets/icon/fourthToolList/Pythonprogram.png"
  8257. alt
  8258. />
  8259. <div style="margin: 5px 0">AI Python</div>
  8260. </div>
  8261. <div class="check">
  8262. <div
  8263. v-if="checktoolArray.indexOf(23) == -1"
  8264. class="noChoose"
  8265. ></div>
  8266. <div v-else class="isChoose"></div>
  8267. </div>
  8268. </div>
  8269. <div
  8270. class="tool"
  8271. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8272. @click="addTools2(24)"
  8273. >
  8274. <div class="whiteBIcon">
  8275. <img src="../assets/icon/fourthToolList/AIprogram.png" alt />
  8276. <div style="margin: 5px 0">AI Blockly</div>
  8277. </div>
  8278. <div class="check">
  8279. <div
  8280. v-if="checktoolArray.indexOf(24) == -1"
  8281. class="noChoose"
  8282. ></div>
  8283. <div v-else class="isChoose"></div>
  8284. </div>
  8285. </div>
  8286. <div
  8287. class="tool"
  8288. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8289. @click="addTools2(32)"
  8290. >
  8291. <div class="whiteBIcon">
  8292. <img src="../assets/icon/thirdToolList/code.png" alt />
  8293. <div style="margin: 5px 0">源码编辑</div>
  8294. </div>
  8295. <div class="check">
  8296. <div
  8297. v-if="checktoolArray.indexOf(32) == -1"
  8298. class="noChoose"
  8299. ></div>
  8300. <div v-else class="isChoose"></div>
  8301. </div>
  8302. </div>
  8303. <div
  8304. class="tool"
  8305. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8306. @click="addTools2(57)"
  8307. >
  8308. <div class="whiteBIcon">
  8309. <img src="../assets/icon/fourthToolList/cocopi.png" alt />
  8310. <div style="margin: 5px 0">CocoPi</div>
  8311. </div>
  8312. <div class="check">
  8313. <div
  8314. v-if="checktoolArray.indexOf(57) == -1"
  8315. class="noChoose"
  8316. ></div>
  8317. <div v-else class="isChoose"></div>
  8318. </div>
  8319. </div>
  8320. <div
  8321. class="tool"
  8322. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8323. @click="addTools2(63)"
  8324. >
  8325. <div class="whiteBIcon">
  8326. <img src="../assets/icon/fourthToolList/Wood.png" alt />
  8327. <div style="margin: 5px 0">海龟编程</div>
  8328. </div>
  8329. <div class="check">
  8330. <div
  8331. v-if="checktoolArray.indexOf(63) == -1"
  8332. class="noChoose"
  8333. ></div>
  8334. <div v-else class="isChoose"></div>
  8335. </div>
  8336. </div>
  8337. </div>
  8338. <div class="toolSort" v-if="toolType == 7">
  8339. <div
  8340. class="tool"
  8341. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8342. @click="addTools2(40)"
  8343. >
  8344. <div class="whiteBIcon">
  8345. <img src="../assets/icon/secondToolList/eval.png" alt />
  8346. <div style="margin: 5px 0">个人评价</div>
  8347. </div>
  8348. <div class="check">
  8349. <div
  8350. v-if="checktoolArray.indexOf(40) == -1"
  8351. class="noChoose"
  8352. ></div>
  8353. <div v-else class="isChoose"></div>
  8354. </div>
  8355. </div>
  8356. </div>
  8357. <div class="toolSort" v-if="toolType == 5">
  8358. <div
  8359. class="tool"
  8360. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8361. @click="addTools2(28)"
  8362. >
  8363. <div class="whiteBIcon">
  8364. <img src="../assets/icon/secondToolList/translation.png" alt />
  8365. <div style="margin: 5px 0">翻译</div>
  8366. </div>
  8367. <div class="check">
  8368. <div
  8369. v-if="checktoolArray.indexOf(28) == -1"
  8370. class="noChoose"
  8371. ></div>
  8372. <div v-else class="isChoose"></div>
  8373. </div>
  8374. </div>
  8375. <div
  8376. class="tool"
  8377. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8378. @click="addTools2(31)"
  8379. >
  8380. <div class="whiteBIcon">
  8381. <img src="../assets/icon/secondToolList/networkPanel.png" alt />
  8382. <div style="margin: 5px 0">数字画板</div>
  8383. </div>
  8384. <div class="check">
  8385. <div
  8386. v-if="checktoolArray.indexOf(31) == -1"
  8387. class="noChoose"
  8388. ></div>
  8389. <div v-else class="isChoose"></div>
  8390. </div>
  8391. </div>
  8392. <div
  8393. class="tool"
  8394. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8395. @click="addTools2(39)"
  8396. >
  8397. <div class="whiteBIcon">
  8398. <img src="../assets/icon/secondToolList/GeoGebra.png" alt />
  8399. <div style="margin: 5px 0">GeoGebra</div>
  8400. </div>
  8401. <div class="check">
  8402. <div
  8403. v-if="checktoolArray.indexOf(39) == -1"
  8404. class="noChoose"
  8405. ></div>
  8406. <div v-else class="isChoose"></div>
  8407. </div>
  8408. </div>
  8409. <div
  8410. class="tool"
  8411. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8412. @click="addTools2(66)"
  8413. >
  8414. <div class="whiteBIcon">
  8415. <img src="../assets/icon/secondToolList/formulaEdi.png" alt />
  8416. <div style="margin: 5px 0">公式编辑</div>
  8417. </div>
  8418. <div class="check">
  8419. <div
  8420. v-if="checktoolArray.indexOf(66) == -1"
  8421. class="noChoose"
  8422. ></div>
  8423. <div v-else class="isChoose"></div>
  8424. </div>
  8425. </div>
  8426. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8427. <div class="whiteBIcon" @click="addTools2(67)">
  8428. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  8429. <div style="margin: 5px 0">分子结构</div>
  8430. </div>
  8431. <div class="check" @click="addTools2(67)">
  8432. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8433. <div v-else class="isChoose"></div>
  8434. </div>
  8435. </div> -->
  8436. <div
  8437. class="tool"
  8438. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8439. @click="addTools2(68)"
  8440. >
  8441. <div class="whiteBIcon">
  8442. <img src="../assets/icon/secondToolList/timeAxis.png" alt />
  8443. <div style="margin: 5px 0">时间轴</div>
  8444. </div>
  8445. <div class="check">
  8446. <div
  8447. v-if="checktoolArray.indexOf(68) == -1"
  8448. class="noChoose"
  8449. ></div>
  8450. <div v-else class="isChoose"></div>
  8451. </div>
  8452. </div>
  8453. <!-- <div
  8454. class="tool"
  8455. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8456. @click="addTools2(69)"
  8457. >
  8458. <div class="whiteBIcon">
  8459. <img src="../assets/icon/secondToolList/english.png" alt />
  8460. <div style="margin: 5px 0">英语写作</div>
  8461. </div>
  8462. <div class="check">
  8463. <div
  8464. v-if="checktoolArray.indexOf(69) == -1"
  8465. class="noChoose"
  8466. ></div>
  8467. <div v-else class="isChoose"></div>
  8468. </div>
  8469. </div> -->
  8470. </div>
  8471. <div class="toolSort" v-if="toolType == 4">
  8472. <div
  8473. class="tool"
  8474. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8475. @click="addTools2(26)"
  8476. >
  8477. <div class="whiteBIcon">
  8478. <img src="../assets/icon/thirdToolList/courseDesign.png" alt />
  8479. <div style="margin: 5px 0">课程设计</div>
  8480. </div>
  8481. <div class="check">
  8482. <div
  8483. v-if="checktoolArray.indexOf(26) == -1"
  8484. class="noChoose"
  8485. ></div>
  8486. <div v-else class="isChoose"></div>
  8487. </div>
  8488. </div>
  8489. <div
  8490. class="tool"
  8491. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8492. @click="addTools2(25)"
  8493. >
  8494. <div class="whiteBIcon">
  8495. <img src="../assets/icon/thirdToolList/evalua.png" alt />
  8496. <div style="margin: 5px 0">目标管理</div>
  8497. </div>
  8498. <div class="check">
  8499. <div
  8500. v-if="checktoolArray.indexOf(25) == -1"
  8501. class="noChoose"
  8502. ></div>
  8503. <div v-else class="isChoose"></div>
  8504. </div>
  8505. </div>
  8506. </div>
  8507. </div>
  8508. </div>
  8509. <span
  8510. slot="footer"
  8511. class="dialog-footer"
  8512. style="display: block; text-align: center; padding: 0 0 10px 0"
  8513. >
  8514. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8515. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8516. </span>
  8517. </div>
  8518. <div
  8519. v-if="replyDialogVisible == true"
  8520. class="addDialogCss"
  8521. v-el-drag-dialog
  8522. >
  8523. <div class="pzTop">
  8524. <div class="teacherPz">
  8525. <div class="teacherPzImg">
  8526. <img src="../assets/icon/teacherPz.png" alt="" />
  8527. </div>
  8528. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8529. </div>
  8530. <div @click="replyDialogVisible = false">
  8531. <img src="../assets/close1.png" class="pzClose" alt="" />
  8532. </div>
  8533. </div>
  8534. <div class="addPzBox">
  8535. <!-- <div class="addPzCheck">
  8536. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8537. >文本</span
  8538. >
  8539. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8540. >音频</span
  8541. >
  8542. </div> -->
  8543. <div style="height: calc(100% - 50px)">
  8544. <editor-bar
  8545. class="binfo_input pzConText"
  8546. style="width: 100% !important; margin: 0 auto"
  8547. placeholder="请输入回复描述"
  8548. v-model="reply"
  8549. @change="change"
  8550. ></editor-bar>
  8551. </div>
  8552. <div class="addTextCss" @click="addHf">确定</div>
  8553. </div>
  8554. </div>
  8555. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8556. <div class="pzTop">
  8557. <div class="teacherPz">
  8558. <div class="teacherPzImg">
  8559. <img src="../assets/icon/teacherPz.png" alt="" />
  8560. </div>
  8561. <div style="margin-left: 10px; height: 25px">教师评论</div>
  8562. </div>
  8563. <div @click="addPzDialog = false">
  8564. <img src="../assets/close1.png" class="pzClose" alt="" />
  8565. </div>
  8566. </div>
  8567. <div class="addPzBox">
  8568. <div class="addPzCheck">
  8569. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8570. >文本</span
  8571. >
  8572. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8573. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8574. >音频</span
  8575. >
  8576. </div>
  8577. <div style="height: calc(100% - 95px)">
  8578. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8579. v-if="pzType == 1"></textarea> -->
  8580. <editor-bar
  8581. class="binfo_input pzConText"
  8582. style="width: 100% !important"
  8583. placeholder="请输入任务描述"
  8584. v-model="pzConText"
  8585. @change="change"
  8586. v-if="pzType == 1"
  8587. ></editor-bar>
  8588. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8589. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8590. <div @click="addImg($event)">
  8591. <el-button type="primary">上传图片</el-button>
  8592. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8593. @change="beforeUpload1($event, 4)" />
  8594. </div>
  8595. </div> -->
  8596. </div>
  8597. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8598. 确定
  8599. </div>
  8600. </div>
  8601. </div>
  8602. <div v-if="proVisible" class="mask">
  8603. <div class="progressBox">
  8604. <!-- <div id="closePro" class="closeCss">
  8605. <img src="../assets/icon/close.png" alt />
  8606. </div> -->
  8607. <div class="lbox">
  8608. <img src="../assets/loading.gif" />上传中,请稍后
  8609. </div>
  8610. <div style="margin-bottom: 10px">
  8611. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8612. </div>
  8613. <el-progress
  8614. :text-inside="true"
  8615. :stroke-width="20"
  8616. :percentage="progress"
  8617. style="width: 80%"
  8618. ></el-progress>
  8619. </div>
  8620. </div>
  8621. <div v-if="proVisible2" class="mask">
  8622. <div class="progressBox">
  8623. <div class="lbox">
  8624. <img src="../assets/loading.gif" />上传中,请稍后
  8625. </div>
  8626. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8627. </div>
  8628. </div>
  8629. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8630. <img width="100%" :src="dialogImageUrl" alt />
  8631. </el-dialog>
  8632. <el-dialog
  8633. :title="noteName != '' ? noteName : '查看问卷'"
  8634. :visible.sync="dialogVisible5"
  8635. :append-to-body="true"
  8636. width="1000px"
  8637. :before-close="handleClose"
  8638. class="dialog_diy dialog_diy3"
  8639. >
  8640. <div>
  8641. <div
  8642. class="a_add_title"
  8643. style="
  8644. display: flex;
  8645. flex-direction: row;
  8646. align-items: center;
  8647. justify-content: center;
  8648. "
  8649. >
  8650. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8651. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8652. </div>
  8653. <div class="a_addBox">
  8654. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8655. 题目内容
  8656. </div>
  8657. <div
  8658. class="a_add_box"
  8659. v-for="(item1, index1) in askJson.askCount"
  8660. :key="index1"
  8661. >
  8662. <div class="a_add_head">
  8663. <div style="display: flex">
  8664. <span class="askIndex"> {{ index1 + 1 }}</span>
  8665. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8666. </div>
  8667. <img
  8668. v-if="askJson.askJson[index1].img"
  8669. :src="askJson.askJson[index1].img"
  8670. style="height: 300px; margin-top: 10px; max-width: 100%"
  8671. />
  8672. </div>
  8673. <div class="a_add_body">
  8674. <div class="a_add_input">
  8675. <el-radio-group
  8676. v-model="radio[index1]"
  8677. v-if="
  8678. askJson.askJson[index1].type == '1' ||
  8679. !askJson.askJson[index1].type
  8680. "
  8681. >
  8682. <el-radio
  8683. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8684. .checkList"
  8685. :key="checkIndex"
  8686. :label="checkIndex"
  8687. :disabled="isAnswer"
  8688. class="redioStyle"
  8689. ><span v-html="item2"></span
  8690. ></el-radio>
  8691. </el-radio-group>
  8692. <el-checkbox-group
  8693. v-model="radio[index1]"
  8694. v-if="askJson.askJson[index1].type == '2'"
  8695. >
  8696. <el-checkbox
  8697. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8698. .checkList"
  8699. :key="checkIndex1"
  8700. :label="checkIndex1"
  8701. :disabled="isAnswer"
  8702. class="redioStyle"
  8703. ><span v-html="item2"></span>
  8704. </el-checkbox>
  8705. </el-checkbox-group>
  8706. </div>
  8707. </div>
  8708. </div>
  8709. </div>
  8710. </div>
  8711. <span slot="footer" class="dialog-footer">
  8712. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8713. >取 消</el-button
  8714. >
  8715. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8716. >确 定</el-button
  8717. >
  8718. </span>
  8719. </el-dialog>
  8720. <el-dialog
  8721. :title="noteName != '' ? noteName : '查看问卷'"
  8722. :visible.sync="dialogVisible5Teacher"
  8723. :append-to-body="true"
  8724. width="1000px"
  8725. :before-close="handleClose"
  8726. class="dialog_diy dialog_diy3"
  8727. >
  8728. <div>
  8729. <div class="w_name">
  8730. 学生姓名:<span>{{ sStudent.student }}</span>
  8731. </div>
  8732. <div
  8733. class="a_add_title"
  8734. style="
  8735. display: flex;
  8736. flex-direction: row;
  8737. align-items: center;
  8738. justify-content: center;
  8739. "
  8740. >
  8741. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8742. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8743. </div>
  8744. <div class="a_addBox">
  8745. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8746. 题目内容
  8747. </div>
  8748. <div
  8749. class="a_add_box"
  8750. v-for="(item1, index1) in askJson.askCount"
  8751. :key="index1"
  8752. >
  8753. <div class="a_add_head">
  8754. <div style="display: flex">
  8755. <span class="askIndex">{{ index1 + 1 }}</span>
  8756. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8757. </div>
  8758. <img
  8759. v-if="askJson.askJson[index1].img"
  8760. :src="askJson.askJson[index1].img"
  8761. style="height: 300px; margin-top: 10px; max-width: 100%"
  8762. />
  8763. </div>
  8764. <div class="a_add_body">
  8765. <div class="a_add_input">
  8766. <el-radio-group
  8767. v-model="radio[index1]"
  8768. v-if="
  8769. askJson.askJson[index1].type == '1' ||
  8770. !askJson.askJson[index1].type
  8771. "
  8772. >
  8773. <el-radio
  8774. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8775. .checkList"
  8776. :key="checkIndex"
  8777. :label="checkIndex"
  8778. :disabled="isAnswer"
  8779. class="redioStyle"
  8780. ><span v-html="item2"></span
  8781. ></el-radio>
  8782. </el-radio-group>
  8783. <el-checkbox-group
  8784. v-model="radio[index1]"
  8785. v-if="askJson.askJson[index1].type == '2'"
  8786. >
  8787. <el-checkbox
  8788. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8789. .checkList"
  8790. :key="checkIndex1"
  8791. :label="checkIndex1"
  8792. :disabled="isAnswer"
  8793. class="redioStyle"
  8794. ><span v-html="item2"></span>
  8795. </el-checkbox>
  8796. </el-checkbox-group>
  8797. </div>
  8798. </div>
  8799. </div>
  8800. </div>
  8801. </div>
  8802. <span slot="footer" class="dialog-footer">
  8803. <el-button
  8804. @click="dialogVisible5Teacher = false"
  8805. v-show="noteName == ''"
  8806. >取 消</el-button
  8807. >
  8808. <el-button
  8809. type="primary"
  8810. @click="addStudentAskTeacher"
  8811. v-show="noteName == ''"
  8812. >确 定</el-button
  8813. >
  8814. </span>
  8815. </el-dialog>
  8816. <el-dialog
  8817. :title="noteName != '' ? noteName : '查看选择题'"
  8818. :visible.sync="dialogVisibleChoice"
  8819. :append-to-body="true"
  8820. width="1000px"
  8821. :before-close="handleClose"
  8822. class="dialog_diy dialog_diy3"
  8823. >
  8824. <div>
  8825. <!-- <div class="a_add_title" style="
  8826. display: flex;
  8827. flex-direction: row;
  8828. align-items: center;
  8829. justify-content: center;
  8830. ">
  8831. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8832. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  8833. </div> -->
  8834. <div class="a_addBox">
  8835. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8836. 题目内容
  8837. </div>
  8838. <div
  8839. class="a_add_box"
  8840. v-for="(item1, index1) in testJson.testCount"
  8841. :key="index1"
  8842. >
  8843. <div class="a_add_head">
  8844. <div style="display: flex">
  8845. <span class="askIndex">{{ index1 + 1 }}</span>
  8846. <div
  8847. v-if="testJson.testJson[index1].type == '1'"
  8848. style="margin-right: 5px; min-width: 70px"
  8849. >
  8850. (单选题)
  8851. </div>
  8852. <div
  8853. v-if="testJson.testJson[index1].type == '2'"
  8854. style="margin-right: 5px; min-width: 70px"
  8855. >
  8856. (多选题)
  8857. </div>
  8858. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  8859. </div>
  8860. <img
  8861. v-if="testJson.testJson[index1].img"
  8862. :src="testJson.testJson[index1].img"
  8863. style="height: 300px; margin-top: 10px; max-width: 100%"
  8864. />
  8865. </div>
  8866. <div
  8867. class="timuImgBox"
  8868. v-if="
  8869. testJson.testJson[index1].timuList &&
  8870. testJson.testJson[index1].timuList.length
  8871. "
  8872. >
  8873. <div
  8874. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  8875. :key="tIndex"
  8876. class="timuImg"
  8877. @click.stop="previewImg(timg.src)"
  8878. >
  8879. <img :src="timg.src" alt="" />
  8880. </div>
  8881. </div>
  8882. <div class="a_add_body">
  8883. <div class="a_add_input">
  8884. <el-radio-group
  8885. v-model="radio[index1]"
  8886. v-if="testJson.testJson[index1].type == '1'"
  8887. >
  8888. <div class="radioBox">
  8889. <el-radio
  8890. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8891. .checkList"
  8892. :key="checkIndex"
  8893. :label="checkIndex"
  8894. :disabled="isAnswer"
  8895. class="redioStyle"
  8896. >
  8897. <div
  8898. style="margin-right: 10px"
  8899. v-if="item2 && item2.imgType && item2.imgType == 1"
  8900. >
  8901. <div class="inImg" @click.stop="previewImg(item2.src)">
  8902. <img :src="item2.src" alt="" />
  8903. </div>
  8904. </div>
  8905. <span v-else v-html="item2"></span>
  8906. </el-radio>
  8907. </div>
  8908. </el-radio-group>
  8909. <el-checkbox-group
  8910. v-model="radio[index1]"
  8911. v-if="testJson.testJson[index1].type == '2'"
  8912. >
  8913. <div class="radioBox">
  8914. <el-checkbox
  8915. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8916. .checkList"
  8917. :key="checkIndex"
  8918. :label="checkIndex"
  8919. :disabled="isAnswer"
  8920. class="redioStyle"
  8921. >
  8922. <div
  8923. style="margin-right: 10px"
  8924. v-if="item2 && item2.imgType && item2.imgType == 1"
  8925. >
  8926. <div class="inImg" @click.stop="previewImg(item2.src)">
  8927. <img :src="item2.src" alt="" />
  8928. </div>
  8929. </div>
  8930. <span v-else v-html="item2"></span>
  8931. </el-checkbox>
  8932. </div>
  8933. </el-checkbox-group>
  8934. </div>
  8935. </div>
  8936. </div>
  8937. </div>
  8938. </div>
  8939. <span slot="footer" class="dialog-footer">
  8940. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  8941. >取 消</el-button
  8942. >
  8943. <el-button
  8944. type="primary"
  8945. @click="addStudentTest"
  8946. v-show="noteName == ''"
  8947. >确 定</el-button
  8948. >
  8949. </span>
  8950. </el-dialog>
  8951. <el-dialog
  8952. :title="noteName != '' ? noteName : '查看选择题'"
  8953. :visible.sync="dialogVisibleChoiceTeacher"
  8954. :append-to-body="true"
  8955. width="1000px"
  8956. :before-close="handleClose"
  8957. class="dialog_diy dialog_diy3"
  8958. >
  8959. <div>
  8960. <div class="w_name">
  8961. 学生姓名:<span>{{ sStudent.student }}</span>
  8962. </div>
  8963. <div class="a_addBox">
  8964. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8965. 题目内容
  8966. </div>
  8967. <div
  8968. class="a_add_box"
  8969. v-for="(item1, index1) in testJson.testCount"
  8970. :key="index1"
  8971. >
  8972. <div class="a_add_head">
  8973. <div style="display: flex">
  8974. <span class="askIndex">{{ index1 + 1 }}</span>
  8975. <div
  8976. v-if="testJson.testJson[index1].type == '1'"
  8977. style="margin-right: 5px; min-width: 70px"
  8978. >
  8979. (单选题)
  8980. </div>
  8981. <div
  8982. v-if="testJson.testJson[index1].type == '2'"
  8983. style="margin-right: 5px; min-width: 70px"
  8984. >
  8985. (多选题)
  8986. </div>
  8987. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  8988. </div>
  8989. <img
  8990. v-if="testJson.testJson[index1].img"
  8991. :src="testJson.testJson[index1].img"
  8992. style="height: 300px; margin-top: 10px; max-width: 100%"
  8993. />
  8994. </div>
  8995. <div
  8996. class="timuImgBox"
  8997. v-if="
  8998. testJson.testJson[index1].timuList &&
  8999. testJson.testJson[index1].timuList.length
  9000. "
  9001. >
  9002. <div
  9003. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9004. :key="tIndex"
  9005. class="timuImg"
  9006. @click.stop="previewImg(timg.src)"
  9007. >
  9008. <img :src="timg.src" alt="" />
  9009. </div>
  9010. </div>
  9011. <div class="a_add_body">
  9012. <div class="a_add_input">
  9013. <el-radio-group
  9014. v-model="radio[index1]"
  9015. v-if="testJson.testJson[index1].type == '1'"
  9016. >
  9017. <div class="radioBox">
  9018. <el-radio
  9019. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9020. .checkList"
  9021. :key="checkIndex"
  9022. :label="checkIndex"
  9023. :disabled="isAnswer"
  9024. class="redioStyle"
  9025. >
  9026. <div
  9027. style="margin-right: 10px"
  9028. v-if="item2 && item2.imgType && item2.imgType == 1"
  9029. >
  9030. <div class="inImg" @click.stop="previewImg(item2.src)">
  9031. <img :src="item2.src" alt="" />
  9032. </div>
  9033. </div>
  9034. <span v-else v-html="item2"></span>
  9035. </el-radio>
  9036. </div>
  9037. </el-radio-group>
  9038. <el-checkbox-group
  9039. v-model="radio[index1]"
  9040. v-if="testJson.testJson[index1].type == '2'"
  9041. >
  9042. <div class="radioBox">
  9043. <el-checkbox
  9044. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9045. .checkList"
  9046. :key="checkIndex"
  9047. :label="checkIndex"
  9048. :disabled="isAnswer"
  9049. class="redioStyle"
  9050. >
  9051. <div
  9052. style="margin-right: 10px"
  9053. v-if="item2 && item2.imgType && item2.imgType == 1"
  9054. >
  9055. <div class="inImg" @click.stop="previewImg(item2.src)">
  9056. <img :src="item2.src" alt="" />
  9057. </div>
  9058. </div>
  9059. <span v-else v-html="item2"></span>
  9060. </el-checkbox>
  9061. </div>
  9062. </el-checkbox-group>
  9063. </div>
  9064. </div>
  9065. </div>
  9066. </div>
  9067. </div>
  9068. <span slot="footer" class="dialog-footer">
  9069. <el-button
  9070. @click="dialogVisibleChoiceTeacher = false"
  9071. v-show="noteName == ''"
  9072. >取 消</el-button
  9073. >
  9074. <el-button
  9075. type="primary"
  9076. @click="addStudentTestTeacher"
  9077. v-show="noteName == ''"
  9078. >确 定</el-button
  9079. >
  9080. </span>
  9081. </el-dialog>
  9082. <el-dialog
  9083. title="查看富文本"
  9084. :visible.sync="dialogVisible1"
  9085. :append-to-body="true"
  9086. width="500px"
  9087. :before-close="handleClose"
  9088. class="dialog_diy textCss"
  9089. >
  9090. <el-form style="font-size: 20px">
  9091. <el-form-item label="文本标题" class="textTitle">
  9092. <div style="font-size: 20px">{{ text.name }}</div>
  9093. </el-form-item>
  9094. <div>富文本内容</div>
  9095. <div
  9096. v-html="text.url"
  9097. style="font-size: 18px; padding: 40px 0 0 0"
  9098. ></div>
  9099. </el-form>
  9100. <span slot="footer" class="dialog-footer">
  9101. <el-button type="primary" @click="dialogVisible1 = false"
  9102. >确定</el-button
  9103. >
  9104. </span>
  9105. </el-dialog>
  9106. <el-dialog
  9107. title="文件预览"
  9108. :visible.sync="dialogVisible3"
  9109. width="50%"
  9110. :before-close="handleClose"
  9111. class="dialog_diy"
  9112. :class="{ fullStyle: full }"
  9113. >
  9114. <div slot="title" class="header-title">
  9115. <div style="color: #fff">文件预览</div>
  9116. <div style="position: absolute; top: 19px; right: 50px">
  9117. <img
  9118. src="../assets/full.png"
  9119. style="height: 16px; cursor: pointer"
  9120. alt=""
  9121. @click="fullTools"
  9122. />
  9123. </div>
  9124. </div>
  9125. <pdf
  9126. v-if="showPDF"
  9127. :pdfUrl="pptImgUrl"
  9128. style="width: 100%; height: 520px; overflow: auto"
  9129. :class="{ fullStyle: full }"
  9130. ></pdf>
  9131. <iframe
  9132. v-else
  9133. :src="pptImgUrl"
  9134. frameborder="0"
  9135. width="100%"
  9136. height="600"
  9137. :class="{ fullStyle: full }"
  9138. ></iframe>
  9139. </el-dialog>
  9140. <el-dialog
  9141. title="文件预览"
  9142. :visible.sync="dialogVisible6"
  9143. width="50%"
  9144. :before-close="handleClose"
  9145. class="dialog_diy"
  9146. >
  9147. <iframe
  9148. :src="pptImgUrl1"
  9149. frameborder="0"
  9150. width="100%"
  9151. height="600"
  9152. ></iframe>
  9153. </el-dialog>
  9154. <el-dialog
  9155. title="提示"
  9156. :visible.sync="dialogVisible4"
  9157. :append-to-body="true"
  9158. width="800px"
  9159. :before-close="handleClose"
  9160. class="dialog_diy notice"
  9161. >
  9162. <div>此功能暂未开放!</div>
  9163. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9164. </el-dialog>
  9165. <el-dialog
  9166. title="问答"
  9167. :visible.sync="answerDialogVisible"
  9168. :append-to-body="true"
  9169. width="800px"
  9170. :before-close="handleClose"
  9171. class="dialog_diy"
  9172. >
  9173. <div>
  9174. <div
  9175. style="
  9176. display: flex;
  9177. flex-wrap: nowrap;
  9178. flex-direction: column;
  9179. position: relative;
  9180. "
  9181. >
  9182. <div class="queTop" style="padding: 20px 0 20px 0">
  9183. <div class="question">
  9184. <img src="../assets/icon/question.png" alt />
  9185. </div>
  9186. <div class="queTitle">
  9187. <div style="width: 90px; min-width: 90px">提问:</div>
  9188. <div>{{ answerQ }}</div>
  9189. </div>
  9190. </div>
  9191. <div class="ediBottom">
  9192. <textarea
  9193. rows="6"
  9194. class="binfo_input"
  9195. cols
  9196. style="width: 95%; height: 120px"
  9197. v-model="questionAnswer"
  9198. ></textarea>
  9199. </div>
  9200. </div>
  9201. </div>
  9202. <div slot="footer">
  9203. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9204. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9205. </div>
  9206. </el-dialog>
  9207. <el-dialog
  9208. title="问答"
  9209. :visible.sync="answerDialogVisibleTeacher"
  9210. :append-to-body="true"
  9211. width="800px"
  9212. :before-close="handleClose"
  9213. class="dialog_diy"
  9214. >
  9215. <div>
  9216. <div class="w_name">
  9217. 学生姓名:<span>{{ sStudent.student }}</span>
  9218. </div>
  9219. <div
  9220. style="
  9221. display: flex;
  9222. flex-wrap: nowrap;
  9223. flex-direction: column;
  9224. position: relative;
  9225. "
  9226. >
  9227. <div class="queTop" style="padding: 20px 0 20px 0">
  9228. <div class="question">
  9229. <img src="../assets/icon/question.png" alt />
  9230. </div>
  9231. <div class="queTitle">
  9232. <div style="width: 90px; min-width: 90px">提问:</div>
  9233. <div>{{ answerQ }}</div>
  9234. </div>
  9235. </div>
  9236. <div class="ediBottom">
  9237. <textarea
  9238. rows="6"
  9239. class="binfo_input"
  9240. cols
  9241. style="width: 95%; height: 120px"
  9242. v-model="questionAnswer"
  9243. ></textarea>
  9244. </div>
  9245. </div>
  9246. </div>
  9247. <div slot="footer">
  9248. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9249. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9250. </div>
  9251. </el-dialog>
  9252. <el-dialog
  9253. title="倒计时"
  9254. :visible.sync="timeDialogVisible"
  9255. :append-to-body="true"
  9256. width="800px"
  9257. :before-close="handleClose"
  9258. class="dialog_diy"
  9259. >
  9260. <div>
  9261. <div style="margin-bottom: 20px; color: #999">
  9262. 提示:点击“+”或“-”修改倒计时时长。
  9263. </div>
  9264. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9265. </div>
  9266. <div slot="footer">
  9267. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9268. </div>
  9269. </el-dialog>
  9270. <el-dialog
  9271. title="权限设置"
  9272. :visible.sync="juriVisible"
  9273. :append-to-body="true"
  9274. width="400px"
  9275. :before-close="handleClose"
  9276. class="dialog_diy"
  9277. >
  9278. <div>
  9279. <div class="open_box">
  9280. <div class="switch_box">
  9281. <span>允许学生查看所有作业</span>
  9282. <el-switch
  9283. v-model="sIsOpen"
  9284. active-text=""
  9285. class="switchCss"
  9286. @change="updateSLook"
  9287. ></el-switch>
  9288. </div>
  9289. <div
  9290. class="switch_box"
  9291. v-if="
  9292. courseDetail.userid == userid ||
  9293. (courseDetail.course_teacher &&
  9294. courseDetail.course_teacher.indexOf(userid) != -1)
  9295. "
  9296. >
  9297. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9298. <span>禁止学生查看所有阶段</span>
  9299. <el-switch
  9300. v-model="IsLookOpen"
  9301. active-text=""
  9302. class="switchCss"
  9303. @change="updateLookOpen"
  9304. ></el-switch>
  9305. </div>
  9306. <div class="switch_box" v-if="courseDetail.userid == userid">
  9307. <span>开启跟随模式</span>
  9308. <el-switch
  9309. v-model="IsFollow"
  9310. active-text=""
  9311. class="switchCss"
  9312. @change="updateFollow"
  9313. ></el-switch>
  9314. </div>
  9315. </div>
  9316. </div>
  9317. <div slot="footer">
  9318. <el-button
  9319. style="background: #409efe; color: #fff"
  9320. @click="juriVisible = false"
  9321. >关 闭</el-button
  9322. >
  9323. </div>
  9324. </el-dialog>
  9325. <el-dialog
  9326. title="查看视频"
  9327. :visible.sync="videoVisible"
  9328. :append-to-body="true"
  9329. width="1000px"
  9330. :before-close="handleClose"
  9331. class="dialog_diy1"
  9332. >
  9333. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9334. <video-player
  9335. class="video-player vjs-custom-skin"
  9336. :playsinline="true"
  9337. :options="videoDetail"
  9338. @play="onPlayerPlay($event)"
  9339. style="width: 100%; height: 100%"
  9340. ></video-player>
  9341. </div>
  9342. <div slot="footer">
  9343. <el-button
  9344. style="background: #409efe; color: #fff"
  9345. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9346. >
  9347. 关 闭</el-button
  9348. >
  9349. </div>
  9350. </el-dialog>
  9351. <el-dialog
  9352. title="查看详情"
  9353. :visible.sync="commentDialogVisible"
  9354. :append-to-body="true"
  9355. width="800px"
  9356. :before-close="handleClose"
  9357. class="dialog_diy"
  9358. >
  9359. <div class="commentTop">
  9360. <div class="studentDetail">
  9361. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  9362. <div class="nameAndTime">
  9363. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9364. <div>{{ commentDetail.time }}</div>
  9365. </div>
  9366. <div
  9367. class="returnBtn"
  9368. style="margin-left: auto; width: 80px"
  9369. v-if="
  9370. commentDetail.works &&
  9371. commentDetail.type == 0 &&
  9372. (tType == 1 || tType == 4)
  9373. "
  9374. @click="
  9375. showPicturePaint(
  9376. commentDetail.img ? commentDetail.img : commentDetail.works
  9377. )
  9378. "
  9379. >
  9380. 教师批注
  9381. </div>
  9382. </div>
  9383. <div
  9384. class="worksAnswer"
  9385. v-if="commentDetail.works && commentDetail.type == 2"
  9386. >
  9387. {{ JSON.parse(commentDetail.works)[0].answer }}
  9388. </div>
  9389. <div
  9390. class="worksAnswer"
  9391. v-if="commentDetail.works && commentDetail.type == 1"
  9392. >
  9393. <img
  9394. src="../assets/teacherWork.png"
  9395. v-if="commentDetail.ateacher"
  9396. class="w_teachert"
  9397. />
  9398. <pdf
  9399. v-if="showPDF"
  9400. :pdfUrl="pptImgUrl"
  9401. style="width: 100%; height: 520px; overflow: auto"
  9402. :class="{ fullStyle: full }"
  9403. ></pdf>
  9404. <iframe
  9405. v-else
  9406. :src="pptImgUrl"
  9407. frameborder="0"
  9408. width="100%"
  9409. height="600"
  9410. :class="{ fullStyle: full }"
  9411. ></iframe>
  9412. </div>
  9413. <div
  9414. class="worksAnswer"
  9415. v-if="commentDetail.works && commentDetail.type == 0"
  9416. >
  9417. <img
  9418. src="../assets/teacherWork.png"
  9419. v-if="commentDetail.ateacher"
  9420. class="w_teachert"
  9421. style="right: 105px"
  9422. />
  9423. <img
  9424. :src="commentDetail.works"
  9425. alt=""
  9426. @click="previewImg(commentDetail.works)"
  9427. />
  9428. </div>
  9429. <div
  9430. class="worksAnswer"
  9431. v-if="commentDetail.works && commentDetail.type == 3"
  9432. >
  9433. <img
  9434. src="../assets/teacherWork.png"
  9435. v-if="commentDetail.ateacher"
  9436. class="w_teachert"
  9437. />
  9438. <video-player
  9439. class="video-player vjs-custom-skin"
  9440. :playsinline="true"
  9441. :options="videoDetail"
  9442. @play="onPlayerPlay($event)"
  9443. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9444. ></video-player>
  9445. </div>
  9446. <div
  9447. class="worksAnswer"
  9448. v-if="commentDetail.works && commentDetail.type == 10"
  9449. >
  9450. <div class="cont" v-html="commentDetail.works.text"></div>
  9451. </div>
  9452. <div
  9453. class="worksAnswer codeFileBox"
  9454. v-if="commentDetail.works && commentDetail.type == 12"
  9455. @click="downloadFile(commentDetail.works)"
  9456. >
  9457. <img src="../assets/icon/codeFile.png" />
  9458. <div>点击下载文件</div>
  9459. </div>
  9460. <div
  9461. class="worksAnswer codeFileBox"
  9462. v-if="commentDetail.works && commentDetail.type == 15"
  9463. @click="
  9464. openCocoPi(
  9465. 57,
  9466. commentIndexJson.toolIndex,
  9467. commentDetail.userid,
  9468. commentDetail.sName
  9469. )
  9470. "
  9471. >
  9472. <img src="../assets/icon/codeFile.png" />
  9473. <div>点击打开CocoPi</div>
  9474. </div>
  9475. <div
  9476. class="worksAnswer"
  9477. v-if="commentDetail.works && commentDetail.type == 13"
  9478. >
  9479. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9480. </div>
  9481. <div
  9482. class="worksAnswer"
  9483. v-if="commentDetail.works && commentDetail.type == 4"
  9484. >
  9485. <div class="evalCss">
  9486. <div class="nav">请选择星星进行评分</div>
  9487. <div class="middleBox" v-if="eScore.eStar">
  9488. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9489. <div class="nameAndrate">
  9490. <div>{{ e.value }}</div>
  9491. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9492. </div>
  9493. <div v-if="e.detail">{{ e.detail }}</div>
  9494. </div>
  9495. <div class="bz">
  9496. <textarea
  9497. disabled
  9498. rows="4"
  9499. class="pj"
  9500. style="
  9501. padding: 10px 5px;
  9502. width: 70%;
  9503. background: #f7f6f9;
  9504. font-size: 14px;
  9505. text-indent: 10px;
  9506. color: #000;
  9507. "
  9508. cols
  9509. v-model="eScore.eBzText"
  9510. placeholder="请输入评价内容..."
  9511. ></textarea>
  9512. </div>
  9513. </div>
  9514. </div>
  9515. </div>
  9516. <div class="comment">
  9517. <div class="commentList">
  9518. <div class="commentImg">
  9519. <img
  9520. @click="
  9521. isLikes(
  9522. commentDetail.wid,
  9523. userid,
  9524. 1,
  9525. null,
  9526. commentDetail.isLikes
  9527. )
  9528. "
  9529. :src="commentDetail.isLikes == true ? likes : noLikes"
  9530. alt=""
  9531. />
  9532. </div>
  9533. <div>{{ commentDetail.likesCount }}</div>
  9534. </div>
  9535. <div class="commentList">
  9536. <div class="commentImg">
  9537. <img src="../assets/icon/comment/comment.png" alt="" />
  9538. </div>
  9539. <div>{{ commentDetail.commentCount }}</div>
  9540. </div>
  9541. </div>
  9542. <div class="drawPBox" v-if="commentDetail.img">
  9543. <span>教师批注</span>
  9544. <img
  9545. :src="commentDetail.img"
  9546. alt=""
  9547. @click="previewImg(commentDetail.img)"
  9548. />
  9549. <span
  9550. class="deleteImg"
  9551. v-if="tType == 1 || tType == 4"
  9552. @click.stop="deletePicturePaint(commentDetail.wid)"
  9553. style="
  9554. font-size: 14px;
  9555. width: auto !important;
  9556. color: #b4b4b4;
  9557. top: unset;
  9558. bottom: 0;
  9559. border: none;
  9560. padding: 0;
  9561. height: auto !important;
  9562. margin: 0;
  9563. "
  9564. >删除</span
  9565. >
  9566. </div>
  9567. </div>
  9568. <div class="commentBox">
  9569. <div class="pl">评论:</div>
  9570. <div style="max-height: 200px; overflow: auto">
  9571. <div
  9572. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9573. style="padding: 10px 0 0 0"
  9574. >
  9575. <div
  9576. class="studentDetail"
  9577. style="padding-top: 10px"
  9578. v-for="(co, coIndex) in commentDetail.commentJson"
  9579. :key="coIndex"
  9580. >
  9581. <div class="tx" style="min-width: 50px">
  9582. <img src="../assets/avatar.png" alt="" />
  9583. </div>
  9584. <div class="plPerson">
  9585. <div class="plName">
  9586. <div>{{ co.commentPeople }}</div>
  9587. <div style="margin-left: 5px">
  9588. {{ co.commentTime }}
  9589. </div>
  9590. <div
  9591. class="deleteComment"
  9592. v-if="userid == co.userid"
  9593. @click="deleteComment(co.wid)"
  9594. >
  9595. 删除
  9596. </div>
  9597. </div>
  9598. <div class="plContent">{{ co.commentText }}</div>
  9599. </div>
  9600. </div>
  9601. </div>
  9602. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9603. </div>
  9604. </div>
  9605. <div style="margin-top: 10px">
  9606. <div class="displayBox">
  9607. <div
  9608. style="
  9609. color: #556db4;
  9610. font-size: 14px;
  9611. font-weight: bold;
  9612. padding-bottom: 10px;
  9613. "
  9614. >
  9615. 评价
  9616. </div>
  9617. <div class="easy_comment" v-if="false">
  9618. <div
  9619. v-for="(p, pIndex) in PlTextList"
  9620. :key="pIndex"
  9621. @click="fastText(p, 1)"
  9622. >
  9623. {{ p }}
  9624. </div>
  9625. </div>
  9626. </div>
  9627. <div>
  9628. <textarea
  9629. rows="3"
  9630. class="pj"
  9631. style="padding: 10px 5px"
  9632. cols
  9633. v-model="commentText"
  9634. placeholder="请输入评论"
  9635. ></textarea>
  9636. </div>
  9637. </div>
  9638. <div slot="footer">
  9639. <el-button
  9640. @click="
  9641. (commentDialogVisible = false),
  9642. (commentIndexJson = {}),
  9643. videoDetail.sources && videoDetail.sources[0]
  9644. ? (videoDetail.sources[0].src = '')
  9645. : ''
  9646. "
  9647. >取 消</el-button
  9648. >
  9649. <el-button
  9650. type="primary"
  9651. @click="addComment(commentDetail.wid, userid, 2)"
  9652. >确 定</el-button
  9653. >
  9654. </div>
  9655. </el-dialog>
  9656. <el-dialog
  9657. title="查看文档"
  9658. :visible.sync="fullDialogVisible"
  9659. :append-to-body="true"
  9660. width="100%"
  9661. :before-close="handleClose"
  9662. :show-close="false"
  9663. class="dialog_diy full_diy"
  9664. :class="{ full_diy2: fulltype == 3 }"
  9665. >
  9666. <div slot="title" class="header-title">
  9667. <div style="color: #fff">查看文档</div>
  9668. <div
  9669. @click="fullDialogVisible = false"
  9670. style="
  9671. cursor: pointer;
  9672. position: absolute;
  9673. top: 20px;
  9674. right: 20px;
  9675. color: #fff;
  9676. "
  9677. >
  9678. 退出全屏
  9679. </div>
  9680. </div>
  9681. <div style="height: 100%">
  9682. <div
  9683. class="wheel"
  9684. v-if="
  9685. fulltype == 2 &&
  9686. fullUrl.indexOf(
  9687. 'https://view.officeapps.live.com/op/view.aspx?src='
  9688. ) != -1
  9689. "
  9690. style="width: 95%; margin: 0 auto"
  9691. >
  9692. <iframe
  9693. style="width: 100%; height: 100%; border: none"
  9694. :src="fullUrl"
  9695. ></iframe>
  9696. </div>
  9697. <iframe
  9698. v-else-if="fulltype == 2"
  9699. style="width: 100%; height: 100%; border: none"
  9700. :src="fullUrl"
  9701. security="restricted"
  9702. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9703. ></iframe>
  9704. <pdf
  9705. v-else-if="fulltype == 3"
  9706. :pdfUrl="fullUrl"
  9707. style="width: 100%; height: 100%; overflow: auto"
  9708. ></pdf>
  9709. <div
  9710. class="wheel"
  9711. v-if="fulltype == 1"
  9712. style="
  9713. box-shadow: 0 0 6px 1px #f2f2f2;
  9714. width: 100%;
  9715. background: #f1f1f1;
  9716. "
  9717. >
  9718. <div class="title" style="width: 100%; box-sizing: border-box">
  9719. 查看文档
  9720. </div>
  9721. <el-form class="textBox" style="height: 90%">
  9722. <el-form-item class="textTitle">
  9723. <div style="font-size: 22px">
  9724. {{ fullUrl.name }}
  9725. </div>
  9726. </el-form-item>
  9727. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9728. <div
  9729. v-html="fullUrl.url"
  9730. class="textContent"
  9731. style="height: auto"
  9732. ></div>
  9733. </el-form>
  9734. </div>
  9735. </div>
  9736. <!-- <div slot="footer">
  9737. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  9738. </div> -->
  9739. </el-dialog>
  9740. <el-dialog
  9741. title="个人评价"
  9742. :visible.sync="studentEvalDialogVisible"
  9743. :append-to-body="true"
  9744. width="800px"
  9745. :before-close="handleClose"
  9746. class="dialog_diy"
  9747. >
  9748. <div class="evalCss">
  9749. <div class="nav">请选择星星进行评分</div>
  9750. <div class="middleBox" v-if="eScore.eStar">
  9751. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9752. <div class="nameAndrate">
  9753. <div>{{ e.value }}</div>
  9754. <el-rate
  9755. v-model="eScore.eStar[eIndex]"
  9756. :disabled="isStar"
  9757. ></el-rate>
  9758. </div>
  9759. <div v-if="e.detail">{{ e.detail }}</div>
  9760. </div>
  9761. <div class="easy_comment" v-if="false">
  9762. <div
  9763. v-for="(p, pIndex) in PlTextList"
  9764. :key="pIndex"
  9765. @click="fastText(p, 2)"
  9766. >
  9767. {{ p }}
  9768. </div>
  9769. </div>
  9770. <div class="bz">
  9771. <textarea
  9772. :disabled="isStar"
  9773. rows="4"
  9774. class="pj"
  9775. style="
  9776. padding: 10px 5px;
  9777. width: 70%;
  9778. background: #f7f6f9;
  9779. font-size: 14px;
  9780. text-indent: 10px;
  9781. "
  9782. cols
  9783. v-model="eScore.eBzText"
  9784. placeholder="请输入评价内容..."
  9785. ></textarea>
  9786. </div>
  9787. </div>
  9788. </div>
  9789. <div slot="footer">
  9790. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  9791. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  9792. >确 定</el-button
  9793. >
  9794. </div>
  9795. </el-dialog>
  9796. <el-dialog
  9797. title="个人评价"
  9798. :visible.sync="studentEvalDialogVisibleTeacher"
  9799. :append-to-body="true"
  9800. width="800px"
  9801. :before-close="handleClose"
  9802. class="dialog_diy"
  9803. >
  9804. <div class="w_name">
  9805. 学生姓名:<span>{{ sStudent.student }}</span>
  9806. </div>
  9807. <div class="evalCss">
  9808. <div class="nav">请选择星星进行评分</div>
  9809. <div class="middleBox" v-if="eScore.eStar">
  9810. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9811. <div class="nameAndrate">
  9812. <div>{{ e.value }}</div>
  9813. <el-rate
  9814. v-model="eScore.eStar[eIndex]"
  9815. :disabled="isStar"
  9816. ></el-rate>
  9817. </div>
  9818. <div v-if="e.detail">{{ e.detail }}</div>
  9819. </div>
  9820. <div class="easy_comment" v-if="false">
  9821. <div
  9822. v-for="(p, pIndex) in PlTextList"
  9823. :key="pIndex"
  9824. @click="fastText(p, 2)"
  9825. >
  9826. {{ p }}
  9827. </div>
  9828. </div>
  9829. <div class="bz">
  9830. <textarea
  9831. :disabled="isStar"
  9832. rows="4"
  9833. class="pj"
  9834. style="
  9835. padding: 10px 5px;
  9836. width: 70%;
  9837. background: #f7f6f9;
  9838. font-size: 14px;
  9839. text-indent: 10px;
  9840. "
  9841. cols
  9842. v-model="eScore.eBzText"
  9843. placeholder="请输入评价内容..."
  9844. ></textarea>
  9845. </div>
  9846. </div>
  9847. </div>
  9848. <div slot="footer">
  9849. <el-button @click="studentEvalDialogVisibleTeacher = false"
  9850. >取 消</el-button
  9851. >
  9852. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  9853. >确 定</el-button
  9854. >
  9855. </div>
  9856. </el-dialog>
  9857. <el-dialog
  9858. title="选择匹配"
  9859. :visible.sync="dialogVisibleSelect"
  9860. :append-to-body="true"
  9861. width="90%"
  9862. :before-close="handleClose"
  9863. class="dialog_diy dialog_diy3"
  9864. >
  9865. <div v-if="selectJson">
  9866. <div class="select_box2">
  9867. <div class="select_box2_title">
  9868. <div>选择匹配</div>
  9869. <div>请选择对应的答案进行答题!</div>
  9870. </div>
  9871. <div class="select_box2_box">
  9872. <div class="select_box2_img">
  9873. <img
  9874. :src="selectJson.url"
  9875. @click="previewImg(selectJson.url)"
  9876. alt=""
  9877. />
  9878. </div>
  9879. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  9880. <div style="padding-top: 15px">
  9881. <div class="select_answer_title" v-if="isSelect">
  9882. {{ selectAnswer.stu }}
  9883. </div>
  9884. <div class="select_answer_title" v-else>
  9885. 根据题目选择对应答案
  9886. </div>
  9887. <div
  9888. class="select_box2_answer_box"
  9889. v-for="(item2, checkIndex) in selectJson.select"
  9890. :key="checkIndex"
  9891. >
  9892. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  9893. <el-select
  9894. :disabled="isSelect"
  9895. v-model="selectAnswer.answer[checkIndex]"
  9896. placeholder="请选择正确答案"
  9897. >
  9898. <el-option
  9899. v-for="(e, eIndex) in selectJson.select"
  9900. :key="eIndex"
  9901. :label="e"
  9902. :value="eIndex"
  9903. >
  9904. </el-option>
  9905. </el-select>
  9906. </div>
  9907. </div>
  9908. <div
  9909. class="rightAnswerCss"
  9910. v-if="isSelect && (tType == 1 || tType == 4)"
  9911. >
  9912. <div
  9913. v-for="(a, aIndex) in selectJson.answer"
  9914. :key="aIndex"
  9915. class="rightAnswer"
  9916. >
  9917. <div
  9918. v-if="selectAnswer.answer[aIndex] === a"
  9919. style="color: #767de1"
  9920. >
  9921. 回答正确
  9922. </div>
  9923. <div v-else>回答错误</div>
  9924. <div
  9925. style="margin-left: 10px"
  9926. v-if="selectAnswer.answer[aIndex] !== a"
  9927. >
  9928. 正确答案:
  9929. </div>
  9930. <div
  9931. :class="
  9932. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  9933. "
  9934. >
  9935. {{ selectJson.select[a] }}
  9936. </div>
  9937. </div>
  9938. </div>
  9939. </div>
  9940. <div class="upAnswerCss">
  9941. <el-button
  9942. type="primary"
  9943. @click="addSelectAnswer"
  9944. v-if="!isSelect"
  9945. >提交答案</el-button
  9946. >
  9947. </div>
  9948. </div>
  9949. </div>
  9950. </div>
  9951. </el-dialog>
  9952. <el-dialog
  9953. title="选择匹配"
  9954. :visible.sync="dialogVisibleSelectTeacher"
  9955. :append-to-body="true"
  9956. width="90%"
  9957. :before-close="handleClose"
  9958. class="dialog_diy dialog_diy3"
  9959. >
  9960. <div v-if="selectJson">
  9961. <div class="w_name">
  9962. 学生姓名:<span>{{ sStudent.student }}</span>
  9963. </div>
  9964. <div class="select_box2">
  9965. <div class="select_box2_title">
  9966. <div>选择匹配</div>
  9967. <div>请选择对应的答案进行答题!</div>
  9968. </div>
  9969. <div class="select_box2_box">
  9970. <div class="select_box2_img">
  9971. <img
  9972. :src="selectJson.url"
  9973. @click="previewImg(selectJson.url)"
  9974. alt=""
  9975. />
  9976. </div>
  9977. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  9978. <div style="padding-top: 15px">
  9979. <div class="select_answer_title" v-if="isSelect">
  9980. {{ selectAnswer.stu }}
  9981. </div>
  9982. <div class="select_answer_title" v-else>
  9983. 根据题目选择对应答案
  9984. </div>
  9985. <div
  9986. class="select_box2_answer_box"
  9987. v-for="(item2, checkIndex) in selectJson.select"
  9988. :key="checkIndex"
  9989. >
  9990. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  9991. <el-select
  9992. :disabled="isSelect"
  9993. v-model="selectAnswer.answer[checkIndex]"
  9994. placeholder="请选择正确答案"
  9995. >
  9996. <el-option
  9997. v-for="(e, eIndex) in selectJson.select"
  9998. :key="eIndex"
  9999. :label="e"
  10000. :value="eIndex"
  10001. >
  10002. </el-option>
  10003. </el-select>
  10004. </div>
  10005. </div>
  10006. <div
  10007. class="rightAnswerCss"
  10008. v-if="isSelect && (tType == 1 || tType == 4)"
  10009. >
  10010. <div
  10011. v-for="(a, aIndex) in selectJson.answer"
  10012. :key="aIndex"
  10013. class="rightAnswer"
  10014. >
  10015. <div
  10016. v-if="selectAnswer.answer[aIndex] === a"
  10017. style="color: #767de1"
  10018. >
  10019. 回答正确
  10020. </div>
  10021. <div v-else>回答错误</div>
  10022. <div
  10023. style="margin-left: 10px"
  10024. v-if="selectAnswer.answer[aIndex] !== a"
  10025. >
  10026. 正确答案:
  10027. </div>
  10028. <div
  10029. :class="
  10030. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10031. "
  10032. >
  10033. {{ selectJson.select[a] }}
  10034. </div>
  10035. </div>
  10036. </div>
  10037. </div>
  10038. <div class="upAnswerCss">
  10039. <el-button
  10040. type="primary"
  10041. @click="addSelectAnswerTeacher"
  10042. v-if="!isSelect"
  10043. >提交答案</el-button
  10044. >
  10045. </div>
  10046. </div>
  10047. </div>
  10048. </div>
  10049. </el-dialog>
  10050. <el-dialog
  10051. title="教师评分"
  10052. :visible.sync="dialogVisibleScore"
  10053. :append-to-body="true"
  10054. width="800px"
  10055. :before-close="handleClose"
  10056. class="dialog_diy"
  10057. >
  10058. <div>
  10059. <div class="studentDetail">
  10060. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  10061. <div class="nameAndTime">
  10062. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10063. <div>{{ commentDetail.time }}</div>
  10064. </div>
  10065. </div>
  10066. <div
  10067. class="worksAnswer"
  10068. v-if="commentDetail.works && commentDetail.type == 2"
  10069. >
  10070. {{ JSON.parse(commentDetail.works)[0].answer }}
  10071. </div>
  10072. <div
  10073. class="worksAnswer"
  10074. v-if="commentDetail.works && commentDetail.type == 1"
  10075. >
  10076. <pdf
  10077. v-if="showPDF"
  10078. :pdfUrl="pptImgUrl"
  10079. style="width: 100%; height: 520px; overflow: auto"
  10080. :class="{ fullStyle: full }"
  10081. ></pdf>
  10082. <iframe
  10083. v-else
  10084. :src="pptImgUrl"
  10085. frameborder="0"
  10086. width="100%"
  10087. height="600"
  10088. :class="{ fullStyle: full }"
  10089. ></iframe>
  10090. </div>
  10091. <div
  10092. class="worksAnswer"
  10093. v-if="commentDetail.works && commentDetail.type == 0"
  10094. >
  10095. <img
  10096. :src="commentDetail.works"
  10097. alt=""
  10098. @click="previewImg(commentDetail.works)"
  10099. />
  10100. </div>
  10101. <div
  10102. class="worksAnswer"
  10103. v-if="commentDetail.works && commentDetail.type == 3"
  10104. >
  10105. <video-player
  10106. class="video-player vjs-custom-skin"
  10107. :playsinline="true"
  10108. :options="videoDetail"
  10109. @play="onPlayerPlay($event)"
  10110. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10111. ></video-player>
  10112. </div>
  10113. <div
  10114. class="worksAnswer codeFileBox"
  10115. v-if="commentDetail.works && commentDetail.type == 12"
  10116. @click="downloadFile(commentDetail.works)"
  10117. >
  10118. <img src="../assets/icon/codeFile.png" />
  10119. <div>点击下载文件</div>
  10120. </div>
  10121. <div
  10122. class="worksAnswer codeFileBox"
  10123. v-if="commentDetail.works && commentDetail.type == 15"
  10124. @click="
  10125. openCocoPi(
  10126. 57,
  10127. commentIndexJson.toolIndex,
  10128. commentDetail.userid,
  10129. commentDetail.sName
  10130. )
  10131. "
  10132. >
  10133. <img src="../assets/icon/codeFile.png" />
  10134. <div>点击打开CocoPi</div>
  10135. </div>
  10136. <div
  10137. class="worksAnswer"
  10138. v-if="commentDetail.works && commentDetail.type == 13"
  10139. >
  10140. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10141. </div>
  10142. <div class="scoreBox">
  10143. <span class="t">请输入分数</span>
  10144. <el-input-number
  10145. :disabled="courseDetail.userid != userid"
  10146. v-model="wScore"
  10147. :controls="false"
  10148. :min="0"
  10149. :max="100"
  10150. ></el-input-number>
  10151. </div>
  10152. <div class="scoreDetailBox">
  10153. <span class="t">评分评论</span>
  10154. <el-input
  10155. type="textarea"
  10156. :rows="5"
  10157. :disabled="courseDetail.userid != userid"
  10158. resize="none"
  10159. v-model="scoreDetail"
  10160. placeholder="请输入对学生的评价"
  10161. >
  10162. </el-input>
  10163. </div>
  10164. </div>
  10165. <span slot="footer" class="dialog-footer">
  10166. <el-button
  10167. @click="
  10168. (dialogVisibleScore = false),
  10169. (commentIndexJson = {}),
  10170. videoDetail.sources && videoDetail.sources[0]
  10171. ? (videoDetail.sources[0].src = '')
  10172. : ''
  10173. "
  10174. >取 消</el-button
  10175. >
  10176. <el-button
  10177. type="primary"
  10178. v-if="courseDetail.userid == userid"
  10179. @click="scoreWork(commentDetail.wid)"
  10180. >确 定
  10181. </el-button>
  10182. </span>
  10183. </el-dialog>
  10184. <el-dialog
  10185. title="排序"
  10186. :visible.sync="dialogVisibleSentence"
  10187. :append-to-body="true"
  10188. width="1000px"
  10189. :before-close="handleClose"
  10190. class="dialog_diy dialog_diy3"
  10191. >
  10192. <div>
  10193. <div class="sentenBox">
  10194. <div
  10195. v-for="(st, stIndex) in sentenceList"
  10196. :key="stIndex"
  10197. style="padding-bottom: 20px"
  10198. >
  10199. <div
  10200. style="padding: 15px 0 10px 20px"
  10201. class="sentenceTitle"
  10202. :index="stIndex + 1"
  10203. >
  10204. 题目{{ stIndex + 1 }}:请选择正确顺序
  10205. </div>
  10206. <div class="cardList" v-if="st.chooseSenList">
  10207. <div class="cardBox">
  10208. <div
  10209. v-for="(r, rIndex) in st.chooseSenList"
  10210. :key="rIndex"
  10211. @click="returnCard(r, stIndex, rIndex)"
  10212. >
  10213. <el-tooltip
  10214. class="item"
  10215. effect="light"
  10216. :content="r"
  10217. placement="top"
  10218. v-if="r != '' && r != undefined"
  10219. >
  10220. <div
  10221. :class="{
  10222. isCard: r,
  10223. isChooseCard: r == '' || r == undefined,
  10224. }"
  10225. >
  10226. <div>{{ r }}</div>
  10227. </div>
  10228. </el-tooltip>
  10229. <div
  10230. :class="{
  10231. isCard: r,
  10232. isChooseCard: r == '' || r == undefined,
  10233. }"
  10234. v-else
  10235. >
  10236. <div>{{ r }}</div>
  10237. </div>
  10238. </div>
  10239. </div>
  10240. </div>
  10241. <div class="cardList" v-if="st.addChangeSen">
  10242. <div class="cardBox">
  10243. <div
  10244. v-for="(s, sIndex) in st.addChangeSen"
  10245. :key="sIndex"
  10246. @click="setRightAnswer(s, stIndex, sIndex)"
  10247. >
  10248. <el-tooltip
  10249. class="item"
  10250. effect="light"
  10251. :content="s"
  10252. placement="top"
  10253. v-if="s != '' && s != undefined"
  10254. >
  10255. <div
  10256. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10257. >
  10258. <div>{{ s }}</div>
  10259. </div>
  10260. </el-tooltip>
  10261. <div
  10262. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10263. v-else
  10264. >
  10265. <div>{{ s }}</div>
  10266. </div>
  10267. </div>
  10268. </div>
  10269. </div>
  10270. </div>
  10271. </div>
  10272. </div>
  10273. <span slot="footer" class="dialog-footer">
  10274. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10275. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10276. </span>
  10277. </el-dialog>
  10278. <el-dialog
  10279. title="排序"
  10280. :visible.sync="dialogVisibleSentenceTeacher"
  10281. :append-to-body="true"
  10282. width="1000px"
  10283. :before-close="handleClose"
  10284. class="dialog_diy dialog_diy3"
  10285. >
  10286. <div>
  10287. <div class="w_name">
  10288. 学生姓名:<span>{{ sStudent.student }}</span>
  10289. </div>
  10290. <div class="sentenBox">
  10291. <div
  10292. v-for="(st, stIndex) in sentenceList"
  10293. :key="stIndex"
  10294. style="padding-bottom: 20px"
  10295. >
  10296. <div
  10297. style="padding: 15px 0 10px 20px"
  10298. class="sentenceTitle"
  10299. :index="stIndex + 1"
  10300. >
  10301. 题目{{ stIndex + 1 }}:请选择正确顺序
  10302. </div>
  10303. <div class="cardList" v-if="st.chooseSenList">
  10304. <div class="cardBox">
  10305. <div
  10306. v-for="(r, rIndex) in st.chooseSenList"
  10307. :key="rIndex"
  10308. @click="returnCard(r, stIndex, rIndex)"
  10309. >
  10310. <el-tooltip
  10311. class="item"
  10312. effect="light"
  10313. :content="r"
  10314. placement="top"
  10315. v-if="r != '' && r != undefined"
  10316. >
  10317. <div
  10318. :class="{
  10319. isCard: r,
  10320. isChooseCard: r == '' || r == undefined,
  10321. }"
  10322. >
  10323. <div>{{ r }}</div>
  10324. </div>
  10325. </el-tooltip>
  10326. <div
  10327. :class="{
  10328. isCard: r,
  10329. isChooseCard: r == '' || r == undefined,
  10330. }"
  10331. v-else
  10332. >
  10333. <div>{{ r }}</div>
  10334. </div>
  10335. </div>
  10336. </div>
  10337. </div>
  10338. <div class="cardList" v-if="st.addChangeSen">
  10339. <div class="cardBox">
  10340. <div
  10341. v-for="(s, sIndex) in st.addChangeSen"
  10342. :key="sIndex"
  10343. @click="setRightAnswer(s, stIndex, sIndex)"
  10344. >
  10345. <el-tooltip
  10346. class="item"
  10347. effect="light"
  10348. :content="s"
  10349. placement="top"
  10350. v-if="s != '' && s != undefined"
  10351. >
  10352. <div
  10353. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10354. >
  10355. <div>{{ s }}</div>
  10356. </div>
  10357. </el-tooltip>
  10358. <div
  10359. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10360. v-else
  10361. >
  10362. <div>{{ s }}</div>
  10363. </div>
  10364. </div>
  10365. </div>
  10366. </div>
  10367. </div>
  10368. </div>
  10369. </div>
  10370. <span slot="footer" class="dialog-footer">
  10371. <el-button @click="dialogVisibleSentenceTeacher = false"
  10372. >取 消</el-button
  10373. >
  10374. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10375. </span>
  10376. </el-dialog>
  10377. <el-dialog
  10378. title="排序"
  10379. :visible.sync="dialogVisibleSentence1"
  10380. :append-to-body="true"
  10381. width="1000px"
  10382. :before-close="handleClose"
  10383. class="dialog_diy dialog_diy3"
  10384. >
  10385. <div>
  10386. <div class="sentenBox">
  10387. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10388. {{ sentenceList1.stuName }}的作业
  10389. </div>
  10390. <div
  10391. v-for="(st, stIndex) in sentenceList1"
  10392. :key="stIndex"
  10393. style="padding-bottom: 20px"
  10394. >
  10395. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10396. 第{{ stIndex + 1 }}题
  10397. </div>
  10398. <div class="isWrong">
  10399. <div class="cardList1" v-if="st.chooseSenList">
  10400. <div class="cardBox">
  10401. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10402. <el-tooltip
  10403. class="item"
  10404. effect="light"
  10405. :content="s"
  10406. placement="top"
  10407. >
  10408. <div class="isCard">
  10409. <div>{{ s }}</div>
  10410. </div>
  10411. </el-tooltip>
  10412. </div>
  10413. </div>
  10414. <div class="cardAnswerBox">
  10415. 组成句子:{{ st.chooseSenList.join(" ") }}
  10416. </div>
  10417. </div>
  10418. <div v-if="tType == 2" class="isTj">
  10419. <div class="isTjImg">
  10420. <img src="../assets/icon/conSentences/right.png" alt="" />
  10421. </div>
  10422. <div>已提交</div>
  10423. </div>
  10424. <div
  10425. class="answerRight isTj"
  10426. v-if="
  10427. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10428. (tType == 1 || tType == 4)
  10429. "
  10430. >
  10431. <div class="isTjImg">
  10432. <img src="../assets/icon/conSentences/right.png" alt="" />
  10433. </div>
  10434. <div>回答正确</div>
  10435. </div>
  10436. <div
  10437. class="answerRight isTj"
  10438. v-if="
  10439. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10440. (tType == 1 || tType == 4)
  10441. "
  10442. >
  10443. <div class="isTjImg">
  10444. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  10445. </div>
  10446. <div>回答错误</div>
  10447. </div>
  10448. </div>
  10449. <div
  10450. v-if="
  10451. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10452. (tType == 1 || tType == 4)
  10453. "
  10454. >
  10455. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10456. <div
  10457. class="cardList"
  10458. v-if="st.rightAnswer"
  10459. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10460. >
  10461. <div class="cardBox">
  10462. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10463. <el-tooltip
  10464. class="item"
  10465. effect="light"
  10466. :content="r"
  10467. placement="top"
  10468. >
  10469. <div class="isCard1">
  10470. <div>{{ r }}</div>
  10471. </div>
  10472. </el-tooltip>
  10473. </div>
  10474. </div>
  10475. <div class="cardAnswerBox">
  10476. 组成句子:{{ st.rightAnswer.join(" ") }}
  10477. </div>
  10478. </div>
  10479. </div>
  10480. </div>
  10481. </div>
  10482. </div>
  10483. <span slot="footer" class="dialog-footer">
  10484. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10485. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10486. >确 定</el-button
  10487. >
  10488. </span>
  10489. </el-dialog>
  10490. <el-dialog
  10491. title="教师提交作业"
  10492. :visible.sync="dialogVisibleWorks"
  10493. :append-to-body="true"
  10494. width="500px"
  10495. :before-close="handleClose"
  10496. class="dialog_change"
  10497. >
  10498. <div class="marginT">
  10499. <div class="w_name">
  10500. 学生姓名:<span>{{ sStudent.student }}</span>
  10501. </div>
  10502. <div>上传文件</div>
  10503. <div
  10504. class="chapter_add"
  10505. @click="addImg($event)"
  10506. v-if="studyJuri[0].cover.length == 0"
  10507. >
  10508. <div class="up_photo">
  10509. <img src="../assets/uploadImg2.png" alt />
  10510. </div>
  10511. <!-- <input
  10512. type="file"
  10513. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10514. style="display: none"
  10515. @change="beforeUpload1($event, 1)"
  10516. /> -->
  10517. <input
  10518. type="file"
  10519. accept="*"
  10520. style="display: none"
  10521. @change="beforeUpload1($event, 1)"
  10522. />
  10523. </div>
  10524. <!-- capture="camera" -->
  10525. <div
  10526. class="chapter_add"
  10527. style="
  10528. display: flex;
  10529. width: 100%;
  10530. flex-direction: row;
  10531. flex-wrap: wrap;
  10532. justify-content: flex-start;
  10533. padding: 15px 0;
  10534. "
  10535. v-if="studyJuri[0].cover.length > 0"
  10536. >
  10537. <div class="upCover">
  10538. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10539. <img :src="word" alt v-else-if="fileType == 1" />
  10540. <img :src="video" alt v-else-if="fileType == 2" />
  10541. <img :src="word2" alt v-else-if="fileType == 3" />
  10542. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10543. <div class="deleteWord" @click="clean(1)">
  10544. <img src="../assets/icon/deleteWorks.png" alt />
  10545. </div>
  10546. </div>
  10547. </div>
  10548. </div>
  10549. <div
  10550. class="upload_send"
  10551. @click="addCourseWorksTeacher(taskCount)"
  10552. v-if="!proVisible"
  10553. >
  10554. 提交
  10555. </div>
  10556. </el-dialog>
  10557. <ImgDraw
  10558. :drawShow="drawShow"
  10559. @closeDraw="closeDraw"
  10560. @addImgDraw="addImgDraw"
  10561. :bg="bg"
  10562. ></ImgDraw>
  10563. <el-dialog
  10564. title="表格"
  10565. :visible.sync="dialogVisibleTable"
  10566. :append-to-body="true"
  10567. width="95%"
  10568. :before-close="handleClose"
  10569. class="dialog_diy"
  10570. >
  10571. <el-form>
  10572. <div
  10573. style="
  10574. display: flex;
  10575. align-items: center;
  10576. justify-content: space-between;
  10577. "
  10578. >
  10579. <span>表格内容</span>
  10580. <el-button type="primary" size="small" @click="returnTableText"
  10581. >还原模板</el-button
  10582. >
  10583. </div>
  10584. <Table
  10585. v-model="tableJson.text"
  10586. @change="change"
  10587. v-if="dialogVisibleTable"
  10588. ></Table>
  10589. </el-form>
  10590. <span slot="footer" class="dialog-footer">
  10591. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10592. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10593. </span>
  10594. </el-dialog>
  10595. <el-dialog
  10596. title="表格"
  10597. :visible.sync="dialogVisibleTableTeacher"
  10598. :append-to-body="true"
  10599. width="95%"
  10600. :before-close="handleClose"
  10601. class="dialog_diy"
  10602. >
  10603. <el-form>
  10604. <div class="w_name">
  10605. 学生姓名:<span>{{ sStudent.student }}</span>
  10606. </div>
  10607. <div>表格内容</div>
  10608. <Table
  10609. v-model="tableJson.text"
  10610. @change="change"
  10611. v-if="dialogVisibleTableTeacher"
  10612. ></Table>
  10613. </el-form>
  10614. <span slot="footer" class="dialog-footer">
  10615. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10616. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10617. </span>
  10618. </el-dialog>
  10619. <el-dialog
  10620. title="文档"
  10621. :visible.sync="dialogVisibleWord"
  10622. :append-to-body="true"
  10623. width="95%"
  10624. :before-close="handleClose"
  10625. class="dialog_diy"
  10626. >
  10627. <el-form>
  10628. <div
  10629. style="
  10630. display: flex;
  10631. align-items: center;
  10632. justify-content: space-between;
  10633. "
  10634. >
  10635. <span>文档内容</span>
  10636. <el-button type="primary" size="small" @click="returnWordText"
  10637. >还原模板</el-button
  10638. >
  10639. </div>
  10640. <editor-bar
  10641. v-model="wordJson.text"
  10642. v-if="dialogVisibleWord"
  10643. ></editor-bar>
  10644. </el-form>
  10645. <span slot="footer" class="dialog-footer">
  10646. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10647. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10648. </span>
  10649. </el-dialog>
  10650. <el-dialog
  10651. title="文档"
  10652. :visible.sync="dialogVisibleWordTeacher"
  10653. :append-to-body="true"
  10654. width="95%"
  10655. :before-close="handleClose"
  10656. class="dialog_diy"
  10657. >
  10658. <el-form>
  10659. <div class="w_name">
  10660. 学生姓名:<span>{{ sStudent.student }}</span>
  10661. </div>
  10662. <div>文档内容</div>
  10663. <editor-bar
  10664. v-model="wordJson.text"
  10665. v-if="dialogVisibleWordTeacher"
  10666. ></editor-bar>
  10667. </el-form>
  10668. <span slot="footer" class="dialog-footer">
  10669. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10670. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10671. </span>
  10672. </el-dialog>
  10673. <el-dialog
  10674. title="表格"
  10675. :visible.sync="dialogVisibleTable2"
  10676. :append-to-body="true"
  10677. width="95%"
  10678. :before-close="handleClose"
  10679. class="dialog_diy"
  10680. >
  10681. <el-form>
  10682. <div class="cont" v-html="tableJson.text"></div>
  10683. </el-form>
  10684. <span slot="footer" class="dialog-footer">
  10685. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10686. </span>
  10687. </el-dialog>
  10688. <el-dialog
  10689. title="文档"
  10690. :visible.sync="dialogVisibleTable3"
  10691. :append-to-body="true"
  10692. width="95%"
  10693. :before-close="handleClose"
  10694. class="dialog_diy"
  10695. >
  10696. <el-form>
  10697. <div class="cont" v-html="tableJson.text"></div>
  10698. </el-form>
  10699. <span slot="footer" class="dialog-footer">
  10700. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10701. </span>
  10702. </el-dialog>
  10703. <el-dialog
  10704. title="分组设置"
  10705. :visible.sync="dialogVisibleGroup"
  10706. :append-to-body="true"
  10707. width="95%"
  10708. :before-close="handleClose"
  10709. class="dialog_diy"
  10710. >
  10711. <div v-if="dialogVisibleGroup">
  10712. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10713. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10714. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  10715. </div>
  10716. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  10717. @click="lockChair">
  10718. 锁定位置
  10719. </div>
  10720. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  10721. 解锁位置
  10722. </div> -->
  10723. <div class="group_switch">
  10724. <span>开放选座</span>
  10725. <el-switch
  10726. v-model="islock"
  10727. active-text=""
  10728. class="switchCss"
  10729. @change="lockChair"
  10730. ></el-switch>
  10731. </div>
  10732. <div
  10733. type="primary"
  10734. @click="updateGroup"
  10735. class="returnBtn"
  10736. style="background-color: #225bc7"
  10737. >
  10738. 分组设置
  10739. </div>
  10740. </div>
  10741. <div>
  10742. <div
  10743. class="g_d_box"
  10744. v-if="groupJson.group && groupStudent[toolindex]"
  10745. >
  10746. <div
  10747. class="g_d_group"
  10748. v-for="(g, gindex) in groupJson.group"
  10749. :key="gindex"
  10750. >
  10751. <div class="g_d_group_chair">
  10752. <div v-if="groupJson.number > 1">
  10753. <span
  10754. :class="{
  10755. isChair:
  10756. groupStudent[toolindex][gindex] &&
  10757. groupStudent[toolindex][gindex][0],
  10758. updateChair:
  10759. courseDetail.userid == userid &&
  10760. groupStudent[toolindex][gindex] &&
  10761. groupStudent[toolindex][gindex][0] &&
  10762. groupJson.islock == 2,
  10763. }"
  10764. ><span
  10765. class="updateChairBtn"
  10766. @click="
  10767. updateGroupChair(
  10768. groupStudent[toolindex][gindex] &&
  10769. groupStudent[toolindex][gindex][0]
  10770. )
  10771. "
  10772. >修改</span
  10773. ></span
  10774. ><span>{{
  10775. groupStudent[toolindex][gindex] &&
  10776. groupStudent[toolindex][gindex][0]
  10777. ? groupStudent[toolindex][gindex] &&
  10778. groupStudent[toolindex][gindex][0].name
  10779. : "空位置"
  10780. }}</span>
  10781. </div>
  10782. <div v-if="groupJson.number > 4">
  10783. <span
  10784. :class="{
  10785. isChair:
  10786. groupStudent[toolindex][gindex] &&
  10787. groupStudent[toolindex][gindex][4],
  10788. updateChair:
  10789. courseDetail.userid == userid &&
  10790. groupStudent[toolindex][gindex] &&
  10791. groupStudent[toolindex][gindex][4] &&
  10792. groupJson.islock == 2,
  10793. }"
  10794. ><span
  10795. class="updateChairBtn"
  10796. @click="
  10797. updateGroupChair(
  10798. groupStudent[toolindex][gindex] &&
  10799. groupStudent[toolindex][gindex][4]
  10800. )
  10801. "
  10802. >修改</span
  10803. ></span
  10804. ><span>{{
  10805. groupStudent[toolindex][gindex] &&
  10806. groupStudent[toolindex][gindex][4]
  10807. ? groupStudent[toolindex][gindex] &&
  10808. groupStudent[toolindex][gindex][4].name
  10809. : "空位置"
  10810. }}</span>
  10811. </div>
  10812. <div v-if="groupJson.number > 8">
  10813. <span
  10814. :class="{
  10815. isChair:
  10816. groupStudent[toolindex][gindex] &&
  10817. groupStudent[toolindex][gindex][8],
  10818. updateChair:
  10819. courseDetail.userid == userid &&
  10820. groupStudent[toolindex][gindex] &&
  10821. groupStudent[toolindex][gindex][8] &&
  10822. groupJson.islock == 2,
  10823. }"
  10824. ><span
  10825. class="updateChairBtn"
  10826. @click="
  10827. updateGroupChair(
  10828. groupStudent[toolindex][gindex] &&
  10829. groupStudent[toolindex][gindex][8]
  10830. )
  10831. "
  10832. >修改</span
  10833. ></span
  10834. ><span>{{
  10835. groupStudent[toolindex][gindex] &&
  10836. groupStudent[toolindex][gindex][8]
  10837. ? groupStudent[toolindex][gindex] &&
  10838. groupStudent[toolindex][gindex][8].name
  10839. : "空位置"
  10840. }}</span>
  10841. </div>
  10842. </div>
  10843. <div class="g_d_group_tableBox">
  10844. <div class="g_d_group_chair2">
  10845. <div v-if="groupJson.number > 2">
  10846. <span
  10847. :class="{
  10848. isChair:
  10849. groupStudent[toolindex][gindex] &&
  10850. groupStudent[toolindex][gindex][2],
  10851. updateChair:
  10852. courseDetail.userid == userid &&
  10853. groupStudent[toolindex][gindex] &&
  10854. groupStudent[toolindex][gindex][2] &&
  10855. groupJson.islock == 2,
  10856. }"
  10857. ><span
  10858. class="updateChairBtn"
  10859. @click="
  10860. updateGroupChair(
  10861. groupStudent[toolindex][gindex] &&
  10862. groupStudent[toolindex][gindex][2]
  10863. )
  10864. "
  10865. >修改</span
  10866. ></span
  10867. ><span>{{
  10868. groupStudent[toolindex][gindex] &&
  10869. groupStudent[toolindex][gindex][2]
  10870. ? groupStudent[toolindex][gindex] &&
  10871. groupStudent[toolindex][gindex][2].name
  10872. : "空位置"
  10873. }}</span>
  10874. </div>
  10875. <div v-if="groupJson.number > 6">
  10876. <span
  10877. :class="{
  10878. isChair:
  10879. groupStudent[toolindex][gindex] &&
  10880. groupStudent[toolindex][gindex][6],
  10881. updateChair:
  10882. courseDetail.userid == userid &&
  10883. groupStudent[toolindex][gindex] &&
  10884. groupStudent[toolindex][gindex][6] &&
  10885. groupJson.islock == 2,
  10886. }"
  10887. ><span
  10888. class="updateChairBtn"
  10889. @click="
  10890. updateGroupChair(
  10891. groupStudent[toolindex][gindex] &&
  10892. groupStudent[toolindex][gindex][6]
  10893. )
  10894. "
  10895. >修改</span
  10896. ></span
  10897. ><span>{{
  10898. groupStudent[toolindex][gindex] &&
  10899. groupStudent[toolindex][gindex][6]
  10900. ? groupStudent[toolindex][gindex] &&
  10901. groupStudent[toolindex][gindex][6].name
  10902. : "空位置"
  10903. }}</span>
  10904. </div>
  10905. </div>
  10906. <div class="g_d_group_table">
  10907. <div>
  10908. {{ g.name }}
  10909. </div>
  10910. <div>
  10911. <div
  10912. v-if="
  10913. courseDetail.userid == userid && groupJson.islock == 2
  10914. "
  10915. @click="deleteGroupChair(gindex)"
  10916. >
  10917. 移除组员
  10918. </div>
  10919. <div
  10920. @click="selectGroup(gindex)"
  10921. v-else-if="
  10922. groupStudentUid[toolindex] &&
  10923. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  10924. "
  10925. >
  10926. 加入分组
  10927. </div>
  10928. <div
  10929. @click="
  10930. exitGroup(
  10931. groupStudent[toolindex][gindex] &&
  10932. groupStudent[toolindex][gindex][
  10933. groupStudentUid[toolindex][gindex].indexOf(userid)
  10934. ].id
  10935. )
  10936. "
  10937. v-else-if="
  10938. groupStudentUid[toolindex] &&
  10939. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  10940. "
  10941. >
  10942. 退出分组
  10943. </div>
  10944. </div>
  10945. </div>
  10946. <div class="g_d_group_chair2">
  10947. <div v-if="groupJson.number > 3">
  10948. <span
  10949. :class="{
  10950. isChair:
  10951. groupStudent[toolindex][gindex] &&
  10952. groupStudent[toolindex][gindex][3],
  10953. updateChair:
  10954. courseDetail.userid == userid &&
  10955. groupStudent[toolindex][gindex] &&
  10956. groupStudent[toolindex][gindex][3] &&
  10957. groupJson.islock == 2,
  10958. }"
  10959. ><span
  10960. class="updateChairBtn"
  10961. @click="
  10962. updateGroupChair(
  10963. groupStudent[toolindex][gindex] &&
  10964. groupStudent[toolindex][gindex][3]
  10965. )
  10966. "
  10967. >修改</span
  10968. ></span
  10969. ><span>{{
  10970. groupStudent[toolindex][gindex] &&
  10971. groupStudent[toolindex][gindex][3]
  10972. ? groupStudent[toolindex][gindex] &&
  10973. groupStudent[toolindex][gindex][3].name
  10974. : "空位置"
  10975. }}</span>
  10976. </div>
  10977. <div v-if="groupJson.number > 7">
  10978. <span
  10979. :class="{
  10980. isChair:
  10981. groupStudent[toolindex][gindex] &&
  10982. groupStudent[toolindex][gindex][7],
  10983. updateChair:
  10984. courseDetail.userid == userid &&
  10985. groupStudent[toolindex][gindex] &&
  10986. groupStudent[toolindex][gindex][7] &&
  10987. groupJson.islock == 2,
  10988. }"
  10989. ><span
  10990. class="updateChairBtn"
  10991. @click="
  10992. updateGroupChair(
  10993. groupStudent[toolindex][gindex] &&
  10994. groupStudent[toolindex][gindex][7]
  10995. )
  10996. "
  10997. >修改</span
  10998. ></span
  10999. ><span>{{
  11000. groupStudent[toolindex][gindex] &&
  11001. groupStudent[toolindex][gindex][7]
  11002. ? groupStudent[toolindex][gindex] &&
  11003. groupStudent[toolindex][gindex][7].name
  11004. : "空位置"
  11005. }}</span>
  11006. </div>
  11007. </div>
  11008. </div>
  11009. <div class="g_d_group_chair">
  11010. <div v-if="groupJson.number > 1">
  11011. <span
  11012. :class="{
  11013. isChair:
  11014. groupStudent[toolindex][gindex] &&
  11015. groupStudent[toolindex][gindex][1],
  11016. updateChair:
  11017. courseDetail.userid == userid &&
  11018. groupStudent[toolindex][gindex] &&
  11019. groupStudent[toolindex][gindex][1] &&
  11020. groupJson.islock == 2,
  11021. }"
  11022. ><span
  11023. class="updateChairBtn"
  11024. @click="
  11025. updateGroupChair(
  11026. groupStudent[toolindex][gindex] &&
  11027. groupStudent[toolindex][gindex][1]
  11028. )
  11029. "
  11030. >修改</span
  11031. ></span
  11032. ><span>{{
  11033. groupStudent[toolindex][gindex] &&
  11034. groupStudent[toolindex][gindex][1]
  11035. ? groupStudent[toolindex][gindex] &&
  11036. groupStudent[toolindex][gindex][1].name
  11037. : "空位置"
  11038. }}</span>
  11039. </div>
  11040. <div v-if="groupJson.number > 5">
  11041. <span
  11042. :class="{
  11043. isChair:
  11044. groupStudent[toolindex][gindex] &&
  11045. groupStudent[toolindex][gindex][5],
  11046. updateChair:
  11047. courseDetail.userid == userid &&
  11048. groupStudent[toolindex][gindex] &&
  11049. groupStudent[toolindex][gindex][5] &&
  11050. groupJson.islock == 2,
  11051. }"
  11052. ><span
  11053. class="updateChairBtn"
  11054. @click="
  11055. updateGroupChair(
  11056. groupStudent[toolindex][gindex] &&
  11057. groupStudent[toolindex][gindex][5]
  11058. )
  11059. "
  11060. >修改</span
  11061. ></span
  11062. ><span>{{
  11063. groupStudent[toolindex][gindex] &&
  11064. groupStudent[toolindex][gindex][5]
  11065. ? groupStudent[toolindex][gindex] &&
  11066. groupStudent[toolindex][gindex][5].name
  11067. : "空位置"
  11068. }}</span>
  11069. </div>
  11070. <div v-if="groupJson.number > 9">
  11071. <span
  11072. :class="{
  11073. isChair:
  11074. groupStudent[toolindex][gindex] &&
  11075. groupStudent[toolindex][gindex][9],
  11076. updateChair:
  11077. courseDetail.userid == userid &&
  11078. groupStudent[toolindex][gindex] &&
  11079. groupStudent[toolindex][gindex][9] &&
  11080. groupJson.islock == 2,
  11081. }"
  11082. ><span
  11083. class="updateChairBtn"
  11084. @click="
  11085. updateGroupChair(
  11086. groupStudent[toolindex][gindex] &&
  11087. groupStudent[toolindex][gindex][9]
  11088. )
  11089. "
  11090. >修改</span
  11091. ></span
  11092. ><span>{{
  11093. groupStudent[toolindex][gindex] &&
  11094. groupStudent[toolindex][gindex][9]
  11095. ? groupStudent[toolindex][gindex] &&
  11096. groupStudent[toolindex][gindex][9].name
  11097. : "空位置"
  11098. }}</span>
  11099. </div>
  11100. </div>
  11101. </div>
  11102. </div>
  11103. </div>
  11104. </div>
  11105. <span slot="footer" class="dialog-footer">
  11106. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11107. </span>
  11108. </el-dialog>
  11109. <el-dialog
  11110. title="分组设置"
  11111. :visible.sync="dialogVisibleGroup2"
  11112. :append-to-body="true"
  11113. width="650px"
  11114. :before-close="handleClose"
  11115. class="dialog_diy"
  11116. >
  11117. <div class="groupBox">
  11118. <div v-if="groupJson2.group" class="groupContent">
  11119. <div class="groupTitle">请设置小组数量及名称</div>
  11120. <div
  11121. v-for="(item, index) in groupJson2.group"
  11122. :key="index"
  11123. class="groupName"
  11124. >
  11125. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11126. <el-input
  11127. v-model="item.name"
  11128. placeholder="请输入名称..."
  11129. style="width: 250px"
  11130. ></el-input>
  11131. <!-- <div class="groupBtn">
  11132. <el-button type="primary" size="small" @click="addGroup(index)">
  11133. 添加</el-button>
  11134. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11135. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11136. </div> -->
  11137. </div>
  11138. </div>
  11139. <div class="groupContent">
  11140. <div class="groupTitle">请设置每组人数</div>
  11141. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11142. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11143. <el-input
  11144. v-model="groupJson.number"
  11145. style="width: 150px"
  11146. placeholder="请输入2-10的数字"
  11147. @change="numberPan"
  11148. ></el-input>
  11149. </div>
  11150. </div>
  11151. <span slot="footer" class="dialog-footer">
  11152. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11153. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11154. </span>
  11155. </el-dialog>
  11156. <el-dialog
  11157. title="作业提交"
  11158. :visible.sync="dialogVisibleGroupWork"
  11159. :append-to-body="true"
  11160. width="500px"
  11161. :before-close="handleClose"
  11162. class="dialog_change"
  11163. >
  11164. <div class="marginT">
  11165. <div>上传文件</div>
  11166. <div
  11167. class="chapter_add"
  11168. @click="addImg($event)"
  11169. v-if="studyJuri[0].cover.length == 0"
  11170. >
  11171. <div class="up_photo">
  11172. <img src="../assets/icon/uploadImg.png" alt />
  11173. </div>
  11174. <!-- <input
  11175. type="file"
  11176. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11177. style="display: none"
  11178. @change="beforeUpload1($event, 1)"
  11179. /> -->
  11180. <input
  11181. type="file"
  11182. accept="*"
  11183. style="display: none"
  11184. @change="beforeUpload1($event, 1)"
  11185. />
  11186. </div>
  11187. <!-- capture="camera" -->
  11188. <div
  11189. class="chapter_add"
  11190. style="
  11191. display: flex;
  11192. width: 100%;
  11193. flex-direction: row;
  11194. flex-wrap: wrap;
  11195. justify-content: flex-start;
  11196. padding: 15px 0;
  11197. "
  11198. v-if="studyJuri[0].cover.length > 0"
  11199. >
  11200. <div class="upCover">
  11201. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11202. <img :src="word" alt v-else-if="fileType == 1" />
  11203. <img :src="video" alt v-else-if="fileType == 2" />
  11204. <img :src="word2" alt v-else-if="fileType == 3" />
  11205. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11206. <div class="deleteWord" @click="clean(1)">
  11207. <img src="../assets/icon/deleteWorks.png" alt />
  11208. </div>
  11209. </div>
  11210. </div>
  11211. </div>
  11212. <div
  11213. class="upload_send"
  11214. @click="addCourseWorks2(taskCount)"
  11215. v-if="!proVisible"
  11216. >
  11217. 提交
  11218. </div>
  11219. </el-dialog>
  11220. <el-dialog
  11221. title="修改分组"
  11222. :visible.sync="dialogVisibleUpdateGroup"
  11223. :append-to-body="true"
  11224. width="350px"
  11225. :before-close="handleClose"
  11226. class="dialog_diy"
  11227. >
  11228. <div>
  11229. <h2>
  11230. {{ this.updateGroupUser.name }}
  11231. </h2>
  11232. <div style="color: rgb(171 171 171); margin-top: 10px">
  11233. 请选择要进入的分组
  11234. </div>
  11235. <el-radio-group v-model="checkChair">
  11236. <el-radio
  11237. style="display: block; margin-top: 20px"
  11238. v-for="(item, index) in updateGroupArray"
  11239. :label="item.label"
  11240. :key="index"
  11241. >{{ item.name }}</el-radio
  11242. >
  11243. </el-radio-group>
  11244. </div>
  11245. <span slot="footer" class="dialog-footer">
  11246. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11247. <el-button type="primary" @click="updateChair">确定</el-button>
  11248. </span>
  11249. </el-dialog>
  11250. <el-dialog
  11251. title="移除组员"
  11252. :visible.sync="dialogVisibleDeleteGroup"
  11253. :append-to-body="true"
  11254. width="350px"
  11255. :before-close="handleClose"
  11256. class="dialog_diy"
  11257. >
  11258. <div>
  11259. <h2>
  11260. {{ this.deleteGroupArray.name }}
  11261. </h2>
  11262. <div style="color: rgb(171 171 171); margin-top: 10px">
  11263. 请选择要删除的组员
  11264. </div>
  11265. <el-checkbox-group v-model="checkDeleteGroup">
  11266. <el-checkbox
  11267. style="display: flex; margin-top: 20px"
  11268. v-for="(item, index) in deleteGroupUser"
  11269. :label="item.userid"
  11270. :key="index"
  11271. >{{ item.name }}</el-checkbox
  11272. >
  11273. </el-checkbox-group>
  11274. </div>
  11275. <span slot="footer" class="dialog-footer">
  11276. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11277. <el-button type="primary" @click="deleteChair">确定</el-button>
  11278. </span>
  11279. </el-dialog>
  11280. <el-dialog
  11281. title="批量上传"
  11282. :visible.sync="dialogVisiblePl"
  11283. :append-to-body="true"
  11284. width="700px"
  11285. :before-close="handleClose"
  11286. class="dialog_change"
  11287. >
  11288. <div class="marginT">
  11289. <div class="plworkBox">
  11290. <div
  11291. class="chapter_add"
  11292. style="
  11293. display: flex;
  11294. width: 150px;
  11295. flex-direction: row;
  11296. flex-wrap: wrap;
  11297. justify-content: flex-start;
  11298. margin: 0 10px 10px 0;
  11299. "
  11300. v-for="(item, index) in plworkFile"
  11301. :key="index"
  11302. >
  11303. <div class="upCover2">
  11304. <img
  11305. :src="item.url"
  11306. alt
  11307. v-if="item.fileType == 1"
  11308. @click="previewImg(item.url)"
  11309. />
  11310. <img :src="word" alt v-else-if="item.fileType == 4" />
  11311. <img :src="video" alt v-else />
  11312. <!-- <span class="picName">{{ item.name }}</span> -->
  11313. <!-- <el-input
  11314. v-model="item.username"
  11315. placeholder="请输入学生名字"
  11316. style="margin-top: 10px"
  11317. ></el-input> -->
  11318. <div
  11319. class="pl_select_box"
  11320. @click="
  11321. getUpdateMore(true, checkUpload(), item.username, index)
  11322. "
  11323. >
  11324. {{ getSName(item.username) }}
  11325. </div>
  11326. <!-- <el-select
  11327. style="margin-top: 10px"
  11328. v-model="item.username"
  11329. filterable
  11330. allow-create
  11331. placeholder="请选择学生"
  11332. >
  11333. <el-option
  11334. v-for="item1 in checkUpload()"
  11335. :key="item1.userid"
  11336. :label="item1.name ? item1.name : item1.username"
  11337. :value="item1.userid"
  11338. >
  11339. </el-option>
  11340. </el-select> -->
  11341. <div class="deleteWord" @click="clean2(index)">
  11342. <img src="../assets/icon/deleteWorks.png" alt />
  11343. </div>
  11344. </div>
  11345. </div>
  11346. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11347. <div class="up_photo2">
  11348. <img src="../assets/icon/plwork.png" alt />
  11349. <span>点击上传文件</span>
  11350. </div>
  11351. <input
  11352. type="file"
  11353. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11354. multiple="multiple"
  11355. style="display: none"
  11356. @change="beforeUpload3($event, 6)"
  11357. />
  11358. </div>
  11359. </div>
  11360. </div>
  11361. <!-- capture="camera" -->
  11362. <div
  11363. class="upload_send"
  11364. @click="addCourseWorksPl(taskCount)"
  11365. v-if="!proVisible2"
  11366. >
  11367. 提交
  11368. </div>
  11369. </el-dialog>
  11370. <el-dialog
  11371. title="修改名称"
  11372. :visible.sync="dialogVisibleSname"
  11373. width="500px"
  11374. :before-close="handleClose"
  11375. class="dialog_diy"
  11376. center
  11377. >
  11378. <div
  11379. style="
  11380. text-align: center;
  11381. display: flex;
  11382. align-items: center;
  11383. justify-content: center;
  11384. "
  11385. >
  11386. <span class="tian1">名称</span>
  11387. <div
  11388. class="pl_select_box"
  11389. style="margin-left: 10px; width: 200px"
  11390. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11391. >
  11392. {{ getSName(worksSName) }}
  11393. </div>
  11394. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11395. placeholder="请选择学生">
  11396. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11397. :value="item.userid">
  11398. </el-option>
  11399. </el-select> -->
  11400. <!-- <el-input
  11401. v-model="worksSName"
  11402. style="width: 250px; margin: 15px 0px"
  11403. ></el-input> -->
  11404. </div>
  11405. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11406. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11407. <el-button type="primary" @click="updateName">确 定</el-button>
  11408. </span>
  11409. </el-dialog>
  11410. <el-dialog
  11411. title="英语写作"
  11412. :visible.sync="engDialogVisible"
  11413. :append-to-body="true"
  11414. width="800px"
  11415. :before-close="handleClose"
  11416. class="dialog_diy"
  11417. >
  11418. <onlineWrite
  11419. v-if="engDialogVisible"
  11420. :englishList="englishList"
  11421. :myAnswerList1="myAnswerList1"
  11422. :userid="userid"
  11423. ref="engJson"
  11424. ></onlineWrite>
  11425. <span slot="footer" class="dialog-footer">
  11426. <el-button @click="engDialogVisible = false">取 消</el-button>
  11427. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  11428. </span>
  11429. </el-dialog>
  11430. <el-dialog
  11431. title="英语写作"
  11432. :visible.sync="engUpdateDialogVisible"
  11433. :append-to-body="true"
  11434. width="800px"
  11435. :before-close="handleClose"
  11436. class="dialog_diy fullStyle"
  11437. >
  11438. <div class="engUpBox">
  11439. <div class="engUpTop">
  11440. <div class="engTitle">
  11441. <div>作文题目:</div>
  11442. <div>{{ englishList1.engTitle }}</div>
  11443. </div>
  11444. <div class="engText">
  11445. <div>作文内容:</div>
  11446. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  11447. </div>
  11448. </div>
  11449. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11450. <div class="oldBox">
  11451. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  11452. <div class="oldText">
  11453. <div class="detailBox">
  11454. <div class="oldDetail">
  11455. <div>标题:</div>
  11456. <div>{{ oldEnglishJson.engTitle }} </div>
  11457. </div>
  11458. <div class="oldDetail1">
  11459. <div>正文:</div>
  11460. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  11461. </div>
  11462. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11463. <div>图片:</div>
  11464. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11465. </div>
  11466. </div>
  11467. </div>
  11468. </div>
  11469. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  11470. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11471. <div class="oldText">
  11472. <div class="detailBox" style="position: relative;">
  11473. <div class="oldDetail">
  11474. <div>标题:</div>
  11475. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11476. <div v-else v-html="newEnglishList.engTitle"></div>
  11477. </div>
  11478. <div class="oldDetail">
  11479. <div>正文:</div>
  11480. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11481. <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText)"></div>
  11482. </div>
  11483. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11484. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11485. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11486. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11487. </div>
  11488. </div>
  11489. </div>
  11490. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  11491. <div class="oldMes" style="background: rgb(224 236 255);display: flex;flex-direction: row;flex-wrap: nowrap;align-items: center;overflow-x: auto;overflow-y: hidden;" v-if="newEnglishList1.length > 0">
  11492. <div v-if="isNoUserid" class="allName" :style="{minWidth: `calc(100% / ${engListLength})`,background: newEngIndex == -1 ? '#aacaff' : ''}" @click="setEngText(-1)" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11493. <div v-for="(item,index) in newEnglishList1" :key="index" class="allName" :style="{minWidth: `calc(100% / ${engListLength})`,background: index == newEngIndex ? '#aacaff' : ''}" @click="setEngText(index)">{{ item.username }}</div>
  11494. </div>
  11495. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11496. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11497. <div class="detailBox" style="position: relative;">
  11498. <div class="oldDetail">
  11499. <div>标题:</div>
  11500. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  11501. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  11502. </div>
  11503. <div class="oldDetail">
  11504. <div>正文:</div>
  11505. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  11506. <div v-else style="white-space: pre-line;" v-html="Correct(oldEnglishJson1.engText)"></div>
  11507. </div>
  11508. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11509. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11510. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11511. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11512. </div>
  11513. </div>
  11514. <div class="oldText" v-else-if="newEngIndex == -1">
  11515. <div class="detailBox" style="position: relative;">
  11516. <div class="oldDetail">
  11517. <div>标题:</div>
  11518. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11519. <div v-else v-html="newEnglishList.engTitle"></div>
  11520. </div>
  11521. <div class="oldDetail">
  11522. <div>正文:</div>
  11523. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11524. <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText)"></div>
  11525. </div>
  11526. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11527. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11528. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11529. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11530. </div>
  11531. </div>
  11532. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11533. <div class="detailBox" style="position: relative;">
  11534. <div class="oldDetail">
  11535. <div>标题:</div>
  11536. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11537. <div v-else>
  11538. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle"/>
  11539. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11540. </div>
  11541. </div>
  11542. <div class="oldDetail">
  11543. <div>正文:</div>
  11544. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engText"></div>
  11545. <div v-else>
  11546. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  11547. <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList1[newEngIndex].cWork.engText)"></div>
  11548. </div>
  11549. </div>
  11550. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11551. <el-button @click="isUpdateCorrect(newEnglishList1[newEngIndex].cWork.engText,4)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11552. <el-button @click="aiCorrect(newEnglishList1[newEngIndex].cWork.engText,4)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11553. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11554. </div>
  11555. </div>
  11556. </div>
  11557. </div>
  11558. </div>
  11559. <span slot="footer" class="dialog-footer">
  11560. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  11561. <el-button type="primary" @click="addCorrect">确 定</el-button>
  11562. </span>
  11563. </el-dialog>
  11564. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  11565. <interVideo
  11566. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11567. :videoJson="videoJson"
  11568. :userid="userid"
  11569. :id="id"
  11570. :courseType="courseType"
  11571. :taskCount="taskCount"
  11572. :toolindex="toolindex"
  11573. ></interVideo>
  11574. <UpdateMore
  11575. :dialogVisibleMember.sync="dialogVisibleMember"
  11576. :cList="uploadStudentJuri"
  11577. :userid="userid"
  11578. :searchTN="worksSName2"
  11579. @setPlname="setPlname"
  11580. ></UpdateMore>
  11581. <wordCloud
  11582. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11583. :data="wordCloudData"
  11584. ></wordCloud>
  11585. <el-dialog
  11586. title="挑人"
  11587. :visible.sync="dialogVisiblePickPeople"
  11588. width="650px"
  11589. :before-close="handleClose"
  11590. class="dialog_diy"
  11591. center
  11592. >
  11593. <div class="pick_box">
  11594. <div
  11595. class="noWorksName"
  11596. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11597. v-for="(item, index) in uploadStudentJuri"
  11598. :key="index"
  11599. @click="pickStudent(item)"
  11600. >
  11601. {{ item.name }}
  11602. </div>
  11603. </div>
  11604. </el-dialog>
  11605. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  11606. :englishVoiceJson='englishVoiceJson'
  11607. :userid="userid"
  11608. :id="id"
  11609. :courseType="courseType"
  11610. :taskCount="taskCount"
  11611. :toolindex="toolindex"
  11612. @selectSWorks="selectSWorks"
  11613. @selectStudent="selectStudent"
  11614. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  11615. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  11616. :userid="userid"
  11617. :dialogVisibleENScore.sync='dialogVisibleENScore'
  11618. :commentDetail="commentDetail"
  11619. :courseDetail="courseDetail"
  11620. :wScore="wScore"
  11621. :scoreDetail="scoreDetail"
  11622. @selectSWorks="selectSWorks"
  11623. @selectStudent="selectStudent"></checkEnglishVoice>
  11624. </div>
  11625. </template>
  11626. <script>
  11627. import "../common/aws-sdk-2.235.1.min.js";
  11628. // import pdf from "./components/pdf3";
  11629. import pdf from "./components/vpdf";
  11630. import AskStatic from "./components/askStatic";
  11631. import AskStatic2 from "./components/askStatic2";
  11632. import AnswerData2 from "./components/answerData2";
  11633. import AnswerData from "./components/answerData";
  11634. import EditorBar from "./tools/wangEnduit.vue";
  11635. import Table from "./tools/table.vue";
  11636. import Time from "./tools/time.vue";
  11637. import Mind from "./tools/jsmind.vue";
  11638. import Sunburst from "./tools/sunburst";
  11639. import SeeBoard from "./tools/seeBoard";
  11640. import * as imageConversion from "image-conversion";
  11641. import Audio from "./components/audio.vue";
  11642. import ImgDraw from "./tools/imgDraw/imgDraw";
  11643. import { Empty } from "element-ui";
  11644. import RecordRTC from "recordrtc";
  11645. import interVideo from "./interVideo/index.vue";
  11646. import UpdateMore from "./updateMore/updateMore.vue";
  11647. import wordCloud from "./wordCloud/index.vue";
  11648. import axios from "axios";
  11649. import JSZip from "jszip";
  11650. import FileSaver from "file-saver";
  11651. import onlineWrite from "./components/onlineWrite";
  11652. import englishEva from "./components/englishEva";
  11653. import * as Diff from 'diff'
  11654. import EnglishVoice from './EnglishVoice2/index.vue'
  11655. import checkEnglishVoice from './checkEnglishVoice/index.vue'
  11656. const getFile = (url) => {
  11657. return new Promise((resolve, reject) => {
  11658. var credentials = {
  11659. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  11660. secretAccessKey: "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",
  11661. }; //秘钥形式的登录上传
  11662. window.AWS.config.update(credentials);
  11663. window.AWS.config.region = "cn-northwest-1"; //设置区域
  11664. let url2 = url;
  11665. let _url2 = "";
  11666. if (
  11667. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  11668. ) {
  11669. _url2 = url2.split(
  11670. "https://view.officeapps.live.com/op/view.aspx?src="
  11671. )[1];
  11672. } else {
  11673. _url2 = url2;
  11674. }
  11675. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  11676. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  11677. var params = {
  11678. Bucket: "ccrb",
  11679. Key: name
  11680. };
  11681. s3.getObject(params, function (err, data) {
  11682. if (err) {
  11683. console.log(err, err.stack)
  11684. resolve({ data: 1 });
  11685. }else {
  11686. resolve({ data: data.Body });
  11687. console.log(data);
  11688. } // sxuccessful response
  11689. });
  11690. // axios({
  11691. // method: "get",
  11692. // url,
  11693. // responseType: "blob",
  11694. // })
  11695. // .then((data) => {
  11696. // resolve({ data: data.data });
  11697. // })
  11698. // .catch((error) => {
  11699. // resolve({ data: 1 });
  11700. // // reject(error.toString());
  11701. // });
  11702. });
  11703. };
  11704. export default {
  11705. components: {
  11706. EditorBar,
  11707. Time,
  11708. pdf,
  11709. AskStatic,
  11710. AskStatic2,
  11711. Mind,
  11712. Sunburst,
  11713. SeeBoard,
  11714. AnswerData2,
  11715. AnswerData,
  11716. Audio,
  11717. ImgDraw,
  11718. Table,
  11719. interVideo,
  11720. UpdateMore,
  11721. wordCloud,
  11722. onlineWrite,
  11723. englishEva,
  11724. EnglishVoice,
  11725. checkEnglishVoice
  11726. },
  11727. data() {
  11728. return {
  11729. bg: null,
  11730. drawShow: false,
  11731. dialogVisible: false,
  11732. dialogVisiblePl: false,
  11733. commentDialogVisible: false,
  11734. dialogVisibleMember: false,
  11735. dialogVisibleWordCloud: false,
  11736. videoVisible: false,
  11737. isStar: false,
  11738. studentEvalDialogVisible: false,
  11739. studentEvalDialogVisibleTeacher: false,
  11740. dialogVisibleSelect: false,
  11741. dialogVisibleSelectTeacher: false,
  11742. dialogVisibleScore: false,
  11743. dialogVisibleENScore: false,
  11744. dialogVisibleSentence: false,
  11745. dialogVisibleSentenceTeacher: false,
  11746. dialogVisibleSentence1: false,
  11747. dialogVisibleWorks: false,
  11748. dialogVisibleTable: false,
  11749. dialogVisibleTableTeacher: false,
  11750. dialogVisibleWord: false,
  11751. dialogVisibleWordTeacher: false,
  11752. dialogVisibleTable2: false,
  11753. dialogVisibleTable3: false,
  11754. dialogVisibleGroupWork: false,
  11755. dialogVisibleUpdateGroup: false,
  11756. dialogVisibleDeleteGroup: false,
  11757. dialogVisibleSname: false,
  11758. dialogVisibleVideo: false,
  11759. dialogVisiblePickPeople: false,
  11760. engDialogVisible: false,
  11761. engUpdateDialogVisible: false,
  11762. engEvaDialogVisible: false,
  11763. evaEngJson: {
  11764. teacherJson: {},
  11765. studentJson: {},
  11766. message: {},
  11767. },
  11768. isNoUserid:false,
  11769. engListLength:0,
  11770. engWid:"",
  11771. newEnglishList:{
  11772. engTitle:"",
  11773. engText:"",
  11774. },
  11775. newEnglishList1:[],
  11776. oldEnglishJson:{},
  11777. oldEnglishJson1:{},
  11778. englishList1:{},
  11779. englishList:{},
  11780. myAnswerList1:{},
  11781. topHeight:0,
  11782. newEngIndex:-1,
  11783. englishToolIndex:0,
  11784. worksSName: "",
  11785. classJuri: [],
  11786. uploadStudentJuri: [],
  11787. uploadCid: "",
  11788. snameWid: "",
  11789. sStudent: {},
  11790. sTool: "",
  11791. bzText: "",
  11792. commentDetail: [],
  11793. selectAnswer: [],
  11794. videoDetail: {},
  11795. selectJson: {},
  11796. eScore: { eBzText: "", eStar: [] },
  11797. id: this.$route.query.courseId,
  11798. userid: this.$route.query.userid,
  11799. classId: this.$route.query.cid,
  11800. // courseTypeLine: this.$route.query.type,
  11801. oid: this.$route.query.oid,
  11802. org: this.$route.query.org,
  11803. tType: this.$route.query.tType,
  11804. courseType: this.$route.query.type,
  11805. screenType: this.$route.query.screenType,
  11806. tcid2: this.$route.query.tcid,
  11807. tcid: "",
  11808. pptImgUrl: "",
  11809. pptImgUrl1: "",
  11810. commentText: "",
  11811. full: false,
  11812. sIsOpen: false,
  11813. IsLookOpen: false,
  11814. IsFollow: false,
  11815. pzDialog: false,
  11816. contentDialog: false,
  11817. mlDialog: false,
  11818. type: 1,
  11819. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  11820. sentenceList1: [],
  11821. tableJson: [],
  11822. tableJsonO: [],
  11823. wordJson: [],
  11824. wordJsonO: [],
  11825. vedio: [],
  11826. text: [],
  11827. textList: [],
  11828. line: [],
  11829. lineList: [],
  11830. chapTools: [],
  11831. chapToolList: [],
  11832. file: [],
  11833. fileC: [],
  11834. vedioTime: [],
  11835. upToolImg: "",
  11836. preTime: 0,
  11837. rateList: {
  11838. ca: 0,
  11839. },
  11840. rateParams: [],
  11841. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  11842. studyJuri: [
  11843. {
  11844. content: "",
  11845. cover: [],
  11846. upVedio: [],
  11847. upFile: [],
  11848. },
  11849. ],
  11850. isClose: 0,
  11851. plworkFile: [],
  11852. mr: require("../assets/vedioPic.png"),
  11853. word: require("../assets/icon/isWord.png"),
  11854. word2: require("../assets/icon/word2.png"),
  11855. video: require("../assets/icon/isVideo.png"),
  11856. noLikes: require("../assets/icon/comment/noLikes.png"),
  11857. likes: require("../assets/icon/comment/likes.png"),
  11858. scoreImg: require("../assets/score.png"),
  11859. courseDetail: {},
  11860. reply: "",
  11861. isSelect: false,
  11862. chapInfo: [],
  11863. chapInfoList: [],
  11864. taskCount: 0,
  11865. imgList: [],
  11866. noImgList: [],
  11867. pzList: [],
  11868. timeWorkList: [],
  11869. PlTextList: [
  11870. "Excellent!",
  11871. "nice!",
  11872. "很有创意!",
  11873. "还不错哦~",
  11874. "继续努力哦~",
  11875. ],
  11876. isClickNav: "",
  11877. navId: "",
  11878. playerOptions: {
  11879. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11880. autoplay: false, //如果true,浏览器准备好时开始回放。
  11881. muted: false, // 默认情况下将会消除任何音频。
  11882. loop: false, // 导致视频一结束就重新开始。
  11883. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11884. language: "zh-CN",
  11885. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11886. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11887. sources: [
  11888. {
  11889. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11890. src: "", //url地址require("../../assets/media/aaa.mp4")
  11891. },
  11892. ],
  11893. // poster: require("../../assets/tu31.png"), //你的封面地址
  11894. // poster: dataRes.imgUrl, //你的封面地址
  11895. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11896. controlBar: {
  11897. timeDivider: true, //当前时间和持续时间的分隔符
  11898. durationDisplay: true, //显示持续时间
  11899. remainingTimeDisplay: false, //是否显示剩余时间功能
  11900. fullscreenToggle: true, //全屏按钮
  11901. },
  11902. },
  11903. playerOptions1: {
  11904. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11905. autoplay: false, //如果true,浏览器准备好时开始回放。
  11906. muted: false, // 默认情况下将会消除任何音频。
  11907. loop: false, // 导致视频一结束就重新开始。
  11908. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11909. language: "zh-CN",
  11910. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11911. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11912. sources: [
  11913. {
  11914. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11915. src: "", //url地址require("../../assets/media/aaa.mp4")
  11916. },
  11917. ],
  11918. // poster: require("../../assets/tu31.png"), //你的封面地址
  11919. // poster: dataRes.imgUrl, //你的封面地址
  11920. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11921. controlBar: {
  11922. timeDivider: true, //当前时间和持续时间的分隔符
  11923. durationDisplay: true, //显示持续时间
  11924. remainingTimeDisplay: false, //是否显示剩余时间功能
  11925. fullscreenToggle: true, //全屏按钮
  11926. },
  11927. },
  11928. playerO: {},
  11929. noneBtnImg: false,
  11930. proVisible: false,
  11931. proVisible2: false,
  11932. progress: 0,
  11933. isFinishSize: 0,
  11934. isAllSize: 0,
  11935. questionAnswer: "",
  11936. answerQ: "", //问答标题
  11937. rateJson: [],
  11938. wbCount: 0,
  11939. wordCount: 0,
  11940. mindCount: 0,
  11941. askCount: 0,
  11942. noteCount: 0,
  11943. mindNetWorkCount: 0,
  11944. libraryCount: 0,
  11945. workCount: 0,
  11946. timeCount: 0,
  11947. answerCount: 0,
  11948. trainCount: 0,
  11949. evalCount: 0,
  11950. dialogImageUrl: "",
  11951. pictureDialog: false,
  11952. toolTypeList: [],
  11953. dialogVisible1: false,
  11954. dialogVisible2: false,
  11955. dialogVisible3: false,
  11956. dialogVisible6: false,
  11957. dialogVisible4: false,
  11958. isNoHomeWork: false,
  11959. dialogVisible5: false,
  11960. dialogVisible5Teacher: false,
  11961. dialogVisibleChoice: false,
  11962. dialogVisibleChoiceTeacher: false,
  11963. answerDialogVisible: false,
  11964. answerDialogVisibleTeacher: false,
  11965. juriVisible: false,
  11966. timeDialogVisible: false,
  11967. replyDialogVisible: false,
  11968. toolDialogVisible: false,
  11969. replyIndex: 0,
  11970. replyPid: "",
  11971. radio: [],
  11972. isAsk: false,
  11973. askJson: {
  11974. askCount: 1,
  11975. askTitle: "",
  11976. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11977. },
  11978. testJson: {},
  11979. checkJson: [],
  11980. askList: [],
  11981. answerList: [],
  11982. navList: [],
  11983. addPzDialog: false,
  11984. pzConText: "",
  11985. worksStudent: [],
  11986. isCloseList: [],
  11987. workStudent: [],
  11988. groupStudent: [],
  11989. groupStudentUid: [],
  11990. noWorksS: [],
  11991. isWorksS: [],
  11992. noWorksStudent: [],
  11993. toolindex: 0,
  11994. toolDetailIndex: null,
  11995. groupIndex: 0,
  11996. workTypeB: false,
  11997. workTypeC: false,
  11998. isAnswer: false,
  11999. isHovered: false,
  12000. isHovered1: false,
  12001. isHovered2: false,
  12002. timer: null,
  12003. opertimer: null,
  12004. showType: 0,
  12005. fileType: 0,
  12006. showPDF: false,
  12007. noteName: "",
  12008. evaJuri: [],
  12009. evalua: "",
  12010. eTitle: "",
  12011. eName: "",
  12012. eJson: {},
  12013. fid: "", //一级
  12014. sid: "", //二级
  12015. tid: "", //二级
  12016. typeMode: 1,
  12017. eJSONNum: 0,
  12018. Etype: 1,
  12019. data: {
  12020. meta: {
  12021. name: "example",
  12022. author: "dd@163.com",
  12023. version: "0.2",
  12024. },
  12025. format: "node_array",
  12026. data: [{ id: "root", isroot: true, topic: "" }],
  12027. },
  12028. fullDialogVisible: false,
  12029. fulltype: "",
  12030. fullUrl: "",
  12031. commentIndexJson: {},
  12032. Stbodywidth: 0,
  12033. ispzType: 0,
  12034. pzType: 1,
  12035. wScore: 0,
  12036. scoreDetail: "",
  12037. videoStart: false,
  12038. recorder: null,
  12039. groupJson: {},
  12040. islock: false,
  12041. groupJson2: {},
  12042. dialogVisibleGroup: false,
  12043. dialogVisibleGroup2: false,
  12044. updateGroupArray: [],
  12045. updateGroupUser: {},
  12046. deleteGroupUser: [],
  12047. deleteGroupArray: {},
  12048. checkChair: "",
  12049. checkDeleteGroup: [],
  12050. inviteCode: "",
  12051. courseGroupStudent: [],
  12052. courseGroupStudentUid: [],
  12053. courseGroup: {},
  12054. isGroup: false,
  12055. // toolIndex: null,
  12056. tool: {},
  12057. isWorkTool: [
  12058. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12059. ], //, 40
  12060. videoJson: {},
  12061. toolType: 0,
  12062. checktoolArray: [],
  12063. vChapterData: [],
  12064. isUpdateToolDetail: false,
  12065. isUpdateToolDetail1: false,
  12066. updateToolDetailInner: "",
  12067. checkboxList: [],
  12068. plIndex: "",
  12069. worksSName2: "",
  12070. worksSid: "",
  12071. wordCloudData: [],
  12072. isPickStudent: [],
  12073. pzStype: 1,
  12074. myAnList: {},
  12075. userMes:{},
  12076. downLoading: false,
  12077. greyType: false,
  12078. correctWord: [],
  12079. isUpdateText: "",
  12080. EnglishVoiceDialog: false,
  12081. englishVoiceJson: {},
  12082. englishVoiceJsonWork:[]
  12083. };
  12084. },
  12085. methods: {
  12086. gx(){
  12087. this.$forceUpdate();
  12088. },
  12089. isUpdateCorrect(t,p){
  12090. if(this.greyType == false){
  12091. this.isUpdateText = t;
  12092. this.greyType = true;
  12093. }else{
  12094. if(p == 1){
  12095. this.newEnglishList.engText = this.isUpdateText;
  12096. }else if(p == 2){
  12097. this.oldEnglishJson1.engText = this.isUpdateText;
  12098. }else if(p == 3){
  12099. this.newEnglishList.engText = this.isUpdateText;
  12100. }else{
  12101. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  12102. }
  12103. this.greyType = false
  12104. }
  12105. },
  12106. aiCorrect(t,p){
  12107. let aiText = "";
  12108. const loading = this.$loading.service({
  12109. background: "rgba(255, 255, 255)",
  12110. target: document.querySelectorAll(".loadingText")[0],
  12111. });
  12112. let param = {
  12113. model: "gpt-3.5-turbo",
  12114. temperature: 0,
  12115. max_tokens: 2048,
  12116. top_p: 1,
  12117. frequency_penalty: 0,
  12118. presence_penalty: 0,
  12119. messages: [
  12120. {
  12121. role: "user",
  12122. content:
  12123. "你的任务是为文字内容进行批注,请依照以下步骤完成任务,并仅显示第二步完成的内容:1.校对并更正:" + t,
  12124. },
  12125. ],
  12126. uid: this.userid,
  12127. stream: false,
  12128. };
  12129. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  12130. (res) => {
  12131. if (
  12132. res.data.FunctionResponse &&
  12133. res.data.FunctionResponse.result &&
  12134. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  12135. ) {
  12136. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  12137. return;
  12138. }
  12139. aiText =
  12140. res.data.FunctionResponse.choices[0].message.content;
  12141. aiText = aiText.replace(/%/g,"%25");
  12142. // let w = "";
  12143. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  12144. // for(var k = 0;k<a.length;k++){
  12145. // //diffWordsWithSpace
  12146. // if(a.length > 1){
  12147. // if(a[k].added == true){
  12148. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  12149. // }else if(a[k].removed == true){
  12150. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  12151. // }else{
  12152. // w += '<span>' + a[k].value + '</span>';
  12153. // }
  12154. // }else{
  12155. // if(p == 1){
  12156. // w = this.newEnglishList.engText;
  12157. // }else if(p == 2){
  12158. // w = this.oldEnglishJson1.engText;
  12159. // }else if(p == 3){
  12160. // w = this.newEnglishList.engText;
  12161. // }else{
  12162. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  12163. // }
  12164. // }
  12165. // }
  12166. if(p == 1){
  12167. this.newEnglishList.engText = aiText;
  12168. }else if(p == 2){
  12169. this.oldEnglishJson1.engText = aiText;
  12170. }else if(p == 3){
  12171. this.newEnglishList.engText = aiText;
  12172. }else{
  12173. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  12174. }
  12175. loading.close();
  12176. },
  12177. (err) => {
  12178. console.log(err);
  12179. loading.close();
  12180. }
  12181. );
  12182. },
  12183. addToolChoose() {
  12184. if (!this.checktoolArray.length) {
  12185. this.$message.error("请选择要添加的任务");
  12186. return;
  12187. }
  12188. if (
  12189. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12190. this.taskCount
  12191. ].toolChoose[0].tool.length
  12192. ) {
  12193. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12194. this.taskCount
  12195. ].toolChoose[0].tool = this.checktoolArray;
  12196. } else {
  12197. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12198. this.taskCount
  12199. ].toolChoose.push({
  12200. tool: this.checktoolArray,
  12201. toolDetail: "",
  12202. toolType: 0,
  12203. askCount: 1,
  12204. askTitle: "",
  12205. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12206. });
  12207. }
  12208. let params = [
  12209. {
  12210. cid: this.id,
  12211. chapters: JSON.stringify(this.chapInfoList),
  12212. uid: this.userid,
  12213. unitIndex: this.courseType,
  12214. },
  12215. ];
  12216. this.ajax
  12217. .post(this.$store.state.api + "updateWorkNew4", params)
  12218. .then((res) => {
  12219. this.$message({
  12220. message: "添加成功",
  12221. type: "success",
  12222. });
  12223. this.checktoolArray = [];
  12224. this.getCourseDetail(2);
  12225. this.checkBz(
  12226. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12227. this.taskCount
  12228. ].toolChoose.length - 1
  12229. );
  12230. this.toolDialogVisible = false;
  12231. this.refreshCourse();
  12232. this.$forceUpdate();
  12233. })
  12234. .catch((err) => {
  12235. console.error(err);
  12236. });
  12237. },
  12238. checkBz(index) {
  12239. this.isUpdateToolDetail = false;
  12240. this.$forceUpdate();
  12241. setTimeout(() => {
  12242. document.scrollingElement.scrollTop =
  12243. document.querySelectorAll(".filebox")[index].offsetTop +
  12244. document.querySelector(".student_body").offsetTop;
  12245. }, 500);
  12246. },
  12247. updateToolDetail(i, type) {
  12248. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  12249. this.toolDetailIndex = i
  12250. this.isUpdateToolDetail1 = true;
  12251. setTimeout(() => {
  12252. this.updateToolDetailInner = JSON.parse(
  12253. JSON.stringify(
  12254. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12255. this.taskCount
  12256. ].toolChoose[i].toolDetail
  12257. )
  12258. );
  12259. document.querySelector(".checkTextArea").focus();
  12260. }, 0);
  12261. } else if((this.isUpdateToolDetail1 && type != 2)){
  12262. // this.toolDetailIndex = i;
  12263. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12264. this.taskCount
  12265. ].toolChoose[i].toolDetail = JSON.parse(
  12266. JSON.stringify(this.updateToolDetailInner)
  12267. );
  12268. let params = [
  12269. {
  12270. cid: this.id,
  12271. chapters: JSON.stringify(this.chapInfoList),
  12272. uid: this.userid,
  12273. unitIndex: this.courseType,
  12274. },
  12275. ];
  12276. this.ajax
  12277. .post(this.$store.state.api + "updateWorkNew4", params)
  12278. .then((res) => {
  12279. this.isUpdateToolDetail1 = false;
  12280. this.$message({
  12281. message: "修改成功",
  12282. type: "success",
  12283. });
  12284. this.toolDetailIndex = null;
  12285. this.updateToolDetailInner = "";
  12286. this.getCourseDetail(2);
  12287. this.$forceUpdate();
  12288. })
  12289. .catch((err) => {
  12290. console.error(err);
  12291. });
  12292. } else if((this.isUpdateToolDetail1 && type == 2)){
  12293. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12294. this.taskCount
  12295. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  12296. JSON.stringify(this.updateToolDetailInner)
  12297. );
  12298. let params = [
  12299. {
  12300. cid: this.id,
  12301. chapters: JSON.stringify(this.chapInfoList),
  12302. uid: this.userid,
  12303. unitIndex: this.courseType,
  12304. },
  12305. ];
  12306. this.ajax
  12307. .post(this.$store.state.api + "updateWorkNew4", params)
  12308. .then((res) => {
  12309. this.$message({
  12310. message: "修改成功",
  12311. type: "success",
  12312. });
  12313. this.toolDetailIndex = i;
  12314. this.isUpdateToolDetail1 = true;
  12315. setTimeout(() => {
  12316. this.updateToolDetailInner = JSON.parse(
  12317. JSON.stringify(
  12318. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12319. this.taskCount
  12320. ].toolChoose[i].toolDetail
  12321. )
  12322. );
  12323. document.querySelector(".checkTextArea").focus();
  12324. }, 0);
  12325. this.getCourseDetail(2);
  12326. this.$forceUpdate();
  12327. })
  12328. .catch((err) => {
  12329. console.error(err);
  12330. });
  12331. }
  12332. },
  12333. jumpGj(i, j, k, l) {
  12334. for (var z = 0; z < this.navList.length; z++) {
  12335. for (var q = 0; q < this.navList[z].task.length; q++) {
  12336. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  12337. this.navList[z].task[q].tool[w].isTool = false;
  12338. }
  12339. }
  12340. }
  12341. this.navList[i].task[j].tool[k].isTool =
  12342. !this.navList[i].task[j].tool[k].isTool;
  12343. var a = document.scrollingElement;
  12344. this.navId = ""
  12345. let target = document.querySelector(`#gj${k}`);
  12346. if (target) {
  12347. target.scrollIntoView(true);
  12348. setTimeout(() => {
  12349. a.scrollTop = a.scrollTop - 150;
  12350. }, 0);
  12351. }
  12352. if (l) {
  12353. this.courseType = i;
  12354. // this.navId = l;
  12355. this.taskCount = j;
  12356. this.selectPz();
  12357. this.getHomeWork();
  12358. this.getCourseDetail(2);
  12359. }
  12360. // var b = this.$refs["bz" + k][0];
  12361. // a.scrollTop = b.offsetTop;
  12362. },
  12363. addTools2(i) {
  12364. if (i == 4) {
  12365. // this.openTools2(4);
  12366. this.$message.error("暂未开放");
  12367. return;
  12368. }
  12369. if (i == 45) {
  12370. // this.openTools2(45);
  12371. this.$message.error("暂未开放");
  12372. return;
  12373. }
  12374. if (i == 47) {
  12375. // this.openTools2(47);
  12376. this.$message.error("暂未开放");
  12377. return;
  12378. }
  12379. if (i == 49) {
  12380. // this.openTools2(49);
  12381. this.$message.error("暂未开放");
  12382. return;
  12383. }
  12384. if (i == 62) {
  12385. // this.openTools(itemTaskIndex, 62, toolIndex);
  12386. this.$message.error("暂未开放");
  12387. return;
  12388. }
  12389. if (i == 15) {
  12390. // this.openTools(itemTaskIndex, 15, toolIndex);
  12391. this.$message.error("暂未开放");
  12392. return;
  12393. }
  12394. if (i == 40) {
  12395. // this.openTools(itemTaskIndex, 40, toolIndex);
  12396. this.$message.error("暂未开放");
  12397. return;
  12398. }
  12399. if (i == 41) {
  12400. // this.openTools(itemTaskIndex, 41, toolIndex);
  12401. this.$message.error("暂未开放");
  12402. return;
  12403. }
  12404. if (i == 42) {
  12405. // this.openTools(itemTaskIndex, 42, toolIndex);
  12406. this.$message.error("暂未开放");
  12407. return;
  12408. }
  12409. if (this.checktoolArray.length > 0) {
  12410. if (this.checktoolArray.indexOf(i) != -1) {
  12411. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  12412. } else {
  12413. this.checktoolArray = [];
  12414. this.checktoolArray.push(i);
  12415. }
  12416. } else {
  12417. this.checktoolArray.push(i);
  12418. }
  12419. this.$forceUpdate();
  12420. },
  12421. jump() {
  12422. window.parent.postMessage({ tools: "43" }, "*");
  12423. },
  12424. getUpdateMore(f, checkboxList, searchTN, index) {
  12425. this.dialogVisibleMember = f;
  12426. this.checkboxList = checkboxList;
  12427. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12428. this.plIndex = index;
  12429. },
  12430. setPlname(a) {
  12431. if (this.plworkFile.length) {
  12432. this.plworkFile[this.plIndex].username = a;
  12433. } else {
  12434. this.worksSName = a;
  12435. }
  12436. this.dialogVisibleMember = false;
  12437. },
  12438. previewImg(url) {
  12439. this.$hevueImgPreview(url);
  12440. },
  12441. checkImg(list) {
  12442. if (!list.length) {
  12443. return;
  12444. }
  12445. this.$hevueImgPreview({
  12446. multiple: true, // 开启多图预览模式
  12447. imgList: list, // 需要预览的多图数组
  12448. });
  12449. },
  12450. change(val) {
  12451. console.log(val);
  12452. },
  12453. goTo(path) {
  12454. this.$router.push(path);
  12455. },
  12456. handlePictureCardPreview(url) {
  12457. this.dialogImageUrl = url;
  12458. this.pictureDialog = true;
  12459. },
  12460. clean(type) {
  12461. if (type == 1) {
  12462. this.studyJuri[0].cover.splice(0, 1);
  12463. } else if (type == 2) {
  12464. this.studyJuri[0].upVedio.splice(0, 1);
  12465. } else {
  12466. this.studyJuri[0].upFile.splice(0, 1);
  12467. }
  12468. },
  12469. clean2(index) {
  12470. this.plworkFile.splice(index, 1);
  12471. },
  12472. handleClose(done) {
  12473. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12474. this.videoDetail.sources[0].src = "";
  12475. }
  12476. this.commentIndexJson = {};
  12477. done();
  12478. },
  12479. fullTools() {
  12480. this.full = !this.full;
  12481. },
  12482. imgChange(file, fileList, type) {
  12483. if (type == 1) {
  12484. var _tmp = this.studyJuri[0].cover;
  12485. } else if (type == 2) {
  12486. var _tmp = this.studyJuri[0].upVedio;
  12487. } else {
  12488. var _tmp = this.studyJuri[0].upFile;
  12489. }
  12490. this.noneBtnImg = _tmp.length >= 1;
  12491. },
  12492. setContent(bool) {
  12493. this.contentDialog = bool;
  12494. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12495. document.querySelector(".workd_media").style.height = "650px";
  12496. } else if (document.querySelector(".workd_media")) {
  12497. document.querySelector(".workd_media").style.height = "auto";
  12498. }
  12499. },
  12500. setContent2(bool) {
  12501. this.mlDialog = bool;
  12502. if (
  12503. bool &&
  12504. this.contentDialog &&
  12505. document.querySelector(".workd_media")
  12506. ) {
  12507. document.querySelector(".workd_media").style.height = "650px";
  12508. } else if (document.querySelector(".workd_media")) {
  12509. document.querySelector(".workd_media").style.height = "auto";
  12510. }
  12511. },
  12512. openToolAll() {
  12513. this.toolDialogVisible = true;
  12514. },
  12515. addImg(e) {
  12516. var el = e.currentTarget;
  12517. // this.$message.success('触发上传')
  12518. el.getElementsByTagName("input")[0].click();
  12519. e.target.value = "";
  12520. },
  12521. addSelectAnswer() {
  12522. let params = [
  12523. {
  12524. uid: this.userid,
  12525. cid: this.id,
  12526. stage: this.courseType,
  12527. task: this.taskCount,
  12528. tool: this.toolindex,
  12529. content: this.selectAnswer.answer,
  12530. type: 7,
  12531. },
  12532. ];
  12533. this.ajax
  12534. .post(this.$store.state.api + "addCourseWorks", params)
  12535. .then((res) => {
  12536. this.$message({
  12537. message: "提交成功",
  12538. type: "success",
  12539. });
  12540. this.dialogVisibleSelect = false;
  12541. // this.selectAnswer = {};
  12542. this.selectSWorks();
  12543. this.selectStudent();
  12544. })
  12545. .catch((err) => {
  12546. this.$message.error("提交失败");
  12547. console.error(err);
  12548. });
  12549. },
  12550. addSelectAnswerTeacher() {
  12551. let params = [
  12552. {
  12553. uid: this.sStudent.userid,
  12554. cid: this.id,
  12555. stage: this.courseType,
  12556. task: this.taskCount,
  12557. tool: this.toolindex,
  12558. content: this.selectAnswer.answer,
  12559. type: 7,
  12560. },
  12561. ];
  12562. this.ajax
  12563. .post(this.$store.state.api + "addCourseWorks", params)
  12564. .then((res) => {
  12565. this.$message({
  12566. message: "提交成功",
  12567. type: "success",
  12568. });
  12569. this.dialogVisibleSelectTeacher = false;
  12570. // this.selectAnswer = {};
  12571. this.selectSWorks();
  12572. this.selectStudent();
  12573. })
  12574. .catch((err) => {
  12575. this.$message.error("提交失败");
  12576. console.error(err);
  12577. });
  12578. },
  12579. addSenWorks() {
  12580. for (var i = 0; i < this.sentenceList.length; i++) {
  12581. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12582. if (
  12583. this.sentenceList[i].chooseSenList[j] == undefined ||
  12584. this.sentenceList[i].chooseSenList[j] == ""
  12585. ) {
  12586. this.$message.error("请将答案填写完整!");
  12587. return;
  12588. }
  12589. }
  12590. }
  12591. let params = [
  12592. {
  12593. uid: this.userid,
  12594. cid: this.id,
  12595. stage: this.courseType,
  12596. task: this.taskCount,
  12597. tool: this.toolindex,
  12598. content: JSON.stringify(this.sentenceList),
  12599. type: 9,
  12600. },
  12601. ];
  12602. this.ajax
  12603. .post(this.$store.state.api + "addCourseWorks", params)
  12604. .then((res) => {
  12605. this.$message({
  12606. message: "提交成功",
  12607. type: "success",
  12608. });
  12609. this.dialogVisibleSentence = false;
  12610. // this.selectAnswer = {};
  12611. this.selectSWorks();
  12612. this.selectStudent();
  12613. })
  12614. .catch((err) => {
  12615. this.$message.error("提交失败");
  12616. console.error(err);
  12617. });
  12618. },
  12619. addSenWorksTeacher() {
  12620. for (var i = 0; i < this.sentenceList.length; i++) {
  12621. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12622. if (
  12623. this.sentenceList[i].chooseSenList[j] == undefined ||
  12624. this.sentenceList[i].chooseSenList[j] == ""
  12625. ) {
  12626. this.$message.error("请将答案填写完整!");
  12627. return;
  12628. }
  12629. }
  12630. }
  12631. let params = [
  12632. {
  12633. uid: this.sStudent.userid,
  12634. cid: this.id,
  12635. stage: this.courseType,
  12636. task: this.taskCount,
  12637. tool: this.toolindex,
  12638. content: JSON.stringify(this.sentenceList),
  12639. type: 9,
  12640. },
  12641. ];
  12642. this.ajax
  12643. .post(this.$store.state.api + "addCourseWorks", params)
  12644. .then((res) => {
  12645. this.$message({
  12646. message: "提交成功",
  12647. type: "success",
  12648. });
  12649. this.dialogVisibleSentenceTeacher = false;
  12650. // this.selectAnswer = {};
  12651. this.selectSWorks();
  12652. this.selectStudent();
  12653. })
  12654. .catch((err) => {
  12655. this.$message.error("提交失败");
  12656. console.error(err);
  12657. });
  12658. },
  12659. returnTableText() {
  12660. this.$confirm("确定还原此模板吗?", "提示", {
  12661. confirmButtonText: "确定",
  12662. cancelButtonText: "取消",
  12663. type: "warning",
  12664. })
  12665. .then(() => {
  12666. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  12667. })
  12668. .catch(() => {});
  12669. },
  12670. addTableWorks() {
  12671. let params = [
  12672. {
  12673. uid: this.userid,
  12674. cid: this.id,
  12675. stage: this.courseType,
  12676. task: this.taskCount,
  12677. tool: this.toolindex,
  12678. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12679. type: 10,
  12680. },
  12681. ];
  12682. this.ajax
  12683. .post(this.$store.state.api + "addCourseWorks", params)
  12684. .then((res) => {
  12685. this.$message({
  12686. message: "提交成功",
  12687. type: "success",
  12688. });
  12689. this.dialogVisibleTable = false;
  12690. // this.selectAnswer = {};
  12691. this.selectSWorks();
  12692. this.selectStudent();
  12693. })
  12694. .catch((err) => {
  12695. this.$message.error("提交失败");
  12696. console.error(err);
  12697. });
  12698. },
  12699. tableRowClassName({ row, rowIndex }) {
  12700. if ((rowIndex + 1) % 2 === 0) {
  12701. return "even_row";
  12702. } else {
  12703. return "";
  12704. }
  12705. },
  12706. addTableWorksTeacher() {
  12707. let params = [
  12708. {
  12709. uid: this.sStudent.userid,
  12710. cid: this.id,
  12711. stage: this.courseType,
  12712. task: this.taskCount,
  12713. tool: this.toolindex,
  12714. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12715. type: 10,
  12716. },
  12717. ];
  12718. this.ajax
  12719. .post(this.$store.state.api + "addCourseWorks", params)
  12720. .then((res) => {
  12721. this.$message({
  12722. message: "提交成功",
  12723. type: "success",
  12724. });
  12725. this.dialogVisibleTableTeacher = false;
  12726. // this.selectAnswer = {};
  12727. this.selectSWorks();
  12728. this.selectStudent();
  12729. })
  12730. .catch((err) => {
  12731. this.$message.error("提交失败");
  12732. console.error(err);
  12733. });
  12734. },
  12735. returnWordText() {
  12736. this.$confirm("确定还原此模板吗?", "提示", {
  12737. confirmButtonText: "确定",
  12738. cancelButtonText: "取消",
  12739. type: "warning",
  12740. })
  12741. .then(() => {
  12742. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  12743. })
  12744. .catch(() => {});
  12745. },
  12746. addWordWorks() {
  12747. let params = [
  12748. {
  12749. uid: this.userid,
  12750. cid: this.id,
  12751. stage: this.courseType,
  12752. task: this.taskCount,
  12753. tool: this.toolindex,
  12754. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12755. type: 13,
  12756. atool: 52,
  12757. },
  12758. ];
  12759. this.ajax
  12760. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12761. .then((res) => {
  12762. this.$message({
  12763. message: "提交成功",
  12764. type: "success",
  12765. });
  12766. this.dialogVisibleWord = false;
  12767. // this.selectAnswer = {};
  12768. this.selectSWorks();
  12769. this.selectStudent();
  12770. })
  12771. .catch((err) => {
  12772. this.$message.error("提交失败");
  12773. console.error(err);
  12774. });
  12775. },
  12776. addWordWorksTeacher() {
  12777. let params = [
  12778. {
  12779. uid: this.sStudent.userid,
  12780. cid: this.id,
  12781. stage: this.courseType,
  12782. task: this.taskCount,
  12783. tool: this.toolindex,
  12784. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12785. type: 13,
  12786. atool: 52,
  12787. },
  12788. ];
  12789. this.ajax
  12790. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12791. .then((res) => {
  12792. this.$message({
  12793. message: "提交成功",
  12794. type: "success",
  12795. });
  12796. this.dialogVisibleWordTeacher = false;
  12797. // this.selectAnswer = {};
  12798. this.selectSWorks();
  12799. this.selectStudent();
  12800. })
  12801. .catch((err) => {
  12802. this.$message.error("提交失败");
  12803. console.error(err);
  12804. });
  12805. },
  12806. addCourseWorks(i) {
  12807. var typesql;
  12808. if (this.fileType === 0) {
  12809. typesql = 1;
  12810. } else if (this.fileType === 1) {
  12811. typesql = 4;
  12812. } else if (this.fileType === 2) {
  12813. typesql = 5;
  12814. } else if (this.fileType === 3) {
  12815. typesql = 12;
  12816. }
  12817. if (!this.studyJuri[0].cover[0].url) {
  12818. this.$message.error("请上传文件");
  12819. return;
  12820. }
  12821. let params = [
  12822. {
  12823. uid: this.userid,
  12824. cid: this.id,
  12825. stage: this.courseType,
  12826. task: i,
  12827. tool: this.toolindex,
  12828. content: this.studyJuri[0].cover[0].url,
  12829. type: typesql,
  12830. },
  12831. ];
  12832. this.ajax
  12833. .post(this.$store.state.api + "addCourseWorksR", params)
  12834. .then((res) => {
  12835. this.$message({
  12836. message: "提交成功",
  12837. type: "success",
  12838. });
  12839. this.studyJuri[0].cover = [];
  12840. this.dialogVisible = false;
  12841. this.getCourseDetail(2);
  12842. })
  12843. .catch((err) => {
  12844. this.$message.error("提交失败");
  12845. console.error(err);
  12846. });
  12847. },
  12848. addCourseWorksPl(i) {
  12849. let _files = this.plworkFile;
  12850. var c = 1;
  12851. for (var k = 0; k < _files.length; k++) {
  12852. if (!_files[k].username) {
  12853. c = 2;
  12854. }
  12855. }
  12856. if (c == 2) {
  12857. this.$message.error("请填写学生姓名");
  12858. return;
  12859. }
  12860. let params = [
  12861. {
  12862. ateacher: this.userid,
  12863. cid: this.id,
  12864. stage: this.courseType,
  12865. task: i,
  12866. tool: this.toolindex,
  12867. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  12868. },
  12869. ];
  12870. this.ajax
  12871. .post(this.$store.state.api + "addCourseWorksPl", params)
  12872. .then((res) => {
  12873. this.$message({
  12874. message: "提交成功",
  12875. type: "success",
  12876. });
  12877. this.plworkFile = [];
  12878. this.dialogVisiblePl = false;
  12879. this.getCourseDetail(2);
  12880. })
  12881. .catch((err) => {
  12882. this.$message.error("提交失败");
  12883. console.error(err);
  12884. });
  12885. },
  12886. addCourseWorks2(i) {
  12887. var typesql;
  12888. if (this.fileType === 0) {
  12889. typesql = 0;
  12890. } else if (this.fileType === 1) {
  12891. typesql = 1;
  12892. } else if (this.fileType === 2) {
  12893. typesql = 3;
  12894. } else if (this.fileType === 3) {
  12895. typesql = 12;
  12896. }
  12897. if (!this.studyJuri[0].cover[0].url) {
  12898. this.$message.error("请上传文件");
  12899. return;
  12900. }
  12901. let params = [
  12902. {
  12903. uid: this.userid,
  12904. cid: this.id,
  12905. stage: this.courseType,
  12906. task: i,
  12907. tool: this.toolindex,
  12908. content: JSON.stringify({
  12909. type: typesql,
  12910. groupIndex: this.groupIndex,
  12911. url: this.studyJuri[0].cover[0].url,
  12912. }).replaceAll(/%/g, "%25"),
  12913. type: 11,
  12914. atool: 49,
  12915. text: "",
  12916. },
  12917. ];
  12918. this.ajax
  12919. .post(this.$store.state.api + "addCourseWorks5", params)
  12920. .then((res) => {
  12921. this.$message({
  12922. message: "提交成功",
  12923. type: "success",
  12924. });
  12925. this.studyJuri[0].cover = [];
  12926. this.dialogVisibleGroupWork = false;
  12927. this.getCourseDetail(2);
  12928. })
  12929. .catch((err) => {
  12930. this.$message.error("提交失败");
  12931. console.error(err);
  12932. });
  12933. },
  12934. addEnglishWork() {
  12935. this.myAnList = this.$refs['engJson'].myAnswerList;
  12936. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  12937. this.$message.error("请输入作文标题和正文!");
  12938. return;
  12939. }
  12940. let params = [
  12941. {
  12942. uid: this.userid,
  12943. cid: this.id,
  12944. stage: this.courseType,
  12945. task: this.taskCount,
  12946. tool: this.englishToolIndex,
  12947. content: JSON.stringify(this.myAnList),
  12948. type: 16,
  12949. atool: 69,
  12950. text: "",
  12951. },
  12952. ];
  12953. this.ajax
  12954. .post(this.$store.state.api + "addCourseWorks5", params)
  12955. .then((res) => {
  12956. this.$message({
  12957. message: "提交成功",
  12958. type: "success",
  12959. });
  12960. this.myAnList = {};
  12961. this.englishList = {};
  12962. this.englishToolIndex = 0;
  12963. this.engDialogVisible = false;
  12964. this.selectSWorks();
  12965. this.selectStudent();
  12966. })
  12967. .catch((err) => {
  12968. this.$message.error("提交失败");
  12969. console.error(err);
  12970. });
  12971. },
  12972. addCourseWorksGong(i, data, tool) {
  12973. let params = [
  12974. {
  12975. uid: this.userid,
  12976. cid: this.id,
  12977. stage: this.courseType,
  12978. task: this.taskCount,
  12979. tool: i,
  12980. content: data,
  12981. type: 12,
  12982. atool: tool,
  12983. text: "",
  12984. },
  12985. ];
  12986. this.ajax
  12987. .post(this.$store.state.api + "addCourseWorks5", params)
  12988. .then((res) => {
  12989. this.$message({
  12990. message: "提交成功",
  12991. type: "success",
  12992. });
  12993. this.studyJuri[0].cover = [];
  12994. this.selectSWorks();
  12995. this.selectStudent();
  12996. })
  12997. .catch((err) => {
  12998. this.$message.error("提交失败");
  12999. console.error(err);
  13000. });
  13001. },
  13002. addCourseWorksGongTeacher(i, data, tool) {
  13003. let params = [
  13004. {
  13005. uid: this.sStudent.userid,
  13006. cid: this.id,
  13007. stage: this.courseType,
  13008. task: this.taskCount,
  13009. tool: i,
  13010. content: data,
  13011. type: 12,
  13012. atool: tool,
  13013. text: "",
  13014. },
  13015. ];
  13016. this.ajax
  13017. .post(this.$store.state.api + "addCourseWorks5", params)
  13018. .then((res) => {
  13019. this.$message({
  13020. message: "提交成功",
  13021. type: "success",
  13022. });
  13023. this.studyJuri[0].cover = [];
  13024. this.dialogVisibleWorks = false;
  13025. this.selectSWorks();
  13026. this.selectStudent();
  13027. })
  13028. .catch((err) => {
  13029. this.$message.error("提交失败");
  13030. console.error(err);
  13031. });
  13032. },
  13033. addCourseWorksGongPl(i, data, tool, type) {
  13034. let params = [
  13035. {
  13036. uid: this.sStudent.userid,
  13037. cid: this.id,
  13038. stage: this.courseType,
  13039. task: this.taskCount,
  13040. tool: i,
  13041. content: data,
  13042. type: type,
  13043. atool: tool,
  13044. text: "",
  13045. },
  13046. ];
  13047. this.ajax
  13048. .post(this.$store.state.api + "addCourseWorks5", params)
  13049. .then((res) => {
  13050. this.$message({
  13051. message: "提交成功",
  13052. type: "success",
  13053. });
  13054. this.studyJuri[0].cover = [];
  13055. this.dialogVisibleWorks = false;
  13056. this.selectSWorks();
  13057. this.selectStudent();
  13058. })
  13059. .catch((err) => {
  13060. this.$message.error("提交失败");
  13061. console.error(err);
  13062. });
  13063. },
  13064. addCourseWorksTeacher(i) {
  13065. var typesql;
  13066. if (this.sTool == 32) {
  13067. this.addCourseWorksGongTeacher(
  13068. this.toolindex,
  13069. this.studyJuri[0].cover[0].url,
  13070. this.sTool
  13071. );
  13072. return;
  13073. }
  13074. if (this.fileType === 0) {
  13075. typesql = 1;
  13076. } else if (this.fileType === 1) {
  13077. typesql = 4;
  13078. } else if (this.fileType === 2) {
  13079. typesql = 5;
  13080. } else if (this.fileType === 3) {
  13081. typesql = 12;
  13082. }
  13083. if (this.sTool == 50) {
  13084. this.addCourseWorksGongPl(
  13085. this.toolindex,
  13086. this.studyJuri[0].cover[0].url,
  13087. this.sTool,
  13088. typesql
  13089. );
  13090. return;
  13091. }
  13092. if (!this.studyJuri[0].cover[0].url) {
  13093. this.$message.error("请上传文件");
  13094. return;
  13095. }
  13096. let params = [
  13097. {
  13098. uid: this.sStudent.userid,
  13099. cid: this.id,
  13100. stage: this.courseType,
  13101. task: i,
  13102. tool: this.toolindex,
  13103. content: this.studyJuri[0].cover[0].url,
  13104. type: typesql,
  13105. ateacher: this.userid,
  13106. },
  13107. ];
  13108. this.ajax
  13109. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  13110. .then((res) => {
  13111. this.$message({
  13112. message: "提交成功",
  13113. type: "success",
  13114. });
  13115. this.studyJuri[0].cover = [];
  13116. this.dialogVisibleWorks = false;
  13117. this.getCourseDetail(2);
  13118. })
  13119. .catch((err) => {
  13120. this.$message.error("提交失败");
  13121. console.error(err);
  13122. });
  13123. },
  13124. selectUploadStudent(type) {
  13125. const loading = this.$loading.service({
  13126. background: "rgba(255, 255, 255, 0.7)",
  13127. target: document.body,
  13128. });
  13129. let params = {
  13130. cid: this.uploadCid,
  13131. oid: this.oid,
  13132. cn: "",
  13133. };
  13134. this.ajax
  13135. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13136. .then((res) => {
  13137. loading.close();
  13138. var studentK = [];
  13139. if (this.isWorksS[this.toolindex].length > 0) {
  13140. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  13141. studentK.push(this.isWorksS[this.toolindex][z].uid);
  13142. }
  13143. studentK = studentK.join(",");
  13144. }
  13145. this.uploadStudentJuri = res.data[0].filter((el) => {
  13146. return studentK.indexOf(el.userid) == -1;
  13147. });
  13148. if (this.worksSName && this.worksSid) {
  13149. this.uploadStudentJuri.push({
  13150. userid: this.worksSid,
  13151. name: this.worksSName,
  13152. });
  13153. }
  13154. if (type == 1) {
  13155. this.plworkFile = [];
  13156. this.dialogVisibleSname = true;
  13157. } else if (type == 2) {
  13158. this.dialogVisiblePl = true;
  13159. }
  13160. })
  13161. .catch((err) => {
  13162. loading.close();
  13163. console.error(err);
  13164. });
  13165. },
  13166. selectPickStudent() {
  13167. const loading = this.$loading.service({
  13168. background: "rgba(255, 255, 255, 0.7)",
  13169. target: document.body,
  13170. });
  13171. let params = {
  13172. cid: this.uploadCid,
  13173. oid: this.oid,
  13174. cn: "",
  13175. };
  13176. this.ajax
  13177. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13178. .then((res) => {
  13179. loading.close();
  13180. this.uploadStudentJuri = res.data[0];
  13181. this.dialogVisiblePickPeople = true;
  13182. })
  13183. .catch((err) => {
  13184. loading.close();
  13185. console.error(err);
  13186. });
  13187. },
  13188. arrayToArray(arrayo, arrayt) {
  13189. let array1 = arrayo;
  13190. let array2 = arrayt;
  13191. let commonElements = [];
  13192. for (let i = 0; i < array1.length; i++) {
  13193. for (let j = 0; j < array2.length; j++) {
  13194. if (array1[i] === array2[j]) {
  13195. commonElements.push(array1[i]);
  13196. }
  13197. }
  13198. }
  13199. return commonElements;
  13200. },
  13201. selectWorksStudent() {
  13202. let params = {
  13203. oid: this.oid,
  13204. cid: this.courseDetail.juri,
  13205. };
  13206. this.ajax
  13207. .get(this.$store.state.api + "selectWorksStudent", params)
  13208. .then((res) => {
  13209. var a = res.data[0];
  13210. for (var i = 0; i < this.isWorksS.length; i++) {
  13211. this.noWorksS[i] = [];
  13212. var studentK = [];
  13213. if (this.isWorksS[i].length > 0) {
  13214. for (var z = 0; z < this.isWorksS[i].length; z++) {
  13215. studentK.push(this.isWorksS[i][z].uid);
  13216. }
  13217. studentK = studentK.join(",");
  13218. for (var j = 0; j < a.length; j++) {
  13219. if (studentK.indexOf(a[j].userid) == -1) {
  13220. if (this.tcid) {
  13221. // a[j].classid.indexOf(this.tcid) != -1
  13222. if (
  13223. this.arrayToArray(
  13224. a[j].classid.split(","),
  13225. this.tcid.split(",")
  13226. ).length
  13227. ) {
  13228. this.noWorksS[i].push({
  13229. student: a[j].name,
  13230. userid: a[j].userid,
  13231. });
  13232. }
  13233. } else {
  13234. this.noWorksS[i].push({
  13235. student: a[j].name,
  13236. userid: a[j].userid,
  13237. });
  13238. }
  13239. }
  13240. }
  13241. } else {
  13242. for (var k = 0; k < a.length; k++) {
  13243. if (this.tcid) {
  13244. if (
  13245. this.arrayToArray(
  13246. a[k].classid.split(","),
  13247. this.tcid.split(",")
  13248. ).length
  13249. ) {
  13250. this.noWorksS[i].push({
  13251. student: a[k].name,
  13252. userid: a[k].userid,
  13253. });
  13254. }
  13255. } else {
  13256. this.noWorksS[i].push({
  13257. student: a[k].name,
  13258. userid: a[k].userid,
  13259. });
  13260. }
  13261. }
  13262. }
  13263. }
  13264. this.$forceUpdate();
  13265. if (
  13266. Object.keys(this.commentDetail).length &&
  13267. Object.keys(this.commentIndexJson).length &&
  13268. !this.dialogVisibleScore && !this.dialogVisibleENScore
  13269. ) {
  13270. let a = 1;
  13271. let c = this.commentIndexJson;
  13272. if (
  13273. this.commentIndexJson.gindex ||
  13274. this.commentIndexJson.gindex === 0
  13275. ) {
  13276. for (
  13277. var i = 0;
  13278. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13279. i++
  13280. ) {
  13281. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  13282. groupA: for (var k = 0; k < _el.length; k++) {
  13283. let el = _el[k];
  13284. if (el.wid == this.commentDetail.wid) {
  13285. a = 2;
  13286. this.commentOther(
  13287. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  13288. this.commentIndexJson.toolIndex,
  13289. k,
  13290. this.commentIndexJson.gindex
  13291. );
  13292. break groupA;
  13293. }
  13294. }
  13295. }
  13296. if (a === 1) {
  13297. this.commentDetail = [];
  13298. this.commentIndexJson = {};
  13299. this.commentDialogVisible = false;
  13300. this.$message("此作业已被删除");
  13301. }
  13302. } else {
  13303. if (this.isGroup && this.commentIndexJson.gid) {
  13304. groupA: for (
  13305. var i = 0;
  13306. i < this.courseGroup.group.length;
  13307. i++
  13308. ) {
  13309. let _group = this.courseGroup.group[i];
  13310. if (_group.id == this.commentIndexJson.gid) {
  13311. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  13312. for (var k = 0; k < _el2.length; k++) {
  13313. let el2 = _el2[k];
  13314. if (el2.wid == this.commentDetail.wid) {
  13315. a = 2;
  13316. this.commentOther(
  13317. _el2[k],
  13318. this.commentIndexJson.toolIndex,
  13319. k,
  13320. null,
  13321. this.commentIndexJson.gid
  13322. );
  13323. break groupA;
  13324. }
  13325. }
  13326. }
  13327. }
  13328. }
  13329. if (a == 1) {
  13330. for (
  13331. var i = 0;
  13332. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13333. i++
  13334. ) {
  13335. let el =
  13336. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13337. if (el.wid == this.commentDetail.wid) {
  13338. a = 2;
  13339. this.commentOther(
  13340. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13341. this.commentIndexJson.toolIndex,
  13342. i
  13343. );
  13344. break;
  13345. }
  13346. }
  13347. }
  13348. if (a === 1) {
  13349. this.commentDetail = [];
  13350. this.commentIndexJson = {};
  13351. this.commentDialogVisible = false;
  13352. this.$message("此作业已被删除");
  13353. }
  13354. }
  13355. }
  13356. })
  13357. .catch((err) => {
  13358. console.error(err);
  13359. });
  13360. },
  13361. selectStudent() {
  13362. //学生查看自己作业
  13363. let params = {
  13364. uid: this.userid,
  13365. cid: this.id,
  13366. s: this.courseType,
  13367. t: this.taskCount,
  13368. };
  13369. this.ajax
  13370. .get(this.$store.state.api + "selectStudentWorks", params)
  13371. .then((res) => {
  13372. var a =
  13373. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13374. this.taskCount
  13375. ].toolChoose;
  13376. var b = res.data[0];
  13377. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13378. var y = [
  13379. "AVI",
  13380. "NAVI",
  13381. "MPEG",
  13382. "ASF",
  13383. "MOV",
  13384. "WMV",
  13385. "3GP",
  13386. "RM",
  13387. "RMVB",
  13388. "FLV",
  13389. "F4V",
  13390. "H.264",
  13391. "H.265",
  13392. "REAL VIDEO",
  13393. "MKV",
  13394. "WebM",
  13395. "HDDVD",
  13396. "MP4",
  13397. "MPG",
  13398. "M4V",
  13399. "MGV",
  13400. "OGV",
  13401. "QTM",
  13402. "STR",
  13403. "AMC",
  13404. "DVX",
  13405. "EVO",
  13406. "DAT",
  13407. "OGG",
  13408. "OGM",
  13409. ];
  13410. for (var i = 0; i < a.length; i++) {
  13411. this.workStudent[i] = [];
  13412. for (var j = 0; j < b.length; j++) {
  13413. if (i == b[j].tool) {
  13414. if (
  13415. (b[j].type == 1 ||
  13416. b[j].type == 4 ||
  13417. b[j].type == 5 ||
  13418. b[j].type == 6 ||
  13419. b[j].type == 12 ||
  13420. b[j].type == 7) &&
  13421. a[i].tool[0] != 15 &&
  13422. a[i].tool[0] != 4 &&
  13423. a[i].tool[0] != 45 &&
  13424. a[i].tool[0] != 50 &&
  13425. a[i].tool[0] != 32 &&
  13426. a[i].tool[0] != 57 &&
  13427. a[i].tool[0] != 52 &&
  13428. a[i].tool[0] != 69
  13429. ) {
  13430. if (
  13431. c.indexOf(
  13432. b[j].content
  13433. .split(".")
  13434. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13435. ) != -1 &&
  13436. a[i].tool[0] == 16 &&
  13437. b[j].atool != 50
  13438. ) {
  13439. this.workStudent[i].push({
  13440. works: b[j].content,
  13441. sName: b[j].name,
  13442. score: b[j].score,
  13443. img: b[j].img,
  13444. type: 1,
  13445. time: b[j].time,
  13446. userid: b[j].userid,
  13447. wid: b[j].id,
  13448. });
  13449. } else if (
  13450. y.indexOf(
  13451. b[j].content
  13452. .split(".")
  13453. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13454. ) != -1 &&
  13455. a[i].tool[0] == 16 &&
  13456. b[j].atool != 50
  13457. ) {
  13458. this.workStudent[i].push({
  13459. userid: b[j].userid,
  13460. wid: b[j].id,
  13461. works: b[j].content,
  13462. sName: b[j].name,
  13463. score: b[j].score,
  13464. img: b[j].img,
  13465. type: 3,
  13466. time: b[j].time,
  13467. });
  13468. } else if (b[j].type == 6 && b[j].atool != 50) {
  13469. this.workStudent[i].push({
  13470. userid: b[j].userid,
  13471. wid: b[j].id,
  13472. works: b[j].content,
  13473. sName: b[j].name,
  13474. score: b[j].score,
  13475. img: b[j].img,
  13476. type: 4,
  13477. time: b[j].time,
  13478. });
  13479. } else if (b[j].type == 7 && b[j].atool != 50) {
  13480. this.workStudent[i].push({
  13481. userid: b[j].userid,
  13482. wid: b[j].id,
  13483. works: b[j].content,
  13484. sName: b[j].name,
  13485. score: b[j].score,
  13486. img: b[j].img,
  13487. type: 5,
  13488. time: b[j].time,
  13489. });
  13490. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13491. this.workStudent[i].push({
  13492. works: b[j].content,
  13493. sName: b[j].name,
  13494. score: b[j].score,
  13495. img: b[j].img,
  13496. type: 12,
  13497. time: b[j].time,
  13498. userid: b[j].userid,
  13499. wid: b[j].id,
  13500. });
  13501. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13502. this.workStudent[i].push({
  13503. works: b[j].content,
  13504. sName: b[j].name,
  13505. score: b[j].score,
  13506. img: b[j].img,
  13507. type: 0,
  13508. time: b[j].time,
  13509. userid: b[j].userid,
  13510. wid: b[j].id,
  13511. });
  13512. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13513. this.workStudent[i].push({
  13514. works: b[j].content,
  13515. sName: b[j].name,
  13516. score: b[j].score,
  13517. img: b[j].img,
  13518. type: 0,
  13519. time: b[j].time,
  13520. userid: b[j].userid,
  13521. wid: b[j].id,
  13522. });
  13523. }
  13524. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13525. this.workStudent[i].push({
  13526. works: b[j].content,
  13527. sName: b[j].name,
  13528. score: b[j].score,
  13529. img: b[j].img,
  13530. type: 2,
  13531. time: b[j].time,
  13532. userid: b[j].userid,
  13533. wid: b[j].id,
  13534. });
  13535. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13536. //问卷
  13537. this.workStudent[i].push({
  13538. works: b[j].content,
  13539. sName: b[j].name,
  13540. score: b[j].score,
  13541. img: b[j].img,
  13542. type: 2,
  13543. time: b[j].time,
  13544. userid: b[j].userid,
  13545. wid: b[j].id,
  13546. });
  13547. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13548. //选择题
  13549. this.workStudent[i].push({
  13550. works: b[j].content,
  13551. sName: b[j].name,
  13552. score: b[j].score,
  13553. img: b[j].img,
  13554. type: 8,
  13555. time: b[j].time,
  13556. userid: b[j].userid,
  13557. wid: b[j].id,
  13558. });
  13559. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13560. //选择题
  13561. this.workStudent[i].push({
  13562. works: b[j].content,
  13563. sName: b[j].name,
  13564. score: b[j].score,
  13565. img: b[j].img,
  13566. type: 9,
  13567. time: b[j].time,
  13568. userid: b[j].userid,
  13569. wid: b[j].id,
  13570. });
  13571. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13572. //选择题
  13573. this.workStudent[i].push({
  13574. works: b[j].content,
  13575. sName: b[j].name,
  13576. score: b[j].score,
  13577. img: b[j].img,
  13578. type: 10,
  13579. time: b[j].time,
  13580. userid: b[j].userid,
  13581. wid: b[j].id,
  13582. });
  13583. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13584. //选择题
  13585. this.workStudent[i].push({
  13586. works: b[j].content,
  13587. sName: b[j].name,
  13588. score: b[j].score,
  13589. img: b[j].img,
  13590. type: 13,
  13591. time: b[j].time,
  13592. userid: b[j].userid,
  13593. wid: b[j].id,
  13594. });
  13595. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  13596. //选择题
  13597. this.workStudent[i].push({
  13598. works: b[j].content,
  13599. sName: b[j].name,
  13600. score: b[j].score,
  13601. img: b[j].img,
  13602. type: 12,
  13603. time: b[j].time,
  13604. userid: b[j].userid,
  13605. wid: b[j].id,
  13606. });
  13607. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  13608. //选择题
  13609. this.workStudent[i].push({
  13610. works: b[j].content,
  13611. sName: b[j].name,
  13612. score: b[j].score,
  13613. img: b[j].img,
  13614. type: 12,
  13615. time: b[j].time,
  13616. userid: b[j].userid,
  13617. wid: b[j].id,
  13618. });
  13619. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  13620. //选择题
  13621. this.workStudent[i].push({
  13622. works: b[j].content,
  13623. sName: b[j].name,
  13624. score: b[j].score,
  13625. img: b[j].img,
  13626. type: 15,
  13627. time: b[j].time,
  13628. userid: b[j].userid,
  13629. wid: b[j].id,
  13630. });
  13631. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  13632. //英语写作
  13633. this.workStudent[i].push({
  13634. works: b[j].content,
  13635. sName: b[j].name,
  13636. score: b[j].score,
  13637. img: b[j].img,
  13638. type: 16,
  13639. time: b[j].time,
  13640. userid: b[j].userid,
  13641. wid: b[j].id,
  13642. aiCode: b[j].aiCode,
  13643. teacherCode: b[j].teacherCode
  13644. });
  13645. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  13646. //英语口语
  13647. this.workStudent[i].push({
  13648. works: b[j].content,
  13649. sName: b[j].name,
  13650. score: b[j].score,
  13651. img: b[j].img,
  13652. type: 17,
  13653. time: b[j].time,
  13654. userid: b[j].userid,
  13655. wid: b[j].id,
  13656. });
  13657. }
  13658. }
  13659. }
  13660. }
  13661. })
  13662. .catch((err) => {
  13663. console.error(err);
  13664. });
  13665. },
  13666. openVideo(w) {
  13667. this.videoDetail = {};
  13668. this.playerOptions1.sources[0].src = w.works;
  13669. this.videoDetail = this.playerOptions1;
  13670. this.videoVisible = true;
  13671. },
  13672. isLikes(wid, uid, t, c, isLikes) {
  13673. if (isLikes == false) {
  13674. let params = [
  13675. {
  13676. wid: wid,
  13677. lid: uid,
  13678. t: t,
  13679. c: c,
  13680. },
  13681. ];
  13682. this.ajax
  13683. .post(this.$store.state.api + "insertComment", params)
  13684. .then((res) => {
  13685. this.$message({
  13686. message: "点赞成功",
  13687. type: "success",
  13688. });
  13689. this.selectSWorks();
  13690. this.selectStudent();
  13691. })
  13692. .catch((err) => {
  13693. this.$message.error("点赞失败");
  13694. console.error(err);
  13695. });
  13696. } else {
  13697. let params = {
  13698. wid: wid,
  13699. lid: uid,
  13700. type: t,
  13701. };
  13702. this.ajax
  13703. .get(this.$store.state.api + "deleteComment", params)
  13704. .then((res) => {
  13705. this.$message({
  13706. message: "取消点赞成功",
  13707. type: "success",
  13708. });
  13709. this.selectSWorks();
  13710. this.selectStudent();
  13711. })
  13712. .catch((err) => {
  13713. console.error(err);
  13714. });
  13715. }
  13716. },
  13717. deleteComment(wid) {
  13718. this.$confirm("确定删除此评论吗?", "提示", {
  13719. confirmButtonText: "确定",
  13720. cancelButtonText: "取消",
  13721. type: "warning",
  13722. })
  13723. .then(() => {
  13724. let params = {
  13725. id: wid,
  13726. };
  13727. this.ajax
  13728. .get(this.$store.state.api + "deleteComment2", params)
  13729. .then((res) => {
  13730. this.$message({
  13731. message: "删除评论成功",
  13732. type: "success",
  13733. });
  13734. this.selectSWorks();
  13735. this.selectStudent();
  13736. })
  13737. .catch((err) => {
  13738. console.error(err);
  13739. });
  13740. })
  13741. .catch(() => {});
  13742. },
  13743. commentOther(w, toolIndex, wIndex, gindex, gid) {
  13744. this.commentIndexJson = {
  13745. toolIndex: toolIndex,
  13746. wIndex: wIndex,
  13747. gindex: gindex,
  13748. gid: gid,
  13749. };
  13750. this.commentDetail = [];
  13751. this.commentDialogVisible = true;
  13752. this.commentDetail = w;
  13753. if (w.works && w.type == 1) {
  13754. this.pptImgUrl = "";
  13755. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13756. if (
  13757. a.indexOf(
  13758. w.works
  13759. .split(".")
  13760. [w.works.split(".").length - 1].toLocaleUpperCase()
  13761. ) != -1
  13762. ) {
  13763. this.pptImgUrl =
  13764. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(w.works);
  13765. this.showPDF = false;
  13766. } else if (
  13767. w.works
  13768. .split(".")
  13769. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13770. ) {
  13771. this.pptImgUrl = w.works;
  13772. this.showPDF = true;
  13773. }
  13774. } else if (w.works && w.type == 3) {
  13775. this.videoDetail = {};
  13776. this.playerOptions1.sources[0].src = w.works;
  13777. this.videoDetail = this.playerOptions1;
  13778. // this.videoVisible = true;
  13779. } else if (w.works && w.type == 4) {
  13780. this.eScore = JSON.parse(w.works);
  13781. this.rateJson =
  13782. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13783. this.taskCount
  13784. ].toolChoose[toolIndex].rateJson;
  13785. } else if (w.works && w.type == 10) {
  13786. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  13787. } else if (w.works && w.type == 13) {
  13788. this.wordJson =
  13789. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13790. this.taskCount
  13791. ].toolChoose[toolIndex].wordJson;
  13792. }
  13793. },
  13794. openScore(w, index) {
  13795. this.wScore = 0;
  13796. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  13797. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  13798. this.commentDetail = [];
  13799. if(w.type == 17){
  13800. this.dialogVisibleENScore = true;
  13801. }else{
  13802. this.dialogVisibleScore = true;
  13803. }
  13804. this.commentDetail = w;
  13805. if (w.works && w.type == 1) {
  13806. this.pptImgUrl = "";
  13807. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13808. if (
  13809. a.indexOf(
  13810. w.works
  13811. .split(".")
  13812. [w.works.split(".").length - 1].toLocaleUpperCase()
  13813. ) != -1
  13814. ) {
  13815. this.pptImgUrl =
  13816. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(w.works);
  13817. this.showPDF = false;
  13818. } else if (
  13819. w.works
  13820. .split(".")
  13821. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13822. ) {
  13823. this.pptImgUrl = w.works;
  13824. this.showPDF = true;
  13825. }
  13826. } else if (w.works && w.type == 3) {
  13827. this.videoDetail = {};
  13828. this.playerOptions1.sources[0].src = w.works;
  13829. this.videoDetail = this.playerOptions1;
  13830. }else if(w.type == 17){
  13831. let englishVoiceJson = {}
  13832. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  13833. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  13834. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  13835. .toolChoose[index].englishVoiceJson
  13836. : {};
  13837. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  13838. }
  13839. },
  13840. addComment(wid, uid, t) {
  13841. if (this.commentText == "") {
  13842. this.$message.error("请输入评论");
  13843. return;
  13844. }
  13845. let params2 = [
  13846. {
  13847. wid: wid,
  13848. lid: uid,
  13849. t: t,
  13850. },
  13851. ];
  13852. this.ajax
  13853. .post(this.$store.state.api + "getComment", params2)
  13854. .then((res) => {
  13855. if (res.data[0].length > 0) {
  13856. this.$message.error("一个作业只能评论一条");
  13857. } else {
  13858. let params = [
  13859. {
  13860. wid: wid,
  13861. lid: uid,
  13862. t: t,
  13863. c: this.commentText,
  13864. },
  13865. ];
  13866. this.ajax
  13867. .post(this.$store.state.api + "insertComment", params)
  13868. .then((res) => {
  13869. this.$message({
  13870. message: "评论成功",
  13871. type: "success",
  13872. });
  13873. this.commentText = "";
  13874. this.selectSWorks();
  13875. this.selectStudent();
  13876. })
  13877. .catch((err) => {
  13878. this.$message.error("评论失败");
  13879. console.error(err);
  13880. });
  13881. }
  13882. })
  13883. .catch((err) => {
  13884. // this.$message.error("评论失败");
  13885. console.error(err);
  13886. });
  13887. },
  13888. scoreWork(wid) {
  13889. if (this.wScore == 0) {
  13890. this.$message.error("请评分");
  13891. return;
  13892. }
  13893. let params = [
  13894. {
  13895. wid: wid,
  13896. score: JSON.stringify({
  13897. wScore: this.wScore,
  13898. detail: this.scoreDetail,
  13899. }),
  13900. },
  13901. ];
  13902. this.ajax
  13903. .post(this.$store.state.api + "scoreWork", params)
  13904. .then((res) => {
  13905. this.$message({
  13906. message: "评分成功",
  13907. type: "success",
  13908. });
  13909. this.wScore = 0;
  13910. this.scoreDetail = "";
  13911. this.dialogVisibleScore = false;
  13912. this.selectSWorks();
  13913. this.selectStudent();
  13914. })
  13915. .catch((err) => {
  13916. this.$message.error("评分失败");
  13917. console.error(err);
  13918. });
  13919. },
  13920. openXz(w, i) {
  13921. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  13922. .taskJson[this.taskCount].toolChoose[i].selectJson
  13923. ? JSON.parse(
  13924. JSON.stringify(
  13925. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13926. this.taskCount
  13927. ].toolChoose[i].selectJson
  13928. )
  13929. )
  13930. : { url: "", select: [], answer: [] };
  13931. var a = w.works.split(",");
  13932. for (var k = 0; k < a.length; k++) {
  13933. a[k] = parseInt(a[k]);
  13934. }
  13935. this.selectAnswer = { answer: a, stu: w.sName };
  13936. this.isSelect = true;
  13937. this.dialogVisibleSelect = true;
  13938. },
  13939. openSen(w, i) {
  13940. this.sentenceList1 = JSON.parse(w.works);
  13941. this.sentenceList1.stuName = w.sName;
  13942. this.dialogVisibleSentence1 = true;
  13943. },
  13944. openPj(w, toolindex) {
  13945. this.isStar = true;
  13946. this.eScore = JSON.parse(w);
  13947. this.rateJson =
  13948. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13949. this.taskCount
  13950. ].toolChoose[toolindex].rateJson;
  13951. this.studentEvalDialogVisible = true;
  13952. },
  13953. openEnglishEva(id,i){
  13954. let params = {
  13955. wid: id
  13956. };
  13957. this.ajax
  13958. .get(this.$store.state.api + "selectEngWork", params)
  13959. .then((res) => {
  13960. this.evaEngJson.message = res.data[0][0];
  13961. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  13962. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  13963. .toolChoose[i].englishList;
  13964. this.engEvaDialogVisible = true;
  13965. })
  13966. .catch((err) => {
  13967. console.error(err);
  13968. });
  13969. },
  13970. deleteWorks(id) {
  13971. this.$confirm("确定删除此作业吗?", "提示", {
  13972. confirmButtonText: "确定",
  13973. cancelButtonText: "取消",
  13974. type: "warning",
  13975. })
  13976. .then(() => {
  13977. let params = [
  13978. {
  13979. id: id,
  13980. },
  13981. ];
  13982. this.ajax
  13983. .post(this.$store.state.api + "deleteCourseWork", params)
  13984. .then((res) => {
  13985. this.$message({
  13986. message: "删除成功",
  13987. type: "success",
  13988. });
  13989. this.selectStudent();
  13990. this.selectSWorks();
  13991. this.selectSLook();
  13992. })
  13993. .catch((err) => {
  13994. this.$message.error("网络异常");
  13995. console.error(err);
  13996. });
  13997. })
  13998. .catch(() => {});
  13999. },
  14000. selectSWorks(gindex) {
  14001. //教师查看全部作业
  14002. let params = {
  14003. cid: this.id,
  14004. s: this.courseType,
  14005. t: this.taskCount,
  14006. };
  14007. this.ajax
  14008. .get(this.$store.state.api + "selectSWorks", params)
  14009. .then((res) => {
  14010. var a =
  14011. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14012. this.taskCount
  14013. ].toolChoose;
  14014. var b = res.data[0];
  14015. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14016. var y = [
  14017. "AVI",
  14018. "NAVI",
  14019. "MPEG",
  14020. "ASF",
  14021. "MOV",
  14022. "WMV",
  14023. "3GP",
  14024. "RM",
  14025. "RMVB",
  14026. "FLV",
  14027. "F4V",
  14028. "H.264",
  14029. "H.265",
  14030. "REAL VIDEO",
  14031. "MKV",
  14032. "WebM",
  14033. "HDDVD",
  14034. "MP4",
  14035. "MPG",
  14036. "M4V",
  14037. "MGV",
  14038. "OGV",
  14039. "QTM",
  14040. "STR",
  14041. "AMC",
  14042. "DVX",
  14043. "EVO",
  14044. "DAT",
  14045. "OGG",
  14046. "OGM",
  14047. ];
  14048. var d = res.data[1];
  14049. var e = res.data[2];
  14050. var f = res.data[3];
  14051. let _worksStudent = [];
  14052. var _worksStudent2 = [];
  14053. for (var i = 0; i < a.length; i++) {
  14054. _worksStudent[i] = [];
  14055. _worksStudent2[i] = [];
  14056. if (
  14057. !this.isCloseList[i] ||
  14058. this.isCloseList[i].isClose == undefined
  14059. ) {
  14060. this.isCloseList[i] = { isClose: 0 };
  14061. }
  14062. this.groupStudent[i] = [];
  14063. this.groupStudentUid[i] = [];
  14064. if (this.isGroup) {
  14065. for (
  14066. var groupI = 0;
  14067. groupI < this.courseGroup.group.length;
  14068. groupI++
  14069. ) {
  14070. this.courseGroup.group[groupI].works[i] = [];
  14071. }
  14072. }
  14073. this.isWorksS[i] = [];
  14074. this.checkJson[i] = [];
  14075. if (a[i].tool[0] == 49) {
  14076. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  14077. this.groupStudent[i][gA] = [];
  14078. this.groupStudentUid[i][gA] = [];
  14079. _worksStudent[i][gA] = [];
  14080. _worksStudent2[i][gA] = [];
  14081. this.isCloseList[i][gA] = [];
  14082. for (var g = 0; g < f.length; g++) {
  14083. if (
  14084. f[g].ttype == 2 &&
  14085. this.tcid &&
  14086. this.arrayToArray(
  14087. f[g].classid.split(","),
  14088. this.tcid.split(",")
  14089. ).length == 0
  14090. ) {
  14091. continue;
  14092. }
  14093. if (gA == f[g].group && f[g].tool == i) {
  14094. this.groupStudent[i][gA].push(f[g]);
  14095. this.groupStudentUid[i][gA].push(f[g].userid);
  14096. }
  14097. }
  14098. }
  14099. this.$forceUpdate();
  14100. }
  14101. for (var j = 0; j < b.length; j++) {
  14102. if (
  14103. b[j].ttype == 2 &&
  14104. this.tcid &&
  14105. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  14106. .length == 0
  14107. ) {
  14108. continue;
  14109. }
  14110. var likesCount = 0;
  14111. var commentCount = 0;
  14112. var isLikes = false;
  14113. var commentJson = [];
  14114. var data = b[j];
  14115. if (i == b[j].tool) {
  14116. if (data.type == 2 && a[i].tool[0] == 4) {
  14117. // if(JSON.parse(data.content)[0].anwer){
  14118. var checkL =
  14119. JSON.parse(data.content)[0].anwer instanceof Array
  14120. ? JSON.parse(data.content)[0].anwer
  14121. : JSON.parse(data.content)[0].anwer.split(",");
  14122. for (var z = 0; z < checkL.length; z++) {
  14123. if (!this.checkJson[i][z]) {
  14124. this.checkJson[i].push({
  14125. checkCount: [],
  14126. checkPerson: [],
  14127. rightPerson: [],
  14128. });
  14129. }
  14130. if (!this.checkJson[i][z].checkCount.length) {
  14131. this.checkJson[i][z].checkCount = [];
  14132. let _askItemCount = JSON.parse(data.content)[0].askJson
  14133. .askJson[z].askItem;
  14134. for (var aic = 0; aic < _askItemCount; aic++) {
  14135. this.checkJson[i][z].checkCount.push(0);
  14136. }
  14137. }
  14138. if (checkL[z] instanceof Array) {
  14139. if (
  14140. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  14141. checkL[z].sort().join(",")
  14142. ) {
  14143. this.checkJson[i][z].rightPerson.push(data.name);
  14144. }
  14145. for (var q = 0; q < checkL[z].length; q++) {
  14146. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14147. ? this.checkJson[i][z].checkPerson[
  14148. parseInt(checkL[z][q])
  14149. ].push(data.name)
  14150. : (this.checkJson[i][z].checkPerson[
  14151. parseInt(checkL[z][q])
  14152. ] = [data.name]);
  14153. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14154. ? this.checkJson[i][z].checkCount[
  14155. parseInt(checkL[z][q])
  14156. ]++
  14157. : (this.checkJson[i][z].checkCount[
  14158. parseInt(checkL[z][q])
  14159. ] = 1);
  14160. }
  14161. } else {
  14162. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  14163. this.checkJson[i][z].rightPerson.push(data.name);
  14164. }
  14165. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14166. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14167. ? this.checkJson[i][z].checkPerson[
  14168. parseInt(checkL[z])
  14169. ].push(data.name)
  14170. : (this.checkJson[i][z].checkPerson[
  14171. parseInt(checkL[z])
  14172. ] = [data.name]);
  14173. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14174. ? this.checkJson[i][z].checkCount[
  14175. parseInt(checkL[z])
  14176. ]++
  14177. : (this.checkJson[i][z].checkCount[
  14178. parseInt(checkL[z])
  14179. ] = 1);
  14180. }
  14181. }
  14182. }
  14183. } else if (data.type == 8 && a[i].tool[0] == 45) {
  14184. var checkL = JSON.parse(data.content)[0].anwer;
  14185. for (var z = 0; z < checkL.length; z++) {
  14186. if (!this.checkJson[i][z]) {
  14187. this.checkJson[i].push({
  14188. checkCount: [],
  14189. checkPerson: [],
  14190. rightPerson: [],
  14191. });
  14192. }
  14193. if (!this.checkJson[i][z].checkCount.length) {
  14194. this.checkJson[i][z].checkCount = [];
  14195. let _askItemCount = JSON.parse(data.content)[0].testJson
  14196. .testJson[z].testItem;
  14197. for (var aic = 0; aic < _askItemCount; aic++) {
  14198. this.checkJson[i][z].checkCount.push(0);
  14199. }
  14200. }
  14201. if (checkL[z] instanceof Array) {
  14202. if (
  14203. JSON.parse(data.content)[0]
  14204. .testJson.testJson[z].answer.sort()
  14205. .join(",") == checkL[z].sort().join(",")
  14206. ) {
  14207. this.checkJson[i][z].rightPerson.push(data.name);
  14208. }
  14209. for (var q = 0; q < checkL[z].length; q++) {
  14210. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14211. ? this.checkJson[i][z].checkPerson[
  14212. parseInt(checkL[z][q])
  14213. ].push(data.name)
  14214. : (this.checkJson[i][z].checkPerson[
  14215. parseInt(checkL[z][q])
  14216. ] = [data.name]);
  14217. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14218. ? this.checkJson[i][z].checkCount[
  14219. parseInt(checkL[z][q])
  14220. ]++
  14221. : (this.checkJson[i][z].checkCount[
  14222. parseInt(checkL[z][q])
  14223. ] = 1);
  14224. }
  14225. } else {
  14226. if (
  14227. JSON.parse(data.content)[0].testJson.testJson[z]
  14228. .answer == checkL[z]
  14229. ) {
  14230. this.checkJson[i][z].rightPerson.push(data.name);
  14231. }
  14232. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14233. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14234. ? this.checkJson[i][z].checkPerson[
  14235. parseInt(checkL[z])
  14236. ].push(data.name)
  14237. : (this.checkJson[i][z].checkPerson[
  14238. parseInt(checkL[z])
  14239. ] = [data.name]);
  14240. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14241. ? this.checkJson[i][z].checkCount[
  14242. parseInt(checkL[z])
  14243. ]++
  14244. : (this.checkJson[i][z].checkCount[
  14245. parseInt(checkL[z])
  14246. ] = 1);
  14247. }
  14248. }
  14249. }
  14250. } else if (data.type == 9 && a[i].tool[0] == 47) {
  14251. var checkL = JSON.parse(data.content);
  14252. for (var z = 0; z < checkL.length; z++) {
  14253. if (!this.checkJson[i][z]) {
  14254. this.checkJson[i].push({
  14255. checkCount: [],
  14256. checkPerson: [],
  14257. rightPerson: [],
  14258. });
  14259. }
  14260. this.checkJson[i][z].checkPerson.push(data.name);
  14261. if (
  14262. checkL[z].chooseSenList.toString() ==
  14263. checkL[z].rightAnswer.toString()
  14264. ) {
  14265. this.checkJson[i][z].rightPerson.push(data.name);
  14266. }
  14267. }
  14268. }
  14269. for (var k = 0; k < d.length; k++) {
  14270. //点赞
  14271. if (d[k].workId == b[j].id) {
  14272. likesCount++;
  14273. if (d[k].likesId == this.userid) {
  14274. isLikes = true;
  14275. }
  14276. }
  14277. }
  14278. for (var l = 0; l < e.length; l++) {
  14279. //评论
  14280. if (e[l].workId == b[j].id) {
  14281. if (e[l].comment != "") {
  14282. commentCount++;
  14283. commentJson.push({
  14284. commentText: e[l].comment,
  14285. commentTime: e[l].commentTime,
  14286. commentPeople: e[l].commentPeople,
  14287. userid: e[l].userid,
  14288. wid: e[l].id,
  14289. });
  14290. }
  14291. }
  14292. }
  14293. if (
  14294. (b[j].type == 1 ||
  14295. b[j].type == 4 ||
  14296. b[j].type == 5 ||
  14297. b[j].type == 6 ||
  14298. b[j].type == 12 ||
  14299. b[j].type == 7) &&
  14300. a[i].tool[0] != 15 &&
  14301. a[i].tool[0] != 4 &&
  14302. a[i].tool[0] != 45 &&
  14303. a[i].tool[0] != 50 &&
  14304. a[i].tool[0] != 32 &&
  14305. a[i].tool[0] != 57 &&
  14306. a[i].tool[0] != 52
  14307. ) {
  14308. if (
  14309. c.indexOf(
  14310. b[j].content
  14311. .split(".")
  14312. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14313. ) != -1 &&
  14314. a[i].tool[0] == 16 &&
  14315. b[j].atool != 50
  14316. ) {
  14317. let _works = {
  14318. userid: b[j].userid,
  14319. ateacher: b[j].ateacher,
  14320. wid: b[j].id,
  14321. works: b[j].content,
  14322. sName: b[j].name,
  14323. type: 1,
  14324. time: b[j].time,
  14325. score: b[j].score,
  14326. img: b[j].img,
  14327. likesCount: likesCount,
  14328. commentCount: commentCount,
  14329. isLikes: isLikes,
  14330. commentJson: commentJson,
  14331. };
  14332. if (this.isGroup) {
  14333. let isGw = 1;
  14334. for (
  14335. var groupI = 0;
  14336. groupI < this.courseGroup.group.length;
  14337. groupI++
  14338. ) {
  14339. let gid = this.courseGroup.group[groupI].id;
  14340. if (
  14341. this.courseGroupStudentUid[gid].indexOf(
  14342. b[j].userid
  14343. ) != -1
  14344. ) {
  14345. isGw = 2;
  14346. this.courseGroup.group[groupI].works[i].push(_works);
  14347. break;
  14348. }
  14349. }
  14350. if (isGw == 1) {
  14351. _worksStudent[i].push(_works);
  14352. }
  14353. } else {
  14354. _worksStudent[i].push(_works);
  14355. }
  14356. _worksStudent2[i].push(_works);
  14357. this.isWorksS[i].push({
  14358. uid: b[j].userid,
  14359. sName: b[j].name,
  14360. });
  14361. } else if (
  14362. y.indexOf(
  14363. b[j].content
  14364. .split(".")
  14365. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14366. ) != -1 &&
  14367. a[i].tool[0] == 16 &&
  14368. b[j].atool != 50
  14369. ) {
  14370. let _works = {
  14371. userid: b[j].userid,
  14372. ateacher: b[j].ateacher,
  14373. wid: b[j].id,
  14374. works: b[j].content,
  14375. sName: b[j].name,
  14376. type: 3,
  14377. time: b[j].time,
  14378. score: b[j].score,
  14379. img: b[j].img,
  14380. likesCount: likesCount,
  14381. commentCount: commentCount,
  14382. isLikes: isLikes,
  14383. commentJson: commentJson,
  14384. };
  14385. if (this.isGroup) {
  14386. let isGw = 1;
  14387. for (
  14388. var groupI = 0;
  14389. groupI < this.courseGroup.group.length;
  14390. groupI++
  14391. ) {
  14392. let gid = this.courseGroup.group[groupI].id;
  14393. if (
  14394. this.courseGroupStudentUid[gid].indexOf(
  14395. b[j].userid
  14396. ) != -1
  14397. ) {
  14398. isGw = 2;
  14399. this.courseGroup.group[groupI].works[i].push(_works);
  14400. break;
  14401. }
  14402. }
  14403. if (isGw == 1) {
  14404. _worksStudent[i].push(_works);
  14405. }
  14406. } else {
  14407. _worksStudent[i].push(_works);
  14408. }
  14409. _worksStudent2[i].push(_works);
  14410. this.isWorksS[i].push({
  14411. uid: b[j].userid,
  14412. sName: b[j].name,
  14413. });
  14414. } else if (b[j].type == 6 && b[j].atool != 50) {
  14415. let _works = {
  14416. userid: b[j].userid,
  14417. ateacher: b[j].ateacher,
  14418. wid: b[j].id,
  14419. works: b[j].content,
  14420. sName: b[j].name,
  14421. type: 4,
  14422. time: b[j].time,
  14423. score: b[j].score,
  14424. img: b[j].img,
  14425. likesCount: likesCount,
  14426. commentCount: commentCount,
  14427. isLikes: isLikes,
  14428. commentJson: commentJson,
  14429. };
  14430. _worksStudent[i].push(_works);
  14431. _worksStudent2[i].push(_works);
  14432. this.isWorksS[i].push({
  14433. uid: b[j].userid,
  14434. sName: b[j].name,
  14435. });
  14436. } else if (b[j].type == 7 && b[j].atool != 50) {
  14437. let _work = {
  14438. userid: b[j].userid,
  14439. ateacher: b[j].ateacher,
  14440. wid: b[j].id,
  14441. works: b[j].content,
  14442. sName: b[j].name,
  14443. type: 5,
  14444. time: b[j].time,
  14445. score: b[j].score,
  14446. img: b[j].img,
  14447. likesCount: likesCount,
  14448. commentCount: commentCount,
  14449. isLikes: isLikes,
  14450. commentJson: commentJson,
  14451. };
  14452. _worksStudent[i].push(_work);
  14453. _worksStudent2[i].push(_work);
  14454. this.isWorksS[i].push({
  14455. uid: b[j].userid,
  14456. sName: b[j].name,
  14457. });
  14458. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14459. let _works = {
  14460. userid: b[j].userid,
  14461. ateacher: b[j].ateacher,
  14462. wid: b[j].id,
  14463. works: b[j].content,
  14464. sName: b[j].name,
  14465. type: 12,
  14466. time: b[j].time,
  14467. score: b[j].score,
  14468. img: b[j].img,
  14469. likesCount: likesCount,
  14470. commentCount: commentCount,
  14471. isLikes: isLikes,
  14472. commentJson: commentJson,
  14473. };
  14474. if (this.isGroup) {
  14475. let isGw = 1;
  14476. for (
  14477. var groupI = 0;
  14478. groupI < this.courseGroup.group.length;
  14479. groupI++
  14480. ) {
  14481. let gid = this.courseGroup.group[groupI].id;
  14482. if (
  14483. this.courseGroupStudentUid[gid].indexOf(
  14484. b[j].userid
  14485. ) != -1
  14486. ) {
  14487. isGw = 2;
  14488. this.courseGroup.group[groupI].works[i].push(_works);
  14489. break;
  14490. }
  14491. }
  14492. if (isGw == 1) {
  14493. _worksStudent[i].push(_works);
  14494. }
  14495. } else {
  14496. _worksStudent[i].push(_works);
  14497. }
  14498. _worksStudent2[i].push(_works);
  14499. this.isWorksS[i].push({
  14500. uid: b[j].userid,
  14501. sName: b[j].name,
  14502. });
  14503. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14504. let _works = {
  14505. userid: b[j].userid,
  14506. ateacher: b[j].ateacher,
  14507. wid: b[j].id,
  14508. works: b[j].content,
  14509. sName: b[j].name,
  14510. type: 0,
  14511. time: b[j].time,
  14512. score: b[j].score,
  14513. img: b[j].img,
  14514. likesCount: likesCount,
  14515. commentCount: commentCount,
  14516. isLikes: isLikes,
  14517. commentJson: commentJson,
  14518. };
  14519. if (this.isGroup) {
  14520. let isGw = 1;
  14521. for (
  14522. var groupI = 0;
  14523. groupI < this.courseGroup.group.length;
  14524. groupI++
  14525. ) {
  14526. let gid = this.courseGroup.group[groupI].id;
  14527. if (
  14528. this.courseGroupStudentUid[gid].indexOf(
  14529. b[j].userid
  14530. ) != -1
  14531. ) {
  14532. isGw = 2;
  14533. this.courseGroup.group[groupI].works[i].push(_works);
  14534. break;
  14535. }
  14536. }
  14537. if (isGw == 1) {
  14538. _worksStudent[i].push(_works);
  14539. }
  14540. } else {
  14541. _worksStudent[i].push(_works);
  14542. }
  14543. _worksStudent2[i].push(_works);
  14544. this.isWorksS[i].push({
  14545. uid: b[j].userid,
  14546. sName: b[j].name,
  14547. });
  14548. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14549. let _works = {
  14550. userid: b[j].userid,
  14551. ateacher: b[j].ateacher,
  14552. wid: b[j].id,
  14553. works: b[j].content,
  14554. sName: b[j].name,
  14555. type: 0,
  14556. time: b[j].time,
  14557. score: b[j].score,
  14558. img: b[j].img,
  14559. likesCount: likesCount,
  14560. commentCount: commentCount,
  14561. isLikes: isLikes,
  14562. commentJson: commentJson,
  14563. };
  14564. if (this.isGroup) {
  14565. let isGw = 1;
  14566. for (
  14567. var groupI = 0;
  14568. groupI < this.courseGroup.group.length;
  14569. groupI++
  14570. ) {
  14571. let gid = this.courseGroup.group[groupI].id;
  14572. if (
  14573. this.courseGroupStudentUid[gid].indexOf(
  14574. b[j].userid
  14575. ) != -1
  14576. ) {
  14577. isGw = 2;
  14578. this.courseGroup.group[groupI].works[i].push(_works);
  14579. break;
  14580. }
  14581. }
  14582. if (isGw == 1) {
  14583. _worksStudent[i].push(_works);
  14584. }
  14585. } else {
  14586. _worksStudent[i].push(_works);
  14587. }
  14588. _worksStudent2[i].push(_works);
  14589. this.isWorksS[i].push({
  14590. uid: b[j].userid,
  14591. sName: b[j].name,
  14592. });
  14593. }
  14594. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14595. let _works = {
  14596. userid: b[j].userid,
  14597. ateacher: b[j].ateacher,
  14598. wid: b[j].id,
  14599. works: b[j].content,
  14600. sName: b[j].name,
  14601. type: 2,
  14602. time: b[j].time,
  14603. score: b[j].score,
  14604. img: b[j].img,
  14605. likesCount: likesCount,
  14606. commentCount: commentCount,
  14607. isLikes: isLikes,
  14608. commentJson: commentJson,
  14609. };
  14610. if (this.isGroup) {
  14611. let isGw = 1;
  14612. for (
  14613. var groupI = 0;
  14614. groupI < this.courseGroup.group.length;
  14615. groupI++
  14616. ) {
  14617. let gid = this.courseGroup.group[groupI].id;
  14618. if (
  14619. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  14620. -1
  14621. ) {
  14622. isGw = 2;
  14623. this.courseGroup.group[groupI].works[i].push(_works);
  14624. break;
  14625. }
  14626. }
  14627. if (isGw == 1) {
  14628. _worksStudent[i].push(_works);
  14629. }
  14630. } else {
  14631. _worksStudent[i].push(_works);
  14632. }
  14633. _worksStudent2[i].push(_works);
  14634. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14635. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14636. //问卷
  14637. let _work = {
  14638. userid: b[j].userid,
  14639. ateacher: b[j].ateacher,
  14640. wid: b[j].id,
  14641. works: b[j].content,
  14642. sName: b[j].name,
  14643. type: 2,
  14644. time: b[j].time,
  14645. score: b[j].score,
  14646. img: b[j].img,
  14647. likesCount: likesCount,
  14648. commentCount: commentCount,
  14649. isLikes: isLikes,
  14650. commentJson: commentJson,
  14651. };
  14652. _worksStudent[i].push(_work);
  14653. _worksStudent2[i].push(_work);
  14654. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14655. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14656. //选择题
  14657. let _work = {
  14658. userid: b[j].userid,
  14659. ateacher: b[j].ateacher,
  14660. wid: b[j].id,
  14661. works: b[j].content,
  14662. sName: b[j].name,
  14663. type: 8,
  14664. time: b[j].time,
  14665. score: b[j].score,
  14666. img: b[j].img,
  14667. likesCount: likesCount,
  14668. commentCount: commentCount,
  14669. isLikes: isLikes,
  14670. commentJson: commentJson,
  14671. };
  14672. _worksStudent[i].push(_work);
  14673. _worksStudent2[i].push(_work);
  14674. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14675. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14676. //选择题
  14677. let _work = {
  14678. userid: b[j].userid,
  14679. ateacher: b[j].ateacher,
  14680. wid: b[j].id,
  14681. works: b[j].content,
  14682. sName: b[j].name,
  14683. type: 9,
  14684. time: b[j].time,
  14685. score: b[j].score,
  14686. img: b[j].img,
  14687. likesCount: likesCount,
  14688. commentCount: commentCount,
  14689. isLikes: isLikes,
  14690. commentJson: commentJson,
  14691. };
  14692. _worksStudent[i].push(_work);
  14693. _worksStudent2[i].push(_work);
  14694. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14695. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14696. //选择题
  14697. let _work = {
  14698. userid: b[j].userid,
  14699. ateacher: b[j].ateacher,
  14700. wid: b[j].id,
  14701. works: b[j].content,
  14702. sName: b[j].name,
  14703. type: 10,
  14704. time: b[j].time,
  14705. score: b[j].score,
  14706. img: b[j].img,
  14707. likesCount: likesCount,
  14708. commentCount: commentCount,
  14709. isLikes: isLikes,
  14710. commentJson: commentJson,
  14711. };
  14712. _worksStudent[i].push(_work);
  14713. _worksStudent2[i].push(_work);
  14714. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14715. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14716. //选择题
  14717. let _work = {
  14718. userid: b[j].userid,
  14719. ateacher: b[j].ateacher,
  14720. wid: b[j].id,
  14721. works: b[j].content,
  14722. sName: b[j].name,
  14723. type: 13,
  14724. time: b[j].time,
  14725. score: b[j].score,
  14726. img: b[j].img,
  14727. likesCount: likesCount,
  14728. commentCount: commentCount,
  14729. isLikes: isLikes,
  14730. commentJson: commentJson,
  14731. };
  14732. _worksStudent[i].push(_work);
  14733. _worksStudent2[i].push(_work);
  14734. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14735. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14736. //选择题
  14737. let _work = {
  14738. userid: b[j].userid,
  14739. ateacher: b[j].ateacher,
  14740. wid: b[j].id,
  14741. works: b[j].content,
  14742. sName: b[j].name,
  14743. type: 16,
  14744. time: b[j].time,
  14745. score: b[j].score,
  14746. img: b[j].img,
  14747. likesCount: likesCount,
  14748. commentCount: commentCount,
  14749. isLikes: isLikes,
  14750. commentJson: commentJson,
  14751. aiCode: b[j].aiCode,
  14752. teacherCode: b[j].teacherCode
  14753. };
  14754. _worksStudent[i].push(_work);
  14755. _worksStudent2[i].push(_work);
  14756. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14757. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14758. //英语口语
  14759. let _work = {
  14760. userid: b[j].userid,
  14761. ateacher: b[j].ateacher,
  14762. wid: b[j].id,
  14763. works: b[j].content,
  14764. sName: b[j].name,
  14765. type: 17,
  14766. time: b[j].time,
  14767. score: b[j].score,
  14768. img: b[j].img,
  14769. likesCount: likesCount,
  14770. commentCount: commentCount,
  14771. isLikes: isLikes,
  14772. commentJson: commentJson,
  14773. };
  14774. _worksStudent[i].push(_work);
  14775. _worksStudent2[i].push(_work);
  14776. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14777. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  14778. let _gindex = JSON.parse(b[j].content);
  14779. if (
  14780. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  14781. b[j].userid
  14782. ) != -1
  14783. ) {
  14784. let _work = {
  14785. userid: b[j].userid,
  14786. ateacher: b[j].ateacher,
  14787. wid: b[j].id,
  14788. works: _gindex.url,
  14789. sName: b[j].name,
  14790. type: _gindex.type,
  14791. time: b[j].time,
  14792. score: b[j].score,
  14793. img: b[j].img,
  14794. likesCount: likesCount,
  14795. commentCount: commentCount,
  14796. isLikes: isLikes,
  14797. commentJson: commentJson,
  14798. };
  14799. _worksStudent[i][_gindex.groupIndex].push(_work);
  14800. _worksStudent2[i][_gindex.groupIndex].push(_work);
  14801. }
  14802. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14803. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  14804. let _work = {
  14805. userid: b[j].userid,
  14806. ateacher: b[j].ateacher,
  14807. wid: b[j].id,
  14808. works: b[j].content,
  14809. sName: b[j].name ? b[j].name : b[j].userid,
  14810. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  14811. time: b[j].time,
  14812. score: b[j].score,
  14813. img: b[j].img,
  14814. likesCount: likesCount,
  14815. commentCount: commentCount,
  14816. isLikes: isLikes,
  14817. commentJson: commentJson,
  14818. };
  14819. _worksStudent[i].push(_work);
  14820. _worksStudent2[i].push(_work);
  14821. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14822. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  14823. let _work = {
  14824. userid: b[j].userid,
  14825. ateacher: b[j].ateacher,
  14826. wid: b[j].id,
  14827. works: b[j].content,
  14828. sName: b[j].name ? b[j].name : b[j].userid,
  14829. type: 12,
  14830. time: b[j].time,
  14831. score: b[j].score,
  14832. img: b[j].img,
  14833. likesCount: likesCount,
  14834. commentCount: commentCount,
  14835. isLikes: isLikes,
  14836. commentJson: commentJson,
  14837. };
  14838. _worksStudent[i].push(_work);
  14839. _worksStudent2[i].push(_work);
  14840. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14841. } else if (
  14842. a[i].tool[0] == 57 &&
  14843. b[j].atool == 57 &&
  14844. b[j].type == 12
  14845. ) {
  14846. let _work = {
  14847. userid: b[j].userid,
  14848. ateacher: b[j].ateacher,
  14849. wid: b[j].id,
  14850. works: b[j].content,
  14851. sName: b[j].name ? b[j].name : b[j].userid,
  14852. type: 12,
  14853. time: b[j].time,
  14854. score: b[j].score,
  14855. img: b[j].img,
  14856. likesCount: likesCount,
  14857. commentCount: commentCount,
  14858. isLikes: isLikes,
  14859. commentJson: commentJson,
  14860. };
  14861. _worksStudent[i].push(_work);
  14862. _worksStudent2[i].push(_work);
  14863. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14864. } else if (
  14865. a[i].tool[0] == 57 &&
  14866. b[j].atool == 57 &&
  14867. b[j].type == 15
  14868. ) {
  14869. let _work = {
  14870. userid: b[j].userid,
  14871. ateacher: b[j].ateacher,
  14872. wid: b[j].id,
  14873. works: b[j].content,
  14874. sName: b[j].name ? b[j].name : b[j].userid,
  14875. type: 15,
  14876. time: b[j].time,
  14877. score: b[j].score,
  14878. img: b[j].img,
  14879. likesCount: likesCount,
  14880. commentCount: commentCount,
  14881. isLikes: isLikes,
  14882. commentJson: commentJson,
  14883. };
  14884. _worksStudent[i].push(_work);
  14885. _worksStudent2[i].push(_work);
  14886. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14887. }
  14888. }
  14889. }
  14890. if (_worksStudent[i] && _worksStudent[i].length) {
  14891. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  14892. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14893. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14894. var scoreA = parseFloat(jscoreA);
  14895. var scoreB = parseFloat(jscoreB);
  14896. if (scoreA == scoreB) {
  14897. return b.likesCount - a.likesCount;
  14898. }
  14899. return scoreB - scoreA;
  14900. });
  14901. if (this.isGroup) {
  14902. for (
  14903. var groupI = 0;
  14904. groupI < this.courseGroup.group.length;
  14905. groupI++
  14906. ) {
  14907. this.courseGroup.group[groupI].works[i] =
  14908. this.courseGroup.group[groupI].works[i].sort(function (
  14909. a,
  14910. b
  14911. ) {
  14912. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14913. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14914. var scoreA = parseFloat(jscoreA);
  14915. var scoreB = parseFloat(jscoreB);
  14916. if (scoreA == scoreB) {
  14917. return b.likesCount - a.likesCount;
  14918. }
  14919. return scoreB - scoreA;
  14920. });
  14921. }
  14922. }
  14923. }
  14924. }
  14925. this.timeWorkList = _worksStudent2;
  14926. for (var i = 0; i < a.length; i++) {
  14927. for (var j = 0; j < b.length; j++) {
  14928. var data = b[j];
  14929. if (i == b[j].tool) {
  14930. if (data.type == 2 || data.type == 8) {
  14931. for (var z = 0; z < this.checkJson[i].length; z++) {
  14932. this.checkJson[i][z].checkPerent = [];
  14933. this.checkJson[i][z].right = Math.round(
  14934. (this.checkJson[i][z].rightPerson.length /
  14935. parseInt(_worksStudent[i].length)) *
  14936. 100
  14937. );
  14938. let aaaa = this.checkJson[i][z];
  14939. for (
  14940. var k = 0;
  14941. k < this.checkJson[i][z].checkCount.length;
  14942. k++
  14943. ) {
  14944. this.checkJson[i][z].checkPerent.push(
  14945. Math.round(
  14946. (this.checkJson[i][z].checkCount[k] /
  14947. parseInt(_worksStudent[i].length)) *
  14948. 100
  14949. )
  14950. );
  14951. }
  14952. }
  14953. } else if (data.type == 9) {
  14954. for (var z = 0; z < this.checkJson[i].length; z++) {
  14955. this.checkJson[i][z].checkPerent = [];
  14956. this.checkJson[i][z].right = Math.round(
  14957. (this.checkJson[i][z].rightPerson.length /
  14958. this.checkJson[i][z].checkPerson.length) *
  14959. 100
  14960. );
  14961. }
  14962. }
  14963. }
  14964. }
  14965. }
  14966. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  14967. this.joinGroup(gindex);
  14968. }
  14969. this.worksStudent = _worksStudent;
  14970. this.selectWorksStudent();
  14971. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  14972. this.$nextTick(()=>{
  14973. setTimeout(()=>{
  14974. setTimeout(()=>{
  14975. this.panToolHeight('tool-'+ci);
  14976. }, 500)
  14977. }, 0)
  14978. })
  14979. }
  14980. })
  14981. .catch((err) => {
  14982. console.error(err);
  14983. });
  14984. },
  14985. pngToWhiteBg(file) {
  14986. const _file = file;
  14987. let read = new FileReader();
  14988. read.readAsDataURL(file); // 文件转base64
  14989. return new Promise((resolve, reject) => {
  14990. read.onload = (e) => {
  14991. let img = new Image();
  14992. img.src = e.target.result;
  14993. img.onload = async () => {
  14994. // 生成canvas
  14995. let canvas = document.createElement("canvas");
  14996. let context = canvas.getContext("2d");
  14997. // 绘制图片到canvas上
  14998. canvas.width = img.width;
  14999. canvas.height = img.height;
  15000. // 在canvas绘制前填充白色背景
  15001. context.fillStyle = "#fff";
  15002. context.fillRect(0, 0, canvas.width, canvas.height);
  15003. context.drawImage(img, 0, 0);
  15004. let base64 = canvas.toDataURL(file["type"], 1);
  15005. let newFile = this.dataUrlToFile(base64, _file);
  15006. resolve(newFile);
  15007. };
  15008. };
  15009. });
  15010. },
  15011. dataUrlToFile(dataurl, file) {
  15012. let arr = dataurl.split(","),
  15013. mime = arr[0].match(/:(.*?);/)[1],
  15014. bstr = atob(arr[1]),
  15015. n = bstr.length,
  15016. u8arr = new Uint8Array(n);
  15017. while (n--) {
  15018. u8arr[n] = bstr.charCodeAt(n);
  15019. }
  15020. // return new Blob([u8arr], { type: mime });
  15021. return new File([new Blob([u8arr], { type: mime })], file.name, {
  15022. type: mime,
  15023. });
  15024. },
  15025. async beforeUpload1(event, type, i) {
  15026. // this.$message.success('进入上传')
  15027. var file = "";
  15028. if (type == 5) {
  15029. file = event;
  15030. } else {
  15031. file = event.target.files[0];
  15032. }
  15033. var credentials = {
  15034. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15035. secretAccessKey: "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",
  15036. }; //秘钥形式的登录上传
  15037. window.AWS.config.update(credentials);
  15038. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15039. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15040. var _this = this;
  15041. _this.progress = 0;
  15042. _this.proVisible = true;
  15043. _this.isFinishSize = 0;
  15044. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  15045. var b = [
  15046. "DOC",
  15047. "DOCX",
  15048. "DOCM",
  15049. "DOTM",
  15050. "DOTX",
  15051. "PPTX",
  15052. "PPSX",
  15053. "PPT",
  15054. "PPS",
  15055. "PPTM",
  15056. "POTM",
  15057. "PPAM",
  15058. "POTX",
  15059. "PPSM",
  15060. ];
  15061. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15062. var photoA = [
  15063. "BMP",
  15064. "GIF",
  15065. "PNG",
  15066. "JPGE",
  15067. "JPEG",
  15068. "JPG",
  15069. "TIF",
  15070. "PCX",
  15071. "TGA",
  15072. "EXIF",
  15073. "FPX",
  15074. "SVG",
  15075. "APNG",
  15076. ];
  15077. // if (
  15078. // b.indexOf(
  15079. // file.name
  15080. // .split(".")
  15081. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15082. // ) != -1
  15083. // ) {
  15084. // if (file.size / 1024 / 1024 > 10) {
  15085. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  15086. // return;
  15087. // }
  15088. // } else if (
  15089. // excelA.indexOf(
  15090. // file.name
  15091. // .split(".")
  15092. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15093. // ) != "-1"
  15094. // ) {
  15095. // if (file.size / 1024 / 1024 > 5) {
  15096. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  15097. // return;
  15098. // }
  15099. // }
  15100. if (
  15101. photoA.indexOf(
  15102. file.name
  15103. .split(".")
  15104. [file.name.split(".").length - 1].toLocaleUpperCase()
  15105. ) != -1 &&
  15106. type != 4
  15107. ) {
  15108. // const blob = await imageConversion.compress(file, 0.8)
  15109. file = await this.pngToWhiteBg(file);
  15110. const blob = await imageConversion.compressAccurately(file, 256);
  15111. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15112. file = new File([blob], file.name, { type: file.type });
  15113. }
  15114. if (file) {
  15115. var params = {
  15116. Key:
  15117. file.name.split(".")[0] +
  15118. new Date().getTime() +
  15119. "." +
  15120. file.name.split(".")[file.name.split(".").length - 1],
  15121. ContentType: file.type,
  15122. Body: file,
  15123. "Access-Control-Allow-Credentials": "*",
  15124. ACL: "public-read",
  15125. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15126. var options = {
  15127. // partSize: 2048 * 1024 * 1024,
  15128. partSize: 1024 * 1024 * 1024,
  15129. queueSize: 2,
  15130. leavePartsOnError: true,
  15131. };
  15132. bucket
  15133. .upload(params, options)
  15134. .on("httpUploadProgress", function (evt) {
  15135. //这里可以写进度条
  15136. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15137. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  15138. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  15139. })
  15140. .send(function (err, data) {
  15141. _this.progress = 100;
  15142. _this.isFinishSize = _this.isAllSize;
  15143. setTimeout(() => {
  15144. _this.proVisible = false;
  15145. }, 1000);
  15146. if (err) {
  15147. var a = _this.$refs.upload1.uploadFiles;
  15148. a.splice(a.length - 1, a.length);
  15149. _this.$message.error("上传失败");
  15150. } else {
  15151. // _this.$message.success('上传成功')
  15152. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15153. var c = [
  15154. "AVI",
  15155. "NAVI",
  15156. "MPEG",
  15157. "ASF",
  15158. "MOV",
  15159. "WMV",
  15160. "3GP",
  15161. "RM",
  15162. "RMVB",
  15163. "FLV",
  15164. "F4V",
  15165. "H.264",
  15166. "H.265",
  15167. "REAL VIDEO",
  15168. "MKV",
  15169. "WebM",
  15170. "HDDVD",
  15171. "MP4",
  15172. "MPG",
  15173. "M4V",
  15174. "MGV",
  15175. "OGV",
  15176. "QTM",
  15177. "STR",
  15178. "AMC",
  15179. "DVX",
  15180. "EVO",
  15181. "DAT",
  15182. "OGG",
  15183. "OGM",
  15184. ];
  15185. if (type == 1) {
  15186. _this.studyJuri[0].cover.push({
  15187. name: file.name,
  15188. url: data.Location,
  15189. uid: file.uid,
  15190. });
  15191. if (
  15192. c.indexOf(
  15193. _this.studyJuri[0].cover[0].url
  15194. .split(".")
  15195. [
  15196. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15197. ].toLocaleUpperCase()
  15198. ) != -1
  15199. ) {
  15200. _this.fileType = 2;
  15201. } else if (
  15202. b.indexOf(
  15203. _this.studyJuri[0].cover[0].url
  15204. .split(".")
  15205. [
  15206. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15207. ].toLocaleUpperCase()
  15208. ) != -1
  15209. ) {
  15210. _this.fileType = 1;
  15211. } else if (
  15212. photoA.indexOf(
  15213. _this.studyJuri[0].cover[0].url
  15214. .split(".")
  15215. [
  15216. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15217. ].toLocaleUpperCase()
  15218. ) != -1
  15219. ) {
  15220. _this.fileType = 0;
  15221. } else {
  15222. _this.fileType = 3;
  15223. }
  15224. _this.imgChange(null, null, type);
  15225. } else if (type == 2) {
  15226. _this.upToolImg = data.Location;
  15227. _this.imgChange(null, null, type);
  15228. _this.addCourseWorks(i);
  15229. } else if (type == 4) {
  15230. _this.addPz("3", data.Location);
  15231. } else if (type == 5) {
  15232. _this.addImgDrawImG(data.Location);
  15233. } else if (type == 6) {
  15234. var _ftype = 1;
  15235. if (
  15236. c.indexOf(
  15237. data.Location.split(".")[
  15238. data.Location.split(".").length - 1
  15239. ].toLocaleUpperCase()
  15240. ) != -1
  15241. ) {
  15242. _ftype = 5;
  15243. } else if (
  15244. b.indexOf(
  15245. data.Location.split(".")[
  15246. data.Location.split(".").length - 1
  15247. ].toLocaleUpperCase()
  15248. ) != -1
  15249. ) {
  15250. _ftype = 4;
  15251. } else {
  15252. _ftype = 1;
  15253. }
  15254. _this.plworkFile.push({
  15255. name: file.name,
  15256. url: data.Location,
  15257. uid: file.uid,
  15258. fileType: _ftype,
  15259. username:
  15260. _this.plworkFile.length > 10
  15261. ? _this.plworkFile.length + 1
  15262. : "0" + (_this.plworkFile.length + 1),
  15263. });
  15264. } else if (type == 7) {
  15265. _this.addCourseWorksGong(i, data.Location, 32);
  15266. } else if (type == 8) {
  15267. _this.addCourseWorksGong(i, data.Location, 57);
  15268. }
  15269. _this.imgChange(null, null, type);
  15270. console.log(data.Location);
  15271. // _this.$message.success('上传成功'+data.Location)
  15272. }
  15273. });
  15274. }
  15275. },
  15276. async beforeUpload3(event, type, i) {
  15277. // this.$message.success('进入上传')
  15278. let file = "";
  15279. let cfindex2 = 0;
  15280. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  15281. file = event.target.files[cfindex];
  15282. var credentials = {
  15283. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15284. secretAccessKey: "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",
  15285. }; //秘钥形式的登录上传
  15286. window.AWS.config.update(credentials);
  15287. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15288. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15289. var _this = this;
  15290. // _this.progress = 0;
  15291. _this.proVisible2 = true;
  15292. var b = [
  15293. "DOC",
  15294. "DOCX",
  15295. "DOCM",
  15296. "DOTM",
  15297. "DOTX",
  15298. "PPTX",
  15299. "PPSX",
  15300. "PPT",
  15301. "PPS",
  15302. "PPTM",
  15303. "POTM",
  15304. "PPAM",
  15305. "POTX",
  15306. "PPSM",
  15307. ];
  15308. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15309. var photoA = [
  15310. "BMP",
  15311. "GIF",
  15312. "PNG",
  15313. "JPGE",
  15314. "JPG",
  15315. "TIF",
  15316. "PCX",
  15317. "TGA",
  15318. "EXIF",
  15319. "FPX",
  15320. "SVG",
  15321. "APNG",
  15322. ];
  15323. if (
  15324. photoA.indexOf(
  15325. file.name
  15326. .split(".")
  15327. [file.name.split(".").length - 1].toLocaleUpperCase()
  15328. ) != -1 &&
  15329. type != 4
  15330. ) {
  15331. // const blob = await imageConversion.compress(file, 0.8)
  15332. file = await this.pngToWhiteBg(file);
  15333. const blob = await imageConversion.compressAccurately(file, 256);
  15334. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15335. file = new File([blob], file.name, { type: file.type });
  15336. }
  15337. if (file) {
  15338. var params = {
  15339. Key:
  15340. file.name.split(".")[0] +
  15341. new Date().getTime() +
  15342. "." +
  15343. file.name.split(".")[file.name.split(".").length - 1],
  15344. ContentType: file.type,
  15345. Body: file,
  15346. "Access-Control-Allow-Credentials": "*",
  15347. ACL: "public-read",
  15348. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15349. var options = {
  15350. // partSize: 2048 * 1024 * 1024,
  15351. partSize: 1024 * 1024 * 1024,
  15352. queueSize: 2,
  15353. leavePartsOnError: true,
  15354. };
  15355. bucket
  15356. .upload(params, options)
  15357. .on("httpUploadProgress", function (evt) {
  15358. //这里可以写进度条
  15359. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15360. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15361. })
  15362. .send(function (err, data) {
  15363. // _this.progress = 100;
  15364. cfindex2++;
  15365. setTimeout(() => {
  15366. if (
  15367. cfindex2 == event.target.files.length - 1 ||
  15368. cfindex2 > event.target.files.length - 1
  15369. ) {
  15370. _this.proVisible2 = false;
  15371. }
  15372. }, 1000);
  15373. if (err) {
  15374. var a = _this.$refs.upload1.uploadFiles;
  15375. a.splice(a.length - 1, a.length);
  15376. _this.$message.error("上传失败");
  15377. } else {
  15378. // _this.$message.success('上传成功')
  15379. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15380. var c = [
  15381. "AVI",
  15382. "NAVI",
  15383. "MPEG",
  15384. "ASF",
  15385. "MOV",
  15386. "WMV",
  15387. "3GP",
  15388. "RM",
  15389. "RMVB",
  15390. "FLV",
  15391. "F4V",
  15392. "H.264",
  15393. "H.265",
  15394. "REAL VIDEO",
  15395. "MKV",
  15396. "WebM",
  15397. "HDDVD",
  15398. "MP4",
  15399. "MPG",
  15400. "M4V",
  15401. "MGV",
  15402. "OGV",
  15403. "QTM",
  15404. "STR",
  15405. "AMC",
  15406. "DVX",
  15407. "EVO",
  15408. "DAT",
  15409. "OGG",
  15410. "OGM",
  15411. ];
  15412. if (type == 1) {
  15413. _this.studyJuri[0].cover.push({
  15414. name: file.name,
  15415. url: data.Location,
  15416. uid: file.uid,
  15417. });
  15418. if (
  15419. c.indexOf(
  15420. _this.studyJuri[0].cover[0].url
  15421. .split(".")
  15422. [
  15423. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15424. ].toLocaleUpperCase()
  15425. ) != -1
  15426. ) {
  15427. _this.fileType = 2;
  15428. } else if (
  15429. b.indexOf(
  15430. _this.studyJuri[0].cover[0].url
  15431. .split(".")
  15432. [
  15433. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15434. ].toLocaleUpperCase()
  15435. ) != -1
  15436. ) {
  15437. _this.fileType = 1;
  15438. } else {
  15439. _this.fileType = 0;
  15440. }
  15441. _this.imgChange(null, null, type);
  15442. } else if (type == 2) {
  15443. _this.upToolImg = data.Location;
  15444. _this.imgChange(null, null, type);
  15445. _this.addCourseWorks(i);
  15446. } else if (type == 4) {
  15447. _this.addPz("3", data.Location);
  15448. } else if (type == 5) {
  15449. _this.addImgDrawImG(data.Location);
  15450. } else if (type == 6) {
  15451. var _ftype = 1;
  15452. if (
  15453. c.indexOf(
  15454. data.Location.split(".")[
  15455. data.Location.split(".").length - 1
  15456. ].toLocaleUpperCase()
  15457. ) != -1
  15458. ) {
  15459. _ftype = 5;
  15460. } else if (
  15461. b.indexOf(
  15462. data.Location.split(".")[
  15463. data.Location.split(".").length - 1
  15464. ].toLocaleUpperCase()
  15465. ) != -1
  15466. ) {
  15467. _ftype = 4;
  15468. } else {
  15469. _ftype = 1;
  15470. }
  15471. _this.plworkFile.push({
  15472. name: file.name,
  15473. url: data.Location,
  15474. uid: file.uid,
  15475. fileType: _ftype,
  15476. username:
  15477. _this.plworkFile.length + 1 > 9
  15478. ? _this.plworkFile.length + 1
  15479. : "0" + (_this.plworkFile.length + 1),
  15480. });
  15481. }
  15482. _this.imgChange(null, null, type);
  15483. console.log(data.Location);
  15484. // _this.$message.success('上传成功'+data.Location)
  15485. }
  15486. });
  15487. }
  15488. }
  15489. },
  15490. beforeUpload2(event, type) {
  15491. var file = event.target.files[0];
  15492. var credentials = {
  15493. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15494. secretAccessKey: "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",
  15495. }; //秘钥形式的登录上传
  15496. window.AWS.config.update(credentials);
  15497. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15498. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15499. var _this = this;
  15500. _this.progress = 0;
  15501. _this.proVisible = true;
  15502. if (file) {
  15503. var params = {
  15504. Key:
  15505. file.name.split(".")[0] +
  15506. new Date().getTime() +
  15507. "." +
  15508. file.name.split(".")[file.name.split(".").length - 1],
  15509. ContentType: file.type,
  15510. Body: file,
  15511. "Access-Control-Allow-Credentials": "*",
  15512. ACL: "public-read",
  15513. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15514. var options = {
  15515. partSize: 2048 * 1024 * 1024,
  15516. queueSize: 2,
  15517. leavePartsOnError: true,
  15518. };
  15519. bucket
  15520. .upload(params, options)
  15521. .on("httpUploadProgress", function (evt) {
  15522. //这里可以写进度条
  15523. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15524. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15525. })
  15526. .send(function (err, data) {
  15527. _this.progress = 100;
  15528. setTimeout(() => {
  15529. _this.proVisible = false;
  15530. }, 1000);
  15531. if (err) {
  15532. var a = _this.$refs.upload1.uploadFiles;
  15533. a.splice(a.length - 1, a.length);
  15534. _this.$message.error("上传失败");
  15535. } else {
  15536. if (type == 2) {
  15537. _this.studyJuri[0].upVedio.push({
  15538. name: file.name,
  15539. url: data.Location,
  15540. uid: file.uid,
  15541. });
  15542. _this.imgChange(null, null, type);
  15543. } else if (type == 3) {
  15544. _this.studyJuri[0].upFile.push({
  15545. name: file.name,
  15546. url: data.Location,
  15547. uid: file.uid,
  15548. });
  15549. _this.imgChange(null, null, type);
  15550. }
  15551. console.log(data.Location);
  15552. }
  15553. });
  15554. }
  15555. },
  15556. allScrell() {
  15557. window.parent.postMessage({ allScreen: this.screenType }, "*");
  15558. },
  15559. nextOrpreSteps(t) {
  15560. if (this.IsFollow && this.tType == 2) {
  15561. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15562. return;
  15563. }
  15564. var b = this.chapInfoList.length - 1;
  15565. if (t == 0) {
  15566. if (this.courseType == 0) {
  15567. if (this.taskCount == 0) {
  15568. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  15569. if (this.IsLookOpen) {
  15570. if (
  15571. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  15572. ) {
  15573. if (
  15574. this.courseDetail.userid != this.userid &&
  15575. this.courseDetail.course_teacher &&
  15576. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  15577. ) {
  15578. this.$message.error("任务未解锁");
  15579. } else {
  15580. this.$message.error("上一任务未解锁");
  15581. }
  15582. return;
  15583. }
  15584. }
  15585. this.navList[this.courseType].isOpen = false;
  15586. this.courseType = b;
  15587. this.taskCount =
  15588. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15589. .length - 1;
  15590. this.navList[this.courseType].isOpen = true;
  15591. } else {
  15592. this.taskCount--;
  15593. }
  15594. } else {
  15595. if (this.taskCount == 0) {
  15596. this.navList[this.courseType].isOpen = false;
  15597. this.courseType--;
  15598. this.taskCount =
  15599. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15600. .length - 1;
  15601. this.navList[this.courseType].isOpen = true;
  15602. } else {
  15603. this.taskCount--;
  15604. }
  15605. }
  15606. } else {
  15607. if (this.courseType == b) {
  15608. if (
  15609. this.taskCount ==
  15610. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15611. 1
  15612. ) {
  15613. this.navList[this.courseType].isOpen = false;
  15614. this.courseType = 0;
  15615. this.taskCount = 0;
  15616. this.navList[this.courseType].isOpen = true;
  15617. } else {
  15618. var bbb = parseInt(this.taskCount) + 1;
  15619. if (
  15620. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15621. .isLook &&
  15622. this.courseDetail.userid != this.userid && this.courseDetail.course_teacher &&
  15623. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15624. this.IsLookOpen
  15625. ) {
  15626. this.$message.error("任务未解锁");
  15627. return;
  15628. }
  15629. this.taskCount++;
  15630. if (this.IsLookOpen) {
  15631. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15632. this.taskCount
  15633. ].isLook = true;
  15634. this.addCourseState(3);
  15635. }
  15636. }
  15637. } else {
  15638. if (
  15639. this.taskCount ==
  15640. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15641. 1
  15642. ) {
  15643. var bbb = parseInt(this.courseType) + 1;
  15644. if (
  15645. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  15646. this.courseDetail.userid != this.userid &&
  15647. this.courseDetail.course_teacher &&
  15648. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15649. this.IsLookOpen
  15650. ) {
  15651. this.$message.error("任务未解锁");
  15652. return;
  15653. }
  15654. this.navList[this.courseType].isOpen = false;
  15655. this.courseType++;
  15656. this.taskCount = 0;
  15657. this.navList[this.courseType].isOpen = true;
  15658. } else {
  15659. var bbb = parseInt(this.taskCount) + 1;
  15660. if (
  15661. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15662. .isLook &&
  15663. this.courseDetail.userid != this.userid &&
  15664. this.courseDetail.course_teacher &&
  15665. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15666. this.IsLookOpen
  15667. ) {
  15668. this.$message.error("任务未解锁");
  15669. return;
  15670. }
  15671. this.taskCount++;
  15672. }
  15673. if (this.IsLookOpen) {
  15674. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15675. this.taskCount
  15676. ].isLook = true;
  15677. this.addCourseState(3);
  15678. }
  15679. }
  15680. // if (
  15681. // this.taskCount ==
  15682. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  15683. // ) {
  15684. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  15685. // } else {
  15686. // this.taskCount++;
  15687. // }
  15688. }
  15689. document.scrollingElement.scrollTop = 0;
  15690. this.showType = 0;
  15691. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15692. // if (this.vedio[this.taskCount].length > 0) {
  15693. // var a =
  15694. // document.getElementsByClassName("box_course")[this.taskCount]
  15695. // .offsetHeight;
  15696. // document.getElementsByClassName("vedioList")[
  15697. // this.taskCount
  15698. // ].style.height = a + "px";
  15699. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  15700. // a - 40 + "px";
  15701. // }
  15702. this.isNoHomeWork = false;
  15703. (this.studyJuri = [
  15704. {
  15705. content: "",
  15706. cover: [],
  15707. upVedio: [],
  15708. upFile: [],
  15709. },
  15710. ]),
  15711. (this.radio = []);
  15712. this.isClickNav = "";
  15713. this.selectPz();
  15714. this.getHomeWork();
  15715. this.getCourseDetail(2);
  15716. this.$forceUpdate();
  15717. },
  15718. openTask(s, n, i,ctype) {
  15719. if (this.IsFollow && this.tType == 2) {
  15720. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15721. return;
  15722. }
  15723. if (this.IsLookOpen) {
  15724. if (
  15725. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  15726. this.courseDetail.userid != this.userid &&
  15727. this.courseDetail.course_teacher &&
  15728. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  15729. ) {
  15730. this.$message.error("任务未解锁");
  15731. return;
  15732. }
  15733. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  15734. if (
  15735. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  15736. .isLook
  15737. ) {
  15738. this.$message.error("上一任务未解锁");
  15739. return;
  15740. }
  15741. } else if (s > this.courseType) {
  15742. if (n > 0) {
  15743. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  15744. this.$message.error("上一任务未解锁");
  15745. return;
  15746. }
  15747. } else {
  15748. if (
  15749. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  15750. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  15751. ].isLook
  15752. ) {
  15753. this.$message.error("上一任务未解锁");
  15754. return;
  15755. }
  15756. }
  15757. }
  15758. }
  15759. if (this.navList[s].task[n].isOpen == true && ctype != 2) {
  15760. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  15761. return;
  15762. }
  15763. this.courseType = s;
  15764. this.navId = i;
  15765. this.taskCount = n;
  15766. if(ctype == 2){
  15767. this.navList[s].task[n].isOpen = true
  15768. }else{
  15769. this.navList[this.courseType].task[this.taskCount].isOpen =
  15770. !this.navList[this.courseType].task[this.taskCount].isOpen;
  15771. }
  15772. if (this.IsLookOpen) {
  15773. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15774. this.taskCount
  15775. ].isLook = true;
  15776. this.addCourseState(3);
  15777. }
  15778. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  15779. this.isCloseList[ci].isClose = 0;
  15780. this.isCloseList[ci].isCloseBoolean = false;
  15781. this.$nextTick(()=>{
  15782. setTimeout(()=>{
  15783. setTimeout(()=>{
  15784. this.panToolHeight('tool-'+ci);
  15785. }, 0)
  15786. }, 0)
  15787. })
  15788. }
  15789. this.showType = 0;
  15790. this.isNoHomeWork = false;
  15791. (this.studyJuri = [
  15792. {
  15793. content: "",
  15794. cover: [],
  15795. upVedio: [],
  15796. upFile: [],
  15797. },
  15798. ]),
  15799. (this.radio = []);
  15800. document.scrollingElement.scrollTop = 0;
  15801. // setTimeout(() => {
  15802. // let a = document.getElementById(i);
  15803. // if (a.offsetTop - 110 == 0) {
  15804. // window.scrollTo(0, 0);
  15805. // } else {
  15806. // window.scrollTo(0, a.offsetTop);
  15807. // }
  15808. // }, 0);
  15809. for (var z = 0; z < this.navList.length; z++) {
  15810. for (var q = 0; q < this.navList[z].task.length; q++) {
  15811. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  15812. this.navList[z].task[q].tool[w].isTool = false;
  15813. }
  15814. }
  15815. }
  15816. this.selectPz();
  15817. this.getHomeWork();
  15818. this.getCourseDetail(2);
  15819. },
  15820. get(i) {
  15821. if (this.IsFollow && this.tType == 2) {
  15822. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15823. return;
  15824. }
  15825. // for(var k=0;k<this.navList.length;k++){
  15826. // this.navList[k].isOpen = false;
  15827. // }
  15828. // this.navList[i].isOpen = true;
  15829. let a = this.navList[i].isOpen
  15830. this.navList[i].isOpen = !this.navList[i].isOpen;
  15831. this.$forceUpdate()
  15832. if (this.navList[i].isOpen) {
  15833. this.openTask(i, 0, (i + "-0"),2);
  15834. }
  15835. },
  15836. addQuestion() {
  15837. this.answerList.push({
  15838. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  15839. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  15840. });
  15841. let params = [
  15842. {
  15843. uid: this.userid,
  15844. cid: this.id,
  15845. stage: this.courseType,
  15846. task: this.taskCount,
  15847. tool: this.toolindex,
  15848. content: JSON.stringify(this.answerList),
  15849. type: 3,
  15850. },
  15851. ];
  15852. this.ajax
  15853. .post(this.$store.state.api + "addCourseWorks", params)
  15854. .then((res) => {
  15855. this.$message({
  15856. message: "提交成功",
  15857. type: "success",
  15858. });
  15859. this.answerList = [];
  15860. this.answerDialogVisible = false;
  15861. this.selectStudent();
  15862. this.selectSWorks();
  15863. this.selectSLook();
  15864. })
  15865. .catch((err) => {
  15866. this.$message.error("提交失败");
  15867. console.error(err);
  15868. });
  15869. },
  15870. addQuestionTeacher() {
  15871. this.answerList.push({
  15872. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  15873. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  15874. });
  15875. let params = [
  15876. {
  15877. uid: this.sStudent.userid,
  15878. cid: this.id,
  15879. stage: this.courseType,
  15880. task: this.taskCount,
  15881. tool: this.toolindex,
  15882. content: JSON.stringify(this.answerList),
  15883. type: 3,
  15884. ateacher: this.userid,
  15885. },
  15886. ];
  15887. this.ajax
  15888. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  15889. .then((res) => {
  15890. this.$message({
  15891. message: "提交成功",
  15892. type: "success",
  15893. });
  15894. this.answerList = [];
  15895. this.questionAnswer = "";
  15896. this.answerDialogVisibleTeacher = false;
  15897. this.selectStudent();
  15898. this.selectSWorks();
  15899. this.selectSLook();
  15900. })
  15901. .catch((err) => {
  15902. this.$message.error("提交失败");
  15903. console.error(err);
  15904. });
  15905. },
  15906. refreshCourse() {
  15907. // window.location.reload();
  15908. this.navList = [];
  15909. this.getCourseDetail(1);
  15910. },
  15911. getCourseDetail(type, gindex) {
  15912. let loading;
  15913. if (type != 2) {
  15914. loading = this.$loading.service({
  15915. background: "rgba(255, 255, 255, 0.7)",
  15916. target: document.querySelector(".student_table"),
  15917. });
  15918. }
  15919. this.downLoading = false
  15920. // this.navList[0].isOpen = false;
  15921. // this.navList[this.courseType].isOpen = true;
  15922. // this.courseType = this.courseTypeLine;
  15923. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15924. let params = {
  15925. courseId: this.id,
  15926. };
  15927. this.ajax
  15928. .get(this.$store.state.api + "selectCourseDetail3", params)
  15929. .then((res) => {
  15930. if (type != 2) {
  15931. loading.close();
  15932. if (
  15933. this.courseType >
  15934. JSON.parse(res.data[0][0].chapters).length - 1
  15935. ) {
  15936. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  15937. }
  15938. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15939. .chapterInfo[0].taskJson;
  15940. var b = [
  15941. "AVI",
  15942. "NAVI",
  15943. "MPEG",
  15944. "ASF",
  15945. "MOV",
  15946. "WMV",
  15947. "3GP",
  15948. "RM",
  15949. "RMVB",
  15950. "FLV",
  15951. "F4V",
  15952. "H.264",
  15953. "H.265",
  15954. "REAL VIDEO",
  15955. "MKV",
  15956. "WebM",
  15957. "HDDVD",
  15958. "MP4",
  15959. "MPG",
  15960. "M4V",
  15961. "MGV",
  15962. "OGV",
  15963. "QTM",
  15964. "STR",
  15965. "AMC",
  15966. "DVX",
  15967. "EVO",
  15968. "DAT",
  15969. "OGG",
  15970. "OGM",
  15971. "MP3",
  15972. ];
  15973. let _chapterData = [];
  15974. for (var i = 0; i < a.length; i++) {
  15975. var c = a[i].chapterData;
  15976. this.vedio[i] = [];
  15977. this.textList[i] = [];
  15978. this.lineList[i] = [];
  15979. this.chapToolList[i] = [];
  15980. this.file[i] = [];
  15981. this.fileC[i] = [];
  15982. _chapterData[i] = c.filter((el) => {
  15983. return el.type != 12;
  15984. });
  15985. this.fileC[i] = c.filter((el) => {
  15986. return el.type == 12;
  15987. });
  15988. // else if (c[j].type == 12) {
  15989. // this.fileC[i].push(c[j]);
  15990. // }
  15991. for (var j = 0; j < c.length; j++) {
  15992. if (c[j].type == 7) {
  15993. this.chapToolList[i].push(c[j]);
  15994. } else if (c[j].type == 8 || c[j].type == 14) {
  15995. this.lineList[i].push(c[j]);
  15996. } else if (c[j].type == 6) {
  15997. this.textList[i].push(c[j]);
  15998. } else {
  15999. if (
  16000. b.indexOf(
  16001. c[j].url
  16002. .split(".")
  16003. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16004. ) != -1
  16005. ) {
  16006. this.vedio[i].push(c[j]);
  16007. } else {
  16008. this.file[i].push(c[j]);
  16009. }
  16010. }
  16011. }
  16012. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16013. d.sources[0].src =
  16014. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16015. this.playerO[i] = d;
  16016. }
  16017. this.courseDetail = res.data[0][0];
  16018. this.tcid = this.arrayToArray(
  16019. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16020. this.tcid2 ? this.tcid2.split(",") : []
  16021. ).join(",");
  16022. this.evalua = res.data[0][0].evaId;
  16023. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  16024. this.courseType
  16025. ];
  16026. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16027. if (this.tcid && res.data[1].length) {
  16028. let _inviteA = [];
  16029. for (var ik = 0; ik < res.data[1].length; ik++) {
  16030. _inviteA.push({
  16031. cid: res.data[1][ik].classid,
  16032. ic: res.data[1][ik].code,
  16033. });
  16034. }
  16035. for (var ik = 0; ik < _inviteA.length; ik++) {
  16036. if (
  16037. this.arrayToArray(
  16038. _inviteA[ik].cid.split(","),
  16039. this.tcid.split(",")
  16040. ).length
  16041. ) {
  16042. this.inviteCode = _inviteA[ik].ic;
  16043. break;
  16044. }
  16045. }
  16046. }
  16047. for (var l = 0; l < this.chapInfoList.length; l++) {
  16048. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16049. for (var m = 0; m < w.length; m++) {
  16050. w[m].id = l + "-" + m;
  16051. }
  16052. }
  16053. if (
  16054. _chapterData[this.taskCount].length &&
  16055. _chapterData[this.taskCount][0].type == 2
  16056. ) {
  16057. this.showType = 0;
  16058. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16059. } else {
  16060. if (_chapterData[this.taskCount].length > 0) {
  16061. let _url = _chapterData[this.taskCount][0].url;
  16062. if (
  16063. _chapterData[this.taskCount][0].type == 8 ||
  16064. _chapterData[this.taskCount][0].type == 14
  16065. ) {
  16066. this.showType = 2;
  16067. if (
  16068. _url.indexOf("https://") == -1 &&
  16069. _url.indexOf("http://") == -1
  16070. ) {
  16071. _url = "https://" + _url;
  16072. }
  16073. this.pptImgUrl1 = _url;
  16074. } else if (_chapterData[this.taskCount][0].type == 3) {
  16075. if (
  16076. _url
  16077. .split(".")
  16078. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16079. ) {
  16080. this.showType = 3;
  16081. this.pptImgUrl1 = _url;
  16082. } else if (
  16083. this.isAssetTypeAnImage(
  16084. _url
  16085. .split(".")
  16086. [_url.split(".").length - 1].toLocaleLowerCase()
  16087. )
  16088. ) {
  16089. this.showType = 4;
  16090. this.pptImgUrl1 = _url;
  16091. } else {
  16092. this.showType = 2;
  16093. this.pptImgUrl1 =
  16094. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16095. encodeURIComponent(_url);
  16096. }
  16097. } else if (_chapterData[this.taskCount][0].type == 13) {
  16098. this.showType = 4;
  16099. this.pptImgUrl1 = _url;
  16100. } else if (_chapterData[this.taskCount][0].type == 6) {
  16101. this.showType = 1;
  16102. this.text = this.textList[this.taskCount][0];
  16103. }
  16104. }
  16105. }
  16106. this.isClickNav = 0;
  16107. if (
  16108. !_chapterData[this.taskCount].length ||
  16109. _chapterData[this.taskCount][0].type == 12
  16110. ) {
  16111. this.isClickNav = "";
  16112. this.showType = "";
  16113. }
  16114. this.vChapterData = _chapterData;
  16115. } else {
  16116. this.showType = 0;
  16117. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16118. .chapterInfo[0].taskJson;
  16119. var b = [
  16120. "AVI",
  16121. "NAVI",
  16122. "MPEG",
  16123. "ASF",
  16124. "MOV",
  16125. "WMV",
  16126. "3GP",
  16127. "RM",
  16128. "RMVB",
  16129. "FLV",
  16130. "F4V",
  16131. "H.264",
  16132. "H.265",
  16133. "REAL VIDEO",
  16134. "MKV",
  16135. "WebM",
  16136. "HDDVD",
  16137. "MP4",
  16138. "MPG",
  16139. "M4V",
  16140. "MGV",
  16141. "OGV",
  16142. "QTM",
  16143. "STR",
  16144. "AMC",
  16145. "DVX",
  16146. "EVO",
  16147. "DAT",
  16148. "OGG",
  16149. "OGM",
  16150. "MP3",
  16151. ];
  16152. let _chapterData = [];
  16153. for (var i = 0; i < a.length; i++) {
  16154. var c = a[i].chapterData;
  16155. this.vedio[i] = [];
  16156. this.textList[i] = [];
  16157. this.lineList[i] = [];
  16158. this.chapToolList[i] = [];
  16159. this.file[i] = [];
  16160. this.fileC[i] = [];
  16161. _chapterData[i] = c.filter((el) => {
  16162. return el.type != 12;
  16163. });
  16164. this.fileC[i] = c.filter((el) => {
  16165. return el.type == 12;
  16166. });
  16167. for (var j = 0; j < c.length; j++) {
  16168. if (c[j].type == 7) {
  16169. this.chapToolList[i].push(c[j]);
  16170. } else if (c[j].type == 8 || c[j].type == 14) {
  16171. this.lineList[i].push(c[j]);
  16172. } else if (c[j].type == 6) {
  16173. this.textList[i].push(c[j]);
  16174. } else {
  16175. if (
  16176. b.indexOf(
  16177. c[j].url
  16178. .split(".")
  16179. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16180. ) != -1
  16181. ) {
  16182. this.vedio[i].push(c[j]);
  16183. } else {
  16184. this.file[i].push(c[j]);
  16185. }
  16186. }
  16187. }
  16188. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16189. d.sources[0].src =
  16190. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16191. this.playerO[i] = d;
  16192. }
  16193. if (
  16194. _chapterData[this.taskCount].length &&
  16195. _chapterData[this.taskCount][0].type == 2
  16196. ) {
  16197. this.showType = 0;
  16198. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16199. } else {
  16200. if (_chapterData[this.taskCount].length > 0) {
  16201. let _url = _chapterData[this.taskCount][0].url;
  16202. if (
  16203. _chapterData[this.taskCount][0].type == 8 ||
  16204. _chapterData[this.taskCount][0].type == 14
  16205. ) {
  16206. this.showType = 2;
  16207. if (
  16208. _url.indexOf("https://") == -1 &&
  16209. _url.indexOf("http://") == -1
  16210. ) {
  16211. _url = "https://" + _url;
  16212. }
  16213. this.pptImgUrl1 = _url;
  16214. } else if (_chapterData[this.taskCount][0].type == 3) {
  16215. if (
  16216. _url
  16217. .split(".")
  16218. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16219. ) {
  16220. this.showType = 3;
  16221. this.pptImgUrl1 = _url;
  16222. } else if (
  16223. this.isAssetTypeAnImage(
  16224. _url
  16225. .split(".")
  16226. [_url.split(".").length - 1].toLocaleLowerCase()
  16227. )
  16228. ) {
  16229. this.showType = 4;
  16230. this.pptImgUrl1 = _url;
  16231. } else {
  16232. this.showType = 2;
  16233. this.pptImgUrl1 =
  16234. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16235. encodeURIComponent(_url);
  16236. }
  16237. } else if (_chapterData[this.taskCount][0].type == 13) {
  16238. this.showType = 4;
  16239. this.pptImgUrl1 = _url;
  16240. } else if (_chapterData[this.taskCount][0].type == 6) {
  16241. this.showType = 1;
  16242. this.text = this.textList[this.taskCount][0];
  16243. }
  16244. }
  16245. }
  16246. this.isClickNav = 0;
  16247. if (
  16248. !_chapterData[this.taskCount].length ||
  16249. _chapterData[this.taskCount][0].type == 12
  16250. ) {
  16251. this.isClickNav = "";
  16252. this.showType = "";
  16253. }
  16254. this.vChapterData = _chapterData;
  16255. this.$forceUpdate();
  16256. }
  16257. // else {
  16258. // this.courseDetail = res.data[0][0];
  16259. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16260. // }
  16261. let _this = this;
  16262. if (_this.timer) {
  16263. clearInterval(_this.timer);
  16264. _this.timer = null;
  16265. }
  16266. if (_this.tcid) {
  16267. _this.getCourseGroup(gindex);
  16268. } else {
  16269. _this.selectSWorks(gindex);
  16270. }
  16271. _this.selectStudent();
  16272. _this.selectSLook();
  16273. _this.getPick();
  16274. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16275. _this.setCTask();
  16276. }
  16277. if (_this.dialogVisibleGroup) {
  16278. _this.groupJson =
  16279. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16280. _this.taskCount
  16281. ].toolChoose[_this.toolindex].groupJson;
  16282. }
  16283. _this.$nextTick(() => {
  16284. setTimeout(() => {
  16285. _this.checkEva();
  16286. }, 1000);
  16287. });
  16288. _this.timer = setInterval(function () {
  16289. // _this.getCourseDetail(2);
  16290. if (_this.tcid) {
  16291. _this.getCourseGroup(gindex);
  16292. } else {
  16293. _this.selectSWorks(gindex);
  16294. }
  16295. _this.selectStudent();
  16296. _this.selectSLook();
  16297. _this.getPick();
  16298. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16299. _this.setCTask();
  16300. }
  16301. if (_this.dialogVisibleGroup) {
  16302. _this.groupJson =
  16303. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16304. _this.taskCount
  16305. ].toolChoose[_this.toolindex].groupJson;
  16306. }
  16307. if (_this.tType == 4 || _this.ispzType == 4) {
  16308. _this.selectPz();
  16309. }
  16310. }, 5000);
  16311. _this.$nextTick(function () {
  16312. setTimeout(() => {
  16313. // var a =
  16314. // document.getElementsByClassName("box_course")[0].offsetHeight;
  16315. // document.getElementsByClassName("vedioList")[0].style.height =
  16316. // a + "px";
  16317. // document.getElementsByClassName("navBox")[0].style.height =
  16318. // a - 40 + "px";
  16319. // if (_this.vedio[_this.taskCount].length > 0) {
  16320. // _this.vedioTime = [];
  16321. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  16322. // _this.vedioTime[i] = document.getElementsByClassName(
  16323. // "vjs-duration-display"
  16324. // )[i].textContent;
  16325. // }
  16326. // }
  16327. }, 1000);
  16328. });
  16329. })
  16330. .catch((err) => {
  16331. loading.close();
  16332. console.error(err);
  16333. });
  16334. },
  16335. getCourseGroup(gindex) {
  16336. let params = {
  16337. cid: this.id,
  16338. classid: this.tcid ? this.tcid : "1",
  16339. };
  16340. this.ajax
  16341. .get(this.$store.state.api + "getCourseGroup", params)
  16342. .then((res) => {
  16343. if (res.data && res.data[0].length) {
  16344. if (!this.isGroup) {
  16345. let courseGroup = JSON.parse(res.data[0][0].group);
  16346. courseGroup.group = courseGroup.group.filter((el) => {
  16347. el.works = [];
  16348. return el;
  16349. });
  16350. if (courseGroup.isopen == 2) {
  16351. this.isGroup = false;
  16352. this.selectSWorks(gindex);
  16353. return;
  16354. }
  16355. this.courseGroup = courseGroup;
  16356. let groupPerson = res.data[1];
  16357. let group = JSON.parse(res.data[0][0].group).group;
  16358. let courseGroupStudent = {};
  16359. let courseGroupStudentUid = {};
  16360. for (var i = 0; i < group.length; i++) {
  16361. courseGroupStudent[group[i].id] = [];
  16362. courseGroupStudentUid[group[i].id] = [];
  16363. for (var j = 0; j < groupPerson.length; j++) {
  16364. if (groupPerson[j].groupCid == group[i].id) {
  16365. courseGroupStudent[group[i].id].push(groupPerson[j]);
  16366. courseGroupStudentUid[group[i].id].push(
  16367. groupPerson[j].userid
  16368. );
  16369. }
  16370. }
  16371. }
  16372. this.courseGroupStudent = courseGroupStudent;
  16373. this.courseGroupStudentUid = courseGroupStudentUid;
  16374. }
  16375. if (this.courseGroup.isopen == 2) {
  16376. this.isGroup = false;
  16377. } else {
  16378. this.isGroup = true;
  16379. }
  16380. this.selectSWorks(gindex);
  16381. } else {
  16382. this.selectSWorks(gindex);
  16383. this.isGroup = false;
  16384. }
  16385. })
  16386. .catch((err) => {
  16387. // this.$message.error("网络不佳");
  16388. console.error(err);
  16389. });
  16390. },
  16391. setOperationTime() {
  16392. let _this = this;
  16393. if (_this.opertimer) {
  16394. clearInterval(_this.opertimer);
  16395. _this.opertimer = null;
  16396. }
  16397. _this.opertimer = setInterval(() => {
  16398. _this.setoTime("600");
  16399. }, 600000);
  16400. },
  16401. setoTime(time) {
  16402. let params = [
  16403. {
  16404. uid: this.userid,
  16405. cid: this.id,
  16406. type: "2",
  16407. time: time,
  16408. },
  16409. ];
  16410. this.ajax
  16411. .post(this.$store.state.api + "addOperationTimeT2", params)
  16412. .then((res) => {})
  16413. .catch((err) => {
  16414. console.error(err);
  16415. });
  16416. },
  16417. addPz(type, content) {
  16418. if (type == "1" && this.pzConText == "") {
  16419. this.$message.error("评论不能为空!");
  16420. return;
  16421. }
  16422. let params = [
  16423. {
  16424. cid: this.id,
  16425. uid: this.userid,
  16426. s: this.courseType,
  16427. t: this.taskCount,
  16428. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  16429. type: type,
  16430. },
  16431. ];
  16432. this.ajax
  16433. .post(this.$store.state.api + "addPz2", params)
  16434. .then((res) => {
  16435. this.$message({
  16436. message: "添加成功",
  16437. type: "success",
  16438. });
  16439. this.pzConText = "";
  16440. this.addPzDialog = false;
  16441. this.selectPz();
  16442. })
  16443. .catch((err) => {
  16444. this.$message.error("添加失败");
  16445. console.error(err);
  16446. });
  16447. },
  16448. setReplyIndex(id, i) {
  16449. this.replyIndex = i;
  16450. this.replyPid = id;
  16451. this.replyDialogVisible = true;
  16452. },
  16453. addHf() {
  16454. if (this.reply == "") {
  16455. this.$message.error("回复不能为空!");
  16456. return;
  16457. }
  16458. let params = [
  16459. {
  16460. cid: this.id,
  16461. uid: this.userid,
  16462. s: this.courseType,
  16463. t: this.taskCount,
  16464. type: "1",
  16465. ct: 2,
  16466. pid: this.replyPid,
  16467. c: this.reply.replaceAll(/%/g, "%25"),
  16468. },
  16469. ];
  16470. this.ajax
  16471. .post(this.$store.state.api + "addHf", params)
  16472. .then((res) => {
  16473. this.reply = "";
  16474. this.$message({
  16475. message: "回复成功",
  16476. type: "success",
  16477. });
  16478. this.replyDialogVisible = false;
  16479. this.selectPz();
  16480. })
  16481. .catch((err) => {
  16482. this.$message.error("回复失败");
  16483. console.error(err);
  16484. });
  16485. },
  16486. deletePz(id) {
  16487. this.$confirm("确定删除此评论吗?", "提示", {
  16488. confirmButtonText: "确定",
  16489. cancelButtonText: "取消",
  16490. type: "warning",
  16491. })
  16492. .then(() => {
  16493. let params = [
  16494. {
  16495. id: id,
  16496. },
  16497. ];
  16498. this.ajax
  16499. .post(this.$store.state.api + "deletePz", params)
  16500. .then((res) => {
  16501. this.$message({
  16502. message: "删除成功",
  16503. type: "success",
  16504. });
  16505. this.selectPz();
  16506. })
  16507. .catch((err) => {
  16508. this.$message.error("网络异常");
  16509. console.error(err);
  16510. });
  16511. })
  16512. .catch(() => {});
  16513. },
  16514. deleteReply(id) {
  16515. this.$confirm("确定删除此回复吗?", "提示", {
  16516. confirmButtonText: "确定",
  16517. cancelButtonText: "取消",
  16518. type: "warning",
  16519. })
  16520. .then(() => {
  16521. let params = [
  16522. {
  16523. id: id,
  16524. },
  16525. ];
  16526. this.ajax
  16527. .post(this.$store.state.api + "deleteReply", params)
  16528. .then((res) => {
  16529. this.$message({
  16530. message: "删除成功",
  16531. type: "success",
  16532. });
  16533. this.selectPz();
  16534. })
  16535. .catch((err) => {
  16536. this.$message.error("网络异常");
  16537. console.error(err);
  16538. });
  16539. })
  16540. .catch(() => {});
  16541. },
  16542. setPz() {
  16543. if (this.ispzType == 4) {
  16544. this.ispzType = 0;
  16545. this.pzDialog = false;
  16546. return;
  16547. }
  16548. this.ispzType = 4;
  16549. this.pzDialog = true;
  16550. this.selectPz();
  16551. },
  16552. selectPz() {
  16553. let params = {
  16554. cid: this.id,
  16555. s: this.courseType,
  16556. t: this.taskCount,
  16557. type: this.pzStype,
  16558. uid: this.userid,
  16559. };
  16560. this.ajax
  16561. .get(this.$store.state.api + "selectPzListType", params)
  16562. .then((res) => {
  16563. this.pzList = res.data[0];
  16564. var a = res.data[1];
  16565. for (var i = 0; i < a.length; i++) {
  16566. for (var j = 0; j < this.pzList.length; j++) {
  16567. if (!this.pzList[j].hfList) {
  16568. this.pzList[j].hfList = [];
  16569. }
  16570. if (a[i].pid == this.pzList[j].id) {
  16571. this.pzList[j].hfList.push(a[i]);
  16572. }
  16573. }
  16574. }
  16575. })
  16576. .catch((err) => {
  16577. console.error(err);
  16578. });
  16579. },
  16580. // selectHf() {
  16581. // let params = {
  16582. // cid: this.id,
  16583. // s: this.courseType,
  16584. // t: this.taskCount,
  16585. // };
  16586. // this.ajax
  16587. // .get(this.$store.state.api + "selectHfList", params)
  16588. // .then((res) => {
  16589. // var a = res.data[0];
  16590. // for (var i = 0; i < a.length; i++) {
  16591. // for (var j = 0; j < this.pzList.length; j++) {
  16592. // if (!this.pzList[i].hfList) {
  16593. // this.pzList[i].hfList = [];
  16594. // }
  16595. // if (a[i].pid == this.pzList[j].id) {
  16596. // this.pzList[i].hfList.push(a[i]);
  16597. // }
  16598. // }
  16599. // }
  16600. // })
  16601. // .catch((err) => {
  16602. // console.error(err);
  16603. // });
  16604. // },
  16605. updateSLook() {
  16606. let params = {
  16607. sopen: this.sIsOpen == false ? 1 : 2,
  16608. cid: this.id,
  16609. };
  16610. this.ajax
  16611. .get(this.$store.state.api + "updateCourseSLook", params)
  16612. .then((res) => {
  16613. if (this.sIsOpen == true) {
  16614. this.$message({
  16615. message: "权限设置成功",
  16616. type: "success",
  16617. });
  16618. } else {
  16619. this.$message({
  16620. message: "权限关闭成功",
  16621. type: "success",
  16622. });
  16623. }
  16624. })
  16625. .catch((err) => {
  16626. console.error(err);
  16627. });
  16628. },
  16629. updateFollow() {
  16630. let params = [
  16631. {
  16632. sopen: this.IsFollow == false ? 1 : 2,
  16633. cid: this.id,
  16634. },
  16635. ];
  16636. this.ajax
  16637. .post(this.$store.state.api + "updateCourseFollow", params)
  16638. .then((res) => {
  16639. if (this.IsFollow == true) {
  16640. this.$message({
  16641. message: "开启成功",
  16642. type: "success",
  16643. });
  16644. } else {
  16645. this.$message({
  16646. message: "关闭成功",
  16647. type: "success",
  16648. });
  16649. }
  16650. this.setCTask();
  16651. })
  16652. .catch((err) => {
  16653. console.error(err);
  16654. });
  16655. },
  16656. setCTask() {
  16657. let params = [
  16658. {
  16659. sopen: this.courseType + "-" + this.taskCount,
  16660. cid: this.id,
  16661. },
  16662. ];
  16663. this.ajax
  16664. .post(this.$store.state.api + "updateCourseFollowC", params)
  16665. .then((res) => {})
  16666. .catch((err) => {
  16667. console.error(err);
  16668. });
  16669. },
  16670. updateLookOpen() {
  16671. let params = [
  16672. {
  16673. sopen: this.IsLookOpen == false ? 1 : 2,
  16674. cid: this.id,
  16675. },
  16676. ];
  16677. this.ajax
  16678. .post(this.$store.state.api + "updateCourseLookOpen", params)
  16679. .then((res) => {
  16680. if (this.IsLookOpen == true) {
  16681. // if (this.courseType != 0 && this.taskCount != 0) {
  16682. // this.openTask(0, 0, "0-0");
  16683. // }
  16684. this.$message({
  16685. message: "权限设置成功",
  16686. type: "success",
  16687. });
  16688. } else {
  16689. this.$message({
  16690. message: "权限关闭成功",
  16691. type: "success",
  16692. });
  16693. }
  16694. this.getCourseState(2);
  16695. })
  16696. .catch((err) => {
  16697. console.error(err);
  16698. });
  16699. },
  16700. selectSLook() {
  16701. let params = {
  16702. cid: this.id,
  16703. };
  16704. this.ajax
  16705. .get(this.$store.state.api + "selectCourseSLook", params)
  16706. .then((res) => {
  16707. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  16708. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  16709. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  16710. if (!this.IsLookOpen) {
  16711. this.setNavList();
  16712. } else {
  16713. this.getCourseState(1);
  16714. }
  16715. if (this.IsFollow && this.tType == 2) {
  16716. this.setContent2(false);
  16717. let _followC = res.data[0][0].followC.split("-");
  16718. if (
  16719. this.courseType != _followC[0] ||
  16720. this.taskCount != _followC[1]
  16721. ) {
  16722. this.navList[this.courseType].isOpen = false;
  16723. this.courseType = _followC[0];
  16724. this.navList[this.courseType].isOpen = true;
  16725. this.taskCount = parseInt(_followC[1]);
  16726. this.navId = res.data[0][0].followC;
  16727. document.scrollingElement.scrollTop = 0;
  16728. this.getCourseDetail(2);
  16729. }
  16730. }
  16731. })
  16732. .catch((err) => {
  16733. console.error(err);
  16734. });
  16735. },
  16736. setNavList() {
  16737. if (this.navList.length == 0) {
  16738. this.navList = [];
  16739. var copyList = [];
  16740. for (var l = 0; l < this.chapInfoList.length; l++) {
  16741. var q = this.chapInfoList[l].dyName;
  16742. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16743. var e;
  16744. copyList.push({
  16745. dyName: q,
  16746. isOpen: l === 0 ? true : false,
  16747. task: [],
  16748. });
  16749. for (var r = 0; r < w.length; r++) {
  16750. e = w[r].task;
  16751. if (this.chapInfoList[l].easy == 1) {
  16752. copyList[l].task.push({
  16753. taskName: q,
  16754. id: l + "-" + r,
  16755. isLook: w[r].isLook,
  16756. isOpen: r === 0 ? true : false,
  16757. tool: [],
  16758. });
  16759. } else {
  16760. copyList[l].task.push({
  16761. taskName: e,
  16762. id: l + "-" + r,
  16763. isLook: w[r].isLook,
  16764. isOpen: r === 0 ? true : false,
  16765. tool: [],
  16766. });
  16767. }
  16768. var t = w[r].toolChoose;
  16769. for (var k = 0; k < t.length; k++) {
  16770. var tool = t[k].tool[0];
  16771. copyList[l].task[r].tool.push({
  16772. tool: tool,
  16773. isTool: false,
  16774. });
  16775. }
  16776. // this.navId = this.navId ? this.navId : l + "-" + r;
  16777. // this.navId = l + "-" + r;
  16778. }
  16779. }
  16780. this.navList = copyList;
  16781. this.navList[0].isOpen = false;
  16782. this.navList[this.courseType].isOpen = true;
  16783. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16784. } else {
  16785. this.setNavList2();
  16786. }
  16787. },
  16788. setNavList2() {
  16789. for (var l = 0; l < this.chapInfoList.length; l++) {
  16790. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16791. for (var r = 0; r < w.length; r++) {
  16792. this.navList[l].task[r].isLook = w[r].isLook;
  16793. }
  16794. }
  16795. if (
  16796. this.IsLookOpen &&
  16797. !this.navList[this.courseType].task[this.taskCount].isLook
  16798. ) {
  16799. this.openTask(0, 0, "0-0");
  16800. }
  16801. this.$forceUpdate();
  16802. },
  16803. getCourseState(type) {
  16804. let params = {
  16805. cid: this.id,
  16806. };
  16807. this.ajax
  16808. .get(this.$store.state.api + "getCourseState", params)
  16809. .then((res) => {
  16810. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  16811. this.chapInfoList = JSON.parse(res.data[0][0].state);
  16812. this.setNavList();
  16813. this.$forceUpdate();
  16814. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  16815. this.addCourseState(2);
  16816. } else {
  16817. this.addCourseState(1);
  16818. }
  16819. })
  16820. .catch((err) => {
  16821. console.error(err);
  16822. });
  16823. },
  16824. addCourseState(type) {
  16825. let _state = this.chapInfoList;
  16826. // this.courseType this.taskCount
  16827. if (type == 1 || type == 2) {
  16828. for (var i = 0; i < _state.length; i++) {
  16829. let el = _state[i].chapterInfo[0].taskJson;
  16830. for (var j = 0; j < el.length; j++) {
  16831. // if (i == 0 && j == 0) {
  16832. // el[j].isLook = true;
  16833. // } else {
  16834. // el[j].isLook = false;
  16835. // }
  16836. if (
  16837. this.courseType > i ||
  16838. (this.courseType == i && this.taskCount + 1 > j)
  16839. ) {
  16840. el[j].isLook = true;
  16841. } else {
  16842. el[j].isLook = false;
  16843. }
  16844. }
  16845. }
  16846. }
  16847. let params = [
  16848. {
  16849. cid: this.id,
  16850. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  16851. },
  16852. ];
  16853. this.ajax
  16854. .post(
  16855. this.$store.state.api +
  16856. (type == 1 ? "addCourseState" : "updateCourseSate"),
  16857. params
  16858. )
  16859. .then((res) => {
  16860. if (this.IsLookOpen) {
  16861. this.setNavList();
  16862. }
  16863. if (type == 3 && type == 2) {
  16864. this.getCourseState(1);
  16865. }
  16866. })
  16867. .catch((err) => {
  16868. console.error(err);
  16869. });
  16870. },
  16871. getHomeWork() {
  16872. let params = {
  16873. cid: this.id,
  16874. stage: this.courseType,
  16875. task: this.taskCount,
  16876. uid: this.userid,
  16877. };
  16878. this.ajax
  16879. .get(this.$store.state.api + "selectWork", params)
  16880. .then((res) => {
  16881. if (res.data[0].length > 0) {
  16882. this.studyJuri = JSON.parse(res.data[0][0].content);
  16883. this.isNoHomeWork = true;
  16884. }
  16885. })
  16886. .catch((err) => {
  16887. console.error(err);
  16888. });
  16889. },
  16890. isAssetTypeAnImage(ext) {
  16891. return (
  16892. [
  16893. "png",
  16894. "jpg",
  16895. "jpeg",
  16896. "bmp",
  16897. "gif",
  16898. "webp",
  16899. "psd",
  16900. "svg",
  16901. "tiff",
  16902. ].indexOf(ext) !== -1
  16903. );
  16904. },
  16905. switchVideo(media) {
  16906. this.playerO = {};
  16907. this.playerOptions.poster = "";
  16908. this.playerOptions.sources[0].src = media;
  16909. this.playerO = this.playerOptions;
  16910. },
  16911. onPlayerPlay() {},
  16912. onPlayerTimeupdate(player) {
  16913. let gklog = player.cache_.currentTime; //当前播放的秒数
  16914. let a = player.cache_.duration; //视频的总时长
  16915. let gklog2 = parseInt(gklog);
  16916. // if(gklog2 == '3'){
  16917. // player.pause()
  16918. // setTimeout(()=>{
  16919. // player.currentTime(gklog2+1)
  16920. // player.play()
  16921. // },1000)
  16922. // }
  16923. console.log(" onPlayerTimeupdate!", gklog);
  16924. console.log(" onPlayerTimeupdate!", gklog2);
  16925. },
  16926. lookVedio(u, i) {
  16927. this.isClickNav = "";
  16928. // this.playerOptions.sources[0].src = u;
  16929. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16930. d.sources[0].src = u;
  16931. this.playerO[this.taskCount] = d;
  16932. this.showType = 0;
  16933. // this.isClickNav = "video" + i;
  16934. this.isClickNav = i;
  16935. this.$forceUpdate();
  16936. },
  16937. lookText(i, t) {
  16938. this.isClickNav = "";
  16939. // this.text = this.textList[i][t];
  16940. this.text = this.vChapterData[i][t];
  16941. // this.dialogVisible1 = true;
  16942. this.showType = 1;
  16943. // this.isClickNav = "text" + t;
  16944. this.isClickNav = t;
  16945. },
  16946. lookTools(i, t) {
  16947. this.chapTools = this.chapToolList[i][t];
  16948. this.dialogVisible2 = true;
  16949. },
  16950. openFile(f) {
  16951. this.pptImgUrl = "";
  16952. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  16953. if (
  16954. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  16955. -1
  16956. ) {
  16957. this.pptImgUrl =
  16958. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(f);
  16959. this.showPDF = false;
  16960. this.dialogVisible3 = true;
  16961. } else if (
  16962. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16963. ) {
  16964. this.pptImgUrl = f;
  16965. this.showPDF = true;
  16966. this.dialogVisible3 = true;
  16967. }
  16968. },
  16969. openTable(f) {
  16970. this.tableJson = JSON.parse(f.works);
  16971. this.dialogVisibleTable2 = true;
  16972. },
  16973. openWord(f) {
  16974. this.tableJson = JSON.parse(f.works);
  16975. this.dialogVisibleTable3 = true;
  16976. },
  16977. doUrl(url, i) {
  16978. this.isClickNav = "";
  16979. this.pptImgUrl1 = "";
  16980. this.showType = 2;
  16981. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  16982. url = "https://" + url;
  16983. }
  16984. this.pptImgUrl1 = "";
  16985. setTimeout(() => {
  16986. this.pptImgUrl1 = url;
  16987. }, 500);
  16988. // this.isClickNav = "line" + i;
  16989. this.isClickNav = i;
  16990. this.$forceUpdate();
  16991. },
  16992. checkPhoto(f, i) {
  16993. this.showType = 4;
  16994. this.pptImgUrl1 = f.url;
  16995. this.isClickNav = i;
  16996. this.$forceUpdate();
  16997. },
  16998. downFile(f, i) {
  16999. this.isClickNav = "";
  17000. this.pptImgUrl1 = "";
  17001. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  17002. if (
  17003. a.indexOf(
  17004. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  17005. ) != -1
  17006. ) {
  17007. this.pptImgUrl1 =
  17008. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(f.url);
  17009. // this.dialogVisible3 = true;
  17010. this.showType = 2;
  17011. } else if (
  17012. this.isAssetTypeAnImage(
  17013. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  17014. )
  17015. ) {
  17016. this.showType = 4;
  17017. this.pptImgUrl1 = f.url;
  17018. } else if (
  17019. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17020. "PDF"
  17021. ) {
  17022. this.pptImgUrl1 = f.url;
  17023. // this.dialogVisible3 = true;
  17024. this.showType = 3;
  17025. } else {
  17026. window.open(this.file[i].url);
  17027. }
  17028. // this.isClickNav = "word" + i;
  17029. this.isClickNav = i;
  17030. },
  17031. downFileList(i) {
  17032. window.open(this.noImgList[i].url);
  17033. },
  17034. openAddWork() {
  17035. this.dialogVisible = true;
  17036. },
  17037. addBzWorks() {
  17038. let params = [
  17039. {
  17040. uid: this.userid,
  17041. cid: this.id,
  17042. stage: this.courseType,
  17043. task: this.taskCount,
  17044. tool: this.toolindex,
  17045. content: JSON.stringify(this.eScore),
  17046. type: 6,
  17047. },
  17048. ];
  17049. this.ajax
  17050. .post(this.$store.state.api + "addCourseWorks", params)
  17051. .then((res) => {
  17052. this.$message({
  17053. message: "提交成功",
  17054. type: "success",
  17055. });
  17056. this.eScore = { eBzText: "", eStar: [] };
  17057. this.studentEvalDialogVisible = false;
  17058. this.selectSWorks();
  17059. })
  17060. .catch((err) => {
  17061. this.$message.error("提交失败");
  17062. console.error(err);
  17063. });
  17064. },
  17065. addBzWorksTeacher() {
  17066. let params = [
  17067. {
  17068. uid: this.sStudent.userid,
  17069. cid: this.id,
  17070. stage: this.courseType,
  17071. task: this.taskCount,
  17072. tool: this.toolindex,
  17073. content: JSON.stringify(this.eScore),
  17074. type: 6,
  17075. },
  17076. ];
  17077. this.ajax
  17078. .post(this.$store.state.api + "addCourseWorks", params)
  17079. .then((res) => {
  17080. this.$message({
  17081. message: "提交成功",
  17082. type: "success",
  17083. });
  17084. this.eScore = { eBzText: "", eStar: [] };
  17085. this.studentEvalDialogVisibleTeacher = false;
  17086. this.selectSWorks();
  17087. })
  17088. .catch((err) => {
  17089. this.$message.error("提交失败");
  17090. console.error(err);
  17091. });
  17092. },
  17093. addStudentAsk() {
  17094. if (!this.radio.length) {
  17095. this.$message.error("请选择选项");
  17096. return;
  17097. }
  17098. for (var i = 0; i < this.askJson.askCount; i++) {
  17099. if (
  17100. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17101. (this.radio[i] !== 0 && !this.radio[i])
  17102. ) {
  17103. this.$message.error("请选择选项");
  17104. return;
  17105. }
  17106. }
  17107. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17108. let params = [
  17109. {
  17110. uid: this.userid,
  17111. cid: this.id,
  17112. stage: this.courseType,
  17113. task: this.taskCount,
  17114. tool: this.toolindex,
  17115. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  17116. type: 2,
  17117. },
  17118. ];
  17119. this.ajax
  17120. .post(this.$store.state.api + "addCourseWorks", params)
  17121. .then((res) => {
  17122. this.$message({
  17123. message: "提交成功",
  17124. type: "success",
  17125. });
  17126. this.askList = [];
  17127. this.dialogVisible5 = false;
  17128. this.selectStudent();
  17129. this.selectSWorks();
  17130. this.selectSLook();
  17131. })
  17132. .catch((err) => {
  17133. this.$message.error("提交失败");
  17134. console.error(err);
  17135. });
  17136. },
  17137. addStudentAskTeacher() {
  17138. if (!this.radio.length) {
  17139. this.$message.error("请选择选项");
  17140. return;
  17141. }
  17142. for (var i = 0; i < this.askJson.askCount; i++) {
  17143. if (
  17144. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17145. (this.radio[i] !== 0 && !this.radio[i])
  17146. ) {
  17147. this.$message.error("请选择选项");
  17148. return;
  17149. }
  17150. }
  17151. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17152. let params = [
  17153. {
  17154. uid: this.sStudent.userid,
  17155. cid: this.id,
  17156. stage: this.courseType,
  17157. task: this.taskCount,
  17158. tool: this.toolindex,
  17159. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  17160. type: 2,
  17161. },
  17162. ];
  17163. this.ajax
  17164. .post(this.$store.state.api + "addCourseWorks", params)
  17165. .then((res) => {
  17166. this.$message({
  17167. message: "提交成功",
  17168. type: "success",
  17169. });
  17170. this.askList = [];
  17171. this.dialogVisible5Teacher = false;
  17172. this.selectStudent();
  17173. this.selectSWorks();
  17174. this.selectSLook();
  17175. })
  17176. .catch((err) => {
  17177. this.$message.error("提交失败");
  17178. console.error(err);
  17179. });
  17180. },
  17181. addStudentTest() {
  17182. if (!this.radio.length) {
  17183. this.$message.error("请选择选项");
  17184. return;
  17185. }
  17186. for (var i = 0; i < this.testJson.testCount; i++) {
  17187. if (
  17188. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17189. (this.radio[i] !== 0 && !this.radio[i])
  17190. ) {
  17191. this.$message.error("请选择选项");
  17192. return;
  17193. }
  17194. }
  17195. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17196. let params = [
  17197. {
  17198. uid: this.userid,
  17199. cid: this.id,
  17200. stage: this.courseType,
  17201. task: this.taskCount,
  17202. tool: this.toolindex,
  17203. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  17204. type: 8,
  17205. },
  17206. ];
  17207. this.ajax
  17208. .post(this.$store.state.api + "addCourseWorks", params)
  17209. .then((res) => {
  17210. this.$message({
  17211. message: "提交成功",
  17212. type: "success",
  17213. });
  17214. this.askList = [];
  17215. this.dialogVisibleChoice = false;
  17216. this.selectStudent();
  17217. this.selectSWorks();
  17218. this.selectSLook();
  17219. })
  17220. .catch((err) => {
  17221. this.$message.error("提交失败");
  17222. console.error(err);
  17223. });
  17224. },
  17225. addStudentTestTeacher() {
  17226. if (!this.radio.length) {
  17227. this.$message.error("请选择选项");
  17228. return;
  17229. }
  17230. for (var i = 0; i < this.testJson.testCount; i++) {
  17231. if (
  17232. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17233. (this.radio[i] !== 0 && !this.radio[i])
  17234. ) {
  17235. this.$message.error("请选择选项");
  17236. return;
  17237. }
  17238. }
  17239. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17240. let params = [
  17241. {
  17242. uid: this.sStudent.userid,
  17243. cid: this.id,
  17244. stage: this.courseType,
  17245. task: this.taskCount,
  17246. tool: this.toolindex,
  17247. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  17248. type: 8,
  17249. },
  17250. ];
  17251. this.ajax
  17252. .post(this.$store.state.api + "addCourseWorks", params)
  17253. .then((res) => {
  17254. this.$message({
  17255. message: "提交成功",
  17256. type: "success",
  17257. });
  17258. this.askList = [];
  17259. this.dialogVisibleChoiceTeacher = false;
  17260. this.selectStudent();
  17261. this.selectSWorks();
  17262. this.selectSLook();
  17263. })
  17264. .catch((err) => {
  17265. this.$message.error("提交失败");
  17266. console.error(err);
  17267. });
  17268. },
  17269. addWork() {
  17270. if (this.studyJuri[0].content == "") {
  17271. this.$message.error("请将信息填写完整");
  17272. return;
  17273. } else if (this.studyJuri[0].cover.length == 0) {
  17274. this.$message.error("请将信息填写完整");
  17275. return;
  17276. } else if (this.studyJuri[0].upVedio.length == 0) {
  17277. this.$message.error("请将信息填写完整");
  17278. return;
  17279. }
  17280. if (this.isNoHomeWork) {
  17281. this.$confirm(
  17282. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  17283. "提示",
  17284. {
  17285. confirmButtonText: "确定",
  17286. cancelButtonText: "取消",
  17287. type: "warning",
  17288. }
  17289. )
  17290. .then(() => {
  17291. let params = [
  17292. {
  17293. uid: this.userid,
  17294. cid: this.id,
  17295. stage: this.courseType,
  17296. task: this.taskCount,
  17297. content: JSON.stringify(this.studyJuri),
  17298. },
  17299. ];
  17300. this.ajax
  17301. .post(this.$store.state.api + "addWorks", params)
  17302. .then((res) => {
  17303. this.$message({
  17304. message: "提交成功",
  17305. type: "success",
  17306. });
  17307. this.isNoHomeWork = true;
  17308. this.dialogVisible = false;
  17309. })
  17310. .catch((err) => {
  17311. this.$message.error("提交失败");
  17312. console.error(err);
  17313. });
  17314. })
  17315. .catch(() => {});
  17316. } else {
  17317. let params = [
  17318. {
  17319. uid: this.userid,
  17320. cid: this.id,
  17321. stage: this.courseType,
  17322. task: this.taskCount,
  17323. content: JSON.stringify(this.studyJuri),
  17324. },
  17325. ];
  17326. this.ajax
  17327. .post(this.$store.state.api + "addWorks", params)
  17328. .then((res) => {
  17329. this.$message({
  17330. message: "提交成功",
  17331. type: "success",
  17332. });
  17333. this.isNoHomeWork = true;
  17334. this.dialogVisible = false;
  17335. })
  17336. .catch((err) => {
  17337. this.$message.error("提交失败");
  17338. console.error(err);
  17339. });
  17340. }
  17341. },
  17342. selectCount() {
  17343. let params = {
  17344. cid: this.id,
  17345. chid: this.courseType,
  17346. uid: this.userid,
  17347. };
  17348. this.ajax
  17349. .get(this.$store.state.api + "selectToolsCount", params)
  17350. .then((res) => {
  17351. for (var i = 0; i < res.data[0].length; i++) {
  17352. if (res.data[0][i].tools == 1) {
  17353. this.wbCount = res.data[0][i].count;
  17354. } else if (res.data[0][i].tools == 2) {
  17355. this.wordCount = res.data[0][i].count;
  17356. } else if (res.data[0][i].tools == 3) {
  17357. this.mindCount = res.data[0][i].count;
  17358. } else if (res.data[0][i].tools == 4) {
  17359. this.askCount = res.data[0][i].count;
  17360. } else if (res.data[0][i].tools == 6) {
  17361. this.noteCount = res.data[0][i].count;
  17362. } else if (res.data[0][i].tools == 7) {
  17363. this.mindNetWorkCount = res.data[0][i].count;
  17364. } else if (res.data[0][i].tools == 8) {
  17365. this.libraryCount = res.data[0][i].count;
  17366. } else if (res.data[0][i].tools == 16) {
  17367. this.workCount = res.data[0][i].count;
  17368. } else if (res.data[0][i].tools == 10) {
  17369. this.timeCount = res.data[0][i].count;
  17370. } else if (res.data[0][i].tools == 15) {
  17371. this.answerCount = res.data[0][i].count;
  17372. } else if (res.data[0][i].tools == 18) {
  17373. this.trainCount = res.data[0][i].count;
  17374. }
  17375. }
  17376. })
  17377. .catch((err) => {
  17378. console.error(err);
  17379. });
  17380. },
  17381. openTools(t, i, index, c, sName,id) {
  17382. var z = JSON.parse(c);
  17383. this.noteName = sName;
  17384. if (t == 4) {
  17385. this.radio = [];
  17386. this.isAnswer = false;
  17387. let b = z[0].anwer;
  17388. this.radio = b;
  17389. this.askJson = z[0].askJson;
  17390. this.isAnswer = true;
  17391. this.dialogVisible5 = true;
  17392. } else if (t == 45) {
  17393. this.radio = [];
  17394. this.isAnswer = false;
  17395. let b = z[0].anwer;
  17396. this.radio = b;
  17397. this.testJson = z[0].testJson;
  17398. this.isAnswer = true;
  17399. this.dialogVisibleChoice = true;
  17400. }else if(t == 69){
  17401. this.oldEnglishJson1 = {}
  17402. this.oldEnglishJson = {}
  17403. this.englishList1 = {}
  17404. this.newEngIndex = -1;
  17405. this.isNoUserid = false;
  17406. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17407. .toolChoose[i].englishList;
  17408. this.oldEnglishJson = z;
  17409. this.engWid = id;
  17410. this.newEnglishList = { engTitle:"",engText:"" }
  17411. this.newEnglishList1 = []
  17412. this.selectEngC(id,z);
  17413. }
  17414. // else if (t == 15) {
  17415. // this.answerQ = "";
  17416. // this.questionAnswer = "";
  17417. // this.answerQ = z[0].answerTitle;
  17418. // this.questionAnswer = z[0].answer;
  17419. // this.answerDialogVisible = true;
  17420. // }
  17421. },
  17422. fastText(p, t) {
  17423. if (t == 1) {
  17424. this.commentText += p;
  17425. } else {
  17426. this.eScore.eBzText += p;
  17427. }
  17428. },
  17429. addTools(t, i, index) {
  17430. var a = 0;
  17431. // this.taskCount = index;
  17432. this.toolindex = i;
  17433. if (t == 1) {
  17434. if (this.wbCount > 0) {
  17435. this.updateCount(this.wbCount, t);
  17436. } else {
  17437. this.wbCount++;
  17438. a = this.wbCount;
  17439. this.toolsCount(a, t);
  17440. }
  17441. window.parent.postMessage(
  17442. {
  17443. tools: "1",
  17444. cid: this.id,
  17445. stage: this.courseType,
  17446. task: this.taskCount,
  17447. tool: i,
  17448. },
  17449. "*"
  17450. );
  17451. } else if (t == 2) {
  17452. if (this.wordCount > 0) {
  17453. this.updateCount(this.wordCount, t);
  17454. } else {
  17455. this.wordCount++;
  17456. a = this.wordCount;
  17457. this.toolsCount(a, t);
  17458. }
  17459. window.parent.postMessage({ tools: "2" }, "*");
  17460. } else if (t == 3) {
  17461. if (this.mindCount > 0) {
  17462. this.updateCount(this.mindCount, t);
  17463. } else {
  17464. this.mindCount++;
  17465. a = this.mindCount;
  17466. this.toolsCount(a, t);
  17467. }
  17468. window.parent.postMessage(
  17469. {
  17470. tools: "3",
  17471. cid: this.id,
  17472. stage: this.courseType,
  17473. task: this.taskCount,
  17474. tool: i,
  17475. },
  17476. "*"
  17477. );
  17478. } else if (t == 4) {
  17479. this.radio = [];
  17480. this.noteName = "";
  17481. this.isAnswer = false;
  17482. if (this.askCount > 0) {
  17483. this.updateCount(this.askCount, t);
  17484. } else {
  17485. this.askCount++;
  17486. a = this.askCount;
  17487. this.toolsCount(a, t);
  17488. }
  17489. if (!this.dialogVisible2) {
  17490. this.askJson.askJson =
  17491. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17492. index
  17493. ].toolChoose[i].askJson;
  17494. this.askJson.askTitle =
  17495. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17496. index
  17497. ].toolChoose[i].askTitle;
  17498. this.askJson.askCount =
  17499. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17500. index
  17501. ].toolChoose[i].askCount;
  17502. } else {
  17503. this.askJson.askJson = this.chapTools.askJson.askJson;
  17504. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17505. this.askJson.askCount = this.chapTools.askJson.askCount;
  17506. }
  17507. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17508. if (this.askJson.askJson[k].type == "2") {
  17509. this.radio.push([]);
  17510. } else {
  17511. this.radio.push("");
  17512. }
  17513. }
  17514. this.dialogVisible5 = true;
  17515. // window.parent.postMessage({ tools: "4" }, "*");
  17516. } else if (t == 45) {
  17517. this.noteName = "";
  17518. this.radio = [];
  17519. this.isAnswer = false;
  17520. if (this.askCount > 0) {
  17521. this.updateCount(this.askCount, t);
  17522. } else {
  17523. this.askCount++;
  17524. a = this.askCount;
  17525. this.toolsCount(a, t);
  17526. }
  17527. this.testJson =
  17528. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17529. index
  17530. ].toolChoose[i].testJson;
  17531. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17532. if (this.testJson.testJson[k].type == "2") {
  17533. this.radio.push([]);
  17534. } else {
  17535. this.radio.push("");
  17536. }
  17537. }
  17538. this.dialogVisibleChoice = true;
  17539. // window.parent.postMessage({ tools: "4" }, "*");
  17540. } else if (t == 5) {
  17541. if (this.scoreCount > 0) {
  17542. this.updateCount(this.scoreCount, t);
  17543. } else {
  17544. this.scoreCount++;
  17545. a = this.scoreCount;
  17546. this.toolsCount(a, t);
  17547. }
  17548. this.dialogVisible4 = true;
  17549. // window.parent.postMessage({ tools: "5" }, "*");
  17550. } else if (t == 6) {
  17551. if (this.noteCount > 0) {
  17552. this.updateCount(this.noteCount, t);
  17553. } else {
  17554. this.noteCount++;
  17555. a = this.noteCount;
  17556. this.toolsCount(a, t);
  17557. }
  17558. window.parent.postMessage(
  17559. {
  17560. tools: "6",
  17561. cid: this.id,
  17562. stage: this.courseType,
  17563. task: this.taskCount,
  17564. tool: i,
  17565. },
  17566. "*"
  17567. );
  17568. } else if (t == 7) {
  17569. if (this.mindNetWorkCount > 0) {
  17570. this.updateCount(this.mindNetWorkCount, t);
  17571. } else {
  17572. this.mindNetWorkCount++;
  17573. a = this.mindNetWorkCount;
  17574. this.toolsCount(a, t);
  17575. }
  17576. window.parent.postMessage(
  17577. {
  17578. tools: "7",
  17579. cid: this.id,
  17580. stage: this.courseType,
  17581. task: this.taskCount,
  17582. tool: i,
  17583. },
  17584. "*"
  17585. );
  17586. } else if (t == 16) {
  17587. if (this.workCount > 0) {
  17588. this.updateCount(this.workCount, t);
  17589. } else {
  17590. this.workCount++;
  17591. a = this.workCount;
  17592. this.toolsCount(a, t);
  17593. }
  17594. this.dialogVisible = true;
  17595. } else if (t == 50) {
  17596. if (this.tType == 2) {
  17597. this.$message.error("不支持学生使用");
  17598. return;
  17599. }
  17600. this.plworkFile = [];
  17601. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  17602. if (!this.uploadCid) {
  17603. this.$message.error(
  17604. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  17605. );
  17606. return;
  17607. }
  17608. // this.uploadCid =
  17609. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17610. // index
  17611. // ].toolChoose[i].uploadJson[0];
  17612. this.selectUploadStudent(2);
  17613. } else if (t == 8) {
  17614. if (this.libraryCount > 0) {
  17615. this.updateCount(this.libraryCount, t);
  17616. } else {
  17617. this.libraryCount++;
  17618. a = this.libraryCount;
  17619. this.toolsCount(a, t);
  17620. }
  17621. window.parent.postMessage({ tools: "8" }, "*");
  17622. } else if (t == 17) {
  17623. if (this.libraryCount > 0) {
  17624. this.updateCount(this.libraryCount, t);
  17625. } else {
  17626. this.libraryCount++;
  17627. a = this.libraryCount;
  17628. this.toolsCount(a, t);
  17629. }
  17630. window.parent.postMessage({ tools: "17" }, "*");
  17631. } else if (t == 18) {
  17632. if (this.trainCount > 0) {
  17633. this.updateCount(this.trainCount, t);
  17634. } else {
  17635. this.trainCount++;
  17636. a = this.trainCount;
  17637. this.toolsCount(a, t);
  17638. }
  17639. window.parent.postMessage({ tools: "18" }, "*");
  17640. } else if (t == 10) {
  17641. if (this.timeCount > 0) {
  17642. this.updateCount(this.timeCount, t);
  17643. } else {
  17644. this.timeCount++;
  17645. a = this.timeCount;
  17646. this.toolsCount(a, t);
  17647. }
  17648. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  17649. .taskJson[index].toolChoose[i].preTime
  17650. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17651. .toolChoose[i].preTime
  17652. : "";
  17653. this.timeDialogVisible = true;
  17654. } else if (t == 15) {
  17655. this.answerQ = "";
  17656. this.questionAnswer = "";
  17657. if (this.answerCount > 0) {
  17658. this.updateCount(this.answerCount, t);
  17659. } else {
  17660. this.answerCount++;
  17661. a = this.answerCount;
  17662. this.toolsCount(a, t);
  17663. }
  17664. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17665. .taskJson[index].toolChoose[i].answerQ
  17666. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17667. .toolChoose[i].answerQ
  17668. : "";
  17669. this.answerDialogVisible = true;
  17670. } else if (t == 21) {
  17671. window.parent.postMessage({ tools: "21" }, "*");
  17672. } else if (t == 22) {
  17673. window.parent.postMessage({ tools: "22" }, "*");
  17674. } else if (t == 23) {
  17675. window.parent.postMessage({ tools: "23" }, "*");
  17676. } else if (t == 24) {
  17677. window.parent.postMessage({ tools: "24" }, "*");
  17678. } else if (t == 25) {
  17679. window.parent.postMessage({ tools: "25" }, "*");
  17680. } else if (t == 31) {
  17681. window.parent.postMessage({ tools: "31" }, "*");
  17682. } else if (t == 28) {
  17683. window.parent.postMessage({ tools: "28" }, "*");
  17684. } else if (t == 37) {
  17685. window.parent.postMessage({ tools: "37" }, "*");
  17686. } else if (t == 38) {
  17687. window.parent.postMessage({ tools: "38" }, "*");
  17688. } else if (t == 39) {
  17689. window.parent.postMessage({ tools: "39" }, "*");
  17690. } else if (t == 32) {
  17691. window.parent.postMessage({ tools: "32" }, "*");
  17692. } else if (t == 66) {
  17693. window.parent.postMessage({ tools: "66" }, "*");
  17694. } else if (t == 67) {
  17695. window.parent.postMessage({ tools: "67" }, "*");
  17696. } else if (t == 68) {
  17697. window.parent.postMessage({ tools: "68" }, "*");
  17698. } else if (t == 57) {
  17699. // window.parent.postMessage({ tools: "57" }, "*");
  17700. window.parent.postMessage(
  17701. {
  17702. tools: "57u",
  17703. cid: this.id,
  17704. stage: this.courseType,
  17705. task: this.taskCount,
  17706. tool: i,
  17707. },
  17708. "*"
  17709. );
  17710. } else if (t == 58) {
  17711. window.parent.postMessage({ tools: "58" }, "*");
  17712. } else if (t == 59) {
  17713. window.parent.postMessage({ tools: "59" }, "*");
  17714. } else if (t == 60) {
  17715. window.parent.postMessage({ tools: "60" }, "*");
  17716. } else if (t == 61) {
  17717. window.parent.postMessage({ tools: "61" }, "*");
  17718. } else if (t == 63) {
  17719. window.parent.postMessage({ tools: "63" }, "*");
  17720. } else if (t == 69) {
  17721. if (this.worksStudent[i].length) {
  17722. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17723. if (this.userid == this.worksStudent[i][k].userid) {
  17724. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  17725. break;
  17726. } else {
  17727. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  17728. }
  17729. }
  17730. } else {
  17731. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  17732. }
  17733. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  17734. .taskJson[index].toolChoose[i].englishList
  17735. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17736. .toolChoose[i].englishList
  17737. : {};
  17738. this.englishToolIndex = i;
  17739. this.myAnList = this.myAnswerList1;
  17740. this.engDialogVisible = true;
  17741. } else if (t == 70) {
  17742. if (this.worksStudent[i].length) {
  17743. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17744. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  17745. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  17746. break;
  17747. } else {
  17748. this.englishVoiceJsonWork = [];
  17749. }
  17750. }
  17751. } else {
  17752. this.englishVoiceJsonWork = [];
  17753. }
  17754. let englishVoiceJson = {}
  17755. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17756. .taskJson[index].toolChoose[i].englishVoiceJson
  17757. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17758. .toolChoose[i].englishVoiceJson
  17759. : {};
  17760. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  17761. this.EnglishVoiceDialog = true;
  17762. } else if (t == 65) {
  17763. if (this.tType == 2) {
  17764. this.$message.error("不支持学生使用");
  17765. return;
  17766. }
  17767. this.uploadCid = this.tcid;
  17768. if (!this.uploadCid) {
  17769. this.$message.error(
  17770. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  17771. );
  17772. return;
  17773. }
  17774. this.selectPickStudent();
  17775. } else if (t == 26) {
  17776. window.parent.postMessage(
  17777. {
  17778. tools: "26",
  17779. cid: this.id,
  17780. stage: this.courseType,
  17781. task: this.taskCount,
  17782. tool: i,
  17783. },
  17784. "*"
  17785. );
  17786. } else if (t == 40) {
  17787. if (this.evalCount > 0) {
  17788. this.updateCount(this.evalCount, t);
  17789. } else {
  17790. this.evalCount++;
  17791. a = this.evalCount;
  17792. this.toolsCount(a, t);
  17793. }
  17794. this.eScore = { eBzText: "", eStar: [] };
  17795. if (this.worksStudent[i].length) {
  17796. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17797. if (this.userid == this.worksStudent[i][k].userid) {
  17798. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  17799. this.rateJson =
  17800. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17801. index
  17802. ].toolChoose[i].rateJson;
  17803. break;
  17804. } else {
  17805. this.rateJson =
  17806. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17807. index
  17808. ].toolChoose[i].rateJson;
  17809. }
  17810. }
  17811. } else {
  17812. this.rateJson =
  17813. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17814. index
  17815. ].toolChoose[i].rateJson;
  17816. }
  17817. this.isStar = false;
  17818. this.studentEvalDialogVisible = true;
  17819. } else if (t == 41) {
  17820. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17821. .taskJson[index].toolChoose[i].selectJson
  17822. ? JSON.parse(
  17823. JSON.stringify(
  17824. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17825. index
  17826. ].toolChoose[i].selectJson
  17827. )
  17828. )
  17829. : { url: "", select: [], answer: [] };
  17830. if (this.worksStudent[i].length) {
  17831. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17832. if (this.userid == this.worksStudent[i][k].userid) {
  17833. var a = this.worksStudent[i][k].works.split(",");
  17834. for (var ki = 0; ki < a.length; ki++) {
  17835. a[ki] = parseInt(a[ki]);
  17836. }
  17837. this.selectAnswer = {
  17838. answer: a,
  17839. stu: this.worksStudent[i][k].sName,
  17840. };
  17841. break;
  17842. } else {
  17843. this.selectAnswer = { answer: [], stu: "" };
  17844. }
  17845. }
  17846. } else {
  17847. this.selectAnswer = { answer: [], stu: "" };
  17848. }
  17849. this.isSelect = false;
  17850. this.dialogVisibleSelect = true;
  17851. } else if (t == 44) {
  17852. window.parent.postMessage({ tools: "44" }, "*");
  17853. } else if (t == 47) {
  17854. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  17855. .taskJson[index].toolChoose[i].sentenceList
  17856. ? JSON.parse(
  17857. JSON.stringify(
  17858. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17859. index
  17860. ].toolChoose[i].sentenceList
  17861. )
  17862. )
  17863. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  17864. for (var q = 0; q < this.sentenceList.length; q++) {
  17865. this.sentenceList[q].chooseSenList = [];
  17866. this.sentenceList[q].addChangeSen = [];
  17867. this.sentenceList[q].addChangeSen = JSON.parse(
  17868. JSON.stringify(this.sentenceList[q].addSentence)
  17869. );
  17870. this.sentenceList[q].chooseSenList.length =
  17871. this.sentenceList[q].rightAnswer.length;
  17872. }
  17873. this.dialogVisibleSentence = true;
  17874. } else if (t == 48) {
  17875. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17876. .taskJson[index].toolChoose[i].tableJson
  17877. ? JSON.parse(
  17878. JSON.stringify(
  17879. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17880. index
  17881. ].toolChoose[i].tableJson
  17882. )
  17883. )
  17884. : { text: "" };
  17885. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  17886. if (this.worksStudent[i].length) {
  17887. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17888. if (this.userid == this.worksStudent[i][k].userid) {
  17889. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  17890. break;
  17891. }
  17892. }
  17893. }
  17894. this.dialogVisibleTable = true;
  17895. } else if (t == 52) {
  17896. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17897. .taskJson[index].toolChoose[i].wordJson
  17898. ? JSON.parse(
  17899. JSON.stringify(
  17900. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17901. index
  17902. ].toolChoose[i].wordJson
  17903. )
  17904. )
  17905. : { text: "" };
  17906. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  17907. if (this.worksStudent[i].length) {
  17908. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17909. if (this.userid == this.worksStudent[i][k].userid) {
  17910. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  17911. break;
  17912. }
  17913. }
  17914. }
  17915. this.dialogVisibleWord = true;
  17916. } else if (t == 49) {
  17917. this.groupJson =
  17918. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17919. index
  17920. ].toolChoose[i].groupJson;
  17921. this.islock = this.groupJson.islock == 1 ? true : false;
  17922. this.dialogVisibleGroup = true;
  17923. } else if (t == 62) {
  17924. this.videoJson =
  17925. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17926. index
  17927. ].toolChoose[i].videoJson;
  17928. this.dialogVisibleVideo = true;
  17929. }
  17930. },
  17931. teacherWorkSubmit(t, i, index, s) {
  17932. this.sStudent = s;
  17933. this.toolindex = i;
  17934. this.sTool = t;
  17935. if (this.tType !== "1" && this.tType !== "4") {
  17936. return;
  17937. }
  17938. if (t == 16 || t == 32 || t == 50) {
  17939. this.dialogVisibleWorks = true;
  17940. } else if (t == 15) {
  17941. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17942. .taskJson[index].toolChoose[i].answerQ
  17943. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17944. .toolChoose[i].answerQ
  17945. : "";
  17946. this.questionAnswer = "";
  17947. this.answerDialogVisibleTeacher = true; //问答
  17948. } else if (t == 52) {
  17949. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17950. .taskJson[index].toolChoose[i].wordJson
  17951. ? JSON.parse(
  17952. JSON.stringify(
  17953. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17954. index
  17955. ].toolChoose[i].wordJson
  17956. )
  17957. )
  17958. : { text: "" };
  17959. if (this.worksStudent[i].length) {
  17960. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17961. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17962. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  17963. break;
  17964. }
  17965. }
  17966. }
  17967. this.dialogVisibleWordTeacher = true; //文档
  17968. } else if (t == 4) {
  17969. this.radio = [];
  17970. this.noteName = "";
  17971. this.isAnswer = false;
  17972. if (this.askCount > 0) {
  17973. this.updateCount(this.askCount, t);
  17974. } else {
  17975. this.askCount++;
  17976. a = this.askCount;
  17977. this.toolsCount(a, t);
  17978. }
  17979. if (!this.dialogVisible2) {
  17980. this.askJson.askJson =
  17981. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17982. index
  17983. ].toolChoose[i].askJson;
  17984. this.askJson.askTitle =
  17985. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17986. index
  17987. ].toolChoose[i].askTitle;
  17988. this.askJson.askCount =
  17989. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17990. index
  17991. ].toolChoose[i].askCount;
  17992. } else {
  17993. this.askJson.askJson = this.chapTools.askJson.askJson;
  17994. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17995. this.askJson.askCount = this.chapTools.askJson.askCount;
  17996. }
  17997. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17998. if (this.askJson.askJson[k].type == "2") {
  17999. this.radio.push([]);
  18000. } else {
  18001. this.radio.push("");
  18002. }
  18003. }
  18004. this.dialogVisible5Teacher = true;
  18005. } else if (t == 45) {
  18006. this.noteName = "";
  18007. this.radio = [];
  18008. this.isAnswer = false;
  18009. if (this.askCount > 0) {
  18010. this.updateCount(this.askCount, t);
  18011. } else {
  18012. this.askCount++;
  18013. a = this.askCount;
  18014. this.toolsCount(a, t);
  18015. }
  18016. this.testJson =
  18017. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18018. index
  18019. ].toolChoose[i].testJson;
  18020. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18021. if (this.testJson.testJson[k].type == "2") {
  18022. this.radio.push([]);
  18023. } else {
  18024. this.radio.push("");
  18025. }
  18026. }
  18027. this.dialogVisibleChoiceTeacher = true;
  18028. } else if (t == 41) {
  18029. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18030. .taskJson[index].toolChoose[i].selectJson
  18031. ? JSON.parse(
  18032. JSON.stringify(
  18033. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18034. index
  18035. ].toolChoose[i].selectJson
  18036. )
  18037. )
  18038. : { url: "", select: [], answer: [] };
  18039. if (this.worksStudent[i].length) {
  18040. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18041. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18042. var a = this.worksStudent[i][k].works.split(",");
  18043. for (var ki = 0; ki < a.length; ki++) {
  18044. a[ki] = parseInt(a[ki]);
  18045. }
  18046. this.selectAnswer = {
  18047. answer: a,
  18048. stu: this.worksStudent[i][k].sName,
  18049. };
  18050. break;
  18051. } else {
  18052. this.selectAnswer = { answer: [], stu: "" };
  18053. }
  18054. }
  18055. } else {
  18056. this.selectAnswer = { answer: [], stu: "" };
  18057. }
  18058. this.isSelect = false;
  18059. this.dialogVisibleSelectTeacher = true;
  18060. } else if (t == 47) {
  18061. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18062. .taskJson[index].toolChoose[i].sentenceList
  18063. ? JSON.parse(
  18064. JSON.stringify(
  18065. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18066. index
  18067. ].toolChoose[i].sentenceList
  18068. )
  18069. )
  18070. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18071. for (var q = 0; q < this.sentenceList.length; q++) {
  18072. this.sentenceList[q].chooseSenList = [];
  18073. this.sentenceList[q].addChangeSen = [];
  18074. this.sentenceList[q].addChangeSen = JSON.parse(
  18075. JSON.stringify(this.sentenceList[q].addSentence)
  18076. );
  18077. this.sentenceList[q].chooseSenList.length =
  18078. this.sentenceList[q].rightAnswer.length;
  18079. }
  18080. this.dialogVisibleSentenceTeacher = true;
  18081. } else if (t == 48) {
  18082. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18083. .taskJson[index].toolChoose[i].tableJson
  18084. ? JSON.parse(
  18085. JSON.stringify(
  18086. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18087. index
  18088. ].toolChoose[i].tableJson
  18089. )
  18090. )
  18091. : { text: "" };
  18092. if (this.worksStudent[i].length) {
  18093. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18094. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18095. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18096. break;
  18097. }
  18098. }
  18099. }
  18100. this.dialogVisibleTableTeacher = true;
  18101. } else if (t == 40) {
  18102. if (this.evalCount > 0) {
  18103. this.updateCount(this.evalCount, t);
  18104. } else {
  18105. this.evalCount++;
  18106. a = this.evalCount;
  18107. this.toolsCount(a, t);
  18108. }
  18109. this.eScore = { eBzText: "", eStar: [] };
  18110. if (this.worksStudent[i].length) {
  18111. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18112. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18113. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18114. this.rateJson =
  18115. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18116. index
  18117. ].toolChoose[i].rateJson;
  18118. break;
  18119. } else {
  18120. this.rateJson =
  18121. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18122. index
  18123. ].toolChoose[i].rateJson;
  18124. }
  18125. }
  18126. } else {
  18127. this.rateJson =
  18128. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18129. index
  18130. ].toolChoose[i].rateJson;
  18131. }
  18132. this.isStar = false;
  18133. this.studentEvalDialogVisibleTeacher = true;
  18134. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  18135. window.parent.postMessage(
  18136. {
  18137. tools: t + "teacher",
  18138. cid: this.id,
  18139. stage: this.courseType,
  18140. task: this.taskCount,
  18141. tool: i,
  18142. student: this.sStudent,
  18143. },
  18144. "*"
  18145. );
  18146. }
  18147. },
  18148. openCocoPi(tool, i, uid, uname) {
  18149. let student = {
  18150. userid: uid,
  18151. student: uname,
  18152. };
  18153. if (tool == 57) {
  18154. window.parent.postMessage(
  18155. {
  18156. tools: tool + "teacher",
  18157. cid: this.id,
  18158. stage: this.courseType,
  18159. task: this.taskCount,
  18160. tool: i,
  18161. student: student,
  18162. },
  18163. "*"
  18164. );
  18165. }
  18166. },
  18167. setRightAnswer(s, i, j) {
  18168. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  18169. if (
  18170. this.sentenceList[i].chooseSenList[q] == undefined ||
  18171. this.sentenceList[i].chooseSenList[q] == ""
  18172. ) {
  18173. this.sentenceList[i].chooseSenList[q] = s;
  18174. this.sentenceList[i].addChangeSen[j] = "";
  18175. break;
  18176. }
  18177. }
  18178. this.$forceUpdate();
  18179. },
  18180. returnCard(r, i, j) {
  18181. var a = this.sentenceList[i].addSentence.indexOf(r);
  18182. this.sentenceList[i].chooseSenList[j] = "";
  18183. this.sentenceList[i].addChangeSen[a] = r;
  18184. this.$forceUpdate();
  18185. },
  18186. // addSentenceTool() {
  18187. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18188. // this.taskCount
  18189. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  18190. // this.sentenceList = [
  18191. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  18192. // ];
  18193. // this.dialogVisibleSentence = false;
  18194. // },
  18195. toolsCount(a, t) {
  18196. let params = {
  18197. cid: this.id,
  18198. chid: this.courseType,
  18199. uid: this.userid,
  18200. tid: t,
  18201. count: a,
  18202. };
  18203. this.ajax
  18204. .get(this.$store.state.api + "insertToolsCount", params)
  18205. .then((res) => {
  18206. this.selectCount();
  18207. })
  18208. .catch((err) => {
  18209. console.error(err);
  18210. });
  18211. },
  18212. updateCount(c, t) {
  18213. c++;
  18214. let params = {
  18215. cid: this.id,
  18216. chid: this.courseType,
  18217. uid: this.userid,
  18218. tid: t,
  18219. count: c,
  18220. };
  18221. this.ajax
  18222. .get(this.$store.state.api + "updateToolsCount", params)
  18223. .then((res) => {
  18224. this.selectCount();
  18225. })
  18226. .catch((err) => {
  18227. console.error(err);
  18228. });
  18229. },
  18230. checkEva() {
  18231. if (this.evalua != "") {
  18232. for (var i = 0; i < this.evaJuri.length; i++) {
  18233. if (this.evalua == this.evaJuri[i].id) {
  18234. this.eTitle = this.evaJuri[i].title;
  18235. this.eJson = JSON.parse(this.evaJuri[i].content);
  18236. }
  18237. }
  18238. this.$forceUpdate();
  18239. setTimeout(() => {
  18240. this.setMindData();
  18241. }, 0);
  18242. }
  18243. },
  18244. selectEva() {
  18245. let params = {
  18246. oid: this.oid,
  18247. };
  18248. this.ajax
  18249. .get(this.$store.state.api + "selectAllEvaluation", params)
  18250. .then((res) => {
  18251. this.evaJuri = res.data[0];
  18252. })
  18253. .catch((err) => {
  18254. console.error(err);
  18255. });
  18256. },
  18257. setMindData() {
  18258. this.data.data = [];
  18259. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  18260. let _eJson = Object.keys(this.eJson);
  18261. let _e = this.eJson;
  18262. for (let i = 0; i < _eJson.length; i++) {
  18263. let element = _e[_eJson[i]];
  18264. this.data.data.push({
  18265. id: element.id,
  18266. parentid: "root",
  18267. topic: element.name,
  18268. });
  18269. let _eJsonc = Object.keys(element.child);
  18270. let _e2 = element.child;
  18271. for (let j = 0; j < _eJsonc.length; j++) {
  18272. let _ec = _e2[_eJsonc[j]];
  18273. this.data.data.push({
  18274. id: _ec.id,
  18275. parentid: element.id,
  18276. topic: _ec.name,
  18277. });
  18278. let _eJsonz = Object.keys(_ec.child);
  18279. let _e3 = _ec.child;
  18280. for (let z = 0; z < _eJsonz.length; z++) {
  18281. let _ez = _e3[_eJsonz[z]];
  18282. this.data.data.push({
  18283. id: _ez.id,
  18284. parentid: _ec.id,
  18285. topic: _ez.name,
  18286. });
  18287. }
  18288. }
  18289. }
  18290. this.$forceUpdate();
  18291. },
  18292. checkFileFull(type, url) {
  18293. this.fullDialogVisible = true;
  18294. this.fulltype = type;
  18295. this.fullUrl = url;
  18296. },
  18297. checkFileFull1(t, f) {
  18298. this.fullDialogVisible = true;
  18299. if (t == 6) {
  18300. this.fulltype = 1;
  18301. this.fullUrl = JSON.parse(JSON.stringify(f));
  18302. } else if (t == 8) {
  18303. this.fulltype = 2;
  18304. this.fullUrl = f.url;
  18305. } else if (
  18306. t == 3 &&
  18307. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18308. "PDF"
  18309. ) {
  18310. this.fulltype = 3;
  18311. this.fullUrl = f.url;
  18312. } else if (t == 3) {
  18313. this.fulltype = 2;
  18314. this.fullUrl =
  18315. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(f.url);
  18316. }
  18317. },
  18318. openSname(n, id, i, uid) {
  18319. this.snameWid = id;
  18320. this.worksSName = n;
  18321. this.worksSid = uid == n ? "" : uid;
  18322. this.toolindex = i;
  18323. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18324. if (!this.uploadCid) {
  18325. this.$message.error(
  18326. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18327. );
  18328. return;
  18329. }
  18330. this.selectUploadStudent(1);
  18331. },
  18332. updateName() {
  18333. let params = {
  18334. n: this.worksSName,
  18335. cid: this.snameWid,
  18336. };
  18337. this.ajax
  18338. .get(this.$store.state.api + "updateCourseWorksName", params)
  18339. .then((res) => {
  18340. this.$message({
  18341. message: "修改成功",
  18342. type: "success",
  18343. });
  18344. this.dialogVisibleSname = false;
  18345. this.getCourseDetail(2);
  18346. this.snameWid = "";
  18347. this.worksSName = "";
  18348. })
  18349. .catch((err) => {
  18350. console.error(err);
  18351. });
  18352. },
  18353. downloadFile2(f) {
  18354. // const loading = this.$loading.service({
  18355. // background: "rgba(255, 255, 255, 0.7)",
  18356. // target: document.body,
  18357. // text: "文件加载中...",
  18358. // });
  18359. // let url2 = f.url;
  18360. // let _url2 = "";
  18361. // if (
  18362. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18363. // ) {
  18364. // _url2 = url2.split(
  18365. // "https://view.officeapps.live.com/op/view.aspx?src="
  18366. // )[1];
  18367. // } else {
  18368. // _url2 = url2;
  18369. // }
  18370. // let params = {
  18371. // url: _url2,
  18372. // name: f.name,
  18373. // };
  18374. // this.ajax
  18375. // .get(this.$store.state.api + "download", params)
  18376. // .then((res) => {
  18377. // loading.close();
  18378. // let content = res.data.data.data;
  18379. // let ab = new ArrayBuffer(content.length);
  18380. // let view = new Uint8Array(ab);
  18381. // for (var i = 0; i < content.length; ++i) {
  18382. // view[i] = content[i];
  18383. // }
  18384. // let elink = document.createElement("a");
  18385. // elink.download = f.name;
  18386. // elink.style.display = "none";
  18387. // let blob = new Blob([ab], {
  18388. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  18389. // });
  18390. // elink.href = URL.createObjectURL(blob);
  18391. // document.body.appendChild(elink);
  18392. // elink.click();
  18393. // document.body.removeChild(elink);
  18394. // })
  18395. // .catch((err) => {
  18396. // loading.close();
  18397. // console.error(err);
  18398. // });
  18399. var credentials = {
  18400. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18401. secretAccessKey: "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",
  18402. }; //秘钥形式的登录上传
  18403. window.AWS.config.update(credentials);
  18404. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18405. let url2 = f.url;
  18406. let _url2 = "";
  18407. if (
  18408. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18409. ) {
  18410. _url2 = url2.split(
  18411. "https://view.officeapps.live.com/op/view.aspx?src="
  18412. )[1];
  18413. } else {
  18414. _url2 = url2;
  18415. }
  18416. let _this = this;
  18417. _this.downLoading = true
  18418. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18419. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18420. var params = {
  18421. Bucket: "ccrb",
  18422. Key: name
  18423. };
  18424. s3.getObject(params, function (err, data) {
  18425. _this.downLoading = false
  18426. if (err) console.log(err, err.stack); // an error occurred
  18427. else {
  18428. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18429. let a = document.createElement("a");
  18430. a.name = f.name;
  18431. a.href = url;
  18432. a.download = f.name;
  18433. a.click();
  18434. console.log(data);
  18435. } // sxuccessful response
  18436. });
  18437. return;
  18438. let url = f.url;
  18439. let _url = "";
  18440. if (
  18441. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18442. ) {
  18443. _url = url.split(
  18444. "https://view.officeapps.live.com/op/view.aspx?src="
  18445. )[1];
  18446. } else {
  18447. _url = url;
  18448. }
  18449. _this.downLoading = true
  18450. let x = new XMLHttpRequest();
  18451. x.open("GET", _url, true);
  18452. x.responseType = "blob";
  18453. x.onload = function () {
  18454. _this.downLoading = false
  18455. let url = window.URL.createObjectURL(new Blob([x.response]));
  18456. let a = document.createElement("a");
  18457. a.name = f.name;
  18458. a.href = url;
  18459. a.download = f.name;
  18460. a.click();
  18461. };
  18462. x.send();
  18463. },
  18464. downloadFile(url) {
  18465. var credentials = {
  18466. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18467. secretAccessKey: "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",
  18468. }; //秘钥形式的登录上传
  18469. window.AWS.config.update(credentials);
  18470. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18471. let url2 = url;
  18472. let _url2 = "";
  18473. if (
  18474. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18475. ) {
  18476. _url2 = url2.split(
  18477. "https://view.officeapps.live.com/op/view.aspx?src="
  18478. )[1];
  18479. } else {
  18480. _url2 = url2;
  18481. }
  18482. const loading2 = this.$loading.service({
  18483. background: "rgba(255, 255, 255, 0.7)",
  18484. target: document.body,
  18485. text: "文件加载中...",
  18486. });
  18487. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18488. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18489. var params = {
  18490. Bucket: "ccrb",
  18491. Key: name
  18492. };
  18493. s3.getObject(params, function (err, data) {
  18494. loading2.close();
  18495. if (err) console.log(err, err.stack); // an error occurred
  18496. else {
  18497. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18498. let a = document.createElement("a");
  18499. a.name = name;
  18500. a.href = url;
  18501. a.download = name;
  18502. a.click();
  18503. console.log(data);
  18504. } // sxuccessful response
  18505. });
  18506. return;
  18507. let _this = this;
  18508. let _url = "";
  18509. if (
  18510. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18511. ) {
  18512. _url = url.split(
  18513. "https://view.officeapps.live.com/op/view.aspx?src="
  18514. )[1];
  18515. } else {
  18516. _url = url;
  18517. }
  18518. const x = new XMLHttpRequest();
  18519. x.open("GET", _url, true);
  18520. x.responseType = "blob";
  18521. // this.downLoading = true
  18522. const loading = _this.$loading.service({
  18523. background: "rgba(255, 255, 255, 0.7)",
  18524. target: document.body,
  18525. text: "文件加载中...",
  18526. });
  18527. // _this.$message.success("文件下载中...");
  18528. x.onload = function (e) {
  18529. loading.close();
  18530. let content = x.response;
  18531. let elink = document.createElement("a");
  18532. elink.download = decodeURI(
  18533. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  18534. );
  18535. elink.style.display = "none";
  18536. let blob = new Blob([content]);
  18537. elink.href = URL.createObjectURL(blob);
  18538. document.body.appendChild(elink);
  18539. elink.click();
  18540. document.body.removeChild(elink);
  18541. };
  18542. x.send();
  18543. },
  18544. openLine(url) {
  18545. window.open(url);
  18546. },
  18547. resize() {
  18548. if (document.getElementsByClassName("box_course").length) {
  18549. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  18550. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  18551. if (this.showType == 2 || this.showType == 3) {
  18552. document.getElementsByClassName("navBox")[0].style.height =
  18553. a - 40 + 46 + "px";
  18554. } else {
  18555. document.getElementsByClassName("navBox")[0].style.height =
  18556. a - 40 + "px";
  18557. }
  18558. }
  18559. this.Stbodywidth =
  18560. document.getElementsByClassName("student_body").length &&
  18561. document.getElementsByClassName("student_body")[0].offsetWidth;
  18562. },
  18563. closeDraw() {
  18564. this.bg = null;
  18565. this.drawShow = false;
  18566. },
  18567. showPicturePaint(url) {
  18568. let params = {
  18569. img: url,
  18570. };
  18571. this.ajax
  18572. .get(this.$store.state.api + "imgToBase64", params)
  18573. .then((res) => {
  18574. this.drawShow = true;
  18575. this.bg = res.data[0].img;
  18576. })
  18577. .catch((err) => {
  18578. console.error(err);
  18579. });
  18580. },
  18581. addImgDraw(base64) {
  18582. let file = { name: "批注图.png" };
  18583. let img = this.dataUrlToFile(base64, file);
  18584. this.beforeUpload1(img, 5);
  18585. },
  18586. addImgDrawImG(url) {
  18587. // console.log(url);
  18588. let params = [
  18589. {
  18590. wid: this.commentDetail.wid,
  18591. img: url,
  18592. },
  18593. ];
  18594. this.ajax
  18595. .post(this.$store.state.api + "updateCourseWorks", params)
  18596. .then((res) => {
  18597. this.$message({
  18598. message: "提交成功",
  18599. type: "success",
  18600. });
  18601. this.drawShow = false;
  18602. this.bg = "";
  18603. this.selectSWorks();
  18604. this.selectStudent();
  18605. })
  18606. .catch((err) => {
  18607. this.$message.error("提交失败");
  18608. console.error(err);
  18609. });
  18610. },
  18611. deletePicturePaint() {
  18612. this.$confirm("确定删除此批注吗?", "提示", {
  18613. confirmButtonText: "确定",
  18614. cancelButtonText: "取消",
  18615. type: "warning",
  18616. })
  18617. .then(() => {
  18618. let params = [
  18619. {
  18620. wid: this.commentDetail.wid,
  18621. img: "",
  18622. },
  18623. ];
  18624. this.ajax
  18625. .post(this.$store.state.api + "updateCourseWorks", params)
  18626. .then((res) => {
  18627. this.$message({
  18628. message: "删除成功",
  18629. type: "success",
  18630. });
  18631. this.selectSWorks();
  18632. this.selectStudent();
  18633. })
  18634. .catch((err) => {
  18635. this.$message.error("删除失败");
  18636. console.error(err);
  18637. });
  18638. })
  18639. .catch(() => {});
  18640. },
  18641. getAudioVideo(constraintsData) {
  18642. if (navigator.mediaDevices === undefined) {
  18643. navigator.mediaDevices = {};
  18644. }
  18645. if (navigator.mediaDevices.getUserMedia === undefined) {
  18646. navigator.mediaDevices.getUserMedia = function (constraints) {
  18647. // 首先,如果有getUserMedia的话,就获得它
  18648. var getUserMedia =
  18649. navigator.getUserMedia ||
  18650. navigator.webkitGetUserMedia ||
  18651. navigator.mozGetUserMedia ||
  18652. navigator.msGetUserMedia;
  18653. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  18654. if (!getUserMedia) {
  18655. return Promise.reject({ code: 404 });
  18656. }
  18657. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  18658. return new Promise(function (resolve, reject) {
  18659. getUserMedia.call(navigator, constraints, resolve, reject);
  18660. });
  18661. };
  18662. }
  18663. return navigator.mediaDevices.getUserMedia(constraintsData);
  18664. },
  18665. /**
  18666. * 开始录制
  18667. */
  18668. startRecording(callback) {
  18669. let _function = (screenStream) => {
  18670. this.addStreamStopListener(screenStream, () => {
  18671. console.log("流停止监听");
  18672. this.stopRecording();
  18673. this.$emit("streamStop", {});
  18674. // this.stopRecording();
  18675. });
  18676. var options = {
  18677. type: "video",
  18678. mimeType: "video/webm",
  18679. disableLogs: false,
  18680. getNativeBlob: false, // enable it for longer recordings
  18681. ignoreMutedMedia: false,
  18682. };
  18683. // this.video.srcObject = screenStream;
  18684. this.recorder = RecordRTC(screenStream, options);
  18685. this.recorder.startRecording();
  18686. this.recorder.screen = screenStream;
  18687. this.videoStart = true;
  18688. // callback(true);
  18689. };
  18690. this.getAudioVideo({ audio: true })
  18691. .then((res) => {
  18692. this.captureScreen(_function, true);
  18693. console.log("已点击允许,开启成功");
  18694. })
  18695. .catch((err) => {
  18696. // console.log('浏览器不支持,请更换浏览器')
  18697. // } else {
  18698. this.captureScreen(_function, false);
  18699. console.log("请检查是否存在麦克风");
  18700. });
  18701. },
  18702. /**
  18703. * 停止录制
  18704. */
  18705. stopRecording(callback) {
  18706. this.recorder.stopRecording(() => {
  18707. // this.video.src = this.video.srcObject = null;
  18708. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  18709. const url = URL.createObjectURL(this.recorder.getBlob());
  18710. const a = document.createElement("a"); //this.fileName+
  18711. let videoFile = new File(
  18712. [this.recorder.getBlob()],
  18713. this.courseDetail.title + "录屏.mp4",
  18714. {
  18715. type: "video/mp4",
  18716. }
  18717. );
  18718. let downloadUrl = URL.createObjectURL(videoFile);
  18719. document.body.appendChild(a);
  18720. a.style.display = "none";
  18721. a.href = url;
  18722. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  18723. a.click();
  18724. this.recorder.screen.stop();
  18725. this.recorder.destroy();
  18726. this.recorder = null;
  18727. this.videoStart = false;
  18728. // callback(false);
  18729. });
  18730. },
  18731. //初始化
  18732. captureScreen(callback, type) {
  18733. if (navigator.getDisplayMedia) {
  18734. //录制结束,文件下载
  18735. navigator
  18736. .getDisplayMedia({
  18737. video: true,
  18738. })
  18739. .then((screenStream) => {
  18740. if (type) {
  18741. navigator.mediaDevices
  18742. .getUserMedia({ audio: true })
  18743. .then((mic) => {
  18744. screenStream.addTrack(mic.getTracks()[0]);
  18745. callback(screenStream);
  18746. });
  18747. } else {
  18748. callback(screenStream);
  18749. }
  18750. })
  18751. .catch(function (error) {
  18752. console.log("error", error);
  18753. });
  18754. } else if (navigator.mediaDevices.getDisplayMedia) {
  18755. navigator.mediaDevices
  18756. .getDisplayMedia({
  18757. video: true,
  18758. })
  18759. .then((screenStream) => {
  18760. if (type) {
  18761. navigator.mediaDevices
  18762. .getUserMedia({ audio: true })
  18763. .then((mic) => {
  18764. screenStream.addTrack(mic.getTracks()[0]);
  18765. callback(screenStream);
  18766. });
  18767. } else {
  18768. callback(screenStream);
  18769. }
  18770. })
  18771. .catch(function (error) {
  18772. console.log("error", error);
  18773. });
  18774. } else {
  18775. var error = "getDisplayMedia API are not supported in this browser.";
  18776. console.log("error", error);
  18777. alert(error);
  18778. }
  18779. },
  18780. //流监听
  18781. addStreamStopListener(stream, callback) {
  18782. stream.addEventListener(
  18783. "ended",
  18784. function () {
  18785. callback();
  18786. callback = function () {};
  18787. },
  18788. false
  18789. );
  18790. stream.addEventListener(
  18791. "inactive",
  18792. function () {
  18793. callback();
  18794. callback = function () {};
  18795. },
  18796. false
  18797. );
  18798. stream.getTracks().forEach(function (track) {
  18799. track.addEventListener(
  18800. "ended",
  18801. function () {
  18802. callback();
  18803. callback = function () {};
  18804. },
  18805. false
  18806. );
  18807. track.addEventListener(
  18808. "inactive",
  18809. function () {
  18810. callback();
  18811. callback = function () {};
  18812. },
  18813. false
  18814. );
  18815. });
  18816. },
  18817. updateGroup() {
  18818. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  18819. this.dialogVisibleGroup2 = true;
  18820. },
  18821. numberPan() {
  18822. if (
  18823. /[^\d]/.test(this.groupJson.number) ||
  18824. this.groupJson.number < 2 ||
  18825. this.groupJson.number > 10
  18826. ) {
  18827. this.$message.error("请输入2-10的数字");
  18828. this.groupJson.number = "";
  18829. }
  18830. },
  18831. updateGroupJson() {
  18832. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  18833. if (
  18834. this.groupStudentUid[this.toolindex][i].length >
  18835. this.groupJson2.number
  18836. ) {
  18837. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  18838. return;
  18839. }
  18840. }
  18841. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  18842. this.islock = this.groupJson.islock == 1 ? true : false;
  18843. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18844. this.taskCount
  18845. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  18846. let params = [
  18847. {
  18848. cid: this.id,
  18849. chapters: JSON.stringify(this.chapInfoList),
  18850. uid: this.userid,
  18851. unitIndex: this.courseType,
  18852. },
  18853. ];
  18854. this.ajax
  18855. .post(this.$store.state.api + "updateWorkNew4", params)
  18856. .then((res) => {
  18857. this.$message.success("设置成功");
  18858. this.getCourseDetail(2);
  18859. this.dialogVisibleGroup2 = false;
  18860. this.groupJson2 = {};
  18861. this.$forceUpdate();
  18862. })
  18863. .catch((err) => {
  18864. this.$message.error("网络不佳");
  18865. console.error(err);
  18866. });
  18867. },
  18868. lockChair() {
  18869. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  18870. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  18871. this.updateGroupJson();
  18872. },
  18873. selectGroup(index) {
  18874. this.getCourseDetail(2, index);
  18875. },
  18876. joinGroup(index) {
  18877. if (this.groupJson.islock == 2) {
  18878. this.$message.error("位置已被锁定,无法加入");
  18879. return;
  18880. }
  18881. if (
  18882. this.groupStudent[this.toolindex][index].length >
  18883. this.groupJson.number ||
  18884. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  18885. ) {
  18886. this.$message.error("位置已满,无法加入");
  18887. return;
  18888. }
  18889. let params = [
  18890. {
  18891. cid: this.id,
  18892. stage: this.courseType,
  18893. task: this.taskCount,
  18894. tool: this.toolindex,
  18895. g: index,
  18896. uid: this.userid,
  18897. },
  18898. ];
  18899. this.ajax
  18900. .post(this.$store.state.api + "joinGroup", params)
  18901. .then((res) => {
  18902. this.$message.success("加入成功");
  18903. this.getCourseDetail(2);
  18904. })
  18905. .catch((err) => {
  18906. this.$message.error("网络不佳");
  18907. console.error(err);
  18908. });
  18909. },
  18910. exitGroup(id) {
  18911. if (this.groupJson.islock == 2) {
  18912. this.$message.error("位置已被锁定,无法退出");
  18913. return;
  18914. }
  18915. let params = [
  18916. {
  18917. gid: id,
  18918. },
  18919. ];
  18920. this.ajax
  18921. .post(this.$store.state.api + "exitGroup", params)
  18922. .then((res) => {
  18923. this.$message.success("退出成功");
  18924. this.getCourseDetail(2);
  18925. })
  18926. .catch((err) => {
  18927. this.$message.error("网络不佳");
  18928. console.error(err);
  18929. });
  18930. },
  18931. groupUpload(index, task, gindex) {
  18932. this.taskCount = task;
  18933. this.toolindex = index;
  18934. this.groupIndex = gindex;
  18935. this.dialogVisibleGroupWork = true;
  18936. },
  18937. updateGroupChair(user) {
  18938. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  18939. el.label = index;
  18940. return index != user.group;
  18941. });
  18942. this.updateGroupUser = user;
  18943. this.dialogVisibleUpdateGroup = true;
  18944. },
  18945. updateChair() {
  18946. if (
  18947. this.groupStudent[this.toolindex][this.checkChair].length >
  18948. this.groupJson.number ||
  18949. this.groupStudent[this.toolindex][this.checkChair].length ==
  18950. this.groupJson.number
  18951. ) {
  18952. this.$message.error("位置已满,无法加入");
  18953. return;
  18954. }
  18955. let params = [
  18956. {
  18957. cid: this.id,
  18958. stage: this.courseType,
  18959. task: this.taskCount,
  18960. tool: this.toolindex,
  18961. g: this.checkChair,
  18962. uid: this.updateGroupUser.userid,
  18963. },
  18964. ];
  18965. this.ajax
  18966. .post(this.$store.state.api + "joinGroup", params)
  18967. .then((res) => {
  18968. this.$message.success("修改成功");
  18969. this.updateGroupUser = {};
  18970. this.checkChair = "";
  18971. this.updateGroupArray = {};
  18972. this.dialogVisibleUpdateGroup = false;
  18973. this.getCourseDetail(2);
  18974. })
  18975. .catch((err) => {
  18976. this.$message.error("网络不佳");
  18977. console.error(err);
  18978. });
  18979. },
  18980. deleteGroupChair(gindex) {
  18981. this.checkDeleteGroup = [];
  18982. this.deleteGroupUser = JSON.parse(
  18983. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  18984. );
  18985. this.deleteGroupArray = this.groupJson.group[gindex];
  18986. this.groupIndex = gindex;
  18987. this.dialogVisibleDeleteGroup = true;
  18988. },
  18989. async deleteChair() {
  18990. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  18991. const gid =
  18992. this.groupStudent[this.toolindex][this.groupIndex][
  18993. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  18994. this.checkDeleteGroup[i]
  18995. )
  18996. ];
  18997. let params = [
  18998. {
  18999. gid: gid.id,
  19000. },
  19001. ];
  19002. var a = await this.deleteChairA(params);
  19003. if (i == this.checkDeleteGroup.length - 1) {
  19004. this.$message.success("退出成功");
  19005. this.dialogVisibleDeleteGroup = false;
  19006. this.deleteGroupUser = [];
  19007. this.deleteGroupArray = {};
  19008. this.groupIndex = "";
  19009. this.checkDeleteGroup = [];
  19010. this.getCourseDetail(2);
  19011. }
  19012. }
  19013. },
  19014. deleteChairA(params) {
  19015. return new Promise((resolve, reject) => {
  19016. this.ajax
  19017. .post(this.$store.state.api + "exitGroup", params)
  19018. .then((res) => {
  19019. resolve(1);
  19020. })
  19021. .catch((err) => {
  19022. this.$message.error("网络不佳");
  19023. console.error(err);
  19024. });
  19025. });
  19026. },
  19027. contract(i) {
  19028. if (this.isCloseList[i].isClose == 0) {
  19029. this.isCloseList[i].isClose = 1;
  19030. } else {
  19031. this.isCloseList[i].isClose = 0;
  19032. }
  19033. this.$forceUpdate();
  19034. },
  19035. openWordCloud(toolindex) {
  19036. let array = [];
  19037. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  19038. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  19039. array.push({ name: works });
  19040. }
  19041. if (this.isGroup) {
  19042. for (var i = 0; i < this.courseGroup.group.length; i++) {
  19043. let works = this.courseGroup.group[i].works[toolindex];
  19044. for (var j = 0; j < works.length; j++) {
  19045. let answer = JSON.parse(works[j].works)[0].answer;
  19046. array.push({ name: answer });
  19047. }
  19048. }
  19049. }
  19050. this.wordCloudData = array;
  19051. this.dialogVisibleWordCloud = true;
  19052. },
  19053. uploadWorks(i) {
  19054. this.$confirm("确定导出作业吗?", "提示", {
  19055. confirmButtonText: "确定",
  19056. cancelButtonText: "取消",
  19057. type: "warning",
  19058. })
  19059. .then(() => {
  19060. const loading = this.$loading.service({
  19061. background: "rgba(255, 255, 255, 0.7)",
  19062. target: document.body,
  19063. text: "文件加载中...",
  19064. });
  19065. const _worksStudent = this.worksStudent;
  19066. let url = [];
  19067. var counts = {};
  19068. for (var l = 0; l < _worksStudent[i].length; l++) {
  19069. var item = _worksStudent[i][l];
  19070. var name = item.sName;
  19071. if (!counts.hasOwnProperty(name)) {
  19072. counts[name] = 0;
  19073. } else {
  19074. counts[name]++;
  19075. }
  19076. if (counts[name] > 0) {
  19077. item.sName += " (" + counts[name] + ")";
  19078. }
  19079. }
  19080. for (var l = 0; l < _worksStudent[i].length; l++) {
  19081. var item = _worksStudent[i][l];
  19082. if (
  19083. item.works.indexOf(
  19084. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  19085. ) !== -1 &&
  19086. item.works.indexOf("img") === -1
  19087. ) {
  19088. url.push({ name: item.sName, url: item.works });
  19089. }
  19090. }
  19091. // var toolList = [
  19092. // { name: "电子白板", tool: 1 },
  19093. // { name: "思维导图", tool: 3 },
  19094. // { name: "协同文档", tool: 6 },
  19095. // { name: "思维网格", tool: 7 },
  19096. // { name: "素材库", tool: 8 },
  19097. // { name: "学习资料", tool: 17 },
  19098. // { name: "便签", tool: 2 },
  19099. // { name: "问卷调查", tool: 4 },
  19100. // { name: "选择题", tool: 45 },
  19101. // { name: "倒计时", tool: 10 },
  19102. // { name: "问答", tool: 15 },
  19103. // { name: "课程设计", tool: 26 },
  19104. // { name: "训练服务器", tool: 18 },
  19105. // { name: "作业提交", tool: 16 },
  19106. // { name: "批量上传", tool: 50 },
  19107. // { name: "AIoT Blockly", tool: 21 },
  19108. // { name: "AI Python", tool: 23 },
  19109. // { name: "AI Blockly", tool: 24 },
  19110. // { name: "目标管理", tool: 25 },
  19111. // { name: "数学画板", tool: 31 },
  19112. // { name: "翻译", tool: 28 },
  19113. // { name: "魔盒识字", tool: 37 },
  19114. // { name: "数学画板", tool: 31 },
  19115. // { name: "24点", tool: 38 },
  19116. // { name: "GeoGebra", tool: 39 },
  19117. // { name: "源码编辑", tool: 32 },
  19118. // { name: "个人评价", tool: 40 },
  19119. // { name: "选择匹配", tool: 41 },
  19120. // { name: "汉字宫", tool: 44 },
  19121. // { name: "排序", tool: 47 },
  19122. // { name: "表格", tool: 48 },
  19123. // { name: "文档", tool: 52 },
  19124. // { name: "学生分组", tool: 49 },
  19125. // { name: "CocoPi", tool: 57 },
  19126. // { name: "模拟驾驶", tool: 58 },
  19127. // { name: "路径搜索", tool: 59 },
  19128. // { name: "深度学习", tool: 60 },
  19129. // { name: "全历史", tool: 61 },
  19130. // { name: "交互视频", tool: 62 },
  19131. // { name: "海龟编程", tool: 63 },
  19132. // { name: "挑人", tool: 65 },
  19133. // { name: "公式编辑", tool: 66 },
  19134. // { name: "分子结构", tool: 67 },
  19135. // { name: "时间轴", tool: 68 },
  19136. // ];
  19137. // var toolName = "";
  19138. // for(var w = 0;w<toolList.length;w++){
  19139. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  19140. // toolName = toolList[w].name;
  19141. // }
  19142. // }
  19143. console.log(url);
  19144. this.downLoadAll(url, loading);
  19145. })
  19146. .catch(() => {});
  19147. },
  19148. downLoadAll(url, loading) {
  19149. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  19150. const zip = new JSZip();
  19151. const cache = {};
  19152. const promises = [];
  19153. data.forEach((item) => {
  19154. const promise = getFile(item.url).then((data) => {
  19155. if (data.data != 1) {
  19156. // 下载文件, 并存成ArrayBuffer对象
  19157. const file_name =
  19158. item.name +
  19159. "." +
  19160. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  19161. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  19162. cache[file_name] = data.data;
  19163. }
  19164. });
  19165. promises.push(promise);
  19166. });
  19167. Promise.all(promises).then(() => {
  19168. zip.generateAsync({ type: "blob" }).then((content) => {
  19169. // 生成二进制流
  19170. FileSaver.saveAs(
  19171. content,
  19172. this.courseDetail.title + "-" + "作业提交工具.zip"
  19173. ); // 利用file-saver保存文件 自定义文件名
  19174. setTimeout(() => {
  19175. loading.close();
  19176. }, 2000);
  19177. });
  19178. });
  19179. },
  19180. pickStudent(stu) {
  19181. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  19182. return;
  19183. }
  19184. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  19185. confirmButtonText: "确定",
  19186. cancelButtonText: "取消",
  19187. type: "warning",
  19188. })
  19189. .then(() => {
  19190. let params = [
  19191. {
  19192. uid: stu.userid,
  19193. cid: this.id,
  19194. stage: this.courseType,
  19195. task: this.taskCount,
  19196. tool: this.toolindex,
  19197. },
  19198. ];
  19199. this.ajax
  19200. .post(this.$store.state.api + "updateCoursePick", params)
  19201. .then((res) => {
  19202. this.$message.success("操作成功");
  19203. this.getPick();
  19204. })
  19205. .catch((err) => {
  19206. this.$message.error("网络不佳");
  19207. console.error(err);
  19208. });
  19209. })
  19210. .catch(() => {});
  19211. },
  19212. selectUser(){
  19213. let params = {
  19214. userid: this.userid,
  19215. };
  19216. this.ajax
  19217. .get(this.$store.state.api + "selectUser", params)
  19218. .then((res) => {
  19219. this.userMes = res.data[0];
  19220. })
  19221. .catch((err) => {
  19222. console.error(err);
  19223. });
  19224. },
  19225. setEngText(i){
  19226. this.newEngIndex = i;
  19227. this.$forceUpdate();
  19228. },
  19229. addCorrect(){
  19230. this.$confirm("你确定提交批改嘛?", "提示", {
  19231. confirmButtonText: "确定",
  19232. showCancelButton: false,
  19233. closeOnClickModal: false,
  19234. type: "warning",
  19235. })
  19236. .then(() => {
  19237. let params = {
  19238. cid: this.id,
  19239. s: parseInt(this.courseType),
  19240. t: this.taskCount,
  19241. tool: this.toolindex,
  19242. wid: this.engWid,
  19243. c: this.userid,
  19244. w: this.userMes[0].type == 2 ? JSON.parse(this.newEnglishList) : (this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length) ? JSON.stringify(this.oldEnglishJson1) : this.newEngIndex == -1 ? JSON.stringify(this.newEnglishList) : (this.newEngIndex > -1 && this.newEnglishList1.length > 0) ? JSON.stringify(this.newEnglishList1[this.newEngIndex].cWork) : "",
  19245. };
  19246. this.ajax
  19247. .get(this.$store.state.api + "addEngC", params)
  19248. .then((res) => {
  19249. this.$message.success("提交成功");
  19250. this.engUpdateDialogVisible = false;
  19251. })
  19252. .catch((err) => {
  19253. console.error(err);
  19254. });
  19255. })
  19256. .catch(() => {});
  19257. },
  19258. selectEngC(id,z){
  19259. let params = {
  19260. workid: id,
  19261. };
  19262. this.ajax
  19263. .get(this.$store.state.api + "selectEngC", params)
  19264. .then((res) => {
  19265. if(res.data[0].length == 0){
  19266. this.newEnglishList.engTitle = z.engTitle;
  19267. this.newEnglishList.engText = z.engText;
  19268. }else{
  19269. var a = res.data[0];
  19270. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  19271. if(this.userMes[0].type == 2){
  19272. var snum = 0;
  19273. for(var i = 0;i<a.length;i++){
  19274. if(this.userMes[0].userid == a[i].correct){
  19275. this.newEnglishList = JSON.parse(a[i].cWork);
  19276. snum = 1;
  19277. }
  19278. }
  19279. if(snum == 0){
  19280. this.newEnglishList = { engTitle:"",engText:"" };
  19281. this.newEnglishList.engTitle = z.engTitle;
  19282. this.newEnglishList.engText = z.engText;
  19283. }
  19284. }else if(this.userMes[0].type == 1){
  19285. var num = 0;
  19286. for(var w= 0;w<a.length;w++){
  19287. if(this.userMes[0].userid == a[w].correct){
  19288. num = 1;
  19289. }
  19290. }
  19291. if(num == 0){
  19292. this.isNoUserid = true;
  19293. var c = JSON.parse(JSON.stringify(z));
  19294. this.oldEnglishJson1 = c;
  19295. }else{
  19296. this.isNoUserid = false;
  19297. }
  19298. var b = a.sort((item, index) => {
  19299. console.log(item)
  19300. if (item.correct === this.userMes[0].userid) {
  19301. return -1; // 将a移到前面
  19302. } else if (index.correct === this.userMes[0].userid) {
  19303. return 1; // 将b移到前面
  19304. } else {
  19305. return 0; // 保持默认顺序
  19306. }
  19307. });
  19308. for(var p = 0;p<b.length;p++){
  19309. for(var y = 0;y<ppp.length;y++){
  19310. if(b[p].id == ppp[y].id){
  19311. b[p].cWork = JSON.parse(ppp[y].cWork);
  19312. break
  19313. }
  19314. }
  19315. }
  19316. this.newEnglishList1 = b;
  19317. }
  19318. }
  19319. this.greyType = false;
  19320. setTimeout(() => {
  19321. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  19322. if(this.newEnglishList1.length > 0){
  19323. if(this.isNoUserid == true){
  19324. this.engListLength = this.newEnglishList1.length + 1;
  19325. this.newEngIndex = -1;
  19326. }else{
  19327. this.engListLength = this.newEnglishList1.length;
  19328. this.newEngIndex = 0;
  19329. }
  19330. }
  19331. if(this.userMes[0].type == 2){
  19332. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19333. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  19334. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  19335. }else if(this.newEngIndex == -1){
  19336. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19337. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  19338. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  19339. }
  19340. }, 500);
  19341. this.engUpdateDialogVisible = true;
  19342. this.$forceUpdate();
  19343. })
  19344. .catch((err) => {
  19345. console.error(err);
  19346. });
  19347. },
  19348. getPick() {
  19349. let params = {
  19350. cid: this.id,
  19351. };
  19352. this.ajax
  19353. .get(this.$store.state.api + "getPick", params)
  19354. .then((res) => {
  19355. let array = [];
  19356. for (var i = 0; i < res.data[0].length; i++) {
  19357. array.push(res.data[0][i].userid);
  19358. }
  19359. this.isPickStudent = array;
  19360. if (array.indexOf(this.userid) !== -1) {
  19361. this.$confirm("你被老师选到啦!", "提示", {
  19362. confirmButtonText: "确定",
  19363. showCancelButton: false,
  19364. closeOnClickModal: false,
  19365. type: "warning",
  19366. })
  19367. .then(() => {
  19368. let pa = [
  19369. {
  19370. uid: this.userid,
  19371. cid: this.id,
  19372. },
  19373. ];
  19374. this.ajax
  19375. .post(this.$store.state.api + "deletePick", pa)
  19376. .then((res) => {
  19377. this.getPick();
  19378. })
  19379. .catch((err) => {
  19380. this.$message.error("网络不佳");
  19381. console.error(err);
  19382. });
  19383. })
  19384. .catch(() => {});
  19385. }
  19386. })
  19387. .catch((err) => {
  19388. this.$message.error("网络不佳");
  19389. console.error(err);
  19390. });
  19391. },
  19392. foldEva() {
  19393. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  19394. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  19395. } else {
  19396. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  19397. setTimeout(() => {
  19398. this.checkEva();
  19399. setTimeout(() => {
  19400. this.checkEva();
  19401. }, 500);
  19402. }, 0);
  19403. }
  19404. this.$forceUpdate();
  19405. },
  19406. panToolHeight(tool) {
  19407. var _tool = document.querySelectorAll('#'+tool)[0]
  19408. var _toolA = _tool ? _tool.offsetHeight : 0
  19409. var _toolC = 0
  19410. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  19411. let boolean2 = (_toolA > _toolC) ? true : false
  19412. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  19413. this.$forceUpdate();
  19414. },
  19415. },
  19416. directives: {
  19417. // 使用局部注册指令的方式
  19418. resize: {
  19419. // 指令的名称
  19420. bind(el, binding) {
  19421. // el为绑定的元素,binding为绑定给指令的对象
  19422. let width = "",
  19423. height = "";
  19424. function isReize() {
  19425. const style = document.defaultView.getComputedStyle(el);
  19426. if (width !== style.width || height !== style.height) {
  19427. binding.value(); // 关键
  19428. }
  19429. width = style.width;
  19430. height = style.height;
  19431. }
  19432. el.__vueSetInterval__ = setInterval(isReize, 300);
  19433. },
  19434. unbind(el) {
  19435. clearInterval(el.__vueSetInterval__);
  19436. },
  19437. },
  19438. autoHeight: {
  19439. update(el, binding) {
  19440. const { value } = binding
  19441. if (value && typeof value === 'number') {
  19442. el.style.height = `${value}px`
  19443. } else {
  19444. el.style.height = 'auto'
  19445. }
  19446. },
  19447. componentUpdated(el) {
  19448. el.style.height = `${el.scrollHeight}px`
  19449. },
  19450. },
  19451. },
  19452. beforeDestroy() {
  19453. window.onresize = null;
  19454. clearInterval(this.timer);
  19455. this.timer = null;
  19456. clearInterval(this.opertimer);
  19457. this.opertimer = null;
  19458. },
  19459. computed: {
  19460. contentConvent() {
  19461. return function (c) {
  19462. return c
  19463. ? c
  19464. .replaceAll(/\r\n/g, "<br/>")
  19465. .replaceAll(/\n/g, "<br/>")
  19466. .replaceAll(/\s/g, " &nbsp")
  19467. : "";
  19468. };
  19469. },
  19470. checkUpload() {
  19471. return function () {
  19472. var studentK = [];
  19473. if (this.plworkFile.length > 0) {
  19474. for (var z = 0; z < this.plworkFile.length; z++) {
  19475. studentK.push(this.plworkFile[z].username);
  19476. }
  19477. studentK = studentK.join(",");
  19478. }
  19479. var a = this.uploadStudentJuri.filter((el) => {
  19480. return studentK.indexOf(el.userid) == -1;
  19481. });
  19482. return a;
  19483. };
  19484. },
  19485. getSName() {
  19486. return function (name) {
  19487. var check = name;
  19488. this.uploadStudentJuri.forEach((el) => {
  19489. if (el.userid == check) {
  19490. check = el.name ? el.name : el.username;
  19491. }
  19492. });
  19493. return check;
  19494. };
  19495. },
  19496. getImgList() {
  19497. return function (val) {
  19498. let srcList = []; // 定义一个数组用来接收后面的img地址
  19499. val.replace(
  19500. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  19501. function (match, capture) {
  19502. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  19503. srcList.push(capture);
  19504. }
  19505. );
  19506. return srcList;
  19507. };
  19508. },
  19509. retrnToolHeight(){
  19510. return function (tool) {
  19511. var _tool = document.querySelectorAll('#'+tool)[0]
  19512. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  19513. };
  19514. },
  19515. Correct() {
  19516. return function (c) {
  19517. let w = "";
  19518. let a = this.correctWord;
  19519. for(var k = 0;k<a.length;k++){
  19520. //diffWordsWithSpace
  19521. if(a.length > 1){
  19522. if(a[k].added == true){
  19523. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19524. }else if(a[k].removed == true){
  19525. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19526. }else{
  19527. w += '<span>' + a[k].value + '</span>';
  19528. }
  19529. }else{
  19530. w = c
  19531. }
  19532. //diffChars方法
  19533. // if(a.length > 1){
  19534. // if(w == ""){
  19535. // if(a[k].added == true){
  19536. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19537. // }else if(a[k].removed == true){
  19538. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19539. // }
  19540. // }else{
  19541. // if(k == a.length - 1){
  19542. // if(a[k].added == true){
  19543. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19544. // }else if(a[k].removed == true){
  19545. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19546. // }
  19547. // }else{
  19548. // if(a[k].added == true){
  19549. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19550. // }else if(a[k].removed == true){
  19551. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19552. // }
  19553. // }
  19554. // }
  19555. // }else{
  19556. // w = c
  19557. // }
  19558. }
  19559. c = w;
  19560. return c;
  19561. };
  19562. },
  19563. },
  19564. mounted() {
  19565. document.body.addEventListener("click", (e) => {
  19566. if (this.isUpdateToolDetail1) {
  19567. this.updateToolDetail(this.toolDetailIndex);
  19568. }
  19569. });
  19570. if (this.screenType == 2) {
  19571. window.parent.postMessage({ allScreen: 4 }, "*");
  19572. } else if (this.screenType == 3) {
  19573. window.parent.postMessage({ allScreen: 5 }, "*");
  19574. } else if (this.screenType == 1) {
  19575. window.parent.postMessage({ allScreen: 6 }, "*");
  19576. }
  19577. this.setOperationTime();
  19578. this.selectEva();
  19579. this.getCourseDetail();
  19580. this.selectCount();
  19581. this.getHomeWork();
  19582. this.selectUser();
  19583. this.contentDialog = true;
  19584. this.setContent2(true);
  19585. if (this.tType == 4) {
  19586. this.pzDialog = true;
  19587. this.selectPz();
  19588. }
  19589. document.scrollingElement.scrollTop = 0;
  19590. window.addEventListener("resize", () => {
  19591. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19592. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19593. if (this.showType == 2 || this.showType == 3) {
  19594. document.getElementsByClassName("navBox")[0].style.height =
  19595. a - 40 + 46 + "px";
  19596. } else {
  19597. document.getElementsByClassName("navBox")[0].style.height =
  19598. a - 40 + "px";
  19599. }
  19600. });
  19601. let _this = this;
  19602. setTimeout(() => {
  19603. // _this.vedioTime = [];
  19604. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  19605. // _this.vedioTime[i] = document.getElementsByClassName(
  19606. // "vjs-duration-display"
  19607. // )[i].textContent;
  19608. // }
  19609. }, 1000);
  19610. },
  19611. };
  19612. </script>
  19613. <style scoped>
  19614. @media screen and (max-width: 1280px) {
  19615. /* .courseIndex > div:first-child(2) {
  19616. width: 15% !important;
  19617. } */
  19618. /* .navText {
  19619. width: 120px !important;
  19620. } */
  19621. .evaCss {
  19622. flex-direction: column !important;
  19623. align-items: center !important;
  19624. }
  19625. .elist_input {
  19626. width: 90% !important;
  19627. }
  19628. .dialog_diy1 >>> .el-dialog {
  19629. width: 100% !important;
  19630. }
  19631. .rightWidthCss {
  19632. width: 100% !important;
  19633. }
  19634. .dialog_diy3 >>> .el-dialog {
  19635. width: 100% !important;
  19636. }
  19637. .addToolCss {
  19638. right: 0 !important;
  19639. width: 100% !important;
  19640. min-width: unset !important;
  19641. }
  19642. }
  19643. .evaCssMax {
  19644. flex-direction: column !important;
  19645. align-items: center !important;
  19646. }
  19647. .dialog_diy >>> .el-dialog {
  19648. margin-top: 10vh !important;
  19649. }
  19650. .body_student {
  19651. width: 77%;
  19652. height: 100%;
  19653. position: absolute;
  19654. left: 22%;
  19655. top: 0;
  19656. }
  19657. .student_head {
  19658. width: 100%;
  19659. margin: 20px auto 0;
  19660. padding-bottom: 20px;
  19661. display: flex;
  19662. flex-direction: column;
  19663. flex-wrap: nowrap;
  19664. align-items: flex-start;
  19665. justify-content: flex-start;
  19666. }
  19667. .pb_left {
  19668. width: 20%;
  19669. margin-right: 10px;
  19670. background: rgb(255, 255, 255);
  19671. position: fixed;
  19672. height: calc(100% - 40px);
  19673. border-radius: 20px;
  19674. padding-bottom: 15px;
  19675. box-sizing: border-box;
  19676. }
  19677. .wheel > img,
  19678. .project > img,
  19679. .star > img,
  19680. .evaluate > img,
  19681. .up_photo > img,
  19682. .chapter_add > img,
  19683. .deleteWord > img,
  19684. .question > img,
  19685. .homework > img {
  19686. width: 100%;
  19687. height: 100%;
  19688. }
  19689. .upCover > img {
  19690. width: 131px;
  19691. height: 69px;
  19692. object-fit: cover;
  19693. }
  19694. .upCover {
  19695. width: calc(100% / 3.5);
  19696. position: relative;
  19697. margin: 0 15px 10px 0;
  19698. display: flex;
  19699. flex-direction: column;
  19700. flex-wrap: nowrap;
  19701. justify-content: center;
  19702. align-content: center;
  19703. align-items: center;
  19704. height: fit-content;
  19705. }
  19706. .upCover2 {
  19707. width: 100%;
  19708. position: relative;
  19709. margin: 0 15px 10px 0;
  19710. display: flex;
  19711. flex-direction: column;
  19712. flex-wrap: nowrap;
  19713. justify-content: center;
  19714. align-content: center;
  19715. align-items: center;
  19716. }
  19717. .upCover2 > img {
  19718. width: 100%;
  19719. height: 90px;
  19720. object-fit: contain;
  19721. }
  19722. .chapter_add {
  19723. width: 120px;
  19724. position: relative;
  19725. text-align: center;
  19726. }
  19727. .isAddThings {
  19728. margin-top: 20px;
  19729. position: relative;
  19730. text-align: center;
  19731. background: #f7f8fa;
  19732. height: 90px;
  19733. width: 90px;
  19734. display: flex;
  19735. flex-direction: column;
  19736. justify-content: center;
  19737. }
  19738. .deleteWord {
  19739. width: 22px;
  19740. height: 22px;
  19741. position: absolute;
  19742. right: -5px;
  19743. top: -5px;
  19744. cursor: pointer;
  19745. }
  19746. .box_course {
  19747. /* width: 60%; */
  19748. width: calc(100% - 300px);
  19749. }
  19750. .wheel {
  19751. width: 100%;
  19752. /* height: 100%; */
  19753. height: 650px;
  19754. }
  19755. .right_box {
  19756. display: flex;
  19757. flex-direction: column;
  19758. margin-left: 30px;
  19759. justify-content: space-around;
  19760. }
  19761. .right_box_title {
  19762. font-size: 23px;
  19763. }
  19764. .people {
  19765. display: flex;
  19766. }
  19767. .student_body {
  19768. width: 100%;
  19769. margin: 0 auto;
  19770. margin-top: 10px;
  19771. padding: 0 0 20px;
  19772. }
  19773. .study_top {
  19774. margin-top: 100px;
  19775. width: 100%;
  19776. height: auto;
  19777. padding-bottom: 20px;
  19778. }
  19779. .study_top .checkbox {
  19780. display: flex;
  19781. align-items: center;
  19782. padding: 15px 0 15px 30px;
  19783. flex: 0 0 auto;
  19784. font-weight: bold;
  19785. border-bottom: 1px solid #eee;
  19786. }
  19787. .study_top .check {
  19788. padding-bottom: 5px;
  19789. text-align: center;
  19790. cursor: pointer;
  19791. height: 30px;
  19792. box-sizing: border-box;
  19793. display: flex;
  19794. }
  19795. .study_top .checked {
  19796. border-bottom: 4px solid #3fc6a0;
  19797. padding-bottom: 5px;
  19798. color: #3fc6a0;
  19799. display: flex;
  19800. height: 35px;
  19801. }
  19802. .study_top .checked > div,
  19803. .study_top .check > div {
  19804. margin-right: 5px;
  19805. }
  19806. .videoTop {
  19807. display: flex;
  19808. flex-direction: row;
  19809. justify-content: space-between;
  19810. background: #fff;
  19811. align-items: center;
  19812. width: 95%;
  19813. padding: 20px;
  19814. }
  19815. .filebox {
  19816. display: flex;
  19817. flex-wrap: wrap;
  19818. flex-direction: column;
  19819. padding: 0 0 5px;
  19820. position: relative;
  19821. }
  19822. .filebox:before {
  19823. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  19824. position: absolute;
  19825. top: 20px;
  19826. left: 13px;
  19827. border-left: 2px dotted #cad1dc;
  19828. height: calc(100% - 15px);
  19829. }
  19830. .toolHeng2 > div:last-child::before {
  19831. height: calc(100% - 43px);
  19832. }
  19833. .filebox .tooldetail {
  19834. width: calc(100% - 280px);
  19835. margin: 0px 12px;
  19836. padding: 12px;
  19837. line-height: 30px;
  19838. word-break: break-word;
  19839. background: #ffffff;
  19840. border-radius: 8px 8px 8px 8px;
  19841. opacity: 1;
  19842. border: 1px solid #cad1dc;
  19843. overflow:hidden;
  19844. box-sizing:border-box;
  19845. }
  19846. .file {
  19847. display: flex;
  19848. flex-direction: column;
  19849. align-items: center;
  19850. justify-content: center;
  19851. cursor: pointer;
  19852. width: 200px;
  19853. }
  19854. .file div {
  19855. margin-top: 10px;
  19856. width: 150px;
  19857. text-align: center;
  19858. overflow: hidden;
  19859. white-space: nowrap;
  19860. text-overflow: ellipsis;
  19861. }
  19862. .media {
  19863. display: flex;
  19864. flex-direction: column;
  19865. align-items: center;
  19866. justify-content: center;
  19867. margin: 0 20px 20px 0;
  19868. cursor: pointer;
  19869. margin: 12px 0 5px 15px;
  19870. overflow: hidden;
  19871. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  19872. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  19873. box-sizing: border-box;
  19874. }
  19875. .media img {
  19876. height: 90px;
  19877. width: 160px;
  19878. object-fit: cover;
  19879. }
  19880. .media .title {
  19881. padding: 5px;
  19882. text-align: left;
  19883. width: 100%;
  19884. box-sizing: border-box;
  19885. }
  19886. .media .btn {
  19887. width: 100%;
  19888. height: 35px;
  19889. line-height: 35px;
  19890. color: #fff;
  19891. background: #606060;
  19892. text-align: center;
  19893. overflow: hidden;
  19894. white-space: nowrap;
  19895. text-overflow: ellipsis;
  19896. }
  19897. .detail_content_top {
  19898. width: 100%;
  19899. padding: 25px 0 25px 0;
  19900. }
  19901. .detail_title {
  19902. text-align: center;
  19903. font-size: 24px;
  19904. }
  19905. .detail_time {
  19906. font-size: 13px;
  19907. padding: 15px 0 0 40px;
  19908. }
  19909. .detail_content {
  19910. line-height: 2pc;
  19911. width: 90%;
  19912. margin: 0 auto;
  19913. padding-top: 30px;
  19914. text-indent: 30px;
  19915. overflow: auto;
  19916. height: 200px;
  19917. }
  19918. .score_box >>> .el-rate {
  19919. margin-left: 10px;
  19920. }
  19921. .dialog_change >>> .el-dialog {
  19922. border-radius: 5px;
  19923. }
  19924. .dialog_change >>> .el-dialog__header {
  19925. background: #f2f2f2;
  19926. text-align: center;
  19927. }
  19928. .dialog_change >>> .el-dialog__title {
  19929. line-height: 5px;
  19930. }
  19931. .dialog_change >>> .el-dialog__body {
  19932. background: #fff;
  19933. padding: 10px 20px;
  19934. }
  19935. .score_box {
  19936. display: flex;
  19937. align-items: center;
  19938. margin-bottom: 18px;
  19939. margin-top: 20px;
  19940. }
  19941. .up_photo {
  19942. width: 120px;
  19943. cursor: pointer;
  19944. margin-top: 10px;
  19945. }
  19946. .up_photo2 {
  19947. width: 180px;
  19948. box-sizing: border-box;
  19949. min-width: 180px;
  19950. height: 180px;
  19951. max-height: 180px;
  19952. min-height: 180px;
  19953. cursor: pointer;
  19954. display: flex;
  19955. flex-direction: column;
  19956. align-items: center;
  19957. justify-content: center;
  19958. background: rgb(242, 246, 255);
  19959. /* padding: 25px; */
  19960. margin-bottom: 10px;
  19961. }
  19962. .up_photo2 img {
  19963. width: 50%;
  19964. height: auto;
  19965. }
  19966. .up_photo2 span {
  19967. color: #898989;
  19968. }
  19969. .plworkBox {
  19970. display: flex;
  19971. align-items: center;
  19972. margin-top: 10px;
  19973. flex-wrap: wrap;
  19974. }
  19975. .upload_send {
  19976. margin: 30px auto 30px;
  19977. width: 60%;
  19978. background: #3681fc;
  19979. text-align: center;
  19980. height: 35px;
  19981. line-height: 35px;
  19982. color: #fff;
  19983. border-radius: 5px;
  19984. cursor: pointer;
  19985. }
  19986. .marginT {
  19987. margin-top: 20px;
  19988. }
  19989. .cd_content_steps {
  19990. display: flex;
  19991. width: 90%;
  19992. justify-content: space-around;
  19993. border-top: 1px solid #eeeeee;
  19994. }
  19995. .cd_steps_box {
  19996. display: flex;
  19997. justify-content: center;
  19998. align-items: center;
  19999. flex-direction: column;
  20000. cursor: pointer;
  20001. }
  20002. .first {
  20003. display: flex;
  20004. align-items: center;
  20005. margin: 15px 0 20px 0;
  20006. font-size: 20px;
  20007. }
  20008. .first > div:nth-child(2) {
  20009. font-size: 16px !important;
  20010. padding-left: 10px;
  20011. line-height: 26px;
  20012. box-sizing: border-box;
  20013. }
  20014. .blue_box_one {
  20015. text-align: center;
  20016. color: #fff;
  20017. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  20018. border-radius: 7px;
  20019. margin: 10px;
  20020. cursor: pointer;
  20021. width: 95%;
  20022. height: 45px;
  20023. display: flex;
  20024. flex-direction: row;
  20025. justify-content: flex-start;
  20026. align-items: center;
  20027. }
  20028. .blue_box_one > div:nth-child(1) {
  20029. line-height: 30px;
  20030. margin: 0 5px 0 10px;
  20031. width: 30%;
  20032. min-width: 70px;
  20033. border-radius: 4px;
  20034. }
  20035. .blue_box_one > div:nth-child(2) {
  20036. white-space: nowrap;
  20037. text-overflow: ellipsis;
  20038. overflow: hidden;
  20039. word-break: break-all;
  20040. width: 70%;
  20041. text-align: left;
  20042. margin-right: 10px;
  20043. max-width: calc(100% - 85px);
  20044. }
  20045. .blue_box_one > div:nth-child(2):hover {
  20046. overflow: hidden;
  20047. text-overflow: ellipsis;
  20048. white-space: nowrap;
  20049. cursor: pointer;
  20050. }
  20051. .upFile {
  20052. margin: 0 auto;
  20053. width: 120px;
  20054. background: #3681fc;
  20055. color: #fff;
  20056. height: 30px;
  20057. text-align: center;
  20058. line-height: 30px;
  20059. border-radius: 5px;
  20060. font-size: 14px;
  20061. cursor: pointer;
  20062. }
  20063. .courseTitle {
  20064. width: 85%;
  20065. margin: 10px auto 26px auto;
  20066. display: flex;
  20067. flex-direction: row;
  20068. align-items: center;
  20069. justify-content: space-between;
  20070. text-align: center;
  20071. }
  20072. .courseTitle .ctitle {
  20073. font-size: 20px;
  20074. font-weight: bold;
  20075. color: #0e1e33;
  20076. white-space: nowrap;
  20077. overflow: hidden;
  20078. text-overflow: ellipsis;
  20079. }
  20080. .inviteBox {
  20081. font-size: 14px;
  20082. /* margin-top: 5px; */
  20083. color: #00000099;
  20084. text-align: center;
  20085. }
  20086. .courseTitle >>> .el-tooltip {
  20087. width: 100%;
  20088. white-space: nowrap;
  20089. overflow: hidden;
  20090. text-overflow: ellipsis;
  20091. word-break: break-word;
  20092. }
  20093. .ml {
  20094. margin-left: 20px;
  20095. color: #5b7dba;
  20096. border-left: 3px solid #5b7dba;
  20097. padding-left: 5px;
  20098. font-weight: bold;
  20099. }
  20100. .return {
  20101. width: 2rem;
  20102. height: 2rem;
  20103. cursor: pointer;
  20104. }
  20105. .return > img {
  20106. width: 100%;
  20107. height: 100%;
  20108. }
  20109. .returnBtn {
  20110. width: 86px;
  20111. height: 36px;
  20112. background: #3681fc;
  20113. border-radius: 4px;
  20114. color: #fff;
  20115. text-align: center;
  20116. line-height: 36px;
  20117. margin-right: 20px;
  20118. cursor: pointer;
  20119. font-size: 14px;
  20120. font-weight: 400;
  20121. display: flex;
  20122. flex-direction: row;
  20123. flex-wrap: nowrap;
  20124. align-items: center;
  20125. justify-content: center;
  20126. }
  20127. .reBtnIcon,
  20128. .commentIcon,
  20129. .vedioIcon,
  20130. .vedioIcon1 {
  20131. /* width: 36px; */
  20132. height: 36px;
  20133. border-radius: 4px;
  20134. position: relative;
  20135. /* background: #e0eafb; */
  20136. background: #0061ff;
  20137. cursor: pointer;
  20138. margin-right: 12px;
  20139. display: flex;
  20140. align-items: center;
  20141. padding: 0 10px;
  20142. box-sizing: border-box;
  20143. font-size: 14px;
  20144. color: #fff;
  20145. }
  20146. .reBtnIcon::before,
  20147. .commentIcon::before,
  20148. .vedioIcon::before,
  20149. .vedioIcon1::before {
  20150. content: "";
  20151. display: block;
  20152. background-size: 100% 100%;
  20153. background-repeat: no-repeat;
  20154. width: 20px;
  20155. height: 20px;
  20156. margin-right: 5px;
  20157. /* position: absolute; */
  20158. /* top: 8px;
  20159. left: 8px; */
  20160. }
  20161. .vedioIcon1 {
  20162. background: #f63564;
  20163. }
  20164. .reBtnIcon::before {
  20165. background-image: url("../assets/icon/newIcons/refresh.png");
  20166. }
  20167. .commentIcon::before {
  20168. background-image: url("../assets/icon/newIcons/comment.png");
  20169. }
  20170. .vedioIcon::before {
  20171. background-image: url("../assets/icon/newIcons/transcribe.png");
  20172. }
  20173. .vedioIcon1::before {
  20174. /* background-image: url("../assets/icon/newIcons/istranscribe.png"); */
  20175. background-image: url("../assets/icon/newIcons/transcribe.png");
  20176. }
  20177. .tool {
  20178. display: flex;
  20179. flex-direction: column;
  20180. flex-wrap: nowrap;
  20181. width: 13%;
  20182. margin: 0 30px;
  20183. align-items: center;
  20184. position: relative;
  20185. padding: 10px 25px;
  20186. cursor: pointer;
  20187. }
  20188. .whiteBIcon {
  20189. width: 150px;
  20190. }
  20191. .whiteBIcon > img {
  20192. width: 100%;
  20193. height: 100%;
  20194. }
  20195. .mask {
  20196. background-color: rgba(0, 0, 0, 0);
  20197. position: fixed;
  20198. top: 0;
  20199. left: 0;
  20200. width: 100%;
  20201. height: 100%;
  20202. z-index: 20000;
  20203. display: flex;
  20204. align-items: center;
  20205. justify-content: center;
  20206. }
  20207. .progressBox {
  20208. width: 500px;
  20209. height: 180px;
  20210. background: #fff;
  20211. border-radius: 10px;
  20212. box-shadow: 0 0 6px 1px #bfbfbf;
  20213. display: flex;
  20214. align-items: center;
  20215. justify-content: center;
  20216. flex-direction: column;
  20217. position: relative;
  20218. color: #6c6c6c;
  20219. }
  20220. .progressBox >>> .el-progress-bar__outer {
  20221. background-color: #d1dfff !important;
  20222. }
  20223. .progressBox .lbox {
  20224. height: 50px;
  20225. font-size: 19px;
  20226. display: flex;
  20227. align-items: center;
  20228. color: #747474;
  20229. }
  20230. .progressBox .lbox img {
  20231. width: 40px;
  20232. margin-right: 20px;
  20233. }
  20234. .closeCss {
  20235. position: absolute;
  20236. top: 8px;
  20237. right: 8px;
  20238. cursor: pointer;
  20239. width: 20px;
  20240. height: 20px;
  20241. }
  20242. .closeCss > img {
  20243. width: 100%;
  20244. height: 100%;
  20245. }
  20246. .uploadVedio {
  20247. display: flex;
  20248. flex-direction: column;
  20249. flex-wrap: nowrap;
  20250. justify-content: center;
  20251. align-items: center;
  20252. margin: 0 15px 10px 0;
  20253. }
  20254. .uploadVedio > img {
  20255. width: 30px;
  20256. height: 30px;
  20257. }
  20258. .uploadVedio > span {
  20259. white-space: nowrap;
  20260. overflow: hidden;
  20261. text-overflow: ellipsis;
  20262. width: 75px;
  20263. margin-top: 7px;
  20264. }
  20265. .picName {
  20266. white-space: nowrap;
  20267. overflow: hidden;
  20268. text-overflow: ellipsis;
  20269. width: 75px;
  20270. margin-top: 7px;
  20271. }
  20272. .new_top {
  20273. display: flex;
  20274. background: #fff;
  20275. flex-direction: row;
  20276. justify-content: flex-start;
  20277. align-items: center;
  20278. height: 60px;
  20279. position: fixed;
  20280. top: 20px;
  20281. left: 22%;
  20282. width: 77%;
  20283. z-index: 999;
  20284. border-radius: 12px 12px 0 0;
  20285. border-bottom: 1px solid #cad1dc;
  20286. padding: 10px 0;
  20287. }
  20288. .new_topFixed {
  20289. width: 100%;
  20290. height: 40px;
  20291. position: fixed;
  20292. top: 0px;
  20293. display: block;
  20294. background: #f2f2f2;
  20295. z-index: 998;
  20296. }
  20297. .before {
  20298. position: absolute;
  20299. background: #c3dad4;
  20300. width: 6px;
  20301. height: 100%;
  20302. }
  20303. .courseIndex {
  20304. display: flex;
  20305. flex-direction: row;
  20306. align-items: center;
  20307. width: calc(100% - 745px);
  20308. }
  20309. .courseIndex > div:nth-child(1) {
  20310. margin: 0 0 0 10px;
  20311. font-size: 20px;
  20312. min-width: 100px;
  20313. font-weight: bold;
  20314. border-left: 4px solid #3363b9;
  20315. height: 32px;
  20316. text-align: center;
  20317. line-height: 35px;
  20318. }
  20319. .courseIndex > div:nth-child(2) {
  20320. font-size: 20px;
  20321. /* width: 300px; */
  20322. max-width: calc(100% - 105px);
  20323. white-space: nowrap;
  20324. overflow: hidden;
  20325. text-overflow: ellipsis;
  20326. }
  20327. .courseIndex > div:nth-child(3) {
  20328. border-bottom: 1px solid #d7d7d7;
  20329. padding-bottom: 5px;
  20330. background: #3681fc;
  20331. width: 55px;
  20332. min-width: 55px;
  20333. border-radius: 5px;
  20334. color: #fff;
  20335. text-align: center;
  20336. height: 20px;
  20337. line-height: 26px;
  20338. font-size: 14px;
  20339. margin: 0 0 0 10px;
  20340. }
  20341. .course_text {
  20342. padding: 20px 0 0 15px;
  20343. text-indent: 30px;
  20344. width: 80%;
  20345. min-height: 20px;
  20346. }
  20347. .vedioList {
  20348. background: #f2f2f2;
  20349. border: 1px solid #ececec;
  20350. /* width: 38.8%; */
  20351. /* width: 300px; */
  20352. width: 100%;
  20353. height: 445px;
  20354. border-radius: 10px;
  20355. overflow: hidden;
  20356. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  20357. }
  20358. .vedioNav {
  20359. margin: 10px 0 0 15px;
  20360. border-bottom: 1px solid #d7d7d7;
  20361. padding-bottom: 5px;
  20362. background: #3681fc;
  20363. width: 55px;
  20364. min-width: 55px;
  20365. border-radius: 5px;
  20366. color: #fff;
  20367. text-align: center;
  20368. height: 20px;
  20369. line-height: 26px;
  20370. font-size: 14px;
  20371. }
  20372. .queTop {
  20373. display: flex;
  20374. padding: 20px 0 20px 30px;
  20375. width: 100%;
  20376. flex-direction: row;
  20377. justify-content: flex-start;
  20378. align-items: center;
  20379. box-sizing: border-box;
  20380. }
  20381. .queTopTitle {
  20382. display: flex;
  20383. flex-direction: row;
  20384. flex-wrap: nowrap;
  20385. align-items: center;
  20386. font-weight: bold;
  20387. font-size: 20px;
  20388. color: rgb(14, 30, 51);
  20389. }
  20390. .queTopTitle::before {
  20391. content: "";
  20392. width: 2px;
  20393. height: 22px;
  20394. background: #3681fc;
  20395. border-radius: 3px;
  20396. display: block;
  20397. margin: 2px 6px 0 0;
  20398. }
  20399. .queTopRight {
  20400. display: flex;
  20401. flex-direction: row;
  20402. flex-wrap: nowrap;
  20403. align-items: center;
  20404. }
  20405. .queTopClose {
  20406. margin-right: 20px;
  20407. cursor: pointer;
  20408. position: relative;
  20409. display: flex;
  20410. }
  20411. .closeImg,
  20412. .openImg {
  20413. width: 25px;
  20414. height: 25px;
  20415. position: absolute;
  20416. left: -20px;
  20417. top: -1px;
  20418. }
  20419. .closeImg > img,
  20420. .openImg > img {
  20421. width: 100%;
  20422. height: 100%;
  20423. }
  20424. .question {
  20425. width: 40px;
  20426. margin-right: 10px;
  20427. margin-top: 7px;
  20428. }
  20429. .queTitle {
  20430. margin-left: 5px;
  20431. font-size: 25px;
  20432. display: flex;
  20433. align-items: center;
  20434. }
  20435. .addEditor {
  20436. width: 100px;
  20437. height: 30px;
  20438. background: #42cda6;
  20439. color: #fff;
  20440. border-radius: 5px;
  20441. text-align: center;
  20442. line-height: 30px;
  20443. box-shadow: 1px 3px 6px 1px #bfbfbf;
  20444. cursor: pointer;
  20445. }
  20446. /* .vedioName {
  20447. cursor: pointer;
  20448. margin: 0px 0px 10px 5px;
  20449. white-space: nowrap;
  20450. overflow: hidden;
  20451. text-overflow: ellipsis;
  20452. width: 100%;
  20453. } */
  20454. .vedioTime {
  20455. width: 35px;
  20456. position: absolute;
  20457. color: #fff;
  20458. bottom: 0px;
  20459. right: 0px;
  20460. text-align: center;
  20461. background: #46411f;
  20462. height: 20px;
  20463. font-size: 14px;
  20464. line-height: 20px;
  20465. }
  20466. .homework {
  20467. width: 200px;
  20468. display: flex;
  20469. flex-direction: column;
  20470. flex-wrap: nowrap;
  20471. align-items: center;
  20472. cursor: pointer;
  20473. }
  20474. .homebox {
  20475. display: flex;
  20476. flex-wrap: wrap;
  20477. flex-direction: row;
  20478. justify-content: flex-start;
  20479. align-items: center;
  20480. padding: 15px 0;
  20481. }
  20482. .isChooseActive {
  20483. color: #3681fc !important;
  20484. font-weight: bold !important;
  20485. }
  20486. .chooseWho {
  20487. display: flex;
  20488. width: 100%;
  20489. flex-direction: row;
  20490. flex-wrap: nowrap;
  20491. justify-content: flex-start;
  20492. padding-bottom: 10px;
  20493. }
  20494. .chooseWho > div {
  20495. cursor: pointer;
  20496. padding-bottom: 10px;
  20497. margin: 0 30px 0 0;
  20498. font-weight: 400;
  20499. color: #0e1e33;
  20500. }
  20501. .addPoint > div > img {
  20502. cursor: pointer;
  20503. width: 85px;
  20504. border-radius: 15px;
  20505. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  20506. }
  20507. .addPoint > div {
  20508. display: flex;
  20509. flex-direction: column;
  20510. flex-wrap: nowrap;
  20511. align-items: center;
  20512. }
  20513. .isBorder > div {
  20514. margin: 0 0 10px 0;
  20515. align-items: flex-start !important;
  20516. }
  20517. .noiframeBox {
  20518. display: flex;
  20519. flex-wrap: wrap;
  20520. }
  20521. .iframeBox iframe {
  20522. width: 100%;
  20523. height: 800px;
  20524. border: none;
  20525. margin-bottom: 20px;
  20526. border: 1px solid #ccc;
  20527. }
  20528. .upload_toolBtn {
  20529. background: #3681fc;
  20530. color: #fff;
  20531. width: 110px;
  20532. text-align: center;
  20533. height: 35px;
  20534. line-height: 35px;
  20535. font-size: 14px;
  20536. border-radius: 5px;
  20537. cursor: pointer;
  20538. position: absolute;
  20539. right: 10px;
  20540. bottom: 0;
  20541. }
  20542. .binfo_input,
  20543. .pj {
  20544. font: inherit;
  20545. color: currentColor;
  20546. width: 100%;
  20547. margin: 0;
  20548. padding: 15px 14px;
  20549. display: block;
  20550. min-width: 0;
  20551. outline: none;
  20552. box-sizing: content-box;
  20553. background: none;
  20554. -webkit-tap-highlight-color: transparent;
  20555. border: 1px solid rgba(0, 0, 0, 0.23);
  20556. border-radius: 4px;
  20557. box-sizing: border-box;
  20558. resize: none;
  20559. }
  20560. .binfo_input:focus-visible {
  20561. border: 1px solid rgba(61, 103, 188);
  20562. }
  20563. .dialog_diy >>> .el-dialog__header,
  20564. .dialog_diy1 >>> .el-dialog__header {
  20565. background: #454545 !important;
  20566. padding: 15px 20px;
  20567. }
  20568. .dialog_diy >>> .el-dialog__title,
  20569. .dialog_diy1 >>> .el-dialog__title {
  20570. color: #fff;
  20571. }
  20572. .dialog_diy >>> .el-dialog__headerbtn,
  20573. .dialog_diy1 >>> .el-dialog__headerbtn {
  20574. top: 19px;
  20575. }
  20576. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  20577. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  20578. color: #fff;
  20579. }
  20580. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  20581. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  20582. color: #fff;
  20583. }
  20584. .dialog_diy1 >>> .el-dialog__body {
  20585. padding: 0;
  20586. }
  20587. .dialog_diy >>> .el-dialog__body,
  20588. .dialog_diy >>> .el-dialog__footer,
  20589. .dialog_diy1 >>> .el-dialog__footer {
  20590. background: #fafafa;
  20591. }
  20592. .a_addBox {
  20593. padding: 0 0 0 15px;
  20594. }
  20595. .a_add_box {
  20596. padding: 10px;
  20597. background: #fff;
  20598. margin-bottom: 10px;
  20599. border-radius: 5px;
  20600. box-shadow: 0 0 5px 0 #d5d5d5;
  20601. }
  20602. .a_add_head {
  20603. display: flex;
  20604. align-items: flex-start;
  20605. /* justify-content: space-between; */
  20606. flex-direction: column;
  20607. /* flex-direction: row; */
  20608. margin: 10px 0 20px 0;
  20609. font-size: 18px;
  20610. width: 100%;
  20611. }
  20612. .askIndex {
  20613. background: #3681fc;
  20614. border-radius: 50%;
  20615. color: #fff;
  20616. width: 25px;
  20617. height: 25px;
  20618. min-width: 25px;
  20619. min-height: 25px;
  20620. text-align: center;
  20621. line-height: 25px;
  20622. margin-right: 5px;
  20623. }
  20624. .a_add_head .a_add_head_input {
  20625. width: 300px;
  20626. }
  20627. .a_add_head .a_add_head_div {
  20628. display: flex;
  20629. align-items: center;
  20630. justify-content: space-between;
  20631. }
  20632. .a_add_body {
  20633. display: flex;
  20634. align-items: center;
  20635. }
  20636. .a_add_input {
  20637. display: flex;
  20638. align-items: center;
  20639. flex-wrap: wrap;
  20640. width: 100%;
  20641. }
  20642. .a_add_input >>> .el-radio-group,
  20643. .a_add_input >>> .el-checkbox-group {
  20644. width: 100%;
  20645. }
  20646. .a_add_input >>> .el-radio,
  20647. .a_add_input >>> .el-checkbox {
  20648. display: flex;
  20649. flex-direction: row;
  20650. flex-wrap: nowrap;
  20651. align-items: center;
  20652. padding: 15px 0;
  20653. }
  20654. .a_add_input >>> .el-radio:not(:last-child),
  20655. .a_add_input >>> .el-checkbox:not(:last-child) {
  20656. width: 100%;
  20657. border-bottom: 1px solid #efefef;
  20658. }
  20659. .redioStyle >>> .el-radio__label {
  20660. font-size: 18px;
  20661. }
  20662. .redioStyle >>> .el-radio__label > span,
  20663. .redioStyle >>> .el-checkbox__label > span {
  20664. word-break: break-all;
  20665. white-space: normal;
  20666. }
  20667. .redioStyle >>> .el-checkbox__label {
  20668. font-size: 18px;
  20669. }
  20670. .toolHeng2 {
  20671. width: 100%;
  20672. padding-left: 37px;
  20673. box-sizing: border-box;
  20674. }
  20675. .workNav {
  20676. font-size: 20px;
  20677. font-weight: bold;
  20678. color: #0e1e33;
  20679. display: flex;
  20680. flex-direction: row;
  20681. flex-wrap: nowrap;
  20682. align-items: center;
  20683. padding: 15px 0 15px 0;
  20684. }
  20685. .workNav::before {
  20686. content: "";
  20687. width: 2px;
  20688. height: 22px;
  20689. background: #3681fc;
  20690. border-radius: 3px;
  20691. display: block;
  20692. margin: 2px 6px 0 0;
  20693. }
  20694. .toolHeng {
  20695. display: flex;
  20696. flex-direction: row;
  20697. flex-wrap: wrap;
  20698. justify-content: flex-start;
  20699. align-items: center;
  20700. width: 100%;
  20701. }
  20702. .toolHeng > div {
  20703. padding-left: 20px;
  20704. }
  20705. .isWidth {
  20706. width: 20%;
  20707. }
  20708. .textTitle {
  20709. display: flex;
  20710. flex-direction: row;
  20711. flex-wrap: nowrap;
  20712. align-items: center;
  20713. width: 95%;
  20714. }
  20715. .textTitle >>> .el-form-item__label {
  20716. font-size: 22px;
  20717. color: #918f8f;
  20718. width: 100px;
  20719. }
  20720. .textTitle >>> .el-form-item__content {
  20721. width: calc(100% - 100px);
  20722. }
  20723. .textCss >>> .el-dialog {
  20724. width: 800px !important;
  20725. height: 400px;
  20726. background: #fafafa;
  20727. }
  20728. .textCss >>> .el-dialog__body {
  20729. margin: 55px 8% 0 8%;
  20730. padding: 0 !important;
  20731. }
  20732. .textCss >>> .el-dialog__footer {
  20733. padding-top: 38px;
  20734. }
  20735. .toolsCss >>> .el-dialog__body {
  20736. padding: 20px;
  20737. }
  20738. .lineCss >>> .el-dialog__body {
  20739. display: flex;
  20740. flex-direction: row;
  20741. align-items: center;
  20742. justify-content: center;
  20743. }
  20744. .newNav {
  20745. display: flex;
  20746. flex-direction: row;
  20747. align-items: baseline;
  20748. justify-content: flex-start;
  20749. }
  20750. .navListItem {
  20751. width: calc(100% - 20px);
  20752. height: 50px;
  20753. margin: 0px auto 10px;
  20754. display: flex;
  20755. flex-direction: row;
  20756. flex-wrap: nowrap;
  20757. align-items: center;
  20758. justify-content: space-between;
  20759. background: #f0f4fa;
  20760. border-radius: 6px 6px 6px 6px;
  20761. }
  20762. .navText {
  20763. cursor: pointer;
  20764. white-space: nowrap;
  20765. overflow: hidden;
  20766. text-overflow: ellipsis;
  20767. width: 220px;
  20768. padding: 0 10px;
  20769. font-weight: 400;
  20770. color: #0e1e33;
  20771. }
  20772. .downIcon {
  20773. width: 20px;
  20774. min-width: 20px;
  20775. height: 20px;
  20776. margin-right: 15px;
  20777. cursor: pointer;
  20778. }
  20779. .downIcon > img {
  20780. width: 100%;
  20781. height: 100%;
  20782. }
  20783. .noVedio {
  20784. display: flex;
  20785. flex-direction: row;
  20786. justify-content: center;
  20787. align-content: center;
  20788. }
  20789. .noNavText {
  20790. cursor: pointer;
  20791. margin: 0px 0px 10px 5px;
  20792. width: 112px;
  20793. }
  20794. .listNoVedio {
  20795. margin: 0 0 0 30px;
  20796. width: 97%;
  20797. }
  20798. .video-player >>> .video-js {
  20799. height: 100%;
  20800. }
  20801. .hangVedioList {
  20802. width: 90% !important;
  20803. height: 150px !important;
  20804. margin: 20px 0 0 30px;
  20805. }
  20806. .hangVedio {
  20807. width: 100%;
  20808. height: 170px !important;
  20809. align-items: flex-start !important;
  20810. }
  20811. .hangHand {
  20812. height: 150px !important;
  20813. }
  20814. .twoChild {
  20815. width: 95%;
  20816. margin: 10px;
  20817. border-radius: 5px;
  20818. background: #f2f2f2;
  20819. display: flex;
  20820. flex-direction: column;
  20821. flex-wrap: nowrap;
  20822. justify-content: flex-start;
  20823. align-items: flex-start;
  20824. transition: all 0.5s;
  20825. overflow: hidden;
  20826. height: 0;
  20827. background: #e7f3ff;
  20828. }
  20829. .twoChild > div:nth-child(1) {
  20830. margin-top: 5px;
  20831. }
  20832. .navChild {
  20833. width: 100%;
  20834. cursor: pointer;
  20835. margin-bottom: 10px;
  20836. position: relative;
  20837. }
  20838. .navChild img {
  20839. position: absolute;
  20840. right: 11px;
  20841. width: 15px;
  20842. top: 50%;
  20843. transform: translateY(-50%);
  20844. }
  20845. .navActive,
  20846. .toolActive {
  20847. height: auto !important;
  20848. overflow: auto !important;
  20849. /* padding-bottom: 16px; */
  20850. }
  20851. .toolActive {
  20852. padding: 0;
  20853. }
  20854. .navTask {
  20855. display: flex;
  20856. flex-direction: row;
  20857. flex-wrap: nowrap;
  20858. align-items: center;
  20859. align-content: flex-start;
  20860. height: 40px;
  20861. justify-content: flex-start;
  20862. padding: 0 10px;
  20863. width: 100%;
  20864. box-sizing: border-box;
  20865. }
  20866. .navTaskname {
  20867. white-space: nowrap;
  20868. text-overflow: ellipsis;
  20869. overflow: hidden;
  20870. word-break: break-all;
  20871. padding-left: 5px;
  20872. }
  20873. .openTaskActive {
  20874. /* background-color: #e0eafb !important;
  20875. color: #0061ff; */
  20876. color:#fff;
  20877. background: rgb(55, 129, 252) !important;
  20878. }
  20879. .iframeName {
  20880. margin: 5px 0;
  20881. border-left: 4px solid #41c4a4;
  20882. padding-left: 4px;
  20883. }
  20884. .toolTitle {
  20885. margin: 0px 0px 20px;
  20886. font-size: 20px;
  20887. font-weight: 500;
  20888. border-left: 4px solid #41c4a4;
  20889. padding-left: 4px;
  20890. }
  20891. .cru_selectBox {
  20892. overflow: auto;
  20893. width: 95%;
  20894. margin: 17px auto 0;
  20895. height: calc(100% - 40px - 21px - 20px - 17px);
  20896. background: #fff;
  20897. border-radius: 8px;
  20898. }
  20899. .cru_selectBox::-webkit-scrollbar,
  20900. .study_top::-webkit-scrollbar,
  20901. .textContent::-webkit-scrollbar {
  20902. /*滚动条整体样式*/
  20903. width: 6px;
  20904. /*高宽分别对应横竖滚动条的尺寸*/
  20905. height: 6px;
  20906. }
  20907. /*定义滚动条轨道 内阴影+圆角*/
  20908. .cru_selectBox::-webkit-scrollbar-track,
  20909. .study_top::-webkit-scrollbar-track,
  20910. .textContent::-webkit-scrollbar {
  20911. border-radius: 10px;
  20912. background-color: #b8bdc9;
  20913. }
  20914. /*定义滑块 内阴影+圆角*/
  20915. .cru_selectBox::-webkit-scrollbar-thumb,
  20916. .study_top::-webkit-scrollbar-thumb,
  20917. .textContent::-webkit-scrollbar-thumb {
  20918. border-radius: 10px;
  20919. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  20920. background-color: #2c5ab3;
  20921. }
  20922. .vedioBox {
  20923. border-radius: 0 0 20px 20px;
  20924. background: #fff;
  20925. overflow: auto;
  20926. }
  20927. .taskBox {
  20928. width: 98%;
  20929. background: #f0f4fa;
  20930. margin: 10px auto;
  20931. padding: 0 10px;
  20932. border-radius: 4px;
  20933. box-sizing: border-box;
  20934. }
  20935. .vedioTaskBox {
  20936. width: 100%;
  20937. display: flex;
  20938. flex-direction: row;
  20939. flex-wrap: nowrap;
  20940. align-items: flex-start;
  20941. position: relative;
  20942. }
  20943. .toolBox {
  20944. margin: 15px 0 0 25px;
  20945. display: flex;
  20946. position: relative;
  20947. padding: 18px 20px;
  20948. border-top-left-radius: 5px;
  20949. border-top-right-radius: 5px;
  20950. width: 90%;
  20951. }
  20952. .btnAll {
  20953. position: absolute;
  20954. right: 0;
  20955. display: flex;
  20956. flex-direction: row;
  20957. flex-wrap: nowrap;
  20958. align-items: center;
  20959. }
  20960. .btnLeft,
  20961. .btnRight {
  20962. display: flex;
  20963. flex-direction: row;
  20964. flex-wrap: nowrap;
  20965. align-items: center;
  20966. padding: 5px 0;
  20967. }
  20968. .btnLeft {
  20969. border-right: 1px solid #cad1dc;
  20970. }
  20971. .btnLeft > .custom-tooltip {
  20972. background: #3681fc;
  20973. color: #fff;
  20974. }
  20975. .last:hover {
  20976. background: #3383fa !important;
  20977. color: #fff;
  20978. border: 1px solid #3383fa !important;
  20979. }
  20980. .last,
  20981. .returnBtn1 {
  20982. width: 90px;
  20983. height: 36px;
  20984. background: #ffffff;
  20985. border-radius: 4px;
  20986. border: 1px solid #0061ff;
  20987. color: #0061ff;
  20988. cursor: pointer;
  20989. display: flex;
  20990. flex-direction: row;
  20991. flex-wrap: nowrap;
  20992. align-items: center;
  20993. justify-content: center;
  20994. margin-left: 12px;
  20995. }
  20996. .returnBtn1 {
  20997. background: #f0f4fa;
  20998. border-radius: 4px;
  20999. border: 1px solid #cad1dc;
  21000. margin: 0 12px;
  21001. }
  21002. .lastImg {
  21003. min-width: 15px;
  21004. width: 15px;
  21005. height: 15px;
  21006. }
  21007. .lastText {
  21008. padding: 0 5px 2px 5px;
  21009. box-sizing: border-box;
  21010. font-size: 14px;
  21011. }
  21012. .lastImg > img {
  21013. width: 100%;
  21014. height: 100%;
  21015. }
  21016. /* .vedioTimeBox {
  21017. display: flex;
  21018. flex-direction: row;
  21019. align-items: center;
  21020. flex-wrap: nowrap;
  21021. position: relative;
  21022. } */
  21023. .navBox {
  21024. background: #fff;
  21025. height: calc(100% - 40px);
  21026. overflow-y: auto;
  21027. overflow-x: hidden;
  21028. }
  21029. .worksBox {
  21030. margin: 0 0 10px 25px;
  21031. border-bottom: 1px solid #eeeeee;
  21032. padding: 18px 20px;
  21033. border-radius: 4px;
  21034. width: 90%;
  21035. }
  21036. .worksBTitle {
  21037. font-size: 20px;
  21038. padding-bottom: 15px;
  21039. border-bottom: 1px solid #eeeeee;
  21040. display: flex;
  21041. align-items: center;
  21042. }
  21043. .greenBox {
  21044. width: 5px;
  21045. height: 30px;
  21046. background: #63b6fa;
  21047. margin-right: 5px;
  21048. }
  21049. .worksDetailBox {
  21050. display: flex;
  21051. width: 100%;
  21052. flex-direction: row;
  21053. flex-wrap: wrap;
  21054. align-items: flex-end;
  21055. justify-content: flex-start;
  21056. padding: 15px 5px;
  21057. box-sizing: border-box;
  21058. }
  21059. .works {
  21060. display: flex;
  21061. flex-direction: column;
  21062. flex-wrap: nowrap;
  21063. align-items: flex-start;
  21064. justify-content: flex-start;
  21065. align-content: center;
  21066. max-width: 240px;
  21067. width: calc(100% / 3 - 10px);
  21068. height: auto;
  21069. margin-right: 10px;
  21070. margin-bottom: 10px;
  21071. overflow: hidden;
  21072. height: 140px;
  21073. box-shadow: 0 0 6px 1px #dfdada;
  21074. border-radius: 15px;
  21075. }
  21076. .workImg {
  21077. width: 100%;
  21078. /* height: calc(100% - 40px); */
  21079. height: 105px;
  21080. position: relative;
  21081. }
  21082. .workImg > img {
  21083. width: 100%;
  21084. height: 100%;
  21085. object-fit: contain;
  21086. cursor: pointer;
  21087. }
  21088. .worksName {
  21089. height: 40px;
  21090. line-height: 40px;
  21091. display: flex;
  21092. width: 100%;
  21093. flex-direction: row;
  21094. flex-wrap: nowrap;
  21095. justify-content: space-between;
  21096. align-items: center;
  21097. margin: 0 0 0 10px;
  21098. }
  21099. .worksName > div:nth-child(1) {
  21100. width: 110px;
  21101. white-space: nowrap;
  21102. overflow: hidden;
  21103. text-overflow: ellipsis;
  21104. }
  21105. .worksName > div:nth-child(2) {
  21106. color: #b7b4b5;
  21107. }
  21108. .noWorksS {
  21109. padding: 15px 0;
  21110. display: flex;
  21111. flex-direction: row;
  21112. flex-wrap: wrap;
  21113. align-items: center;
  21114. justify-content: flex-start;
  21115. }
  21116. .noWorksName,
  21117. .isWorksName,
  21118. .isWorksName2 {
  21119. background: #ddebf8;
  21120. color: #000;
  21121. width: 90px;
  21122. height: 25px;
  21123. text-align: center;
  21124. line-height: 25px;
  21125. border-radius: 4px;
  21126. margin: 10px 15px 10px 0;
  21127. white-space: nowrap;
  21128. overflow: hidden;
  21129. padding: 5px;
  21130. text-overflow: ellipsis;
  21131. cursor: pointer;
  21132. border: 1px solid #ddebf8;
  21133. }
  21134. .noWorksName {
  21135. background: #fff;
  21136. color: #0061ff;
  21137. border: 1px solid #0061ff;
  21138. }
  21139. .isWorksName2 {
  21140. width: 100px;
  21141. height: 40px;
  21142. line-height: 40px;
  21143. position: relative;
  21144. background: #dae6f9;
  21145. }
  21146. .isWorksName {
  21147. background: #e7ebf1 !important;
  21148. width: 100px;
  21149. height: 40px;
  21150. line-height: 40px;
  21151. position: relative;
  21152. color: #acb4bf;
  21153. border: 1px solid #cad1dc !important;
  21154. }
  21155. .isSelectName,
  21156. .noWorksName:hover {
  21157. background: #3383fa !important;
  21158. color: #fff !important;
  21159. border: 1px solid #3383fa !important;
  21160. }
  21161. .title {
  21162. background: #1e5cc9;
  21163. /* width: 98%; */
  21164. height: 45px;
  21165. color: #fff;
  21166. line-height: 45px;
  21167. padding-left: 20px;
  21168. box-sizing: border-box;
  21169. }
  21170. .textBox {
  21171. font-size: 20px;
  21172. width: 90%;
  21173. display: flex;
  21174. flex-direction: column;
  21175. align-items: center;
  21176. margin: 20px auto 0;
  21177. max-height: calc(100% - 75px);
  21178. overflow: auto;
  21179. }
  21180. .textContent {
  21181. font-size: 18px;
  21182. width: 95%;
  21183. max-width: 95%;
  21184. }
  21185. .answerBg {
  21186. background: url("../assets/icon/answerBgNew.png") no-repeat;
  21187. background-size: 100% 100%;
  21188. width: 100%;
  21189. height: 100%;
  21190. color: #fff;
  21191. text-align: center;
  21192. display: flex;
  21193. flex-direction: column;
  21194. flex-wrap: nowrap;
  21195. align-items: center;
  21196. position: relative;
  21197. justify-content: center;
  21198. }
  21199. .answerBg > div:nth-child(1) {
  21200. /* font-size: 22px;
  21201. padding: 25px 0 10px; */
  21202. }
  21203. .answerContent {
  21204. width: 215px;
  21205. max-height: 60px;
  21206. word-break: break-all;
  21207. text-align: center;
  21208. /* white-space: nowrap; */
  21209. overflow: hidden;
  21210. text-overflow: ellipsis;
  21211. /* padding: 23px 0 0; */
  21212. -webkit-line-clamp: 3;
  21213. -webkit-box-orient: vertical;
  21214. display: -webkit-box;
  21215. font-size: 15px;
  21216. cursor: pointer;
  21217. }
  21218. .elist_input_box {
  21219. display: flex;
  21220. align-items: flex-start;
  21221. flex-wrap: nowrap;
  21222. padding: 10px 0 15px 30px;
  21223. flex-direction: column;
  21224. }
  21225. .elist_input {
  21226. /* width: 40%; */
  21227. width: 45%;
  21228. margin: 20px;
  21229. }
  21230. .elist_input .elist_input_box input {
  21231. font: inherit;
  21232. color: currentColor;
  21233. width: 200px;
  21234. padding: 8px 14px;
  21235. display: block;
  21236. min-width: 0;
  21237. outline: none;
  21238. border: 1px solid rgba(0, 0, 0, 0.23);
  21239. border-radius: 4px;
  21240. box-sizing: border-box;
  21241. background: #fff;
  21242. margin: 0 20px 0 0;
  21243. }
  21244. .elist_input .elist_input_box span {
  21245. height: 36px;
  21246. line-height: 36px;
  21247. color: rgb(82, 82, 82);
  21248. }
  21249. .elist_input .elist_input_box .remove {
  21250. height: 20px;
  21251. width: 20px;
  21252. background-size: 100% 100%;
  21253. background-position: unset;
  21254. margin-left: 5px;
  21255. }
  21256. .elist_input_box >>> .el-rate {
  21257. display: flex;
  21258. height: 36px;
  21259. align-items: center;
  21260. }
  21261. .elist_input_box .elist_inptu_text {
  21262. min-height: 50px;
  21263. /* width: 500px;
  21264. max-height: 150px; */
  21265. width: 100%;
  21266. line-height: 50px;
  21267. color: rgb(82, 82, 82);
  21268. overflow: auto;
  21269. text-indent: 5px;
  21270. background: #f7f6f9;
  21271. border-radius: 10px;
  21272. }
  21273. .elist_input_box .elist_inptu_text input {
  21274. width: 500px;
  21275. }
  21276. .elist_input_box >>> .el-rate__icon {
  21277. font-size: 24px;
  21278. }
  21279. .isClick {
  21280. background: #4d9def;
  21281. }
  21282. .bzBox {
  21283. display: flex;
  21284. flex-direction: row;
  21285. align-items: center;
  21286. }
  21287. .bzBox .yCss {
  21288. width: 7px;
  21289. height: 7px;
  21290. background: #fff;
  21291. margin: 0 16px 0 6px;
  21292. border-radius: 50%;
  21293. border: 5px solid #3681fc;
  21294. z-index: 99;
  21295. }
  21296. .bzBox > div:nth-child(2) {
  21297. font-size: 18px;
  21298. font-weight: bold;
  21299. color: #0e1e33;
  21300. }
  21301. .navTitile {
  21302. padding: 0 0px 0 15px;
  21303. font-size: 16px;
  21304. font-weight: bold;
  21305. color: #0e1e33;
  21306. height: 40px;
  21307. line-height: 40px;
  21308. }
  21309. .isTypeOne {
  21310. width: 240px;
  21311. height: 170px;
  21312. /* border: 1px solid #f8f8f8; */
  21313. border-radius: 10px;
  21314. box-shadow: 0 0 6px 1px #dfdada;
  21315. }
  21316. .e_add_top {
  21317. display: flex;
  21318. justify-content: space-between;
  21319. padding: 10px 20px;
  21320. border-radius: 3px;
  21321. background: #fff;
  21322. }
  21323. .e_add_title2 {
  21324. display: flex;
  21325. align-items: center;
  21326. }
  21327. .e_add_title2 span {
  21328. width: 40px;
  21329. }
  21330. .e_add_title {
  21331. display: flex;
  21332. align-items: center;
  21333. color: #b8b8b8;
  21334. font-size: 18px;
  21335. position: relative;
  21336. height: 40px;
  21337. width: 100%;
  21338. }
  21339. .e_add_title span {
  21340. margin-right: 10px;
  21341. }
  21342. .e_add_title .el_input {
  21343. width: 300px;
  21344. }
  21345. .e_add_title >>> .el-input__inner {
  21346. width: 400px;
  21347. }
  21348. .e_add_btn {
  21349. }
  21350. .e_add_content {
  21351. display: flex;
  21352. width: 100%;
  21353. max-width: 650px;
  21354. height: 550px;
  21355. }
  21356. .e_add_list {
  21357. background: #fff;
  21358. height: 500px;
  21359. width: 210px;
  21360. position: relative;
  21361. margin: 15px 5px 0 0;
  21362. flex-shrink: 0;
  21363. display: flex;
  21364. flex-direction: column;
  21365. }
  21366. .e_add_list_title {
  21367. font-size: 20px;
  21368. width: 100%;
  21369. box-sizing: border-box;
  21370. padding: 15px 40px;
  21371. text-align: center;
  21372. border-bottom: 1px solid #eaeaea;
  21373. position: relative;
  21374. display: flex;
  21375. align-items: center;
  21376. justify-content: center;
  21377. height: 57px;
  21378. background: #f6f6f6;
  21379. }
  21380. .e_add_list_title span {
  21381. overflow: hidden;
  21382. white-space: nowrap;
  21383. text-overflow: ellipsis;
  21384. }
  21385. .e_add_list_title img {
  21386. position: absolute;
  21387. right: 15px;
  21388. width: 25px;
  21389. cursor: pointer;
  21390. top: 50%;
  21391. transform: translateY(-50%);
  21392. }
  21393. .e_add_list_body {
  21394. height: calc(100% - 187px);
  21395. overflow: auto;
  21396. }
  21397. .e_add_list_child {
  21398. width: 100%;
  21399. display: flex;
  21400. align-items: center;
  21401. justify-content: center;
  21402. position: relative;
  21403. box-sizing: border-box;
  21404. padding: 15px 40px;
  21405. text-align: center;
  21406. }
  21407. .e_add_list_child span {
  21408. overflow: hidden;
  21409. white-space: nowrap;
  21410. text-overflow: ellipsis;
  21411. cursor: pointer;
  21412. }
  21413. .e_add_list_child img {
  21414. position: absolute;
  21415. right: 10px;
  21416. width: 21px;
  21417. cursor: pointer;
  21418. top: 50%;
  21419. transform: translateY(-50%);
  21420. }
  21421. .e_add_list_child + .e_add_list_child {
  21422. border-top: 1px solid #eaeaea;
  21423. }
  21424. .e_add_list_child .active {
  21425. color: #409eff;
  21426. }
  21427. .e_add_list_btn {
  21428. position: absolute;
  21429. bottom: 0;
  21430. height: 50px;
  21431. background: rgb(120, 120, 254);
  21432. width: 100%;
  21433. color: #fff;
  21434. font-size: 16px;
  21435. text-align: center;
  21436. line-height: 50px;
  21437. cursor: pointer;
  21438. }
  21439. .e_add_list_detail {
  21440. position: absolute;
  21441. bottom: 0;
  21442. height: 130px;
  21443. background: rgb(120, 120, 254);
  21444. width: 100%;
  21445. color: #fff;
  21446. font-size: 16px;
  21447. display: flex;
  21448. align-items: center;
  21449. justify-content: center;
  21450. }
  21451. .e_add_list_detail textarea {
  21452. height: 90%;
  21453. width: 95%;
  21454. border: none;
  21455. resize: none;
  21456. outline: none;
  21457. padding: 5px;
  21458. box-sizing: border-box;
  21459. }
  21460. .e_add_list_pbox {
  21461. width: 100%;
  21462. max-width: 650px;
  21463. /* height: 600px; */
  21464. }
  21465. .e_add_list_pbox_title {
  21466. height: 50px;
  21467. background: #fff;
  21468. display: flex;
  21469. align-items: center;
  21470. width: 100%;
  21471. box-sizing: border-box;
  21472. padding: 0 20px;
  21473. }
  21474. .type_title {
  21475. font-size: 18px;
  21476. font-weight: 700;
  21477. }
  21478. .type_content {
  21479. font-size: 16px;
  21480. /* margin-left: 30px; */
  21481. }
  21482. .type_content span + span {
  21483. margin-left: 20px;
  21484. }
  21485. .type_content span {
  21486. cursor: pointer;
  21487. padding-bottom: 5px;
  21488. box-sizing: border-box;
  21489. }
  21490. .type_content .active {
  21491. color: #409eff;
  21492. border-bottom: 2px solid #409eff;
  21493. }
  21494. .e_add_list_pbox_content {
  21495. height: calc(100% - 50px);
  21496. display: flex;
  21497. align-items: center;
  21498. width: 100%;
  21499. background: #fff;
  21500. }
  21501. .evaCss {
  21502. display: flex;
  21503. flex-direction: row;
  21504. flex-wrap: nowrap;
  21505. align-items: flex-start;
  21506. padding: 0 0 20px;
  21507. }
  21508. .cru_line {
  21509. position: absolute;
  21510. bottom: 0px;
  21511. transition: all 0.5s;
  21512. left: 0px;
  21513. width: 125px;
  21514. margin-left: -25px;
  21515. }
  21516. .isNoMessage {
  21517. width: 20%;
  21518. margin: 25% auto 0;
  21519. }
  21520. .isNoMessage > img {
  21521. width: 100%;
  21522. height: 100%;
  21523. }
  21524. .fullStyle >>> .el-dialog__body {
  21525. height: 100% !important;
  21526. }
  21527. .fullStyle >>> .el-dialog,
  21528. .fullStyle {
  21529. width: 100% !important;
  21530. max-width: 100% !important;
  21531. height: 100% !important;
  21532. margin: 0 !important;
  21533. }
  21534. .full_diy >>> .el-dialog {
  21535. margin: 0 !important;
  21536. height: 100%;
  21537. padding: 4px;
  21538. }
  21539. .full_diy >>> .el-dialog__body {
  21540. height: calc(100% - 100px);
  21541. }
  21542. .full_diy2 >>> .el-dialog__body {
  21543. height: calc(100% - 50px);
  21544. padding: 0;
  21545. }
  21546. .switchCss {
  21547. /* width: 100%; */
  21548. display: flex;
  21549. flex-direction: row;
  21550. flex-wrap: nowrap;
  21551. align-items: center;
  21552. /* justify-content: center; */
  21553. }
  21554. .isClickNav {
  21555. /* color: #499eef; */
  21556. color: #000;
  21557. }
  21558. .commentImg {
  21559. width: 25px;
  21560. height: 25px;
  21561. cursor: pointer;
  21562. }
  21563. .commentImg > img {
  21564. width: 100%;
  21565. height: 100%;
  21566. }
  21567. .comment {
  21568. background: #f9f9f9;
  21569. border-radius: 0 0 4px 4px;
  21570. display: flex;
  21571. flex-direction: row;
  21572. flex-wrap: nowrap;
  21573. align-items: center;
  21574. justify-content: flex-end;
  21575. height: 35px;
  21576. }
  21577. .commentList {
  21578. display: flex;
  21579. flex-direction: row;
  21580. flex-wrap: nowrap;
  21581. align-items: center;
  21582. justify-content: center;
  21583. align-content: center;
  21584. /* margin-left: 15px; */
  21585. /* margin-left: 8px; */
  21586. }
  21587. .scoreImg {
  21588. width: 17px;
  21589. height: 17px;
  21590. }
  21591. .studentDetail {
  21592. display: flex;
  21593. flex-direction: row;
  21594. flex-wrap: nowrap;
  21595. /* align-items: center; */
  21596. align-items: flex-start;
  21597. }
  21598. .tx {
  21599. width: 50px;
  21600. }
  21601. .tx > img {
  21602. width: 100%;
  21603. height: 100%;
  21604. }
  21605. .nameAndTime {
  21606. display: flex;
  21607. flex-direction: column;
  21608. flex-wrap: nowrap;
  21609. align-items: flex-start;
  21610. margin-left: 10px;
  21611. }
  21612. .worksAnswer {
  21613. color: #4078dd;
  21614. margin: 10px 0;
  21615. font-size: 16px;
  21616. position: relative;
  21617. }
  21618. .worksAnswer > img {
  21619. width: 500px;
  21620. height: 300px;
  21621. object-fit: contain;
  21622. margin: 0 auto;
  21623. display: block;
  21624. }
  21625. .commentTop {
  21626. border-bottom: 1px solid #eaeaea;
  21627. padding-bottom: 10px;
  21628. }
  21629. .commentBox {
  21630. padding-top: 15px;
  21631. }
  21632. .pl {
  21633. font-size: 18px;
  21634. }
  21635. .plPerson {
  21636. width: 100%;
  21637. }
  21638. .plName {
  21639. display: flex;
  21640. flex-direction: row;
  21641. flex-wrap: nowrap;
  21642. align-items: baseline;
  21643. color: #78787a;
  21644. width: 100%;
  21645. }
  21646. .deleteComment {
  21647. cursor: pointer;
  21648. margin-left: auto;
  21649. color: #237ade;
  21650. }
  21651. .plContent {
  21652. margin-top: 5px;
  21653. }
  21654. .evalCss {
  21655. background: #fff;
  21656. font-size: 18px;
  21657. }
  21658. .nav {
  21659. color: #9d9d9d;
  21660. padding: 5px 0 15px 20px;
  21661. }
  21662. .middleBox {
  21663. padding: 5px 0 15px 20px;
  21664. }
  21665. .pfBox {
  21666. padding-bottom: 30px;
  21667. }
  21668. .nameAndrate {
  21669. display: flex;
  21670. flex-direction: row;
  21671. flex-wrap: nowrap;
  21672. align-items: center;
  21673. padding-bottom: 10px;
  21674. height: 30px;
  21675. line-height: 30px;
  21676. }
  21677. .nameAndrate > div {
  21678. margin-left: 10px;
  21679. color: #000;
  21680. height: 30px;
  21681. }
  21682. .nameAndrate >>> .el-rate__icon {
  21683. font-size: 28px !important;
  21684. }
  21685. .pfBox > div:nth-child(2) {
  21686. background: #f7f6f9;
  21687. width: 400px;
  21688. min-height: 45px;
  21689. border-radius: 10px;
  21690. font-size: 16px;
  21691. display: flex;
  21692. flex-wrap: wrap;
  21693. align-items: center;
  21694. padding: 10px 20px;
  21695. box-sizing: border-box;
  21696. color: #000;
  21697. }
  21698. .bz {
  21699. display: flex;
  21700. flex-direction: row;
  21701. flex-wrap: nowrap;
  21702. align-items: flex-start;
  21703. }
  21704. .bz > div {
  21705. padding: 0 10px;
  21706. }
  21707. .select_box2_title {
  21708. background: #fff;
  21709. border-radius: 5px;
  21710. padding: 15px 10px;
  21711. box-sizing: border-box;
  21712. margin-bottom: 10px;
  21713. display: flex;
  21714. flex-direction: row;
  21715. flex-wrap: nowrap;
  21716. align-items: center;
  21717. }
  21718. .select_box2_title > div:nth-child(2) {
  21719. margin-left: 10px;
  21720. color: #c4c4c4;
  21721. }
  21722. .select_box2_box {
  21723. display: flex;
  21724. height: 500px;
  21725. }
  21726. .select_box2_img {
  21727. width: calc(100% - 310px);
  21728. height: 100%;
  21729. overflow: auto;
  21730. background: #fff;
  21731. border-radius: 5px;
  21732. }
  21733. .select_box2_img img {
  21734. width: 100%;
  21735. }
  21736. .select_box2_answer {
  21737. background: #fff;
  21738. margin-left: 10px;
  21739. border-radius: 5px;
  21740. width: 300px;
  21741. overflow: auto;
  21742. height: 90%;
  21743. display: flex;
  21744. flex-direction: column;
  21745. align-items: flex-start;
  21746. padding-top: 10px;
  21747. box-sizing: border-box;
  21748. position: relative;
  21749. }
  21750. .select_answer_title {
  21751. padding: 0 0 15px 20px;
  21752. color: #c4c4c4;
  21753. }
  21754. .select_box2_answer_box {
  21755. margin: 0 0 10px 20px;
  21756. width: 85%;
  21757. display: flex;
  21758. flex-direction: row;
  21759. flex-wrap: nowrap;
  21760. align-items: center;
  21761. }
  21762. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  21763. color: #000;
  21764. }
  21765. .upAnswerCss {
  21766. position: absolute;
  21767. bottom: 15px;
  21768. right: 15px;
  21769. }
  21770. .upAnswerCss >>> .el-button {
  21771. width: 95px;
  21772. height: 35px;
  21773. line-height: 35px;
  21774. padding: 0;
  21775. }
  21776. .rightWidthCss {
  21777. width: 60%;
  21778. display: flex;
  21779. flex-direction: row;
  21780. align-items: flex-start;
  21781. }
  21782. .rightAnswer {
  21783. display: flex;
  21784. flex-direction: row;
  21785. flex-wrap: nowrap;
  21786. align-items: center;
  21787. color: red;
  21788. margin-bottom: 31px;
  21789. }
  21790. .rightAnswerCss {
  21791. display: flex;
  21792. flex-direction: column;
  21793. flex-wrap: nowrap;
  21794. padding-top: 60px;
  21795. }
  21796. .blueCss {
  21797. color: #767de1;
  21798. margin-left: 10px;
  21799. }
  21800. .redCss {
  21801. color: red;
  21802. }
  21803. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  21804. color: rgb(0 123 255) !important;
  21805. }
  21806. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  21807. color: rgb(0 123 255) !important;
  21808. }
  21809. .zuoyeYulan {
  21810. padding-top: 0;
  21811. font-size: 18px;
  21812. display: flex;
  21813. align-items: flex-end;
  21814. }
  21815. .buttonA {
  21816. margin-left: 10px;
  21817. padding: 0;
  21818. }
  21819. .displayBox {
  21820. margin-bottom: 10px;
  21821. display: block;
  21822. border-bottom: 3px solid #eee;
  21823. display: flex;
  21824. align-items: center;
  21825. }
  21826. .easy_comment {
  21827. width: calc(100% - 90px);
  21828. margin-left: 10px;
  21829. display: flex;
  21830. flex-wrap: wrap;
  21831. }
  21832. .easy_comment > div {
  21833. border: 1px solid #4a4a4a;
  21834. color: #666;
  21835. border-radius: 15px;
  21836. padding: 5px 10px;
  21837. font-size: 16px;
  21838. margin-bottom: 10px;
  21839. margin-right: 5px;
  21840. cursor: pointer;
  21841. }
  21842. .easy_comment div:hover {
  21843. border: 1px solid #f7ba2a;
  21844. color: #c69217;
  21845. }
  21846. .xuan_right_box {
  21847. padding: 10px 0;
  21848. background: #f0f4fa;
  21849. margin: 0 15px 0 25px;
  21850. border-bottom-left-radius: 5px;
  21851. border-bottom-right-radius: 5px;
  21852. width: 91.5%;
  21853. }
  21854. .tool_right_box {
  21855. display: flex;
  21856. align-items: center;
  21857. }
  21858. .tool_right_box + .tool_right_box {
  21859. margin-top: 10px;
  21860. }
  21861. .right_box_xuan {
  21862. border-radius: 5px;
  21863. padding: 5px;
  21864. margin-left: 10px;
  21865. min-width: 85px;
  21866. background: #fff;
  21867. color: #0061ff;
  21868. border: 1px solid #0061ff;
  21869. font-size: 14px;
  21870. }
  21871. .pButton:hover {
  21872. opacity: 1 !important;
  21873. }
  21874. .pButton {
  21875. position: fixed;
  21876. text-align: center;
  21877. cursor: pointer;
  21878. z-index: 999;
  21879. right: 20px;
  21880. top: 110px;
  21881. width: 50px;
  21882. height: 50px;
  21883. display: flex;
  21884. align-items: center;
  21885. justify-content: center;
  21886. border-radius: 5px;
  21887. }
  21888. .pzClass {
  21889. width: calc(100% - 340px);
  21890. }
  21891. .newDialogCss {
  21892. /* position: fixed;
  21893. right: 5%;
  21894. top: 50%;
  21895. width: 340px;
  21896. transform: translateY(-50%);
  21897. height: 60%;
  21898. box-shadow: 0px 0 8px 0px #555555;
  21899. border-radius: 15px;
  21900. z-index: 999; */
  21901. position: fixed;
  21902. right: 20px;
  21903. top: 101px;
  21904. width: 330px;
  21905. height: calc(100% - 80px);
  21906. z-index: 999;
  21907. background: #fff;
  21908. border-top-right-radius: 0px;
  21909. border-bottom-right-radius: 0px;
  21910. overflow: hidden;
  21911. }
  21912. .pzTop {
  21913. color: #fff;
  21914. background: #000;
  21915. display: flex;
  21916. flex-direction: row;
  21917. flex-wrap: nowrap;
  21918. align-items: center;
  21919. justify-content: space-between;
  21920. height: 40px;
  21921. border-radius: 15px 15px 0 0;
  21922. user-select: none;
  21923. }
  21924. .pzTop2 .checkbox {
  21925. display: flex;
  21926. align-items: center;
  21927. padding: 5px 30px;
  21928. flex: 0 0 auto;
  21929. font-weight: bold;
  21930. border-bottom: 1px solid #eee;
  21931. justify-content: space-between;
  21932. }
  21933. .pzTop2 .check {
  21934. text-align: center;
  21935. cursor: pointer;
  21936. box-sizing: border-box;
  21937. display: flex;
  21938. }
  21939. .pzTop2 img {
  21940. width: 25px;
  21941. cursor: pointer;
  21942. }
  21943. .pzTop > div:nth-child(1) {
  21944. padding-left: 10px;
  21945. }
  21946. .pzTop > div:nth-child(2) {
  21947. width: 15px;
  21948. height: 15px;
  21949. padding-right: 10px;
  21950. cursor: pointer;
  21951. }
  21952. .pzTop > div:nth-child(2) > img {
  21953. width: 100%;
  21954. height: 100%;
  21955. }
  21956. .pzBox,
  21957. .noPzBox {
  21958. height: calc(100% - 60px);
  21959. /* background: #ededed; */
  21960. background: #fff;
  21961. /* border-radius: 0 0 15px 15px; */
  21962. }
  21963. .noPzBox {
  21964. display: flex;
  21965. flex-direction: column;
  21966. flex-wrap: nowrap;
  21967. justify-content: center;
  21968. align-items: center;
  21969. }
  21970. .pzList {
  21971. background: #f7f7f7;
  21972. width: 90%;
  21973. margin: 0 auto 15px;
  21974. border-radius: 5px;
  21975. }
  21976. .pzNavTop {
  21977. display: flex;
  21978. flex-direction: row;
  21979. flex-wrap: nowrap;
  21980. padding: 10px 10px 0 10px;
  21981. align-items: center;
  21982. }
  21983. .pzDelete {
  21984. cursor: pointer;
  21985. margin-left: auto;
  21986. font-size: 14px;
  21987. color: #afafaf;
  21988. }
  21989. .pzNavTop > div:nth-child(1) {
  21990. background: #3760af;
  21991. width: 35px;
  21992. height: 35px;
  21993. color: #fff;
  21994. text-align: center;
  21995. line-height: 35px;
  21996. border-radius: 50%;
  21997. font-size: 14px;
  21998. }
  21999. .pzNavTop > div:nth-child(2) {
  22000. font-size: 18px;
  22001. color: #959595;
  22002. margin-left: 5px;
  22003. }
  22004. .pzContent {
  22005. padding: 10px;
  22006. word-break: break-word;
  22007. }
  22008. .pzContent audio {
  22009. width: 100%;
  22010. }
  22011. .pzContent audio::-webkit-media-controls-panel {
  22012. background: #fff;
  22013. }
  22014. .pzContent >>> img {
  22015. max-width: 100%;
  22016. }
  22017. .pzListBox {
  22018. padding-top: 15px;
  22019. height: calc(100% - 110px);
  22020. overflow: auto;
  22021. }
  22022. .addPzButton {
  22023. position: relative;
  22024. margin-top: 3px;
  22025. width: 100%;
  22026. }
  22027. .addPzButton .img1 {
  22028. position: absolute;
  22029. top: 50%;
  22030. right: 25px;
  22031. transform: translateY(-50%);
  22032. height: 100%;
  22033. display: flex;
  22034. align-items: center;
  22035. }
  22036. .addPzButton .img1 div {
  22037. display: flex;
  22038. }
  22039. .addPzButton .img1 div img {
  22040. width: 28px;
  22041. margin-left: 10px;
  22042. cursor: pointer;
  22043. }
  22044. .addPzButton .img1 div span {
  22045. font-size: 14px;
  22046. margin: 4px 0 0 3px;
  22047. color: #afafaf;
  22048. }
  22049. .addPz {
  22050. background: #4b79ce;
  22051. width: 100px;
  22052. color: #fff;
  22053. font-size: 12px;
  22054. height: 30px;
  22055. margin: 0 auto;
  22056. text-align: center;
  22057. line-height: 30px;
  22058. border-radius: 10px;
  22059. cursor: pointer;
  22060. }
  22061. .addDialogCss {
  22062. position: fixed;
  22063. width: 600px;
  22064. height: 70%;
  22065. min-height: 450px;
  22066. box-shadow: 0px 0 8px 0px #555555;
  22067. border-radius: 15px;
  22068. z-index: 999;
  22069. left: 50%;
  22070. top: 50%;
  22071. margin: -18% 0 0 -300px;
  22072. }
  22073. .teacherPz {
  22074. display: flex;
  22075. flex-direction: row;
  22076. align-items: center;
  22077. flex-wrap: nowrap;
  22078. }
  22079. .teacherPzImg {
  22080. width: 30px;
  22081. height: 30px;
  22082. }
  22083. .teacherPzImg > img {
  22084. width: 100%;
  22085. height: 100%;
  22086. }
  22087. .addPzBox {
  22088. height: calc(100% - 40px);
  22089. background: #ededed;
  22090. border-bottom-left-radius: 15px;
  22091. border-bottom-right-radius: 15px;
  22092. }
  22093. .pzAudioClass {
  22094. margin: 15px 14px;
  22095. background: #fff;
  22096. height: 100%;
  22097. display: flex;
  22098. justify-content: center;
  22099. align-items: center;
  22100. }
  22101. .pzConText {
  22102. width: 95%;
  22103. height: 100%;
  22104. margin: 10px auto 0;
  22105. border: none;
  22106. background: #fff;
  22107. border-radius: 0px;
  22108. }
  22109. .pzConText >>> .text {
  22110. height: calc(100% - 82px);
  22111. }
  22112. .addTextCss {
  22113. background: #4b79ce;
  22114. width: 80px;
  22115. height: 30px;
  22116. text-align: center;
  22117. color: #fff;
  22118. line-height: 30px;
  22119. border-radius: 10px;
  22120. margin: 10px auto 0;
  22121. cursor: pointer;
  22122. }
  22123. .pzConText:focus-visible {
  22124. border: none !important;
  22125. }
  22126. .maxWidth {
  22127. width: 1000px;
  22128. }
  22129. .noPz {
  22130. width: 150px;
  22131. margin: 0 auto 20%;
  22132. }
  22133. .noPz > img {
  22134. width: 100%;
  22135. height: 100%;
  22136. }
  22137. .timeAndReply {
  22138. display: flex;
  22139. flex-direction: row;
  22140. flex-wrap: nowrap;
  22141. justify-content: space-between;
  22142. align-items: center;
  22143. font-size: 14px;
  22144. box-sizing: border-box;
  22145. padding: 0 10px 10px 0px;
  22146. }
  22147. .timeAndReply .time {
  22148. color: #bfbfbf;
  22149. padding: 0 0 0 10px;
  22150. box-sizing: border-box;
  22151. }
  22152. .timeAndReply > div:last-child {
  22153. cursor: pointer;
  22154. color: #777;
  22155. }
  22156. /* table 样式 */
  22157. .cont >>> table {
  22158. border-top: 1px solid #ccc;
  22159. border-left: 1px solid #ccc;
  22160. }
  22161. .cont >>> table td,
  22162. .cont >>> table th {
  22163. border-bottom: 1px solid #ccc;
  22164. border-right: 1px solid #ccc;
  22165. /* padding: 20px 5px; */
  22166. padding: 5px 10px;
  22167. max-width: 0px;
  22168. height: 30px;
  22169. vertical-align: baseline;
  22170. box-sizing: border-box;
  22171. }
  22172. .cont >>> table th {
  22173. border-bottom: 2px solid #ccc;
  22174. text-align: center;
  22175. }
  22176. /* blockquote 样式 */
  22177. .cont >>> blockquote {
  22178. display: block;
  22179. border-left: 8px solid #d0e5f2;
  22180. padding: 5px 10px;
  22181. margin: 10px 0;
  22182. line-height: 1.4;
  22183. font-size: 100%;
  22184. background-color: #f1f1f1;
  22185. }
  22186. /* code 样式 */
  22187. .cont >>> code {
  22188. display: inline-block;
  22189. /* *display: inline; */
  22190. zoom: 1;
  22191. background-color: #f1f1f1;
  22192. border-radius: 3px;
  22193. padding: 3px 5px;
  22194. margin: 0 3px;
  22195. }
  22196. .cont >>> pre code {
  22197. display: block;
  22198. }
  22199. /* ul ol 样式 */
  22200. .cont >>> ul,
  22201. ol {
  22202. margin: 10px 0 10px 20px;
  22203. }
  22204. .addPzCheck {
  22205. display: flex;
  22206. flex-direction: row;
  22207. flex-wrap: nowrap;
  22208. padding: 10px 15px 0;
  22209. }
  22210. .addPzCheck span {
  22211. cursor: pointer;
  22212. padding-bottom: 5px;
  22213. font-weight: bold;
  22214. }
  22215. .addPzCheck span + span {
  22216. margin-left: 10px;
  22217. }
  22218. .addPzCheck .isChooseActive {
  22219. color: #3e88f4;
  22220. border-bottom: 2px solid #2f80f3;
  22221. }
  22222. /* code 样式 */
  22223. .cont {
  22224. /* -webkit-user-modify: read-write; */
  22225. overflow-wrap: break-word;
  22226. -webkit-line-break: after-white-space;
  22227. }
  22228. .scoreBox,
  22229. .scoreDetailBox {
  22230. display: flex;
  22231. align-items: center;
  22232. justify-content: flex-start;
  22233. margin-top: 20px;
  22234. font-size: 18px;
  22235. width: 100%;
  22236. }
  22237. .scoreBox .t,
  22238. .scoreDetailBox .t {
  22239. margin-right: 10px;
  22240. width: 100px;
  22241. text-align: right;
  22242. }
  22243. .scoreDetailBox {
  22244. align-items: flex-start;
  22245. }
  22246. .scoreDetailBox >>> .el-textarea {
  22247. width: calc(100% - 200px);
  22248. }
  22249. .scoreBox >>> .el-input {
  22250. width: 130px;
  22251. font-size: 38px;
  22252. }
  22253. .scoreBox >>> .el-input__inner {
  22254. height: 60px;
  22255. }
  22256. .answerScore {
  22257. position: absolute;
  22258. top: 10px;
  22259. right: 10px;
  22260. background: #0000008f;
  22261. border-radius: 5px;
  22262. padding: 3px 5px;
  22263. font-size: 14px;
  22264. color: #fff;
  22265. cursor: pointer;
  22266. }
  22267. .open_box .switch_box {
  22268. width: 100%;
  22269. margin: 0 auto;
  22270. display: flex;
  22271. justify-content: space-between;
  22272. }
  22273. .open_box .switch_box + .switch_box {
  22274. margin-top: 10px;
  22275. }
  22276. .deleteImg,.deleteImg1 {
  22277. width: 25px !important;
  22278. height: 25px !important;
  22279. cursor: pointer;
  22280. position: absolute;
  22281. top: 10px;
  22282. right: 10px;
  22283. }
  22284. .deleteImg2 {
  22285. width: 23px !important;
  22286. height: 23px !important;
  22287. top: 5px;
  22288. right: 5px;
  22289. }
  22290. .deleteImg1{
  22291. width: 23px !important;
  22292. height: 23px !important;
  22293. top: 5px !important;
  22294. right: 30px !important;
  22295. }
  22296. .rightW {
  22297. right: 40px;
  22298. }
  22299. .drawPBox {
  22300. display: flex;
  22301. flex-direction: column;
  22302. position: relative;
  22303. }
  22304. .drawPBox span {
  22305. font-size: 18px;
  22306. color: #606266;
  22307. padding-bottom: 10px;
  22308. margin: 10px 0;
  22309. border-bottom: 1px solid #eaeaea;
  22310. }
  22311. .drawPBox img {
  22312. width: 500px;
  22313. height: 300px;
  22314. object-fit: contain;
  22315. cursor: pointer;
  22316. margin: 0 auto;
  22317. }
  22318. .sentenBox {
  22319. background: #fff;
  22320. height: 450px;
  22321. overflow: auto;
  22322. background-image: url("../assets/icon/conSentences/stuBg.png");
  22323. background-position: 102%;
  22324. background-repeat: no-repeat;
  22325. background-size: 60%;
  22326. }
  22327. .addSen {
  22328. background: #409efe;
  22329. width: 90px;
  22330. color: #fff;
  22331. height: 35px;
  22332. text-align: center;
  22333. line-height: 35px;
  22334. border-radius: 5px;
  22335. float: right;
  22336. margin: 10px 20px 0 0;
  22337. cursor: pointer;
  22338. }
  22339. .sentenTop {
  22340. display: flex;
  22341. flex-direction: row;
  22342. flex-wrap: nowrap;
  22343. align-items: center;
  22344. padding: 55px 0 0 20px;
  22345. box-sizing: border-box;
  22346. }
  22347. .sentenTop > div:nth-child(2) {
  22348. width: 300px;
  22349. margin: 0 15px;
  22350. }
  22351. .sentenTop > div:nth-child(3) {
  22352. background: #409efe;
  22353. color: #fff;
  22354. width: 65px;
  22355. height: 35px;
  22356. text-align: center;
  22357. line-height: 35px;
  22358. border-radius: 5px;
  22359. cursor: pointer;
  22360. }
  22361. .cardList,
  22362. .cardList1 {
  22363. padding: 10px 0 10px 0;
  22364. display: flex;
  22365. flex-direction: row;
  22366. flex-wrap: wrap;
  22367. align-items: center;
  22368. box-sizing: border-box;
  22369. border-bottom: 1px solid #f4f4f4;
  22370. width: 98%;
  22371. margin: 0 auto;
  22372. min-width: 60%;
  22373. max-width: 85%;
  22374. }
  22375. .cardList1 {
  22376. padding: 10px 0 10px 10px !important;
  22377. margin: 0 !important;
  22378. }
  22379. .cardBox {
  22380. display: flex;
  22381. flex-direction: row;
  22382. flex-wrap: wrap;
  22383. align-items: center;
  22384. align-content: center;
  22385. }
  22386. .cardBox > div {
  22387. margin-bottom: 10px;
  22388. }
  22389. .isCard,
  22390. .isChooseCard,
  22391. .noCard,
  22392. .isCard1 {
  22393. width: 130px;
  22394. height: 60px;
  22395. text-align: center;
  22396. line-height: 60px;
  22397. font-size: 20px;
  22398. cursor: pointer;
  22399. background-image: url("../assets/icon/conSentences/titleBorder.png");
  22400. background-size: cover;
  22401. transition: all 2s;
  22402. margin-right: 20px;
  22403. }
  22404. .isCard > div,
  22405. .noCard > div,
  22406. .isCard1 > div {
  22407. white-space: nowrap;
  22408. overflow: hidden;
  22409. text-overflow: ellipsis;
  22410. width: 75%;
  22411. margin: 0 auto;
  22412. }
  22413. .noCard {
  22414. background-image: none;
  22415. }
  22416. .isCard1 {
  22417. background-image: url("../assets/icon/conSentences/answerBorder.png");
  22418. }
  22419. .isChooseCard {
  22420. background-image: none;
  22421. border: 1px dashed #b9b9b9;
  22422. border-radius: 10px;
  22423. }
  22424. .card {
  22425. width: 130px;
  22426. height: 60px;
  22427. }
  22428. .card > img {
  22429. width: 100%;
  22430. height: 100%;
  22431. }
  22432. .rightCardBox {
  22433. margin: 10px 0 0 10px;
  22434. }
  22435. .rightCardBox > div:nth-child(1) {
  22436. margin-bottom: 10px;
  22437. }
  22438. .cardCss {
  22439. display: flex;
  22440. flex-direction: column;
  22441. flex-wrap: nowrap;
  22442. align-items: center;
  22443. border-bottom: 3px solid #b4c3d3;
  22444. padding: 0 0 5px 0;
  22445. margin-right: 10px;
  22446. }
  22447. .cardCss > div:nth-child(2) {
  22448. background: #5b7b9d;
  22449. color: #fff;
  22450. width: 20px;
  22451. height: 20px;
  22452. border-radius: 50%;
  22453. text-align: center;
  22454. line-height: 20px;
  22455. }
  22456. .isWrong {
  22457. display: flex;
  22458. flex-direction: row;
  22459. flex-wrap: nowrap;
  22460. align-content: center;
  22461. align-items: center;
  22462. }
  22463. .answerRight {
  22464. width: 25%;
  22465. }
  22466. .isTj {
  22467. display: flex;
  22468. flex-direction: row;
  22469. flex-wrap: nowrap;
  22470. align-items: center;
  22471. }
  22472. .isTj > div:nth-child(2) {
  22473. color: #727070;
  22474. margin-left: 10px;
  22475. }
  22476. .isTjImg {
  22477. width: 30px;
  22478. height: 30px;
  22479. }
  22480. .isTjImg > img {
  22481. width: 100%;
  22482. height: 100%;
  22483. }
  22484. .cardAnswerBox {
  22485. font-size: 18px;
  22486. width: 97%;
  22487. border: 5px;
  22488. padding: 0;
  22489. border-radius: 5px;
  22490. margin: 10px auto;
  22491. word-break: break-word;
  22492. }
  22493. .w_name {
  22494. margin-bottom: 10px;
  22495. }
  22496. .w_name span {
  22497. font-size: 16px;
  22498. }
  22499. .w_teachert {
  22500. width: 50px !important;
  22501. position: absolute;
  22502. height: auto !important;
  22503. z-index: 10;
  22504. right: 25px;
  22505. top: -25px;
  22506. }
  22507. .group_workBox {
  22508. }
  22509. .group_workBox + .group_workBox {
  22510. margin-top: 20px;
  22511. }
  22512. .group_box {
  22513. padding-bottom: 20px;
  22514. border-bottom: 2px solid #f0f0f0;
  22515. margin-top: 10px;
  22516. }
  22517. .group_title {
  22518. display: flex;
  22519. align-items: center;
  22520. justify-content: space-between;
  22521. width: 95%;
  22522. }
  22523. .group_name {
  22524. background-image: url(../assets/icon/groupN.png);
  22525. width: 220px;
  22526. background-size: 100% 100%;
  22527. height: 67px;
  22528. padding: 0 20px 0 43px;
  22529. box-sizing: border-box;
  22530. line-height: 63px;
  22531. color: #fff;
  22532. overflow: hidden;
  22533. white-space: nowrap;
  22534. text-overflow: ellipsis;
  22535. }
  22536. .group_work {
  22537. width: 100%;
  22538. padding: 0 10px;
  22539. box-sizing: border-box;
  22540. display: flex;
  22541. flex-wrap: wrap;
  22542. }
  22543. .g_d_box {
  22544. display: flex;
  22545. flex-flow: wrap;
  22546. justify-content: space-around;
  22547. }
  22548. .g_d_box .isChair {
  22549. background-image: url(../assets/avatar.png) !important;
  22550. }
  22551. .g_d_group {
  22552. width: 500px;
  22553. margin-bottom: 80px;
  22554. }
  22555. .g_d_group_chair {
  22556. display: flex;
  22557. align-items: center;
  22558. justify-content: center;
  22559. }
  22560. .g_d_group_chair > div + div {
  22561. margin-left: 30px;
  22562. }
  22563. .g_d_group_chair > div,
  22564. .g_d_group_chair2 > div {
  22565. display: flex;
  22566. flex-direction: column;
  22567. align-items: center;
  22568. }
  22569. .g_d_group_chair > div > span:nth-child(1),
  22570. .g_d_group_chair2 > div > span:nth-child(1) {
  22571. background-image: url(../assets/icon/chair.png);
  22572. width: 50px;
  22573. height: 50px;
  22574. display: block;
  22575. background-size: 100% 100%;
  22576. }
  22577. .g_d_group_tableBox {
  22578. display: flex;
  22579. align-items: center;
  22580. justify-content: center;
  22581. }
  22582. .g_d_group_chair2 {
  22583. display: flex;
  22584. flex-direction: column;
  22585. align-items: center;
  22586. justify-content: center;
  22587. }
  22588. .g_d_group_chair2 > div + div {
  22589. margin-top: 10px;
  22590. }
  22591. .g_d_group_table {
  22592. background-image: url(../assets/icon/groupBg.png);
  22593. width: 354px;
  22594. height: 196px;
  22595. background-size: 100% 100%;
  22596. display: flex;
  22597. align-items: center;
  22598. justify-content: center;
  22599. flex-direction: column;
  22600. color: #fff;
  22601. }
  22602. .g_d_group_table > div:nth-child(1) {
  22603. font-size: 24px;
  22604. margin-bottom: 5px;
  22605. }
  22606. .g_d_group_table > div:nth-child(2) div {
  22607. cursor: pointer;
  22608. background: #2e77bf;
  22609. padding: 4px 10px;
  22610. border-radius: 5px;
  22611. }
  22612. .groupBox {
  22613. }
  22614. .groupContent + .groupContent {
  22615. margin-top: 30px;
  22616. }
  22617. .groupTitle {
  22618. font-size: 24px;
  22619. color: rgb(80, 80, 80);
  22620. margin-bottom: 20px;
  22621. }
  22622. .groupName {
  22623. display: flex;
  22624. align-items: center;
  22625. }
  22626. .groupn {
  22627. font-size: 15px;
  22628. margin-right: 10px;
  22629. }
  22630. .groupName + .groupName {
  22631. margin-top: 15px;
  22632. }
  22633. .groupBtn {
  22634. margin-left: 10px;
  22635. }
  22636. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  22637. text-align: left;
  22638. }
  22639. .g_d_btnBox {
  22640. display: flex;
  22641. justify-content: flex-end;
  22642. align-items: center;
  22643. margin-bottom: 20px;
  22644. }
  22645. .updateChair {
  22646. position: relative;
  22647. }
  22648. .updateChairBtn {
  22649. position: absolute;
  22650. width: 50px;
  22651. height: 50px;
  22652. overflow: hidden;
  22653. /* display: flex; */
  22654. align-items: center;
  22655. justify-content: center;
  22656. background: #00000087;
  22657. color: #fff;
  22658. border-radius: 50px;
  22659. display: none;
  22660. cursor: pointer;
  22661. }
  22662. .updateChair:hover .updateChairBtn {
  22663. display: flex;
  22664. }
  22665. .group_staic_box {
  22666. display: flex;
  22667. padding: 30px 40px 10px;
  22668. flex-wrap: wrap;
  22669. }
  22670. .group_staic {
  22671. /* width: 50%; */
  22672. margin-bottom: 20px;
  22673. display: flex;
  22674. align-items: center;
  22675. }
  22676. .group_staic span:nth-child(1) {
  22677. width: 150px;
  22678. text-align: right;
  22679. margin-right: 15px;
  22680. }
  22681. .group_staic span:nth-child(2) {
  22682. background: rgb(0 123 255);
  22683. color: #fff;
  22684. border-radius: 5px;
  22685. padding: 5px;
  22686. }
  22687. .codeFileBox {
  22688. height: 300px;
  22689. background: #fff;
  22690. display: flex;
  22691. align-items: center;
  22692. justify-content: center;
  22693. }
  22694. .codeFileBox img {
  22695. width: 200px;
  22696. margin: 0;
  22697. height: auto;
  22698. }
  22699. .codeFileBox div {
  22700. background: rgb(80, 142, 226);
  22701. color: #fff;
  22702. padding: 10px 20px;
  22703. border-radius: 25px;
  22704. cursor: pointer;
  22705. margin-left: 15px;
  22706. }
  22707. .radioBox {
  22708. display: flex;
  22709. flex-direction: column;
  22710. flex-wrap: nowrap;
  22711. align-items: flex-start;
  22712. }
  22713. .radioBox > div {
  22714. margin: 10px 0 0 10px;
  22715. }
  22716. /* .radioBox >>> .el-radio__input,
  22717. .radioBox >>> .el-checkbox__inner {
  22718. margin-left: 10px;
  22719. } */
  22720. .radioBox >>> .el-radio__label,
  22721. .radioBox >>> .el-checkbox__label {
  22722. display: flex;
  22723. align-items: center;
  22724. width: 100%;
  22725. }
  22726. .radioBox >>> .el-radio__label > span {
  22727. width: 100%;
  22728. display: -webkit-box;
  22729. overflow: hidden;
  22730. white-space: normal !important;
  22731. text-overflow: ellipsis;
  22732. word-wrap: break-word;
  22733. }
  22734. .inImg {
  22735. width: 100px;
  22736. cursor: pointer;
  22737. }
  22738. .inImg > img {
  22739. width: 100%;
  22740. height: 100%;
  22741. object-fit: cover;
  22742. }
  22743. .timuImgBox {
  22744. margin: 10px 0;
  22745. display: flex;
  22746. flex-direction: column;
  22747. flex-wrap: wrap;
  22748. align-items: flex-start;
  22749. }
  22750. .timuImg {
  22751. width: 150px;
  22752. margin: 5px 0;
  22753. cursor: pointer;
  22754. }
  22755. .timuImg > img {
  22756. width: 100%;
  22757. height: 100%;
  22758. object-fit: cover;
  22759. }
  22760. .worksTop {
  22761. display: flex;
  22762. flex-direction: row;
  22763. align-items: flex-end;
  22764. }
  22765. .worksTitle{
  22766. display: flex;
  22767. flex-direction: row;
  22768. flex-wrap: nowrap;
  22769. align-items: center;
  22770. }
  22771. .worksTitle::before,.worksTop::before{
  22772. content: '';
  22773. display: block;
  22774. width: 3px;
  22775. height: 20px;
  22776. background: #0061FF;
  22777. border-radius: 3px;
  22778. margin: 0 5px 0 0;
  22779. }
  22780. .corOpen {
  22781. margin: 0 0 0 10px;
  22782. font-size: 14px;
  22783. cursor: pointer;
  22784. color: #505050;
  22785. }
  22786. .corOpen:hover {
  22787. color: #499eef;
  22788. }
  22789. .navCorOpenBox {
  22790. display: flex;
  22791. flex-direction: row;
  22792. align-items: center;
  22793. justify-content: space-between;
  22794. height: 55px;
  22795. background: #ffffff;
  22796. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  22797. border-radius: 8px 8px 0px 0px;
  22798. z-index: 9;
  22799. position: relative;
  22800. }
  22801. .navCorOpen {
  22802. padding-right: 15px;
  22803. cursor: pointer;
  22804. width: 45px;
  22805. display: flex;
  22806. }
  22807. .navCorOpen > img {
  22808. width: 100%;
  22809. height: 100%;
  22810. }
  22811. .mlImg {
  22812. width: 40px !important;
  22813. min-width: 40px;
  22814. cursor: pointer;
  22815. transform: rotate(180deg);
  22816. }
  22817. .mlImg > img {
  22818. width: 100%;
  22819. height: 100%;
  22820. }
  22821. .navLeftCss {
  22822. width: 100% !important;
  22823. left: 0 !important;
  22824. }
  22825. .isContentCss {
  22826. width: 100% !important;
  22827. }
  22828. .isAllWidth {
  22829. width: 100% !important;
  22830. }
  22831. .group_switch {
  22832. margin-right: 10px;
  22833. height: 30px;
  22834. display: flex;
  22835. align-items: center;
  22836. }
  22837. .group_switch > span {
  22838. margin-right: 5px;
  22839. }
  22840. .fileC_box {
  22841. padding-top: 15px;
  22842. }
  22843. .fileC_box > .fileC_title {
  22844. padding: 10px 5px 14px 10px;
  22845. border-top: 1px solid #cad1dc;
  22846. font-size: 14px;
  22847. font-weight: 400;
  22848. color: #cad1dc;
  22849. width: calc(100% - 20px);
  22850. margin: 0 auto;
  22851. box-sizing: border-box;
  22852. }
  22853. .pl_select_box {
  22854. height: 40px;
  22855. line-height: 40px;
  22856. width: 100%;
  22857. cursor: pointer;
  22858. padding: 0 20px;
  22859. box-sizing: border-box;
  22860. border-radius: 5px;
  22861. border: 1px solid #d6d6d6;
  22862. white-space: nowrap;
  22863. overflow: hidden;
  22864. text-overflow: ellipsis;
  22865. background: #fff;
  22866. text-align: left;
  22867. }
  22868. .newButton {
  22869. width: 102px;
  22870. height: 36px;
  22871. background: #e7ebf1;
  22872. border-radius: 4px;
  22873. color: #0e1e33;
  22874. font-weight: 400;
  22875. font-size: 14px;
  22876. border: none;
  22877. float: right;
  22878. margin-left: 10px;
  22879. }
  22880. .el-table >>> .even_row {
  22881. background-color: #f0f4fa;
  22882. }
  22883. .stageBoxCss,
  22884. .stageBoxIsCss {
  22885. display: flex;
  22886. flex-direction: row;
  22887. flex-wrap: nowrap;
  22888. align-items: center;
  22889. height: 50px;
  22890. border-bottom: 1px solid #e2f5fc;
  22891. cursor: pointer;
  22892. width: 100%;
  22893. }
  22894. .stageBoxIsCss {
  22895. background: #0061ff;
  22896. color: #fff;
  22897. border-radius: 8px;
  22898. }
  22899. .stageItemTitle {
  22900. display: flex;
  22901. flex-direction: row;
  22902. flex-wrap: nowrap;
  22903. align-items: center;
  22904. margin-left: 15px;
  22905. width: calc(100% - 50px);
  22906. }
  22907. .stageNav{
  22908. /* font-weight: bold; */
  22909. }
  22910. .stageItemTitle > div:first-child {
  22911. min-width: 55px;
  22912. }
  22913. .stageItemTitle > div:last-child {
  22914. max-width: 242px;
  22915. white-space: nowrap;
  22916. overflow: hidden;
  22917. text-overflow: ellipsis;
  22918. word-break: break-word;
  22919. width: calc(100% - 55px);
  22920. }
  22921. .closeTri,
  22922. .closeTri1 {
  22923. min-width: 15px;
  22924. width: 15px;
  22925. height: 15px;
  22926. transition: all .5s;
  22927. }
  22928. .closeTri1 {
  22929. padding-left: 10px;
  22930. cursor: pointer;
  22931. }
  22932. .closeTri > img,
  22933. .closeTri1 > img {
  22934. width: 100%;
  22935. height: 100%;
  22936. /* transition: all .5s; */
  22937. }
  22938. .noToolBlue {
  22939. min-width: 10px;
  22940. width: 10px;
  22941. height: 10px;
  22942. background: #0061ff;
  22943. border-radius: 50%;
  22944. margin-left: 13px;
  22945. }
  22946. .stageChild,
  22947. .toolChild {
  22948. height: 0;
  22949. overflow: hidden;
  22950. transition: all 0.5s;
  22951. }
  22952. .toolChild {
  22953. /* margin: 0 0 0 17px;
  22954. padding: 0 0 0 20px;
  22955. border-left: 1px solid #d7d7d7; */
  22956. }
  22957. .toolChild > div + div{
  22958. margin-top:5px;
  22959. }
  22960. .gjCss {
  22961. display: flex;
  22962. flex-direction: row;
  22963. flex-wrap: nowrap;
  22964. align-items: center;
  22965. padding: 10px 0 10px 40px;
  22966. box-sizing: border-box;
  22967. font-size: 14px;
  22968. cursor: pointer;
  22969. border-radius:5px;
  22970. }
  22971. .toolChild > div {
  22972. position: relative;
  22973. width:100%;
  22974. }
  22975. .toolChild > div::before {
  22976. /* content: "";
  22977. width: 15px;
  22978. height: 1px;
  22979. background: #cad1dc;
  22980. position: absolute;
  22981. top: 24px;
  22982. left: -20px;
  22983. display: block; */
  22984. }
  22985. .isGjCss {
  22986. /* color: #0061ff; */
  22987. color:#fff;
  22988. background: rgb(55, 129, 252);
  22989. /* background-color: #e0eafb !important;
  22990. color: #0061ff !important; */
  22991. }
  22992. .navItem {
  22993. background: #ffffff;
  22994. border-radius: 4px;
  22995. width: 100%;
  22996. margin: 10px auto;
  22997. position: relative;
  22998. height: 40px;
  22999. display: flex;
  23000. flex-direction: row;
  23001. flex-wrap: nowrap;
  23002. align-items: center;
  23003. }
  23004. .navItemList {
  23005. display: flex;
  23006. flex-direction: row;
  23007. flex-wrap: nowrap;
  23008. align-items: center;
  23009. padding: 0 13px;
  23010. cursor: pointer;
  23011. width: calc(100% - 60px);
  23012. height: 100%;
  23013. }
  23014. .navItemList > div:first-child {
  23015. min-width: 60px;
  23016. }
  23017. .navItemList > div:last-child {
  23018. width: calc(100% - 80px);
  23019. white-space: nowrap;
  23020. overflow: hidden;
  23021. text-overflow: ellipsis;
  23022. word-break: break-word;
  23023. }
  23024. /* .isItemList > div {
  23025. color: #fff !important;
  23026. } */
  23027. .tool_work_box {
  23028. width: 100%;
  23029. padding: 0 37px 0;
  23030. box-sizing: border-box;
  23031. }
  23032. .tool_box {
  23033. width: 100%;
  23034. padding: 0 0 0 20px;
  23035. }
  23036. .tool_type_box {
  23037. display: flex;
  23038. flex-direction: row;
  23039. align-items: baseline;
  23040. flex-wrap: nowrap;
  23041. justify-content: flex-start;
  23042. position: relative;
  23043. }
  23044. .toolSort {
  23045. display: flex;
  23046. flex-direction: row;
  23047. flex-wrap: wrap;
  23048. justify-content: flex-start;
  23049. align-items: flex-start;
  23050. padding: 0 0 15px 0;
  23051. }
  23052. .toolSort > div {
  23053. margin: 0 10px 0 0;
  23054. width: 135px;
  23055. box-sizing: border-box;
  23056. border: 2px solid transparent;
  23057. }
  23058. .tools {
  23059. width: 100%;
  23060. display: flex;
  23061. flex-direction: column;
  23062. flex-wrap: nowrap;
  23063. align-items: flex-start;
  23064. }
  23065. .whiteBIcon {
  23066. width: fit-content;
  23067. cursor: pointer;
  23068. display: flex;
  23069. flex-direction: column;
  23070. flex-wrap: nowrap;
  23071. align-items: center;
  23072. font-size: 14px;
  23073. }
  23074. .tool:hover {
  23075. border: 2px solid #a5c7ff;
  23076. border-radius: 5px;
  23077. }
  23078. .whiteBIcon > img {
  23079. width: 65px;
  23080. height: 100%;
  23081. }
  23082. .whiteBIcon > img {
  23083. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  23084. border-radius: 15px;
  23085. }
  23086. .check {
  23087. /* width: 20px;
  23088. height: 20px; */
  23089. cursor: pointer;
  23090. margin: 10px 0;
  23091. position: absolute;
  23092. right: 2px;
  23093. top: -5px;
  23094. }
  23095. .noChoose,
  23096. .isChoose {
  23097. width: 15px;
  23098. height: 15px;
  23099. border-radius: 50%;
  23100. border: 1px solid #adadad;
  23101. }
  23102. .isChoose {
  23103. border: 4px solid #0363ff !important;
  23104. width: 10px;
  23105. height: 10px;
  23106. }
  23107. .isToolChoose {
  23108. border: 2px solid #5394ff !important;
  23109. border-radius: 5px;
  23110. box-shadow: 0 0 6px 0px #5394ff;
  23111. }
  23112. .checkDiv {
  23113. display: flex;
  23114. align-items: center;
  23115. }
  23116. .checkDiv span {
  23117. margin-left: 5px;
  23118. color: #858585;
  23119. }
  23120. .check img {
  23121. width: 20px;
  23122. height: 20px;
  23123. }
  23124. .lockTaskIcon {
  23125. width: 20px;
  23126. height: 20px;
  23127. position: absolute;
  23128. right: 10px;
  23129. top: 5px;
  23130. }
  23131. .lockTaskIcon > img {
  23132. width: 100%;
  23133. height: 100%;
  23134. }
  23135. .pick_box {
  23136. display: flex;
  23137. align-items: flex-start;
  23138. flex-wrap: wrap;
  23139. }
  23140. .selectBox {
  23141. width: 110px;
  23142. margin-left: 10px;
  23143. margin: 0 10px 0 auto;
  23144. }
  23145. .selectBox >>> .el-input__inner {
  23146. height: 30px;
  23147. line-height: 30px;
  23148. }
  23149. .selectBox >>> .el-input__icon {
  23150. line-height: 30px;
  23151. }
  23152. .sentenceTitle {
  23153. display: flex;
  23154. flex-direction: row;
  23155. flex-wrap: nowrap;
  23156. align-items: center;
  23157. }
  23158. .sentenceTitle::before {
  23159. content: attr(index);
  23160. background: #3681fc;
  23161. border-radius: 50%;
  23162. color: #fff;
  23163. width: 25px;
  23164. height: 25px;
  23165. min-width: 25px;
  23166. min-height: 25px;
  23167. text-align: center;
  23168. line-height: 25px;
  23169. margin-right: 5px;
  23170. }
  23171. .hfBox {
  23172. padding: 10px;
  23173. box-sizing: border-box;
  23174. }
  23175. .whoReplyWho {
  23176. display: flex;
  23177. flex-direction: row;
  23178. flex-wrap: nowrap;
  23179. align-items: baseline;
  23180. justify-content: flex-start;
  23181. }
  23182. .hfBottom {
  23183. display: flex;
  23184. flex-direction: row;
  23185. flex-wrap: nowrap;
  23186. align-items: center;
  23187. justify-content: space-between;
  23188. font-size: 14px;
  23189. }
  23190. .deleteHfItem {
  23191. cursor: pointer;
  23192. width: 20px;
  23193. height: 20px;
  23194. }
  23195. .deleteHfItem > img {
  23196. width: 100%;
  23197. height: 100%;
  23198. }
  23199. .whoReplyWho > .hfImg {
  23200. width: 12px;
  23201. height: 12px;
  23202. margin: 0 5px;
  23203. }
  23204. .whoReplyWho > .hfImg > img {
  23205. width: 100%;
  23206. height: 100%;
  23207. }
  23208. .hfContent {
  23209. padding-top: 10px;
  23210. box-sizing: border-box;
  23211. display: -webkit-box;
  23212. overflow: hidden;
  23213. white-space: normal !important;
  23214. text-overflow: ellipsis;
  23215. word-wrap: break-word;
  23216. -webkit-box-orient: vertical;
  23217. }
  23218. .hfTime {
  23219. text-align: left;
  23220. box-sizing: border-box;
  23221. padding: 10px 0 10px 0px;
  23222. color: #bfbfbf;
  23223. font-size: 14px;
  23224. }
  23225. .btnAllNT {
  23226. position: fixed;
  23227. bottom: 100px;
  23228. right: 40px;
  23229. z-index: 999;
  23230. display: flex;
  23231. flex-direction: row;
  23232. }
  23233. .btnAllNT > img {
  23234. cursor: pointer;
  23235. width: 80px;
  23236. }
  23237. .toolMask {
  23238. position: fixed;
  23239. width: 100%;
  23240. height: 100%;
  23241. background: #3f3c3c;
  23242. opacity: 0.5;
  23243. top: 0;
  23244. left: 0;
  23245. z-index: 999;
  23246. }
  23247. .addToolCss {
  23248. position: fixed;
  23249. z-index: 999;
  23250. background: #fff;
  23251. right: 5%;
  23252. bottom: 18%;
  23253. min-width: 1035px;
  23254. min-height: 300px;
  23255. border-radius: 10px;
  23256. box-shadow: 0 0 8px 1px #b2b2b2;
  23257. }
  23258. .toolTop {
  23259. display: flex;
  23260. flex-direction: row;
  23261. flex-wrap: nowrap;
  23262. justify-content: space-between;
  23263. align-items: center;
  23264. padding: 20px;
  23265. }
  23266. .toolTop > div:nth-child(2) {
  23267. width: 15px;
  23268. height: 15px;
  23269. padding-right: 10px;
  23270. cursor: pointer;
  23271. }
  23272. .toolTop > div:nth-child(2) > img {
  23273. width: 100%;
  23274. height: 100%;
  23275. }
  23276. .fullStyle>>>.el-dialog__body {
  23277. height: calc(100% - 125px) !important;
  23278. box-sizing: border-box;
  23279. padding: 30px 0 !important;
  23280. background: #fff !important;
  23281. }
  23282. .fullStyle>>>.el-dialog {
  23283. width: 100% !important;
  23284. max-width: 100% !important;
  23285. height: 100% !important;
  23286. margin: 0 !important;
  23287. }
  23288. .fullStyle {
  23289. width: 100% !important;
  23290. max-width: 100% !important;
  23291. height: 100% !important;
  23292. margin: 0 auto !important;
  23293. }
  23294. .fullStyle>>>.el-dialog__footer{
  23295. background: #fff !important;
  23296. }
  23297. .engUpBox {
  23298. width: 100%;
  23299. height: 100%;
  23300. }
  23301. .engTitle,
  23302. .engText {
  23303. display: flex;
  23304. flex-direction: row;
  23305. flex-wrap: nowrap;
  23306. align-items: flex-start;
  23307. padding: 0 20px 20px 20px;
  23308. box-sizing: border-box;
  23309. }
  23310. .engTitle > .div:first-child,
  23311. .engText > div:first-child {
  23312. min-width: 75px;
  23313. }
  23314. .correctBox{
  23315. width: 100%;
  23316. display: flex;
  23317. flex-direction: row;
  23318. flex-wrap: nowrap;
  23319. align-items: flex-start;
  23320. }
  23321. .oldBox{
  23322. width: 50%;
  23323. height: 100%;
  23324. display: flex;
  23325. flex-direction: column;
  23326. flex-wrap: nowrap;
  23327. align-items: center;
  23328. border-top: 1px solid #d9d9d9;
  23329. border-left: 1px solid #d9d9d9;
  23330. border-right: 1px solid #d9d9d9;
  23331. }
  23332. .oldBox>div:first-child{
  23333. width: 100%;
  23334. text-align: center;
  23335. background: #d9d9d9;
  23336. height: 35px;
  23337. line-height: 35px;
  23338. font-weight: bold;
  23339. }
  23340. .oldText{
  23341. width: 100%;
  23342. height: calc(100% - 35px);
  23343. overflow: auto;
  23344. margin: 10px 0;
  23345. display: flex;
  23346. flex-direction: column;
  23347. flex-wrap: nowrap;
  23348. align-content: center;
  23349. align-items: center;
  23350. }
  23351. .detailBox{
  23352. width: 50%;
  23353. padding: 10px;
  23354. background: #f6f6f6;
  23355. border-radius: 5px;
  23356. }
  23357. .oldDetail,.oldDetail1{
  23358. padding-bottom: 30px;
  23359. }
  23360. .oldImg{
  23361. width:30px;
  23362. height: 30px;
  23363. }
  23364. .oldImg>img{
  23365. width: 100%;
  23366. height: 100%;
  23367. }
  23368. .allName{
  23369. min-width: 200px;
  23370. white-space: nowrap;
  23371. overflow: hidden;
  23372. text-overflow: ellipsis;
  23373. word-break: break-word;
  23374. cursor: pointer;
  23375. text-align: center;
  23376. border: 1px solid #bcc2cc;
  23377. box-sizing: border-box;
  23378. }
  23379. .engUpTop{
  23380. max-height: 300px;
  23381. overflow: auto;
  23382. }
  23383. .isUpdateToolDetailClass{
  23384. padding: 0 !important;
  23385. }
  23386. .isUpdateToolDetailClass textarea{
  23387. padding:12px;
  23388. font-size: 16px;
  23389. min-height:100%;
  23390. width: 100%;
  23391. box-sizing:border-box;
  23392. outline: none;
  23393. border:none;
  23394. line-height: 30px;
  23395. resize: none;
  23396. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  23397. color: #838383;
  23398. }
  23399. .show_taskD {
  23400. min-width: fit-content;
  23401. margin-left: 10px;
  23402. display: flex;
  23403. align-items: center;
  23404. font-size: 14px;
  23405. cursor: pointer;
  23406. color: #717c8d;
  23407. }
  23408. .show_taskD > img {
  23409. width: 15px;
  23410. margin-right: 5px;
  23411. transition: 0.2s all;
  23412. transform: rotate(-90deg);
  23413. }
  23414. .show_taskD.show > img {
  23415. transform: rotate(0deg);
  23416. }
  23417. .correctCss{
  23418. position: absolute;
  23419. bottom: -70px;
  23420. background: #409eff;
  23421. color: #fff;
  23422. }
  23423. </style>