studyStudent.vue 778 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716
  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. <img
  26. src="../../assets/icon/learn/last.png"
  27. @click="nextOrpreSteps(0)"
  28. />
  29. <img
  30. src="../../assets/icon/learn/next.png"
  31. @click="nextOrpreSteps(1)"
  32. />
  33. <img
  34. src="../../assets/icon/learn/return.png"
  35. @click.stop="
  36. goTo(
  37. '/courseDetail?userid=' +
  38. userid +
  39. '&oid=' +
  40. oid +
  41. '&org=' +
  42. org +
  43. '&cid=' +
  44. classId +
  45. '&courseId=' +
  46. id +
  47. '&tType=' +
  48. tType +
  49. '&screenType=' +
  50. screenType
  51. )
  52. "
  53. />
  54. </div>
  55. <div
  56. class="pButton"
  57. style="left: 0; top: 140px"
  58. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  59. @click="setContent2(true)"
  60. >
  61. <!-- 批 , getCourseDetail()-->
  62. <img
  63. src="../../assets/icon/newIcons/isRight.png"
  64. style="width: 45px"
  65. alt=""
  66. />
  67. </div>
  68. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  69. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  70. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  71. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  72. <div
  73. style="
  74. max-width: calc(100% - 40px);
  75. width: auto;
  76. white-space: nowrap;
  77. overflow: hidden;
  78. text-overflow: ellipsis;
  79. word-break: break-word;
  80. display: block;
  81. "
  82. >
  83. <el-tooltip
  84. effect="light"
  85. :content="courseDetail.title"
  86. placement="top"
  87. >
  88. <div class="ctitle">
  89. {{ courseDetail.title }}
  90. </div>
  91. </el-tooltip>
  92. </div>
  93. <el-tooltip effect="light" content="收缩" placement="top">
  94. <div class="mlImg" @click="setContent2(false)">
  95. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  96. </div>
  97. </el-tooltip>
  98. </div>
  99. <div
  100. class="inviteBox"
  101. v-if="tcid && inviteCode"
  102. style="padding: 0 0 8px 0"
  103. >
  104. <div>
  105. <span>随机码:{{ inviteCode }}</span>
  106. </div>
  107. </div>
  108. </div>
  109. <div class="cru_selectBox">
  110. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  111. <div class="stageChild" :class="{ navActive: item.isOpen }">
  112. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  113. <div
  114. class="navItem"
  115. :class="{
  116. openTaskActive:
  117. navIndex == taskCount &&
  118. nav.id == navId &&
  119. stageIndex == courseType,
  120. }"
  121. >
  122. <div v-if="nav.tool[0].tool != undefined">
  123. <div
  124. class="closeTri1"
  125. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  126. @click="openTask(stageIndex, navIndex, nav.id)"
  127. >
  128. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../../assets/icon/newIcons/bDown2.png" alt />
  129. </div>
  130. <div
  131. class="closeTri1"
  132. v-else
  133. @click="openTask(stageIndex, navIndex, nav.id)"
  134. >
  135. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../../assets/icon/newIcons/right.png" alt />
  136. </div>
  137. </div>
  138. <div v-else class="noToolBlue"></div>
  139. <div
  140. @click="openTask(stageIndex, navIndex, nav.id)"
  141. class="navItemList"
  142. :class="{
  143. isItemList:
  144. navIndex == taskCount &&
  145. nav.id == navId &&
  146. stageIndex == courseType,
  147. }"
  148. >
  149. <div>任务{{ navIndex + 1 }}:</div>
  150. <el-tooltip
  151. effect="light"
  152. :content="nav.taskName"
  153. placement="top"
  154. >
  155. <div
  156. :style="{
  157. width:
  158. IsLookOpen && !nav.isLook
  159. ? 'calc(100% - 75px)'
  160. : 'auto',
  161. }"
  162. >
  163. {{ nav.taskName }}
  164. </div>
  165. </el-tooltip>
  166. </div>
  167. </div>
  168. <div
  169. v-if="nav.tool[0].tool != undefined"
  170. class="toolChild"
  171. :class="{ toolActive: nav.isOpen }"
  172. >
  173. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  174. <div
  175. class="gjCss"
  176. :class="{
  177. isGjCss: t.isTool,
  178. }"
  179. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  180. >
  181. <div>工具{{ toolIndex2 + 1 }}:</div>
  182. <div v-if="t.tool == 58">模拟驾驶</div>
  183. <div v-if="t.tool == 59">路径搜索</div>
  184. <div v-if="t.tool == 60">深度学习</div>
  185. <div v-if="t.tool == 10">倒计时</div>
  186. <div v-if="t.tool == 65">挑人</div>
  187. <div v-if="t.tool == 7">思维网格</div>
  188. <div v-if="t.tool == 1">电子白板</div>
  189. <div v-if="t.tool == 52">文档</div>
  190. <div v-if="t.tool == 3">思维导图</div>
  191. <div v-if="t.tool == 48">表格</div>
  192. <div v-if="t.tool == 49">学生分组</div>
  193. <div v-if="t.tool == 4">问卷调查</div>
  194. <div v-if="t.tool == 45">选择题</div>
  195. <div v-if="t.tool == 15">问答</div>
  196. <div v-if="t.tool == 16">作业提交</div>
  197. <div v-if="t.tool == 50">批量上传</div>
  198. <div v-if="t.tool == 41">选择匹配</div>
  199. <div v-if="t.tool == 47">排序</div>
  200. <div v-if="t.tool == 40">个人评价</div>
  201. <div v-if="t.tool == 18">训练平台</div>
  202. <div v-if="t.tool == 21">AIoT Blockly</div>
  203. <div v-if="t.tool == 23">AI Python</div>
  204. <div v-if="t.tool == 24">AI Blockly</div>
  205. <div v-if="t.tool == 32">源码编辑</div>
  206. <div v-if="t.tool == 57">CocoPi</div>
  207. <div v-if="t.tool == 63">海龟编程</div>
  208. <div v-if="t.tool == 28">翻译</div>
  209. <div v-if="t.tool == 31">数字画板</div>
  210. <div v-if="t.tool == 39">GeoGebra</div>
  211. <div v-if="t.tool == 66">公式编辑</div>
  212. <div v-if="t.tool == 67">分子结构</div>
  213. <div v-if="t.tool == 68">时间轴</div>
  214. <div v-if="t.tool == 69">英语写作</div>
  215. <div v-if="t.tool == 25">目标管理</div>
  216. <div v-if="t.tool == 26">课程设计</div>
  217. <div v-if="t.tool == 62">交互视频</div>
  218. </div>
  219. </div>
  220. </div>
  221. </div>
  222. </div>
  223. </div>
  224. </div>
  225. </div>
  226. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  227. <div class="new_topFixed"></div>
  228. <div class="new_top" :class="{ navLeftCss: !mlDialog }">
  229. <div class="courseIndex">
  230. <div>任务{{ taskCount + 1 }}</div>
  231. <el-tooltip
  232. effect="light"
  233. :content="
  234. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  235. "
  236. placement="top"
  237. >
  238. <div>
  239. {{
  240. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  241. .task
  242. }}
  243. </div>
  244. </el-tooltip>
  245. </div>
  246. <div class="btnAll">
  247. <div class="btnLeft">
  248. <el-tooltip effect="light" content="刷新" placement="top">
  249. <div class="reBtnIcon" @click="refreshCourse">
  250. <span>刷新</span>
  251. </div>
  252. </el-tooltip>
  253. <el-tooltip effect="light" content="评论" placement="top">
  254. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  255. <span>评论</span>
  256. </div>
  257. </el-tooltip>
  258. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  259. <el-tooltip effect="light" content="录制" placement="top">
  260. <div class="vedioIcon" @click="startRecording">
  261. <span>录制</span>
  262. </div>
  263. </el-tooltip>
  264. </div>
  265. <div v-else-if="tType == 1 || tType == 4">
  266. <el-tooltip effect="light" content="下载" placement="top">
  267. <div class="vedioIcon1" @click="stopRecording">
  268. <span>下载</span>
  269. </div>
  270. </el-tooltip>
  271. </div>
  272. </div>
  273. <div class="btnRight">
  274. <div
  275. class="last"
  276. @click="nextOrpreSteps(0)"
  277. v-if="!(IsFollow && tType == 2)"
  278. @mouseover="isHovered = true"
  279. @mouseout="isHovered = false"
  280. >
  281. <div class="lastImg">
  282. <img
  283. :src="
  284. isHovered
  285. ? require('../../assets/icon/newIcons/whiteLast.png')
  286. : require('../../assets/icon/newIcons/last.png')
  287. "
  288. alt=""
  289. />
  290. </div>
  291. <div class="lastText">上一步</div>
  292. </div>
  293. <div
  294. class="last"
  295. @click="nextOrpreSteps(1)"
  296. v-if="!(IsFollow && tType == 2)"
  297. @mouseover="isHovered1 = true"
  298. @mouseout="isHovered1 = false"
  299. >
  300. <div class="lastText">下一步</div>
  301. <div class="lastImg">
  302. <img
  303. :src="
  304. isHovered1
  305. ? require('../../assets/icon/newIcons/whiteNext.png')
  306. : require('../../assets/icon/newIcons/next.png')
  307. "
  308. alt=""
  309. />
  310. </div>
  311. </div>
  312. <!-- <div
  313. class="last"
  314. @click="juriVisible = true"
  315. v-if="tType == 1"
  316. @mouseover="isHovered2 = true"
  317. @mouseout="isHovered2 = false"
  318. >
  319. <div class="lastImg">
  320. <img
  321. :src="
  322. isHovered2
  323. ? require('../../assets/icon/newIcons/whiteLock.png')
  324. : require('../../assets/icon/newIcons/lock.png')
  325. "
  326. alt=""
  327. />
  328. </div>
  329. <div class="lastText">权限</div>
  330. </div> -->
  331. <div
  332. class="returnBtn1 returnIcon"
  333. @click.stop="
  334. goTo(
  335. '/courseDetail?userid=' +
  336. userid +
  337. '&oid=' +
  338. oid +
  339. '&org=' +
  340. org +
  341. '&cid=' +
  342. classId +
  343. '&courseId=' +
  344. id +
  345. '&tType=' +
  346. tType +
  347. '&screenType=' +
  348. screenType
  349. )
  350. "
  351. >
  352. <div class="lastImg">
  353. <img src="../../assets/icon/newIcon/return.png" alt="" />
  354. </div>
  355. <div class="lastText" style="color: #000">返回</div>
  356. </div>
  357. </div>
  358. <!-- <div
  359. class="returnBtn lockIcon"
  360. @click="juriVisible = true"
  361. v-if="tType == 1"
  362. >
  363. 权限
  364. </div>
  365. <div
  366. class="returnBtn vedioIcon"
  367. @click="startRecording"
  368. v-if="!videoStart && (tType == 1 || tType == 4)"
  369. >
  370. 录制
  371. </div>
  372. <div
  373. class="returnBtn"
  374. @click="stopRecording"
  375. v-else-if="tType == 1 || tType == 4"
  376. style="background: #ee5255"
  377. >
  378. 下载
  379. </div>
  380. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  381. 评论
  382. </div>
  383. <div
  384. class="returnBtn"
  385. @click="nextOrpreSteps(0)"
  386. v-if="!(IsFollow && tType == 2)"
  387. >
  388. 上一步
  389. </div>
  390. <div
  391. class="returnBtn"
  392. @click="nextOrpreSteps(1)"
  393. v-if="!(IsFollow && tType == 2)"
  394. >
  395. 下一步
  396. </div>
  397. <div class="returnBtn" @click="refreshCourse">刷新</div>
  398. <div
  399. class="returnBtn returnIcon"
  400. @click.stop="
  401. goTo(
  402. '/courseDetail?userid=' +
  403. userid +
  404. '&oid=' +
  405. oid +
  406. '&org=' +
  407. org +
  408. '&cid=' +
  409. classId +
  410. '&courseId=' +
  411. id +
  412. '&tType=' +
  413. tType +
  414. '&screenType=' +
  415. screenType
  416. )
  417. "
  418. >
  419. 返回
  420. </div> -->
  421. </div>
  422. </div>
  423. <div
  424. class="isNoMessage"
  425. v-if="
  426. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  427. .chapterData.length == 0 &&
  428. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  429. .toolChoose[0].tool.length == 0 &&
  430. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  431. .taskDetail == '' &&
  432. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  433. .eList &&
  434. !(
  435. courseDetail.userid == userid ||
  436. (courseDetail.course_teacher &&
  437. courseDetail.course_teacher.indexOf(userid) != -1)
  438. )
  439. "
  440. >
  441. <img src="../../assets/icon/isNoMessage.png" alt />
  442. </div>
  443. <div class="study_top" :class="{ pzClass: pzDialog }">
  444. <div
  445. class="vedioBox"
  446. v-if="
  447. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  448. .taskDetail != '' ||
  449. vChapterData[taskCount].length > 0 ||
  450. fileC[taskCount].length > 0
  451. "
  452. style="border-radius: 0 0 20px 20px"
  453. >
  454. <div
  455. class="taskBox"
  456. v-if="
  457. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  458. .taskDetail != ''
  459. "
  460. >
  461. <div
  462. style="
  463. display: flex;
  464. flex-wrap: nowrap;
  465. flex-direction: column;
  466. position: relative;
  467. "
  468. >
  469. <div
  470. style="
  471. padding: 15px 0;
  472. line-height: 29px;
  473. font-size: 18px;
  474. color: #0e1e33;
  475. "
  476. class="cont"
  477. v-if="
  478. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  479. .taskDetail != ''
  480. "
  481. v-html="
  482. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  483. .taskDetail
  484. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  485. taskCount
  486. ].taskDetail
  487. : '暂无描述'
  488. "
  489. ></div>
  490. </div>
  491. </div>
  492. <div
  493. class="student_head"
  494. v-if="
  495. vChapterData[taskCount].length > 0 ||
  496. fileC[taskCount].length > 0
  497. "
  498. >
  499. <div class="vedioTaskBox" v-loading="downLoading">
  500. <div
  501. :class="
  502. contentDialog == false
  503. ? 'box_course isContentCss'
  504. : 'box_course'
  505. "
  506. v-if="
  507. vChapterData.length > 0 &&
  508. vChapterData[taskCount] &&
  509. showType !== ''
  510. "
  511. >
  512. <div class="wheel" style="height: auto" v-if="showType === 0">
  513. <div
  514. class="workd_media"
  515. style="height: 650px; width: calc(100% - 50px)"
  516. >
  517. <video-player
  518. class="video-player vjs-custom-skin"
  519. :class="contentDialog == false ? 'isAllWidth' : ''"
  520. :playsinline="true"
  521. :options="playerO[taskCount]"
  522. @play="onPlayerPlay($event)"
  523. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  524. ></video-player>
  525. </div>
  526. </div>
  527. <div
  528. class="wheel"
  529. v-if="showType == 1"
  530. style="
  531. box-shadow: 0 0 6px 1px #f2f2f2;
  532. width: 95%;
  533. margin: 0 auto;
  534. background: #f1f1f1;
  535. "
  536. >
  537. <div class="title">查看文档</div>
  538. <el-form class="textBox">
  539. <el-form-item class="textTitle">
  540. <div style="font-size: 22px">
  541. {{ text.name }}
  542. </div>
  543. </el-form-item>
  544. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  545. <div v-html="text.url" class="textContent cont"></div>
  546. </el-form>
  547. </div>
  548. <div
  549. class="wheel"
  550. v-if="
  551. pptImgUrl1.indexOf(
  552. 'https://view.officeapps.live.com/op/view.aspx?src='
  553. ) != -1 && showType == 2
  554. "
  555. style="width: 95%; margin: 0 auto"
  556. >
  557. <iframe
  558. style="width: 100%; height: 100%; border: none"
  559. :src="pptImgUrl1"
  560. ></iframe>
  561. </div>
  562. <div
  563. class="wheel"
  564. v-else-if="showType == 2"
  565. style="width: 95%; margin: 0 auto"
  566. >
  567. <iframe
  568. style="width: 100%; height: 100%; border: none"
  569. security="restricted"
  570. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  571. :src="pptImgUrl1"
  572. ></iframe>
  573. </div>
  574. <div
  575. class="wheel"
  576. v-if="showType == 3"
  577. style="width: 95%; margin: 0 auto"
  578. >
  579. <pdf
  580. :pdfUrl="pptImgUrl1"
  581. style="width: 100%; height: 100%; overflow: auto"
  582. ></pdf>
  583. </div>
  584. <div
  585. class="wheel"
  586. v-if="showType == 4"
  587. style="width: 95%; margin: 0 auto"
  588. >
  589. <el-image
  590. :src="pptImgUrl1"
  591. fit="contain"
  592. style="width: 100%; height: 100%; cursor: pointer"
  593. @click="previewImg(pptImgUrl1)"
  594. ></el-image>
  595. </div>
  596. </div>
  597. <div
  598. class="pButton"
  599. style="position: absolute; right: 20px; top: 0; z-index: 998"
  600. v-if="!contentDialog"
  601. @click="setContent(true)"
  602. >
  603. <!-- 批 -->
  604. <img
  605. src="../../assets/icon/newIcons/isLeft.png"
  606. style="width: 45px"
  607. alt=""
  608. />
  609. </div>
  610. <div
  611. v-if="contentDialog == true"
  612. :style="{
  613. width:
  614. (vChapterData[taskCount].length > 0 ||
  615. fileC[taskCount].length > 0) &&
  616. showType === ''
  617. ? 'calc(100%)'
  618. : '300px',
  619. margin:
  620. (vChapterData[taskCount].length > 0 ||
  621. fileC[taskCount].length > 0) &&
  622. showType === ''
  623. ? '0 15px'
  624. : '0 15px 0 0',
  625. }"
  626. >
  627. <div
  628. class="vedioList"
  629. v-if="
  630. vChapterData[taskCount].length > 0 ||
  631. fileC[taskCount].length > 0
  632. "
  633. style="height: 650px"
  634. >
  635. <div class="navCorOpenBox">
  636. <div class="navTitile">内容列表:</div>
  637. <div class="navCorOpen" @click="setContent(false)">
  638. <img
  639. src="../../assets/icon/newIcons/isRight.png"
  640. alt=""
  641. />
  642. </div>
  643. </div>
  644. <div class="navBox">
  645. <div
  646. v-show="
  647. vChapterData[taskCount].length > 0 ||
  648. fileC[taskCount].length > 0
  649. "
  650. style="padding: 10px 0 25px 0"
  651. >
  652. <div
  653. class="vedioTimeBox"
  654. v-for="(vitem, vindex) in vChapterData[taskCount]"
  655. :key="vindex + '1'"
  656. >
  657. <div class="navListItem" v-if="vitem.type == 2">
  658. <div
  659. @click="lookVedio(vitem.url, vindex)"
  660. class="navText"
  661. :class="isClickNav == vindex ? 'isClickNav' : ''"
  662. >
  663. <span v-if="vitem.text">{{ vitem.text }}-</span
  664. >{{ vitem.name }}
  665. </div>
  666. <div class="downIcon" @click="downloadFile2(vitem)">
  667. <img
  668. src="../../assets/icon/newIcon/down.png"
  669. alt
  670. />
  671. </div>
  672. </div>
  673. <div class="navListItem" v-if="vitem.type == 6">
  674. <div
  675. @click="lookText(taskCount, vindex)"
  676. class="navText"
  677. :class="isClickNav == vindex ? 'isClickNav' : ''"
  678. >
  679. {{ vitem.name }}.doc
  680. </div>
  681. <div
  682. class="downIcon"
  683. @click="checkFileFull1(vitem.type, vitem)"
  684. >
  685. <img
  686. src="../../assets/icon/newIcon/allScreen.png"
  687. alt
  688. />
  689. </div>
  690. </div>
  691. <div
  692. class="navListItem"
  693. v-if="vitem.type == 8 || vitem.type == 14"
  694. >
  695. <div
  696. @click="doUrl(vitem.url, vindex)"
  697. class="navText"
  698. :class="isClickNav == vindex ? 'isClickNav' : ''"
  699. >
  700. {{ vitem.title ? vitem.title : vitem.url }}
  701. </div>
  702. <div
  703. class="downIcon"
  704. @click="checkFileFull1(vitem.type, vitem)"
  705. >
  706. <img
  707. src="../../assets/icon/newIcon/allScreen.png"
  708. alt
  709. />
  710. </div>
  711. </div>
  712. <div class="navListItem" v-if="vitem.type == 3">
  713. <div
  714. @click="downFile(vitem, vindex)"
  715. class="navText"
  716. :class="isClickNav == vindex ? 'isClickNav' : ''"
  717. >
  718. <span v-if="vitem.text">{{ vitem.text }}-</span
  719. >{{ vitem.name }}
  720. </div>
  721. <div
  722. class="downIcon"
  723. @click="checkFileFull1(vitem.type, vitem)"
  724. >
  725. <img
  726. src="../../assets/icon/newIcon/allScreen.png"
  727. alt
  728. />
  729. </div>
  730. <div class="downIcon" @click="downloadFile2(vitem)">
  731. <img
  732. src="../../assets/icon/newIcon/down.png"
  733. alt
  734. />
  735. </div>
  736. </div>
  737. <div class="navListItem" v-if="vitem.type == 12">
  738. <div class="navText" @click="downloadFile2(vitem)">
  739. <span v-if="vitem.text">{{ vitem.text }}-</span
  740. >{{ vitem.name }}
  741. </div>
  742. <div
  743. class="downIcon"
  744. @click="checkFileFull1(vitem.type, vitem)"
  745. >
  746. <img
  747. src="../../assets/icon/newIcon/allScreen.png"
  748. alt
  749. />
  750. </div>
  751. <div class="downIcon" @click="downloadFile2(vitem)">
  752. <img
  753. src="../../assets/icon/newIcon/down.png"
  754. alt
  755. />
  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
  768. src="../../assets/icon/newIcon/down.png"
  769. alt
  770. />
  771. </div>
  772. </div>
  773. </div>
  774. <div
  775. class="fileC_box"
  776. v-if="fileC[taskCount].length > 0"
  777. >
  778. <div class="fileC_title">以下文件不支持预览</div>
  779. <div
  780. class="vedioTimeBox"
  781. v-for="(vitem, vindex) in fileC[taskCount]"
  782. :key="vindex + '1'"
  783. >
  784. <div class="navListItem" v-if="vitem.type == 12">
  785. <div class="navText" style="color: #acb4bf">
  786. <span v-if="vitem.text">{{ vitem.text }}-</span
  787. >{{ vitem.name }}
  788. </div>
  789. <div
  790. class="downIcon"
  791. @click="downloadFile2(vitem)"
  792. >
  793. <img
  794. src="../../assets/icon/newIcon/down.png"
  795. alt
  796. />
  797. </div>
  798. </div>
  799. </div>
  800. </div>
  801. </div>
  802. </div>
  803. </div>
  804. </div>
  805. </div>
  806. <div style="width: calc(100% - 315px)">
  807. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  808. <!-- <el-button
  809. type="primary"
  810. class="newButton"
  811. @click="checkFileFull(showType, pptImgUrl1)"
  812. >全屏查看</el-button
  813. >
  814. <el-button
  815. type="primary"
  816. class="newButton"
  817. @click="downloadFile(pptImgUrl1)"
  818. v-if="showType != 2"
  819. >文件下载</el-button
  820. > -->
  821. <el-button
  822. class="newButton"
  823. v-if="
  824. showType == 2 &&
  825. pptImgUrl1.indexOf(
  826. 'https://view.officeapps.live.com/op/view.aspx?src='
  827. ) == -1
  828. "
  829. type="primary"
  830. @click="openLine(pptImgUrl1)"
  831. >打开链接
  832. </el-button>
  833. </div>
  834. <!-- <div
  835. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  836. v-if="showType == 1"
  837. >
  838. <el-button
  839. type="primary"
  840. class="newButton"
  841. @click="checkFileFull(showType, text)"
  842. >全屏查看</el-button
  843. >
  844. </div> -->
  845. </div>
  846. </div>
  847. </div>
  848. <div class="student_body" v-resize="resize">
  849. <div
  850. class="vedioBox"
  851. :style="{
  852. borderRadius:
  853. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  854. .taskDetail == '' &&
  855. vChapterData[taskCount].length == 0 &&
  856. fileC[taskCount].length == 0
  857. ? '0 0 20px 20px'
  858. : '20px',
  859. }"
  860. v-if="
  861. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  862. .toolChoose[0].tool &&
  863. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  864. .toolChoose[0].tool.length > 0
  865. "
  866. >
  867. <div
  868. class="toolHeng2"
  869. style="position: relative"
  870. v-if="
  871. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  872. .toolChoose[0].tool &&
  873. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  874. .toolChoose[0].tool.length &&
  875. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  876. .toolChoose[0].tool.length > 0
  877. "
  878. >
  879. <div class="workNav">工作区</div>
  880. <div
  881. class="filebox"
  882. style="flex-wrap: nowrap"
  883. v-for="(tool, toolIndex) in chapInfoList[courseType]
  884. .chapterInfo[0].taskJson[taskCount].toolChoose"
  885. :key="toolIndex"
  886. >
  887. <div class="bzBox">
  888. <div class="yCss"></div>
  889. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  890. 工具{{ toolIndex + 1 }}
  891. </div>
  892. <div
  893. v-if="timeWorkList[toolIndex].length > 0"
  894. style="margin: 0 0 0 10px"
  895. >
  896. {{
  897. timeWorkList[toolIndex][0].time
  898. ? "时间:" + timeWorkList[toolIndex][0].time
  899. : ""
  900. }}
  901. </div>
  902. </div>
  903. <div class="toolBox">
  904. <div>
  905. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  906. :key="indexTool"-->
  907. <!-- <div class="iframeBox">
  908. <div
  909. class="addPoint isBorder"
  910. v-for="(tooC, toolCIndex) in tool.tool"
  911. :key="toolCIndex"
  912. >
  913. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  914. <div
  915. class="iframeName"
  916. >
  917. 电子白板
  918. </div>
  919. <iframe
  920. src="https://iwb.cocorobo.cn/"
  921. ref="whiteBoard"
  922. ></iframe>
  923. </div>
  924. </div>
  925. </div>-->
  926. <div class="noiframeBox">
  927. <div
  928. class="addPoint"
  929. v-for="(tooC, toolCIndex) in tool.tool"
  930. :key="toolCIndex"
  931. >
  932. <div v-if="tooC == 1">
  933. <img
  934. src="../../assets/icon/secondToolList/whiteBoard.png"
  935. alt
  936. @click="addTools(tooC, toolIndex, taskCount)"
  937. />
  938. <div style="margin: 5px 0">电子白板</div>
  939. </div>
  940. <div v-if="tooC == 3">
  941. <img
  942. src="../../assets/icon/secondToolList/mindMapping.png"
  943. alt
  944. @click="addTools(tooC, toolIndex, taskCount)"
  945. />
  946. <div style="margin: 5px 0">思维导图</div>
  947. </div>
  948. <div v-if="tooC == 6">
  949. <img
  950. src="../../assets/icon/secondToolList/doc.png"
  951. alt
  952. @click="addTools(tooC, toolIndex, taskCount)"
  953. />
  954. <div style="margin: 5px 0">协同文档</div>
  955. </div>
  956. <div v-if="tooC == 7">
  957. <img
  958. src="../../assets/icon/secondToolList/mindNetwork.png"
  959. alt
  960. @click="addTools(tooC, toolIndex, taskCount)"
  961. />
  962. <div style="margin: 5px 0">思维网格</div>
  963. </div>
  964. <div v-if="tooC == 8">
  965. <img
  966. src="../../assets/icon/secondToolList/library.png"
  967. alt
  968. @click="addTools(tooC, toolIndex, taskCount)"
  969. />
  970. <div style="margin: 5px 0">素材库</div>
  971. </div>
  972. <div v-if="tooC == 17">
  973. <img
  974. src="../../assets/icon/secondToolList/library.png"
  975. alt
  976. @click="addTools(tooC, toolIndex, taskCount)"
  977. />
  978. <div style="margin: 5px 0">学习资料</div>
  979. </div>
  980. <div v-if="tooC == 2">
  981. <img
  982. @click="addTools(tooC, toolIndex, taskCount)"
  983. src="../../assets/icon/secondToolList/note.png"
  984. alt
  985. />
  986. <div style="margin: 5px 0">便签</div>
  987. </div>
  988. <div v-if="tooC == 4">
  989. <img
  990. @click="addTools(tooC, toolIndex, taskCount)"
  991. src="../../assets/icon/thirdToolList/ask.png"
  992. alt
  993. />
  994. <div style="margin: 5px 0">问卷调查</div>
  995. </div>
  996. <div v-if="tooC == 45">
  997. <img
  998. @click="addTools(tooC, toolIndex, taskCount)"
  999. src="../../assets/icon/thirdToolList/choose.png"
  1000. alt
  1001. />
  1002. <div style="margin: 5px 0">选择题</div>
  1003. </div>
  1004. <!-- <div v-if="tooC == 5">
  1005. <img
  1006. @click="addTools(tooC, toolIndex, taskCount)"
  1007. src="../../assets/icon/thirdToolList/score.png"
  1008. alt
  1009. />
  1010. <div style="margin: 5px 0">量规评分</div>
  1011. </div> -->
  1012. <div v-if="tooC == 10">
  1013. <img
  1014. @click="addTools(tooC, toolIndex, taskCount)"
  1015. src="../../assets/icon/thirdToolList/time.png"
  1016. alt
  1017. />
  1018. <div style="margin: 5px 0">倒计时</div>
  1019. </div>
  1020. <div v-if="tooC == 15">
  1021. <img
  1022. @click="addTools(tooC, toolIndex, taskCount)"
  1023. src="../../assets/icon/thirdToolList/answer.png"
  1024. alt
  1025. />
  1026. <div style="margin: 5px 0">问答</div>
  1027. </div>
  1028. <div v-if="tooC == 26">
  1029. <img
  1030. @click="addTools(tooC, toolIndex, taskCount)"
  1031. src="../../assets/icon/thirdToolList/courseDesign.png"
  1032. alt
  1033. />
  1034. <div style="margin: 5px 0">课程设计</div>
  1035. </div>
  1036. <div v-if="tooC == 18">
  1037. <img
  1038. @click="addTools(tooC, toolIndex, taskCount)"
  1039. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1040. alt
  1041. />
  1042. <div style="margin: 5px 0">训练服务器</div>
  1043. </div>
  1044. <div v-if="tooC == 16">
  1045. <img
  1046. @click="addTools(tooC, toolIndex, taskCount)"
  1047. src="../../assets/icon/thirdToolList/work.png"
  1048. alt
  1049. />
  1050. <div style="margin: 5px 0">作业提交</div>
  1051. </div>
  1052. <div v-if="tooC == 50">
  1053. <img
  1054. @click="addTools(tooC, toolIndex, taskCount)"
  1055. src="../../assets/icon/thirdToolList/plwork.png"
  1056. alt
  1057. />
  1058. <div style="margin: 5px 0">批量上传</div>
  1059. </div>
  1060. <div v-if="tooC == 21">
  1061. <img
  1062. @click="addTools(tooC, toolIndex, taskCount)"
  1063. src="../../assets/icon/fourthToolList/program.png"
  1064. alt
  1065. />
  1066. <div style="margin: 5px 0">AIoT Blockly</div>
  1067. </div>
  1068. <!-- <div v-if="tooC == 22">
  1069. <img
  1070. @click="addTools(tooC, toolIndex, taskCount)"
  1071. src="../../assets/icon/fourthToolList/program.png"
  1072. alt
  1073. />
  1074. <div style="margin: 5px 0">AI体验</div>
  1075. </div> -->
  1076. <div v-if="tooC == 23">
  1077. <img
  1078. @click="addTools(tooC, toolIndex, taskCount)"
  1079. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1080. alt
  1081. />
  1082. <div style="margin: 5px 0">AI Python</div>
  1083. </div>
  1084. <div v-if="tooC == 24">
  1085. <img
  1086. @click="addTools(tooC, toolIndex, taskCount)"
  1087. src="../../assets/icon/fourthToolList/AIprogram.png"
  1088. alt
  1089. />
  1090. <div style="margin: 5px 0">AI Blockly</div>
  1091. </div>
  1092. <div v-if="tooC == 25">
  1093. <img
  1094. @click="addTools(tooC, toolIndex, taskCount)"
  1095. src="../../assets/icon/thirdToolList/evalua.png"
  1096. alt
  1097. />
  1098. <div style="margin: 5px 0">目标管理</div>
  1099. </div>
  1100. <div v-if="tooC == 31">
  1101. <img
  1102. @click="addTools(tooC, toolIndex, taskCount)"
  1103. src="../../assets/icon/secondToolList/networkPanel.png"
  1104. alt
  1105. />
  1106. <div style="margin: 5px 0">数学画板</div>
  1107. </div>
  1108. <div v-if="tooC == 28">
  1109. <img
  1110. @click="addTools(tooC, toolIndex, taskCount)"
  1111. src="../../assets/icon/secondToolList/translation.png"
  1112. alt
  1113. />
  1114. <div style="margin: 5px 0">翻译</div>
  1115. </div>
  1116. <div v-if="tooC == 37">
  1117. <img
  1118. @click="addTools(tooC, toolIndex, taskCount)"
  1119. src="../../assets/icon/secondToolList/mohe.png"
  1120. alt
  1121. />
  1122. <div style="margin: 5px 0">魔盒识字</div>
  1123. </div>
  1124. <div v-if="tooC == 38">
  1125. <img
  1126. @click="addTools(tooC, toolIndex, taskCount)"
  1127. src="../../assets/icon/secondToolList/24game.png"
  1128. alt
  1129. />
  1130. <div style="margin: 5px 0">24点</div>
  1131. </div>
  1132. <div v-if="tooC == 39">
  1133. <img
  1134. @click="addTools(tooC, toolIndex, taskCount)"
  1135. src="../../assets/icon/secondToolList/GeoGebra.png"
  1136. alt
  1137. />
  1138. <div style="margin: 5px 0">GeoGebra</div>
  1139. </div>
  1140. <div v-if="tooC == 32">
  1141. <img
  1142. @click="addTools(tooC, toolIndex, taskCount)"
  1143. src="../../assets/icon/thirdToolList/code.png"
  1144. alt
  1145. />
  1146. <div style="margin: 5px 0">源码编辑</div>
  1147. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1148. style="position: absolute;left: 110px;bottom: 30px;">
  1149. 上传文件
  1150. <input type="file" accept="*" style="display: none"
  1151. @change="beforeUpload1($event, 7, toolIndex)" />
  1152. </div> -->
  1153. </div>
  1154. <div v-if="tooC == 40">
  1155. <img
  1156. @click="addTools(tooC, toolIndex, taskCount)"
  1157. src="../../assets/icon/secondToolList/eval.png"
  1158. alt
  1159. />
  1160. <div style="margin: 5px 0">个人评价</div>
  1161. </div>
  1162. <div v-if="tooC == 41">
  1163. <img
  1164. @click="addTools(tooC, toolIndex, taskCount)"
  1165. src="../../assets/icon/thirdToolList/select.png"
  1166. alt
  1167. />
  1168. <div style="margin: 5px 0">选择匹配</div>
  1169. </div>
  1170. <div v-if="tooC == 44">
  1171. <img
  1172. @click="addTools(tooC, toolIndex, taskCount)"
  1173. src="../../assets/icon/thirdToolList/hanClass.png"
  1174. alt
  1175. />
  1176. <div style="margin: 5px 0">汉字宫</div>
  1177. </div>
  1178. <div v-if="tooC == 47">
  1179. <img
  1180. @click="addTools(tooC, toolIndex, taskCount)"
  1181. src="../../assets/icon/fourthToolList/conSentences.png"
  1182. alt
  1183. />
  1184. <div style="margin: 5px 0">排序</div>
  1185. </div>
  1186. <div v-if="tooC == 48">
  1187. <img
  1188. @click="addTools(tooC, toolIndex, taskCount)"
  1189. src="../../assets/icon/fourthToolList/table.png"
  1190. alt
  1191. />
  1192. <div style="margin: 5px 0">表格</div>
  1193. </div>
  1194. <div v-if="tooC == 52">
  1195. <img
  1196. @click="addTools(tooC, toolIndex, taskCount)"
  1197. src="../../assets/icon/fourthToolList/text.png"
  1198. alt
  1199. />
  1200. <div style="margin: 5px 0">文档</div>
  1201. </div>
  1202. <div v-if="tooC == 49">
  1203. <img
  1204. @click="addTools(tooC, toolIndex, taskCount)"
  1205. src="../../assets/icon/fourthToolList/group.png"
  1206. alt
  1207. />
  1208. <div style="margin: 5px 0">学生分组</div>
  1209. </div>
  1210. <div v-if="tooC == 57">
  1211. <img
  1212. @click="addTools(tooC, toolIndex, taskCount)"
  1213. src="../../assets/icon/fourthToolList/cocopi.png"
  1214. alt
  1215. />
  1216. <div style="margin: 5px 0">CocoPi</div>
  1217. </div>
  1218. <div v-if="tooC == 58">
  1219. <img
  1220. @click="addTools(tooC, toolIndex, taskCount)"
  1221. src="../../assets/icon/fourthToolList/car.png"
  1222. alt
  1223. />
  1224. <div style="margin: 5px 0">模拟驾驶</div>
  1225. </div>
  1226. <div v-if="tooC == 59">
  1227. <img
  1228. @click="addTools(tooC, toolIndex, taskCount)"
  1229. src="../../assets/icon/fourthToolList/lineSearch.png"
  1230. alt
  1231. />
  1232. <div style="margin: 5px 0">路径搜索</div>
  1233. </div>
  1234. <div v-if="tooC == 60">
  1235. <img
  1236. @click="addTools(tooC, toolIndex, taskCount)"
  1237. src="../../assets/icon/fourthToolList/deepLearning.png"
  1238. alt
  1239. />
  1240. <div style="margin: 5px 0">深度学习</div>
  1241. </div>
  1242. <div v-if="tooC == 61">
  1243. <img
  1244. @click="addTools(tooC, toolIndex, taskCount)"
  1245. src="../../assets/icon/fourthToolList/allHistory.png"
  1246. alt
  1247. />
  1248. <div style="margin: 5px 0">全历史</div>
  1249. </div>
  1250. <div v-if="tooC == 62">
  1251. <img
  1252. @click="addTools(tooC, toolIndex, taskCount)"
  1253. src="../../assets/icon/fourthToolList/interVideo.png"
  1254. alt
  1255. />
  1256. <div style="margin: 5px 0">交互视频</div>
  1257. </div>
  1258. <div v-if="tooC == 63">
  1259. <img
  1260. @click="addTools(tooC, toolIndex, taskCount)"
  1261. src="../../assets/icon/fourthToolList/Wood.png"
  1262. alt
  1263. />
  1264. <div style="margin: 5px 0">海龟编程</div>
  1265. </div>
  1266. <div v-if="tooC == 65">
  1267. <img
  1268. @click="addTools(tooC, toolIndex, taskCount)"
  1269. src="../../assets/icon/firstToolList/pickPeople.png"
  1270. alt
  1271. />
  1272. <div style="margin: 5px 0">挑人</div>
  1273. </div>
  1274. <div v-if="tooC == 66">
  1275. <img
  1276. @click="addTools(tooC, toolIndex, taskCount)"
  1277. src="../../assets/icon/secondToolList/formulaEdi.png"
  1278. alt
  1279. />
  1280. <div style="margin: 5px 0">公式编辑</div>
  1281. </div>
  1282. <div v-if="tooC == 67">
  1283. <img
  1284. @click="addTools(tooC, toolIndex, taskCount)"
  1285. src="../../assets/icon/secondToolList/molStr.png"
  1286. alt
  1287. />
  1288. <div style="margin: 5px 0">分子结构</div>
  1289. </div>
  1290. <div v-if="tooC == 68">
  1291. <img
  1292. @click="addTools(tooC, toolIndex, taskCount)"
  1293. src="../../assets/icon/secondToolList/timeAxis.png"
  1294. alt
  1295. />
  1296. <div style="margin: 5px 0">时间轴</div>
  1297. </div>
  1298. <div v-if="tooC == 69">
  1299. <img
  1300. @click="addTools(tooC, toolIndex, taskCount)"
  1301. src="../../assets/icon/secondToolList/english.png"
  1302. alt
  1303. />
  1304. <div style="margin: 5px 0">英语写作</div>
  1305. </div>
  1306. </div>
  1307. </div>
  1308. </div>
  1309. <div class="tooldetail" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1310. <!-- <div class="toolTitle">工具描述</div> -->
  1311. <div style="height:100%;"
  1312. v-html="contentConvent(tool.toolDetail)"
  1313. v-if="toolDetailIndex != toolIndex"
  1314. @click.stop="updateToolDetail(toolIndex, 2)"
  1315. ></div>
  1316. <div v-else @click.stop="" style="height:100%;">
  1317. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1318. </div>
  1319. </div>
  1320. <el-button
  1321. type="primary"
  1322. v-if="tool.tool[0] == 32"
  1323. style="position: absolute; right: 30px; top: 30px"
  1324. @click="addImg($event)"
  1325. >上传作业<input
  1326. type="file"
  1327. accept="*"
  1328. style="display: none"
  1329. @change="beforeUpload1($event, 7, toolIndex)"
  1330. /></el-button>
  1331. <el-button
  1332. type="primary"
  1333. v-if="tool.tool[0] == 15"
  1334. style="position: absolute; right: 30px; top: 30px"
  1335. @click="openWordCloud(toolIndex)"
  1336. >生成词云</el-button
  1337. >
  1338. <el-button
  1339. type="primary"
  1340. v-if="
  1341. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1342. "
  1343. style="position: absolute; right: 30px; top: 30px"
  1344. @click="uploadWorks(toolIndex)"
  1345. >导出作业</el-button
  1346. >
  1347. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1348. position: absolute;
  1349. right: 30px;
  1350. transform: translateY(-130%);
  1351. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1352. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1353. </div>
  1354. <div
  1355. v-if="
  1356. tType &&
  1357. tType == 2 &&
  1358. !sIsOpen &&
  1359. tool.tool.indexOf(16) != -1
  1360. "
  1361. class="worksBox"
  1362. >
  1363. <div
  1364. class="zuoyeYulan"
  1365. v-if="workStudent[toolIndex].length > 0"
  1366. >
  1367. <span class="worksTitle">作业预览</span>
  1368. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1369. </div>
  1370. <div
  1371. class="worksDetailBox"
  1372. v-if="workStudent[toolIndex].length > 0"
  1373. >
  1374. <div
  1375. class="works"
  1376. style="
  1377. width: 200px;
  1378. height: 140px;
  1379. margin: 10px 10px 10px 0;
  1380. box-shadow: 0 0 6px 1px #dfdada;
  1381. "
  1382. v-for="(w, wIndex) in workStudent[toolIndex]"
  1383. :key="wIndex"
  1384. >
  1385. <div class="workImg" v-if="w.type == 0">
  1386. <img
  1387. :src="w.works"
  1388. @click="previewImg(w.works)"
  1389. alt
  1390. />
  1391. <div
  1392. class="answerScore"
  1393. v-if="w.score"
  1394. @click.stop="openScore(w)"
  1395. :class="{
  1396. rightW:
  1397. w.userid == userid || tType == 1 || tType == 4,
  1398. }"
  1399. >
  1400. {{ JSON.parse(w.score).wScore }}分
  1401. </div>
  1402. <div
  1403. class="answerScore"
  1404. @click.stop="openScore(w)"
  1405. v-else-if="courseDetail.userid == userid"
  1406. :class="{
  1407. rightW:
  1408. w.userid == userid || tType == 1 || tType == 4,
  1409. }"
  1410. >
  1411. 评分
  1412. </div>
  1413. <img
  1414. class="deleteImg"
  1415. src="../../assets/deleteworks.png"
  1416. v-if="
  1417. w.userid == userid || tType == 1 || tType == 4
  1418. "
  1419. @click.stop="deleteWorks(w.wid)"
  1420. alt
  1421. />
  1422. </div>
  1423. <div class="workImg" v-if="w.type == 1">
  1424. <img :src="word" @click="openFile(w.works)" alt />
  1425. <div
  1426. class="answerScore"
  1427. v-if="w.score"
  1428. @click.stop="openScore(w)"
  1429. :class="{
  1430. rightW:
  1431. w.userid == userid || tType == 1 || tType == 4,
  1432. }"
  1433. >
  1434. {{ JSON.parse(w.score).wScore }}分
  1435. </div>
  1436. <div
  1437. class="answerScore"
  1438. @click.stop="openScore(w)"
  1439. v-else-if="courseDetail.userid == userid"
  1440. :class="{
  1441. rightW:
  1442. w.userid == userid || tType == 1 || tType == 4,
  1443. }"
  1444. >
  1445. 评分
  1446. </div>
  1447. <img
  1448. class="deleteImg"
  1449. src="../../assets/deleteworks.png"
  1450. v-if="
  1451. w.userid == userid || tType == 1 || tType == 4
  1452. "
  1453. @click.stop="deleteWorks(w.wid)"
  1454. alt
  1455. />
  1456. </div>
  1457. <div class="workImg" v-if="w.type == 3">
  1458. <img
  1459. style="cursor: pointer"
  1460. :src="video"
  1461. @click="openVideo(w)"
  1462. alt
  1463. />
  1464. <div
  1465. class="answerScore"
  1466. v-if="w.score"
  1467. @click.stop="openScore(w)"
  1468. :class="{
  1469. rightW:
  1470. w.userid == userid || tType == 1 || tType == 4,
  1471. }"
  1472. >
  1473. {{ JSON.parse(w.score).wScore }}分
  1474. </div>
  1475. <div
  1476. class="answerScore"
  1477. @click.stop="openScore(w)"
  1478. v-else-if="courseDetail.userid == userid"
  1479. :class="{
  1480. rightW:
  1481. w.userid == userid || tType == 1 || tType == 4,
  1482. }"
  1483. >
  1484. 评分
  1485. </div>
  1486. <img
  1487. class="deleteImg"
  1488. src="../../assets/deleteworks.png"
  1489. v-if="
  1490. w.userid == userid || tType == 1 || tType == 4
  1491. "
  1492. @click.stop="deleteWorks(w.wid)"
  1493. alt
  1494. />
  1495. </div>
  1496. <div class="workImg" v-if="w.type == 12">
  1497. <img
  1498. style="cursor: pointer"
  1499. :src="word2"
  1500. @click="downloadFile(w.works)"
  1501. alt
  1502. />
  1503. <div
  1504. class="answerScore"
  1505. v-if="w.score"
  1506. @click.stop="openScore(w)"
  1507. :class="{
  1508. rightW:
  1509. w.userid == userid || tType == 1 || tType == 4,
  1510. }"
  1511. >
  1512. {{ JSON.parse(w.score).wScore }}分
  1513. </div>
  1514. <div
  1515. class="answerScore"
  1516. @click.stop="openScore(w)"
  1517. v-else-if="courseDetail.userid == userid"
  1518. :class="{
  1519. rightW:
  1520. w.userid == userid || tType == 1 || tType == 4,
  1521. }"
  1522. >
  1523. 评分
  1524. </div>
  1525. <img
  1526. class="deleteImg"
  1527. src="../../assets/deleteworks.png"
  1528. v-if="
  1529. w.userid == userid || tType == 1 || tType == 4
  1530. "
  1531. @click.stop="deleteWorks(w.wid)"
  1532. alt
  1533. />
  1534. </div>
  1535. <div class="worksName">
  1536. <div>{{ w.sName }}</div>
  1537. </div>
  1538. </div>
  1539. </div>
  1540. </div>
  1541. <div
  1542. v-if="
  1543. tType &&
  1544. tType == 2 &&
  1545. !sIsOpen &&
  1546. tool.tool.indexOf(32) != -1
  1547. "
  1548. class="worksBox"
  1549. >
  1550. <div
  1551. class="zuoyeYulan"
  1552. v-if="workStudent[toolIndex].length > 0"
  1553. >
  1554. <span class="worksTitle">作业预览</span>
  1555. </div>
  1556. <div
  1557. class="worksDetailBox"
  1558. v-if="workStudent[toolIndex].length > 0"
  1559. >
  1560. <div
  1561. class="works"
  1562. style="
  1563. width: 200px;
  1564. height: 140px;
  1565. margin: 10px 10px 10px 0;
  1566. box-shadow: 0 0 6px 1px #dfdada;
  1567. "
  1568. v-for="(w, wIndex) in workStudent[toolIndex]"
  1569. :key="wIndex"
  1570. >
  1571. <div class="workImg">
  1572. <img
  1573. :src="word2"
  1574. @click="downloadFile(w.works)"
  1575. alt
  1576. />
  1577. <div
  1578. class="answerScore"
  1579. v-if="w.score"
  1580. @click.stop="openScore(w)"
  1581. :class="{
  1582. rightW:
  1583. w.userid == userid || tType == 1 || tType == 4,
  1584. }"
  1585. >
  1586. {{ JSON.parse(w.score).wScore }}分
  1587. </div>
  1588. <div
  1589. class="answerScore"
  1590. @click.stop="openScore(w)"
  1591. v-else-if="courseDetail.userid == userid"
  1592. :class="{
  1593. rightW:
  1594. w.userid == userid || tType == 1 || tType == 4,
  1595. }"
  1596. >
  1597. 评分
  1598. </div>
  1599. <img
  1600. class="deleteImg"
  1601. src="../../assets/deleteworks.png"
  1602. v-if="
  1603. w.userid == userid || tType == 1 || tType == 4
  1604. "
  1605. @click.stop="deleteWorks(w.wid)"
  1606. alt
  1607. />
  1608. </div>
  1609. <div class="worksName">
  1610. <div>{{ w.sName }}</div>
  1611. </div>
  1612. </div>
  1613. </div>
  1614. </div>
  1615. <div
  1616. v-if="
  1617. tType &&
  1618. tType == 2 &&
  1619. !sIsOpen &&
  1620. tool.tool.indexOf(57) != -1
  1621. "
  1622. class="worksBox"
  1623. >
  1624. <div
  1625. class="zuoyeYulan"
  1626. v-if="workStudent[toolIndex].length > 0"
  1627. >
  1628. <span class="worksTitle">作业预览</span>
  1629. </div>
  1630. <div
  1631. class="worksDetailBox"
  1632. v-if="workStudent[toolIndex].length > 0"
  1633. >
  1634. <div
  1635. class="works"
  1636. style="
  1637. width: 200px;
  1638. height: 140px;
  1639. margin: 10px 10px 10px 0;
  1640. box-shadow: 0 0 6px 1px #dfdada;
  1641. "
  1642. v-for="(w, wIndex) in workStudent[toolIndex]"
  1643. :key="wIndex"
  1644. >
  1645. <div class="workImg">
  1646. <img
  1647. :src="word2"
  1648. @click="downloadFile(w.works)"
  1649. v-if="w.type == 12"
  1650. alt
  1651. />
  1652. <img
  1653. :src="word2"
  1654. @click="
  1655. openCocoPi(57, toolIndex, w.userid, w.sName)
  1656. "
  1657. v-else-if="w.type == 15"
  1658. alt
  1659. />
  1660. <div
  1661. class="answerScore"
  1662. v-if="w.score"
  1663. @click.stop="openScore(w)"
  1664. :class="{
  1665. rightW:
  1666. w.userid == userid || tType == 1 || tType == 4,
  1667. }"
  1668. >
  1669. {{ JSON.parse(w.score).wScore }}分
  1670. </div>
  1671. <div
  1672. class="answerScore"
  1673. @click.stop="openScore(w)"
  1674. v-else-if="courseDetail.userid == userid"
  1675. :class="{
  1676. rightW:
  1677. w.userid == userid || tType == 1 || tType == 4,
  1678. }"
  1679. >
  1680. 评分
  1681. </div>
  1682. <img
  1683. class="deleteImg"
  1684. src="../../assets/deleteworks.png"
  1685. v-if="
  1686. w.userid == userid || tType == 1 || tType == 4
  1687. "
  1688. @click.stop="deleteWorks(w.wid)"
  1689. alt
  1690. />
  1691. </div>
  1692. <div class="worksName">
  1693. <div>{{ w.sName }}</div>
  1694. </div>
  1695. </div>
  1696. </div>
  1697. </div>
  1698. <div
  1699. v-if="
  1700. tType &&
  1701. tType == 2 &&
  1702. !sIsOpen &&
  1703. tool.tool.indexOf(4) != -1
  1704. "
  1705. class="worksBox"
  1706. >
  1707. <div
  1708. class="zuoyeYulan"
  1709. v-if="workStudent[toolIndex].length > 0"
  1710. >
  1711. <span class="worksTitle">作业预览</span>
  1712. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1713. </div>
  1714. <div
  1715. class="worksDetailBox"
  1716. v-if="workStudent[toolIndex].length > 0"
  1717. >
  1718. <div
  1719. class="isWorksName2"
  1720. v-for="(w, wIndex) in workStudent[toolIndex]"
  1721. :key="wIndex"
  1722. @click="
  1723. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1724. "
  1725. >
  1726. {{ w.sName }}
  1727. <img
  1728. class="deleteImg deleteImg2"
  1729. src="../../assets/deleteworks.png"
  1730. v-if="w.userid == userid || tType == 1 || tType == 4"
  1731. @click.stop="deleteWorks(w.wid)"
  1732. alt
  1733. />
  1734. </div>
  1735. <!-- <div
  1736. class="works"
  1737. style="
  1738. width: 200px;
  1739. height: 140px;
  1740. border-radius: 10px;
  1741. box-shadow: 0 0 6px 1px #dfdada;
  1742. overflow: hidden;
  1743. "
  1744. v-for="(w, wIndex) in workStudent[toolIndex]"
  1745. :key="wIndex"
  1746. >
  1747. <div class="workImg">
  1748. <img
  1749. src="../../assets/icon/works/noImg.png"
  1750. @click="
  1751. openTools(
  1752. 4,
  1753. toolIndex,
  1754. taskCount,
  1755. w.works,
  1756. w.sName
  1757. )
  1758. "
  1759. alt
  1760. />
  1761. </div>
  1762. <div class="worksName">
  1763. <div>{{ w.sName }}</div>
  1764. <div>{{ w.time }}</div>
  1765. </div>
  1766. </div> -->
  1767. </div>
  1768. </div>
  1769. <div
  1770. v-if="
  1771. tType &&
  1772. tType == 2 &&
  1773. !sIsOpen &&
  1774. tool.tool.indexOf(45) != -1
  1775. "
  1776. class="worksBox"
  1777. >
  1778. <div
  1779. class="zuoyeYulan"
  1780. v-if="workStudent[toolIndex].length > 0"
  1781. >
  1782. <span class="worksTitle">作业预览</span>
  1783. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1784. </div>
  1785. <div
  1786. class="worksDetailBox"
  1787. v-if="workStudent[toolIndex].length > 0"
  1788. >
  1789. <div
  1790. class="isWorksName2"
  1791. v-for="(w, wIndex) in workStudent[toolIndex]"
  1792. :key="wIndex"
  1793. @click="
  1794. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1795. "
  1796. >
  1797. {{ w.sName }}
  1798. <img
  1799. class="deleteImg deleteImg2"
  1800. src="../../assets/deleteworks.png"
  1801. v-if="w.userid == userid || tType == 1 || tType == 4"
  1802. @click.stop="deleteWorks(w.wid)"
  1803. alt
  1804. />
  1805. </div>
  1806. </div>
  1807. </div>
  1808. <div
  1809. v-if="
  1810. tType &&
  1811. tType == 2 &&
  1812. !sIsOpen &&
  1813. tool.tool.indexOf(69) != -1
  1814. "
  1815. class="worksBox"
  1816. >
  1817. <div
  1818. class="zuoyeYulan"
  1819. v-if="workStudent[toolIndex].length > 0"
  1820. >
  1821. <span class="worksTitle">作业预览</span>
  1822. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1823. </div>
  1824. <div
  1825. class="worksDetailBox"
  1826. v-if="workStudent[toolIndex].length > 0"
  1827. >
  1828. <div
  1829. class="isWorksName2"
  1830. v-for="(w, wIndex) in workStudent[toolIndex]"
  1831. :key="wIndex"
  1832. @click="
  1833. openTools(69, toolIndex, taskCount, w.works, w.sName)
  1834. "
  1835. >
  1836. {{ w.sName }}
  1837. <img
  1838. class="deleteImg deleteImg2"
  1839. src="../../assets/deleteworks.png"
  1840. v-if="w.userid == userid || tType == 1 || tType == 4"
  1841. @click.stop="deleteWorks(w.wid)"
  1842. alt
  1843. />
  1844. </div>
  1845. </div>
  1846. </div>
  1847. <div
  1848. v-if="
  1849. tType &&
  1850. tType == 2 &&
  1851. !sIsOpen &&
  1852. tool.tool.indexOf(15) != -1
  1853. "
  1854. class="worksBox"
  1855. >
  1856. <div
  1857. class="zuoyeYulan"
  1858. v-if="workStudent[toolIndex].length > 0"
  1859. >
  1860. <span class="worksTitle">作业预览</span>
  1861. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1862. </div>
  1863. <div
  1864. class="worksDetailBox"
  1865. v-if="workStudent[toolIndex].length > 0"
  1866. >
  1867. <div
  1868. class="works"
  1869. v-for="(w, wIndex) in workStudent[toolIndex]"
  1870. :key="wIndex"
  1871. >
  1872. <div class="workImg">
  1873. <!-- <img
  1874. src="../../assets/icon/works/noImg.png"
  1875. @click="openTools(15, toolIndex, taskCount, w.works)"
  1876. alt=""
  1877. />-->
  1878. <div class="answerBg">
  1879. <!-- <div>{{ w.sName }}</div> -->
  1880. <el-tooltip
  1881. class="item"
  1882. effect="light"
  1883. :content="JSON.parse(w.works)[0].answer"
  1884. placement="top"
  1885. >
  1886. <div class="answerContent">
  1887. {{ JSON.parse(w.works)[0].answer }}
  1888. </div>
  1889. </el-tooltip>
  1890. <div
  1891. class="answerScore"
  1892. v-if="w.score"
  1893. @click.stop="openScore(w)"
  1894. :class="{
  1895. rightW:
  1896. w.userid == userid ||
  1897. tType == 1 ||
  1898. tType == 4,
  1899. }"
  1900. >
  1901. {{ JSON.parse(w.score).wScore }}分
  1902. </div>
  1903. <div
  1904. class="answerScore"
  1905. @click.stop="openScore(w)"
  1906. v-else-if="courseDetail.userid == userid"
  1907. :class="{
  1908. rightW:
  1909. w.userid == userid ||
  1910. tType == 1 ||
  1911. tType == 4,
  1912. }"
  1913. >
  1914. 评分
  1915. </div>
  1916. <img
  1917. class="deleteImg"
  1918. src="../../assets/deleteworks.png"
  1919. v-if="
  1920. w.userid == userid || tType == 1 || tType == 4
  1921. "
  1922. @click.stop="deleteWorks(w.wid)"
  1923. alt
  1924. />
  1925. </div>
  1926. <div class="comment">
  1927. <div class="worksName">
  1928. <div>{{ w.sName }}</div>
  1929. </div>
  1930. </div>
  1931. </div>
  1932. </div>
  1933. </div>
  1934. </div>
  1935. <div
  1936. v-if="
  1937. tType &&
  1938. tType == 2 &&
  1939. !sIsOpen &&
  1940. tool.tool.indexOf(1) != -1
  1941. "
  1942. class="worksBox"
  1943. >
  1944. <div
  1945. class="zuoyeYulan"
  1946. v-if="workStudent[toolIndex].length > 0"
  1947. >
  1948. <span class="worksTitle">作业预览</span>
  1949. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1950. </div>
  1951. <div
  1952. class="worksDetailBox"
  1953. v-if="workStudent[toolIndex].length > 0"
  1954. >
  1955. <div
  1956. class="works"
  1957. style="
  1958. width: 200px;
  1959. height: 140px;
  1960. margin: 10px 10px 10px 0;
  1961. box-shadow: 0 0 6px 1px #dfdada;
  1962. "
  1963. v-for="(w, wIndex) in workStudent[toolIndex]"
  1964. :key="wIndex"
  1965. >
  1966. <div class="workImg">
  1967. <img
  1968. :src="w.works"
  1969. @click="previewImg(w.works)"
  1970. alt
  1971. />
  1972. <div
  1973. class="answerScore"
  1974. v-if="w.score"
  1975. @click.stop="openScore(w)"
  1976. :class="{
  1977. rightW:
  1978. w.userid == userid || tType == 1 || tType == 4,
  1979. }"
  1980. >
  1981. {{ JSON.parse(w.score).wScore }}分
  1982. </div>
  1983. <div
  1984. class="answerScore"
  1985. @click.stop="openScore(w)"
  1986. v-else-if="courseDetail.userid == userid"
  1987. :class="{
  1988. rightW:
  1989. w.userid == userid || tType == 1 || tType == 4,
  1990. }"
  1991. >
  1992. 评分
  1993. </div>
  1994. <img
  1995. class="deleteImg"
  1996. src="../../assets/deleteworks.png"
  1997. v-if="
  1998. w.userid == userid || tType == 1 || tType == 4
  1999. "
  2000. @click.stop="deleteWorks(w.wid)"
  2001. alt
  2002. />
  2003. </div>
  2004. <div class="worksName">
  2005. <div>{{ w.sName }}</div>
  2006. </div>
  2007. </div>
  2008. </div>
  2009. </div>
  2010. <div
  2011. v-if="
  2012. tType &&
  2013. tType == 2 &&
  2014. !sIsOpen &&
  2015. tool.tool.indexOf(3) != -1
  2016. "
  2017. class="worksBox"
  2018. >
  2019. <div
  2020. class="zuoyeYulan"
  2021. v-if="workStudent[toolIndex].length > 0"
  2022. >
  2023. <span class="worksTitle">作业预览</span>
  2024. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2025. </div>
  2026. <div
  2027. class="worksDetailBox"
  2028. v-if="workStudent[toolIndex].length > 0"
  2029. >
  2030. <div
  2031. class="works"
  2032. style="
  2033. width: 200px;
  2034. height: 140px;
  2035. margin: 10px 10px 10px 0;
  2036. box-shadow: 0 0 6px 1px #dfdada;
  2037. "
  2038. v-for="(w, wIndex) in workStudent[toolIndex]"
  2039. :key="wIndex"
  2040. >
  2041. <div class="workImg">
  2042. <img
  2043. :src="w.works"
  2044. @click="previewImg(w.works)"
  2045. alt
  2046. />
  2047. <div
  2048. class="answerScore"
  2049. v-if="w.score"
  2050. @click.stop="openScore(w)"
  2051. :class="{
  2052. rightW:
  2053. w.userid == userid || tType == 1 || tType == 4,
  2054. }"
  2055. >
  2056. {{ JSON.parse(w.score).wScore }}分
  2057. </div>
  2058. <div
  2059. class="answerScore"
  2060. @click.stop="openScore(w)"
  2061. v-else-if="courseDetail.userid == userid"
  2062. :class="{
  2063. rightW:
  2064. w.userid == userid || tType == 1 || tType == 4,
  2065. }"
  2066. >
  2067. 评分
  2068. </div>
  2069. <img
  2070. class="deleteImg"
  2071. src="../../assets/deleteworks.png"
  2072. v-if="
  2073. w.userid == userid || tType == 1 || tType == 4
  2074. "
  2075. @click.stop="deleteWorks(w.wid)"
  2076. alt
  2077. />
  2078. </div>
  2079. <div class="worksName">
  2080. <div>{{ w.sName }}</div>
  2081. </div>
  2082. </div>
  2083. </div>
  2084. </div>
  2085. <div
  2086. v-if="
  2087. tType &&
  2088. tType == 2 &&
  2089. !sIsOpen &&
  2090. tool.tool.indexOf(6) != -1
  2091. "
  2092. class="worksBox"
  2093. >
  2094. <div
  2095. class="zuoyeYulan"
  2096. v-if="workStudent[toolIndex].length > 0"
  2097. >
  2098. <span class="worksTitle">作业预览</span>
  2099. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2100. </div>
  2101. <div
  2102. class="worksDetailBox"
  2103. v-if="workStudent[toolIndex].length > 0"
  2104. >
  2105. <div
  2106. class="works"
  2107. style="
  2108. width: 200px;
  2109. height: 140px;
  2110. margin: 10px 10px 10px 0;
  2111. box-shadow: 0 0 6px 1px #dfdada;
  2112. "
  2113. v-for="(w, wIndex) in workStudent[toolIndex]"
  2114. :key="wIndex"
  2115. >
  2116. <div class="workImg">
  2117. <img
  2118. :src="w.works"
  2119. @click="previewImg(w.works)"
  2120. alt
  2121. />
  2122. <div
  2123. class="answerScore"
  2124. v-if="w.score"
  2125. @click.stop="openScore(w)"
  2126. :class="{
  2127. rightW:
  2128. w.userid == userid || tType == 1 || tType == 4,
  2129. }"
  2130. >
  2131. {{ JSON.parse(w.score).wScore }}分
  2132. </div>
  2133. <div
  2134. class="answerScore"
  2135. @click.stop="openScore(w)"
  2136. v-else-if="courseDetail.userid == userid"
  2137. :class="{
  2138. rightW:
  2139. w.userid == userid || tType == 1 || tType == 4,
  2140. }"
  2141. >
  2142. 评分
  2143. </div>
  2144. <img
  2145. class="deleteImg"
  2146. src="../../assets/deleteworks.png"
  2147. v-if="
  2148. w.userid == userid || tType == 1 || tType == 4
  2149. "
  2150. @click.stop="deleteWorks(w.wid)"
  2151. alt
  2152. />
  2153. </div>
  2154. <div class="worksName">
  2155. <div>{{ w.sName }}</div>
  2156. </div>
  2157. </div>
  2158. </div>
  2159. </div>
  2160. <div
  2161. v-if="
  2162. tType &&
  2163. tType == 2 &&
  2164. !sIsOpen &&
  2165. tool.tool.indexOf(7) != -1
  2166. "
  2167. class="worksBox"
  2168. >
  2169. <div
  2170. class="zuoyeYulan"
  2171. v-if="workStudent[toolIndex].length > 0"
  2172. >
  2173. <span class="worksTitle">作业预览</span>
  2174. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2175. </div>
  2176. <div
  2177. class="worksDetailBox"
  2178. v-if="workStudent[toolIndex].length > 0"
  2179. >
  2180. <div
  2181. class="works"
  2182. style="
  2183. width: 200px;
  2184. height: 140px;
  2185. margin: 10px 10px 10px 0;
  2186. box-shadow: 0 0 6px 1px #dfdada;
  2187. "
  2188. v-for="(w, wIndex) in workStudent[toolIndex]"
  2189. :key="wIndex"
  2190. >
  2191. <div class="workImg">
  2192. <img
  2193. :src="w.works"
  2194. @click="previewImg(w.works)"
  2195. alt
  2196. />
  2197. <div
  2198. class="answerScore"
  2199. v-if="w.score"
  2200. @click.stop="openScore(w)"
  2201. :class="{
  2202. rightW:
  2203. w.userid == userid || tType == 1 || tType == 4,
  2204. }"
  2205. >
  2206. {{ JSON.parse(w.score).wScore }}分
  2207. </div>
  2208. <div
  2209. class="answerScore"
  2210. @click.stop="openScore(w)"
  2211. v-else-if="courseDetail.userid == userid"
  2212. :class="{
  2213. rightW:
  2214. w.userid == userid || tType == 1 || tType == 4,
  2215. }"
  2216. >
  2217. 评分
  2218. </div>
  2219. <img
  2220. class="deleteImg"
  2221. src="../../assets/deleteworks.png"
  2222. v-if="
  2223. w.userid == userid || tType == 1 || tType == 4
  2224. "
  2225. @click.stop="deleteWorks(w.wid)"
  2226. alt
  2227. />
  2228. </div>
  2229. <div class="worksName">
  2230. <div>{{ w.sName }}</div>
  2231. </div>
  2232. </div>
  2233. </div>
  2234. </div>
  2235. <div
  2236. v-if="
  2237. tType &&
  2238. tType == 2 &&
  2239. !sIsOpen &&
  2240. tool.tool.indexOf(26) != -1
  2241. "
  2242. class="worksBox"
  2243. >
  2244. <div
  2245. class="zuoyeYulan"
  2246. v-if="workStudent[toolIndex].length > 0"
  2247. >
  2248. <span class="worksTitle">作业预览</span>
  2249. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2250. </div>
  2251. <div
  2252. class="worksDetailBox"
  2253. v-if="workStudent[toolIndex].length > 0"
  2254. >
  2255. <div
  2256. class="works"
  2257. style="
  2258. width: 200px;
  2259. height: 140px;
  2260. margin: 10px 10px 10px 0;
  2261. box-shadow: 0 0 6px 1px #dfdada;
  2262. "
  2263. v-for="(w, wIndex) in workStudent[toolIndex]"
  2264. :key="wIndex"
  2265. >
  2266. <div class="workImg">
  2267. <img
  2268. :src="w.works"
  2269. @click="previewImg(w.works)"
  2270. alt
  2271. />
  2272. <img
  2273. class="deleteImg"
  2274. src="../../assets/deleteworks.png"
  2275. v-if="
  2276. w.userid == userid || tType == 1 || tType == 4
  2277. "
  2278. @click.stop="deleteWorks(w.wid)"
  2279. alt
  2280. />
  2281. </div>
  2282. <div class="worksName">
  2283. <div>{{ w.sName }}</div>
  2284. </div>
  2285. </div>
  2286. </div>
  2287. </div>
  2288. <div
  2289. v-if="
  2290. tType &&
  2291. ((tType == 2 && sIsOpen == true) ||
  2292. tType == 1 ||
  2293. tType == 4) &&
  2294. tool.tool.indexOf(16) != -1
  2295. "
  2296. class="worksBox"
  2297. >
  2298. <div
  2299. class="zuoyeYulan"
  2300. v-if="
  2301. (worksStudent.length &&
  2302. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2303. "
  2304. >
  2305. <div class="worksTop">
  2306. <div>作业预览</div>
  2307. <div
  2308. class="corOpen"
  2309. @click="contract(toolIndex)"
  2310. v-if="
  2311. (isCloseList[toolIndex].isCloseBoolean) &&
  2312. isCloseList[toolIndex].isClose == 0
  2313. "
  2314. >
  2315. 折叠
  2316. </div>
  2317. <div
  2318. class="corOpen"
  2319. @click="contract(toolIndex)"
  2320. v-if="isCloseList[toolIndex].isClose == 1"
  2321. >
  2322. 展开
  2323. </div>
  2324. </div>
  2325. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2326. </div>
  2327. <div
  2328. class="group_workBox"
  2329. v-for="(g, gindex) in courseGroup.group"
  2330. :key="gindex"
  2331. >
  2332. <div class="group_box">
  2333. <div class="group_title">
  2334. <el-tooltip
  2335. class="item"
  2336. effect="light"
  2337. :content="g.name"
  2338. placement="top"
  2339. >
  2340. <div class="group_name">{{ g.name }}</div>
  2341. </el-tooltip>
  2342. </div>
  2343. <div
  2344. class="group_work"
  2345. v-if="
  2346. g.works &&
  2347. g.works.length &&
  2348. g.works[toolIndex].length
  2349. "
  2350. >
  2351. <div
  2352. class="works"
  2353. style="
  2354. width: 200px;
  2355. height: 140px;
  2356. margin: 10px 10px 10px 0;
  2357. border-radius: 15px;
  2358. box-shadow: 0 0 6px 1px #dfdada;
  2359. "
  2360. v-for="(w, wIndex) in g.works[toolIndex]"
  2361. :key="wIndex"
  2362. :class="w.type == 1 ? 'isTypeOne' : ''"
  2363. >
  2364. <div class="workImg" v-if="w.type == 0">
  2365. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2366. <img
  2367. :src="w.works"
  2368. @click="previewImg(w.works)"
  2369. alt
  2370. />
  2371. <div
  2372. class="answerScore"
  2373. v-if="w.score"
  2374. @click.stop="openScore(w)"
  2375. :class="{
  2376. rightW:
  2377. w.userid == userid ||
  2378. tType == 1 ||
  2379. tType == 4 ||
  2380. w.ateacher == userid,
  2381. }"
  2382. >
  2383. {{ JSON.parse(w.score).wScore }}分
  2384. </div>
  2385. <div
  2386. class="answerScore"
  2387. @click.stop="openScore(w)"
  2388. v-else-if="courseDetail.userid == userid"
  2389. :class="{
  2390. rightW:
  2391. w.userid == userid ||
  2392. tType == 1 ||
  2393. tType == 4 ||
  2394. w.ateacher == userid,
  2395. }"
  2396. >
  2397. 评分
  2398. </div>
  2399. <img
  2400. class="deleteImg"
  2401. src="../../assets/deleteworks.png"
  2402. v-if="
  2403. w.userid == userid || tType == 1 || tType == 4
  2404. "
  2405. @click.stop="deleteWorks(w.wid)"
  2406. alt
  2407. />
  2408. </div>
  2409. <div class="workImg" v-if="w.type == 1">
  2410. <img :src="word" @click="openFile(w.works)" alt />
  2411. <!-- @click="openFile(w.works)" -->
  2412. <div
  2413. class="answerScore"
  2414. v-if="w.score"
  2415. @click.stop="openScore(w)"
  2416. :class="{
  2417. rightW:
  2418. w.userid == userid ||
  2419. tType == 1 ||
  2420. tType == 4 ||
  2421. w.ateacher == userid,
  2422. }"
  2423. >
  2424. {{ JSON.parse(w.score).wScore }}分
  2425. </div>
  2426. <div
  2427. class="answerScore"
  2428. @click.stop="openScore(w)"
  2429. v-else-if="courseDetail.userid == userid"
  2430. :class="{
  2431. rightW:
  2432. w.userid == userid ||
  2433. tType == 1 ||
  2434. tType == 4 ||
  2435. w.ateacher == userid,
  2436. }"
  2437. >
  2438. 评分
  2439. </div>
  2440. <img
  2441. class="deleteImg"
  2442. src="../../assets/deleteworks.png"
  2443. v-if="
  2444. w.userid == userid || tType == 1 || tType == 4
  2445. "
  2446. @click.stop="deleteWorks(w.wid)"
  2447. alt
  2448. />
  2449. </div>
  2450. <div class="workImg" v-if="w.type == 3">
  2451. <img
  2452. style="cursor: pointer"
  2453. :src="video"
  2454. @click="openVideo(w)"
  2455. alt
  2456. />
  2457. <!-- @click="openVideo(w.works)" -->
  2458. <div
  2459. class="answerScore"
  2460. v-if="w.score"
  2461. @click.stop="openScore(w)"
  2462. :class="{
  2463. rightW:
  2464. w.userid == userid ||
  2465. tType == 1 ||
  2466. tType == 4 ||
  2467. w.ateacher == userid,
  2468. }"
  2469. >
  2470. {{ JSON.parse(w.score).wScore }}分
  2471. </div>
  2472. <div
  2473. class="answerScore"
  2474. @click.stop="openScore(w)"
  2475. v-else-if="courseDetail.userid == userid"
  2476. :class="{
  2477. rightW:
  2478. w.userid == userid ||
  2479. tType == 1 ||
  2480. tType == 4 ||
  2481. w.ateacher == userid,
  2482. }"
  2483. >
  2484. 评分
  2485. </div>
  2486. <img
  2487. class="deleteImg"
  2488. src="../../assets/deleteworks.png"
  2489. v-if="
  2490. w.userid == userid || tType == 1 || tType == 4
  2491. "
  2492. @click.stop="deleteWorks(w.wid)"
  2493. alt
  2494. />
  2495. </div>
  2496. <div class="workImg" v-if="w.type == 12">
  2497. <img
  2498. style="cursor: pointer"
  2499. :src="word2"
  2500. @click="downloadFile(w.works)"
  2501. alt
  2502. />
  2503. <!-- @click="openVideo(w.works)" -->
  2504. <div
  2505. class="answerScore"
  2506. v-if="w.score"
  2507. @click.stop="openScore(w)"
  2508. :class="{
  2509. rightW:
  2510. w.userid == userid ||
  2511. tType == 1 ||
  2512. tType == 4 ||
  2513. w.ateacher == userid,
  2514. }"
  2515. >
  2516. {{ JSON.parse(w.score).wScore }}分
  2517. </div>
  2518. <div
  2519. class="answerScore"
  2520. @click.stop="openScore(w)"
  2521. v-else-if="courseDetail.userid == userid"
  2522. :class="{
  2523. rightW:
  2524. w.userid == userid ||
  2525. tType == 1 ||
  2526. tType == 4 ||
  2527. w.ateacher == userid,
  2528. }"
  2529. >
  2530. 评分
  2531. </div>
  2532. <img
  2533. class="deleteImg"
  2534. src="../../assets/deleteworks.png"
  2535. v-if="
  2536. w.userid == userid || tType == 1 || tType == 4
  2537. "
  2538. @click.stop="deleteWorks(w.wid)"
  2539. alt
  2540. />
  2541. </div>
  2542. <div class="comment" style="min-width: 200px">
  2543. <div class="worksName">
  2544. <div>{{ w.sName }}</div>
  2545. </div>
  2546. <div class="commentList">
  2547. <div class="commentList">
  2548. <div
  2549. class="commentImg"
  2550. @click="
  2551. isLikes(w.wid, userid, 1, null, w.isLikes)
  2552. "
  2553. >
  2554. <img
  2555. :src="w.isLikes == true ? likes : noLikes"
  2556. alt=""
  2557. />
  2558. </div>
  2559. <div>{{ w.likesCount }}</div>
  2560. </div>
  2561. <div
  2562. class="commentList"
  2563. style="margin-right: 15px"
  2564. >
  2565. <div
  2566. class="commentImg"
  2567. @click="
  2568. commentOther(
  2569. w,
  2570. toolIndex,
  2571. wIndex,
  2572. null,
  2573. g.id
  2574. )
  2575. "
  2576. >
  2577. <img
  2578. src="../../assets/icon/comment/comment.png"
  2579. alt=""
  2580. />
  2581. </div>
  2582. <div>{{ w.commentCount }}</div>
  2583. </div>
  2584. </div>
  2585. </div>
  2586. </div>
  2587. </div>
  2588. <div class="group_work" v-else>暂无提交作业</div>
  2589. </div>
  2590. </div>
  2591. <div
  2592. :id="'tool-' + toolIndex"
  2593. :style="{
  2594. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2595. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2596. }"
  2597. class="worksDetailBox"
  2598. v-if="
  2599. worksStudent.length &&
  2600. worksStudent[toolIndex].length > 0
  2601. "
  2602. >
  2603. <div
  2604. class="works"
  2605. style="
  2606. width: 200px;
  2607. height: 140px;
  2608. margin: 10px 10px 10px 0;
  2609. border-radius: 15px;
  2610. box-shadow: 0 0 6px 1px #dfdada;
  2611. "
  2612. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2613. :key="wIndex"
  2614. :class="w.type == 1 ? 'isTypeOne' : ''"
  2615. >
  2616. <div class="workImg" v-if="w.type == 0">
  2617. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2618. <img
  2619. :src="w.works"
  2620. @click="previewImg(w.works)"
  2621. alt
  2622. />
  2623. <div
  2624. class="answerScore"
  2625. v-if="w.score"
  2626. @click.stop="openScore(w)"
  2627. :class="{
  2628. rightW:
  2629. w.userid == userid ||
  2630. tType == 1 ||
  2631. tType == 4 ||
  2632. w.ateacher == userid,
  2633. }"
  2634. >
  2635. {{ JSON.parse(w.score).wScore }}分
  2636. </div>
  2637. <div
  2638. class="answerScore"
  2639. @click.stop="openScore(w)"
  2640. v-else-if="courseDetail.userid == userid"
  2641. :class="{
  2642. rightW:
  2643. w.userid == userid ||
  2644. tType == 1 ||
  2645. tType == 4 ||
  2646. w.ateacher == userid,
  2647. }"
  2648. >
  2649. 评分
  2650. </div>
  2651. <img
  2652. class="deleteImg"
  2653. src="../../assets/deleteworks.png"
  2654. v-if="
  2655. w.userid == userid || tType == 1 || tType == 4
  2656. "
  2657. @click.stop="deleteWorks(w.wid)"
  2658. alt
  2659. />
  2660. </div>
  2661. <div class="workImg" v-if="w.type == 1">
  2662. <img :src="word" @click="openFile(w.works)" alt />
  2663. <!-- @click="openFile(w.works)" -->
  2664. <div
  2665. class="answerScore"
  2666. v-if="w.score"
  2667. @click.stop="openScore(w)"
  2668. :class="{
  2669. rightW:
  2670. w.userid == userid ||
  2671. tType == 1 ||
  2672. tType == 4 ||
  2673. w.ateacher == userid,
  2674. }"
  2675. >
  2676. {{ JSON.parse(w.score).wScore }}分
  2677. </div>
  2678. <div
  2679. class="answerScore"
  2680. @click.stop="openScore(w)"
  2681. v-else-if="courseDetail.userid == userid"
  2682. :class="{
  2683. rightW:
  2684. w.userid == userid ||
  2685. tType == 1 ||
  2686. tType == 4 ||
  2687. w.ateacher == userid,
  2688. }"
  2689. >
  2690. 评分
  2691. </div>
  2692. <img
  2693. class="deleteImg"
  2694. src="../../assets/deleteworks.png"
  2695. v-if="
  2696. w.userid == userid || tType == 1 || tType == 4
  2697. "
  2698. @click.stop="deleteWorks(w.wid)"
  2699. alt
  2700. />
  2701. </div>
  2702. <div class="workImg" v-if="w.type == 3">
  2703. <img
  2704. style="cursor: pointer"
  2705. :src="video"
  2706. @click="openVideo(w)"
  2707. alt
  2708. />
  2709. <!-- @click="openVideo(w.works)" -->
  2710. <div
  2711. class="answerScore"
  2712. v-if="w.score"
  2713. @click.stop="openScore(w)"
  2714. :class="{
  2715. rightW:
  2716. w.userid == userid ||
  2717. tType == 1 ||
  2718. tType == 4 ||
  2719. w.ateacher == userid,
  2720. }"
  2721. >
  2722. {{ JSON.parse(w.score).wScore }}分
  2723. </div>
  2724. <div
  2725. class="answerScore"
  2726. @click.stop="openScore(w)"
  2727. v-else-if="courseDetail.userid == userid"
  2728. :class="{
  2729. rightW:
  2730. w.userid == userid ||
  2731. tType == 1 ||
  2732. tType == 4 ||
  2733. w.ateacher == userid,
  2734. }"
  2735. >
  2736. 评分
  2737. </div>
  2738. <img
  2739. class="deleteImg"
  2740. src="../../assets/deleteworks.png"
  2741. v-if="
  2742. w.userid == userid || tType == 1 || tType == 4
  2743. "
  2744. @click.stop="deleteWorks(w.wid)"
  2745. alt
  2746. />
  2747. </div>
  2748. <div class="workImg" v-if="w.type == 12">
  2749. <img
  2750. style="cursor: pointer"
  2751. :src="word2"
  2752. @click="downloadFile(w.works)"
  2753. alt
  2754. />
  2755. <!-- @click="openVideo(w.works)" -->
  2756. <div
  2757. class="answerScore"
  2758. v-if="w.score"
  2759. @click.stop="openScore(w)"
  2760. :class="{
  2761. rightW:
  2762. w.userid == userid ||
  2763. tType == 1 ||
  2764. tType == 4 ||
  2765. w.ateacher == userid,
  2766. }"
  2767. >
  2768. {{ JSON.parse(w.score).wScore }}分
  2769. </div>
  2770. <div
  2771. class="answerScore"
  2772. @click.stop="openScore(w)"
  2773. v-else-if="courseDetail.userid == userid"
  2774. :class="{
  2775. rightW:
  2776. w.userid == userid ||
  2777. tType == 1 ||
  2778. tType == 4 ||
  2779. w.ateacher == userid,
  2780. }"
  2781. >
  2782. 评分
  2783. </div>
  2784. <img
  2785. class="deleteImg"
  2786. src="../../assets/deleteworks.png"
  2787. v-if="
  2788. w.userid == userid || tType == 1 || tType == 4
  2789. "
  2790. @click.stop="deleteWorks(w.wid)"
  2791. alt
  2792. />
  2793. </div>
  2794. <div class="comment" style="min-width: 200px">
  2795. <div class="worksName">
  2796. <div>{{ w.sName }}</div>
  2797. </div>
  2798. <div class="commentList">
  2799. <div class="commentList">
  2800. <div
  2801. class="commentImg"
  2802. @click="
  2803. isLikes(w.wid, userid, 1, null, w.isLikes)
  2804. "
  2805. >
  2806. <img
  2807. :src="w.isLikes == true ? likes : noLikes"
  2808. alt=""
  2809. />
  2810. </div>
  2811. <div>{{ w.likesCount }}</div>
  2812. </div>
  2813. <div class="commentList" style="margin-right: 15px">
  2814. <div
  2815. class="commentImg"
  2816. @click="commentOther(w, toolIndex, wIndex)"
  2817. >
  2818. <img
  2819. src="../../assets/icon/comment/comment.png"
  2820. alt=""
  2821. />
  2822. </div>
  2823. <div>{{ w.commentCount }}</div>
  2824. </div>
  2825. </div>
  2826. </div>
  2827. </div>
  2828. </div>
  2829. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2830. 未提交
  2831. </div>
  2832. <div
  2833. class="noWorksS"
  2834. v-if="noWorksS && noWorksS[toolIndex].length"
  2835. >
  2836. <div
  2837. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2838. :key="sIndex"
  2839. class="noWorksName"
  2840. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  2841. >
  2842. {{ s.student }}
  2843. </div>
  2844. </div>
  2845. </div>
  2846. <div
  2847. v-if="
  2848. tType &&
  2849. ((tType == 2 && sIsOpen == true) ||
  2850. tType == 1 ||
  2851. tType == 4) &&
  2852. tool.tool.indexOf(32) != -1
  2853. "
  2854. class="worksBox"
  2855. >
  2856. <div
  2857. class="zuoyeYulan"
  2858. v-if="
  2859. worksStudent.length &&
  2860. worksStudent[toolIndex].length > 0
  2861. "
  2862. >
  2863. <div class="worksTop">
  2864. <div>作业预览</div>
  2865. <div
  2866. class="corOpen"
  2867. @click="contract(toolIndex)"
  2868. v-if="
  2869. (isCloseList[toolIndex].isCloseBoolean) &&
  2870. isCloseList[toolIndex].isClose == 0
  2871. "
  2872. >
  2873. 折叠
  2874. </div>
  2875. <div
  2876. class="corOpen"
  2877. @click="contract(toolIndex)"
  2878. v-if="isCloseList[toolIndex].isClose == 1"
  2879. >
  2880. 展开
  2881. </div>
  2882. </div>
  2883. </div>
  2884. <div
  2885. :id="'tool-' + toolIndex"
  2886. :style="{
  2887. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2888. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2889. }"
  2890. class="worksDetailBox"
  2891. v-if="
  2892. worksStudent.length &&
  2893. worksStudent[toolIndex].length > 0
  2894. "
  2895. >
  2896. <div
  2897. class="works"
  2898. style="
  2899. width: 200px;
  2900. height: 140px;
  2901. margin: 10px 10px 10px 0;
  2902. border-radius: 15px;
  2903. box-shadow: 0 0 6px 1px #dfdada;
  2904. "
  2905. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2906. :key="wIndex"
  2907. :class="w.type == 1 ? 'isTypeOne' : ''"
  2908. >
  2909. <div class="workImg">
  2910. <img
  2911. :src="word2"
  2912. @click="downloadFile(w.works)"
  2913. alt
  2914. />
  2915. <div
  2916. class="answerScore"
  2917. v-if="w.score"
  2918. @click.stop="openScore(w)"
  2919. :class="{
  2920. rightW:
  2921. w.userid == userid ||
  2922. tType == 1 ||
  2923. tType == 4 ||
  2924. w.ateacher == userid,
  2925. }"
  2926. >
  2927. {{ JSON.parse(w.score).wScore }}分
  2928. </div>
  2929. <div
  2930. class="answerScore"
  2931. @click.stop="openScore(w)"
  2932. v-else-if="courseDetail.userid == userid"
  2933. :class="{
  2934. rightW:
  2935. w.userid == userid ||
  2936. tType == 1 ||
  2937. tType == 4 ||
  2938. w.ateacher == userid,
  2939. }"
  2940. >
  2941. 评分
  2942. </div>
  2943. <img
  2944. class="deleteImg"
  2945. src="../../assets/deleteworks.png"
  2946. v-if="
  2947. w.userid == userid || tType == 1 || tType == 4
  2948. "
  2949. @click.stop="deleteWorks(w.wid)"
  2950. alt
  2951. />
  2952. </div>
  2953. <div class="comment" style="min-width: 200px">
  2954. <div class="worksName">
  2955. <div>{{ w.sName }}</div>
  2956. </div>
  2957. <div class="commentList">
  2958. <div class="commentList">
  2959. <div
  2960. class="commentImg"
  2961. @click="
  2962. isLikes(w.wid, userid, 1, null, w.isLikes)
  2963. "
  2964. >
  2965. <img
  2966. :src="w.isLikes == true ? likes : noLikes"
  2967. alt=""
  2968. />
  2969. </div>
  2970. <div>{{ w.likesCount }}</div>
  2971. </div>
  2972. <div class="commentList" style="margin-right: 15px">
  2973. <div
  2974. class="commentImg"
  2975. @click="commentOther(w, toolIndex, wIndex)"
  2976. >
  2977. <img
  2978. src="../../assets/icon/comment/comment.png"
  2979. alt=""
  2980. />
  2981. </div>
  2982. <div>{{ w.commentCount }}</div>
  2983. </div>
  2984. </div>
  2985. </div>
  2986. </div>
  2987. </div>
  2988. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2989. 未提交
  2990. </div>
  2991. <div
  2992. class="noWorksS"
  2993. v-if="noWorksS && noWorksS[toolIndex].length"
  2994. >
  2995. <div
  2996. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2997. :key="sIndex"
  2998. class="noWorksName"
  2999. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3000. >
  3001. {{ s.student }}
  3002. </div>
  3003. </div>
  3004. </div>
  3005. <div
  3006. v-if="
  3007. tType &&
  3008. ((tType == 2 && sIsOpen == true) ||
  3009. tType == 1 ||
  3010. tType == 4) &&
  3011. tool.tool.indexOf(57) != -1
  3012. "
  3013. class="worksBox"
  3014. >
  3015. <div
  3016. class="zuoyeYulan"
  3017. v-if="
  3018. worksStudent.length &&
  3019. worksStudent[toolIndex].length > 0
  3020. "
  3021. >
  3022. <div class="worksTop">
  3023. <div>作业预览</div>
  3024. <div
  3025. class="corOpen"
  3026. @click="contract(toolIndex)"
  3027. v-if="
  3028. (isCloseList[toolIndex].isCloseBoolean) &&
  3029. isCloseList[toolIndex].isClose == 0
  3030. "
  3031. >
  3032. 折叠
  3033. </div>
  3034. <div
  3035. class="corOpen"
  3036. @click="contract(toolIndex)"
  3037. v-if="isCloseList[toolIndex].isClose == 1"
  3038. >
  3039. 展开
  3040. </div>
  3041. </div>
  3042. </div>
  3043. <div
  3044. :id="'tool-' + toolIndex"
  3045. :style="{
  3046. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3047. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3048. }"
  3049. class="worksDetailBox"
  3050. v-if="
  3051. worksStudent.length &&
  3052. worksStudent[toolIndex].length > 0
  3053. "
  3054. >
  3055. <div
  3056. class="works"
  3057. style="
  3058. width: 200px;
  3059. height: 140px;
  3060. margin: 10px 10px 10px 0;
  3061. border-radius: 15px;
  3062. box-shadow: 0 0 6px 1px #dfdada;
  3063. "
  3064. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3065. :key="wIndex"
  3066. :class="w.type == 1 ? 'isTypeOne' : ''"
  3067. >
  3068. <div class="workImg">
  3069. <img
  3070. :src="word2"
  3071. @click="downloadFile(w.works)"
  3072. v-if="w.type == 12"
  3073. alt
  3074. />
  3075. <img
  3076. :src="word2"
  3077. @click="
  3078. openCocoPi(57, toolIndex, w.userid, w.sName)
  3079. "
  3080. v-else-if="w.type == 15"
  3081. alt
  3082. />
  3083. <div
  3084. class="answerScore"
  3085. v-if="w.score"
  3086. @click.stop="openScore(w)"
  3087. :class="{
  3088. rightW:
  3089. w.userid == userid ||
  3090. tType == 1 ||
  3091. tType == 4 ||
  3092. w.ateacher == userid,
  3093. }"
  3094. >
  3095. {{ JSON.parse(w.score).wScore }}分
  3096. </div>
  3097. <div
  3098. class="answerScore"
  3099. @click.stop="openScore(w)"
  3100. v-else-if="courseDetail.userid == userid"
  3101. :class="{
  3102. rightW:
  3103. w.userid == userid ||
  3104. tType == 1 ||
  3105. tType == 4 ||
  3106. w.ateacher == userid,
  3107. }"
  3108. >
  3109. 评分
  3110. </div>
  3111. <img
  3112. class="deleteImg"
  3113. src="../../assets/deleteworks.png"
  3114. v-if="
  3115. w.userid == userid || tType == 1 || tType == 4
  3116. "
  3117. @click.stop="deleteWorks(w.wid)"
  3118. alt
  3119. />
  3120. </div>
  3121. <div class="comment" style="min-width: 200px">
  3122. <div class="worksName">
  3123. <div>{{ w.sName }}</div>
  3124. </div>
  3125. <div class="commentList">
  3126. <div class="commentList">
  3127. <div
  3128. class="commentImg"
  3129. @click="
  3130. isLikes(w.wid, userid, 1, null, w.isLikes)
  3131. "
  3132. >
  3133. <img
  3134. :src="w.isLikes == true ? likes : noLikes"
  3135. alt=""
  3136. />
  3137. </div>
  3138. <div>{{ w.likesCount }}</div>
  3139. </div>
  3140. <div class="commentList" style="margin-right: 15px">
  3141. <div
  3142. class="commentImg"
  3143. @click="commentOther(w, toolIndex, wIndex)"
  3144. >
  3145. <img
  3146. src="../../assets/icon/comment/comment.png"
  3147. alt=""
  3148. />
  3149. </div>
  3150. <div>{{ w.commentCount }}</div>
  3151. </div>
  3152. </div>
  3153. </div>
  3154. </div>
  3155. </div>
  3156. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3157. 未提交
  3158. </div>
  3159. <div
  3160. class="noWorksS"
  3161. v-if="noWorksS && noWorksS[toolIndex].length"
  3162. >
  3163. <div
  3164. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3165. :key="sIndex"
  3166. class="noWorksName"
  3167. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3168. >
  3169. {{ s.student }}
  3170. </div>
  3171. </div>
  3172. </div>
  3173. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3174. <div
  3175. class="zuoyeYulan"
  3176. v-if="
  3177. worksStudent.length &&
  3178. worksStudent[toolIndex].length > 0
  3179. "
  3180. >
  3181. <span class="worksTitle">作业预览</span>
  3182. <div
  3183. class="corOpen"
  3184. @click="contract(toolIndex)"
  3185. v-if="
  3186. (isCloseList[toolIndex].isCloseBoolean) &&
  3187. isCloseList[toolIndex].isClose == 0
  3188. "
  3189. >
  3190. 折叠
  3191. </div>
  3192. <div
  3193. class="corOpen"
  3194. @click="contract(toolIndex)"
  3195. v-if="isCloseList[toolIndex].isClose == 1"
  3196. >
  3197. 展开
  3198. </div>
  3199. </div>
  3200. <div
  3201. :id="'tool-' + toolIndex"
  3202. :style="{
  3203. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3204. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3205. }"
  3206. class="worksDetailBox"
  3207. v-if="
  3208. worksStudent.length &&
  3209. worksStudent[toolIndex].length > 0
  3210. "
  3211. >
  3212. <div
  3213. class="works"
  3214. style="
  3215. width: 200px;
  3216. height: 140px;
  3217. margin: 10px 10px 10px 0;
  3218. border-radius: 15px;
  3219. box-shadow: 0 0 6px 1px #dfdada;
  3220. "
  3221. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3222. :key="wIndex"
  3223. :class="w.type == 1 ? 'isTypeOne' : ''"
  3224. >
  3225. <div class="workImg" v-if="w.type == 0">
  3226. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3227. <img
  3228. :src="w.works"
  3229. @click="previewImg(w.works)"
  3230. alt
  3231. />
  3232. <div
  3233. class="answerScore"
  3234. v-if="w.score"
  3235. @click.stop="openScore(w)"
  3236. :class="{
  3237. rightW:
  3238. w.userid == userid ||
  3239. tType == 1 ||
  3240. tType == 4 ||
  3241. w.ateacher == userid,
  3242. }"
  3243. >
  3244. {{ JSON.parse(w.score).wScore }}分
  3245. </div>
  3246. <div
  3247. class="answerScore"
  3248. @click.stop="openScore(w)"
  3249. v-else-if="courseDetail.userid == userid"
  3250. :class="{
  3251. rightW:
  3252. w.userid == userid ||
  3253. tType == 1 ||
  3254. tType == 4 ||
  3255. w.ateacher == userid,
  3256. }"
  3257. >
  3258. 评分
  3259. </div>
  3260. <img
  3261. class="deleteImg"
  3262. src="../../assets/deleteworks.png"
  3263. v-if="
  3264. w.userid == userid || tType == 1 || tType == 4
  3265. "
  3266. @click.stop="deleteWorks(w.wid)"
  3267. alt
  3268. />
  3269. </div>
  3270. <div
  3271. class="workImg"
  3272. style="cursor: pointer"
  3273. v-if="w.type == 1"
  3274. >
  3275. <img :src="word" @click="openFile(w.works)" alt />
  3276. <!-- @click="openFile(w.works)" -->
  3277. <div
  3278. class="answerScore"
  3279. v-if="w.score"
  3280. @click.stop="openScore(w)"
  3281. :class="{
  3282. rightW:
  3283. w.userid == userid ||
  3284. tType == 1 ||
  3285. tType == 4 ||
  3286. w.ateacher == userid,
  3287. }"
  3288. >
  3289. {{ JSON.parse(w.score).wScore }}分
  3290. </div>
  3291. <div
  3292. class="answerScore"
  3293. @click.stop="openScore(w)"
  3294. v-else-if="courseDetail.userid == userid"
  3295. :class="{
  3296. rightW:
  3297. w.userid == userid ||
  3298. tType == 1 ||
  3299. tType == 4 ||
  3300. w.ateacher == userid,
  3301. }"
  3302. >
  3303. 评分
  3304. </div>
  3305. <img
  3306. class="deleteImg"
  3307. src="../../assets/deleteworks.png"
  3308. v-if="
  3309. w.userid == userid || tType == 1 || tType == 4
  3310. "
  3311. @click.stop="deleteWorks(w.wid)"
  3312. alt
  3313. />
  3314. </div>
  3315. <div class="workImg" v-if="w.type == 3">
  3316. <img
  3317. style="cursor: pointer"
  3318. :src="video"
  3319. @click="openVideo(w)"
  3320. alt
  3321. />
  3322. <!-- @click="openVideo(w.works)" -->
  3323. <div
  3324. class="answerScore"
  3325. v-if="w.score"
  3326. @click.stop="openScore(w)"
  3327. :class="{
  3328. rightW:
  3329. w.userid == userid ||
  3330. tType == 1 ||
  3331. tType == 4 ||
  3332. w.ateacher == userid,
  3333. }"
  3334. >
  3335. {{ JSON.parse(w.score).wScore }}分
  3336. </div>
  3337. <div
  3338. class="answerScore"
  3339. @click.stop="openScore(w)"
  3340. v-else-if="courseDetail.userid == userid"
  3341. :class="{
  3342. rightW:
  3343. w.userid == userid ||
  3344. tType == 1 ||
  3345. tType == 4 ||
  3346. w.ateacher == userid,
  3347. }"
  3348. >
  3349. 评分
  3350. </div>
  3351. <img
  3352. class="deleteImg"
  3353. src="../../assets/deleteworks.png"
  3354. v-if="
  3355. w.userid == userid || tType == 1 || tType == 4
  3356. "
  3357. @click.stop="deleteWorks(w.wid)"
  3358. alt
  3359. />
  3360. </div>
  3361. <div class="comment" style="min-width: 200px">
  3362. <div class="worksName">
  3363. <div
  3364. style="cursor: pointer"
  3365. @click="
  3366. openSname(w.sName, w.wid, toolIndex, w.userid)
  3367. "
  3368. >
  3369. {{ w.sName }}
  3370. </div>
  3371. </div>
  3372. <div class="commentList">
  3373. <div class="commentList">
  3374. <div
  3375. class="commentImg"
  3376. @click="
  3377. isLikes(w.wid, userid, 1, null, w.isLikes)
  3378. "
  3379. >
  3380. <img
  3381. :src="w.isLikes == true ? likes : noLikes"
  3382. alt=""
  3383. />
  3384. </div>
  3385. <div>{{ w.likesCount }}</div>
  3386. </div>
  3387. <div class="commentList" style="margin-right: 15px">
  3388. <div
  3389. class="commentImg"
  3390. @click="commentOther(w, toolIndex, wIndex)"
  3391. >
  3392. <img
  3393. src="../../assets/icon/comment/comment.png"
  3394. alt=""
  3395. />
  3396. </div>
  3397. <div>{{ w.commentCount }}</div>
  3398. </div>
  3399. </div>
  3400. </div>
  3401. </div>
  3402. </div>
  3403. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3404. 未提交
  3405. </div>
  3406. <div
  3407. class="noWorksS"
  3408. v-if="noWorksS && noWorksS[toolIndex].length"
  3409. >
  3410. <div
  3411. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3412. :key="sIndex"
  3413. class="noWorksName"
  3414. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3415. >
  3416. {{ s.student }}
  3417. </div>
  3418. </div>
  3419. </div>
  3420. <div
  3421. v-if="
  3422. tType &&
  3423. ((tType == 2 && sIsOpen == true) ||
  3424. tType == 1 ||
  3425. tType == 4) &&
  3426. tool.tool.indexOf(4) != -1 &&
  3427. (tool.askJson[0].answer ||
  3428. tool.askJson[0].answer === 0) &&
  3429. checkJson[toolIndex].length
  3430. "
  3431. class="xuan_right_box"
  3432. >
  3433. <div
  3434. class="tool_right_box"
  3435. v-for="(item, index) in tool.askJson"
  3436. :key="index"
  3437. >
  3438. <div style="width: calc(100% - 30px);">
  3439. <el-tooltip
  3440. effect="light"
  3441. :content="index + 1 + '、' + item.askstitle"
  3442. placement="top"
  3443. popper-class="text_tooltip"
  3444. >
  3445. <div
  3446. style="
  3447. width: calc(100% - 130px);
  3448. display: block;
  3449. white-space: nowrap;
  3450. overflow: hidden;
  3451. text-overflow: ellipsis;
  3452. word-break: break-word;
  3453. cursor: pointer;
  3454. "
  3455. >
  3456. {{ index + 1 + "、" + item.askstitle }}
  3457. </div>
  3458. </el-tooltip>
  3459. </div>
  3460. <div class="right_box_xuan">
  3461. <span>正确率</span>
  3462. <span>{{
  3463. (checkJson[toolIndex][index].right
  3464. ? checkJson[toolIndex][index].right
  3465. : 0) + "%"
  3466. }}</span>
  3467. </div>
  3468. </div>
  3469. </div>
  3470. <div
  3471. class="xuan_right_box"
  3472. style="background: unset; padding: 0 10px"
  3473. v-if="
  3474. tType &&
  3475. ((tType == 2 && sIsOpen == true) ||
  3476. tType == 1 ||
  3477. tType == 4) &&
  3478. tool.tool.indexOf(4) != -1
  3479. "
  3480. >
  3481. <AskStatic
  3482. v-if="
  3483. worksStudent.length &&
  3484. worksStudent[toolIndex].length > 0
  3485. "
  3486. :askJSON="tool"
  3487. :checkJson="checkJson[toolIndex]"
  3488. ></AskStatic>
  3489. </div>
  3490. <div
  3491. v-if="
  3492. tType &&
  3493. ((tType == 2 && sIsOpen == true) ||
  3494. tType == 1 ||
  3495. tType == 4) &&
  3496. tool.tool.indexOf(4) != -1
  3497. "
  3498. class="worksBox"
  3499. >
  3500. <div
  3501. class="zuoyeYulan"
  3502. v-if="
  3503. worksStudent.length &&
  3504. worksStudent[toolIndex].length > 0
  3505. "
  3506. >
  3507. <div class="worksTop">
  3508. <div>作业预览</div>
  3509. <div
  3510. class="corOpen"
  3511. @click="contract(toolIndex)"
  3512. v-if="
  3513. (isCloseList[toolIndex].isCloseBoolean) &&
  3514. isCloseList[toolIndex].isClose == 0
  3515. "
  3516. >
  3517. 折叠
  3518. </div>
  3519. <div
  3520. class="corOpen"
  3521. @click="contract(toolIndex)"
  3522. v-if="isCloseList[toolIndex].isClose == 1"
  3523. >
  3524. 展开
  3525. </div>
  3526. </div>
  3527. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3528. </div>
  3529. <div>
  3530. <div
  3531. :id="'tool-' + toolIndex"
  3532. :style="{
  3533. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3534. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3535. }"
  3536. class="worksDetailBox"
  3537. v-if="
  3538. worksStudent.length &&
  3539. worksStudent[toolIndex].length > 0
  3540. "
  3541. >
  3542. <div
  3543. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3544. :key="wIndex"
  3545. class="isWorksName2"
  3546. @click="
  3547. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3548. "
  3549. >
  3550. {{ w.sName }}
  3551. <img
  3552. class="deleteImg deleteImg2"
  3553. src="../../assets/deleteworks.png"
  3554. v-if="
  3555. w.userid == userid || tType == 1 || tType == 4
  3556. "
  3557. @click.stop="deleteWorks(w.wid)"
  3558. alt
  3559. />
  3560. </div>
  3561. <!-- <div class="works" style="
  3562. width: 200px;
  3563. height: 140px;
  3564. border-radius: 10px;
  3565. box-shadow: 0 0 6px 1px #dfdada;
  3566. overflow: hidden;
  3567. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3568. <div class="workImg">
  3569. <img src="../../assets/icon/works/noImg.png" @click="
  3570. openTools(
  3571. 4,
  3572. toolIndex,
  3573. taskCount,
  3574. w.works,
  3575. w.sName
  3576. )
  3577. " alt />
  3578. </div>
  3579. <div class="worksName">
  3580. <div>{{ w.sName }}</div>
  3581. <div>{{ w.time }}</div>
  3582. </div>
  3583. </div> -->
  3584. </div>
  3585. </div>
  3586. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3587. 未提交
  3588. </div>
  3589. <div
  3590. class="noWorksS"
  3591. v-if="noWorksS && noWorksS[toolIndex].length"
  3592. >
  3593. <div
  3594. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3595. :key="sIndex"
  3596. class="noWorksName"
  3597. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3598. >
  3599. {{ s.student }}
  3600. </div>
  3601. </div>
  3602. </div>
  3603. <div
  3604. v-if="
  3605. tType &&
  3606. ((tType == 2 && sIsOpen == true) ||
  3607. tType == 1 ||
  3608. tType == 4) &&
  3609. tool.tool.indexOf(45) != -1 &&
  3610. (tool.testJson.testJson[0].answer ||
  3611. tool.testJson.testJson[0].answer === 0) &&
  3612. checkJson[toolIndex].length
  3613. "
  3614. class="xuan_right_box"
  3615. >
  3616. <div
  3617. class="tool_right_box"
  3618. v-for="(item, index) in tool.testJson.testJson"
  3619. :key="index"
  3620. >
  3621. <div class="right_box_xuan" style="margin-right: 10px">
  3622. <span>正确率</span>
  3623. <span>{{
  3624. (checkJson[toolIndex][index].right
  3625. ? checkJson[toolIndex][index].right
  3626. : 0) + "%"
  3627. }}</span>
  3628. </div>
  3629. <div style="width: calc(100% - 30px);">
  3630. <el-tooltip
  3631. effect="light"
  3632. :content="index + 1 + '、' + item.teststitle"
  3633. placement="top"
  3634. popper-class="text_tooltip"
  3635. >
  3636. <div
  3637. style="
  3638. width: calc(100% - 130px);
  3639. display: block;
  3640. white-space: nowrap;
  3641. overflow: hidden;
  3642. text-overflow: ellipsis;
  3643. word-break: break-word;
  3644. cursor: pointer;
  3645. "
  3646. >
  3647. {{ index + 1 + "、" + item.teststitle }}
  3648. </div>
  3649. </el-tooltip>
  3650. </div>
  3651. </div>
  3652. </div>
  3653. <div
  3654. class="xuan_right_box"
  3655. style="background: unset; padding: 0 10px; width: 91.5%"
  3656. v-if="
  3657. tType &&
  3658. ((tType == 2 && sIsOpen == true) ||
  3659. tType == 1 ||
  3660. tType == 4) &&
  3661. tool.tool.indexOf(45) != -1
  3662. "
  3663. >
  3664. <AskStatic2
  3665. v-if="
  3666. worksStudent.length &&
  3667. worksStudent[toolIndex].length > 0
  3668. "
  3669. :askJSON="tool"
  3670. :checkJson="checkJson[toolIndex]"
  3671. ></AskStatic2>
  3672. </div>
  3673. <div
  3674. v-if="
  3675. tType &&
  3676. ((tType == 2 && sIsOpen == true) ||
  3677. tType == 1 ||
  3678. tType == 4) &&
  3679. tool.tool.indexOf(45) != -1
  3680. "
  3681. class="worksBox"
  3682. >
  3683. <div
  3684. class="zuoyeYulan"
  3685. v-if="
  3686. worksStudent.length &&
  3687. worksStudent[toolIndex].length > 0
  3688. "
  3689. >
  3690. <div class="worksTop">
  3691. <div>作业预览</div>
  3692. <div
  3693. class="corOpen"
  3694. @click="contract(toolIndex)"
  3695. v-if="
  3696. (isCloseList[toolIndex].isCloseBoolean) &&
  3697. isCloseList[toolIndex].isClose == 0
  3698. "
  3699. >
  3700. 折叠
  3701. </div>
  3702. <div
  3703. class="corOpen"
  3704. @click="contract(toolIndex)"
  3705. v-if="isCloseList[toolIndex].isClose == 1"
  3706. >
  3707. 展开
  3708. </div>
  3709. </div>
  3710. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3711. </div>
  3712. <div>
  3713. <div
  3714. :id="'tool-' + toolIndex"
  3715. :style="{
  3716. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3717. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3718. }"
  3719. class="worksDetailBox"
  3720. v-if="
  3721. worksStudent.length &&
  3722. worksStudent[toolIndex].length > 0
  3723. "
  3724. >
  3725. <div
  3726. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3727. :key="wIndex"
  3728. class="isWorksName2"
  3729. @click="
  3730. openTools(
  3731. 45,
  3732. toolIndex,
  3733. taskCount,
  3734. w.works,
  3735. w.sName
  3736. )
  3737. "
  3738. >
  3739. {{ w.sName }}
  3740. <img
  3741. class="deleteImg deleteImg2"
  3742. src="../../assets/deleteworks.png"
  3743. v-if="
  3744. w.userid == userid || tType == 1 || tType == 4
  3745. "
  3746. @click.stop="deleteWorks(w.wid)"
  3747. alt
  3748. />
  3749. </div>
  3750. </div>
  3751. </div>
  3752. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3753. 未提交
  3754. </div>
  3755. <div
  3756. class="noWorksS"
  3757. v-if="noWorksS && noWorksS[toolIndex].length"
  3758. >
  3759. <div
  3760. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3761. :key="sIndex"
  3762. class="noWorksName"
  3763. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  3764. >
  3765. {{ s.student }}
  3766. </div>
  3767. </div>
  3768. </div>
  3769. <div
  3770. v-if="
  3771. tType &&
  3772. ((tType == 2 && sIsOpen == true) ||
  3773. tType == 1 ||
  3774. tType == 4) &&
  3775. tool.tool.indexOf(69) != -1
  3776. "
  3777. class="worksBox"
  3778. >
  3779. <div
  3780. class="zuoyeYulan"
  3781. v-if="
  3782. worksStudent.length &&
  3783. worksStudent[toolIndex].length > 0
  3784. "
  3785. >
  3786. <div class="worksTop">
  3787. <div>作业预览</div>
  3788. <div
  3789. class="corOpen"
  3790. @click="contract(toolIndex)"
  3791. v-if="
  3792. (isCloseList[toolIndex].isCloseBoolean) &&
  3793. isCloseList[toolIndex].isClose == 0
  3794. "
  3795. >
  3796. 折叠
  3797. </div>
  3798. <div
  3799. class="corOpen"
  3800. @click="contract(toolIndex)"
  3801. v-if="isCloseList[toolIndex].isClose == 1"
  3802. >
  3803. 展开
  3804. </div>
  3805. </div>
  3806. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3807. </div>
  3808. <div>
  3809. <div
  3810. :id="'tool-' + toolIndex"
  3811. :style="{
  3812. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3813. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3814. }"
  3815. class="worksDetailBox"
  3816. v-if="
  3817. worksStudent.length &&
  3818. worksStudent[toolIndex].length > 0
  3819. "
  3820. >
  3821. <div
  3822. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3823. :key="wIndex"
  3824. class="isWorksName2"
  3825. style="width: 160px;height: 65px;line-height: 65px;"
  3826. @click="
  3827. openTools(
  3828. 69,
  3829. toolIndex,
  3830. taskCount,
  3831. w.works,
  3832. w.sName,
  3833. w.wid
  3834. )
  3835. "
  3836. >
  3837. {{ w.sName }}
  3838. <img
  3839. class="deleteImg1"
  3840. src="../../assets/evaEnglish.png"
  3841. @click.stop="openEnglishEva(w.wid,toolIndex)"
  3842. alt
  3843. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  3844. />
  3845. <img
  3846. class="deleteImg deleteImg2"
  3847. src="../../assets/deleteworks.png"
  3848. v-if="
  3849. w.userid == userid || tType == 1 || tType == 4
  3850. "
  3851. @click.stop="deleteWorks(w.wid)"
  3852. alt
  3853. />
  3854. </div>
  3855. </div>
  3856. </div>
  3857. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3858. 未提交
  3859. </div>
  3860. <div
  3861. class="noWorksS"
  3862. v-if="noWorksS && noWorksS[toolIndex].length"
  3863. >
  3864. <div
  3865. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3866. :key="sIndex"
  3867. class="noWorksName"
  3868. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  3869. >
  3870. {{ s.student }}
  3871. </div>
  3872. </div>
  3873. </div>
  3874. <div
  3875. v-if="
  3876. tType &&
  3877. ((tType == 2 && sIsOpen == true) ||
  3878. tType == 1 ||
  3879. tType == 4) &&
  3880. tool.tool.indexOf(15) != -1
  3881. "
  3882. class="worksBox"
  3883. >
  3884. <div
  3885. class="zuoyeYulan"
  3886. v-if="
  3887. (worksStudent.length &&
  3888. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  3889. "
  3890. >
  3891. <div class="worksTop">
  3892. <div>作业预览</div>
  3893. <div
  3894. class="corOpen"
  3895. @click="contract(toolIndex)"
  3896. v-if="
  3897. (isCloseList[toolIndex].isCloseBoolean) &&
  3898. isCloseList[toolIndex].isClose == 0
  3899. "
  3900. >
  3901. 折叠
  3902. </div>
  3903. <div
  3904. class="corOpen"
  3905. @click="contract(toolIndex)"
  3906. v-if="isCloseList[toolIndex].isClose == 1"
  3907. >
  3908. 展开
  3909. </div>
  3910. </div>
  3911. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3912. </div>
  3913. <div
  3914. class="group_workBox"
  3915. v-for="(g, gindex) in courseGroup.group"
  3916. :key="gindex"
  3917. >
  3918. <div class="group_box">
  3919. <div class="group_title">
  3920. <el-tooltip
  3921. class="item"
  3922. effect="light"
  3923. :content="g.name"
  3924. placement="top"
  3925. >
  3926. <div class="group_name">{{ g.name }}</div>
  3927. </el-tooltip>
  3928. </div>
  3929. <div
  3930. class="group_work"
  3931. v-if="
  3932. g.works &&
  3933. g.works.length &&
  3934. g.works[toolIndex].length
  3935. "
  3936. >
  3937. <div
  3938. class="works"
  3939. v-for="(w, wIndex) in g.works[toolIndex]"
  3940. :key="wIndex"
  3941. >
  3942. <div
  3943. class="workImg"
  3944. style="
  3945. border-radius: 15px;
  3946. box-shadow: #eee 0px 0px 5px 5px;
  3947. "
  3948. >
  3949. <div
  3950. class="answerBg"
  3951. style="border-radius: 15px 15px 0 0"
  3952. @click="
  3953. commentOther(w, toolIndex, wIndex, null, g.id)
  3954. "
  3955. >
  3956. <div class="answerContent">
  3957. {{ JSON.parse(w.works)[0].answer }}
  3958. </div>
  3959. <div
  3960. class="answerScore"
  3961. v-if="w.score"
  3962. @click.stop="openScore(w)"
  3963. :class="{
  3964. rightW:
  3965. w.userid == userid ||
  3966. tType == 1 ||
  3967. tType == 4,
  3968. }"
  3969. >
  3970. {{ JSON.parse(w.score).wScore }}分
  3971. </div>
  3972. <div
  3973. class="answerScore"
  3974. @click.stop="openScore(w)"
  3975. v-else-if="courseDetail.userid == userid"
  3976. :class="{
  3977. rightW:
  3978. w.userid == userid ||
  3979. tType == 1 ||
  3980. tType == 4,
  3981. }"
  3982. >
  3983. 评分
  3984. </div>
  3985. <img
  3986. class="deleteImg"
  3987. src="../../assets/deleteworks.png"
  3988. v-if="
  3989. w.userid == userid ||
  3990. tType == 1 ||
  3991. tType == 4
  3992. "
  3993. @click.stop="deleteWorks(w.wid)"
  3994. alt
  3995. />
  3996. </div>
  3997. <div class="comment">
  3998. <div class="worksName">
  3999. <div>{{ w.sName }}</div>
  4000. </div>
  4001. <div class="commentList">
  4002. <div
  4003. class="commentImg"
  4004. @click="
  4005. isLikes(w.wid, userid, 1, null, w.isLikes)
  4006. "
  4007. >
  4008. <img
  4009. :src="w.isLikes == true ? likes : noLikes"
  4010. alt=""
  4011. />
  4012. </div>
  4013. <div>{{ w.likesCount }}</div>
  4014. </div>
  4015. <div
  4016. class="commentList"
  4017. style="margin-right: 15px"
  4018. >
  4019. <div
  4020. class="commentImg"
  4021. @click="
  4022. commentOther(
  4023. w,
  4024. toolIndex,
  4025. wIndex,
  4026. null,
  4027. g.id
  4028. )
  4029. "
  4030. >
  4031. <img
  4032. src="../../assets/icon/comment/comment.png"
  4033. alt=""
  4034. />
  4035. </div>
  4036. <div>{{ w.commentCount }}</div>
  4037. </div>
  4038. </div>
  4039. </div>
  4040. </div>
  4041. </div>
  4042. <div class="group_work" v-else>暂无提交作业</div>
  4043. </div>
  4044. </div>
  4045. <div
  4046. :id="'tool-' + toolIndex"
  4047. :style="{
  4048. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4049. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4050. }"
  4051. class="worksDetailBox"
  4052. v-if="
  4053. worksStudent.length &&
  4054. worksStudent[toolIndex].length > 0
  4055. "
  4056. >
  4057. <div
  4058. class="works"
  4059. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4060. :key="wIndex"
  4061. >
  4062. <div
  4063. class="workImg"
  4064. style="
  4065. border-radius: 15px;
  4066. box-shadow: #eee 0px 0px 5px 5px;
  4067. "
  4068. >
  4069. <!-- <img
  4070. src="../../assets/icon/works/noImg.png"
  4071. @click="openTools(15, toolIndex, taskCount, w.works)"
  4072. alt=""
  4073. />-->
  4074. <div
  4075. class="answerBg"
  4076. style="border-radius: 15px 15px 0 0"
  4077. @click="commentOther(w, toolIndex, wIndex)"
  4078. >
  4079. <!-- <div>{{ w.sName }}</div> -->
  4080. <div class="answerContent">
  4081. {{ JSON.parse(w.works)[0].answer }}
  4082. </div>
  4083. <div
  4084. class="answerScore"
  4085. v-if="w.score"
  4086. @click.stop="openScore(w)"
  4087. :class="{
  4088. rightW:
  4089. w.userid == userid ||
  4090. tType == 1 ||
  4091. tType == 4,
  4092. }"
  4093. >
  4094. {{ JSON.parse(w.score).wScore }}分
  4095. </div>
  4096. <div
  4097. class="answerScore"
  4098. @click.stop="openScore(w)"
  4099. v-else-if="courseDetail.userid == userid"
  4100. :class="{
  4101. rightW:
  4102. w.userid == userid ||
  4103. tType == 1 ||
  4104. tType == 4,
  4105. }"
  4106. >
  4107. 评分
  4108. </div>
  4109. <img
  4110. class="deleteImg"
  4111. src="../../assets/deleteworks.png"
  4112. v-if="
  4113. w.userid == userid || tType == 1 || tType == 4
  4114. "
  4115. @click.stop="deleteWorks(w.wid)"
  4116. alt
  4117. />
  4118. </div>
  4119. <div class="comment">
  4120. <div class="worksName">
  4121. <div>{{ w.sName }}</div>
  4122. </div>
  4123. <div class="commentList">
  4124. <div
  4125. class="commentImg"
  4126. @click="
  4127. isLikes(w.wid, userid, 1, null, w.isLikes)
  4128. "
  4129. >
  4130. <img
  4131. :src="w.isLikes == true ? likes : noLikes"
  4132. alt=""
  4133. />
  4134. </div>
  4135. <div>{{ w.likesCount }}</div>
  4136. </div>
  4137. <div class="commentList" style="margin-right: 15px">
  4138. <div
  4139. class="commentImg"
  4140. @click="commentOther(w, toolIndex, wIndex)"
  4141. >
  4142. <img
  4143. src="../../assets/icon/comment/comment.png"
  4144. alt=""
  4145. />
  4146. </div>
  4147. <div>{{ w.commentCount }}</div>
  4148. </div>
  4149. </div>
  4150. </div>
  4151. </div>
  4152. </div>
  4153. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4154. 未提交
  4155. </div>
  4156. <div
  4157. class="noWorksS"
  4158. v-if="noWorksS && noWorksS[toolIndex].length"
  4159. >
  4160. <div
  4161. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4162. :key="sIndex"
  4163. class="noWorksName"
  4164. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4165. >
  4166. {{ s.student }}
  4167. </div>
  4168. </div>
  4169. </div>
  4170. <div
  4171. v-if="
  4172. tType &&
  4173. ((tType == 2 && sIsOpen == true) ||
  4174. tType == 1 ||
  4175. tType == 4) &&
  4176. tool.tool.indexOf(1) != -1
  4177. "
  4178. class="worksBox"
  4179. >
  4180. <div
  4181. class="zuoyeYulan"
  4182. v-if="
  4183. (worksStudent.length &&
  4184. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4185. "
  4186. >
  4187. <div class="worksTop">
  4188. <div>作业预览</div>
  4189. <div
  4190. class="corOpen"
  4191. @click="contract(toolIndex)"
  4192. v-if="
  4193. (isCloseList[toolIndex].isCloseBoolean) &&
  4194. isCloseList[toolIndex].isClose == 0
  4195. "
  4196. >
  4197. 折叠
  4198. </div>
  4199. <div
  4200. class="corOpen"
  4201. @click="contract(toolIndex)"
  4202. v-if="isCloseList[toolIndex].isClose == 1"
  4203. >
  4204. 展开
  4205. </div>
  4206. </div>
  4207. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4208. </div>
  4209. <div
  4210. class="group_workBox"
  4211. v-for="(g, gindex) in courseGroup.group"
  4212. :key="gindex"
  4213. >
  4214. <div class="group_box">
  4215. <div class="group_title">
  4216. <el-tooltip
  4217. class="item"
  4218. effect="light"
  4219. :content="g.name"
  4220. placement="top"
  4221. >
  4222. <div class="group_name">{{ g.name }}</div>
  4223. </el-tooltip>
  4224. </div>
  4225. <div
  4226. class="group_work"
  4227. v-if="
  4228. g.works &&
  4229. g.works.length &&
  4230. g.works[toolIndex].length
  4231. "
  4232. >
  4233. <div
  4234. class="works"
  4235. style="
  4236. width: 200px;
  4237. height: 140px;
  4238. margin: 10px 10px 10px 0;
  4239. border-radius: 15px;
  4240. box-shadow: 0 0 6px 1px #dfdada;
  4241. "
  4242. v-for="(w, wIndex) in g.works[toolIndex]"
  4243. :key="wIndex"
  4244. :class="w.type == 1 ? 'isTypeOne' : ''"
  4245. >
  4246. <div class="workImg">
  4247. <img
  4248. :src="w.works"
  4249. @click="previewImg(w.works)"
  4250. alt
  4251. />
  4252. <div
  4253. class="answerScore"
  4254. v-if="w.score"
  4255. @click.stop="openScore(w)"
  4256. :class="{
  4257. rightW:
  4258. w.userid == userid ||
  4259. tType == 1 ||
  4260. tType == 4,
  4261. }"
  4262. >
  4263. {{ JSON.parse(w.score).wScore }}分
  4264. </div>
  4265. <div
  4266. class="answerScore"
  4267. @click.stop="openScore(w)"
  4268. v-else-if="courseDetail.userid == userid"
  4269. :class="{
  4270. rightW:
  4271. w.userid == userid ||
  4272. tType == 1 ||
  4273. tType == 4,
  4274. }"
  4275. >
  4276. 评分
  4277. </div>
  4278. <img
  4279. class="deleteImg"
  4280. src="../../assets/deleteworks.png"
  4281. v-if="
  4282. w.userid == userid || tType == 1 || tType == 4
  4283. "
  4284. @click.stop="deleteWorks(w.wid)"
  4285. alt
  4286. />
  4287. </div>
  4288. <div class="comment" style="min-width: 200px">
  4289. <div class="worksName">
  4290. <div>{{ w.sName }}</div>
  4291. </div>
  4292. <div class="commentList">
  4293. <div class="commentList">
  4294. <div
  4295. class="commentImg"
  4296. @click="
  4297. isLikes(w.wid, userid, 1, null, w.isLikes)
  4298. "
  4299. >
  4300. <img
  4301. :src="w.isLikes == true ? likes : noLikes"
  4302. alt=""
  4303. />
  4304. </div>
  4305. <div>{{ w.likesCount }}</div>
  4306. </div>
  4307. <div
  4308. class="commentList"
  4309. style="margin-right: 15px"
  4310. >
  4311. <div
  4312. class="commentImg"
  4313. @click="
  4314. commentOther(
  4315. w,
  4316. toolIndex,
  4317. wIndex,
  4318. null,
  4319. g.id
  4320. )
  4321. "
  4322. >
  4323. <img
  4324. src="../../assets/icon/comment/comment.png"
  4325. alt=""
  4326. />
  4327. </div>
  4328. <div>{{ w.commentCount }}</div>
  4329. </div>
  4330. </div>
  4331. </div>
  4332. </div>
  4333. </div>
  4334. <div class="group_work" v-else>暂无提交作业</div>
  4335. </div>
  4336. </div>
  4337. <div
  4338. :id="'tool-' + toolIndex"
  4339. :style="{
  4340. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4341. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4342. }"
  4343. class="worksDetailBox"
  4344. v-if="
  4345. worksStudent.length &&
  4346. worksStudent[toolIndex].length > 0
  4347. "
  4348. >
  4349. <div
  4350. class="works"
  4351. style="
  4352. width: 200px;
  4353. height: 140px;
  4354. margin: 10px 10px 10px 0;
  4355. border-radius: 15px;
  4356. box-shadow: 0 0 6px 1px #dfdada;
  4357. "
  4358. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4359. :key="wIndex"
  4360. >
  4361. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4362. <div class="workImg">
  4363. <img
  4364. :src="w.works"
  4365. @click="previewImg(w.works)"
  4366. alt
  4367. />
  4368. <div
  4369. class="answerScore"
  4370. v-if="w.score"
  4371. @click.stop="openScore(w)"
  4372. :class="{
  4373. rightW:
  4374. w.userid == userid || tType == 1 || tType == 4,
  4375. }"
  4376. >
  4377. {{ JSON.parse(w.score).wScore }}分
  4378. </div>
  4379. <div
  4380. class="answerScore"
  4381. @click.stop="openScore(w)"
  4382. v-else-if="courseDetail.userid == userid"
  4383. :class="{
  4384. rightW:
  4385. w.userid == userid || tType == 1 || tType == 4,
  4386. }"
  4387. >
  4388. 评分
  4389. </div>
  4390. <img
  4391. class="deleteImg"
  4392. src="../../assets/deleteworks.png"
  4393. v-if="
  4394. w.userid == userid || tType == 1 || tType == 4
  4395. "
  4396. @click.stop="deleteWorks(w.wid)"
  4397. alt
  4398. />
  4399. </div>
  4400. <div class="comment" style="min-width: 200px">
  4401. <div class="worksName">
  4402. <div>{{ w.sName }}</div>
  4403. </div>
  4404. <div class="commentList">
  4405. <div class="commentList">
  4406. <div
  4407. class="commentImg"
  4408. @click="
  4409. isLikes(w.wid, userid, 1, null, w.isLikes)
  4410. "
  4411. >
  4412. <img
  4413. :src="w.isLikes == true ? likes : noLikes"
  4414. alt=""
  4415. />
  4416. </div>
  4417. <div>{{ w.likesCount }}</div>
  4418. </div>
  4419. <div class="commentList" style="margin-right: 15px">
  4420. <div
  4421. class="commentImg"
  4422. @click="commentOther(w, toolIndex, wIndex)"
  4423. >
  4424. <img
  4425. src="../../assets/icon/comment/comment.png"
  4426. alt=""
  4427. />
  4428. </div>
  4429. <div>{{ w.commentCount }}</div>
  4430. </div>
  4431. </div>
  4432. </div>
  4433. </div>
  4434. </div>
  4435. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4436. 未提交
  4437. </div>
  4438. <div
  4439. class="noWorksS"
  4440. v-if="noWorksS && noWorksS[toolIndex].length"
  4441. >
  4442. <div
  4443. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4444. :key="sIndex"
  4445. class="noWorksName"
  4446. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4447. >
  4448. {{ s.student }}
  4449. </div>
  4450. </div>
  4451. </div>
  4452. <div
  4453. v-if="
  4454. tType &&
  4455. ((tType == 2 && sIsOpen == true) ||
  4456. tType == 1 ||
  4457. tType == 4) &&
  4458. tool.tool.indexOf(3) != -1
  4459. "
  4460. class="worksBox"
  4461. >
  4462. <div
  4463. class="zuoyeYulan"
  4464. v-if="
  4465. (worksStudent.length &&
  4466. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4467. "
  4468. >
  4469. <div class="worksTop">
  4470. <div>作业预览</div>
  4471. <div
  4472. class="corOpen"
  4473. @click="contract(toolIndex)"
  4474. v-if="
  4475. (isCloseList[toolIndex].isCloseBoolean) &&
  4476. isCloseList[toolIndex].isClose == 0
  4477. "
  4478. >
  4479. 折叠
  4480. </div>
  4481. <div
  4482. class="corOpen"
  4483. @click="contract(toolIndex)"
  4484. v-if="isCloseList[toolIndex].isClose == 1"
  4485. >
  4486. 展开
  4487. </div>
  4488. </div>
  4489. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4490. </div>
  4491. <div
  4492. class="group_workBox"
  4493. v-for="(g, gindex) in courseGroup.group"
  4494. :key="gindex"
  4495. >
  4496. <div class="group_box">
  4497. <div class="group_title">
  4498. <el-tooltip
  4499. class="item"
  4500. effect="light"
  4501. :content="g.name"
  4502. placement="top"
  4503. >
  4504. <div class="group_name">{{ g.name }}</div>
  4505. </el-tooltip>
  4506. </div>
  4507. <div
  4508. class="group_work"
  4509. v-if="
  4510. g.works &&
  4511. g.works.length &&
  4512. g.works[toolIndex].length
  4513. "
  4514. >
  4515. <div
  4516. class="works"
  4517. style="
  4518. width: 200px;
  4519. height: 140px;
  4520. margin: 10px 10px 10px 0;
  4521. border-radius: 15px;
  4522. box-shadow: 0 0 6px 1px #dfdada;
  4523. "
  4524. v-for="(w, wIndex) in g.works[toolIndex]"
  4525. :key="wIndex"
  4526. :class="w.type == 1 ? 'isTypeOne' : ''"
  4527. >
  4528. <div class="workImg">
  4529. <img
  4530. :src="w.works"
  4531. @click="previewImg(w.works)"
  4532. alt
  4533. />
  4534. <div
  4535. class="answerScore"
  4536. v-if="w.score"
  4537. @click.stop="openScore(w)"
  4538. :class="{
  4539. rightW:
  4540. w.userid == userid ||
  4541. tType == 1 ||
  4542. tType == 4,
  4543. }"
  4544. >
  4545. {{ JSON.parse(w.score).wScore }}分
  4546. </div>
  4547. <div
  4548. class="answerScore"
  4549. @click.stop="openScore(w)"
  4550. v-else-if="courseDetail.userid == userid"
  4551. :class="{
  4552. rightW:
  4553. w.userid == userid ||
  4554. tType == 1 ||
  4555. tType == 4,
  4556. }"
  4557. >
  4558. 评分
  4559. </div>
  4560. <img
  4561. class="deleteImg"
  4562. src="../../assets/deleteworks.png"
  4563. v-if="
  4564. w.userid == userid || tType == 1 || tType == 4
  4565. "
  4566. @click.stop="deleteWorks(w.wid)"
  4567. alt
  4568. />
  4569. </div>
  4570. <div class="comment" style="min-width: 200px">
  4571. <div class="worksName">
  4572. <div>{{ w.sName }}</div>
  4573. </div>
  4574. <div class="commentList">
  4575. <div class="commentList">
  4576. <div
  4577. class="commentImg"
  4578. @click="
  4579. isLikes(w.wid, userid, 1, null, w.isLikes)
  4580. "
  4581. >
  4582. <img
  4583. :src="w.isLikes == true ? likes : noLikes"
  4584. alt=""
  4585. />
  4586. </div>
  4587. <div>{{ w.likesCount }}</div>
  4588. </div>
  4589. <div
  4590. class="commentList"
  4591. style="margin-right: 15px"
  4592. >
  4593. <div
  4594. class="commentImg"
  4595. @click="
  4596. commentOther(
  4597. w,
  4598. toolIndex,
  4599. wIndex,
  4600. null,
  4601. g.id
  4602. )
  4603. "
  4604. >
  4605. <img
  4606. src="../../assets/icon/comment/comment.png"
  4607. alt=""
  4608. />
  4609. </div>
  4610. <div>{{ w.commentCount }}</div>
  4611. </div>
  4612. </div>
  4613. </div>
  4614. </div>
  4615. </div>
  4616. <div class="group_work" v-else>暂无提交作业</div>
  4617. </div>
  4618. </div>
  4619. <div
  4620. :id="'tool-' + toolIndex"
  4621. :style="{
  4622. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4623. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4624. }"
  4625. class="worksDetailBox"
  4626. v-if="
  4627. worksStudent.length &&
  4628. worksStudent[toolIndex].length > 0
  4629. "
  4630. >
  4631. <div
  4632. class="works"
  4633. style="
  4634. width: 200px;
  4635. height: 140px;
  4636. margin: 10px 10px 10px 0;
  4637. border-radius: 15px;
  4638. box-shadow: 0 0 6px 1px #dfdada;
  4639. "
  4640. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4641. :key="wIndex"
  4642. >
  4643. <!-- @click="previewImg(w.works)" -->
  4644. <div class="workImg">
  4645. <img
  4646. :src="w.works"
  4647. @click="previewImg(w.works)"
  4648. alt
  4649. />
  4650. <div
  4651. class="answerScore"
  4652. v-if="w.score"
  4653. @click.stop="openScore(w)"
  4654. :class="{
  4655. rightW:
  4656. w.userid == userid || tType == 1 || tType == 4,
  4657. }"
  4658. >
  4659. {{ JSON.parse(w.score).wScore }}分
  4660. </div>
  4661. <div
  4662. class="answerScore"
  4663. @click.stop="openScore(w)"
  4664. v-else-if="courseDetail.userid == userid"
  4665. :class="{
  4666. rightW:
  4667. w.userid == userid || tType == 1 || tType == 4,
  4668. }"
  4669. >
  4670. 评分
  4671. </div>
  4672. <img
  4673. class="deleteImg"
  4674. src="../../assets/deleteworks.png"
  4675. v-if="
  4676. w.userid == userid || tType == 1 || tType == 4
  4677. "
  4678. @click.stop="deleteWorks(w.wid)"
  4679. alt
  4680. />
  4681. </div>
  4682. <div class="comment" style="min-width: 200px">
  4683. <div class="worksName">
  4684. <div>{{ w.sName }}</div>
  4685. </div>
  4686. <div class="commentList">
  4687. <div class="commentList">
  4688. <div
  4689. class="commentImg"
  4690. @click="
  4691. isLikes(w.wid, userid, 1, null, w.isLikes)
  4692. "
  4693. >
  4694. <img
  4695. :src="w.isLikes == true ? likes : noLikes"
  4696. alt=""
  4697. />
  4698. </div>
  4699. <div>{{ w.likesCount }}</div>
  4700. </div>
  4701. <div class="commentList" style="margin-right: 15px">
  4702. <div
  4703. class="commentImg"
  4704. @click="commentOther(w, toolIndex, wIndex)"
  4705. >
  4706. <img
  4707. src="../../assets/icon/comment/comment.png"
  4708. alt=""
  4709. />
  4710. </div>
  4711. <div>{{ w.commentCount }}</div>
  4712. </div>
  4713. </div>
  4714. </div>
  4715. </div>
  4716. </div>
  4717. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4718. 未提交
  4719. </div>
  4720. <div
  4721. class="noWorksS"
  4722. v-if="noWorksS && noWorksS[toolIndex].length"
  4723. >
  4724. <div
  4725. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4726. :key="sIndex"
  4727. class="noWorksName"
  4728. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  4729. >
  4730. {{ s.student }}
  4731. </div>
  4732. </div>
  4733. </div>
  4734. <div
  4735. v-if="
  4736. tType &&
  4737. ((tType == 2 && sIsOpen == true) ||
  4738. tType == 1 ||
  4739. tType == 4) &&
  4740. tool.tool.indexOf(6) != -1
  4741. "
  4742. class="worksBox"
  4743. >
  4744. <div
  4745. class="zuoyeYulan"
  4746. v-if="
  4747. (worksStudent.length &&
  4748. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4749. "
  4750. >
  4751. <div class="worksTop">
  4752. <div>作业预览</div>
  4753. <div
  4754. class="corOpen"
  4755. @click="contract(toolIndex)"
  4756. v-if="
  4757. (isCloseList[toolIndex].isCloseBoolean) &&
  4758. isCloseList[toolIndex].isClose == 0
  4759. "
  4760. >
  4761. 折叠
  4762. </div>
  4763. <div
  4764. class="corOpen"
  4765. @click="contract(toolIndex)"
  4766. v-if="isCloseList[toolIndex].isClose == 1"
  4767. >
  4768. 展开
  4769. </div>
  4770. </div>
  4771. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4772. </div>
  4773. <div
  4774. class="group_workBox"
  4775. v-for="(g, gindex) in courseGroup.group"
  4776. :key="gindex"
  4777. >
  4778. <div class="group_box">
  4779. <div class="group_title">
  4780. <el-tooltip
  4781. class="item"
  4782. effect="light"
  4783. :content="g.name"
  4784. placement="top"
  4785. >
  4786. <div class="group_name">{{ g.name }}</div>
  4787. </el-tooltip>
  4788. </div>
  4789. <div
  4790. class="group_work"
  4791. v-if="
  4792. g.works &&
  4793. g.works.length &&
  4794. g.works[toolIndex].length
  4795. "
  4796. >
  4797. <div
  4798. class="works"
  4799. style="
  4800. width: 200px;
  4801. height: 140px;
  4802. margin: 10px 10px 10px 0;
  4803. border-radius: 15px;
  4804. box-shadow: 0 0 6px 1px #dfdada;
  4805. "
  4806. v-for="(w, wIndex) in g.works[toolIndex]"
  4807. :key="wIndex"
  4808. :class="w.type == 1 ? 'isTypeOne' : ''"
  4809. >
  4810. <div class="workImg">
  4811. <img
  4812. :src="w.works"
  4813. @click="previewImg(w.works)"
  4814. alt
  4815. />
  4816. <div
  4817. class="answerScore"
  4818. v-if="w.score"
  4819. @click.stop="openScore(w)"
  4820. :class="{
  4821. rightW:
  4822. w.userid == userid ||
  4823. tType == 1 ||
  4824. tType == 4,
  4825. }"
  4826. >
  4827. {{ JSON.parse(w.score).wScore }}分
  4828. </div>
  4829. <div
  4830. class="answerScore"
  4831. @click.stop="openScore(w)"
  4832. v-else-if="courseDetail.userid == userid"
  4833. :class="{
  4834. rightW:
  4835. w.userid == userid ||
  4836. tType == 1 ||
  4837. tType == 4,
  4838. }"
  4839. >
  4840. 评分
  4841. </div>
  4842. <img
  4843. class="deleteImg"
  4844. src="../../assets/deleteworks.png"
  4845. v-if="
  4846. w.userid == userid || tType == 1 || tType == 4
  4847. "
  4848. @click.stop="deleteWorks(w.wid)"
  4849. alt
  4850. />
  4851. </div>
  4852. <div class="comment" style="min-width: 200px">
  4853. <div class="worksName">
  4854. <div>{{ w.sName }}</div>
  4855. </div>
  4856. <div class="commentList">
  4857. <div class="commentList">
  4858. <div
  4859. class="commentImg"
  4860. @click="
  4861. isLikes(w.wid, userid, 1, null, w.isLikes)
  4862. "
  4863. >
  4864. <img
  4865. :src="w.isLikes == true ? likes : noLikes"
  4866. alt=""
  4867. />
  4868. </div>
  4869. <div>{{ w.likesCount }}</div>
  4870. </div>
  4871. <div
  4872. class="commentList"
  4873. style="margin-right: 15px"
  4874. >
  4875. <div
  4876. class="commentImg"
  4877. @click="
  4878. commentOther(
  4879. w,
  4880. toolIndex,
  4881. wIndex,
  4882. null,
  4883. g.id
  4884. )
  4885. "
  4886. >
  4887. <img
  4888. src="../../assets/icon/comment/comment.png"
  4889. alt=""
  4890. />
  4891. </div>
  4892. <div>{{ w.commentCount }}</div>
  4893. </div>
  4894. </div>
  4895. </div>
  4896. </div>
  4897. </div>
  4898. <div class="group_work" v-else>暂无提交作业</div>
  4899. </div>
  4900. </div>
  4901. <div
  4902. :id="'tool-' + toolIndex"
  4903. :style="{
  4904. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4905. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4906. }"
  4907. class="worksDetailBox"
  4908. v-if="
  4909. worksStudent.length &&
  4910. worksStudent[toolIndex].length > 0
  4911. "
  4912. >
  4913. <div
  4914. class="works"
  4915. style="
  4916. width: 200px;
  4917. height: 140px;
  4918. margin: 10px 10px 10px 0;
  4919. border-radius: 15px;
  4920. box-shadow: 0 0 6px 1px #dfdada;
  4921. "
  4922. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4923. :key="wIndex"
  4924. >
  4925. <!-- @click="previewImg(w.works)" -->
  4926. <div class="workImg">
  4927. <img
  4928. :src="w.works"
  4929. @click="previewImg(w.works)"
  4930. alt
  4931. />
  4932. <div
  4933. class="answerScore"
  4934. v-if="w.score"
  4935. @click.stop="openScore(w)"
  4936. :class="{
  4937. rightW:
  4938. w.userid == userid || tType == 1 || tType == 4,
  4939. }"
  4940. >
  4941. {{ JSON.parse(w.score).wScore }}分
  4942. </div>
  4943. <div
  4944. class="answerScore"
  4945. @click.stop="openScore(w)"
  4946. v-else-if="courseDetail.userid == userid"
  4947. :class="{
  4948. rightW:
  4949. w.userid == userid || tType == 1 || tType == 4,
  4950. }"
  4951. >
  4952. 评分
  4953. </div>
  4954. <img
  4955. class="deleteImg"
  4956. src="../../assets/deleteworks.png"
  4957. v-if="
  4958. w.userid == userid || tType == 1 || tType == 4
  4959. "
  4960. @click.stop="deleteWorks(w.wid)"
  4961. alt
  4962. />
  4963. </div>
  4964. <div class="comment" style="min-width: 200px">
  4965. <div class="worksName">
  4966. <div>{{ w.sName }}</div>
  4967. </div>
  4968. <div class="commentList">
  4969. <div class="commentList">
  4970. <div
  4971. class="commentImg"
  4972. @click="
  4973. isLikes(w.wid, userid, 1, null, w.isLikes)
  4974. "
  4975. >
  4976. <img
  4977. :src="w.isLikes == true ? likes : noLikes"
  4978. alt=""
  4979. />
  4980. </div>
  4981. <div>{{ w.likesCount }}</div>
  4982. </div>
  4983. <div class="commentList" style="margin-right: 15px">
  4984. <div
  4985. class="commentImg"
  4986. @click="commentOther(w, toolIndex, wIndex)"
  4987. >
  4988. <img
  4989. src="../../assets/icon/comment/comment.png"
  4990. alt=""
  4991. />
  4992. </div>
  4993. <div>{{ w.commentCount }}</div>
  4994. </div>
  4995. </div>
  4996. </div>
  4997. </div>
  4998. </div>
  4999. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5000. 未提交
  5001. </div>
  5002. <div
  5003. class="noWorksS"
  5004. v-if="noWorksS && noWorksS[toolIndex].length"
  5005. >
  5006. <div
  5007. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5008. :key="sIndex"
  5009. class="noWorksName"
  5010. >
  5011. {{ s.student }}
  5012. </div>
  5013. </div>
  5014. </div>
  5015. <div
  5016. v-if="
  5017. tType &&
  5018. ((tType == 2 && sIsOpen == true) ||
  5019. tType == 1 ||
  5020. tType == 4) &&
  5021. tool.tool.indexOf(7) != -1
  5022. "
  5023. class="worksBox"
  5024. >
  5025. <div
  5026. class="zuoyeYulan"
  5027. v-if="
  5028. (worksStudent.length &&
  5029. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5030. "
  5031. >
  5032. <div class="worksTop">
  5033. <div>作业预览</div>
  5034. <div
  5035. class="corOpen"
  5036. @click="contract(toolIndex)"
  5037. v-if="
  5038. (isCloseList[toolIndex].isCloseBoolean) &&
  5039. isCloseList[toolIndex].isClose == 0
  5040. "
  5041. >
  5042. 折叠
  5043. </div>
  5044. <div
  5045. class="corOpen"
  5046. @click="contract(toolIndex)"
  5047. v-if="isCloseList[toolIndex].isClose == 1"
  5048. >
  5049. 展开
  5050. </div>
  5051. </div>
  5052. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5053. </div>
  5054. <div
  5055. class="group_workBox"
  5056. v-for="(g, gindex) in courseGroup.group"
  5057. :key="gindex"
  5058. >
  5059. <div class="group_box">
  5060. <div class="group_title">
  5061. <el-tooltip
  5062. class="item"
  5063. effect="light"
  5064. :content="g.name"
  5065. placement="top"
  5066. >
  5067. <div class="group_name">{{ g.name }}</div>
  5068. </el-tooltip>
  5069. </div>
  5070. <div
  5071. class="group_work"
  5072. v-if="
  5073. g.works &&
  5074. g.works.length &&
  5075. g.works[toolIndex].length
  5076. "
  5077. >
  5078. <div
  5079. class="works"
  5080. style="
  5081. width: 200px;
  5082. height: 140px;
  5083. margin: 10px 10px 10px 0;
  5084. border-radius: 15px;
  5085. box-shadow: 0 0 6px 1px #dfdada;
  5086. "
  5087. v-for="(w, wIndex) in g.works[toolIndex]"
  5088. :key="wIndex"
  5089. :class="w.type == 1 ? 'isTypeOne' : ''"
  5090. >
  5091. <div class="workImg">
  5092. <img
  5093. :src="w.works"
  5094. @click="previewImg(w.works)"
  5095. alt
  5096. />
  5097. <div
  5098. class="answerScore"
  5099. v-if="w.score"
  5100. @click.stop="openScore(w)"
  5101. :class="{
  5102. rightW:
  5103. w.userid == userid ||
  5104. tType == 1 ||
  5105. tType == 4,
  5106. }"
  5107. >
  5108. {{ JSON.parse(w.score).wScore }}分
  5109. </div>
  5110. <div
  5111. class="answerScore"
  5112. @click.stop="openScore(w)"
  5113. v-else-if="courseDetail.userid == userid"
  5114. :class="{
  5115. rightW:
  5116. w.userid == userid ||
  5117. tType == 1 ||
  5118. tType == 4,
  5119. }"
  5120. >
  5121. 评分
  5122. </div>
  5123. <img
  5124. class="deleteImg"
  5125. src="../../assets/deleteworks.png"
  5126. v-if="
  5127. w.userid == userid || tType == 1 || tType == 4
  5128. "
  5129. @click.stop="deleteWorks(w.wid)"
  5130. alt
  5131. />
  5132. </div>
  5133. <div class="comment" style="min-width: 200px">
  5134. <div class="worksName">
  5135. <div>{{ w.sName }}</div>
  5136. </div>
  5137. <div class="commentList">
  5138. <div class="commentList">
  5139. <div
  5140. class="commentImg"
  5141. @click="
  5142. isLikes(w.wid, userid, 1, null, w.isLikes)
  5143. "
  5144. >
  5145. <img
  5146. :src="w.isLikes == true ? likes : noLikes"
  5147. alt=""
  5148. />
  5149. </div>
  5150. <div>{{ w.likesCount }}</div>
  5151. </div>
  5152. <div
  5153. class="commentList"
  5154. style="margin-right: 15px"
  5155. >
  5156. <div
  5157. class="commentImg"
  5158. @click="
  5159. commentOther(
  5160. w,
  5161. toolIndex,
  5162. wIndex,
  5163. null,
  5164. g.id
  5165. )
  5166. "
  5167. >
  5168. <img
  5169. src="../../assets/icon/comment/comment.png"
  5170. alt=""
  5171. />
  5172. </div>
  5173. <div>{{ w.commentCount }}</div>
  5174. </div>
  5175. </div>
  5176. </div>
  5177. </div>
  5178. </div>
  5179. <div class="group_work" v-else>暂无提交作业</div>
  5180. </div>
  5181. </div>
  5182. <div
  5183. :id="'tool-' + toolIndex"
  5184. :style="{
  5185. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5186. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5187. }"
  5188. class="worksDetailBox"
  5189. v-if="
  5190. worksStudent.length &&
  5191. worksStudent[toolIndex].length > 0
  5192. "
  5193. >
  5194. <div
  5195. class="works"
  5196. style="
  5197. width: 200px;
  5198. height: 140px;
  5199. margin: 10px 10px 10px 0;
  5200. border-radius: 15px;
  5201. box-shadow: 0 0 6px 1px #dfdada;
  5202. "
  5203. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5204. :key="wIndex"
  5205. >
  5206. <!-- @click="previewImg(w.works)" -->
  5207. <div class="workImg">
  5208. <img
  5209. :src="w.works"
  5210. @click="previewImg(w.works)"
  5211. alt
  5212. />
  5213. <div
  5214. class="answerScore"
  5215. v-if="w.score"
  5216. @click.stop="openScore(w)"
  5217. :class="{
  5218. rightW:
  5219. w.userid == userid || tType == 1 || tType == 4,
  5220. }"
  5221. >
  5222. {{ JSON.parse(w.score).wScore }}分
  5223. </div>
  5224. <div
  5225. class="answerScore"
  5226. @click.stop="openScore(w)"
  5227. v-else-if="courseDetail.userid == userid"
  5228. :class="{
  5229. rightW:
  5230. w.userid == userid || tType == 1 || tType == 4,
  5231. }"
  5232. >
  5233. 评分
  5234. </div>
  5235. <img
  5236. class="deleteImg"
  5237. src="../../assets/deleteworks.png"
  5238. v-if="
  5239. w.userid == userid || tType == 1 || tType == 4
  5240. "
  5241. @click.stop="deleteWorks(w.wid)"
  5242. alt
  5243. />
  5244. </div>
  5245. <div class="comment" style="min-width: 200px">
  5246. <div class="worksName">
  5247. <div>{{ w.sName }}</div>
  5248. </div>
  5249. <div class="commentList">
  5250. <div class="commentList">
  5251. <div
  5252. class="commentImg"
  5253. @click="
  5254. isLikes(w.wid, userid, 1, null, w.isLikes)
  5255. "
  5256. >
  5257. <img
  5258. :src="w.isLikes == true ? likes : noLikes"
  5259. alt=""
  5260. />
  5261. </div>
  5262. <div>{{ w.likesCount }}</div>
  5263. </div>
  5264. <div class="commentList" style="margin-right: 15px">
  5265. <div
  5266. class="commentImg"
  5267. @click="commentOther(w, toolIndex, wIndex)"
  5268. >
  5269. <img
  5270. src="../../assets/icon/comment/comment.png"
  5271. alt=""
  5272. />
  5273. </div>
  5274. <div>{{ w.commentCount }}</div>
  5275. </div>
  5276. </div>
  5277. </div>
  5278. </div>
  5279. </div>
  5280. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5281. 未提交
  5282. </div>
  5283. <div
  5284. class="noWorksS"
  5285. v-if="noWorksS && noWorksS[toolIndex].length"
  5286. >
  5287. <div
  5288. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5289. :key="sIndex"
  5290. class="noWorksName"
  5291. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5292. >
  5293. {{ s.student }}
  5294. </div>
  5295. </div>
  5296. </div>
  5297. <div
  5298. v-if="
  5299. tType &&
  5300. ((tType == 2 && sIsOpen == true) ||
  5301. tType == 1 ||
  5302. tType == 4) &&
  5303. tool.tool.indexOf(26) != -1
  5304. "
  5305. class="worksBox"
  5306. >
  5307. <div
  5308. class="zuoyeYulan"
  5309. v-if="
  5310. worksStudent.length &&
  5311. worksStudent[toolIndex].length > 0
  5312. "
  5313. >
  5314. <div class="worksTop">
  5315. <div>作业预览</div>
  5316. <div
  5317. class="corOpen"
  5318. @click="contract(toolIndex)"
  5319. v-if="
  5320. (isCloseList[toolIndex].isCloseBoolean) &&
  5321. isCloseList[toolIndex].isClose == 0
  5322. "
  5323. >
  5324. 折叠
  5325. </div>
  5326. <div
  5327. class="corOpen"
  5328. @click="contract(toolIndex)"
  5329. v-if="isCloseList[toolIndex].isClose == 1"
  5330. >
  5331. 展开
  5332. </div>
  5333. </div>
  5334. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5335. </div>
  5336. <div
  5337. :id="'tool-' + toolIndex"
  5338. :style="{
  5339. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5340. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5341. }"
  5342. class="worksDetailBox"
  5343. v-if="
  5344. worksStudent.length &&
  5345. worksStudent[toolIndex].length > 0
  5346. "
  5347. >
  5348. <div
  5349. class="works"
  5350. style="width: 240px; height: 140px; overflow: hidden"
  5351. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5352. :key="wIndex"
  5353. :class="w.type == 1 ? 'isTypeOne' : ''"
  5354. >
  5355. <div class="workImg" v-if="w.type == 0">
  5356. <img
  5357. :src="w.works"
  5358. @click="previewImg(w.works)"
  5359. alt
  5360. />
  5361. <img
  5362. class="deleteImg"
  5363. src="../../assets/deleteworks.png"
  5364. v-if="
  5365. w.userid == userid || tType == 1 || tType == 4
  5366. "
  5367. @click.stop="deleteWorks(w.wid)"
  5368. alt
  5369. />
  5370. </div>
  5371. <div class="workImg" v-if="w.type == 1">
  5372. <img :src="word" @click="openFile(w.works)" alt />
  5373. <img
  5374. class="deleteImg"
  5375. src="../../assets/deleteworks.png"
  5376. v-if="
  5377. w.userid == userid || tType == 1 || tType == 4
  5378. "
  5379. @click.stop="deleteWorks(w.wid)"
  5380. alt
  5381. />
  5382. </div>
  5383. <div class="worksName">
  5384. <div>{{ w.sName }}</div>
  5385. </div>
  5386. </div>
  5387. </div>
  5388. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5389. 未提交
  5390. </div>
  5391. <div
  5392. class="noWorksS"
  5393. v-if="noWorksS && noWorksS[toolIndex].length"
  5394. >
  5395. <div
  5396. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5397. :key="sIndex"
  5398. class="noWorksName"
  5399. >
  5400. {{ s.student }}
  5401. </div>
  5402. </div>
  5403. </div>
  5404. <div
  5405. v-if="
  5406. tType &&
  5407. ((tType == 2 && sIsOpen == true) ||
  5408. tType == 1 ||
  5409. tType == 4) &&
  5410. tool.tool.indexOf(40) != -1
  5411. "
  5412. class="worksBox"
  5413. >
  5414. <div
  5415. class="zuoyeYulan"
  5416. v-if="
  5417. worksStudent.length &&
  5418. worksStudent[toolIndex].length > 0
  5419. "
  5420. >
  5421. <div class="worksTop">
  5422. <div>作业预览</div>
  5423. <div
  5424. class="corOpen"
  5425. @click="contract(toolIndex)"
  5426. v-if="
  5427. (isCloseList[toolIndex].isCloseBoolean) &&
  5428. isCloseList[toolIndex].isClose == 0
  5429. "
  5430. >
  5431. 折叠
  5432. </div>
  5433. <div
  5434. class="corOpen"
  5435. @click="contract(toolIndex)"
  5436. v-if="isCloseList[toolIndex].isClose == 1"
  5437. >
  5438. 展开
  5439. </div>
  5440. </div>
  5441. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5442. </div>
  5443. <div
  5444. :id="'tool-' + toolIndex"
  5445. :style="{
  5446. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5447. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5448. }"
  5449. class="worksDetailBox"
  5450. v-if="
  5451. worksStudent.length &&
  5452. worksStudent[toolIndex].length > 0
  5453. "
  5454. >
  5455. <div
  5456. class="works"
  5457. style="
  5458. width: 200px;
  5459. height: 140px;
  5460. margin: 10px 10px 10px 0;
  5461. border-radius: 15px;
  5462. box-shadow: 0 0 6px 1px #dfdada;
  5463. "
  5464. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5465. :key="wIndex"
  5466. :class="w.type == 1 ? 'isTypeOne' : ''"
  5467. >
  5468. <div class="workImg">
  5469. <img
  5470. src="../../assets/icon/works/noImg.png"
  5471. @click="openPj(w.works, toolIndex)"
  5472. alt
  5473. />
  5474. <img
  5475. class="deleteImg"
  5476. src="../../assets/deleteworks.png"
  5477. v-if="
  5478. w.userid == userid || tType == 1 || tType == 4
  5479. "
  5480. @click.stop="deleteWorks(w.wid)"
  5481. alt
  5482. />
  5483. </div>
  5484. <div class="comment" style="min-width: 200px">
  5485. <div class="worksName">
  5486. <div>{{ w.sName }}</div>
  5487. </div>
  5488. <div class="commentList">
  5489. <div class="commentList">
  5490. <div
  5491. class="commentImg"
  5492. @click="
  5493. isLikes(w.wid, userid, 1, null, w.isLikes)
  5494. "
  5495. >
  5496. <img
  5497. :src="w.isLikes == true ? likes : noLikes"
  5498. alt=""
  5499. />
  5500. </div>
  5501. <div>{{ w.likesCount }}</div>
  5502. </div>
  5503. <div class="commentList" style="margin-right: 15px">
  5504. <div
  5505. class="commentImg"
  5506. @click="commentOther(w, toolIndex, wIndex)"
  5507. >
  5508. <img
  5509. src="../../assets/icon/comment/comment.png"
  5510. alt=""
  5511. />
  5512. </div>
  5513. <div>{{ w.commentCount }}</div>
  5514. </div>
  5515. </div>
  5516. </div>
  5517. </div>
  5518. </div>
  5519. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5520. 未提交
  5521. </div>
  5522. <div
  5523. class="noWorksS"
  5524. v-if="noWorksS && noWorksS[toolIndex].length"
  5525. >
  5526. <div
  5527. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5528. :key="sIndex"
  5529. class="noWorksName"
  5530. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5531. >
  5532. {{ s.student }}
  5533. </div>
  5534. </div>
  5535. </div>
  5536. <div
  5537. v-if="
  5538. tType &&
  5539. tType == 2 &&
  5540. !sIsOpen &&
  5541. tool.tool.indexOf(40) != -1
  5542. "
  5543. class="worksBox"
  5544. >
  5545. <div
  5546. class="zuoyeYulan"
  5547. v-if="workStudent[toolIndex].length > 0"
  5548. >
  5549. <span class="worksTitle">作业预览</span>
  5550. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5551. </div>
  5552. <div
  5553. class="worksDetailBox"
  5554. v-if="workStudent[toolIndex].length > 0"
  5555. >
  5556. <div
  5557. class="works"
  5558. style="
  5559. width: 200px;
  5560. height: 140px;
  5561. margin: 10px 10px 10px 0;
  5562. "
  5563. v-for="(w, wIndex) in workStudent[toolIndex]"
  5564. :key="wIndex"
  5565. >
  5566. <div class="workImg">
  5567. <img
  5568. src="../../assets/icon/works/noImg.png"
  5569. @click="openPj(w.works, toolIndex)"
  5570. alt
  5571. />
  5572. <img
  5573. class="deleteImg"
  5574. src="../../assets/deleteworks.png"
  5575. v-if="
  5576. w.userid == userid || tType == 1 || tType == 4
  5577. "
  5578. @click.stop="deleteWorks(w.wid)"
  5579. alt
  5580. />
  5581. </div>
  5582. <div class="worksName">
  5583. <div>{{ w.sName }}</div>
  5584. </div>
  5585. </div>
  5586. </div>
  5587. </div>
  5588. <div
  5589. v-if="
  5590. tType &&
  5591. ((tType == 2 && sIsOpen == true) ||
  5592. tType == 1 ||
  5593. tType == 4) &&
  5594. tool.tool.indexOf(41) != -1
  5595. "
  5596. >
  5597. <AnswerData2
  5598. v-if="
  5599. worksStudent.length &&
  5600. worksStudent[toolIndex].length > 0
  5601. "
  5602. :problemJson="tool.selectJson.answer"
  5603. :people="worksStudent[toolIndex]"
  5604. ></AnswerData2>
  5605. </div>
  5606. <div
  5607. v-if="
  5608. tType &&
  5609. ((tType == 2 && sIsOpen == true) ||
  5610. tType == 1 ||
  5611. tType == 4) &&
  5612. tool.tool.indexOf(41) != -1
  5613. "
  5614. class="worksBox"
  5615. >
  5616. <div
  5617. class="zuoyeYulan"
  5618. v-if="
  5619. worksStudent.length &&
  5620. worksStudent[toolIndex].length > 0
  5621. "
  5622. >
  5623. <div class="worksTop">
  5624. <div>作业预览</div>
  5625. <div
  5626. class="corOpen"
  5627. @click="contract(toolIndex)"
  5628. v-if="
  5629. (isCloseList[toolIndex].isCloseBoolean) &&
  5630. isCloseList[toolIndex].isClose == 0
  5631. "
  5632. >
  5633. 折叠
  5634. </div>
  5635. <div
  5636. class="corOpen"
  5637. @click="contract(toolIndex)"
  5638. v-if="isCloseList[toolIndex].isClose == 1"
  5639. >
  5640. 展开
  5641. </div>
  5642. </div>
  5643. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5644. </div>
  5645. <div
  5646. :id="'tool-' + toolIndex"
  5647. :style="{
  5648. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5649. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5650. }"
  5651. class="worksDetailBox"
  5652. v-if="
  5653. worksStudent.length &&
  5654. worksStudent[toolIndex].length > 0
  5655. "
  5656. >
  5657. <div
  5658. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5659. :key="wIndex"
  5660. class="isWorksName2"
  5661. @click="openXz(w, toolIndex)"
  5662. >
  5663. {{ w.sName }}
  5664. <img
  5665. class="deleteImg deleteImg2"
  5666. src="../../assets/deleteworks.png"
  5667. v-if="w.userid == userid || tType == 1 || tType == 4"
  5668. @click.stop="deleteWorks(w.wid)"
  5669. alt
  5670. />
  5671. </div>
  5672. <!-- <div
  5673. class="works"
  5674. style="
  5675. width: 200px;
  5676. height: 140px;
  5677. margin: 10px 10px 10px 0;
  5678. border-radius: 15px;
  5679. box-shadow: 0 0 6px 1px #dfdada;
  5680. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  5681. :class="w.type == 5 ? 'isTypeOne' : ''">
  5682. <div class="workImg">
  5683. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  5684. </div>
  5685. <div class="worksName">
  5686. <div>{{ w.sName }}</div>
  5687. </div>
  5688. </div> -->
  5689. </div>
  5690. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5691. 未提交
  5692. </div>
  5693. <div
  5694. class="noWorksS"
  5695. v-if="noWorksS && noWorksS[toolIndex].length"
  5696. >
  5697. <div
  5698. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5699. :key="sIndex"
  5700. class="noWorksName"
  5701. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5702. >
  5703. {{ s.student }}
  5704. </div>
  5705. </div>
  5706. </div>
  5707. <div
  5708. v-if="
  5709. tType &&
  5710. tType == 2 &&
  5711. !sIsOpen &&
  5712. tool.tool.indexOf(41) != -1
  5713. "
  5714. class="worksBox"
  5715. >
  5716. <div
  5717. class="zuoyeYulan"
  5718. v-if="workStudent[toolIndex].length > 0"
  5719. >
  5720. <span class="worksTitle">作业预览</span>
  5721. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5722. </div>
  5723. <div
  5724. class="worksDetailBox"
  5725. v-if="workStudent[toolIndex].length > 0"
  5726. >
  5727. <div
  5728. class="works"
  5729. style="
  5730. width: 200px;
  5731. height: 140px;
  5732. margin: 10px 10px 10px 0;
  5733. "
  5734. v-for="(w, wIndex) in workStudent[toolIndex]"
  5735. :key="wIndex"
  5736. >
  5737. <div class="workImg">
  5738. <img
  5739. src="../../assets/icon/works/noImg.png"
  5740. @click="openXz(w, toolIndex)"
  5741. alt
  5742. />
  5743. <img
  5744. class="deleteImg"
  5745. src="../../assets/deleteworks.png"
  5746. v-if="
  5747. w.userid == userid || tType == 1 || tType == 4
  5748. "
  5749. @click.stop="deleteWorks(w.wid)"
  5750. alt
  5751. />
  5752. </div>
  5753. <div class="worksName">
  5754. <div>{{ w.sName }}</div>
  5755. </div>
  5756. </div>
  5757. </div>
  5758. </div>
  5759. <div v-if="false" class="xuan_right_box">
  5760. <div
  5761. class="tool_right_box"
  5762. v-for="(item, index) in tool.sentenceList"
  5763. :key="index"
  5764. >
  5765. <div>
  5766. <span
  5767. style="word-break: break-all; white-space: normal"
  5768. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  5769. >
  5770. </div>
  5771. <div class="right_box_xuan">
  5772. <span>正确率</span>
  5773. <span>{{
  5774. (checkJson[toolIndex][index].right
  5775. ? checkJson[toolIndex][index].right
  5776. : 0) + "%"
  5777. }}</span>
  5778. </div>
  5779. <div class="right_box_xuan">
  5780. <span>答对人数</span>
  5781. <span>{{
  5782. checkJson[toolIndex][index].rightPerson.length
  5783. }}</span>
  5784. </div>
  5785. </div>
  5786. </div>
  5787. <div
  5788. v-if="
  5789. tType &&
  5790. ((tType == 2 && sIsOpen == true) ||
  5791. tType == 1 ||
  5792. tType == 4) &&
  5793. tool.tool.indexOf(47) != -1
  5794. "
  5795. >
  5796. <AnswerData
  5797. v-if="
  5798. checkJson[toolIndex].length &&
  5799. (tool.sentenceList || tool.sentenceList.length > 0)
  5800. "
  5801. :people="checkJson[toolIndex]"
  5802. ></AnswerData>
  5803. </div>
  5804. <div
  5805. v-if="
  5806. tType &&
  5807. tType == 2 &&
  5808. !sIsOpen &&
  5809. tool.tool.indexOf(47) != -1
  5810. "
  5811. class="worksBox"
  5812. >
  5813. <div
  5814. class="zuoyeYulan"
  5815. v-if="workStudent[toolIndex].length > 0"
  5816. >
  5817. <span class="worksTitle">作业预览</span>
  5818. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5819. </div>
  5820. <div
  5821. class="worksDetailBox"
  5822. v-if="workStudent[toolIndex].length > 0"
  5823. >
  5824. <div
  5825. class="works"
  5826. style="
  5827. width: 200px;
  5828. height: 140px;
  5829. margin: 10px 10px 10px 0;
  5830. "
  5831. v-for="(w, wIndex) in workStudent[toolIndex]"
  5832. :key="wIndex"
  5833. >
  5834. <!-- @click="openXz(w, toolIndex)" -->
  5835. <div class="workImg" @click="openSen(w, toolIndex)">
  5836. <img src="../../assets/icon/works/noImg.png" alt />
  5837. <img
  5838. class="deleteImg"
  5839. src="../../assets/deleteworks.png"
  5840. v-if="
  5841. w.userid == userid || tType == 1 || tType == 4
  5842. "
  5843. @click.stop="deleteWorks(w.wid)"
  5844. alt
  5845. />
  5846. </div>
  5847. <div class="worksName">
  5848. <div>
  5849. {{ w.sName }}
  5850. </div>
  5851. </div>
  5852. </div>
  5853. </div>
  5854. </div>
  5855. <div
  5856. v-if="
  5857. tType &&
  5858. ((tType == 2 && sIsOpen == true) ||
  5859. tType == 1 ||
  5860. tType == 4) &&
  5861. tool.tool.indexOf(47) != -1
  5862. "
  5863. class="worksBox"
  5864. >
  5865. <div
  5866. class="zuoyeYulan"
  5867. v-if="
  5868. worksStudent.length &&
  5869. worksStudent[toolIndex].length > 0
  5870. "
  5871. >
  5872. <div class="worksTop">
  5873. <div>作业预览</div>
  5874. <div
  5875. class="corOpen"
  5876. @click="contract(toolIndex)"
  5877. v-if="
  5878. (isCloseList[toolIndex].isCloseBoolean) &&
  5879. isCloseList[toolIndex].isClose == 0
  5880. "
  5881. >
  5882. 折叠
  5883. </div>
  5884. <div
  5885. class="corOpen"
  5886. @click="contract(toolIndex)"
  5887. v-if="isCloseList[toolIndex].isClose == 1"
  5888. >
  5889. 展开
  5890. </div>
  5891. </div>
  5892. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5893. </div>
  5894. <div
  5895. :id="'tool-' + toolIndex"
  5896. :style="{
  5897. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5898. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5899. }"
  5900. class="worksDetailBox"
  5901. v-if="
  5902. worksStudent.length &&
  5903. worksStudent[toolIndex].length > 0
  5904. "
  5905. >
  5906. <!-- @click="openXz(w, toolIndex)" -->
  5907. <div
  5908. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5909. :key="wIndex"
  5910. class="isWorksName2"
  5911. @click="openSen(w, toolIndex)"
  5912. >
  5913. {{ w.sName }}
  5914. <img
  5915. class="deleteImg deleteImg2"
  5916. src="../../assets/deleteworks.png"
  5917. v-if="w.userid == userid || tType == 1 || tType == 4"
  5918. @click.stop="deleteWorks(w.wid)"
  5919. alt
  5920. />
  5921. </div>
  5922. </div>
  5923. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5924. 未提交
  5925. </div>
  5926. <div
  5927. class="noWorksS"
  5928. v-if="noWorksS && noWorksS[toolIndex].length"
  5929. >
  5930. <div
  5931. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5932. :key="sIndex"
  5933. class="noWorksName"
  5934. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  5935. >
  5936. {{ s.student }}
  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(48) != -1
  5947. "
  5948. class="worksBox"
  5949. >
  5950. <div
  5951. class="zuoyeYulan"
  5952. v-if="
  5953. worksStudent.length &&
  5954. worksStudent[toolIndex].length > 0
  5955. "
  5956. >
  5957. <div class="worksTop">
  5958. <div>作业预览</div>
  5959. <div
  5960. class="corOpen"
  5961. @click="contract(toolIndex)"
  5962. v-if="
  5963. (isCloseList[toolIndex].isCloseBoolean) &&
  5964. isCloseList[toolIndex].isClose == 0
  5965. "
  5966. >
  5967. 折叠
  5968. </div>
  5969. <div
  5970. class="corOpen"
  5971. @click="contract(toolIndex)"
  5972. v-if="isCloseList[toolIndex].isClose == 1"
  5973. >
  5974. 展开
  5975. </div>
  5976. </div>
  5977. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5978. </div>
  5979. <div
  5980. :id="'tool-' + toolIndex"
  5981. :style="{
  5982. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5983. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5984. }"
  5985. class="worksDetailBox"
  5986. v-if="
  5987. worksStudent.length &&
  5988. worksStudent[toolIndex].length > 0
  5989. "
  5990. >
  5991. <div
  5992. class="works"
  5993. style="
  5994. width: 200px;
  5995. height: 140px;
  5996. margin: 10px 10px 10px 0;
  5997. border-radius: 15px;
  5998. box-shadow: 0 0 6px 1px #dfdada;
  5999. "
  6000. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6001. :key="wIndex"
  6002. :class="w.type == 1 ? 'isTypeOne' : ''"
  6003. >
  6004. <div class="workImg">
  6005. <img :src="word" @click="openTable(w)" alt />
  6006. <!-- @click="openFile(w.works)" -->
  6007. <div
  6008. class="answerScore"
  6009. v-if="w.score"
  6010. @click.stop="openScore(w)"
  6011. :class="{
  6012. rightW:
  6013. w.userid == userid ||
  6014. tType == 1 ||
  6015. tType == 4 ||
  6016. w.ateacher == userid,
  6017. }"
  6018. >
  6019. {{ JSON.parse(w.score).wScore }}分
  6020. </div>
  6021. <div
  6022. class="answerScore"
  6023. @click.stop="openScore(w)"
  6024. v-else-if="courseDetail.userid == userid"
  6025. :class="{
  6026. rightW:
  6027. w.userid == userid ||
  6028. tType == 1 ||
  6029. tType == 4 ||
  6030. w.ateacher == userid,
  6031. }"
  6032. >
  6033. 评分
  6034. </div>
  6035. <img
  6036. class="deleteImg"
  6037. src="../../assets/deleteworks.png"
  6038. v-if="
  6039. w.userid == userid || tType == 1 || tType == 4
  6040. "
  6041. @click.stop="deleteWorks(w.wid)"
  6042. alt
  6043. />
  6044. </div>
  6045. <div class="comment" style="min-width: 200px">
  6046. <div class="worksName">
  6047. <div>{{ w.sName }}</div>
  6048. </div>
  6049. <div class="commentList">
  6050. <div class="commentList">
  6051. <div
  6052. class="commentImg"
  6053. @click="
  6054. isLikes(w.wid, userid, 1, null, w.isLikes)
  6055. "
  6056. >
  6057. <img
  6058. :src="w.isLikes == true ? likes : noLikes"
  6059. alt=""
  6060. />
  6061. </div>
  6062. <div>{{ w.likesCount }}</div>
  6063. </div>
  6064. <div class="commentList" style="margin-right: 15px">
  6065. <div
  6066. class="commentImg"
  6067. @click="commentOther(w, toolIndex, wIndex)"
  6068. >
  6069. <img
  6070. src="../../assets/icon/comment/comment.png"
  6071. alt=""
  6072. />
  6073. </div>
  6074. <div>{{ w.commentCount }}</div>
  6075. </div>
  6076. </div>
  6077. </div>
  6078. </div>
  6079. </div>
  6080. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6081. 未提交
  6082. </div>
  6083. <div
  6084. class="noWorksS"
  6085. v-if="noWorksS && noWorksS[toolIndex].length"
  6086. >
  6087. <div
  6088. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6089. :key="sIndex"
  6090. class="noWorksName"
  6091. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6092. >
  6093. {{ s.student }}
  6094. </div>
  6095. </div>
  6096. </div>
  6097. <div
  6098. v-if="
  6099. tType &&
  6100. tType == 2 &&
  6101. !sIsOpen &&
  6102. tool.tool.indexOf(48) != -1
  6103. "
  6104. class="worksBox"
  6105. >
  6106. <div
  6107. class="zuoyeYulan"
  6108. v-if="workStudent[toolIndex].length > 0"
  6109. >
  6110. <span class="worksTitle">作业预览</span>
  6111. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6112. </div>
  6113. <div
  6114. class="worksDetailBox"
  6115. v-if="workStudent[toolIndex].length > 0"
  6116. >
  6117. <div
  6118. class="works"
  6119. style="
  6120. width: 200px;
  6121. height: 140px;
  6122. margin: 10px 10px 10px 0;
  6123. box-shadow: 0 0 6px 1px #dfdada;
  6124. "
  6125. v-for="(w, wIndex) in workStudent[toolIndex]"
  6126. :key="wIndex"
  6127. >
  6128. <div class="workImg">
  6129. <img :src="word" @click="openTable(w)" alt />
  6130. <div
  6131. class="answerScore"
  6132. v-if="w.score"
  6133. @click.stop="openScore(w)"
  6134. :class="{
  6135. rightW:
  6136. w.userid == userid || tType == 1 || tType == 4,
  6137. }"
  6138. >
  6139. {{ JSON.parse(w.score).wScore }}分
  6140. </div>
  6141. <div
  6142. class="answerScore"
  6143. @click.stop="openScore(w)"
  6144. v-else-if="courseDetail.userid == userid"
  6145. :class="{
  6146. rightW:
  6147. w.userid == userid || tType == 1 || tType == 4,
  6148. }"
  6149. >
  6150. 评分
  6151. </div>
  6152. <img
  6153. class="deleteImg"
  6154. src="../../assets/deleteworks.png"
  6155. v-if="
  6156. w.userid == userid || tType == 1 || tType == 4
  6157. "
  6158. @click.stop="deleteWorks(w.wid)"
  6159. alt
  6160. />
  6161. </div>
  6162. <div class="worksName">
  6163. <div>{{ w.sName }}</div>
  6164. </div>
  6165. </div>
  6166. </div>
  6167. </div>
  6168. <div
  6169. v-if="
  6170. tType &&
  6171. ((tType == 2 && sIsOpen == true) ||
  6172. tType == 1 ||
  6173. tType == 4) &&
  6174. tool.tool.indexOf(52) != -1
  6175. "
  6176. class="worksBox"
  6177. >
  6178. <div
  6179. class="zuoyeYulan"
  6180. v-if="
  6181. worksStudent.length &&
  6182. worksStudent[toolIndex].length > 0
  6183. "
  6184. >
  6185. <div class="worksTop">
  6186. <div>作业预览</div>
  6187. <div
  6188. class="corOpen"
  6189. @click="contract(toolIndex)"
  6190. v-if="
  6191. (isCloseList[toolIndex].isCloseBoolean) &&
  6192. isCloseList[toolIndex].isClose == 0
  6193. "
  6194. >
  6195. 折叠
  6196. </div>
  6197. <div
  6198. class="corOpen"
  6199. @click="contract(toolIndex)"
  6200. v-if="isCloseList[toolIndex].isClose == 1"
  6201. >
  6202. 展开
  6203. </div>
  6204. </div>
  6205. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6206. </div>
  6207. <div
  6208. :id="'tool-' + toolIndex"
  6209. :style="{
  6210. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6211. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6212. }"
  6213. class="worksDetailBox"
  6214. v-if="
  6215. worksStudent.length &&
  6216. worksStudent[toolIndex].length > 0
  6217. "
  6218. >
  6219. <div
  6220. class="works"
  6221. style="
  6222. width: 200px;
  6223. height: 140px;
  6224. margin: 10px 10px 10px 0;
  6225. border-radius: 15px;
  6226. box-shadow: 0 0 6px 1px #dfdada;
  6227. "
  6228. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6229. :key="wIndex"
  6230. :class="w.type == 1 ? 'isTypeOne' : ''"
  6231. >
  6232. <div class="workImg">
  6233. <img :src="word" @click="openWord(w)" alt />
  6234. <!-- @click="openFile(w.works)" -->
  6235. <div
  6236. class="answerScore"
  6237. v-if="w.score"
  6238. @click.stop="openScore(w)"
  6239. :class="{
  6240. rightW:
  6241. w.userid == userid ||
  6242. tType == 1 ||
  6243. tType == 4 ||
  6244. w.ateacher == userid,
  6245. }"
  6246. >
  6247. {{ JSON.parse(w.score).wScore }}分
  6248. </div>
  6249. <div
  6250. class="answerScore"
  6251. @click.stop="openScore(w)"
  6252. v-else-if="courseDetail.userid == userid"
  6253. :class="{
  6254. rightW:
  6255. w.userid == userid ||
  6256. tType == 1 ||
  6257. tType == 4 ||
  6258. w.ateacher == userid,
  6259. }"
  6260. >
  6261. 评分
  6262. </div>
  6263. <img
  6264. class="deleteImg"
  6265. src="../../assets/deleteworks.png"
  6266. v-if="
  6267. w.userid == userid || tType == 1 || tType == 4
  6268. "
  6269. @click.stop="deleteWorks(w.wid)"
  6270. alt
  6271. />
  6272. </div>
  6273. <div class="comment" style="min-width: 200px">
  6274. <div class="worksName">
  6275. <div>{{ w.sName }}</div>
  6276. </div>
  6277. <div class="commentList">
  6278. <div class="commentList">
  6279. <div
  6280. class="commentImg"
  6281. @click="
  6282. isLikes(w.wid, userid, 1, null, w.isLikes)
  6283. "
  6284. >
  6285. <img
  6286. :src="w.isLikes == true ? likes : noLikes"
  6287. alt=""
  6288. />
  6289. </div>
  6290. <div>{{ w.likesCount }}</div>
  6291. </div>
  6292. <div class="commentList" style="margin-right: 15px">
  6293. <div
  6294. class="commentImg"
  6295. @click="commentOther(w, toolIndex, wIndex)"
  6296. >
  6297. <img
  6298. src="../../assets/icon/comment/comment.png"
  6299. alt=""
  6300. />
  6301. </div>
  6302. <div>{{ w.commentCount }}</div>
  6303. </div>
  6304. </div>
  6305. </div>
  6306. </div>
  6307. </div>
  6308. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6309. 未提交
  6310. </div>
  6311. <div
  6312. class="noWorksS"
  6313. v-if="noWorksS && noWorksS[toolIndex].length"
  6314. >
  6315. <div
  6316. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6317. :key="sIndex"
  6318. class="noWorksName"
  6319. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6320. >
  6321. {{ s.student }}
  6322. </div>
  6323. </div>
  6324. </div>
  6325. <div
  6326. v-if="
  6327. tType &&
  6328. tType == 2 &&
  6329. !sIsOpen &&
  6330. tool.tool.indexOf(52) != -1
  6331. "
  6332. class="worksBox"
  6333. >
  6334. <div
  6335. class="zuoyeYulan"
  6336. v-if="workStudent[toolIndex].length > 0"
  6337. >
  6338. <span class="worksTitle">作业预览</span>
  6339. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6340. </div>
  6341. <div
  6342. class="worksDetailBox"
  6343. v-if="workStudent[toolIndex].length > 0"
  6344. >
  6345. <div
  6346. class="works"
  6347. style="
  6348. width: 200px;
  6349. height: 140px;
  6350. margin: 10px 10px 10px 0;
  6351. box-shadow: 0 0 6px 1px #dfdada;
  6352. "
  6353. v-for="(w, wIndex) in workStudent[toolIndex]"
  6354. :key="wIndex"
  6355. >
  6356. <div class="workImg">
  6357. <img :src="word" @click="openWord(w)" alt />
  6358. <div
  6359. class="answerScore"
  6360. v-if="w.score"
  6361. @click.stop="openScore(w)"
  6362. :class="{
  6363. rightW:
  6364. w.userid == userid || tType == 1 || tType == 4,
  6365. }"
  6366. >
  6367. {{ JSON.parse(w.score).wScore }}分
  6368. </div>
  6369. <div
  6370. class="answerScore"
  6371. @click.stop="openScore(w)"
  6372. v-else-if="courseDetail.userid == userid"
  6373. :class="{
  6374. rightW:
  6375. w.userid == userid || tType == 1 || tType == 4,
  6376. }"
  6377. >
  6378. 评分
  6379. </div>
  6380. <img
  6381. class="deleteImg"
  6382. src="../../assets/deleteworks.png"
  6383. v-if="
  6384. w.userid == userid || tType == 1 || tType == 4
  6385. "
  6386. @click.stop="deleteWorks(w.wid)"
  6387. alt
  6388. />
  6389. </div>
  6390. <div class="worksName">
  6391. <div>{{ w.sName }}</div>
  6392. </div>
  6393. </div>
  6394. </div>
  6395. </div>
  6396. <div
  6397. v-if="tool.tool.indexOf(49) != -1"
  6398. class="xuan_right_box"
  6399. style="margin: 0 15px 0 25px; width: 93%"
  6400. >
  6401. <div
  6402. v-if="courseDetail.userid == userid"
  6403. style="
  6404. display: flex;
  6405. justify-content: flex-end;
  6406. margin-right: 10px;
  6407. "
  6408. >
  6409. <el-button
  6410. type="primary"
  6411. size="small"
  6412. @click="addTools(49, toolIndex, taskCount)"
  6413. >分组设置</el-button
  6414. >
  6415. </div>
  6416. <div
  6417. v-if="groupStudentUid[toolIndex]"
  6418. class="group_staic_box"
  6419. >
  6420. <div
  6421. v-for="(gp, gd) in tool.groupJson.group"
  6422. :key="gd"
  6423. class="group_staic"
  6424. >
  6425. <span> {{ gp.name }}</span>
  6426. <span>
  6427. 目前人数{{
  6428. groupStudentUid[toolIndex][gd].length
  6429. }}人</span
  6430. >
  6431. </div>
  6432. </div>
  6433. </div>
  6434. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6435. <div
  6436. class="zuoyeYulan"
  6437. v-if="
  6438. worksStudent.length &&
  6439. worksStudent[toolIndex].length > 0
  6440. "
  6441. >
  6442. <span class="worksTitle">作业预览</span>
  6443. </div>
  6444. <div>
  6445. <div
  6446. class="group_workBox"
  6447. v-for="(g, gindex) in tool.groupJson.group"
  6448. :key="gindex"
  6449. >
  6450. <div
  6451. class="group_box"
  6452. v-if="
  6453. groupStudentUid[toolIndex] &&
  6454. worksStudent[toolIndex] &&
  6455. (worksStudent[toolIndex][gindex].length ||
  6456. groupStudentUid[toolIndex][gindex].indexOf(
  6457. userid
  6458. ) != -1)
  6459. "
  6460. >
  6461. <div class="group_title">
  6462. <el-tooltip
  6463. class="item"
  6464. effect="light"
  6465. :content="g.name"
  6466. placement="top"
  6467. >
  6468. <div class="group_name">{{ g.name }}</div>
  6469. </el-tooltip>
  6470. <el-button
  6471. type="primary"
  6472. v-if="
  6473. groupStudentUid[toolIndex][gindex].indexOf(
  6474. userid
  6475. ) != -1
  6476. "
  6477. @click="groupUpload(toolIndex, taskCount, gindex)"
  6478. >上传作业</el-button
  6479. >
  6480. </div>
  6481. <div class="group_work">
  6482. <div
  6483. class="works"
  6484. style="
  6485. width: 200px;
  6486. height: 140px;
  6487. margin: 10px 10px 10px 0;
  6488. border-radius: 15px;
  6489. box-shadow: 0 0 6px 1px #dfdada;
  6490. "
  6491. v-for="(w, wIndex) in worksStudent[toolIndex][
  6492. gindex
  6493. ]"
  6494. :key="wIndex"
  6495. :class="w.type == 1 ? 'isTypeOne' : ''"
  6496. >
  6497. <div class="workImg" v-if="w.type == 0">
  6498. <img
  6499. :src="w.works"
  6500. @click="previewImg(w.works)"
  6501. alt
  6502. />
  6503. <div
  6504. class="answerScore"
  6505. v-if="w.score"
  6506. @click.stop="openScore(w)"
  6507. :class="{
  6508. rightW:
  6509. w.userid == userid ||
  6510. tType == 1 ||
  6511. tType == 4 ||
  6512. w.ateacher == userid,
  6513. }"
  6514. >
  6515. {{ JSON.parse(w.score).wScore }}分
  6516. </div>
  6517. <div
  6518. class="answerScore"
  6519. @click.stop="openScore(w)"
  6520. v-else-if="courseDetail.userid == userid"
  6521. :class="{
  6522. rightW:
  6523. w.userid == userid ||
  6524. tType == 1 ||
  6525. tType == 4 ||
  6526. w.ateacher == userid,
  6527. }"
  6528. >
  6529. 评分
  6530. </div>
  6531. <img
  6532. class="deleteImg"
  6533. src="../../assets/deleteworks.png"
  6534. v-if="
  6535. w.userid == userid ||
  6536. tType == 1 ||
  6537. tType == 4
  6538. "
  6539. @click.stop="deleteWorks(w.wid)"
  6540. alt
  6541. />
  6542. </div>
  6543. <div class="workImg" v-if="w.type == 1">
  6544. <img
  6545. :src="word"
  6546. @click="openFile(w.works)"
  6547. alt
  6548. />
  6549. <!-- @click="openFile(w.works)" -->
  6550. <div
  6551. class="answerScore"
  6552. v-if="w.score"
  6553. @click.stop="openScore(w)"
  6554. :class="{
  6555. rightW:
  6556. w.userid == userid ||
  6557. tType == 1 ||
  6558. tType == 4 ||
  6559. w.ateacher == userid,
  6560. }"
  6561. >
  6562. {{ JSON.parse(w.score).wScore }}分
  6563. </div>
  6564. <div
  6565. class="answerScore"
  6566. @click.stop="openScore(w)"
  6567. v-else-if="courseDetail.userid == userid"
  6568. :class="{
  6569. rightW:
  6570. w.userid == userid ||
  6571. tType == 1 ||
  6572. tType == 4 ||
  6573. w.ateacher == userid,
  6574. }"
  6575. >
  6576. 评分
  6577. </div>
  6578. <img
  6579. class="deleteImg"
  6580. src="../../assets/deleteworks.png"
  6581. v-if="
  6582. w.userid == userid ||
  6583. tType == 1 ||
  6584. tType == 4
  6585. "
  6586. @click.stop="deleteWorks(w.wid)"
  6587. alt
  6588. />
  6589. </div>
  6590. <div class="workImg" v-if="w.type == 3">
  6591. <img
  6592. style="cursor: pointer"
  6593. :src="video"
  6594. @click="openVideo(w)"
  6595. alt
  6596. />
  6597. <!-- @click="openVideo(w.works)" -->
  6598. <div
  6599. class="answerScore"
  6600. v-if="w.score"
  6601. @click.stop="openScore(w)"
  6602. :class="{
  6603. rightW:
  6604. w.userid == userid ||
  6605. tType == 1 ||
  6606. tType == 4 ||
  6607. w.ateacher == userid,
  6608. }"
  6609. >
  6610. {{ JSON.parse(w.score).wScore }}分
  6611. </div>
  6612. <div
  6613. class="answerScore"
  6614. @click.stop="openScore(w)"
  6615. v-else-if="courseDetail.userid == userid"
  6616. :class="{
  6617. rightW:
  6618. w.userid == userid ||
  6619. tType == 1 ||
  6620. tType == 4 ||
  6621. w.ateacher == userid,
  6622. }"
  6623. >
  6624. 评分
  6625. </div>
  6626. <img
  6627. class="deleteImg"
  6628. src="../../assets/deleteworks.png"
  6629. v-if="
  6630. w.userid == userid ||
  6631. tType == 1 ||
  6632. tType == 4
  6633. "
  6634. @click.stop="deleteWorks(w.wid)"
  6635. alt
  6636. />
  6637. </div>
  6638. <div class="workImg" v-if="w.type == 12">
  6639. <img
  6640. style="cursor: pointer"
  6641. :src="word2"
  6642. @click="downloadFile(w.works)"
  6643. alt
  6644. />
  6645. <!-- @click="openVideo(w.works)" -->
  6646. <div
  6647. class="answerScore"
  6648. v-if="w.score"
  6649. @click.stop="openScore(w)"
  6650. :class="{
  6651. rightW:
  6652. w.userid == userid ||
  6653. tType == 1 ||
  6654. tType == 4 ||
  6655. w.ateacher == userid,
  6656. }"
  6657. >
  6658. {{ JSON.parse(w.score).wScore }}分
  6659. </div>
  6660. <div
  6661. class="answerScore"
  6662. @click.stop="openScore(w)"
  6663. v-else-if="courseDetail.userid == userid"
  6664. :class="{
  6665. rightW:
  6666. w.userid == userid ||
  6667. tType == 1 ||
  6668. tType == 4 ||
  6669. w.ateacher == userid,
  6670. }"
  6671. >
  6672. 评分
  6673. </div>
  6674. <img
  6675. class="deleteImg"
  6676. src="../../assets/deleteworks.png"
  6677. v-if="
  6678. w.userid == userid ||
  6679. tType == 1 ||
  6680. tType == 4
  6681. "
  6682. @click.stop="deleteWorks(w.wid)"
  6683. alt
  6684. />
  6685. </div>
  6686. <div class="comment" style="min-width: 200px">
  6687. <div class="worksName">
  6688. <div>{{ w.sName }}</div>
  6689. </div>
  6690. <div class="commentList">
  6691. <div class="commentList">
  6692. <div
  6693. class="commentImg"
  6694. @click="
  6695. isLikes(
  6696. w.wid,
  6697. userid,
  6698. 1,
  6699. null,
  6700. w.isLikes
  6701. )
  6702. "
  6703. >
  6704. <img
  6705. :src="
  6706. w.isLikes == true ? likes : noLikes
  6707. "
  6708. alt=""
  6709. />
  6710. </div>
  6711. <div>{{ w.likesCount }}</div>
  6712. </div>
  6713. <div
  6714. class="commentList"
  6715. style="margin-right: 15px"
  6716. >
  6717. <div
  6718. class="commentImg"
  6719. @click="
  6720. commentOther(
  6721. w,
  6722. toolIndex,
  6723. wIndex,
  6724. gindex
  6725. )
  6726. "
  6727. >
  6728. <img
  6729. src="../../assets/icon/comment/comment.png"
  6730. alt=""
  6731. />
  6732. </div>
  6733. <div>{{ w.commentCount }}</div>
  6734. </div>
  6735. </div>
  6736. </div>
  6737. </div>
  6738. </div>
  6739. </div>
  6740. </div>
  6741. </div>
  6742. </div>
  6743. </div>
  6744. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  6745. 上传文件
  6746. <input
  6747. type="file"
  6748. accept="image/png, image/gif, image/jpeg"
  6749. style="display: none"
  6750. @change="beforeUpload1($event, 2, index)"
  6751. />
  6752. </div>-->
  6753. </div>
  6754. </div>
  6755. <!-- <div
  6756. class="vedioBox"
  6757. style="margin-top: 10px"
  6758. v-if="
  6759. courseDetail.userid == userid ||
  6760. (courseDetail.course_teacher &&
  6761. courseDetail.course_teacher.indexOf(userid) != -1)
  6762. "
  6763. :style="{
  6764. borderRadius:
  6765. !(
  6766. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6767. .toolChoose[0].tool &&
  6768. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6769. .toolChoose[0].tool.length > 0
  6770. ) &&
  6771. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6772. .taskDetail == '' &&
  6773. vChapterData[taskCount].length == 0 &&
  6774. fileC[taskCount].length == 0
  6775. ? '0 0 20px 20px'
  6776. : '20px',
  6777. }"
  6778. >
  6779. <div
  6780. class="queTop"
  6781. @click="isClose = !isClose"
  6782. style="
  6783. padding: 15px 0 15px 37px;
  6784. justify-content: space-between;
  6785. "
  6786. >
  6787. <div class="queTopTitle">新增工具</div>
  6788. <div class="queTopRight">
  6789. <div class="queTopClose" v-if="isClose == 0">
  6790. 展开
  6791. <div class="closeImg">
  6792. <img src="../../assets/icon/newIcon/close.png" alt="" />
  6793. </div>
  6794. </div>
  6795. <div class="queTopClose" v-if="isClose == 1">
  6796. 折叠
  6797. <div class="openImg">
  6798. <img src="../../assets/icon/newIcon/open.png" alt="" />
  6799. </div>
  6800. </div>
  6801. <el-button
  6802. style="margin: 0 30px 0 auto"
  6803. type="primary"
  6804. size="small"
  6805. v-if="isClose == 1 && checktoolArray.length > 0"
  6806. @click.stop="addToolChoose"
  6807. >确定</el-button
  6808. >
  6809. </div>
  6810. </div>
  6811. <div
  6812. class="tool_work_box"
  6813. :style="isClose == 0 ? 'display:none' : 'display:block'"
  6814. >
  6815. <div class="tool_box">
  6816. <div class="tool_type_box">
  6817. <div class="chooseWho">
  6818. <div
  6819. :class="toolType == 0 ? 'isChooseActive' : ''"
  6820. @click="(toolType = 0), $forceUpdate()"
  6821. >
  6822. 互动类
  6823. </div>
  6824. <div
  6825. :class="toolType == 1 ? 'isChooseActive' : ''"
  6826. @click="(toolType = 1), $forceUpdate()"
  6827. >
  6828. 思维类
  6829. </div>
  6830. <div
  6831. :class="toolType == 2 ? 'isChooseActive' : ''"
  6832. @click="(toolType = 2), $forceUpdate()"
  6833. >
  6834. 测评类
  6835. </div>
  6836. <div
  6837. :class="toolType == 3 ? 'isChooseActive' : ''"
  6838. @click="(toolType = 3), $forceUpdate()"
  6839. >
  6840. 编程类
  6841. </div>
  6842. <div
  6843. :class="toolType == 5 ? 'isChooseActive' : ''"
  6844. @click="(toolType = 5), $forceUpdate()"
  6845. >
  6846. 学科类
  6847. </div>
  6848. </div>
  6849. </div>
  6850. <div>
  6851. <div class="toolSort" v-if="toolType == 0">
  6852. <div class="tool">
  6853. <div class="whiteBIcon" @click="addTools2(10)">
  6854. <img
  6855. src="../../assets/icon/thirdToolList/time.png"
  6856. alt
  6857. />
  6858. <div style="margin: 5px 0">倒计时</div>
  6859. </div>
  6860. <div class="check" @click="addTools2(10)">
  6861. <img
  6862. src="../../assets/icon/checkNo.png"
  6863. alt
  6864. v-if="checktoolArray.indexOf(10) == -1"
  6865. />
  6866. <div class="checkDiv" v-else>
  6867. <img src="../../assets/icon/checkedIs.png" alt /><span
  6868. >已选择</span
  6869. >
  6870. </div>
  6871. </div>
  6872. </div>
  6873. <div class="tool">
  6874. <div class="whiteBIcon" @click="addTools2(65)">
  6875. <img
  6876. src="../../assets/icon/firstToolList/pickPeople.png"
  6877. alt
  6878. />
  6879. <div style="margin: 5px 0">挑人</div>
  6880. </div>
  6881. <div class="check" @click="addTools2(65)">
  6882. <img
  6883. src="../../assets/icon/checkNo.png"
  6884. alt
  6885. v-if="checktoolArray.indexOf(65) == -1"
  6886. />
  6887. <div class="checkDiv" v-else>
  6888. <img src="../../assets/icon/checkedIs.png" alt /><span
  6889. >已选择</span
  6890. >
  6891. </div>
  6892. </div>
  6893. </div>
  6894. </div>
  6895. <div class="toolSort" v-if="toolType == 1">
  6896. <div class="tool">
  6897. <div class="whiteBIcon" @click="addTools2(7)">
  6898. <img
  6899. src="../../assets/icon/secondToolList/mindNetwork.png"
  6900. alt
  6901. />
  6902. <div style="margin: 5px 0">思维网格</div>
  6903. </div>
  6904. <div class="check" @click="addTools2(7)">
  6905. <img
  6906. src="../../assets/icon/checkNo.png"
  6907. alt
  6908. v-if="checktoolArray.indexOf(7) == -1"
  6909. />
  6910. <div class="checkDiv" v-else>
  6911. <img src="../../assets/icon/checkedIs.png" alt /><span
  6912. >已选择</span
  6913. >
  6914. </div>
  6915. </div>
  6916. </div>
  6917. <div class="tool">
  6918. <div class="whiteBIcon" @click="addTools2(1)">
  6919. <img
  6920. src="../../assets/icon/secondToolList/whiteBoard.png"
  6921. alt
  6922. />
  6923. <div style="margin: 5px 0">电子白板</div>
  6924. </div>
  6925. <div class="check" @click="addTools2(1)">
  6926. <img
  6927. src="../../assets/icon/checkNo.png"
  6928. alt
  6929. v-if="checktoolArray.indexOf(1) == -1"
  6930. />
  6931. <div class="checkDiv" v-else>
  6932. <img src="../../assets/icon/checkedIs.png" alt /><span
  6933. >已选择</span
  6934. >
  6935. </div>
  6936. </div>
  6937. </div>
  6938. <div class="tool">
  6939. <div class="whiteBIcon" @click="addTools2(52)">
  6940. <img
  6941. src="../../assets/icon/fourthToolList/text.png"
  6942. alt
  6943. />
  6944. <div style="margin: 5px 0">文档</div>
  6945. </div>
  6946. <div class="check" @click="addTools2(52)">
  6947. <img
  6948. src="../../assets/icon/checkNo.png"
  6949. alt
  6950. v-if="checktoolArray.indexOf(52) == -1"
  6951. />
  6952. <div class="checkDiv" v-else>
  6953. <img src="../../assets/icon/checkedIs.png" alt /><span
  6954. >已选择</span
  6955. >
  6956. </div>
  6957. </div>
  6958. </div>
  6959. <div class="tool">
  6960. <div class="whiteBIcon" @click="addTools2(3)">
  6961. <img
  6962. src="../../assets/icon/secondToolList/mindMapping.png"
  6963. alt
  6964. />
  6965. <div style="margin: 5px 0">思维导图</div>
  6966. </div>
  6967. <div class="check" @click="addTools2(3)">
  6968. <img
  6969. src="../../assets/icon/checkNo.png"
  6970. alt
  6971. v-if="checktoolArray.indexOf(3) == -1"
  6972. />
  6973. <div class="checkDiv" v-else>
  6974. <img src="../../assets/icon/checkedIs.png" alt /><span
  6975. >已选择</span
  6976. >
  6977. </div>
  6978. </div>
  6979. </div>
  6980. <div class="tool">
  6981. <div class="whiteBIcon" @click="addTools2(48)">
  6982. <img
  6983. src="../../assets/icon/fourthToolList/table.png"
  6984. alt
  6985. />
  6986. <div style="margin: 5px 0">表格</div>
  6987. </div>
  6988. <div class="check" @click="addTools2(48)">
  6989. <img
  6990. src="../../assets/icon/checkNo.png"
  6991. alt
  6992. v-if="checktoolArray.indexOf(48) == -1"
  6993. />
  6994. <div class="checkDiv" v-else>
  6995. <img src="../../assets/icon/checkedIs.png" alt /><span
  6996. >已选择</span
  6997. >
  6998. </div>
  6999. </div>
  7000. </div>
  7001. </div>
  7002. <div class="toolSort" v-if="toolType == 6">
  7003. <div v-show="tooC == 49">
  7004. <img
  7005. @click="addTools(tooC, toolIndex, taskCount)"
  7006. src="../../assets/icon/fourthToolList/group.png"
  7007. alt
  7008. />
  7009. <div style="margin: 5px 0">学生分组</div>
  7010. </div>
  7011. </div>
  7012. <div class="toolSort" v-if="toolType == 2">
  7013. <div class="tool">
  7014. <div class="whiteBIcon" @click="addTools2(16)">
  7015. <img
  7016. src="../../assets/icon/thirdToolList/work.png"
  7017. alt
  7018. />
  7019. <div style="margin: 5px 0">作业提交</div>
  7020. </div>
  7021. <div class="check" @click="addTools2(16)">
  7022. <img
  7023. src="../../assets/icon/checkNo.png"
  7024. alt
  7025. v-if="checktoolArray.indexOf(16) == -1"
  7026. />
  7027. <div class="checkDiv" v-else>
  7028. <img src="../../assets/icon/checkedIs.png" alt /><span
  7029. >已选择</span
  7030. >
  7031. </div>
  7032. </div>
  7033. </div>
  7034. <div class="tool">
  7035. <div class="whiteBIcon" @click="addTools2(50)">
  7036. <img
  7037. src="../../assets/icon/thirdToolList/plwork.png"
  7038. alt
  7039. />
  7040. <div style="margin: 5px 0">批量上传</div>
  7041. </div>
  7042. <div class="check" @click="addTools2(50)">
  7043. <img
  7044. src="../../assets/icon/checkNo.png"
  7045. alt
  7046. v-if="checktoolArray.indexOf(50) == -1"
  7047. />
  7048. <div class="checkDiv" v-else>
  7049. <img src="../../assets/icon/checkedIs.png" alt /><span
  7050. >已选择</span
  7051. >
  7052. </div>
  7053. </div>
  7054. </div>
  7055. </div>
  7056. <div class="toolSort" v-if="toolType == 3">
  7057. <div class="tool">
  7058. <div class="whiteBIcon" @click="addTools2(18)">
  7059. <img
  7060. src="../../assets/icon/thirdToolList/trainPlatform.png"
  7061. alt
  7062. />
  7063. <div style="margin: 5px 0">训练平台</div>
  7064. </div>
  7065. <div class="check" @click="addTools2(18)">
  7066. <img
  7067. src="../../assets/icon/checkNo.png"
  7068. alt
  7069. v-if="checktoolArray.indexOf(18) == -1"
  7070. />
  7071. <div class="checkDiv" v-else>
  7072. <img src="../../assets/icon/checkedIs.png" alt /><span
  7073. >已选择</span
  7074. >
  7075. </div>
  7076. </div>
  7077. </div>
  7078. <div class="tool">
  7079. <div class="whiteBIcon" @click="addTools2(21)">
  7080. <img
  7081. src="../../assets/icon/fourthToolList/program.png"
  7082. alt
  7083. />
  7084. <div style="margin: 5px 0">AIoT Blockly</div>
  7085. </div>
  7086. <div class="check" @click="addTools2(21)">
  7087. <img
  7088. src="../../assets/icon/checkNo.png"
  7089. alt
  7090. v-if="checktoolArray.indexOf(21) == -1"
  7091. />
  7092. <div class="checkDiv" v-else>
  7093. <img src="../../assets/icon/checkedIs.png" alt /><span
  7094. >已选择</span
  7095. >
  7096. </div>
  7097. </div>
  7098. </div>
  7099. <div class="tool">
  7100. <div class="whiteBIcon" @click="addTools2(23)">
  7101. <img
  7102. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  7103. alt
  7104. />
  7105. <div style="margin: 5px 0">AI Python</div>
  7106. </div>
  7107. <div class="check" @click="addTools2(23)">
  7108. <img
  7109. src="../../assets/icon/checkNo.png"
  7110. alt
  7111. v-if="checktoolArray.indexOf(23) == -1"
  7112. />
  7113. <div class="checkDiv" v-else>
  7114. <img src="../../assets/icon/checkedIs.png" alt /><span
  7115. >已选择</span
  7116. >
  7117. </div>
  7118. </div>
  7119. </div>
  7120. <div class="tool">
  7121. <div class="whiteBIcon" @click="addTools2(24)">
  7122. <img
  7123. src="../../assets/icon/fourthToolList/AIprogram.png"
  7124. alt
  7125. />
  7126. <div style="margin: 5px 0">AI Blockly</div>
  7127. </div>
  7128. <div class="check" @click="addTools2(24)">
  7129. <img
  7130. src="../../assets/icon/checkNo.png"
  7131. alt
  7132. v-if="checktoolArray.indexOf(24) == -1"
  7133. />
  7134. <div class="checkDiv" v-else>
  7135. <img src="../../assets/icon/checkedIs.png" alt /><span
  7136. >已选择</span
  7137. >
  7138. </div>
  7139. </div>
  7140. </div>
  7141. <div class="tool">
  7142. <div class="whiteBIcon" @click="addTools2(32)">
  7143. <img
  7144. src="../../assets/icon/thirdToolList/code.png"
  7145. alt
  7146. />
  7147. <div style="margin: 5px 0">源码编辑</div>
  7148. </div>
  7149. <div class="check" @click="addTools2(32)">
  7150. <img
  7151. src="../../assets/icon/checkNo.png"
  7152. alt
  7153. v-if="checktoolArray.indexOf(32) == -1"
  7154. />
  7155. <div class="checkDiv" v-else>
  7156. <img src="../../assets/icon/checkedIs.png" alt /><span
  7157. >已选择</span
  7158. >
  7159. </div>
  7160. </div>
  7161. </div>
  7162. <div class="tool">
  7163. <div class="whiteBIcon" @click="addTools2(57)">
  7164. <img
  7165. src="../../assets/icon/fourthToolList/cocopi.png"
  7166. alt
  7167. />
  7168. <div style="margin: 5px 0">CocoPi</div>
  7169. </div>
  7170. <div class="check" @click="addTools2(57)">
  7171. <img
  7172. src="../../assets/icon/checkNo.png"
  7173. alt
  7174. v-if="checktoolArray.indexOf(57) == -1"
  7175. />
  7176. <div class="checkDiv" v-else>
  7177. <img src="../../assets/icon/checkedIs.png" alt /><span
  7178. >已选择</span
  7179. >
  7180. </div>
  7181. </div>
  7182. </div>
  7183. <div class="tool">
  7184. <div class="whiteBIcon" @click="addTools2(63)">
  7185. <img
  7186. src="../../assets/icon/fourthToolList/Wood.png"
  7187. alt
  7188. />
  7189. <div style="margin: 5px 0">海龟编程</div>
  7190. </div>
  7191. <div class="check" @click="addTools2(63)">
  7192. <img
  7193. src="../../assets/icon/checkNo.png"
  7194. alt
  7195. v-if="checktoolArray.indexOf(63) == -1"
  7196. />
  7197. <div class="checkDiv" v-else>
  7198. <img src="../../assets/icon/checkedIs.png" alt /><span
  7199. >已选择</span
  7200. >
  7201. </div>
  7202. </div>
  7203. </div>
  7204. </div>
  7205. <div class="toolSort" v-if="toolType == 5">
  7206. <div class="tool">
  7207. <div class="whiteBIcon" @click="addTools2(28)">
  7208. <img
  7209. src="../../assets/icon/secondToolList/translation.png"
  7210. alt
  7211. />
  7212. <div style="margin: 5px 0">翻译</div>
  7213. </div>
  7214. <div class="check" @click="addTools2(28)">
  7215. <img
  7216. src="../../assets/icon/checkNo.png"
  7217. alt
  7218. v-if="checktoolArray.indexOf(28) == -1"
  7219. />
  7220. <div class="checkDiv" v-else>
  7221. <img src="../../assets/icon/checkedIs.png" alt /><span
  7222. >已选择</span
  7223. >
  7224. </div>
  7225. </div>
  7226. </div>
  7227. <div class="tool">
  7228. <div class="whiteBIcon" @click="addTools2(31)">
  7229. <img
  7230. src="../../assets/icon/secondToolList/networkPanel.png"
  7231. alt
  7232. />
  7233. <div style="margin: 5px 0">数字画板</div>
  7234. </div>
  7235. <div class="check" @click="addTools2(31)">
  7236. <img
  7237. src="../../assets/icon/checkNo.png"
  7238. alt
  7239. v-if="checktoolArray.indexOf(31) == -1"
  7240. />
  7241. <div class="checkDiv" v-else>
  7242. <img src="../../assets/icon/checkedIs.png" alt /><span
  7243. >已选择</span
  7244. >
  7245. </div>
  7246. </div>
  7247. </div>
  7248. <div class="tool">
  7249. <div class="whiteBIcon" @click="addTools2(39)">
  7250. <img
  7251. src="../../assets/icon/secondToolList/GeoGebra.png"
  7252. alt
  7253. />
  7254. <div style="margin: 5px 0">GeoGebra</div>
  7255. </div>
  7256. <div class="check" @click="addTools2(39)">
  7257. <img
  7258. src="../../assets/icon/checkNo.png"
  7259. alt
  7260. v-if="checktoolArray.indexOf(39) == -1"
  7261. />
  7262. <div class="checkDiv" v-else>
  7263. <img src="../../assets/icon/checkedIs.png" alt /><span
  7264. >已选择</span
  7265. >
  7266. </div>
  7267. </div>
  7268. </div>
  7269. <div class="tool">
  7270. <div class="whiteBIcon" @click="addTools2(66)">
  7271. <img
  7272. src="../../assets/icon/secondToolList/formulaEdi.png"
  7273. alt
  7274. />
  7275. <div style="margin: 5px 0">公式编辑</div>
  7276. </div>
  7277. <div class="check" @click="addTools2(66)">
  7278. <img
  7279. src="../../assets/icon/checkNo.png"
  7280. alt
  7281. v-if="checktoolArray.indexOf(66) == -1"
  7282. />
  7283. <div class="checkDiv" v-else>
  7284. <img src="../../assets/icon/checkedIs.png" alt /><span
  7285. >已选择</span
  7286. >
  7287. </div>
  7288. </div>
  7289. </div>
  7290. <div class="tool">
  7291. <div class="whiteBIcon" @click="addTools2(67)">
  7292. <img
  7293. src="../../assets/icon/secondToolList/molStr.png"
  7294. alt
  7295. />
  7296. <div style="margin: 5px 0">分子结构</div>
  7297. </div>
  7298. <div class="check" @click="addTools2(67)">
  7299. <img
  7300. src="../../assets/icon/checkNo.png"
  7301. alt
  7302. v-if="checktoolArray.indexOf(67) == -1"
  7303. />
  7304. <div class="checkDiv" v-else>
  7305. <img src="../../assets/icon/checkedIs.png" alt /><span
  7306. >已选择</span
  7307. >
  7308. </div>
  7309. </div>
  7310. </div>
  7311. <div class="tool">
  7312. <div class="whiteBIcon" @click="addTools2(68)">
  7313. <img
  7314. src="../../assets/icon/secondToolList/timeAxis.png"
  7315. alt
  7316. />
  7317. <div style="margin: 5px 0">时间轴</div>
  7318. </div>
  7319. <div class="check" @click="addTools2(68)">
  7320. <img
  7321. src="../../assets/icon/checkNo.png"
  7322. alt
  7323. v-if="checktoolArray.indexOf(68) == -1"
  7324. />
  7325. <div class="checkDiv" v-else>
  7326. <img src="../../assets/icon/checkedIs.png" alt /><span
  7327. >已选择</span
  7328. >
  7329. </div>
  7330. </div>
  7331. </div>
  7332. </div>
  7333. <div class="toolSort" v-if="toolType == 7">
  7334. <div class="tool">
  7335. <div class="whiteBIcon" @click="addTools2(40)">
  7336. <img
  7337. src="../../assets/icon/secondToolList/eval.png"
  7338. alt
  7339. />
  7340. <div style="margin: 5px 0">个人评价</div>
  7341. </div>
  7342. <div class="check" @click="addTools2(40)">
  7343. <img
  7344. src="../../assets/icon/checkNo.png"
  7345. alt
  7346. v-if="checktoolArray.indexOf(40) == -1"
  7347. />
  7348. <div class="checkDiv" v-else>
  7349. <img src="../../assets/icon/checkedIs.png" alt /><span
  7350. >已选择</span
  7351. >
  7352. </div>
  7353. </div>
  7354. </div>
  7355. </div>
  7356. <div class="toolSort" v-if="toolType == 4">
  7357. <div class="tool">
  7358. <div class="whiteBIcon" @click="addTools2(26)">
  7359. <img
  7360. src="../../assets/icon/thirdToolList/courseDesign.png"
  7361. alt
  7362. />
  7363. <div style="margin: 5px 0">课程设计</div>
  7364. </div>
  7365. <div class="check" @click="addTools2(26)">
  7366. <img
  7367. src="../../assets/icon/checkNo.png"
  7368. alt
  7369. v-if="checktoolArray.indexOf(26) == -1"
  7370. />
  7371. <div class="checkDiv" v-else>
  7372. <img src="../../assets/icon/checkedIs.png" alt /><span
  7373. >已选择</span
  7374. >
  7375. </div>
  7376. </div>
  7377. </div>
  7378. <div class="tool">
  7379. <div class="whiteBIcon" @click="addTools2(25)">
  7380. <img
  7381. src="../../assets/icon/thirdToolList/evalua.png"
  7382. alt
  7383. />
  7384. <div style="margin: 5px 0">目标管理</div>
  7385. </div>
  7386. <div class="check" @click="addTools2(25)">
  7387. <img
  7388. src="../../assets/icon/checkNo.png"
  7389. alt
  7390. v-if="checktoolArray.indexOf(25) == -1"
  7391. />
  7392. <div class="checkDiv" v-else>
  7393. <img src="../../assets/icon/checkedIs.png" alt /><span
  7394. >已选择</span
  7395. >
  7396. </div>
  7397. </div>
  7398. </div>
  7399. </div>
  7400. </div>
  7401. </div>
  7402. </div>
  7403. </div> -->
  7404. <div
  7405. class="vedioBox"
  7406. style="margin-top: 10px; border-radius: 20px"
  7407. v-if="
  7408. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7409. .eList &&
  7410. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7411. .eList.length &&
  7412. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7413. .eList.length > 0 &&
  7414. tType != 2
  7415. "
  7416. >
  7417. <div
  7418. class="queTop"
  7419. style="
  7420. font-size: 20px;
  7421. padding: 15px 0 15px 37px;
  7422. font-weight: bold;
  7423. "
  7424. >
  7425. <!-- <div class="question" style="width: 30px">
  7426. <img src="../assets/icon/toolIcon.png" alt />
  7427. </div>
  7428. <div class="queTitle">
  7429. <div>工具</div>
  7430. </div>-->
  7431. 评一评
  7432. </div>
  7433. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7434. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  7435. <el-table
  7436. :data="
  7437. chapInfoList[courseType].chapterInfo[0].taskJson[
  7438. taskCount
  7439. ].eList
  7440. "
  7441. :header-cell-style="{ background: '#F0F4FA' }"
  7442. :row-class-name="tableRowClassName"
  7443. border
  7444. stripe
  7445. style="width: 100%"
  7446. >
  7447. <el-table-column
  7448. label="评价名称"
  7449. align="center"
  7450. >
  7451. <template slot-scope="scope"
  7452. ><div>{{ scope.row.value }}</div></template
  7453. >
  7454. </el-table-column>
  7455. <el-table-column
  7456. label="评价描述"
  7457. align="center"
  7458. >
  7459. <template slot-scope="scope"
  7460. ><div>
  7461. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7462. </div></template
  7463. >
  7464. </el-table-column>
  7465. <el-table-column label="目标" align="center">
  7466. <template slot-scope="scope"
  7467. ><div>
  7468. {{
  7469. scope.row.target
  7470. ? scope.row.target[scope.row.target.length - 1]
  7471. : "-"
  7472. }}
  7473. </div></template
  7474. ></el-table-column
  7475. >
  7476. </el-table>
  7477. <!-- <div
  7478. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7479. .chapterInfo[0].taskJson[taskCount].eList"
  7480. :key="eIndex"
  7481. class="elist_input_box"
  7482. >
  7483. <div style="width: 95%">
  7484. <div
  7485. style="
  7486. display: flex;
  7487. flex-direction: row;
  7488. flex-wrap: nowrap;
  7489. align-items: center;
  7490. "
  7491. >
  7492. <div style="max-width: calc(100% - 285px)">
  7493. <span>{{ eItem.value }}</span>
  7494. </div>
  7495. <div
  7496. style="
  7497. padding-left: 25px;
  7498. display: flex;
  7499. flex-direction: row;
  7500. align-items: center;
  7501. "
  7502. >
  7503. <el-rate
  7504. v-model="eItem.score"
  7505. :colors="colors"
  7506. disabled
  7507. ></el-rate>
  7508. </div>
  7509. </div>
  7510. <div class="elist_inptu_text" style="padding-left: 10px">
  7511. <span v-if="eItem.detail != ''">{{
  7512. eItem.detail
  7513. }}</span>
  7514. <span v-else style="color: #b2b1b3; font-size: 14px"
  7515. >暂无描述...</span
  7516. >
  7517. </div>
  7518. </div>
  7519. </div> -->
  7520. </div>
  7521. <div
  7522. v-if="evalua"
  7523. style="
  7524. border: 1px solid #e5e5e5;
  7525. max-width: 650px;
  7526. width: 100%;
  7527. margin-top: 20px;
  7528. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7529. "
  7530. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  7531. >
  7532. <div class="e_add_top">
  7533. <div class="e_add_title" style="width: 100%">
  7534. <!-- <span>目标管理名称</span> -->
  7535. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  7536. <img
  7537. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  7538. src="../../assets/line.png"
  7539. class="cru_line"
  7540. style="
  7541. width: 125px;
  7542. height: 20px;
  7543. bottom: -10px;
  7544. left: 5px;
  7545. "
  7546. />
  7547. <!-- <el-input
  7548. v-model="eTitle"
  7549. placeholder="请输入名称"
  7550. @change="setMindData"
  7551. ></el-input>-->
  7552. <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>
  7553. <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>
  7554. </div>
  7555. </div>
  7556. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  7557. <div class="e_add_list_pbox">
  7558. <div class="e_add_list_pbox_title">
  7559. <!-- <span class="type_title">切换模式</span> -->
  7560. <div class="type_content">
  7561. <span
  7562. :class="{ active: typeMode == 1 }"
  7563. @click="typeMode = 1"
  7564. >目标树</span
  7565. >
  7566. <span
  7567. :class="{ active: typeMode == 2 }"
  7568. @click="typeMode = 2"
  7569. >目标罗盘</span
  7570. >
  7571. <!-- <span
  7572. :class="{ active: typeMode == 3 }"
  7573. @click="typeMode = 3"
  7574. >目标看板</span
  7575. > -->
  7576. </div>
  7577. </div>
  7578. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  7579. <Mind
  7580. :showBar="false"
  7581. :mindData="data"
  7582. style="width: 100%"
  7583. v-show="typeMode == 1"
  7584. ></Mind>
  7585. <Sunburst
  7586. :Josn="eJson"
  7587. :num="eJSONNum"
  7588. style="width: 100%"
  7589. v-if="typeMode == 2"
  7590. ></Sunburst>
  7591. <SeeBoard
  7592. :Josn="eJson"
  7593. :num="eJSONNum"
  7594. :ename="eTitle"
  7595. style="width: 100%"
  7596. v-if="typeMode == 3"
  7597. >
  7598. </SeeBoard>
  7599. </div>
  7600. </div>
  7601. </div>
  7602. </div>
  7603. </div>
  7604. </div>
  7605. <!-- <div
  7606. class="project_box"
  7607. style="margin-top: 15px; padding-bottom: 30px"
  7608. >
  7609. <div
  7610. style="
  7611. display: flex;
  7612. flex-wrap: nowrap;
  7613. flex-direction: column;
  7614. position: relative;
  7615. "
  7616. >
  7617. <div class="queTop">
  7618. <div class="question">
  7619. <img src="../../assets/icon/homeWork.png" alt="" />
  7620. </div>
  7621. <div class="queTitle">
  7622. <div>作业提交<span>(提交图文视频等)</span></div>
  7623. <div>:任务:{{ task.task }}</div>
  7624. </div>
  7625. </div>
  7626. <div class="ediBottom">
  7627. <div
  7628. class="addEditor"
  7629. style="margin-top: 23px"
  7630. @click="openAddWork"
  7631. v-if="!isNoHomeWork"
  7632. >
  7633. 选择文件
  7634. </div>
  7635. <div
  7636. class="addEditor"
  7637. style="margin-top: 23px"
  7638. @click="openAddWork"
  7639. v-else
  7640. >
  7641. 已提交
  7642. </div>
  7643. </div>
  7644. </div>
  7645. </div>-->
  7646. </div>
  7647. </div>
  7648. <el-dialog
  7649. title="作业提交"
  7650. :visible.sync="dialogVisible"
  7651. :append-to-body="true"
  7652. width="500px"
  7653. :before-close="handleClose"
  7654. class="dialog_change"
  7655. >
  7656. <div class="marginT">
  7657. <div>上传文件</div>
  7658. <div
  7659. class="chapter_add"
  7660. @click="addImg($event)"
  7661. v-if="studyJuri[0].cover.length == 0"
  7662. >
  7663. <div class="up_photo">
  7664. <img src="../../assets/icon/uploadImg.png" alt />
  7665. </div>
  7666. <!-- <input
  7667. type="file"
  7668. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  7669. style="display: none"
  7670. @change="beforeUpload1($event, 1)"
  7671. /> -->
  7672. <input
  7673. type="file"
  7674. accept="*"
  7675. style="display: none"
  7676. @change="beforeUpload1($event, 1)"
  7677. />
  7678. <!-- <input
  7679. type="file"
  7680. accept="image/*"
  7681. capture="camera"
  7682. style="display: none"
  7683. @change="beforeUpload1($event, 1)"
  7684. /> -->
  7685. </div>
  7686. <div
  7687. class="chapter_add"
  7688. style="
  7689. display: flex;
  7690. width: 100%;
  7691. flex-direction: row;
  7692. flex-wrap: wrap;
  7693. justify-content: flex-start;
  7694. padding: 15px 0;
  7695. "
  7696. v-if="studyJuri[0].cover.length > 0"
  7697. >
  7698. <div class="upCover">
  7699. <img
  7700. :src="studyJuri[0].cover[0].url"
  7701. alt
  7702. v-if="fileType == 0"
  7703. />
  7704. <img :src="word" alt v-else-if="fileType == 1" />
  7705. <img :src="video" alt v-else-if="fileType == 2" />
  7706. <img :src="word2" alt v-else-if="fileType == 3" />
  7707. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  7708. <div class="deleteWord" @click="clean(1)">
  7709. <img src="../../assets/icon/deleteWorks.png" alt />
  7710. </div>
  7711. </div>
  7712. </div>
  7713. </div>
  7714. <div
  7715. class="upload_send"
  7716. @click="addCourseWorks(taskCount)"
  7717. v-if="!proVisible"
  7718. >
  7719. 提交
  7720. </div>
  7721. </el-dialog>
  7722. </div>
  7723. </div>
  7724. <div
  7725. class="pButton"
  7726. @click="(pzDialog = true), selectPz()"
  7727. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  7728. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  7729. >
  7730. <!-- 批 -->
  7731. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  7732. </div>
  7733. <div v-if="pzDialog == true" class="newDialogCss">
  7734. <div class="pzTop2">
  7735. <!-- <div>评论</div>
  7736. <div @click="pzDialog = false">
  7737. <img src="../../assets/close1.png" alt="" />
  7738. </div> -->
  7739. <div class="checkbox">
  7740. <div class="check" style="font-size: 25px; position: unset">
  7741. 评论
  7742. </div>
  7743. <el-select v-model="pzStype" @change="selectPz" class="selectBox">
  7744. <el-option label="时间降序" :value="1"></el-option>
  7745. <el-option label="时间升序" :value="2"></el-option>
  7746. <el-option label="我的评课" :value="3"></el-option>
  7747. </el-select>
  7748. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  7749. </div>
  7750. </div>
  7751. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  7752. <div class="pzListBox" v-if="pzList && pzList.length">
  7753. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  7754. <div class="pzNavTop">
  7755. <div>评</div>
  7756. <div>
  7757. {{
  7758. pz.username && pz.username.length > 5
  7759. ? pz.username.substring(0, 5) + "..."
  7760. : pz.username
  7761. }}的评论
  7762. </div>
  7763. <div
  7764. class="pzDelete"
  7765. v-if="pz.userid == userid"
  7766. @click="deletePz(pz.id)"
  7767. >
  7768. 删除
  7769. </div>
  7770. </div>
  7771. <div
  7772. @click="checkImg(getImgList(pz.content))"
  7773. class="pzContent cont"
  7774. v-html="pz.content"
  7775. v-if="pz.type == '1'"
  7776. ></div>
  7777. <div class="pzContent" v-if="pz.type == '2'">
  7778. <audio :src="pz.content" controls="controls" ref="audio">
  7779. Your browser does not support the audio element.
  7780. </audio>
  7781. </div>
  7782. <div class="pzContent" v-if="pz.type == '3'">
  7783. <img
  7784. :src="pz.content"
  7785. style="width: 90%; margin: 0 auto; display: block"
  7786. @click="previewImg(pz.content)"
  7787. />
  7788. </div>
  7789. <div class="timeAndReply">
  7790. <div class="time">
  7791. {{ pz.time }}
  7792. </div>
  7793. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  7794. </div>
  7795. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  7796. <div
  7797. v-for="(h, hIndex) in pz.hfList"
  7798. :key="hIndex"
  7799. class="hfItem"
  7800. >
  7801. <div class="whoReplyWho">
  7802. <div class="hfName">{{ h.username }}</div>
  7803. <div class="hfImg">
  7804. <img src="../../assets/icon/newIcons/right.png" alt="" />
  7805. </div>
  7806. <div class="hfName">{{ pz.username }}</div>
  7807. </div>
  7808. <div class="hfContent" v-html="h.content"></div>
  7809. <div class="hfBottom">
  7810. <div class="hfTime">{{ h.time }}</div>
  7811. <div
  7812. class="deleteHfItem"
  7813. @click="deleteReply(h.id)"
  7814. v-if="userid == h.userid"
  7815. >
  7816. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  7817. </div>
  7818. </div>
  7819. </div>
  7820. </div>
  7821. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  7822. <div class="replyInput">
  7823. <el-input v-model="reply[pzIndex]"></el-input>
  7824. </div>
  7825. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  7826. </div> -->
  7827. </div>
  7828. </div>
  7829. <div class="noPz" v-else>
  7830. <img src="../../assets/icon/noPz.png" alt="" />
  7831. </div>
  7832. <div class="addPzButton">
  7833. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  7834. 添加评论
  7835. </div>
  7836. <!-- <div class="img1">
  7837. <div @click="(addPzDialog = true), (pzType = 2)">
  7838. <img src="../../assets/audio.png" /><span>音频</span>
  7839. </div>
  7840. </div> -->
  7841. </div>
  7842. </div>
  7843. </div>
  7844. <div
  7845. v-if="toolDialogVisible == true"
  7846. class="toolMask"
  7847. @click="toolDialogVisible = false"
  7848. ></div>
  7849. <div v-if="toolDialogVisible == true" class="addToolCss">
  7850. <div class="toolTop">
  7851. <div style="font-weight: bold">新增工具</div>
  7852. <div @click="toolDialogVisible = false">
  7853. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  7854. </div>
  7855. </div>
  7856. <div class="tool_box">
  7857. <div class="tool_type_box">
  7858. <div class="chooseWho">
  7859. <div
  7860. :class="toolType == 0 ? 'isChooseActive' : ''"
  7861. @click="(toolType = 0), $forceUpdate()"
  7862. >
  7863. 互动类
  7864. </div>
  7865. <div
  7866. :class="toolType == 1 ? 'isChooseActive' : ''"
  7867. @click="(toolType = 1), $forceUpdate()"
  7868. >
  7869. 思维类
  7870. </div>
  7871. <div
  7872. :class="toolType == 2 ? 'isChooseActive' : ''"
  7873. @click="(toolType = 2), $forceUpdate()"
  7874. >
  7875. 测评类
  7876. </div>
  7877. <div
  7878. :class="toolType == 3 ? 'isChooseActive' : ''"
  7879. @click="(toolType = 3), $forceUpdate()"
  7880. >
  7881. 编程类
  7882. </div>
  7883. <div
  7884. :class="toolType == 5 ? 'isChooseActive' : ''"
  7885. @click="(toolType = 5), $forceUpdate()"
  7886. >
  7887. 学科类
  7888. </div>
  7889. </div>
  7890. </div>
  7891. <div>
  7892. <div class="toolSort" v-if="toolType == 0">
  7893. <div
  7894. class="tool"
  7895. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  7896. @click="addTools2(10)"
  7897. >
  7898. <div class="whiteBIcon">
  7899. <img src="../../assets/icon/thirdToolList/time.png" alt />
  7900. <div style="margin: 5px 0">倒计时</div>
  7901. </div>
  7902. <div class="check">
  7903. <div
  7904. v-if="checktoolArray.indexOf(10) == -1"
  7905. class="noChoose"
  7906. ></div>
  7907. <div v-else class="isChoose"></div>
  7908. </div>
  7909. </div>
  7910. <div
  7911. class="tool"
  7912. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  7913. @click="addTools2(65)"
  7914. >
  7915. <div class="whiteBIcon">
  7916. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  7917. <div style="margin: 5px 0">挑人</div>
  7918. </div>
  7919. <div class="check">
  7920. <div
  7921. v-if="checktoolArray.indexOf(65) == -1"
  7922. class="noChoose"
  7923. ></div>
  7924. <div v-else class="isChoose"></div>
  7925. </div>
  7926. </div>
  7927. </div>
  7928. <div class="toolSort" v-if="toolType == 1">
  7929. <div
  7930. class="tool"
  7931. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  7932. @click="addTools2(7)"
  7933. >
  7934. <div class="whiteBIcon">
  7935. <img
  7936. src="../../assets/icon/secondToolList/mindNetwork.png"
  7937. alt
  7938. />
  7939. <div style="margin: 5px 0">思维网格</div>
  7940. </div>
  7941. <div class="check">
  7942. <div
  7943. v-if="checktoolArray.indexOf(7) == -1"
  7944. class="noChoose"
  7945. ></div>
  7946. <div v-else class="isChoose"></div>
  7947. </div>
  7948. </div>
  7949. <div
  7950. class="tool"
  7951. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  7952. @click="addTools2(1)"
  7953. >
  7954. <div class="whiteBIcon">
  7955. <img
  7956. src="../../assets/icon/secondToolList/whiteBoard.png"
  7957. alt
  7958. />
  7959. <div style="margin: 5px 0">电子白板</div>
  7960. </div>
  7961. <div class="check">
  7962. <div
  7963. v-if="checktoolArray.indexOf(1) == -1"
  7964. class="noChoose"
  7965. ></div>
  7966. <div v-else class="isChoose"></div>
  7967. </div>
  7968. </div>
  7969. <div
  7970. class="tool"
  7971. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  7972. @click="addTools2(52)"
  7973. >
  7974. <div class="whiteBIcon">
  7975. <img src="../../assets/icon/fourthToolList/text.png" alt />
  7976. <div style="margin: 5px 0">文档</div>
  7977. </div>
  7978. <div class="check">
  7979. <div
  7980. v-if="checktoolArray.indexOf(52) == -1"
  7981. class="noChoose"
  7982. ></div>
  7983. <div v-else class="isChoose"></div>
  7984. </div>
  7985. </div>
  7986. <div
  7987. class="tool"
  7988. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  7989. @click="addTools2(3)"
  7990. >
  7991. <div class="whiteBIcon">
  7992. <img
  7993. src="../../assets/icon/secondToolList/mindMapping.png"
  7994. alt
  7995. />
  7996. <div style="margin: 5px 0">思维导图</div>
  7997. </div>
  7998. <div class="check">
  7999. <div
  8000. v-if="checktoolArray.indexOf(3) == -1"
  8001. class="noChoose"
  8002. ></div>
  8003. <div v-else class="isChoose"></div>
  8004. </div>
  8005. </div>
  8006. <div
  8007. class="tool"
  8008. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8009. @click="addTools2(48)"
  8010. >
  8011. <div class="whiteBIcon">
  8012. <img src="../../assets/icon/fourthToolList/table.png" alt />
  8013. <div style="margin: 5px 0">表格</div>
  8014. </div>
  8015. <div class="check">
  8016. <div
  8017. v-if="checktoolArray.indexOf(48) == -1"
  8018. class="noChoose"
  8019. ></div>
  8020. <div v-else class="isChoose"></div>
  8021. </div>
  8022. </div>
  8023. </div>
  8024. <div class="toolSort" v-if="toolType == 6">
  8025. <div v-show="tooC == 49">
  8026. <img
  8027. @click="addTools(tooC, toolIndex, taskCount)"
  8028. src="../../assets/icon/fourthToolList/group.png"
  8029. alt
  8030. />
  8031. <div style="margin: 5px 0">学生分组</div>
  8032. </div>
  8033. </div>
  8034. <div class="toolSort" v-if="toolType == 2">
  8035. <div
  8036. class="tool"
  8037. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8038. @click="addTools2(16)"
  8039. >
  8040. <div class="whiteBIcon">
  8041. <img src="../../assets/icon/thirdToolList/work.png" alt />
  8042. <div style="margin: 5px 0">作业提交</div>
  8043. </div>
  8044. <div class="check">
  8045. <div
  8046. v-if="checktoolArray.indexOf(16) == -1"
  8047. class="noChoose"
  8048. ></div>
  8049. <div v-else class="isChoose"></div>
  8050. </div>
  8051. </div>
  8052. <div
  8053. class="tool"
  8054. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8055. @click="addTools2(50)"
  8056. >
  8057. <div class="whiteBIcon">
  8058. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  8059. <div style="margin: 5px 0">批量上传</div>
  8060. </div>
  8061. <div class="check">
  8062. <div
  8063. v-if="checktoolArray.indexOf(50) == -1"
  8064. class="noChoose"
  8065. ></div>
  8066. <div v-else class="isChoose"></div>
  8067. </div>
  8068. </div>
  8069. </div>
  8070. <div class="toolSort" v-if="toolType == 3">
  8071. <div
  8072. class="tool"
  8073. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8074. @click="addTools2(18)"
  8075. >
  8076. <div class="whiteBIcon">
  8077. <img
  8078. src="../../assets/icon/thirdToolList/trainPlatform.png"
  8079. alt
  8080. />
  8081. <div style="margin: 5px 0">训练平台</div>
  8082. </div>
  8083. <div class="check">
  8084. <div
  8085. v-if="checktoolArray.indexOf(18) == -1"
  8086. class="noChoose"
  8087. ></div>
  8088. <div v-else class="isChoose"></div>
  8089. </div>
  8090. </div>
  8091. <div
  8092. class="tool"
  8093. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8094. @click="addTools2(21)"
  8095. >
  8096. <div class="whiteBIcon">
  8097. <img src="../../assets/icon/fourthToolList/program.png" alt />
  8098. <div style="margin: 5px 0">AIoT Blockly</div>
  8099. </div>
  8100. <div class="check">
  8101. <div
  8102. v-if="checktoolArray.indexOf(21) == -1"
  8103. class="noChoose"
  8104. ></div>
  8105. <div v-else class="isChoose"></div>
  8106. </div>
  8107. </div>
  8108. <div
  8109. class="tool"
  8110. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8111. @click="addTools2(23)"
  8112. >
  8113. <div class="whiteBIcon">
  8114. <img
  8115. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  8116. alt
  8117. />
  8118. <div style="margin: 5px 0">AI Python</div>
  8119. </div>
  8120. <div class="check">
  8121. <div
  8122. v-if="checktoolArray.indexOf(23) == -1"
  8123. class="noChoose"
  8124. ></div>
  8125. <div v-else class="isChoose"></div>
  8126. </div>
  8127. </div>
  8128. <div
  8129. class="tool"
  8130. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8131. @click="addTools2(24)"
  8132. >
  8133. <div class="whiteBIcon">
  8134. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  8135. <div style="margin: 5px 0">AI Blockly</div>
  8136. </div>
  8137. <div class="check">
  8138. <div
  8139. v-if="checktoolArray.indexOf(24) == -1"
  8140. class="noChoose"
  8141. ></div>
  8142. <div v-else class="isChoose"></div>
  8143. </div>
  8144. </div>
  8145. <div
  8146. class="tool"
  8147. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8148. @click="addTools2(32)"
  8149. >
  8150. <div class="whiteBIcon">
  8151. <img src="../../assets/icon/thirdToolList/code.png" alt />
  8152. <div style="margin: 5px 0">源码编辑</div>
  8153. </div>
  8154. <div class="check">
  8155. <div
  8156. v-if="checktoolArray.indexOf(32) == -1"
  8157. class="noChoose"
  8158. ></div>
  8159. <div v-else class="isChoose"></div>
  8160. </div>
  8161. </div>
  8162. <div
  8163. class="tool"
  8164. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8165. @click="addTools2(57)"
  8166. >
  8167. <div class="whiteBIcon">
  8168. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  8169. <div style="margin: 5px 0">CocoPi</div>
  8170. </div>
  8171. <div class="check">
  8172. <div
  8173. v-if="checktoolArray.indexOf(57) == -1"
  8174. class="noChoose"
  8175. ></div>
  8176. <div v-else class="isChoose"></div>
  8177. </div>
  8178. </div>
  8179. <div
  8180. class="tool"
  8181. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8182. @click="addTools2(63)"
  8183. >
  8184. <div class="whiteBIcon">
  8185. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  8186. <div style="margin: 5px 0">海龟编程</div>
  8187. </div>
  8188. <div class="check">
  8189. <div
  8190. v-if="checktoolArray.indexOf(63) == -1"
  8191. class="noChoose"
  8192. ></div>
  8193. <div v-else class="isChoose"></div>
  8194. </div>
  8195. </div>
  8196. </div>
  8197. <div class="toolSort" v-if="toolType == 7">
  8198. <div
  8199. class="tool"
  8200. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8201. @click="addTools2(40)"
  8202. >
  8203. <div class="whiteBIcon">
  8204. <img src="../../assets/icon/secondToolList/eval.png" alt />
  8205. <div style="margin: 5px 0">个人评价</div>
  8206. </div>
  8207. <div class="check">
  8208. <div
  8209. v-if="checktoolArray.indexOf(40) == -1"
  8210. class="noChoose"
  8211. ></div>
  8212. <div v-else class="isChoose"></div>
  8213. </div>
  8214. </div>
  8215. </div>
  8216. <div class="toolSort" v-if="toolType == 5">
  8217. <div
  8218. class="tool"
  8219. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8220. @click="addTools2(28)"
  8221. >
  8222. <div class="whiteBIcon">
  8223. <img
  8224. src="../../assets/icon/secondToolList/translation.png"
  8225. alt
  8226. />
  8227. <div style="margin: 5px 0">翻译</div>
  8228. </div>
  8229. <div class="check">
  8230. <div
  8231. v-if="checktoolArray.indexOf(28) == -1"
  8232. class="noChoose"
  8233. ></div>
  8234. <div v-else class="isChoose"></div>
  8235. </div>
  8236. </div>
  8237. <div
  8238. class="tool"
  8239. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8240. @click="addTools2(31)"
  8241. >
  8242. <div class="whiteBIcon">
  8243. <img
  8244. src="../../assets/icon/secondToolList/networkPanel.png"
  8245. alt
  8246. />
  8247. <div style="margin: 5px 0">数字画板</div>
  8248. </div>
  8249. <div class="check">
  8250. <div
  8251. v-if="checktoolArray.indexOf(31) == -1"
  8252. class="noChoose"
  8253. ></div>
  8254. <div v-else class="isChoose"></div>
  8255. </div>
  8256. </div>
  8257. <div
  8258. class="tool"
  8259. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8260. @click="addTools2(39)"
  8261. >
  8262. <div class="whiteBIcon">
  8263. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  8264. <div style="margin: 5px 0">GeoGebra</div>
  8265. </div>
  8266. <div class="check">
  8267. <div
  8268. v-if="checktoolArray.indexOf(39) == -1"
  8269. class="noChoose"
  8270. ></div>
  8271. <div v-else class="isChoose"></div>
  8272. </div>
  8273. </div>
  8274. <div
  8275. class="tool"
  8276. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8277. @click="addTools2(66)"
  8278. >
  8279. <div class="whiteBIcon">
  8280. <img
  8281. src="../../assets/icon/secondToolList/formulaEdi.png"
  8282. alt
  8283. />
  8284. <div style="margin: 5px 0">公式编辑</div>
  8285. </div>
  8286. <div class="check">
  8287. <div
  8288. v-if="checktoolArray.indexOf(66) == -1"
  8289. class="noChoose"
  8290. ></div>
  8291. <div v-else class="isChoose"></div>
  8292. </div>
  8293. </div>
  8294. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8295. <div class="whiteBIcon" @click="addTools2(67)">
  8296. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  8297. <div style="margin: 5px 0">分子结构</div>
  8298. </div>
  8299. <div class="check" @click="addTools2(67)">
  8300. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8301. <div v-else class="isChoose"></div>
  8302. </div>
  8303. </div> -->
  8304. <div
  8305. class="tool"
  8306. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8307. @click="addTools2(68)"
  8308. >
  8309. <div class="whiteBIcon">
  8310. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  8311. <div style="margin: 5px 0">时间轴</div>
  8312. </div>
  8313. <div class="check">
  8314. <div
  8315. v-if="checktoolArray.indexOf(68) == -1"
  8316. class="noChoose"
  8317. ></div>
  8318. <div v-else class="isChoose"></div>
  8319. </div>
  8320. </div>
  8321. <!-- <div
  8322. class="tool"
  8323. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8324. @click="addTools2(69)"
  8325. >
  8326. <div class="whiteBIcon">
  8327. <img src="../../assets/icon/secondToolList/english.png" alt />
  8328. <div style="margin: 5px 0">英语写作</div>
  8329. </div>
  8330. <div class="check">
  8331. <div
  8332. v-if="checktoolArray.indexOf(69) == -1"
  8333. class="noChoose"
  8334. ></div>
  8335. <div v-else class="isChoose"></div>
  8336. </div>
  8337. </div> -->
  8338. </div>
  8339. <div class="toolSort" v-if="toolType == 4">
  8340. <div
  8341. class="tool"
  8342. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8343. @click="addTools2(26)"
  8344. >
  8345. <div class="whiteBIcon">
  8346. <img
  8347. src="../../assets/icon/thirdToolList/courseDesign.png"
  8348. alt
  8349. />
  8350. <div style="margin: 5px 0">课程设计</div>
  8351. </div>
  8352. <div class="check">
  8353. <div
  8354. v-if="checktoolArray.indexOf(26) == -1"
  8355. class="noChoose"
  8356. ></div>
  8357. <div v-else class="isChoose"></div>
  8358. </div>
  8359. </div>
  8360. <div
  8361. class="tool"
  8362. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8363. @click="addTools2(25)"
  8364. >
  8365. <div class="whiteBIcon">
  8366. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  8367. <div style="margin: 5px 0">目标管理</div>
  8368. </div>
  8369. <div class="check">
  8370. <div
  8371. v-if="checktoolArray.indexOf(25) == -1"
  8372. class="noChoose"
  8373. ></div>
  8374. <div v-else class="isChoose"></div>
  8375. </div>
  8376. </div>
  8377. </div>
  8378. </div>
  8379. </div>
  8380. <span
  8381. slot="footer"
  8382. class="dialog-footer"
  8383. style="display: block; text-align: center; padding: 0 0 10px 0"
  8384. >
  8385. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8386. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8387. </span>
  8388. </div>
  8389. <div
  8390. v-if="replyDialogVisible == true"
  8391. class="addDialogCss"
  8392. v-el-drag-dialog
  8393. >
  8394. <div class="pzTop">
  8395. <div class="teacherPz">
  8396. <div class="teacherPzImg">
  8397. <img src="../../assets/icon/teacherPz.png" alt="" />
  8398. </div>
  8399. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8400. </div>
  8401. <div @click="replyDialogVisible = false">
  8402. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8403. </div>
  8404. </div>
  8405. <div class="addPzBox">
  8406. <!-- <div class="addPzCheck">
  8407. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8408. >文本</span
  8409. >
  8410. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8411. >音频</span
  8412. >
  8413. </div> -->
  8414. <div style="height: calc(100% - 50px)">
  8415. <editor-bar
  8416. class="binfo_input pzConText"
  8417. style="width: 100% !important; margin: 0 auto"
  8418. placeholder="请输入回复描述"
  8419. v-model="reply"
  8420. @change="change"
  8421. ></editor-bar>
  8422. </div>
  8423. <div class="addTextCss" @click="addHf">确定</div>
  8424. </div>
  8425. </div>
  8426. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8427. <div class="pzTop">
  8428. <div class="teacherPz">
  8429. <div class="teacherPzImg">
  8430. <img src="../../assets/icon/teacherPz.png" alt="" />
  8431. </div>
  8432. <div style="margin-left: 10px; height: 25px">教师评论</div>
  8433. </div>
  8434. <div @click="addPzDialog = false">
  8435. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8436. </div>
  8437. </div>
  8438. <div class="addPzBox">
  8439. <div class="addPzCheck">
  8440. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8441. >文本</span
  8442. >
  8443. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8444. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8445. >音频</span
  8446. >
  8447. </div>
  8448. <div style="height: calc(100% - 95px)">
  8449. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8450. v-if="pzType == 1"></textarea> -->
  8451. <editor-bar
  8452. class="binfo_input pzConText"
  8453. style="width: 100% !important"
  8454. placeholder="请输入任务描述"
  8455. v-model="pzConText"
  8456. @change="change"
  8457. v-if="pzType == 1"
  8458. ></editor-bar>
  8459. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8460. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8461. <div @click="addImg($event)">
  8462. <el-button type="primary">上传图片</el-button>
  8463. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8464. @change="beforeUpload1($event, 4)" />
  8465. </div>
  8466. </div> -->
  8467. </div>
  8468. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8469. 确定
  8470. </div>
  8471. </div>
  8472. </div>
  8473. <div v-if="proVisible" class="mask">
  8474. <div class="progressBox">
  8475. <!-- <div id="closePro" class="closeCss">
  8476. <img src="../../assets/icon/close.png" alt />
  8477. </div> -->
  8478. <div class="lbox">
  8479. <img src="../../assets/loading.gif" />上传中,请稍后
  8480. </div>
  8481. <div style="margin-bottom: 10px">
  8482. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8483. </div>
  8484. <el-progress
  8485. :text-inside="true"
  8486. :stroke-width="20"
  8487. :percentage="progress"
  8488. style="width: 80%"
  8489. ></el-progress>
  8490. </div>
  8491. </div>
  8492. <div v-if="proVisible2" class="mask">
  8493. <div class="progressBox">
  8494. <div class="lbox">
  8495. <img src="../../assets/loading.gif" />上传中,请稍后
  8496. </div>
  8497. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8498. </div>
  8499. </div>
  8500. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8501. <img width="100%" :src="dialogImageUrl" alt />
  8502. </el-dialog>
  8503. <el-dialog
  8504. :title="noteName != '' ? noteName : '查看问卷'"
  8505. :visible.sync="dialogVisible5"
  8506. :append-to-body="true"
  8507. width="1000px"
  8508. :before-close="handleClose"
  8509. class="dialog_diy dialog_diy3"
  8510. >
  8511. <div>
  8512. <div
  8513. class="a_add_title"
  8514. style="
  8515. display: flex;
  8516. flex-direction: row;
  8517. align-items: center;
  8518. justify-content: center;
  8519. "
  8520. >
  8521. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8522. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8523. </div>
  8524. <div class="a_addBox">
  8525. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8526. 题目内容
  8527. </div>
  8528. <div
  8529. class="a_add_box"
  8530. v-for="(item1, index1) in askJson.askCount"
  8531. :key="index1"
  8532. >
  8533. <div class="a_add_head">
  8534. <div style="display: flex">
  8535. <span class="askIndex"> {{ index1 + 1 }}</span>
  8536. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8537. </div>
  8538. <img
  8539. v-if="askJson.askJson[index1].img"
  8540. :src="askJson.askJson[index1].img"
  8541. style="height: 300px; margin-top: 10px; max-width: 100%"
  8542. />
  8543. </div>
  8544. <div class="a_add_body">
  8545. <div class="a_add_input">
  8546. <el-radio-group
  8547. v-model="radio[index1]"
  8548. v-if="
  8549. askJson.askJson[index1].type == '1' ||
  8550. !askJson.askJson[index1].type
  8551. "
  8552. >
  8553. <el-radio
  8554. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8555. .checkList"
  8556. :key="checkIndex"
  8557. :label="checkIndex"
  8558. :disabled="isAnswer"
  8559. class="redioStyle"
  8560. ><span v-html="item2"></span
  8561. ></el-radio>
  8562. </el-radio-group>
  8563. <el-checkbox-group
  8564. v-model="radio[index1]"
  8565. v-if="askJson.askJson[index1].type == '2'"
  8566. >
  8567. <el-checkbox
  8568. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8569. .checkList"
  8570. :key="checkIndex1"
  8571. :label="checkIndex1"
  8572. :disabled="isAnswer"
  8573. class="redioStyle"
  8574. ><span v-html="item2"></span>
  8575. </el-checkbox>
  8576. </el-checkbox-group>
  8577. </div>
  8578. </div>
  8579. </div>
  8580. </div>
  8581. </div>
  8582. <span slot="footer" class="dialog-footer">
  8583. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8584. >取 消</el-button
  8585. >
  8586. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8587. >确 定</el-button
  8588. >
  8589. </span>
  8590. </el-dialog>
  8591. <el-dialog
  8592. :title="noteName != '' ? noteName : '查看问卷'"
  8593. :visible.sync="dialogVisible5Teacher"
  8594. :append-to-body="true"
  8595. width="1000px"
  8596. :before-close="handleClose"
  8597. class="dialog_diy dialog_diy3"
  8598. >
  8599. <div>
  8600. <div class="w_name">
  8601. 学生姓名:<span>{{ sStudent.student }}</span>
  8602. </div>
  8603. <div
  8604. class="a_add_title"
  8605. style="
  8606. display: flex;
  8607. flex-direction: row;
  8608. align-items: center;
  8609. justify-content: center;
  8610. "
  8611. >
  8612. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8613. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8614. </div>
  8615. <div class="a_addBox">
  8616. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8617. 题目内容
  8618. </div>
  8619. <div
  8620. class="a_add_box"
  8621. v-for="(item1, index1) in askJson.askCount"
  8622. :key="index1"
  8623. >
  8624. <div class="a_add_head">
  8625. <div style="display: flex">
  8626. <span class="askIndex">{{ index1 + 1 }}</span>
  8627. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8628. </div>
  8629. <img
  8630. v-if="askJson.askJson[index1].img"
  8631. :src="askJson.askJson[index1].img"
  8632. style="height: 300px; margin-top: 10px; max-width: 100%"
  8633. />
  8634. </div>
  8635. <div class="a_add_body">
  8636. <div class="a_add_input">
  8637. <el-radio-group
  8638. v-model="radio[index1]"
  8639. v-if="
  8640. askJson.askJson[index1].type == '1' ||
  8641. !askJson.askJson[index1].type
  8642. "
  8643. >
  8644. <el-radio
  8645. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8646. .checkList"
  8647. :key="checkIndex"
  8648. :label="checkIndex"
  8649. :disabled="isAnswer"
  8650. class="redioStyle"
  8651. ><span v-html="item2"></span
  8652. ></el-radio>
  8653. </el-radio-group>
  8654. <el-checkbox-group
  8655. v-model="radio[index1]"
  8656. v-if="askJson.askJson[index1].type == '2'"
  8657. >
  8658. <el-checkbox
  8659. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8660. .checkList"
  8661. :key="checkIndex1"
  8662. :label="checkIndex1"
  8663. :disabled="isAnswer"
  8664. class="redioStyle"
  8665. ><span v-html="item2"></span>
  8666. </el-checkbox>
  8667. </el-checkbox-group>
  8668. </div>
  8669. </div>
  8670. </div>
  8671. </div>
  8672. </div>
  8673. <span slot="footer" class="dialog-footer">
  8674. <el-button
  8675. @click="dialogVisible5Teacher = false"
  8676. v-show="noteName == ''"
  8677. >取 消</el-button
  8678. >
  8679. <el-button
  8680. type="primary"
  8681. @click="addStudentAskTeacher"
  8682. v-show="noteName == ''"
  8683. >确 定</el-button
  8684. >
  8685. </span>
  8686. </el-dialog>
  8687. <el-dialog
  8688. :title="noteName != '' ? noteName : '查看选择题'"
  8689. :visible.sync="dialogVisibleChoice"
  8690. :append-to-body="true"
  8691. width="1000px"
  8692. :before-close="handleClose"
  8693. class="dialog_diy dialog_diy3"
  8694. >
  8695. <div>
  8696. <!-- <div class="a_add_title" style="
  8697. display: flex;
  8698. flex-direction: row;
  8699. align-items: center;
  8700. justify-content: center;
  8701. ">
  8702. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8703. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  8704. </div> -->
  8705. <div class="a_addBox">
  8706. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8707. 题目内容
  8708. </div>
  8709. <div
  8710. class="a_add_box"
  8711. v-for="(item1, index1) in testJson.testCount"
  8712. :key="index1"
  8713. >
  8714. <div class="a_add_head">
  8715. <div style="display: flex">
  8716. <span class="askIndex">{{ index1 + 1 }}</span>
  8717. <div
  8718. v-if="testJson.testJson[index1].type == '1'"
  8719. style="margin-right: 5px; min-width: 70px"
  8720. >
  8721. (单选题)
  8722. </div>
  8723. <div
  8724. v-if="testJson.testJson[index1].type == '2'"
  8725. style="margin-right: 5px; min-width: 70px"
  8726. >
  8727. (多选题)
  8728. </div>
  8729. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  8730. </div>
  8731. <img
  8732. v-if="testJson.testJson[index1].img"
  8733. :src="testJson.testJson[index1].img"
  8734. style="height: 300px; margin-top: 10px; max-width: 100%"
  8735. />
  8736. </div>
  8737. <div
  8738. class="timuImgBox"
  8739. v-if="
  8740. testJson.testJson[index1].timuList &&
  8741. testJson.testJson[index1].timuList.length
  8742. "
  8743. >
  8744. <div
  8745. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  8746. :key="tIndex"
  8747. class="timuImg"
  8748. @click.stop="previewImg(timg.src)"
  8749. >
  8750. <img :src="timg.src" alt="" />
  8751. </div>
  8752. </div>
  8753. <div class="a_add_body">
  8754. <div class="a_add_input">
  8755. <el-radio-group
  8756. v-model="radio[index1]"
  8757. v-if="testJson.testJson[index1].type == '1'"
  8758. >
  8759. <div class="radioBox">
  8760. <el-radio
  8761. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8762. .checkList"
  8763. :key="checkIndex"
  8764. :label="checkIndex"
  8765. :disabled="isAnswer"
  8766. class="redioStyle"
  8767. >
  8768. <div
  8769. style="margin-right: 10px"
  8770. v-if="item2 && item2.imgType && item2.imgType == 1"
  8771. >
  8772. <div class="inImg" @click.stop="previewImg(item2.src)">
  8773. <img :src="item2.src" alt="" />
  8774. </div>
  8775. </div>
  8776. <span v-else v-html="item2"></span>
  8777. </el-radio>
  8778. </div>
  8779. </el-radio-group>
  8780. <el-checkbox-group
  8781. v-model="radio[index1]"
  8782. v-if="testJson.testJson[index1].type == '2'"
  8783. >
  8784. <div class="radioBox">
  8785. <el-checkbox
  8786. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8787. .checkList"
  8788. :key="checkIndex"
  8789. :label="checkIndex"
  8790. :disabled="isAnswer"
  8791. class="redioStyle"
  8792. >
  8793. <div
  8794. style="margin-right: 10px"
  8795. v-if="item2 && item2.imgType && item2.imgType == 1"
  8796. >
  8797. <div class="inImg" @click.stop="previewImg(item2.src)">
  8798. <img :src="item2.src" alt="" />
  8799. </div>
  8800. </div>
  8801. <span v-else v-html="item2"></span>
  8802. </el-checkbox>
  8803. </div>
  8804. </el-checkbox-group>
  8805. </div>
  8806. </div>
  8807. </div>
  8808. </div>
  8809. </div>
  8810. <span slot="footer" class="dialog-footer">
  8811. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  8812. >取 消</el-button
  8813. >
  8814. <el-button
  8815. type="primary"
  8816. @click="addStudentTest"
  8817. v-show="noteName == ''"
  8818. >确 定</el-button
  8819. >
  8820. </span>
  8821. </el-dialog>
  8822. <el-dialog
  8823. :title="noteName != '' ? noteName : '查看选择题'"
  8824. :visible.sync="dialogVisibleChoiceTeacher"
  8825. :append-to-body="true"
  8826. width="1000px"
  8827. :before-close="handleClose"
  8828. class="dialog_diy dialog_diy3"
  8829. >
  8830. <div>
  8831. <div class="w_name">
  8832. 学生姓名:<span>{{ sStudent.student }}</span>
  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
  8941. @click="dialogVisibleChoiceTeacher = false"
  8942. v-show="noteName == ''"
  8943. >取 消</el-button
  8944. >
  8945. <el-button
  8946. type="primary"
  8947. @click="addStudentTestTeacher"
  8948. v-show="noteName == ''"
  8949. >确 定</el-button
  8950. >
  8951. </span>
  8952. </el-dialog>
  8953. <el-dialog
  8954. title="查看富文本"
  8955. :visible.sync="dialogVisible1"
  8956. :append-to-body="true"
  8957. width="500px"
  8958. :before-close="handleClose"
  8959. class="dialog_diy textCss"
  8960. >
  8961. <el-form style="font-size: 20px">
  8962. <el-form-item label="文本标题" class="textTitle">
  8963. <div style="font-size: 20px">{{ text.name }}</div>
  8964. </el-form-item>
  8965. <div>富文本内容</div>
  8966. <div
  8967. v-html="text.url"
  8968. style="font-size: 18px; padding: 40px 0 0 0"
  8969. ></div>
  8970. </el-form>
  8971. <span slot="footer" class="dialog-footer">
  8972. <el-button type="primary" @click="dialogVisible1 = false"
  8973. >确定</el-button
  8974. >
  8975. </span>
  8976. </el-dialog>
  8977. <el-dialog
  8978. title="文件预览"
  8979. :visible.sync="dialogVisible3"
  8980. width="50%"
  8981. :before-close="handleClose"
  8982. class="dialog_diy"
  8983. :class="{ fullStyle: full }"
  8984. >
  8985. <div slot="title" class="header-title">
  8986. <div style="color: #fff">文件预览</div>
  8987. <div style="position: absolute; top: 19px; right: 50px">
  8988. <img
  8989. src="../../assets/full.png"
  8990. style="height: 16px; cursor: pointer"
  8991. alt=""
  8992. @click="fullTools"
  8993. />
  8994. </div>
  8995. </div>
  8996. <pdf
  8997. v-if="showPDF"
  8998. :pdfUrl="pptImgUrl"
  8999. style="width: 100%; height: 520px; overflow: auto"
  9000. :class="{ fullStyle: full }"
  9001. ></pdf>
  9002. <iframe
  9003. v-else
  9004. :src="pptImgUrl"
  9005. frameborder="0"
  9006. width="100%"
  9007. height="600"
  9008. :class="{ fullStyle: full }"
  9009. ></iframe>
  9010. </el-dialog>
  9011. <el-dialog
  9012. title="文件预览"
  9013. :visible.sync="dialogVisible6"
  9014. width="50%"
  9015. :before-close="handleClose"
  9016. class="dialog_diy"
  9017. >
  9018. <iframe
  9019. :src="pptImgUrl1"
  9020. frameborder="0"
  9021. width="100%"
  9022. height="600"
  9023. ></iframe>
  9024. </el-dialog>
  9025. <el-dialog
  9026. title="提示"
  9027. :visible.sync="dialogVisible4"
  9028. :append-to-body="true"
  9029. width="800px"
  9030. :before-close="handleClose"
  9031. class="dialog_diy notice"
  9032. >
  9033. <div>此功能暂未开放!</div>
  9034. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9035. </el-dialog>
  9036. <el-dialog
  9037. title="问答"
  9038. :visible.sync="answerDialogVisible"
  9039. :append-to-body="true"
  9040. width="800px"
  9041. :before-close="handleClose"
  9042. class="dialog_diy"
  9043. >
  9044. <div>
  9045. <div
  9046. style="
  9047. display: flex;
  9048. flex-wrap: nowrap;
  9049. flex-direction: column;
  9050. position: relative;
  9051. "
  9052. >
  9053. <div class="queTop" style="padding: 20px 0 20px 0">
  9054. <div class="question">
  9055. <img src="../../assets/icon/question.png" alt />
  9056. </div>
  9057. <div class="queTitle">
  9058. <div style="width: 90px; min-width: 90px">提问:</div>
  9059. <div>{{ answerQ }}</div>
  9060. </div>
  9061. </div>
  9062. <div class="ediBottom">
  9063. <textarea
  9064. rows="6"
  9065. class="binfo_input"
  9066. cols
  9067. style="width: 95%; height: 120px"
  9068. v-model="questionAnswer"
  9069. ></textarea>
  9070. </div>
  9071. </div>
  9072. </div>
  9073. <div slot="footer">
  9074. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9075. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9076. </div>
  9077. </el-dialog>
  9078. <el-dialog
  9079. title="问答"
  9080. :visible.sync="answerDialogVisibleTeacher"
  9081. :append-to-body="true"
  9082. width="800px"
  9083. :before-close="handleClose"
  9084. class="dialog_diy"
  9085. >
  9086. <div>
  9087. <div class="w_name">
  9088. 学生姓名:<span>{{ sStudent.student }}</span>
  9089. </div>
  9090. <div
  9091. style="
  9092. display: flex;
  9093. flex-wrap: nowrap;
  9094. flex-direction: column;
  9095. position: relative;
  9096. "
  9097. >
  9098. <div class="queTop" style="padding: 20px 0 20px 0">
  9099. <div class="question">
  9100. <img src="../../assets/icon/question.png" alt />
  9101. </div>
  9102. <div class="queTitle">
  9103. <div style="width: 90px; min-width: 90px">提问:</div>
  9104. <div>{{ answerQ }}</div>
  9105. </div>
  9106. </div>
  9107. <div class="ediBottom">
  9108. <textarea
  9109. rows="6"
  9110. class="binfo_input"
  9111. cols
  9112. style="width: 95%; height: 120px"
  9113. v-model="questionAnswer"
  9114. ></textarea>
  9115. </div>
  9116. </div>
  9117. </div>
  9118. <div slot="footer">
  9119. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9120. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9121. </div>
  9122. </el-dialog>
  9123. <el-dialog
  9124. title="倒计时"
  9125. :visible.sync="timeDialogVisible"
  9126. :append-to-body="true"
  9127. width="800px"
  9128. :before-close="handleClose"
  9129. class="dialog_diy"
  9130. >
  9131. <div>
  9132. <div style="margin-bottom: 20px; color: #999">
  9133. 提示:点击“+”或“-”修改倒计时时长。
  9134. </div>
  9135. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9136. </div>
  9137. <div slot="footer">
  9138. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9139. </div>
  9140. </el-dialog>
  9141. <el-dialog
  9142. title="权限设置"
  9143. :visible.sync="juriVisible"
  9144. :append-to-body="true"
  9145. width="400px"
  9146. :before-close="handleClose"
  9147. class="dialog_diy"
  9148. >
  9149. <div>
  9150. <div class="open_box">
  9151. <div class="switch_box">
  9152. <span>允许学生查看所有作业</span>
  9153. <el-switch
  9154. v-model="sIsOpen"
  9155. active-text=""
  9156. class="switchCss"
  9157. @change="updateSLook"
  9158. ></el-switch>
  9159. </div>
  9160. <div
  9161. class="switch_box"
  9162. v-if="
  9163. courseDetail.userid == userid ||
  9164. (courseDetail.course_teacher &&
  9165. courseDetail.course_teacher.indexOf(userid) != -1)
  9166. "
  9167. >
  9168. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9169. <span>禁止学生查看所有阶段</span>
  9170. <el-switch
  9171. v-model="IsLookOpen"
  9172. active-text=""
  9173. class="switchCss"
  9174. @change="updateLookOpen"
  9175. ></el-switch>
  9176. </div>
  9177. <div class="switch_box" v-if="courseDetail.userid == userid">
  9178. <span>开启跟随模式</span>
  9179. <el-switch
  9180. v-model="IsFollow"
  9181. active-text=""
  9182. class="switchCss"
  9183. @change="updateFollow"
  9184. ></el-switch>
  9185. </div>
  9186. </div>
  9187. </div>
  9188. <div slot="footer">
  9189. <el-button
  9190. style="background: #409efe; color: #fff"
  9191. @click="juriVisible = false"
  9192. >关 闭</el-button
  9193. >
  9194. </div>
  9195. </el-dialog>
  9196. <el-dialog
  9197. title="查看视频"
  9198. :visible.sync="videoVisible"
  9199. :append-to-body="true"
  9200. width="1000px"
  9201. :before-close="handleClose"
  9202. class="dialog_diy1"
  9203. >
  9204. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9205. <video-player
  9206. class="video-player vjs-custom-skin"
  9207. :playsinline="true"
  9208. :options="videoDetail"
  9209. @play="onPlayerPlay($event)"
  9210. style="width: 100%; height: 100%"
  9211. ></video-player>
  9212. </div>
  9213. <div slot="footer">
  9214. <el-button
  9215. style="background: #409efe; color: #fff"
  9216. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9217. >
  9218. 关 闭</el-button
  9219. >
  9220. </div>
  9221. </el-dialog>
  9222. <el-dialog
  9223. title="查看详情"
  9224. :visible.sync="commentDialogVisible"
  9225. :append-to-body="true"
  9226. width="800px"
  9227. :before-close="handleClose"
  9228. class="dialog_diy"
  9229. >
  9230. <div class="commentTop">
  9231. <div class="studentDetail">
  9232. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9233. <div class="nameAndTime">
  9234. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9235. <div>{{ commentDetail.time }}</div>
  9236. </div>
  9237. <div
  9238. class="returnBtn"
  9239. style="margin-left: auto; width: 80px"
  9240. v-if="
  9241. commentDetail.works &&
  9242. commentDetail.type == 0 &&
  9243. (tType == 1 || tType == 4)
  9244. "
  9245. @click="
  9246. showPicturePaint(
  9247. commentDetail.img ? commentDetail.img : commentDetail.works
  9248. )
  9249. "
  9250. >
  9251. 教师批注
  9252. </div>
  9253. </div>
  9254. <div
  9255. class="worksAnswer"
  9256. v-if="commentDetail.works && commentDetail.type == 2"
  9257. >
  9258. {{ JSON.parse(commentDetail.works)[0].answer }}
  9259. </div>
  9260. <div
  9261. class="worksAnswer"
  9262. v-if="commentDetail.works && commentDetail.type == 1"
  9263. >
  9264. <img
  9265. src="../../assets/teacherWork.png"
  9266. v-if="commentDetail.ateacher"
  9267. class="w_teachert"
  9268. />
  9269. <pdf
  9270. v-if="showPDF"
  9271. :pdfUrl="pptImgUrl"
  9272. style="width: 100%; height: 520px; overflow: auto"
  9273. :class="{ fullStyle: full }"
  9274. ></pdf>
  9275. <iframe
  9276. v-else
  9277. :src="pptImgUrl"
  9278. frameborder="0"
  9279. width="100%"
  9280. height="600"
  9281. :class="{ fullStyle: full }"
  9282. ></iframe>
  9283. </div>
  9284. <div
  9285. class="worksAnswer"
  9286. v-if="commentDetail.works && commentDetail.type == 0"
  9287. >
  9288. <img
  9289. src="../../assets/teacherWork.png"
  9290. v-if="commentDetail.ateacher"
  9291. class="w_teachert"
  9292. style="right: 105px"
  9293. />
  9294. <img
  9295. :src="commentDetail.works"
  9296. alt=""
  9297. @click="previewImg(commentDetail.works)"
  9298. />
  9299. </div>
  9300. <div
  9301. class="worksAnswer"
  9302. v-if="commentDetail.works && commentDetail.type == 3"
  9303. >
  9304. <img
  9305. src="../../assets/teacherWork.png"
  9306. v-if="commentDetail.ateacher"
  9307. class="w_teachert"
  9308. />
  9309. <video-player
  9310. class="video-player vjs-custom-skin"
  9311. :playsinline="true"
  9312. :options="videoDetail"
  9313. @play="onPlayerPlay($event)"
  9314. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9315. ></video-player>
  9316. </div>
  9317. <div
  9318. class="worksAnswer"
  9319. v-if="commentDetail.works && commentDetail.type == 10"
  9320. >
  9321. <div class="cont" v-html="commentDetail.works.text"></div>
  9322. </div>
  9323. <div
  9324. class="worksAnswer codeFileBox"
  9325. v-if="commentDetail.works && commentDetail.type == 12"
  9326. @click="downloadFile(commentDetail.works)"
  9327. >
  9328. <img src="../../assets/icon/codeFile.png" />
  9329. <div>点击下载文件</div>
  9330. </div>
  9331. <div
  9332. class="worksAnswer codeFileBox"
  9333. v-if="commentDetail.works && commentDetail.type == 15"
  9334. @click="
  9335. openCocoPi(
  9336. 57,
  9337. commentIndexJson.toolIndex,
  9338. commentDetail.userid,
  9339. commentDetail.sName
  9340. )
  9341. "
  9342. >
  9343. <img src="../../assets/icon/codeFile.png" />
  9344. <div>点击打开CocoPi</div>
  9345. </div>
  9346. <div
  9347. class="worksAnswer"
  9348. v-if="commentDetail.works && commentDetail.type == 13"
  9349. >
  9350. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9351. </div>
  9352. <div
  9353. class="worksAnswer"
  9354. v-if="commentDetail.works && commentDetail.type == 4"
  9355. >
  9356. <div class="evalCss">
  9357. <div class="nav">请选择星星进行评分</div>
  9358. <div class="middleBox" v-if="eScore.eStar">
  9359. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9360. <div class="nameAndrate">
  9361. <div>{{ e.value }}</div>
  9362. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9363. </div>
  9364. <div v-if="e.detail">{{ e.detail }}</div>
  9365. </div>
  9366. <div class="bz">
  9367. <textarea
  9368. disabled
  9369. rows="4"
  9370. class="pj"
  9371. style="
  9372. padding: 10px 5px;
  9373. width: 70%;
  9374. background: #f7f6f9;
  9375. font-size: 14px;
  9376. text-indent: 10px;
  9377. color: #000;
  9378. "
  9379. cols
  9380. v-model="eScore.eBzText"
  9381. placeholder="请输入评价内容..."
  9382. ></textarea>
  9383. </div>
  9384. </div>
  9385. </div>
  9386. </div>
  9387. <div class="comment">
  9388. <div class="commentList">
  9389. <div class="commentImg">
  9390. <img
  9391. @click="
  9392. isLikes(
  9393. commentDetail.wid,
  9394. userid,
  9395. 1,
  9396. null,
  9397. commentDetail.isLikes
  9398. )
  9399. "
  9400. :src="commentDetail.isLikes == true ? likes : noLikes"
  9401. alt=""
  9402. />
  9403. </div>
  9404. <div>{{ commentDetail.likesCount }}</div>
  9405. </div>
  9406. <div class="commentList">
  9407. <div class="commentImg">
  9408. <img src="../../assets/icon/comment/comment.png" alt="" />
  9409. </div>
  9410. <div>{{ commentDetail.commentCount }}</div>
  9411. </div>
  9412. </div>
  9413. <div class="drawPBox" v-if="commentDetail.img">
  9414. <span>教师批注</span>
  9415. <img
  9416. :src="commentDetail.img"
  9417. alt=""
  9418. @click="previewImg(commentDetail.img)"
  9419. />
  9420. <span
  9421. class="deleteImg"
  9422. v-if="tType == 1 || tType == 4"
  9423. @click.stop="deletePicturePaint(commentDetail.wid)"
  9424. style="
  9425. font-size: 14px;
  9426. width: auto !important;
  9427. color: #b4b4b4;
  9428. top: unset;
  9429. bottom: 0;
  9430. border: none;
  9431. padding: 0;
  9432. height: auto !important;
  9433. margin: 0;
  9434. "
  9435. >删除</span
  9436. >
  9437. </div>
  9438. </div>
  9439. <div class="commentBox">
  9440. <div class="pl">评论:</div>
  9441. <div style="max-height: 200px; overflow: auto">
  9442. <div
  9443. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9444. style="padding: 10px 0 0 0"
  9445. >
  9446. <div
  9447. class="studentDetail"
  9448. style="padding-top: 10px"
  9449. v-for="(co, coIndex) in commentDetail.commentJson"
  9450. :key="coIndex"
  9451. >
  9452. <div class="tx" style="min-width: 50px">
  9453. <img src="../../assets/avatar.png" alt="" />
  9454. </div>
  9455. <div class="plPerson">
  9456. <div class="plName">
  9457. <div>{{ co.commentPeople }}</div>
  9458. <div style="margin-left: 5px">
  9459. {{ co.commentTime }}
  9460. </div>
  9461. <div
  9462. class="deleteComment"
  9463. v-if="userid == co.userid"
  9464. @click="deleteComment(co.wid)"
  9465. >
  9466. 删除
  9467. </div>
  9468. </div>
  9469. <div class="plContent">{{ co.commentText }}</div>
  9470. </div>
  9471. </div>
  9472. </div>
  9473. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9474. </div>
  9475. </div>
  9476. <div style="margin-top: 10px">
  9477. <div class="displayBox">
  9478. <div
  9479. style="
  9480. color: #556db4;
  9481. font-size: 14px;
  9482. font-weight: bold;
  9483. padding-bottom: 10px;
  9484. "
  9485. >
  9486. 评价
  9487. </div>
  9488. <div class="easy_comment" v-if="false">
  9489. <div
  9490. v-for="(p, pIndex) in PlTextList"
  9491. :key="pIndex"
  9492. @click="fastText(p, 1)"
  9493. >
  9494. {{ p }}
  9495. </div>
  9496. </div>
  9497. </div>
  9498. <div>
  9499. <textarea
  9500. rows="3"
  9501. class="pj"
  9502. style="padding: 10px 5px"
  9503. cols
  9504. v-model="commentText"
  9505. placeholder="请输入评论"
  9506. ></textarea>
  9507. </div>
  9508. </div>
  9509. <div slot="footer">
  9510. <el-button
  9511. @click="
  9512. (commentDialogVisible = false),
  9513. (commentIndexJson = {}),
  9514. videoDetail.sources && videoDetail.sources[0]
  9515. ? (videoDetail.sources[0].src = '')
  9516. : ''
  9517. "
  9518. >取 消</el-button
  9519. >
  9520. <el-button
  9521. type="primary"
  9522. @click="addComment(commentDetail.wid, userid, 2)"
  9523. >确 定</el-button
  9524. >
  9525. </div>
  9526. </el-dialog>
  9527. <el-dialog
  9528. title="查看文档"
  9529. :visible.sync="fullDialogVisible"
  9530. :append-to-body="true"
  9531. width="100%"
  9532. :before-close="handleClose"
  9533. :show-close="false"
  9534. class="dialog_diy full_diy"
  9535. :class="{ full_diy2: fulltype == 3 }"
  9536. >
  9537. <div slot="title" class="header-title">
  9538. <div style="color: #fff">查看文档</div>
  9539. <div
  9540. @click="fullDialogVisible = false"
  9541. style="
  9542. cursor: pointer;
  9543. position: absolute;
  9544. top: 20px;
  9545. right: 20px;
  9546. color: #fff;
  9547. "
  9548. >
  9549. 退出全屏
  9550. </div>
  9551. </div>
  9552. <div style="height: 100%">
  9553. <div
  9554. class="wheel"
  9555. v-if="
  9556. fulltype == 2 &&
  9557. fullUrl.indexOf(
  9558. 'https://view.officeapps.live.com/op/view.aspx?src='
  9559. ) != -1
  9560. "
  9561. style="width: 95%; margin: 0 auto"
  9562. >
  9563. <iframe
  9564. style="width: 100%; height: 100%; border: none"
  9565. :src="fullUrl"
  9566. ></iframe>
  9567. </div>
  9568. <iframe
  9569. v-else-if="fulltype == 2"
  9570. style="width: 100%; height: 100%; border: none"
  9571. :src="fullUrl"
  9572. security="restricted"
  9573. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9574. ></iframe>
  9575. <pdf
  9576. v-else-if="fulltype == 3"
  9577. :pdfUrl="fullUrl"
  9578. style="width: 100%; height: 100%; overflow: auto"
  9579. ></pdf>
  9580. <div
  9581. class="wheel"
  9582. v-if="fulltype == 1"
  9583. style="
  9584. box-shadow: 0 0 6px 1px #f2f2f2;
  9585. width: 100%;
  9586. background: #f1f1f1;
  9587. "
  9588. >
  9589. <div class="title" style="width: 100%; box-sizing: border-box">
  9590. 查看文档
  9591. </div>
  9592. <el-form class="textBox" style="height: 90%">
  9593. <el-form-item class="textTitle">
  9594. <div style="font-size: 22px">
  9595. {{ fullUrl.name }}
  9596. </div>
  9597. </el-form-item>
  9598. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9599. <div
  9600. v-html="fullUrl.url"
  9601. class="textContent"
  9602. style="height: auto"
  9603. ></div>
  9604. </el-form>
  9605. </div>
  9606. </div>
  9607. <!-- <div slot="footer">
  9608. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  9609. </div> -->
  9610. </el-dialog>
  9611. <el-dialog
  9612. title="个人评价"
  9613. :visible.sync="studentEvalDialogVisible"
  9614. :append-to-body="true"
  9615. width="800px"
  9616. :before-close="handleClose"
  9617. class="dialog_diy"
  9618. >
  9619. <div class="evalCss">
  9620. <div class="nav">请选择星星进行评分</div>
  9621. <div class="middleBox" v-if="eScore.eStar">
  9622. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9623. <div class="nameAndrate">
  9624. <div>{{ e.value }}</div>
  9625. <el-rate
  9626. v-model="eScore.eStar[eIndex]"
  9627. :disabled="isStar"
  9628. ></el-rate>
  9629. </div>
  9630. <div v-if="e.detail">{{ e.detail }}</div>
  9631. </div>
  9632. <div class="easy_comment" v-if="false">
  9633. <div
  9634. v-for="(p, pIndex) in PlTextList"
  9635. :key="pIndex"
  9636. @click="fastText(p, 2)"
  9637. >
  9638. {{ p }}
  9639. </div>
  9640. </div>
  9641. <div class="bz">
  9642. <textarea
  9643. :disabled="isStar"
  9644. rows="4"
  9645. class="pj"
  9646. style="
  9647. padding: 10px 5px;
  9648. width: 70%;
  9649. background: #f7f6f9;
  9650. font-size: 14px;
  9651. text-indent: 10px;
  9652. "
  9653. cols
  9654. v-model="eScore.eBzText"
  9655. placeholder="请输入评价内容..."
  9656. ></textarea>
  9657. </div>
  9658. </div>
  9659. </div>
  9660. <div slot="footer">
  9661. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  9662. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  9663. >确 定</el-button
  9664. >
  9665. </div>
  9666. </el-dialog>
  9667. <el-dialog
  9668. title="个人评价"
  9669. :visible.sync="studentEvalDialogVisibleTeacher"
  9670. :append-to-body="true"
  9671. width="800px"
  9672. :before-close="handleClose"
  9673. class="dialog_diy"
  9674. >
  9675. <div class="w_name">
  9676. 学生姓名:<span>{{ sStudent.student }}</span>
  9677. </div>
  9678. <div class="evalCss">
  9679. <div class="nav">请选择星星进行评分</div>
  9680. <div class="middleBox" v-if="eScore.eStar">
  9681. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9682. <div class="nameAndrate">
  9683. <div>{{ e.value }}</div>
  9684. <el-rate
  9685. v-model="eScore.eStar[eIndex]"
  9686. :disabled="isStar"
  9687. ></el-rate>
  9688. </div>
  9689. <div v-if="e.detail">{{ e.detail }}</div>
  9690. </div>
  9691. <div class="easy_comment" v-if="false">
  9692. <div
  9693. v-for="(p, pIndex) in PlTextList"
  9694. :key="pIndex"
  9695. @click="fastText(p, 2)"
  9696. >
  9697. {{ p }}
  9698. </div>
  9699. </div>
  9700. <div class="bz">
  9701. <textarea
  9702. :disabled="isStar"
  9703. rows="4"
  9704. class="pj"
  9705. style="
  9706. padding: 10px 5px;
  9707. width: 70%;
  9708. background: #f7f6f9;
  9709. font-size: 14px;
  9710. text-indent: 10px;
  9711. "
  9712. cols
  9713. v-model="eScore.eBzText"
  9714. placeholder="请输入评价内容..."
  9715. ></textarea>
  9716. </div>
  9717. </div>
  9718. </div>
  9719. <div slot="footer">
  9720. <el-button @click="studentEvalDialogVisibleTeacher = false"
  9721. >取 消</el-button
  9722. >
  9723. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  9724. >确 定</el-button
  9725. >
  9726. </div>
  9727. </el-dialog>
  9728. <el-dialog
  9729. title="选择匹配"
  9730. :visible.sync="dialogVisibleSelect"
  9731. :append-to-body="true"
  9732. width="90%"
  9733. :before-close="handleClose"
  9734. class="dialog_diy dialog_diy3"
  9735. >
  9736. <div v-if="selectJson">
  9737. <div class="select_box2">
  9738. <div class="select_box2_title">
  9739. <div>选择匹配</div>
  9740. <div>请选择对应的答案进行答题!</div>
  9741. </div>
  9742. <div class="select_box2_box">
  9743. <div class="select_box2_img">
  9744. <img
  9745. :src="selectJson.url"
  9746. @click="previewImg(selectJson.url)"
  9747. alt=""
  9748. />
  9749. </div>
  9750. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  9751. <div style="padding-top: 15px">
  9752. <div class="select_answer_title" v-if="isSelect">
  9753. {{ selectAnswer.stu }}
  9754. </div>
  9755. <div class="select_answer_title" v-else>
  9756. 根据题目选择对应答案
  9757. </div>
  9758. <div
  9759. class="select_box2_answer_box"
  9760. v-for="(item2, checkIndex) in selectJson.select"
  9761. :key="checkIndex"
  9762. >
  9763. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  9764. <el-select
  9765. :disabled="isSelect"
  9766. v-model="selectAnswer.answer[checkIndex]"
  9767. placeholder="请选择正确答案"
  9768. >
  9769. <el-option
  9770. v-for="(e, eIndex) in selectJson.select"
  9771. :key="eIndex"
  9772. :label="e"
  9773. :value="eIndex"
  9774. >
  9775. </el-option>
  9776. </el-select>
  9777. </div>
  9778. </div>
  9779. <div
  9780. class="rightAnswerCss"
  9781. v-if="isSelect && (tType == 1 || tType == 4)"
  9782. >
  9783. <div
  9784. v-for="(a, aIndex) in selectJson.answer"
  9785. :key="aIndex"
  9786. class="rightAnswer"
  9787. >
  9788. <div
  9789. v-if="selectAnswer.answer[aIndex] === a"
  9790. style="color: #767de1"
  9791. >
  9792. 回答正确
  9793. </div>
  9794. <div v-else>回答错误</div>
  9795. <div
  9796. style="margin-left: 10px"
  9797. v-if="selectAnswer.answer[aIndex] !== a"
  9798. >
  9799. 正确答案:
  9800. </div>
  9801. <div
  9802. :class="
  9803. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  9804. "
  9805. >
  9806. {{ selectJson.select[a] }}
  9807. </div>
  9808. </div>
  9809. </div>
  9810. </div>
  9811. <div class="upAnswerCss">
  9812. <el-button
  9813. type="primary"
  9814. @click="addSelectAnswer"
  9815. v-if="!isSelect"
  9816. >提交答案</el-button
  9817. >
  9818. </div>
  9819. </div>
  9820. </div>
  9821. </div>
  9822. </el-dialog>
  9823. <el-dialog
  9824. title="选择匹配"
  9825. :visible.sync="dialogVisibleSelectTeacher"
  9826. :append-to-body="true"
  9827. width="90%"
  9828. :before-close="handleClose"
  9829. class="dialog_diy dialog_diy3"
  9830. >
  9831. <div v-if="selectJson">
  9832. <div class="w_name">
  9833. 学生姓名:<span>{{ sStudent.student }}</span>
  9834. </div>
  9835. <div class="select_box2">
  9836. <div class="select_box2_title">
  9837. <div>选择匹配</div>
  9838. <div>请选择对应的答案进行答题!</div>
  9839. </div>
  9840. <div class="select_box2_box">
  9841. <div class="select_box2_img">
  9842. <img
  9843. :src="selectJson.url"
  9844. @click="previewImg(selectJson.url)"
  9845. alt=""
  9846. />
  9847. </div>
  9848. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  9849. <div style="padding-top: 15px">
  9850. <div class="select_answer_title" v-if="isSelect">
  9851. {{ selectAnswer.stu }}
  9852. </div>
  9853. <div class="select_answer_title" v-else>
  9854. 根据题目选择对应答案
  9855. </div>
  9856. <div
  9857. class="select_box2_answer_box"
  9858. v-for="(item2, checkIndex) in selectJson.select"
  9859. :key="checkIndex"
  9860. >
  9861. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  9862. <el-select
  9863. :disabled="isSelect"
  9864. v-model="selectAnswer.answer[checkIndex]"
  9865. placeholder="请选择正确答案"
  9866. >
  9867. <el-option
  9868. v-for="(e, eIndex) in selectJson.select"
  9869. :key="eIndex"
  9870. :label="e"
  9871. :value="eIndex"
  9872. >
  9873. </el-option>
  9874. </el-select>
  9875. </div>
  9876. </div>
  9877. <div
  9878. class="rightAnswerCss"
  9879. v-if="isSelect && (tType == 1 || tType == 4)"
  9880. >
  9881. <div
  9882. v-for="(a, aIndex) in selectJson.answer"
  9883. :key="aIndex"
  9884. class="rightAnswer"
  9885. >
  9886. <div
  9887. v-if="selectAnswer.answer[aIndex] === a"
  9888. style="color: #767de1"
  9889. >
  9890. 回答正确
  9891. </div>
  9892. <div v-else>回答错误</div>
  9893. <div
  9894. style="margin-left: 10px"
  9895. v-if="selectAnswer.answer[aIndex] !== a"
  9896. >
  9897. 正确答案:
  9898. </div>
  9899. <div
  9900. :class="
  9901. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  9902. "
  9903. >
  9904. {{ selectJson.select[a] }}
  9905. </div>
  9906. </div>
  9907. </div>
  9908. </div>
  9909. <div class="upAnswerCss">
  9910. <el-button
  9911. type="primary"
  9912. @click="addSelectAnswerTeacher"
  9913. v-if="!isSelect"
  9914. >提交答案</el-button
  9915. >
  9916. </div>
  9917. </div>
  9918. </div>
  9919. </div>
  9920. </el-dialog>
  9921. <el-dialog
  9922. title="教师评分"
  9923. :visible.sync="dialogVisibleScore"
  9924. :append-to-body="true"
  9925. width="800px"
  9926. :before-close="handleClose"
  9927. class="dialog_diy"
  9928. >
  9929. <div>
  9930. <div class="studentDetail">
  9931. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9932. <div class="nameAndTime">
  9933. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9934. <div>{{ commentDetail.time }}</div>
  9935. </div>
  9936. </div>
  9937. <div
  9938. class="worksAnswer"
  9939. v-if="commentDetail.works && commentDetail.type == 2"
  9940. >
  9941. {{ JSON.parse(commentDetail.works)[0].answer }}
  9942. </div>
  9943. <div
  9944. class="worksAnswer"
  9945. v-if="commentDetail.works && commentDetail.type == 1"
  9946. >
  9947. <pdf
  9948. v-if="showPDF"
  9949. :pdfUrl="pptImgUrl"
  9950. style="width: 100%; height: 520px; overflow: auto"
  9951. :class="{ fullStyle: full }"
  9952. ></pdf>
  9953. <iframe
  9954. v-else
  9955. :src="pptImgUrl"
  9956. frameborder="0"
  9957. width="100%"
  9958. height="600"
  9959. :class="{ fullStyle: full }"
  9960. ></iframe>
  9961. </div>
  9962. <div
  9963. class="worksAnswer"
  9964. v-if="commentDetail.works && commentDetail.type == 0"
  9965. >
  9966. <img
  9967. :src="commentDetail.works"
  9968. alt=""
  9969. @click="previewImg(commentDetail.works)"
  9970. />
  9971. </div>
  9972. <div
  9973. class="worksAnswer"
  9974. v-if="commentDetail.works && commentDetail.type == 3"
  9975. >
  9976. <video-player
  9977. class="video-player vjs-custom-skin"
  9978. :playsinline="true"
  9979. :options="videoDetail"
  9980. @play="onPlayerPlay($event)"
  9981. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9982. ></video-player>
  9983. </div>
  9984. <div
  9985. class="worksAnswer codeFileBox"
  9986. v-if="commentDetail.works && commentDetail.type == 12"
  9987. @click="downloadFile(commentDetail.works)"
  9988. >
  9989. <img src="../../assets/icon/codeFile.png" />
  9990. <div>点击下载文件</div>
  9991. </div>
  9992. <div
  9993. class="worksAnswer codeFileBox"
  9994. v-if="commentDetail.works && commentDetail.type == 15"
  9995. @click="
  9996. openCocoPi(
  9997. 57,
  9998. commentIndexJson.toolIndex,
  9999. commentDetail.userid,
  10000. commentDetail.sName
  10001. )
  10002. "
  10003. >
  10004. <img src="../../assets/icon/codeFile.png" />
  10005. <div>点击打开CocoPi</div>
  10006. </div>
  10007. <div
  10008. class="worksAnswer"
  10009. v-if="commentDetail.works && commentDetail.type == 13"
  10010. >
  10011. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10012. </div>
  10013. <div class="scoreBox">
  10014. <span class="t">请输入分数</span>
  10015. <el-input-number
  10016. :disabled="courseDetail.userid != userid"
  10017. v-model="wScore"
  10018. :controls="false"
  10019. :min="0"
  10020. :max="100"
  10021. ></el-input-number>
  10022. </div>
  10023. <div class="scoreDetailBox">
  10024. <span class="t">评分评论</span>
  10025. <el-input
  10026. type="textarea"
  10027. :rows="5"
  10028. :disabled="courseDetail.userid != userid"
  10029. resize="none"
  10030. v-model="scoreDetail"
  10031. placeholder="请输入对学生的评价"
  10032. >
  10033. </el-input>
  10034. </div>
  10035. </div>
  10036. <span slot="footer" class="dialog-footer">
  10037. <el-button
  10038. @click="
  10039. (dialogVisibleScore = false),
  10040. (commentIndexJson = {}),
  10041. videoDetail.sources && videoDetail.sources[0]
  10042. ? (videoDetail.sources[0].src = '')
  10043. : ''
  10044. "
  10045. >取 消</el-button
  10046. >
  10047. <el-button
  10048. type="primary"
  10049. v-if="courseDetail.userid == userid"
  10050. @click="scoreWork(commentDetail.wid)"
  10051. >确 定
  10052. </el-button>
  10053. </span>
  10054. </el-dialog>
  10055. <el-dialog
  10056. title="排序"
  10057. :visible.sync="dialogVisibleSentence"
  10058. :append-to-body="true"
  10059. width="1000px"
  10060. :before-close="handleClose"
  10061. class="dialog_diy dialog_diy3"
  10062. >
  10063. <div>
  10064. <div class="sentenBox">
  10065. <div
  10066. v-for="(st, stIndex) in sentenceList"
  10067. :key="stIndex"
  10068. style="padding-bottom: 20px"
  10069. >
  10070. <div
  10071. style="padding: 15px 0 10px 20px"
  10072. class="sentenceTitle"
  10073. :index="stIndex + 1"
  10074. >
  10075. 题目{{ stIndex + 1 }}:请选择正确顺序
  10076. </div>
  10077. <div class="cardList" v-if="st.chooseSenList">
  10078. <div class="cardBox">
  10079. <div
  10080. v-for="(r, rIndex) in st.chooseSenList"
  10081. :key="rIndex"
  10082. @click="returnCard(r, stIndex, rIndex)"
  10083. >
  10084. <el-tooltip
  10085. class="item"
  10086. effect="light"
  10087. :content="r"
  10088. placement="top"
  10089. v-if="r != '' && r != undefined"
  10090. >
  10091. <div
  10092. :class="{
  10093. isCard: r,
  10094. isChooseCard: r == '' || r == undefined,
  10095. }"
  10096. >
  10097. <div>{{ r }}</div>
  10098. </div>
  10099. </el-tooltip>
  10100. <div
  10101. :class="{
  10102. isCard: r,
  10103. isChooseCard: r == '' || r == undefined,
  10104. }"
  10105. v-else
  10106. >
  10107. <div>{{ r }}</div>
  10108. </div>
  10109. </div>
  10110. </div>
  10111. </div>
  10112. <div class="cardList" v-if="st.addChangeSen">
  10113. <div class="cardBox">
  10114. <div
  10115. v-for="(s, sIndex) in st.addChangeSen"
  10116. :key="sIndex"
  10117. @click="setRightAnswer(s, stIndex, sIndex)"
  10118. >
  10119. <el-tooltip
  10120. class="item"
  10121. effect="light"
  10122. :content="s"
  10123. placement="top"
  10124. v-if="s != '' && s != undefined"
  10125. >
  10126. <div
  10127. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10128. >
  10129. <div>{{ s }}</div>
  10130. </div>
  10131. </el-tooltip>
  10132. <div
  10133. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10134. v-else
  10135. >
  10136. <div>{{ s }}</div>
  10137. </div>
  10138. </div>
  10139. </div>
  10140. </div>
  10141. </div>
  10142. </div>
  10143. </div>
  10144. <span slot="footer" class="dialog-footer">
  10145. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10146. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10147. </span>
  10148. </el-dialog>
  10149. <el-dialog
  10150. title="排序"
  10151. :visible.sync="dialogVisibleSentenceTeacher"
  10152. :append-to-body="true"
  10153. width="1000px"
  10154. :before-close="handleClose"
  10155. class="dialog_diy dialog_diy3"
  10156. >
  10157. <div>
  10158. <div class="w_name">
  10159. 学生姓名:<span>{{ sStudent.student }}</span>
  10160. </div>
  10161. <div class="sentenBox">
  10162. <div
  10163. v-for="(st, stIndex) in sentenceList"
  10164. :key="stIndex"
  10165. style="padding-bottom: 20px"
  10166. >
  10167. <div
  10168. style="padding: 15px 0 10px 20px"
  10169. class="sentenceTitle"
  10170. :index="stIndex + 1"
  10171. >
  10172. 题目{{ stIndex + 1 }}:请选择正确顺序
  10173. </div>
  10174. <div class="cardList" v-if="st.chooseSenList">
  10175. <div class="cardBox">
  10176. <div
  10177. v-for="(r, rIndex) in st.chooseSenList"
  10178. :key="rIndex"
  10179. @click="returnCard(r, stIndex, rIndex)"
  10180. >
  10181. <el-tooltip
  10182. class="item"
  10183. effect="light"
  10184. :content="r"
  10185. placement="top"
  10186. v-if="r != '' && r != undefined"
  10187. >
  10188. <div
  10189. :class="{
  10190. isCard: r,
  10191. isChooseCard: r == '' || r == undefined,
  10192. }"
  10193. >
  10194. <div>{{ r }}</div>
  10195. </div>
  10196. </el-tooltip>
  10197. <div
  10198. :class="{
  10199. isCard: r,
  10200. isChooseCard: r == '' || r == undefined,
  10201. }"
  10202. v-else
  10203. >
  10204. <div>{{ r }}</div>
  10205. </div>
  10206. </div>
  10207. </div>
  10208. </div>
  10209. <div class="cardList" v-if="st.addChangeSen">
  10210. <div class="cardBox">
  10211. <div
  10212. v-for="(s, sIndex) in st.addChangeSen"
  10213. :key="sIndex"
  10214. @click="setRightAnswer(s, stIndex, sIndex)"
  10215. >
  10216. <el-tooltip
  10217. class="item"
  10218. effect="light"
  10219. :content="s"
  10220. placement="top"
  10221. v-if="s != '' && s != undefined"
  10222. >
  10223. <div
  10224. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10225. >
  10226. <div>{{ s }}</div>
  10227. </div>
  10228. </el-tooltip>
  10229. <div
  10230. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10231. v-else
  10232. >
  10233. <div>{{ s }}</div>
  10234. </div>
  10235. </div>
  10236. </div>
  10237. </div>
  10238. </div>
  10239. </div>
  10240. </div>
  10241. <span slot="footer" class="dialog-footer">
  10242. <el-button @click="dialogVisibleSentenceTeacher = false"
  10243. >取 消</el-button
  10244. >
  10245. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10246. </span>
  10247. </el-dialog>
  10248. <el-dialog
  10249. title="排序"
  10250. :visible.sync="dialogVisibleSentence1"
  10251. :append-to-body="true"
  10252. width="1000px"
  10253. :before-close="handleClose"
  10254. class="dialog_diy dialog_diy3"
  10255. >
  10256. <div>
  10257. <div class="sentenBox">
  10258. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10259. {{ sentenceList1.stuName }}的作业
  10260. </div>
  10261. <div
  10262. v-for="(st, stIndex) in sentenceList1"
  10263. :key="stIndex"
  10264. style="padding-bottom: 20px"
  10265. >
  10266. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10267. 第{{ stIndex + 1 }}题
  10268. </div>
  10269. <div class="isWrong">
  10270. <div class="cardList1" v-if="st.chooseSenList">
  10271. <div class="cardBox">
  10272. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10273. <el-tooltip
  10274. class="item"
  10275. effect="light"
  10276. :content="s"
  10277. placement="top"
  10278. >
  10279. <div class="isCard">
  10280. <div>{{ s }}</div>
  10281. </div>
  10282. </el-tooltip>
  10283. </div>
  10284. </div>
  10285. <div class="cardAnswerBox">
  10286. 组成句子:{{ st.chooseSenList.join(" ") }}
  10287. </div>
  10288. </div>
  10289. <div v-if="tType == 2" class="isTj">
  10290. <div class="isTjImg">
  10291. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10292. </div>
  10293. <div>已提交</div>
  10294. </div>
  10295. <div
  10296. class="answerRight isTj"
  10297. v-if="
  10298. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10299. (tType == 1 || tType == 4)
  10300. "
  10301. >
  10302. <div class="isTjImg">
  10303. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10304. </div>
  10305. <div>回答正确</div>
  10306. </div>
  10307. <div
  10308. class="answerRight isTj"
  10309. v-if="
  10310. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10311. (tType == 1 || tType == 4)
  10312. "
  10313. >
  10314. <div class="isTjImg">
  10315. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  10316. </div>
  10317. <div>回答错误</div>
  10318. </div>
  10319. </div>
  10320. <div
  10321. v-if="
  10322. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10323. (tType == 1 || tType == 4)
  10324. "
  10325. >
  10326. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10327. <div
  10328. class="cardList"
  10329. v-if="st.rightAnswer"
  10330. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10331. >
  10332. <div class="cardBox">
  10333. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10334. <el-tooltip
  10335. class="item"
  10336. effect="light"
  10337. :content="r"
  10338. placement="top"
  10339. >
  10340. <div class="isCard1">
  10341. <div>{{ r }}</div>
  10342. </div>
  10343. </el-tooltip>
  10344. </div>
  10345. </div>
  10346. <div class="cardAnswerBox">
  10347. 组成句子:{{ st.rightAnswer.join(" ") }}
  10348. </div>
  10349. </div>
  10350. </div>
  10351. </div>
  10352. </div>
  10353. </div>
  10354. <span slot="footer" class="dialog-footer">
  10355. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10356. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10357. >确 定</el-button
  10358. >
  10359. </span>
  10360. </el-dialog>
  10361. <el-dialog
  10362. title="教师提交作业"
  10363. :visible.sync="dialogVisibleWorks"
  10364. :append-to-body="true"
  10365. width="500px"
  10366. :before-close="handleClose"
  10367. class="dialog_change"
  10368. >
  10369. <div class="marginT">
  10370. <div class="w_name">
  10371. 学生姓名:<span>{{ sStudent.student }}</span>
  10372. </div>
  10373. <div>上传文件</div>
  10374. <div
  10375. class="chapter_add"
  10376. @click="addImg($event)"
  10377. v-if="studyJuri[0].cover.length == 0"
  10378. >
  10379. <div class="up_photo">
  10380. <img src="../../assets/uploadImg2.png" alt />
  10381. </div>
  10382. <!-- <input
  10383. type="file"
  10384. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10385. style="display: none"
  10386. @change="beforeUpload1($event, 1)"
  10387. /> -->
  10388. <input
  10389. type="file"
  10390. accept="*"
  10391. style="display: none"
  10392. @change="beforeUpload1($event, 1)"
  10393. />
  10394. </div>
  10395. <!-- capture="camera" -->
  10396. <div
  10397. class="chapter_add"
  10398. style="
  10399. display: flex;
  10400. width: 100%;
  10401. flex-direction: row;
  10402. flex-wrap: wrap;
  10403. justify-content: flex-start;
  10404. padding: 15px 0;
  10405. "
  10406. v-if="studyJuri[0].cover.length > 0"
  10407. >
  10408. <div class="upCover">
  10409. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10410. <img :src="word" alt v-else-if="fileType == 1" />
  10411. <img :src="video" alt v-else-if="fileType == 2" />
  10412. <img :src="word2" alt v-else-if="fileType == 3" />
  10413. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10414. <div class="deleteWord" @click="clean(1)">
  10415. <img src="../../assets/icon/deleteWorks.png" alt />
  10416. </div>
  10417. </div>
  10418. </div>
  10419. </div>
  10420. <div
  10421. class="upload_send"
  10422. @click="addCourseWorksTeacher(taskCount)"
  10423. v-if="!proVisible"
  10424. >
  10425. 提交
  10426. </div>
  10427. </el-dialog>
  10428. <ImgDraw
  10429. :drawShow="drawShow"
  10430. @closeDraw="closeDraw"
  10431. @addImgDraw="addImgDraw"
  10432. :bg="bg"
  10433. ></ImgDraw>
  10434. <el-dialog
  10435. title="表格"
  10436. :visible.sync="dialogVisibleTable"
  10437. :append-to-body="true"
  10438. width="95%"
  10439. :before-close="handleClose"
  10440. class="dialog_diy"
  10441. >
  10442. <el-form>
  10443. <div
  10444. style="
  10445. display: flex;
  10446. align-items: center;
  10447. justify-content: space-between;
  10448. "
  10449. >
  10450. <span>表格内容</span>
  10451. <el-button type="primary" size="small" @click="returnTableText"
  10452. >还原模板</el-button
  10453. >
  10454. </div>
  10455. <Table
  10456. v-model="tableJson.text"
  10457. @change="change"
  10458. v-if="dialogVisibleTable"
  10459. ></Table>
  10460. </el-form>
  10461. <span slot="footer" class="dialog-footer">
  10462. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10463. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10464. </span>
  10465. </el-dialog>
  10466. <el-dialog
  10467. title="表格"
  10468. :visible.sync="dialogVisibleTableTeacher"
  10469. :append-to-body="true"
  10470. width="95%"
  10471. :before-close="handleClose"
  10472. class="dialog_diy"
  10473. >
  10474. <el-form>
  10475. <div class="w_name">
  10476. 学生姓名:<span>{{ sStudent.student }}</span>
  10477. </div>
  10478. <div>表格内容</div>
  10479. <Table
  10480. v-model="tableJson.text"
  10481. @change="change"
  10482. v-if="dialogVisibleTableTeacher"
  10483. ></Table>
  10484. </el-form>
  10485. <span slot="footer" class="dialog-footer">
  10486. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10487. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10488. </span>
  10489. </el-dialog>
  10490. <el-dialog
  10491. title="文档"
  10492. :visible.sync="dialogVisibleWord"
  10493. :append-to-body="true"
  10494. width="95%"
  10495. :before-close="handleClose"
  10496. class="dialog_diy"
  10497. >
  10498. <el-form>
  10499. <div
  10500. style="
  10501. display: flex;
  10502. align-items: center;
  10503. justify-content: space-between;
  10504. "
  10505. >
  10506. <span>文档内容</span>
  10507. <el-button type="primary" size="small" @click="returnWordText"
  10508. >还原模板</el-button
  10509. >
  10510. </div>
  10511. <editor-bar
  10512. v-model="wordJson.text"
  10513. v-if="dialogVisibleWord"
  10514. ></editor-bar>
  10515. </el-form>
  10516. <span slot="footer" class="dialog-footer">
  10517. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10518. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10519. </span>
  10520. </el-dialog>
  10521. <el-dialog
  10522. title="文档"
  10523. :visible.sync="dialogVisibleWordTeacher"
  10524. :append-to-body="true"
  10525. width="95%"
  10526. :before-close="handleClose"
  10527. class="dialog_diy"
  10528. >
  10529. <el-form>
  10530. <div class="w_name">
  10531. 学生姓名:<span>{{ sStudent.student }}</span>
  10532. </div>
  10533. <div>文档内容</div>
  10534. <editor-bar
  10535. v-model="wordJson.text"
  10536. v-if="dialogVisibleWordTeacher"
  10537. ></editor-bar>
  10538. </el-form>
  10539. <span slot="footer" class="dialog-footer">
  10540. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10541. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10542. </span>
  10543. </el-dialog>
  10544. <el-dialog
  10545. title="表格"
  10546. :visible.sync="dialogVisibleTable2"
  10547. :append-to-body="true"
  10548. width="95%"
  10549. :before-close="handleClose"
  10550. class="dialog_diy"
  10551. >
  10552. <el-form>
  10553. <div class="cont" v-html="tableJson.text"></div>
  10554. </el-form>
  10555. <span slot="footer" class="dialog-footer">
  10556. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10557. </span>
  10558. </el-dialog>
  10559. <el-dialog
  10560. title="文档"
  10561. :visible.sync="dialogVisibleTable3"
  10562. :append-to-body="true"
  10563. width="95%"
  10564. :before-close="handleClose"
  10565. class="dialog_diy"
  10566. >
  10567. <el-form>
  10568. <div class="cont" v-html="tableJson.text"></div>
  10569. </el-form>
  10570. <span slot="footer" class="dialog-footer">
  10571. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10572. </span>
  10573. </el-dialog>
  10574. <el-dialog
  10575. title="分组设置"
  10576. :visible.sync="dialogVisibleGroup"
  10577. :append-to-body="true"
  10578. width="95%"
  10579. :before-close="handleClose"
  10580. class="dialog_diy"
  10581. >
  10582. <div v-if="dialogVisibleGroup">
  10583. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10584. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10585. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  10586. </div>
  10587. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  10588. @click="lockChair">
  10589. 锁定位置
  10590. </div>
  10591. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  10592. 解锁位置
  10593. </div> -->
  10594. <div class="group_switch">
  10595. <span>开放选座</span>
  10596. <el-switch
  10597. v-model="islock"
  10598. active-text=""
  10599. class="switchCss"
  10600. @change="lockChair"
  10601. ></el-switch>
  10602. </div>
  10603. <div
  10604. type="primary"
  10605. @click="updateGroup"
  10606. class="returnBtn"
  10607. style="background-color: #225bc7"
  10608. >
  10609. 分组设置
  10610. </div>
  10611. </div>
  10612. <div>
  10613. <div
  10614. class="g_d_box"
  10615. v-if="groupJson.group && groupStudent[toolindex]"
  10616. >
  10617. <div
  10618. class="g_d_group"
  10619. v-for="(g, gindex) in groupJson.group"
  10620. :key="gindex"
  10621. >
  10622. <div class="g_d_group_chair">
  10623. <div v-if="groupJson.number > 1">
  10624. <span
  10625. :class="{
  10626. isChair:
  10627. groupStudent[toolindex][gindex] &&
  10628. groupStudent[toolindex][gindex][0],
  10629. updateChair:
  10630. courseDetail.userid == userid &&
  10631. groupStudent[toolindex][gindex] &&
  10632. groupStudent[toolindex][gindex][0] &&
  10633. groupJson.islock == 2,
  10634. }"
  10635. ><span
  10636. class="updateChairBtn"
  10637. @click="
  10638. updateGroupChair(
  10639. groupStudent[toolindex][gindex] &&
  10640. groupStudent[toolindex][gindex][0]
  10641. )
  10642. "
  10643. >修改</span
  10644. ></span
  10645. ><span>{{
  10646. groupStudent[toolindex][gindex] &&
  10647. groupStudent[toolindex][gindex][0]
  10648. ? groupStudent[toolindex][gindex] &&
  10649. groupStudent[toolindex][gindex][0].name
  10650. : "空位置"
  10651. }}</span>
  10652. </div>
  10653. <div v-if="groupJson.number > 4">
  10654. <span
  10655. :class="{
  10656. isChair:
  10657. groupStudent[toolindex][gindex] &&
  10658. groupStudent[toolindex][gindex][4],
  10659. updateChair:
  10660. courseDetail.userid == userid &&
  10661. groupStudent[toolindex][gindex] &&
  10662. groupStudent[toolindex][gindex][4] &&
  10663. groupJson.islock == 2,
  10664. }"
  10665. ><span
  10666. class="updateChairBtn"
  10667. @click="
  10668. updateGroupChair(
  10669. groupStudent[toolindex][gindex] &&
  10670. groupStudent[toolindex][gindex][4]
  10671. )
  10672. "
  10673. >修改</span
  10674. ></span
  10675. ><span>{{
  10676. groupStudent[toolindex][gindex] &&
  10677. groupStudent[toolindex][gindex][4]
  10678. ? groupStudent[toolindex][gindex] &&
  10679. groupStudent[toolindex][gindex][4].name
  10680. : "空位置"
  10681. }}</span>
  10682. </div>
  10683. <div v-if="groupJson.number > 8">
  10684. <span
  10685. :class="{
  10686. isChair:
  10687. groupStudent[toolindex][gindex] &&
  10688. groupStudent[toolindex][gindex][8],
  10689. updateChair:
  10690. courseDetail.userid == userid &&
  10691. groupStudent[toolindex][gindex] &&
  10692. groupStudent[toolindex][gindex][8] &&
  10693. groupJson.islock == 2,
  10694. }"
  10695. ><span
  10696. class="updateChairBtn"
  10697. @click="
  10698. updateGroupChair(
  10699. groupStudent[toolindex][gindex] &&
  10700. groupStudent[toolindex][gindex][8]
  10701. )
  10702. "
  10703. >修改</span
  10704. ></span
  10705. ><span>{{
  10706. groupStudent[toolindex][gindex] &&
  10707. groupStudent[toolindex][gindex][8]
  10708. ? groupStudent[toolindex][gindex] &&
  10709. groupStudent[toolindex][gindex][8].name
  10710. : "空位置"
  10711. }}</span>
  10712. </div>
  10713. </div>
  10714. <div class="g_d_group_tableBox">
  10715. <div class="g_d_group_chair2">
  10716. <div v-if="groupJson.number > 2">
  10717. <span
  10718. :class="{
  10719. isChair:
  10720. groupStudent[toolindex][gindex] &&
  10721. groupStudent[toolindex][gindex][2],
  10722. updateChair:
  10723. courseDetail.userid == userid &&
  10724. groupStudent[toolindex][gindex] &&
  10725. groupStudent[toolindex][gindex][2] &&
  10726. groupJson.islock == 2,
  10727. }"
  10728. ><span
  10729. class="updateChairBtn"
  10730. @click="
  10731. updateGroupChair(
  10732. groupStudent[toolindex][gindex] &&
  10733. groupStudent[toolindex][gindex][2]
  10734. )
  10735. "
  10736. >修改</span
  10737. ></span
  10738. ><span>{{
  10739. groupStudent[toolindex][gindex] &&
  10740. groupStudent[toolindex][gindex][2]
  10741. ? groupStudent[toolindex][gindex] &&
  10742. groupStudent[toolindex][gindex][2].name
  10743. : "空位置"
  10744. }}</span>
  10745. </div>
  10746. <div v-if="groupJson.number > 6">
  10747. <span
  10748. :class="{
  10749. isChair:
  10750. groupStudent[toolindex][gindex] &&
  10751. groupStudent[toolindex][gindex][6],
  10752. updateChair:
  10753. courseDetail.userid == userid &&
  10754. groupStudent[toolindex][gindex] &&
  10755. groupStudent[toolindex][gindex][6] &&
  10756. groupJson.islock == 2,
  10757. }"
  10758. ><span
  10759. class="updateChairBtn"
  10760. @click="
  10761. updateGroupChair(
  10762. groupStudent[toolindex][gindex] &&
  10763. groupStudent[toolindex][gindex][6]
  10764. )
  10765. "
  10766. >修改</span
  10767. ></span
  10768. ><span>{{
  10769. groupStudent[toolindex][gindex] &&
  10770. groupStudent[toolindex][gindex][6]
  10771. ? groupStudent[toolindex][gindex] &&
  10772. groupStudent[toolindex][gindex][6].name
  10773. : "空位置"
  10774. }}</span>
  10775. </div>
  10776. </div>
  10777. <div class="g_d_group_table">
  10778. <div>
  10779. {{ g.name }}
  10780. </div>
  10781. <div>
  10782. <div
  10783. v-if="
  10784. courseDetail.userid == userid && groupJson.islock == 2
  10785. "
  10786. @click="deleteGroupChair(gindex)"
  10787. >
  10788. 移除组员
  10789. </div>
  10790. <div
  10791. @click="selectGroup(gindex)"
  10792. v-else-if="
  10793. groupStudentUid[toolindex] &&
  10794. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  10795. "
  10796. >
  10797. 加入分组
  10798. </div>
  10799. <div
  10800. @click="
  10801. exitGroup(
  10802. groupStudent[toolindex][gindex] &&
  10803. groupStudent[toolindex][gindex][
  10804. groupStudentUid[toolindex][gindex].indexOf(userid)
  10805. ].id
  10806. )
  10807. "
  10808. v-else-if="
  10809. groupStudentUid[toolindex] &&
  10810. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  10811. "
  10812. >
  10813. 退出分组
  10814. </div>
  10815. </div>
  10816. </div>
  10817. <div class="g_d_group_chair2">
  10818. <div v-if="groupJson.number > 3">
  10819. <span
  10820. :class="{
  10821. isChair:
  10822. groupStudent[toolindex][gindex] &&
  10823. groupStudent[toolindex][gindex][3],
  10824. updateChair:
  10825. courseDetail.userid == userid &&
  10826. groupStudent[toolindex][gindex] &&
  10827. groupStudent[toolindex][gindex][3] &&
  10828. groupJson.islock == 2,
  10829. }"
  10830. ><span
  10831. class="updateChairBtn"
  10832. @click="
  10833. updateGroupChair(
  10834. groupStudent[toolindex][gindex] &&
  10835. groupStudent[toolindex][gindex][3]
  10836. )
  10837. "
  10838. >修改</span
  10839. ></span
  10840. ><span>{{
  10841. groupStudent[toolindex][gindex] &&
  10842. groupStudent[toolindex][gindex][3]
  10843. ? groupStudent[toolindex][gindex] &&
  10844. groupStudent[toolindex][gindex][3].name
  10845. : "空位置"
  10846. }}</span>
  10847. </div>
  10848. <div v-if="groupJson.number > 7">
  10849. <span
  10850. :class="{
  10851. isChair:
  10852. groupStudent[toolindex][gindex] &&
  10853. groupStudent[toolindex][gindex][7],
  10854. updateChair:
  10855. courseDetail.userid == userid &&
  10856. groupStudent[toolindex][gindex] &&
  10857. groupStudent[toolindex][gindex][7] &&
  10858. groupJson.islock == 2,
  10859. }"
  10860. ><span
  10861. class="updateChairBtn"
  10862. @click="
  10863. updateGroupChair(
  10864. groupStudent[toolindex][gindex] &&
  10865. groupStudent[toolindex][gindex][7]
  10866. )
  10867. "
  10868. >修改</span
  10869. ></span
  10870. ><span>{{
  10871. groupStudent[toolindex][gindex] &&
  10872. groupStudent[toolindex][gindex][7]
  10873. ? groupStudent[toolindex][gindex] &&
  10874. groupStudent[toolindex][gindex][7].name
  10875. : "空位置"
  10876. }}</span>
  10877. </div>
  10878. </div>
  10879. </div>
  10880. <div class="g_d_group_chair">
  10881. <div v-if="groupJson.number > 1">
  10882. <span
  10883. :class="{
  10884. isChair:
  10885. groupStudent[toolindex][gindex] &&
  10886. groupStudent[toolindex][gindex][1],
  10887. updateChair:
  10888. courseDetail.userid == userid &&
  10889. groupStudent[toolindex][gindex] &&
  10890. groupStudent[toolindex][gindex][1] &&
  10891. groupJson.islock == 2,
  10892. }"
  10893. ><span
  10894. class="updateChairBtn"
  10895. @click="
  10896. updateGroupChair(
  10897. groupStudent[toolindex][gindex] &&
  10898. groupStudent[toolindex][gindex][1]
  10899. )
  10900. "
  10901. >修改</span
  10902. ></span
  10903. ><span>{{
  10904. groupStudent[toolindex][gindex] &&
  10905. groupStudent[toolindex][gindex][1]
  10906. ? groupStudent[toolindex][gindex] &&
  10907. groupStudent[toolindex][gindex][1].name
  10908. : "空位置"
  10909. }}</span>
  10910. </div>
  10911. <div v-if="groupJson.number > 5">
  10912. <span
  10913. :class="{
  10914. isChair:
  10915. groupStudent[toolindex][gindex] &&
  10916. groupStudent[toolindex][gindex][5],
  10917. updateChair:
  10918. courseDetail.userid == userid &&
  10919. groupStudent[toolindex][gindex] &&
  10920. groupStudent[toolindex][gindex][5] &&
  10921. groupJson.islock == 2,
  10922. }"
  10923. ><span
  10924. class="updateChairBtn"
  10925. @click="
  10926. updateGroupChair(
  10927. groupStudent[toolindex][gindex] &&
  10928. groupStudent[toolindex][gindex][5]
  10929. )
  10930. "
  10931. >修改</span
  10932. ></span
  10933. ><span>{{
  10934. groupStudent[toolindex][gindex] &&
  10935. groupStudent[toolindex][gindex][5]
  10936. ? groupStudent[toolindex][gindex] &&
  10937. groupStudent[toolindex][gindex][5].name
  10938. : "空位置"
  10939. }}</span>
  10940. </div>
  10941. <div v-if="groupJson.number > 9">
  10942. <span
  10943. :class="{
  10944. isChair:
  10945. groupStudent[toolindex][gindex] &&
  10946. groupStudent[toolindex][gindex][9],
  10947. updateChair:
  10948. courseDetail.userid == userid &&
  10949. groupStudent[toolindex][gindex] &&
  10950. groupStudent[toolindex][gindex][9] &&
  10951. groupJson.islock == 2,
  10952. }"
  10953. ><span
  10954. class="updateChairBtn"
  10955. @click="
  10956. updateGroupChair(
  10957. groupStudent[toolindex][gindex] &&
  10958. groupStudent[toolindex][gindex][9]
  10959. )
  10960. "
  10961. >修改</span
  10962. ></span
  10963. ><span>{{
  10964. groupStudent[toolindex][gindex] &&
  10965. groupStudent[toolindex][gindex][9]
  10966. ? groupStudent[toolindex][gindex] &&
  10967. groupStudent[toolindex][gindex][9].name
  10968. : "空位置"
  10969. }}</span>
  10970. </div>
  10971. </div>
  10972. </div>
  10973. </div>
  10974. </div>
  10975. </div>
  10976. <span slot="footer" class="dialog-footer">
  10977. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  10978. </span>
  10979. </el-dialog>
  10980. <el-dialog
  10981. title="分组设置"
  10982. :visible.sync="dialogVisibleGroup2"
  10983. :append-to-body="true"
  10984. width="650px"
  10985. :before-close="handleClose"
  10986. class="dialog_diy"
  10987. >
  10988. <div class="groupBox">
  10989. <div v-if="groupJson2.group" class="groupContent">
  10990. <div class="groupTitle">请设置小组数量及名称</div>
  10991. <div
  10992. v-for="(item, index) in groupJson2.group"
  10993. :key="index"
  10994. class="groupName"
  10995. >
  10996. <span class="groupn">第{{ index + 1 }}组名称:</span>
  10997. <el-input
  10998. v-model="item.name"
  10999. placeholder="请输入名称..."
  11000. style="width: 250px"
  11001. ></el-input>
  11002. <!-- <div class="groupBtn">
  11003. <el-button type="primary" size="small" @click="addGroup(index)">
  11004. 添加</el-button>
  11005. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11006. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11007. </div> -->
  11008. </div>
  11009. </div>
  11010. <div class="groupContent">
  11011. <div class="groupTitle">请设置每组人数</div>
  11012. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11013. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11014. <el-input
  11015. v-model="groupJson.number"
  11016. style="width: 150px"
  11017. placeholder="请输入2-10的数字"
  11018. @change="numberPan"
  11019. ></el-input>
  11020. </div>
  11021. </div>
  11022. <span slot="footer" class="dialog-footer">
  11023. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11024. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11025. </span>
  11026. </el-dialog>
  11027. <el-dialog
  11028. title="作业提交"
  11029. :visible.sync="dialogVisibleGroupWork"
  11030. :append-to-body="true"
  11031. width="500px"
  11032. :before-close="handleClose"
  11033. class="dialog_change"
  11034. >
  11035. <div class="marginT">
  11036. <div>上传文件</div>
  11037. <div
  11038. class="chapter_add"
  11039. @click="addImg($event)"
  11040. v-if="studyJuri[0].cover.length == 0"
  11041. >
  11042. <div class="up_photo">
  11043. <img src="../../assets/icon/uploadImg.png" alt />
  11044. </div>
  11045. <!-- <input
  11046. type="file"
  11047. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11048. style="display: none"
  11049. @change="beforeUpload1($event, 1)"
  11050. /> -->
  11051. <input
  11052. type="file"
  11053. accept="*"
  11054. style="display: none"
  11055. @change="beforeUpload1($event, 1)"
  11056. />
  11057. </div>
  11058. <!-- capture="camera" -->
  11059. <div
  11060. class="chapter_add"
  11061. style="
  11062. display: flex;
  11063. width: 100%;
  11064. flex-direction: row;
  11065. flex-wrap: wrap;
  11066. justify-content: flex-start;
  11067. padding: 15px 0;
  11068. "
  11069. v-if="studyJuri[0].cover.length > 0"
  11070. >
  11071. <div class="upCover">
  11072. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11073. <img :src="word" alt v-else-if="fileType == 1" />
  11074. <img :src="video" alt v-else-if="fileType == 2" />
  11075. <img :src="word2" alt v-else-if="fileType == 3" />
  11076. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11077. <div class="deleteWord" @click="clean(1)">
  11078. <img src="../../assets/icon/deleteWorks.png" alt />
  11079. </div>
  11080. </div>
  11081. </div>
  11082. </div>
  11083. <div
  11084. class="upload_send"
  11085. @click="addCourseWorks2(taskCount)"
  11086. v-if="!proVisible"
  11087. >
  11088. 提交
  11089. </div>
  11090. </el-dialog>
  11091. <el-dialog
  11092. title="修改分组"
  11093. :visible.sync="dialogVisibleUpdateGroup"
  11094. :append-to-body="true"
  11095. width="350px"
  11096. :before-close="handleClose"
  11097. class="dialog_diy"
  11098. >
  11099. <div>
  11100. <h2>
  11101. {{ this.updateGroupUser.name }}
  11102. </h2>
  11103. <div style="color: rgb(171 171 171); margin-top: 10px">
  11104. 请选择要进入的分组
  11105. </div>
  11106. <el-radio-group v-model="checkChair">
  11107. <el-radio
  11108. style="display: block; margin-top: 20px"
  11109. v-for="(item, index) in updateGroupArray"
  11110. :label="item.label"
  11111. :key="index"
  11112. >{{ item.name }}</el-radio
  11113. >
  11114. </el-radio-group>
  11115. </div>
  11116. <span slot="footer" class="dialog-footer">
  11117. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11118. <el-button type="primary" @click="updateChair">确定</el-button>
  11119. </span>
  11120. </el-dialog>
  11121. <el-dialog
  11122. title="移除组员"
  11123. :visible.sync="dialogVisibleDeleteGroup"
  11124. :append-to-body="true"
  11125. width="350px"
  11126. :before-close="handleClose"
  11127. class="dialog_diy"
  11128. >
  11129. <div>
  11130. <h2>
  11131. {{ this.deleteGroupArray.name }}
  11132. </h2>
  11133. <div style="color: rgb(171 171 171); margin-top: 10px">
  11134. 请选择要删除的组员
  11135. </div>
  11136. <el-checkbox-group v-model="checkDeleteGroup">
  11137. <el-checkbox
  11138. style="display: flex; margin-top: 20px"
  11139. v-for="(item, index) in deleteGroupUser"
  11140. :label="item.userid"
  11141. :key="index"
  11142. >{{ item.name }}</el-checkbox
  11143. >
  11144. </el-checkbox-group>
  11145. </div>
  11146. <span slot="footer" class="dialog-footer">
  11147. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11148. <el-button type="primary" @click="deleteChair">确定</el-button>
  11149. </span>
  11150. </el-dialog>
  11151. <el-dialog
  11152. title="批量上传"
  11153. :visible.sync="dialogVisiblePl"
  11154. :append-to-body="true"
  11155. width="700px"
  11156. :before-close="handleClose"
  11157. class="dialog_change"
  11158. >
  11159. <div class="marginT">
  11160. <div class="plworkBox">
  11161. <div
  11162. class="chapter_add"
  11163. style="
  11164. display: flex;
  11165. width: 150px;
  11166. flex-direction: row;
  11167. flex-wrap: wrap;
  11168. justify-content: flex-start;
  11169. margin: 0 10px 10px 0;
  11170. "
  11171. v-for="(item, index) in plworkFile"
  11172. :key="index"
  11173. >
  11174. <div class="upCover2">
  11175. <img
  11176. :src="item.url"
  11177. alt
  11178. v-if="item.fileType == 1"
  11179. @click="previewImg(item.url)"
  11180. />
  11181. <img :src="word" alt v-else-if="item.fileType == 4" />
  11182. <img :src="video" alt v-else />
  11183. <!-- <span class="picName">{{ item.name }}</span> -->
  11184. <!-- <el-input
  11185. v-model="item.username"
  11186. placeholder="请输入学生名字"
  11187. style="margin-top: 10px"
  11188. ></el-input> -->
  11189. <div
  11190. class="pl_select_box"
  11191. @click="
  11192. getUpdateMore(true, checkUpload(), item.username, index)
  11193. "
  11194. >
  11195. {{ getSName(item.username) }}
  11196. </div>
  11197. <!-- <el-select
  11198. style="margin-top: 10px"
  11199. v-model="item.username"
  11200. filterable
  11201. allow-create
  11202. placeholder="请选择学生"
  11203. >
  11204. <el-option
  11205. v-for="item1 in checkUpload()"
  11206. :key="item1.userid"
  11207. :label="item1.name ? item1.name : item1.username"
  11208. :value="item1.userid"
  11209. >
  11210. </el-option>
  11211. </el-select> -->
  11212. <div class="deleteWord" @click="clean2(index)">
  11213. <img src="../../assets/icon/deleteWorks.png" alt />
  11214. </div>
  11215. </div>
  11216. </div>
  11217. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11218. <div class="up_photo2">
  11219. <img src="../../assets/icon/plwork.png" alt />
  11220. <span>点击上传文件</span>
  11221. </div>
  11222. <input
  11223. type="file"
  11224. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11225. multiple="multiple"
  11226. style="display: none"
  11227. @change="beforeUpload3($event, 6)"
  11228. />
  11229. </div>
  11230. </div>
  11231. </div>
  11232. <!-- capture="camera" -->
  11233. <div
  11234. class="upload_send"
  11235. @click="addCourseWorksPl(taskCount)"
  11236. v-if="!proVisible2"
  11237. >
  11238. 提交
  11239. </div>
  11240. </el-dialog>
  11241. <el-dialog
  11242. title="修改名称"
  11243. :visible.sync="dialogVisibleSname"
  11244. width="500px"
  11245. :before-close="handleClose"
  11246. class="dialog_diy"
  11247. center
  11248. >
  11249. <div
  11250. style="
  11251. text-align: center;
  11252. display: flex;
  11253. align-items: center;
  11254. justify-content: center;
  11255. "
  11256. >
  11257. <span class="tian1">名称</span>
  11258. <div
  11259. class="pl_select_box"
  11260. style="margin-left: 10px; width: 200px"
  11261. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11262. >
  11263. {{ getSName(worksSName) }}
  11264. </div>
  11265. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11266. placeholder="请选择学生">
  11267. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11268. :value="item.userid">
  11269. </el-option>
  11270. </el-select> -->
  11271. <!-- <el-input
  11272. v-model="worksSName"
  11273. style="width: 250px; margin: 15px 0px"
  11274. ></el-input> -->
  11275. </div>
  11276. <span slot="footer" class="dialog-footer">
  11277. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11278. <el-button type="primary" @click="updateName">确 定</el-button>
  11279. </span>
  11280. </el-dialog>
  11281. <el-dialog
  11282. title="英语写作"
  11283. :visible.sync="engDialogVisible"
  11284. :append-to-body="true"
  11285. width="800px"
  11286. :before-close="handleClose"
  11287. class="dialog_diy"
  11288. >
  11289. <onlineWrite
  11290. v-if="engDialogVisible"
  11291. @setEnglish="setEnglishList"
  11292. :englishList="englishList"
  11293. :myAnswerList1="myAnswerList1"
  11294. ></onlineWrite>
  11295. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11296. <el-button @click="engDialogVisible = false">取 消</el-button>
  11297. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  11298. </span>
  11299. </el-dialog>
  11300. <el-dialog
  11301. title="英语写作"
  11302. :visible.sync="engUpdateDialogVisible"
  11303. :append-to-body="true"
  11304. width="800px"
  11305. :before-close="handleClose"
  11306. class="dialog_diy fullStyle"
  11307. >
  11308. <div class="engUpBox">
  11309. <div class="engUpTop">
  11310. <div class="engTitle">
  11311. <div>作文题目:</div>
  11312. <div>{{ englishList1.engTitle }}</div>
  11313. </div>
  11314. <div class="engText">
  11315. <div>作文内容:</div>
  11316. <div class="cont" v-html="englishList1.englishText" @click="checkImg(getImgList(englishList1.englishText))"></div>
  11317. </div>
  11318. </div>
  11319. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11320. <div class="oldBox">
  11321. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  11322. <div class="oldText">
  11323. <div class="detailBox">
  11324. <div class="oldDetail">
  11325. <div>标题:</div>
  11326. <div>{{ oldEnglishJson.engTitle }} </div>
  11327. </div>
  11328. <div class="oldDetail1">
  11329. <div>正文:</div>
  11330. <div v-html="oldEnglishJson.engText"></div>
  11331. </div>
  11332. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11333. <div>图片:</div>
  11334. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11335. </div>
  11336. </div>
  11337. </div>
  11338. </div>
  11339. <div class="oldBox" v-if="userMes[0].type == 2">
  11340. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11341. <div class="oldText">
  11342. <div class="detailBox" style="position: relative;">
  11343. <div class="oldDetail">
  11344. <div>标题:</div>
  11345. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11346. <div v-else v-html="newEnglishList.engTitle"></div>
  11347. </div>
  11348. <div class="oldDetail">
  11349. <div>正文:</div>
  11350. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" />
  11351. <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText)"></div>
  11352. </div>
  11353. <el-button @click="greyType = !greyType" style="position: absolute;bottom: -50px;right: 0;background: #409eff;color: #fff;">{{ greyType == false ? '编辑' : '取消编辑' }}</el-button>
  11354. </div>
  11355. </div>
  11356. </div>
  11357. <div class="oldBox" v-else-if="userMes[0].type == 1">
  11358. <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">
  11359. <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>
  11360. <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>
  11361. </div>
  11362. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11363. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11364. <div class="detailBox" style="position: relative;">
  11365. <div class="oldDetail">
  11366. <div>标题:</div>
  11367. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  11368. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  11369. </div>
  11370. <div class="oldDetail">
  11371. <div>正文:</div>
  11372. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" />
  11373. <div v-else style="white-space: pre-line;" v-html="Correct(oldEnglishJson1.engText)"></div>
  11374. </div>
  11375. <el-button @click="greyType = !greyType" style="position: absolute;bottom: -50px;right: 0;background: #409eff;color: #fff;">{{ greyType == false ? '编辑' : '取消编辑' }}</el-button>
  11376. </div>
  11377. </div>
  11378. <div class="oldText" v-else-if="newEngIndex == -1">
  11379. <div class="detailBox" style="position: relative;">
  11380. <div class="oldDetail">
  11381. <div>标题:</div>
  11382. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11383. <div v-else v-html="newEnglishList.engTitle"></div>
  11384. </div>
  11385. <div class="oldDetail">
  11386. <div>正文:</div>
  11387. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" />
  11388. <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText)"></div>
  11389. </div>
  11390. <el-button @click="greyType = !greyType" style="position: absolute;bottom: -50px;right: 0;background: #409eff;color: #fff;">{{ greyType == false ? '编辑' : '取消编辑' }}</el-button>
  11391. </div>
  11392. </div>
  11393. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11394. <div class="detailBox" style="position: relative;">
  11395. <div class="oldDetail">
  11396. <div>标题:</div>
  11397. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11398. <div v-else>
  11399. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  11400. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11401. </div>
  11402. </div>
  11403. <div class="oldDetail">
  11404. <div>正文:</div>
  11405. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engText"></div>
  11406. <div v-else>
  11407. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" />
  11408. <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList1[newEngIndex].cWork.engText)"></div>
  11409. </div>
  11410. </div>
  11411. <el-button @click="greyType = !greyType" style="position: absolute;bottom: -50px;right: 0;background: #409eff;color: #fff;">{{ greyType == false ? '编辑' : '取消编辑' }}</el-button>
  11412. </div>
  11413. </div>
  11414. </div>
  11415. </div>
  11416. </div>
  11417. <span slot="footer" class="dialog-footer">
  11418. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  11419. <el-button type="primary" @click="addCorrect">确 定</el-button>
  11420. </span>
  11421. </el-dialog>
  11422. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  11423. <interVideo
  11424. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11425. :videoJson="videoJson"
  11426. :userid="userid"
  11427. :id="id"
  11428. :courseType="courseType"
  11429. :taskCount="taskCount"
  11430. :toolindex="toolindex"
  11431. ></interVideo>
  11432. <UpdateMore
  11433. :dialogVisibleMember.sync="dialogVisibleMember"
  11434. :cList="uploadStudentJuri"
  11435. :userid="userid"
  11436. :searchTN="worksSName2"
  11437. @setPlname="setPlname"
  11438. ></UpdateMore>
  11439. <wordCloud
  11440. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11441. :data="wordCloudData"
  11442. ></wordCloud>
  11443. <el-dialog
  11444. title="挑人"
  11445. :visible.sync="dialogVisiblePickPeople"
  11446. width="650px"
  11447. :before-close="handleClose"
  11448. class="dialog_diy"
  11449. center
  11450. >
  11451. <div class="pick_box">
  11452. <div
  11453. class="noWorksName"
  11454. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11455. v-for="(item, index) in uploadStudentJuri"
  11456. :key="index"
  11457. @click="pickStudent(item)"
  11458. >
  11459. {{ item.name }}
  11460. </div>
  11461. </div>
  11462. </el-dialog>
  11463. </div>
  11464. </template>
  11465. <script>
  11466. import "../../common/aws-sdk-2.235.1.min.js";
  11467. // import pdf from "../components/pdf3";
  11468. import pdf from "../components/vpdf";
  11469. import AskStatic from "../components/askStatic";
  11470. import AskStatic2 from "../components/askStatic2";
  11471. import AnswerData2 from "../components/answerData2";
  11472. import AnswerData from "../components/answerData";
  11473. import EditorBar from "../tools/wangEnduit.vue";
  11474. import Table from "../tools/table.vue";
  11475. import Time from "../tools/time.vue";
  11476. import Mind from "../tools/jsmind.vue";
  11477. import Sunburst from "../tools/sunburst";
  11478. import SeeBoard from "../tools/seeBoard";
  11479. import * as imageConversion from "image-conversion";
  11480. import Audio from "../components/audio.vue";
  11481. import ImgDraw from "../tools/imgDraw/imgDraw";
  11482. import { Empty } from "element-ui";
  11483. import RecordRTC from "recordrtc";
  11484. import interVideo from "../interVideo/index.vue";
  11485. import UpdateMore from "../updateMore/updateMore.vue";
  11486. import wordCloud from "../wordCloud/index.vue";
  11487. import axios from "axios";
  11488. import JSZip from "jszip";
  11489. import FileSaver from "file-saver";
  11490. import onlineWrite from "./commpont/onlineWrite";
  11491. import englishEva from "../components/englishEva";
  11492. import * as Diff from 'diff'
  11493. const getFile = (url) => {
  11494. return new Promise((resolve, reject) => {
  11495. var credentials = {
  11496. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  11497. secretAccessKey: "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",
  11498. }; //秘钥形式的登录上传
  11499. window.AWS.config.update(credentials);
  11500. window.AWS.config.region = "cn-northwest-1"; //设置区域
  11501. let url2 = url;
  11502. let _url2 = "";
  11503. if (
  11504. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  11505. ) {
  11506. _url2 = url2.split(
  11507. "https://view.officeapps.live.com/op/view.aspx?src="
  11508. )[1];
  11509. } else {
  11510. _url2 = url2;
  11511. }
  11512. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  11513. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  11514. var params = {
  11515. Bucket: "ccrb",
  11516. Key: name
  11517. };
  11518. s3.getObject(params, function (err, data) {
  11519. if (err) {
  11520. console.log(err, err.stack)
  11521. resolve({ data: 1 });
  11522. }else {
  11523. resolve({ data: data.Body });
  11524. console.log(data);
  11525. } // sxuccessful response
  11526. });
  11527. // axios({
  11528. // method: "get",
  11529. // url,
  11530. // responseType: "blob",
  11531. // })
  11532. // .then((data) => {
  11533. // resolve({ data: data.data });
  11534. // })
  11535. // .catch((error) => {
  11536. // resolve({ data: 1 });
  11537. // // reject(error.toString());
  11538. // });
  11539. });
  11540. };
  11541. export default {
  11542. components: {
  11543. EditorBar,
  11544. Time,
  11545. pdf,
  11546. AskStatic,
  11547. AskStatic2,
  11548. Mind,
  11549. Sunburst,
  11550. SeeBoard,
  11551. AnswerData2,
  11552. AnswerData,
  11553. Audio,
  11554. ImgDraw,
  11555. Table,
  11556. interVideo,
  11557. UpdateMore,
  11558. wordCloud,
  11559. onlineWrite,
  11560. englishEva,
  11561. },
  11562. data() {
  11563. return {
  11564. bg: null,
  11565. drawShow: false,
  11566. dialogVisible: false,
  11567. dialogVisiblePl: false,
  11568. commentDialogVisible: false,
  11569. dialogVisibleMember: false,
  11570. dialogVisibleWordCloud: false,
  11571. videoVisible: false,
  11572. isStar: false,
  11573. studentEvalDialogVisible: false,
  11574. studentEvalDialogVisibleTeacher: false,
  11575. dialogVisibleSelect: false,
  11576. dialogVisibleSelectTeacher: false,
  11577. dialogVisibleScore: false,
  11578. dialogVisibleSentence: false,
  11579. dialogVisibleSentenceTeacher: false,
  11580. dialogVisibleSentence1: false,
  11581. dialogVisibleWorks: false,
  11582. dialogVisibleTable: false,
  11583. dialogVisibleTableTeacher: false,
  11584. dialogVisibleWord: false,
  11585. dialogVisibleWordTeacher: false,
  11586. dialogVisibleTable2: false,
  11587. dialogVisibleTable3: false,
  11588. dialogVisibleGroupWork: false,
  11589. dialogVisibleUpdateGroup: false,
  11590. dialogVisibleDeleteGroup: false,
  11591. dialogVisibleSname: false,
  11592. dialogVisibleVideo: false,
  11593. dialogVisiblePickPeople: false,
  11594. engDialogVisible: false,
  11595. engUpdateDialogVisible:false,
  11596. engEvaDialogVisible: false,
  11597. evaEngJson: {
  11598. teacherJson: {},
  11599. studentJson: {},
  11600. message: {},
  11601. },
  11602. isNoUserid:false,
  11603. engListLength:0,
  11604. engWid:"",
  11605. newEnglishList:{
  11606. engTitle:"",
  11607. engText:"",
  11608. },
  11609. newEnglishList1:[],
  11610. oldEnglishJson:{},
  11611. oldEnglishJson1:{},
  11612. englishList1:{},
  11613. englishList:{},
  11614. myAnswerList1:{},
  11615. topHeight:0,
  11616. newEngIndex:-1,
  11617. englishToolIndex:0,
  11618. userMes:{},
  11619. englishToolIndex:0,
  11620. worksSName: "",
  11621. classJuri: [],
  11622. uploadStudentJuri: [],
  11623. uploadCid: "",
  11624. snameWid: "",
  11625. sStudent: {},
  11626. sTool: "",
  11627. bzText: "",
  11628. commentDetail: [],
  11629. selectAnswer: [],
  11630. videoDetail: {},
  11631. selectJson: {},
  11632. englishList: {},
  11633. topHeight:0,
  11634. eScore: { eBzText: "", eStar: [] },
  11635. id: this.$route.query.courseId,
  11636. userid: this.$route.query.userid,
  11637. classId: this.$route.query.cid,
  11638. // courseTypeLine: this.$route.query.type,
  11639. oid: this.$route.query.oid,
  11640. org: this.$route.query.org,
  11641. tType: this.$route.query.tType,
  11642. courseType: this.$route.query.type,
  11643. screenType: this.$route.query.screenType,
  11644. tcid2: this.$route.query.tcid,
  11645. tcid: "",
  11646. pptImgUrl: "",
  11647. pptImgUrl1: "",
  11648. commentText: "",
  11649. full: false,
  11650. sIsOpen: false,
  11651. IsLookOpen: false,
  11652. IsFollow: false,
  11653. pzDialog: false,
  11654. contentDialog: false,
  11655. mlDialog: false,
  11656. type: 1,
  11657. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  11658. sentenceList1: [],
  11659. tableJson: [],
  11660. tableJsonO: [],
  11661. wordJson: [],
  11662. wordJsonO: [],
  11663. vedio: [],
  11664. text: [],
  11665. textList: [],
  11666. line: [],
  11667. lineList: [],
  11668. chapTools: [],
  11669. chapToolList: [],
  11670. file: [],
  11671. fileC: [],
  11672. vedioTime: [],
  11673. upToolImg: "",
  11674. preTime: 0,
  11675. rateList: {
  11676. ca: 0,
  11677. },
  11678. rateParams: [],
  11679. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  11680. studyJuri: [
  11681. {
  11682. content: "",
  11683. cover: [],
  11684. upVedio: [],
  11685. upFile: [],
  11686. },
  11687. ],
  11688. isClose: 0,
  11689. plworkFile: [],
  11690. mr: require("../../assets/vedioPic.png"),
  11691. word: require("../../assets/icon/isWord.png"),
  11692. word2: require("../../assets/icon/word2.png"),
  11693. video: require("../../assets/icon/isVideo.png"),
  11694. noLikes: require("../../assets/icon/comment/noLikes.png"),
  11695. likes: require("../../assets/icon/comment/likes.png"),
  11696. scoreImg: require("../../assets/score.png"),
  11697. courseDetail: {},
  11698. reply: "",
  11699. isSelect: false,
  11700. chapInfo: [],
  11701. chapInfoList: [],
  11702. taskCount: 0,
  11703. imgList: [],
  11704. noImgList: [],
  11705. pzList: [],
  11706. timeWorkList: [],
  11707. PlTextList: [
  11708. "Excellent!",
  11709. "nice!",
  11710. "很有创意!",
  11711. "还不错哦~",
  11712. "继续努力哦~",
  11713. ],
  11714. isClickNav: "",
  11715. navId: "",
  11716. playerOptions: {
  11717. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11718. autoplay: false, //如果true,浏览器准备好时开始回放。
  11719. muted: false, // 默认情况下将会消除任何音频。
  11720. loop: false, // 导致视频一结束就重新开始。
  11721. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11722. language: "zh-CN",
  11723. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11724. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11725. sources: [
  11726. {
  11727. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11728. src: "", //url地址require("../../../assets/media/aaa.mp4")
  11729. },
  11730. ],
  11731. // poster: require("../../../assets/tu31.png"), //你的封面地址
  11732. // poster: dataRes.imgUrl, //你的封面地址
  11733. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11734. controlBar: {
  11735. timeDivider: true, //当前时间和持续时间的分隔符
  11736. durationDisplay: true, //显示持续时间
  11737. remainingTimeDisplay: false, //是否显示剩余时间功能
  11738. fullscreenToggle: true, //全屏按钮
  11739. },
  11740. },
  11741. playerOptions1: {
  11742. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11743. autoplay: false, //如果true,浏览器准备好时开始回放。
  11744. muted: false, // 默认情况下将会消除任何音频。
  11745. loop: false, // 导致视频一结束就重新开始。
  11746. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11747. language: "zh-CN",
  11748. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11749. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11750. sources: [
  11751. {
  11752. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11753. src: "", //url地址require("../../../assets/media/aaa.mp4")
  11754. },
  11755. ],
  11756. // poster: require("../../../assets/tu31.png"), //你的封面地址
  11757. // poster: dataRes.imgUrl, //你的封面地址
  11758. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11759. controlBar: {
  11760. timeDivider: true, //当前时间和持续时间的分隔符
  11761. durationDisplay: true, //显示持续时间
  11762. remainingTimeDisplay: false, //是否显示剩余时间功能
  11763. fullscreenToggle: true, //全屏按钮
  11764. },
  11765. },
  11766. playerO: {},
  11767. noneBtnImg: false,
  11768. proVisible: false,
  11769. proVisible2: false,
  11770. progress: 0,
  11771. isFinishSize: 0,
  11772. isAllSize: 0,
  11773. questionAnswer: "",
  11774. answerQ: "", //问答标题
  11775. rateJson: [],
  11776. wbCount: 0,
  11777. wordCount: 0,
  11778. mindCount: 0,
  11779. askCount: 0,
  11780. noteCount: 0,
  11781. mindNetWorkCount: 0,
  11782. libraryCount: 0,
  11783. workCount: 0,
  11784. timeCount: 0,
  11785. answerCount: 0,
  11786. trainCount: 0,
  11787. evalCount: 0,
  11788. dialogImageUrl: "",
  11789. pictureDialog: false,
  11790. toolTypeList: [],
  11791. dialogVisible1: false,
  11792. dialogVisible2: false,
  11793. dialogVisible3: false,
  11794. dialogVisible6: false,
  11795. dialogVisible4: false,
  11796. isNoHomeWork: false,
  11797. dialogVisible5: false,
  11798. dialogVisible5Teacher: false,
  11799. dialogVisibleChoice: false,
  11800. dialogVisibleChoiceTeacher: false,
  11801. answerDialogVisible: false,
  11802. answerDialogVisibleTeacher: false,
  11803. juriVisible: false,
  11804. timeDialogVisible: false,
  11805. replyDialogVisible: false,
  11806. toolDialogVisible: false,
  11807. replyIndex: 0,
  11808. replyPid: "",
  11809. radio: [],
  11810. isAsk: false,
  11811. askJson: {
  11812. askCount: 1,
  11813. askTitle: "",
  11814. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11815. },
  11816. testJson: {},
  11817. checkJson: [],
  11818. askList: [],
  11819. answerList: [],
  11820. navList: [],
  11821. addPzDialog: false,
  11822. pzConText: "",
  11823. worksStudent: [],
  11824. isCloseList: [],
  11825. workStudent: [],
  11826. groupStudent: [],
  11827. groupStudentUid: [],
  11828. noWorksS: [],
  11829. isWorksS: [],
  11830. noWorksStudent: [],
  11831. toolindex: 0,
  11832. toolDetailIndex: null,
  11833. groupIndex: 0,
  11834. workTypeB: false,
  11835. workTypeC: false,
  11836. isAnswer: false,
  11837. isHovered: false,
  11838. isHovered1: false,
  11839. isHovered2: false,
  11840. timer: null,
  11841. opertimer: null,
  11842. showType: 0,
  11843. fileType: 0,
  11844. showPDF: false,
  11845. noteName: "",
  11846. evaJuri: [],
  11847. evalua: "",
  11848. eTitle: "",
  11849. eName: "",
  11850. eJson: {},
  11851. fid: "", //一级
  11852. sid: "", //二级
  11853. tid: "", //二级
  11854. typeMode: 1,
  11855. eJSONNum: 0,
  11856. Etype: 1,
  11857. data: {
  11858. meta: {
  11859. name: "example",
  11860. author: "dd@163.com",
  11861. version: "0.2",
  11862. },
  11863. format: "node_array",
  11864. data: [{ id: "root", isroot: true, topic: "" }],
  11865. },
  11866. fullDialogVisible: false,
  11867. fulltype: "",
  11868. fullUrl: "",
  11869. commentIndexJson: {},
  11870. Stbodywidth: 0,
  11871. ispzType: 0,
  11872. pzType: 1,
  11873. wScore: 0,
  11874. scoreDetail: "",
  11875. videoStart: false,
  11876. recorder: null,
  11877. groupJson: {},
  11878. islock: false,
  11879. groupJson2: {},
  11880. dialogVisibleGroup: false,
  11881. dialogVisibleGroup2: false,
  11882. updateGroupArray: [],
  11883. updateGroupUser: {},
  11884. deleteGroupUser: [],
  11885. deleteGroupArray: {},
  11886. checkChair: "",
  11887. checkDeleteGroup: [],
  11888. inviteCode: "",
  11889. courseGroupStudent: [],
  11890. courseGroupStudentUid: [],
  11891. courseGroup: {},
  11892. isGroup: false,
  11893. toolIndex: null,
  11894. tool: {},
  11895. isWorkTool: [
  11896. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  11897. ], //, 40
  11898. videoJson: {},
  11899. toolType: 0,
  11900. checktoolArray: [],
  11901. vChapterData: [],
  11902. isUpdateToolDetail: false,
  11903. isUpdateToolDetail1: false,
  11904. updateToolDetailInner: "",
  11905. checkboxList: [],
  11906. plIndex: "",
  11907. worksSName2: "",
  11908. worksSid: "",
  11909. wordCloudData: [],
  11910. isPickStudent: [],
  11911. pzStype: 1,
  11912. downLoading: false,
  11913. greyType: false,
  11914. correctWord: [],
  11915. };
  11916. },
  11917. methods: {
  11918. gx(){
  11919. this.$forceUpdate();
  11920. },
  11921. setEnglishList(engList) {
  11922. this.myAnList = engList;
  11923. },
  11924. addToolChoose() {
  11925. if (!this.checktoolArray.length) {
  11926. this.$message.error("请选择要添加的任务");
  11927. return;
  11928. }
  11929. if (
  11930. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11931. this.taskCount
  11932. ].toolChoose[0].tool.length
  11933. ) {
  11934. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11935. this.taskCount
  11936. ].toolChoose[0].tool = this.checktoolArray;
  11937. } else {
  11938. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11939. this.taskCount
  11940. ].toolChoose.push({
  11941. tool: this.checktoolArray,
  11942. toolDetail: "",
  11943. toolType: 0,
  11944. askCount: 1,
  11945. askTitle: "",
  11946. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11947. });
  11948. }
  11949. let params = [
  11950. {
  11951. cid: this.id,
  11952. chapters: JSON.stringify(this.chapInfoList),
  11953. uid: this.userid,
  11954. unitIndex: this.courseType,
  11955. },
  11956. ];
  11957. this.ajax
  11958. .post(this.$store.state.api + "updateWorkNew4", params)
  11959. .then((res) => {
  11960. this.$message({
  11961. message: "添加成功",
  11962. type: "success",
  11963. });
  11964. this.checktoolArray = [];
  11965. this.getCourseDetail(2);
  11966. this.checkBz(
  11967. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11968. this.taskCount
  11969. ].toolChoose.length - 1
  11970. );
  11971. this.toolDialogVisible = false;
  11972. this.refreshCourse();
  11973. this.$forceUpdate();
  11974. })
  11975. .catch((err) => {
  11976. console.error(err);
  11977. });
  11978. },
  11979. checkBz(index) {
  11980. this.isUpdateToolDetail = false;
  11981. this.$forceUpdate();
  11982. setTimeout(() => {
  11983. document.scrollingElement.scrollTop =
  11984. document.querySelectorAll(".filebox")[index].offsetTop +
  11985. document.querySelector(".student_body").offsetTop;
  11986. }, 500);
  11987. },
  11988. updateToolDetail(i, type) {
  11989. if (!this.isUpdateToolDetail1 && type == 2) {
  11990. this.toolDetailIndex = i
  11991. this.isUpdateToolDetail1 = true;
  11992. setTimeout(() => {
  11993. this.updateToolDetailInner = JSON.parse(
  11994. JSON.stringify(
  11995. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11996. this.taskCount
  11997. ].toolChoose[i].toolDetail
  11998. )
  11999. );
  12000. document.querySelector(".checkTextArea").focus();
  12001. }, 0);
  12002. } else if((this.isUpdateToolDetail1 && type != 2)){
  12003. // this.toolDetailIndex = i;
  12004. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12005. this.taskCount
  12006. ].toolChoose[i].toolDetail = JSON.parse(
  12007. JSON.stringify(this.updateToolDetailInner)
  12008. );
  12009. let params = [
  12010. {
  12011. cid: this.id,
  12012. chapters: JSON.stringify(this.chapInfoList),
  12013. uid: this.userid,
  12014. unitIndex: this.courseType,
  12015. },
  12016. ];
  12017. this.ajax
  12018. .post(this.$store.state.api + "updateWorkNew4", params)
  12019. .then((res) => {
  12020. this.isUpdateToolDetail1 = false;
  12021. this.$message({
  12022. message: "修改成功",
  12023. type: "success",
  12024. });
  12025. this.toolDetailIndex = null;
  12026. this.updateToolDetailInner = "";
  12027. this.getCourseDetail(2);
  12028. this.$forceUpdate();
  12029. })
  12030. .catch((err) => {
  12031. console.error(err);
  12032. });
  12033. } else if((this.isUpdateToolDetail1 && type == 2)){
  12034. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12035. this.taskCount
  12036. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  12037. JSON.stringify(this.updateToolDetailInner)
  12038. );
  12039. let params = [
  12040. {
  12041. cid: this.id,
  12042. chapters: JSON.stringify(this.chapInfoList),
  12043. uid: this.userid,
  12044. unitIndex: this.courseType,
  12045. },
  12046. ];
  12047. this.ajax
  12048. .post(this.$store.state.api + "updateWorkNew4", params)
  12049. .then((res) => {
  12050. this.$message({
  12051. message: "修改成功",
  12052. type: "success",
  12053. });
  12054. this.toolDetailIndex = i;
  12055. this.isUpdateToolDetail1 = true;
  12056. setTimeout(() => {
  12057. this.updateToolDetailInner = JSON.parse(
  12058. JSON.stringify(
  12059. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12060. this.taskCount
  12061. ].toolChoose[i].toolDetail
  12062. )
  12063. );
  12064. document.querySelector(".checkTextArea").focus();
  12065. }, 0);
  12066. this.getCourseDetail(2);
  12067. this.$forceUpdate();
  12068. })
  12069. .catch((err) => {
  12070. console.error(err);
  12071. });
  12072. }
  12073. },
  12074. jumpGj(i, j, k, l) {
  12075. for (var z = 0; z < this.navList.length; z++) {
  12076. for (var q = 0; q < this.navList[z].task.length; q++) {
  12077. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  12078. this.navList[z].task[q].tool[w].isTool = false;
  12079. }
  12080. }
  12081. }
  12082. this.navList[i].task[j].tool[k].isTool =
  12083. !this.navList[i].task[j].tool[k].isTool;
  12084. var a = document.scrollingElement;
  12085. let target = document.querySelector(`#gj${k}`);
  12086. if (target) {
  12087. target.scrollIntoView(true);
  12088. setTimeout(() => {
  12089. a.scrollTop = a.scrollTop - 150;
  12090. }, 0);
  12091. }
  12092. this.navId = ""
  12093. if (l) {
  12094. this.courseType = i;
  12095. // this.navId = l;
  12096. this.taskCount = j;
  12097. this.selectPz();
  12098. this.getHomeWork();
  12099. this.getCourseDetail(2);
  12100. }
  12101. // var b = this.$refs["bz" + k][0];
  12102. // a.scrollTop = b.offsetTop;
  12103. },
  12104. addTools2(i) {
  12105. if (i == 4) {
  12106. // this.openTools2(4);
  12107. this.$message.error("暂未开放");
  12108. return;
  12109. }
  12110. if (i == 45) {
  12111. // this.openTools2(45);
  12112. this.$message.error("暂未开放");
  12113. return;
  12114. }
  12115. if (i == 47) {
  12116. // this.openTools2(47);
  12117. this.$message.error("暂未开放");
  12118. return;
  12119. }
  12120. if (i == 49) {
  12121. // this.openTools2(49);
  12122. this.$message.error("暂未开放");
  12123. return;
  12124. }
  12125. if (i == 62) {
  12126. // this.openTools(itemTaskIndex, 62, toolIndex);
  12127. this.$message.error("暂未开放");
  12128. return;
  12129. }
  12130. if (i == 15) {
  12131. // this.openTools(itemTaskIndex, 15, toolIndex);
  12132. this.$message.error("暂未开放");
  12133. return;
  12134. }
  12135. if (i == 40) {
  12136. // this.openTools(itemTaskIndex, 40, toolIndex);
  12137. this.$message.error("暂未开放");
  12138. return;
  12139. }
  12140. if (i == 41) {
  12141. // this.openTools(itemTaskIndex, 41, toolIndex);
  12142. this.$message.error("暂未开放");
  12143. return;
  12144. }
  12145. if (i == 42) {
  12146. // this.openTools(itemTaskIndex, 42, toolIndex);
  12147. this.$message.error("暂未开放");
  12148. return;
  12149. }
  12150. if (this.checktoolArray.length > 0) {
  12151. if (this.checktoolArray.indexOf(i) != -1) {
  12152. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  12153. } else {
  12154. this.checktoolArray = [];
  12155. this.checktoolArray.push(i);
  12156. }
  12157. } else {
  12158. this.checktoolArray.push(i);
  12159. }
  12160. this.$forceUpdate();
  12161. },
  12162. jump() {
  12163. window.parent.postMessage({ tools: "43" }, "*");
  12164. },
  12165. getUpdateMore(f, checkboxList, searchTN, index) {
  12166. this.dialogVisibleMember = f;
  12167. this.checkboxList = checkboxList;
  12168. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12169. this.plIndex = index;
  12170. },
  12171. setPlname(a) {
  12172. if (this.plworkFile.length) {
  12173. this.plworkFile[this.plIndex].username = a;
  12174. } else {
  12175. this.worksSName = a;
  12176. }
  12177. this.dialogVisibleMember = false;
  12178. },
  12179. previewImg(url) {
  12180. this.$hevueImgPreview(url);
  12181. },
  12182. checkImg(list) {
  12183. if (!list.length) {
  12184. return;
  12185. }
  12186. this.$hevueImgPreview({
  12187. multiple: true, // 开启多图预览模式
  12188. imgList: list, // 需要预览的多图数组
  12189. });
  12190. },
  12191. change(val) {
  12192. console.log(val);
  12193. },
  12194. goTo(path) {
  12195. this.$router.push(path);
  12196. },
  12197. handlePictureCardPreview(url) {
  12198. this.dialogImageUrl = url;
  12199. this.pictureDialog = true;
  12200. },
  12201. clean(type) {
  12202. if (type == 1) {
  12203. this.studyJuri[0].cover.splice(0, 1);
  12204. } else if (type == 2) {
  12205. this.studyJuri[0].upVedio.splice(0, 1);
  12206. } else {
  12207. this.studyJuri[0].upFile.splice(0, 1);
  12208. }
  12209. },
  12210. clean2(index) {
  12211. this.plworkFile.splice(index, 1);
  12212. },
  12213. handleClose(done) {
  12214. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12215. this.videoDetail.sources[0].src = "";
  12216. }
  12217. this.commentIndexJson = {};
  12218. done();
  12219. },
  12220. fullTools() {
  12221. this.full = !this.full;
  12222. },
  12223. imgChange(file, fileList, type) {
  12224. if (type == 1) {
  12225. var _tmp = this.studyJuri[0].cover;
  12226. } else if (type == 2) {
  12227. var _tmp = this.studyJuri[0].upVedio;
  12228. } else {
  12229. var _tmp = this.studyJuri[0].upFile;
  12230. }
  12231. this.noneBtnImg = _tmp.length >= 1;
  12232. },
  12233. setContent(bool) {
  12234. this.contentDialog = bool;
  12235. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12236. document.querySelector(".workd_media").style.height = "650px";
  12237. } else if (document.querySelector(".workd_media")) {
  12238. document.querySelector(".workd_media").style.height = "auto";
  12239. }
  12240. },
  12241. setContent2(bool) {
  12242. this.mlDialog = bool;
  12243. if (
  12244. bool &&
  12245. this.contentDialog &&
  12246. document.querySelector(".workd_media")
  12247. ) {
  12248. document.querySelector(".workd_media").style.height = "650px";
  12249. } else if (document.querySelector(".workd_media")) {
  12250. document.querySelector(".workd_media").style.height = "auto";
  12251. }
  12252. },
  12253. openToolAll() {
  12254. this.toolDialogVisible = true;
  12255. },
  12256. addImg(e) {
  12257. var el = e.currentTarget;
  12258. // this.$message.success('触发上传')
  12259. el.getElementsByTagName("input")[0].click();
  12260. e.target.value = "";
  12261. },
  12262. addSelectAnswer() {
  12263. let params = [
  12264. {
  12265. uid: this.userid,
  12266. cid: this.id,
  12267. stage: this.courseType,
  12268. task: this.taskCount,
  12269. tool: this.toolindex,
  12270. content: this.selectAnswer.answer,
  12271. type: 7,
  12272. },
  12273. ];
  12274. this.ajax
  12275. .post(this.$store.state.api + "addCourseWorks", params)
  12276. .then((res) => {
  12277. this.$message({
  12278. message: "提交成功",
  12279. type: "success",
  12280. });
  12281. this.dialogVisibleSelect = false;
  12282. // this.selectAnswer = {};
  12283. this.selectSWorks();
  12284. this.selectStudent();
  12285. })
  12286. .catch((err) => {
  12287. this.$message.error("提交失败");
  12288. console.error(err);
  12289. });
  12290. },
  12291. addSelectAnswerTeacher() {
  12292. let params = [
  12293. {
  12294. uid: this.sStudent.userid,
  12295. cid: this.id,
  12296. stage: this.courseType,
  12297. task: this.taskCount,
  12298. tool: this.toolindex,
  12299. content: this.selectAnswer.answer,
  12300. type: 7,
  12301. },
  12302. ];
  12303. this.ajax
  12304. .post(this.$store.state.api + "addCourseWorks", params)
  12305. .then((res) => {
  12306. this.$message({
  12307. message: "提交成功",
  12308. type: "success",
  12309. });
  12310. this.dialogVisibleSelectTeacher = false;
  12311. // this.selectAnswer = {};
  12312. this.selectSWorks();
  12313. this.selectStudent();
  12314. })
  12315. .catch((err) => {
  12316. this.$message.error("提交失败");
  12317. console.error(err);
  12318. });
  12319. },
  12320. addSenWorks() {
  12321. for (var i = 0; i < this.sentenceList.length; i++) {
  12322. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12323. if (
  12324. this.sentenceList[i].chooseSenList[j] == undefined ||
  12325. this.sentenceList[i].chooseSenList[j] == ""
  12326. ) {
  12327. this.$message.error("请将答案填写完整!");
  12328. return;
  12329. }
  12330. }
  12331. }
  12332. let params = [
  12333. {
  12334. uid: this.userid,
  12335. cid: this.id,
  12336. stage: this.courseType,
  12337. task: this.taskCount,
  12338. tool: this.toolindex,
  12339. content: JSON.stringify(this.sentenceList),
  12340. type: 9,
  12341. },
  12342. ];
  12343. this.ajax
  12344. .post(this.$store.state.api + "addCourseWorks", params)
  12345. .then((res) => {
  12346. this.$message({
  12347. message: "提交成功",
  12348. type: "success",
  12349. });
  12350. this.dialogVisibleSentence = false;
  12351. // this.selectAnswer = {};
  12352. this.selectSWorks();
  12353. this.selectStudent();
  12354. })
  12355. .catch((err) => {
  12356. this.$message.error("提交失败");
  12357. console.error(err);
  12358. });
  12359. },
  12360. addSenWorksTeacher() {
  12361. for (var i = 0; i < this.sentenceList.length; i++) {
  12362. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12363. if (
  12364. this.sentenceList[i].chooseSenList[j] == undefined ||
  12365. this.sentenceList[i].chooseSenList[j] == ""
  12366. ) {
  12367. this.$message.error("请将答案填写完整!");
  12368. return;
  12369. }
  12370. }
  12371. }
  12372. let params = [
  12373. {
  12374. uid: this.sStudent.userid,
  12375. cid: this.id,
  12376. stage: this.courseType,
  12377. task: this.taskCount,
  12378. tool: this.toolindex,
  12379. content: JSON.stringify(this.sentenceList),
  12380. type: 9,
  12381. },
  12382. ];
  12383. this.ajax
  12384. .post(this.$store.state.api + "addCourseWorks", params)
  12385. .then((res) => {
  12386. this.$message({
  12387. message: "提交成功",
  12388. type: "success",
  12389. });
  12390. this.dialogVisibleSentenceTeacher = false;
  12391. // this.selectAnswer = {};
  12392. this.selectSWorks();
  12393. this.selectStudent();
  12394. })
  12395. .catch((err) => {
  12396. this.$message.error("提交失败");
  12397. console.error(err);
  12398. });
  12399. },
  12400. returnTableText() {
  12401. this.$confirm("确定还原此模板吗?", "提示", {
  12402. confirmButtonText: "确定",
  12403. cancelButtonText: "取消",
  12404. type: "warning",
  12405. })
  12406. .then(() => {
  12407. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  12408. })
  12409. .catch(() => {});
  12410. },
  12411. addTableWorks() {
  12412. let params = [
  12413. {
  12414. uid: this.userid,
  12415. cid: this.id,
  12416. stage: this.courseType,
  12417. task: this.taskCount,
  12418. tool: this.toolindex,
  12419. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12420. type: 10,
  12421. },
  12422. ];
  12423. this.ajax
  12424. .post(this.$store.state.api + "addCourseWorks", params)
  12425. .then((res) => {
  12426. this.$message({
  12427. message: "提交成功",
  12428. type: "success",
  12429. });
  12430. this.dialogVisibleTable = false;
  12431. // this.selectAnswer = {};
  12432. this.selectSWorks();
  12433. this.selectStudent();
  12434. })
  12435. .catch((err) => {
  12436. this.$message.error("提交失败");
  12437. console.error(err);
  12438. });
  12439. },
  12440. tableRowClassName({ row, rowIndex }) {
  12441. if ((rowIndex + 1) % 2 === 0) {
  12442. return "even_row";
  12443. } else {
  12444. return "";
  12445. }
  12446. },
  12447. addTableWorksTeacher() {
  12448. let params = [
  12449. {
  12450. uid: this.sStudent.userid,
  12451. cid: this.id,
  12452. stage: this.courseType,
  12453. task: this.taskCount,
  12454. tool: this.toolindex,
  12455. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12456. type: 10,
  12457. },
  12458. ];
  12459. this.ajax
  12460. .post(this.$store.state.api + "addCourseWorks", params)
  12461. .then((res) => {
  12462. this.$message({
  12463. message: "提交成功",
  12464. type: "success",
  12465. });
  12466. this.dialogVisibleTableTeacher = false;
  12467. // this.selectAnswer = {};
  12468. this.selectSWorks();
  12469. this.selectStudent();
  12470. })
  12471. .catch((err) => {
  12472. this.$message.error("提交失败");
  12473. console.error(err);
  12474. });
  12475. },
  12476. returnWordText() {
  12477. this.$confirm("确定还原此模板吗?", "提示", {
  12478. confirmButtonText: "确定",
  12479. cancelButtonText: "取消",
  12480. type: "warning",
  12481. })
  12482. .then(() => {
  12483. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  12484. })
  12485. .catch(() => {});
  12486. },
  12487. addWordWorks() {
  12488. let params = [
  12489. {
  12490. uid: this.userid,
  12491. cid: this.id,
  12492. stage: this.courseType,
  12493. task: this.taskCount,
  12494. tool: this.toolindex,
  12495. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12496. type: 13,
  12497. atool: 52,
  12498. },
  12499. ];
  12500. this.ajax
  12501. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12502. .then((res) => {
  12503. this.$message({
  12504. message: "提交成功",
  12505. type: "success",
  12506. });
  12507. this.dialogVisibleWord = false;
  12508. // this.selectAnswer = {};
  12509. this.selectSWorks();
  12510. this.selectStudent();
  12511. })
  12512. .catch((err) => {
  12513. this.$message.error("提交失败");
  12514. console.error(err);
  12515. });
  12516. },
  12517. addWordWorksTeacher() {
  12518. let params = [
  12519. {
  12520. uid: this.sStudent.userid,
  12521. cid: this.id,
  12522. stage: this.courseType,
  12523. task: this.taskCount,
  12524. tool: this.toolindex,
  12525. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12526. type: 13,
  12527. atool: 52,
  12528. },
  12529. ];
  12530. this.ajax
  12531. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12532. .then((res) => {
  12533. this.$message({
  12534. message: "提交成功",
  12535. type: "success",
  12536. });
  12537. this.dialogVisibleWordTeacher = false;
  12538. // this.selectAnswer = {};
  12539. this.selectSWorks();
  12540. this.selectStudent();
  12541. })
  12542. .catch((err) => {
  12543. this.$message.error("提交失败");
  12544. console.error(err);
  12545. });
  12546. },
  12547. addCourseWorks(i) {
  12548. var typesql;
  12549. if (this.fileType === 0) {
  12550. typesql = 1;
  12551. } else if (this.fileType === 1) {
  12552. typesql = 4;
  12553. } else if (this.fileType === 2) {
  12554. typesql = 5;
  12555. } else if (this.fileType === 3) {
  12556. typesql = 12;
  12557. }
  12558. if (!this.studyJuri[0].cover[0].url) {
  12559. this.$message.error("请上传文件");
  12560. return;
  12561. }
  12562. let params = [
  12563. {
  12564. uid: this.userid,
  12565. cid: this.id,
  12566. stage: this.courseType,
  12567. task: i,
  12568. tool: this.toolindex,
  12569. content: this.studyJuri[0].cover[0].url,
  12570. type: typesql,
  12571. },
  12572. ];
  12573. this.ajax
  12574. .post(this.$store.state.api + "addCourseWorksR", params)
  12575. .then((res) => {
  12576. this.$message({
  12577. message: "提交成功",
  12578. type: "success",
  12579. });
  12580. this.studyJuri[0].cover = [];
  12581. this.dialogVisible = false;
  12582. this.getCourseDetail(2);
  12583. })
  12584. .catch((err) => {
  12585. this.$message.error("提交失败");
  12586. console.error(err);
  12587. });
  12588. },
  12589. addCourseWorksPl(i) {
  12590. let _files = this.plworkFile;
  12591. var c = 1;
  12592. for (var k = 0; k < _files.length; k++) {
  12593. if (!_files[k].username) {
  12594. c = 2;
  12595. }
  12596. }
  12597. if (c == 2) {
  12598. this.$message.error("请填写学生姓名");
  12599. return;
  12600. }
  12601. let params = [
  12602. {
  12603. ateacher: this.userid,
  12604. cid: this.id,
  12605. stage: this.courseType,
  12606. task: i,
  12607. tool: this.toolindex,
  12608. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  12609. },
  12610. ];
  12611. this.ajax
  12612. .post(this.$store.state.api + "addCourseWorksPl", params)
  12613. .then((res) => {
  12614. this.$message({
  12615. message: "提交成功",
  12616. type: "success",
  12617. });
  12618. this.plworkFile = [];
  12619. this.dialogVisiblePl = false;
  12620. this.getCourseDetail(2);
  12621. })
  12622. .catch((err) => {
  12623. this.$message.error("提交失败");
  12624. console.error(err);
  12625. });
  12626. },
  12627. addCourseWorks2(i) {
  12628. var typesql;
  12629. if (this.fileType === 0) {
  12630. typesql = 0;
  12631. } else if (this.fileType === 1) {
  12632. typesql = 1;
  12633. } else if (this.fileType === 2) {
  12634. typesql = 3;
  12635. } else if (this.fileType === 3) {
  12636. typesql = 12;
  12637. }
  12638. if (!this.studyJuri[0].cover[0].url) {
  12639. this.$message.error("请上传文件");
  12640. return;
  12641. }
  12642. let params = [
  12643. {
  12644. uid: this.userid,
  12645. cid: this.id,
  12646. stage: this.courseType,
  12647. task: i,
  12648. tool: this.toolindex,
  12649. content: JSON.stringify({
  12650. type: typesql,
  12651. groupIndex: this.groupIndex,
  12652. url: this.studyJuri[0].cover[0].url,
  12653. }).replaceAll(/%/g, "%25"),
  12654. type: 11,
  12655. atool: 49,
  12656. text: "",
  12657. },
  12658. ];
  12659. this.ajax
  12660. .post(this.$store.state.api + "addCourseWorks5", params)
  12661. .then((res) => {
  12662. this.$message({
  12663. message: "提交成功",
  12664. type: "success",
  12665. });
  12666. this.studyJuri[0].cover = [];
  12667. this.dialogVisibleGroupWork = false;
  12668. this.getCourseDetail(2);
  12669. })
  12670. .catch((err) => {
  12671. this.$message.error("提交失败");
  12672. console.error(err);
  12673. });
  12674. },
  12675. addEnglishWork() {
  12676. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  12677. this.$message.error("请输入作文标题和正文!");
  12678. return;
  12679. }
  12680. let params = [
  12681. {
  12682. uid: this.userid,
  12683. cid: this.id,
  12684. stage: this.courseType,
  12685. task: this.taskCount,
  12686. tool: this.englishToolIndex,
  12687. content: JSON.stringify(this.myAnList),
  12688. type: 16,
  12689. atool: 69,
  12690. text: "",
  12691. },
  12692. ];
  12693. this.ajax
  12694. .post(this.$store.state.api + "addCourseWorks5", params)
  12695. .then((res) => {
  12696. this.$message({
  12697. message: "提交成功",
  12698. type: "success",
  12699. });
  12700. this.myAnList = {};
  12701. this.englishList = {};
  12702. this.englishToolIndex = 0;
  12703. this.engDialogVisible = false;
  12704. this.selectSWorks();
  12705. this.selectStudent();
  12706. })
  12707. .catch((err) => {
  12708. this.$message.error("提交失败");
  12709. console.error(err);
  12710. });
  12711. },
  12712. addCourseWorksGong(i, data, tool) {
  12713. let params = [
  12714. {
  12715. uid: this.userid,
  12716. cid: this.id,
  12717. stage: this.courseType,
  12718. task: this.taskCount,
  12719. tool: i,
  12720. content: data,
  12721. type: 12,
  12722. atool: tool,
  12723. text: "",
  12724. },
  12725. ];
  12726. this.ajax
  12727. .post(this.$store.state.api + "addCourseWorks5", params)
  12728. .then((res) => {
  12729. this.$message({
  12730. message: "提交成功",
  12731. type: "success",
  12732. });
  12733. this.studyJuri[0].cover = [];
  12734. this.selectSWorks();
  12735. this.selectStudent();
  12736. })
  12737. .catch((err) => {
  12738. this.$message.error("提交失败");
  12739. console.error(err);
  12740. });
  12741. },
  12742. addCourseWorksGongTeacher(i, data, tool) {
  12743. let params = [
  12744. {
  12745. uid: this.sStudent.userid,
  12746. cid: this.id,
  12747. stage: this.courseType,
  12748. task: this.taskCount,
  12749. tool: i,
  12750. content: data,
  12751. type: 12,
  12752. atool: tool,
  12753. text: "",
  12754. },
  12755. ];
  12756. this.ajax
  12757. .post(this.$store.state.api + "addCourseWorks5", params)
  12758. .then((res) => {
  12759. this.$message({
  12760. message: "提交成功",
  12761. type: "success",
  12762. });
  12763. this.studyJuri[0].cover = [];
  12764. this.dialogVisibleWorks = false;
  12765. this.selectSWorks();
  12766. this.selectStudent();
  12767. })
  12768. .catch((err) => {
  12769. this.$message.error("提交失败");
  12770. console.error(err);
  12771. });
  12772. },
  12773. addCourseWorksGongPl(i, data, tool, type) {
  12774. let params = [
  12775. {
  12776. uid: this.sStudent.userid,
  12777. cid: this.id,
  12778. stage: this.courseType,
  12779. task: this.taskCount,
  12780. tool: i,
  12781. content: data,
  12782. type: type,
  12783. atool: tool,
  12784. text: "",
  12785. },
  12786. ];
  12787. this.ajax
  12788. .post(this.$store.state.api + "addCourseWorks5", params)
  12789. .then((res) => {
  12790. this.$message({
  12791. message: "提交成功",
  12792. type: "success",
  12793. });
  12794. this.studyJuri[0].cover = [];
  12795. this.dialogVisibleWorks = false;
  12796. this.selectSWorks();
  12797. this.selectStudent();
  12798. })
  12799. .catch((err) => {
  12800. this.$message.error("提交失败");
  12801. console.error(err);
  12802. });
  12803. },
  12804. addCourseWorksTeacher(i) {
  12805. var typesql;
  12806. if (this.sTool == 32) {
  12807. this.addCourseWorksGongTeacher(
  12808. this.toolindex,
  12809. this.studyJuri[0].cover[0].url,
  12810. this.sTool
  12811. );
  12812. return;
  12813. }
  12814. if (this.fileType === 0) {
  12815. typesql = 1;
  12816. } else if (this.fileType === 1) {
  12817. typesql = 4;
  12818. } else if (this.fileType === 2) {
  12819. typesql = 5;
  12820. } else if (this.fileType === 3) {
  12821. typesql = 12;
  12822. }
  12823. if (this.sTool == 50) {
  12824. this.addCourseWorksGongPl(
  12825. this.toolindex,
  12826. this.studyJuri[0].cover[0].url,
  12827. this.sTool,
  12828. typesql
  12829. );
  12830. return;
  12831. }
  12832. if (!this.studyJuri[0].cover[0].url) {
  12833. this.$message.error("请上传文件");
  12834. return;
  12835. }
  12836. let params = [
  12837. {
  12838. uid: this.sStudent.userid,
  12839. cid: this.id,
  12840. stage: this.courseType,
  12841. task: i,
  12842. tool: this.toolindex,
  12843. content: this.studyJuri[0].cover[0].url,
  12844. type: typesql,
  12845. ateacher: this.userid,
  12846. },
  12847. ];
  12848. this.ajax
  12849. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  12850. .then((res) => {
  12851. this.$message({
  12852. message: "提交成功",
  12853. type: "success",
  12854. });
  12855. this.studyJuri[0].cover = [];
  12856. this.dialogVisibleWorks = false;
  12857. this.getCourseDetail(2);
  12858. })
  12859. .catch((err) => {
  12860. this.$message.error("提交失败");
  12861. console.error(err);
  12862. });
  12863. },
  12864. selectUploadStudent(type) {
  12865. const loading = this.$loading.service({
  12866. background: "rgba(255, 255, 255, 0.7)",
  12867. target: document.body,
  12868. });
  12869. let params = {
  12870. cid: this.uploadCid,
  12871. oid: this.oid,
  12872. cn: "",
  12873. };
  12874. this.ajax
  12875. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12876. .then((res) => {
  12877. loading.close();
  12878. var studentK = [];
  12879. if (this.isWorksS[this.toolindex].length > 0) {
  12880. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  12881. studentK.push(this.isWorksS[this.toolindex][z].uid);
  12882. }
  12883. studentK = studentK.join(",");
  12884. }
  12885. this.uploadStudentJuri = res.data[0].filter((el) => {
  12886. return studentK.indexOf(el.userid) == -1;
  12887. });
  12888. if (this.worksSName && this.worksSid) {
  12889. this.uploadStudentJuri.push({
  12890. userid: this.worksSid,
  12891. name: this.worksSName,
  12892. });
  12893. }
  12894. if (type == 1) {
  12895. this.plworkFile = [];
  12896. this.dialogVisibleSname = true;
  12897. } else if (type == 2) {
  12898. this.dialogVisiblePl = true;
  12899. }
  12900. })
  12901. .catch((err) => {
  12902. loading.close();
  12903. console.error(err);
  12904. });
  12905. },
  12906. selectPickStudent() {
  12907. const loading = this.$loading.service({
  12908. background: "rgba(255, 255, 255, 0.7)",
  12909. target: document.body,
  12910. });
  12911. let params = {
  12912. cid: this.uploadCid,
  12913. oid: this.oid,
  12914. cn: "",
  12915. };
  12916. this.ajax
  12917. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12918. .then((res) => {
  12919. loading.close();
  12920. this.uploadStudentJuri = res.data[0];
  12921. this.dialogVisiblePickPeople = true;
  12922. })
  12923. .catch((err) => {
  12924. loading.close();
  12925. console.error(err);
  12926. });
  12927. },
  12928. arrayToArray(arrayo, arrayt) {
  12929. let array1 = arrayo;
  12930. let array2 = arrayt;
  12931. let commonElements = [];
  12932. for (let i = 0; i < array1.length; i++) {
  12933. for (let j = 0; j < array2.length; j++) {
  12934. if (array1[i] === array2[j]) {
  12935. commonElements.push(array1[i]);
  12936. }
  12937. }
  12938. }
  12939. return commonElements;
  12940. },
  12941. selectWorksStudent() {
  12942. let params = {
  12943. oid: this.oid,
  12944. cid: this.courseDetail.juri,
  12945. };
  12946. this.ajax
  12947. .get(this.$store.state.api + "selectWorksStudent", params)
  12948. .then((res) => {
  12949. var a = res.data[0];
  12950. for (var i = 0; i < this.isWorksS.length; i++) {
  12951. this.noWorksS[i] = [];
  12952. var studentK = [];
  12953. if (this.isWorksS[i].length > 0) {
  12954. for (var z = 0; z < this.isWorksS[i].length; z++) {
  12955. studentK.push(this.isWorksS[i][z].uid);
  12956. }
  12957. studentK = studentK.join(",");
  12958. for (var j = 0; j < a.length; j++) {
  12959. if (studentK.indexOf(a[j].userid) == -1) {
  12960. if (this.tcid) {
  12961. // a[j].classid.indexOf(this.tcid) != -1
  12962. if (
  12963. this.arrayToArray(
  12964. a[j].classid.split(","),
  12965. this.tcid.split(",")
  12966. ).length
  12967. ) {
  12968. this.noWorksS[i].push({
  12969. student: a[j].name,
  12970. userid: a[j].userid,
  12971. });
  12972. }
  12973. } else {
  12974. this.noWorksS[i].push({
  12975. student: a[j].name,
  12976. userid: a[j].userid,
  12977. });
  12978. }
  12979. }
  12980. }
  12981. } else {
  12982. for (var k = 0; k < a.length; k++) {
  12983. if (this.tcid) {
  12984. if (
  12985. this.arrayToArray(
  12986. a[k].classid.split(","),
  12987. this.tcid.split(",")
  12988. ).length
  12989. ) {
  12990. this.noWorksS[i].push({
  12991. student: a[k].name,
  12992. userid: a[k].userid,
  12993. });
  12994. }
  12995. } else {
  12996. this.noWorksS[i].push({
  12997. student: a[k].name,
  12998. userid: a[k].userid,
  12999. });
  13000. }
  13001. }
  13002. }
  13003. }
  13004. this.$forceUpdate();
  13005. if (
  13006. Object.keys(this.commentDetail).length &&
  13007. Object.keys(this.commentIndexJson).length &&
  13008. !this.dialogVisibleScore
  13009. ) {
  13010. let a = 1;
  13011. let c = this.commentIndexJson;
  13012. if (
  13013. this.commentIndexJson.gindex ||
  13014. this.commentIndexJson.gindex === 0
  13015. ) {
  13016. for (
  13017. var i = 0;
  13018. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13019. i++
  13020. ) {
  13021. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  13022. groupA: for (var k = 0; k < _el.length; k++) {
  13023. let el = _el[k];
  13024. if (el.wid == this.commentDetail.wid) {
  13025. a = 2;
  13026. this.commentOther(
  13027. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  13028. this.commentIndexJson.toolIndex,
  13029. k,
  13030. this.commentIndexJson.gindex
  13031. );
  13032. break groupA;
  13033. }
  13034. }
  13035. }
  13036. if (a === 1) {
  13037. this.commentDetail = [];
  13038. this.commentIndexJson = {};
  13039. this.commentDialogVisible = false;
  13040. this.$message("此作业已被删除");
  13041. }
  13042. } else {
  13043. if (this.isGroup && this.commentIndexJson.gid) {
  13044. groupA: for (
  13045. var i = 0;
  13046. i < this.courseGroup.group.length;
  13047. i++
  13048. ) {
  13049. let _group = this.courseGroup.group[i];
  13050. if (_group.id == this.commentIndexJson.gid) {
  13051. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  13052. for (var k = 0; k < _el2.length; k++) {
  13053. let el2 = _el2[k];
  13054. if (el2.wid == this.commentDetail.wid) {
  13055. a = 2;
  13056. this.commentOther(
  13057. _el2[k],
  13058. this.commentIndexJson.toolIndex,
  13059. k,
  13060. null,
  13061. this.commentIndexJson.gid
  13062. );
  13063. break groupA;
  13064. }
  13065. }
  13066. }
  13067. }
  13068. }
  13069. if (a == 1) {
  13070. for (
  13071. var i = 0;
  13072. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13073. i++
  13074. ) {
  13075. let el =
  13076. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13077. if (el.wid == this.commentDetail.wid) {
  13078. a = 2;
  13079. this.commentOther(
  13080. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13081. this.commentIndexJson.toolIndex,
  13082. i
  13083. );
  13084. break;
  13085. }
  13086. }
  13087. }
  13088. if (a === 1) {
  13089. this.commentDetail = [];
  13090. this.commentIndexJson = {};
  13091. this.commentDialogVisible = false;
  13092. this.$message("此作业已被删除");
  13093. }
  13094. }
  13095. }
  13096. })
  13097. .catch((err) => {
  13098. console.error(err);
  13099. });
  13100. },
  13101. selectStudent() {
  13102. //学生查看自己作业
  13103. let params = {
  13104. uid: this.userid,
  13105. cid: this.id,
  13106. s: this.courseType,
  13107. t: this.taskCount,
  13108. };
  13109. this.ajax
  13110. .get(this.$store.state.api + "selectStudentWorks", params)
  13111. .then((res) => {
  13112. var a =
  13113. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13114. this.taskCount
  13115. ].toolChoose;
  13116. var b = res.data[0];
  13117. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13118. var y = [
  13119. "AVI",
  13120. "NAVI",
  13121. "MPEG",
  13122. "ASF",
  13123. "MOV",
  13124. "WMV",
  13125. "3GP",
  13126. "RM",
  13127. "RMVB",
  13128. "FLV",
  13129. "F4V",
  13130. "H.264",
  13131. "H.265",
  13132. "REAL VIDEO",
  13133. "MKV",
  13134. "WebM",
  13135. "HDDVD",
  13136. "MP4",
  13137. "MPG",
  13138. "M4V",
  13139. "MGV",
  13140. "OGV",
  13141. "QTM",
  13142. "STR",
  13143. "AMC",
  13144. "DVX",
  13145. "EVO",
  13146. "DAT",
  13147. "OGG",
  13148. "OGM",
  13149. ];
  13150. for (var i = 0; i < a.length; i++) {
  13151. this.workStudent[i] = [];
  13152. for (var j = 0; j < b.length; j++) {
  13153. if (i == b[j].tool) {
  13154. if (
  13155. (b[j].type == 1 ||
  13156. b[j].type == 4 ||
  13157. b[j].type == 5 ||
  13158. b[j].type == 6 ||
  13159. b[j].type == 12 ||
  13160. b[j].type == 7) &&
  13161. a[i].tool[0] != 15 &&
  13162. a[i].tool[0] != 4 &&
  13163. a[i].tool[0] != 45 &&
  13164. a[i].tool[0] != 50 &&
  13165. a[i].tool[0] != 32 &&
  13166. a[i].tool[0] != 57 &&
  13167. a[i].tool[0] != 52 &&
  13168. a[i].tool[0] != 69
  13169. ) {
  13170. if (
  13171. c.indexOf(
  13172. b[j].content
  13173. .split(".")
  13174. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13175. ) != -1 &&
  13176. a[i].tool[0] == 16 &&
  13177. b[j].atool != 50
  13178. ) {
  13179. this.workStudent[i].push({
  13180. works: b[j].content,
  13181. sName: b[j].name,
  13182. score: b[j].score,
  13183. img: b[j].img,
  13184. type: 1,
  13185. time: b[j].time,
  13186. userid: b[j].userid,
  13187. wid: b[j].id,
  13188. });
  13189. } else if (
  13190. y.indexOf(
  13191. b[j].content
  13192. .split(".")
  13193. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13194. ) != -1 &&
  13195. a[i].tool[0] == 16 &&
  13196. b[j].atool != 50
  13197. ) {
  13198. this.workStudent[i].push({
  13199. userid: b[j].userid,
  13200. wid: b[j].id,
  13201. works: b[j].content,
  13202. sName: b[j].name,
  13203. score: b[j].score,
  13204. img: b[j].img,
  13205. type: 3,
  13206. time: b[j].time,
  13207. });
  13208. } else if (b[j].type == 6 && b[j].atool != 50) {
  13209. this.workStudent[i].push({
  13210. userid: b[j].userid,
  13211. wid: b[j].id,
  13212. works: b[j].content,
  13213. sName: b[j].name,
  13214. score: b[j].score,
  13215. img: b[j].img,
  13216. type: 4,
  13217. time: b[j].time,
  13218. });
  13219. } else if (b[j].type == 7 && b[j].atool != 50) {
  13220. this.workStudent[i].push({
  13221. userid: b[j].userid,
  13222. wid: b[j].id,
  13223. works: b[j].content,
  13224. sName: b[j].name,
  13225. score: b[j].score,
  13226. img: b[j].img,
  13227. type: 5,
  13228. time: b[j].time,
  13229. });
  13230. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13231. this.workStudent[i].push({
  13232. works: b[j].content,
  13233. sName: b[j].name,
  13234. score: b[j].score,
  13235. img: b[j].img,
  13236. type: 12,
  13237. time: b[j].time,
  13238. userid: b[j].userid,
  13239. wid: b[j].id,
  13240. });
  13241. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13242. this.workStudent[i].push({
  13243. works: b[j].content,
  13244. sName: b[j].name,
  13245. score: b[j].score,
  13246. img: b[j].img,
  13247. type: 0,
  13248. time: b[j].time,
  13249. userid: b[j].userid,
  13250. wid: b[j].id,
  13251. });
  13252. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13253. this.workStudent[i].push({
  13254. works: b[j].content,
  13255. sName: b[j].name,
  13256. score: b[j].score,
  13257. img: b[j].img,
  13258. type: 0,
  13259. time: b[j].time,
  13260. userid: b[j].userid,
  13261. wid: b[j].id,
  13262. });
  13263. }
  13264. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13265. this.workStudent[i].push({
  13266. works: b[j].content,
  13267. sName: b[j].name,
  13268. score: b[j].score,
  13269. img: b[j].img,
  13270. type: 2,
  13271. time: b[j].time,
  13272. userid: b[j].userid,
  13273. wid: b[j].id,
  13274. });
  13275. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13276. //问卷
  13277. this.workStudent[i].push({
  13278. works: b[j].content,
  13279. sName: b[j].name,
  13280. score: b[j].score,
  13281. img: b[j].img,
  13282. type: 2,
  13283. time: b[j].time,
  13284. userid: b[j].userid,
  13285. wid: b[j].id,
  13286. });
  13287. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13288. //选择题
  13289. this.workStudent[i].push({
  13290. works: b[j].content,
  13291. sName: b[j].name,
  13292. score: b[j].score,
  13293. img: b[j].img,
  13294. type: 8,
  13295. time: b[j].time,
  13296. userid: b[j].userid,
  13297. wid: b[j].id,
  13298. });
  13299. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13300. //选择题
  13301. this.workStudent[i].push({
  13302. works: b[j].content,
  13303. sName: b[j].name,
  13304. score: b[j].score,
  13305. img: b[j].img,
  13306. type: 9,
  13307. time: b[j].time,
  13308. userid: b[j].userid,
  13309. wid: b[j].id,
  13310. });
  13311. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13312. //选择题
  13313. this.workStudent[i].push({
  13314. works: b[j].content,
  13315. sName: b[j].name,
  13316. score: b[j].score,
  13317. img: b[j].img,
  13318. type: 10,
  13319. time: b[j].time,
  13320. userid: b[j].userid,
  13321. wid: b[j].id,
  13322. });
  13323. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13324. //选择题
  13325. this.workStudent[i].push({
  13326. works: b[j].content,
  13327. sName: b[j].name,
  13328. score: b[j].score,
  13329. img: b[j].img,
  13330. type: 13,
  13331. time: b[j].time,
  13332. userid: b[j].userid,
  13333. wid: b[j].id,
  13334. });
  13335. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  13336. //选择题
  13337. this.workStudent[i].push({
  13338. works: b[j].content,
  13339. sName: b[j].name,
  13340. score: b[j].score,
  13341. img: b[j].img,
  13342. type: 12,
  13343. time: b[j].time,
  13344. userid: b[j].userid,
  13345. wid: b[j].id,
  13346. });
  13347. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  13348. //选择题
  13349. this.workStudent[i].push({
  13350. works: b[j].content,
  13351. sName: b[j].name,
  13352. score: b[j].score,
  13353. img: b[j].img,
  13354. type: 12,
  13355. time: b[j].time,
  13356. userid: b[j].userid,
  13357. wid: b[j].id,
  13358. });
  13359. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  13360. //选择题
  13361. this.workStudent[i].push({
  13362. works: b[j].content,
  13363. sName: b[j].name,
  13364. score: b[j].score,
  13365. img: b[j].img,
  13366. type: 15,
  13367. time: b[j].time,
  13368. userid: b[j].userid,
  13369. wid: b[j].id,
  13370. });
  13371. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  13372. //英语写作
  13373. this.workStudent[i].push({
  13374. works: b[j].content,
  13375. sName: b[j].name,
  13376. score: b[j].score,
  13377. img: b[j].img,
  13378. type: 16,
  13379. time: b[j].time,
  13380. userid: b[j].userid,
  13381. wid: b[j].id,
  13382. aiCode: b[j].aiCode,
  13383. teacherCode: b[j].teacherCode
  13384. });
  13385. }
  13386. }
  13387. }
  13388. }
  13389. })
  13390. .catch((err) => {
  13391. console.error(err);
  13392. });
  13393. },
  13394. openVideo(w) {
  13395. this.videoDetail = {};
  13396. this.playerOptions1.sources[0].src = w.works;
  13397. this.videoDetail = this.playerOptions1;
  13398. this.videoVisible = true;
  13399. },
  13400. isLikes(wid, uid, t, c, isLikes) {
  13401. if (isLikes == false) {
  13402. let params = [
  13403. {
  13404. wid: wid,
  13405. lid: uid,
  13406. t: t,
  13407. c: c,
  13408. },
  13409. ];
  13410. this.ajax
  13411. .post(this.$store.state.api + "insertComment", params)
  13412. .then((res) => {
  13413. this.$message({
  13414. message: "点赞成功",
  13415. type: "success",
  13416. });
  13417. this.selectSWorks();
  13418. this.selectStudent();
  13419. })
  13420. .catch((err) => {
  13421. this.$message.error("点赞失败");
  13422. console.error(err);
  13423. });
  13424. } else {
  13425. let params = {
  13426. wid: wid,
  13427. lid: uid,
  13428. type: t,
  13429. };
  13430. this.ajax
  13431. .get(this.$store.state.api + "deleteComment", params)
  13432. .then((res) => {
  13433. this.$message({
  13434. message: "取消点赞成功",
  13435. type: "success",
  13436. });
  13437. this.selectSWorks();
  13438. this.selectStudent();
  13439. })
  13440. .catch((err) => {
  13441. console.error(err);
  13442. });
  13443. }
  13444. },
  13445. deleteComment(wid) {
  13446. this.$confirm("确定删除此评论吗?", "提示", {
  13447. confirmButtonText: "确定",
  13448. cancelButtonText: "取消",
  13449. type: "warning",
  13450. })
  13451. .then(() => {
  13452. let params = {
  13453. id: wid,
  13454. };
  13455. this.ajax
  13456. .get(this.$store.state.api + "deleteComment2", params)
  13457. .then((res) => {
  13458. this.$message({
  13459. message: "删除评论成功",
  13460. type: "success",
  13461. });
  13462. this.selectSWorks();
  13463. this.selectStudent();
  13464. })
  13465. .catch((err) => {
  13466. console.error(err);
  13467. });
  13468. })
  13469. .catch(() => {});
  13470. },
  13471. commentOther(w, toolIndex, wIndex, gindex, gid) {
  13472. this.commentIndexJson = {
  13473. toolIndex: toolIndex,
  13474. wIndex: wIndex,
  13475. gindex: gindex,
  13476. gid: gid,
  13477. };
  13478. this.commentDetail = [];
  13479. this.commentDialogVisible = true;
  13480. this.commentDetail = w;
  13481. if (w.works && w.type == 1) {
  13482. this.pptImgUrl = "";
  13483. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13484. if (
  13485. a.indexOf(
  13486. w.works
  13487. .split(".")
  13488. [w.works.split(".").length - 1].toLocaleUpperCase()
  13489. ) != -1
  13490. ) {
  13491. this.pptImgUrl =
  13492. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(w.works);
  13493. this.showPDF = false;
  13494. } else if (
  13495. w.works
  13496. .split(".")
  13497. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13498. ) {
  13499. this.pptImgUrl = w.works;
  13500. this.showPDF = true;
  13501. }
  13502. } else if (w.works && w.type == 3) {
  13503. this.videoDetail = {};
  13504. this.playerOptions1.sources[0].src = w.works;
  13505. this.videoDetail = this.playerOptions1;
  13506. // this.videoVisible = true;
  13507. } else if (w.works && w.type == 4) {
  13508. this.eScore = JSON.parse(w.works);
  13509. this.rateJson =
  13510. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13511. this.taskCount
  13512. ].toolChoose[toolIndex].rateJson;
  13513. } else if (w.works && w.type == 10) {
  13514. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  13515. } else if (w.works && w.type == 13) {
  13516. this.wordJson =
  13517. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13518. this.taskCount
  13519. ].toolChoose[toolIndex].wordJson;
  13520. }
  13521. },
  13522. openScore(w) {
  13523. this.wScore = 0;
  13524. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  13525. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  13526. this.commentDetail = [];
  13527. this.dialogVisibleScore = true;
  13528. this.commentDetail = w;
  13529. if (w.works && w.type == 1) {
  13530. this.pptImgUrl = "";
  13531. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13532. if (
  13533. a.indexOf(
  13534. w.works
  13535. .split(".")
  13536. [w.works.split(".").length - 1].toLocaleUpperCase()
  13537. ) != -1
  13538. ) {
  13539. this.pptImgUrl =
  13540. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(w.works);
  13541. this.showPDF = false;
  13542. } else if (
  13543. w.works
  13544. .split(".")
  13545. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13546. ) {
  13547. this.pptImgUrl = w.works;
  13548. this.showPDF = true;
  13549. }
  13550. } else if (w.works && w.type == 3) {
  13551. this.videoDetail = {};
  13552. this.playerOptions1.sources[0].src = w.works;
  13553. this.videoDetail = this.playerOptions1;
  13554. }
  13555. },
  13556. addComment(wid, uid, t) {
  13557. if (this.commentText == "") {
  13558. this.$message.error("请输入评论");
  13559. return;
  13560. }
  13561. let params2 = [
  13562. {
  13563. wid: wid,
  13564. lid: uid,
  13565. t: t,
  13566. },
  13567. ];
  13568. this.ajax
  13569. .post(this.$store.state.api + "getComment", params2)
  13570. .then((res) => {
  13571. if (res.data[0].length > 0) {
  13572. this.$message.error("一个作业只能评论一条");
  13573. } else {
  13574. let params = [
  13575. {
  13576. wid: wid,
  13577. lid: uid,
  13578. t: t,
  13579. c: this.commentText,
  13580. },
  13581. ];
  13582. this.ajax
  13583. .post(this.$store.state.api + "insertComment", params)
  13584. .then((res) => {
  13585. this.$message({
  13586. message: "评论成功",
  13587. type: "success",
  13588. });
  13589. this.commentText = "";
  13590. this.selectSWorks();
  13591. this.selectStudent();
  13592. })
  13593. .catch((err) => {
  13594. this.$message.error("评论失败");
  13595. console.error(err);
  13596. });
  13597. }
  13598. })
  13599. .catch((err) => {
  13600. // this.$message.error("评论失败");
  13601. console.error(err);
  13602. });
  13603. },
  13604. scoreWork(wid) {
  13605. if (this.wScore == 0) {
  13606. this.$message.error("请评分");
  13607. return;
  13608. }
  13609. let params = [
  13610. {
  13611. wid: wid,
  13612. score: JSON.stringify({
  13613. wScore: this.wScore,
  13614. detail: this.scoreDetail,
  13615. }),
  13616. },
  13617. ];
  13618. this.ajax
  13619. .post(this.$store.state.api + "scoreWork", params)
  13620. .then((res) => {
  13621. this.$message({
  13622. message: "评分成功",
  13623. type: "success",
  13624. });
  13625. this.wScore = 0;
  13626. this.scoreDetail = "";
  13627. this.dialogVisibleScore = false;
  13628. this.selectSWorks();
  13629. this.selectStudent();
  13630. })
  13631. .catch((err) => {
  13632. this.$message.error("评分失败");
  13633. console.error(err);
  13634. });
  13635. },
  13636. openXz(w, i) {
  13637. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  13638. .taskJson[this.taskCount].toolChoose[i].selectJson
  13639. ? JSON.parse(
  13640. JSON.stringify(
  13641. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13642. this.taskCount
  13643. ].toolChoose[i].selectJson
  13644. )
  13645. )
  13646. : { url: "", select: [], answer: [] };
  13647. var a = w.works.split(",");
  13648. for (var k = 0; k < a.length; k++) {
  13649. a[k] = parseInt(a[k]);
  13650. }
  13651. this.selectAnswer = { answer: a, stu: w.sName };
  13652. this.isSelect = true;
  13653. this.dialogVisibleSelect = true;
  13654. },
  13655. openSen(w, i) {
  13656. this.sentenceList1 = JSON.parse(w.works);
  13657. this.sentenceList1.stuName = w.sName;
  13658. this.dialogVisibleSentence1 = true;
  13659. },
  13660. openPj(w, toolindex) {
  13661. this.isStar = true;
  13662. this.eScore = JSON.parse(w);
  13663. this.rateJson =
  13664. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13665. this.taskCount
  13666. ].toolChoose[toolindex].rateJson;
  13667. this.studentEvalDialogVisible = true;
  13668. },
  13669. openEnglishEva(id,i){
  13670. let params = {
  13671. wid: id
  13672. };
  13673. this.ajax
  13674. .get(this.$store.state.api + "selectEngWork", params)
  13675. .then((res) => {
  13676. this.evaEngJson.message = res.data[0][0];
  13677. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  13678. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  13679. .toolChoose[i].englishList;
  13680. this.engEvaDialogVisible = true;
  13681. })
  13682. .catch((err) => {
  13683. console.error(err);
  13684. });
  13685. },
  13686. deleteWorks(id) {
  13687. this.$confirm("确定删除此作业吗?", "提示", {
  13688. confirmButtonText: "确定",
  13689. cancelButtonText: "取消",
  13690. type: "warning",
  13691. })
  13692. .then(() => {
  13693. let params = [
  13694. {
  13695. id: id,
  13696. },
  13697. ];
  13698. this.ajax
  13699. .post(this.$store.state.api + "deleteCourseWork", params)
  13700. .then((res) => {
  13701. this.$message({
  13702. message: "删除成功",
  13703. type: "success",
  13704. });
  13705. this.selectStudent();
  13706. this.selectSWorks();
  13707. this.selectSLook();
  13708. })
  13709. .catch((err) => {
  13710. this.$message.error("网络异常");
  13711. console.error(err);
  13712. });
  13713. })
  13714. .catch(() => {});
  13715. },
  13716. selectSWorks(gindex) {
  13717. //教师查看全部作业
  13718. let params = {
  13719. cid: this.id,
  13720. s: this.courseType,
  13721. t: this.taskCount,
  13722. };
  13723. this.ajax
  13724. .get(this.$store.state.api + "selectSWorks", params)
  13725. .then((res) => {
  13726. var a =
  13727. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13728. this.taskCount
  13729. ].toolChoose;
  13730. var b = res.data[0];
  13731. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13732. var y = [
  13733. "AVI",
  13734. "NAVI",
  13735. "MPEG",
  13736. "ASF",
  13737. "MOV",
  13738. "WMV",
  13739. "3GP",
  13740. "RM",
  13741. "RMVB",
  13742. "FLV",
  13743. "F4V",
  13744. "H.264",
  13745. "H.265",
  13746. "REAL VIDEO",
  13747. "MKV",
  13748. "WebM",
  13749. "HDDVD",
  13750. "MP4",
  13751. "MPG",
  13752. "M4V",
  13753. "MGV",
  13754. "OGV",
  13755. "QTM",
  13756. "STR",
  13757. "AMC",
  13758. "DVX",
  13759. "EVO",
  13760. "DAT",
  13761. "OGG",
  13762. "OGM",
  13763. ];
  13764. var d = res.data[1];
  13765. var e = res.data[2];
  13766. var f = res.data[3];
  13767. let _worksStudent = [];
  13768. var _worksStudent2 = [];
  13769. for (var i = 0; i < a.length; i++) {
  13770. _worksStudent[i] = [];
  13771. _worksStudent2[i] = [];
  13772. if (
  13773. !this.isCloseList[i] ||
  13774. this.isCloseList[i].isClose == undefined
  13775. ) {
  13776. this.isCloseList[i] = { isClose: 0 };
  13777. }
  13778. this.groupStudent[i] = [];
  13779. this.groupStudentUid[i] = [];
  13780. if (this.isGroup) {
  13781. for (
  13782. var groupI = 0;
  13783. groupI < this.courseGroup.group.length;
  13784. groupI++
  13785. ) {
  13786. this.courseGroup.group[groupI].works[i] = [];
  13787. }
  13788. }
  13789. this.isWorksS[i] = [];
  13790. this.checkJson[i] = [];
  13791. if (a[i].tool[0] == 49) {
  13792. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  13793. this.groupStudent[i][gA] = [];
  13794. this.groupStudentUid[i][gA] = [];
  13795. _worksStudent[i][gA] = [];
  13796. _worksStudent2[i][gA] = [];
  13797. this.isCloseList[i][gA] = [];
  13798. for (var g = 0; g < f.length; g++) {
  13799. if (
  13800. f[g].ttype == 2 &&
  13801. this.tcid &&
  13802. this.arrayToArray(
  13803. f[g].classid.split(","),
  13804. this.tcid.split(",")
  13805. ).length == 0
  13806. ) {
  13807. continue;
  13808. }
  13809. if (gA == f[g].group && f[g].tool == i) {
  13810. this.groupStudent[i][gA].push(f[g]);
  13811. this.groupStudentUid[i][gA].push(f[g].userid);
  13812. }
  13813. }
  13814. }
  13815. this.$forceUpdate();
  13816. }
  13817. for (var j = 0; j < b.length; j++) {
  13818. if (
  13819. b[j].ttype == 2 &&
  13820. this.tcid &&
  13821. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  13822. .length == 0
  13823. ) {
  13824. continue;
  13825. }
  13826. var likesCount = 0;
  13827. var commentCount = 0;
  13828. var isLikes = false;
  13829. var commentJson = [];
  13830. var data = b[j];
  13831. if (i == b[j].tool) {
  13832. if (data.type == 2 && a[i].tool[0] == 4) {
  13833. // if(JSON.parse(data.content)[0].anwer){
  13834. var checkL =
  13835. JSON.parse(data.content)[0].anwer instanceof Array
  13836. ? JSON.parse(data.content)[0].anwer
  13837. : JSON.parse(data.content)[0].anwer.split(",");
  13838. for (var z = 0; z < checkL.length; z++) {
  13839. if (!this.checkJson[i][z]) {
  13840. this.checkJson[i].push({
  13841. checkCount: [],
  13842. checkPerson: [],
  13843. rightPerson: [],
  13844. });
  13845. }
  13846. if (!this.checkJson[i][z].checkCount.length) {
  13847. this.checkJson[i][z].checkCount = [];
  13848. let _askItemCount = JSON.parse(data.content)[0].askJson
  13849. .askJson[z].askItem;
  13850. for (var aic = 0; aic < _askItemCount; aic++) {
  13851. this.checkJson[i][z].checkCount.push(0);
  13852. }
  13853. }
  13854. if (checkL[z] instanceof Array) {
  13855. if (
  13856. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  13857. checkL[z].sort().join(",")
  13858. ) {
  13859. this.checkJson[i][z].rightPerson.push(data.name);
  13860. }
  13861. for (var q = 0; q < checkL[z].length; q++) {
  13862. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13863. ? this.checkJson[i][z].checkPerson[
  13864. parseInt(checkL[z][q])
  13865. ].push(data.name)
  13866. : (this.checkJson[i][z].checkPerson[
  13867. parseInt(checkL[z][q])
  13868. ] = [data.name]);
  13869. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13870. ? this.checkJson[i][z].checkCount[
  13871. parseInt(checkL[z][q])
  13872. ]++
  13873. : (this.checkJson[i][z].checkCount[
  13874. parseInt(checkL[z][q])
  13875. ] = 1);
  13876. }
  13877. } else {
  13878. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  13879. this.checkJson[i][z].rightPerson.push(data.name);
  13880. }
  13881. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13882. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13883. ? this.checkJson[i][z].checkPerson[
  13884. parseInt(checkL[z])
  13885. ].push(data.name)
  13886. : (this.checkJson[i][z].checkPerson[
  13887. parseInt(checkL[z])
  13888. ] = [data.name]);
  13889. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13890. ? this.checkJson[i][z].checkCount[
  13891. parseInt(checkL[z])
  13892. ]++
  13893. : (this.checkJson[i][z].checkCount[
  13894. parseInt(checkL[z])
  13895. ] = 1);
  13896. }
  13897. }
  13898. }
  13899. } else if (data.type == 8 && a[i].tool[0] == 45) {
  13900. var checkL = JSON.parse(data.content)[0].anwer;
  13901. for (var z = 0; z < checkL.length; z++) {
  13902. if (!this.checkJson[i][z]) {
  13903. this.checkJson[i].push({
  13904. checkCount: [],
  13905. checkPerson: [],
  13906. rightPerson: [],
  13907. });
  13908. }
  13909. if (!this.checkJson[i][z].checkCount.length) {
  13910. this.checkJson[i][z].checkCount = [];
  13911. let _askItemCount = JSON.parse(data.content)[0].testJson
  13912. .testJson[z].testItem;
  13913. for (var aic = 0; aic < _askItemCount; aic++) {
  13914. this.checkJson[i][z].checkCount.push(0);
  13915. }
  13916. }
  13917. if (checkL[z] instanceof Array) {
  13918. if (
  13919. JSON.parse(data.content)[0]
  13920. .testJson.testJson[z].answer.sort()
  13921. .join(",") == checkL[z].sort().join(",")
  13922. ) {
  13923. this.checkJson[i][z].rightPerson.push(data.name);
  13924. }
  13925. for (var q = 0; q < checkL[z].length; q++) {
  13926. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13927. ? this.checkJson[i][z].checkPerson[
  13928. parseInt(checkL[z][q])
  13929. ].push(data.name)
  13930. : (this.checkJson[i][z].checkPerson[
  13931. parseInt(checkL[z][q])
  13932. ] = [data.name]);
  13933. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13934. ? this.checkJson[i][z].checkCount[
  13935. parseInt(checkL[z][q])
  13936. ]++
  13937. : (this.checkJson[i][z].checkCount[
  13938. parseInt(checkL[z][q])
  13939. ] = 1);
  13940. }
  13941. } else {
  13942. if (
  13943. JSON.parse(data.content)[0].testJson.testJson[z]
  13944. .answer == checkL[z]
  13945. ) {
  13946. this.checkJson[i][z].rightPerson.push(data.name);
  13947. }
  13948. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13949. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13950. ? this.checkJson[i][z].checkPerson[
  13951. parseInt(checkL[z])
  13952. ].push(data.name)
  13953. : (this.checkJson[i][z].checkPerson[
  13954. parseInt(checkL[z])
  13955. ] = [data.name]);
  13956. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13957. ? this.checkJson[i][z].checkCount[
  13958. parseInt(checkL[z])
  13959. ]++
  13960. : (this.checkJson[i][z].checkCount[
  13961. parseInt(checkL[z])
  13962. ] = 1);
  13963. }
  13964. }
  13965. }
  13966. } else if (data.type == 9 && a[i].tool[0] == 47) {
  13967. var checkL = JSON.parse(data.content);
  13968. for (var z = 0; z < checkL.length; z++) {
  13969. if (!this.checkJson[i][z]) {
  13970. this.checkJson[i].push({
  13971. checkCount: [],
  13972. checkPerson: [],
  13973. rightPerson: [],
  13974. });
  13975. }
  13976. this.checkJson[i][z].checkPerson.push(data.name);
  13977. if (
  13978. checkL[z].chooseSenList.toString() ==
  13979. checkL[z].rightAnswer.toString()
  13980. ) {
  13981. this.checkJson[i][z].rightPerson.push(data.name);
  13982. }
  13983. }
  13984. }
  13985. for (var k = 0; k < d.length; k++) {
  13986. //点赞
  13987. if (d[k].workId == b[j].id) {
  13988. likesCount++;
  13989. if (d[k].likesId == this.userid) {
  13990. isLikes = true;
  13991. }
  13992. }
  13993. }
  13994. for (var l = 0; l < e.length; l++) {
  13995. //评论
  13996. if (e[l].workId == b[j].id) {
  13997. if (e[l].comment != "") {
  13998. commentCount++;
  13999. commentJson.push({
  14000. commentText: e[l].comment,
  14001. commentTime: e[l].commentTime,
  14002. commentPeople: e[l].commentPeople,
  14003. userid: e[l].userid,
  14004. wid: e[l].id,
  14005. });
  14006. }
  14007. }
  14008. }
  14009. if (
  14010. (b[j].type == 1 ||
  14011. b[j].type == 4 ||
  14012. b[j].type == 5 ||
  14013. b[j].type == 6 ||
  14014. b[j].type == 12 ||
  14015. b[j].type == 7) &&
  14016. a[i].tool[0] != 15 &&
  14017. a[i].tool[0] != 4 &&
  14018. a[i].tool[0] != 45 &&
  14019. a[i].tool[0] != 50 &&
  14020. a[i].tool[0] != 32 &&
  14021. a[i].tool[0] != 57 &&
  14022. a[i].tool[0] != 52
  14023. ) {
  14024. if (
  14025. c.indexOf(
  14026. b[j].content
  14027. .split(".")
  14028. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14029. ) != -1 &&
  14030. a[i].tool[0] == 16 &&
  14031. b[j].atool != 50
  14032. ) {
  14033. let _works = {
  14034. userid: b[j].userid,
  14035. ateacher: b[j].ateacher,
  14036. wid: b[j].id,
  14037. works: b[j].content,
  14038. sName: b[j].name,
  14039. type: 1,
  14040. time: b[j].time,
  14041. score: b[j].score,
  14042. img: b[j].img,
  14043. likesCount: likesCount,
  14044. commentCount: commentCount,
  14045. isLikes: isLikes,
  14046. commentJson: commentJson,
  14047. };
  14048. if (this.isGroup) {
  14049. let isGw = 1;
  14050. for (
  14051. var groupI = 0;
  14052. groupI < this.courseGroup.group.length;
  14053. groupI++
  14054. ) {
  14055. let gid = this.courseGroup.group[groupI].id;
  14056. if (
  14057. this.courseGroupStudentUid[gid].indexOf(
  14058. b[j].userid
  14059. ) != -1
  14060. ) {
  14061. isGw = 2;
  14062. this.courseGroup.group[groupI].works[i].push(_works);
  14063. break;
  14064. }
  14065. }
  14066. if (isGw == 1) {
  14067. _worksStudent[i].push(_works);
  14068. }
  14069. } else {
  14070. _worksStudent[i].push(_works);
  14071. }
  14072. _worksStudent2[i].push(_works);
  14073. this.isWorksS[i].push({
  14074. uid: b[j].userid,
  14075. sName: b[j].name,
  14076. });
  14077. } else if (
  14078. y.indexOf(
  14079. b[j].content
  14080. .split(".")
  14081. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14082. ) != -1 &&
  14083. a[i].tool[0] == 16 &&
  14084. b[j].atool != 50
  14085. ) {
  14086. let _works = {
  14087. userid: b[j].userid,
  14088. ateacher: b[j].ateacher,
  14089. wid: b[j].id,
  14090. works: b[j].content,
  14091. sName: b[j].name,
  14092. type: 3,
  14093. time: b[j].time,
  14094. score: b[j].score,
  14095. img: b[j].img,
  14096. likesCount: likesCount,
  14097. commentCount: commentCount,
  14098. isLikes: isLikes,
  14099. commentJson: commentJson,
  14100. };
  14101. if (this.isGroup) {
  14102. let isGw = 1;
  14103. for (
  14104. var groupI = 0;
  14105. groupI < this.courseGroup.group.length;
  14106. groupI++
  14107. ) {
  14108. let gid = this.courseGroup.group[groupI].id;
  14109. if (
  14110. this.courseGroupStudentUid[gid].indexOf(
  14111. b[j].userid
  14112. ) != -1
  14113. ) {
  14114. isGw = 2;
  14115. this.courseGroup.group[groupI].works[i].push(_works);
  14116. break;
  14117. }
  14118. }
  14119. if (isGw == 1) {
  14120. _worksStudent[i].push(_works);
  14121. }
  14122. } else {
  14123. _worksStudent[i].push(_works);
  14124. }
  14125. _worksStudent2[i].push(_works);
  14126. this.isWorksS[i].push({
  14127. uid: b[j].userid,
  14128. sName: b[j].name,
  14129. });
  14130. } else if (b[j].type == 6 && b[j].atool != 50) {
  14131. let _works = {
  14132. userid: b[j].userid,
  14133. ateacher: b[j].ateacher,
  14134. wid: b[j].id,
  14135. works: b[j].content,
  14136. sName: b[j].name,
  14137. type: 4,
  14138. time: b[j].time,
  14139. score: b[j].score,
  14140. img: b[j].img,
  14141. likesCount: likesCount,
  14142. commentCount: commentCount,
  14143. isLikes: isLikes,
  14144. commentJson: commentJson,
  14145. };
  14146. _worksStudent[i].push(_works);
  14147. _worksStudent2[i].push(_works);
  14148. this.isWorksS[i].push({
  14149. uid: b[j].userid,
  14150. sName: b[j].name,
  14151. });
  14152. } else if (b[j].type == 7 && b[j].atool != 50) {
  14153. let _work = {
  14154. userid: b[j].userid,
  14155. ateacher: b[j].ateacher,
  14156. wid: b[j].id,
  14157. works: b[j].content,
  14158. sName: b[j].name,
  14159. type: 5,
  14160. time: b[j].time,
  14161. score: b[j].score,
  14162. img: b[j].img,
  14163. likesCount: likesCount,
  14164. commentCount: commentCount,
  14165. isLikes: isLikes,
  14166. commentJson: commentJson,
  14167. };
  14168. _worksStudent[i].push(_work);
  14169. _worksStudent2[i].push(_work);
  14170. this.isWorksS[i].push({
  14171. uid: b[j].userid,
  14172. sName: b[j].name,
  14173. });
  14174. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14175. let _works = {
  14176. userid: b[j].userid,
  14177. ateacher: b[j].ateacher,
  14178. wid: b[j].id,
  14179. works: b[j].content,
  14180. sName: b[j].name,
  14181. type: 12,
  14182. time: b[j].time,
  14183. score: b[j].score,
  14184. img: b[j].img,
  14185. likesCount: likesCount,
  14186. commentCount: commentCount,
  14187. isLikes: isLikes,
  14188. commentJson: commentJson,
  14189. };
  14190. if (this.isGroup) {
  14191. let isGw = 1;
  14192. for (
  14193. var groupI = 0;
  14194. groupI < this.courseGroup.group.length;
  14195. groupI++
  14196. ) {
  14197. let gid = this.courseGroup.group[groupI].id;
  14198. if (
  14199. this.courseGroupStudentUid[gid].indexOf(
  14200. b[j].userid
  14201. ) != -1
  14202. ) {
  14203. isGw = 2;
  14204. this.courseGroup.group[groupI].works[i].push(_works);
  14205. break;
  14206. }
  14207. }
  14208. if (isGw == 1) {
  14209. _worksStudent[i].push(_works);
  14210. }
  14211. } else {
  14212. _worksStudent[i].push(_works);
  14213. }
  14214. _worksStudent2[i].push(_works);
  14215. this.isWorksS[i].push({
  14216. uid: b[j].userid,
  14217. sName: b[j].name,
  14218. });
  14219. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14220. let _works = {
  14221. userid: b[j].userid,
  14222. ateacher: b[j].ateacher,
  14223. wid: b[j].id,
  14224. works: b[j].content,
  14225. sName: b[j].name,
  14226. type: 0,
  14227. time: b[j].time,
  14228. score: b[j].score,
  14229. img: b[j].img,
  14230. likesCount: likesCount,
  14231. commentCount: commentCount,
  14232. isLikes: isLikes,
  14233. commentJson: commentJson,
  14234. };
  14235. if (this.isGroup) {
  14236. let isGw = 1;
  14237. for (
  14238. var groupI = 0;
  14239. groupI < this.courseGroup.group.length;
  14240. groupI++
  14241. ) {
  14242. let gid = this.courseGroup.group[groupI].id;
  14243. if (
  14244. this.courseGroupStudentUid[gid].indexOf(
  14245. b[j].userid
  14246. ) != -1
  14247. ) {
  14248. isGw = 2;
  14249. this.courseGroup.group[groupI].works[i].push(_works);
  14250. break;
  14251. }
  14252. }
  14253. if (isGw == 1) {
  14254. _worksStudent[i].push(_works);
  14255. }
  14256. } else {
  14257. _worksStudent[i].push(_works);
  14258. }
  14259. _worksStudent2[i].push(_works);
  14260. this.isWorksS[i].push({
  14261. uid: b[j].userid,
  14262. sName: b[j].name,
  14263. });
  14264. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14265. let _works = {
  14266. userid: b[j].userid,
  14267. ateacher: b[j].ateacher,
  14268. wid: b[j].id,
  14269. works: b[j].content,
  14270. sName: b[j].name,
  14271. type: 0,
  14272. time: b[j].time,
  14273. score: b[j].score,
  14274. img: b[j].img,
  14275. likesCount: likesCount,
  14276. commentCount: commentCount,
  14277. isLikes: isLikes,
  14278. commentJson: commentJson,
  14279. };
  14280. if (this.isGroup) {
  14281. let isGw = 1;
  14282. for (
  14283. var groupI = 0;
  14284. groupI < this.courseGroup.group.length;
  14285. groupI++
  14286. ) {
  14287. let gid = this.courseGroup.group[groupI].id;
  14288. if (
  14289. this.courseGroupStudentUid[gid].indexOf(
  14290. b[j].userid
  14291. ) != -1
  14292. ) {
  14293. isGw = 2;
  14294. this.courseGroup.group[groupI].works[i].push(_works);
  14295. break;
  14296. }
  14297. }
  14298. if (isGw == 1) {
  14299. _worksStudent[i].push(_works);
  14300. }
  14301. } else {
  14302. _worksStudent[i].push(_works);
  14303. }
  14304. _worksStudent2[i].push(_works);
  14305. this.isWorksS[i].push({
  14306. uid: b[j].userid,
  14307. sName: b[j].name,
  14308. });
  14309. }
  14310. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14311. let _works = {
  14312. userid: b[j].userid,
  14313. ateacher: b[j].ateacher,
  14314. wid: b[j].id,
  14315. works: b[j].content,
  14316. sName: b[j].name,
  14317. type: 2,
  14318. time: b[j].time,
  14319. score: b[j].score,
  14320. img: b[j].img,
  14321. likesCount: likesCount,
  14322. commentCount: commentCount,
  14323. isLikes: isLikes,
  14324. commentJson: commentJson,
  14325. };
  14326. if (this.isGroup) {
  14327. let isGw = 1;
  14328. for (
  14329. var groupI = 0;
  14330. groupI < this.courseGroup.group.length;
  14331. groupI++
  14332. ) {
  14333. let gid = this.courseGroup.group[groupI].id;
  14334. if (
  14335. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  14336. -1
  14337. ) {
  14338. isGw = 2;
  14339. this.courseGroup.group[groupI].works[i].push(_works);
  14340. break;
  14341. }
  14342. }
  14343. if (isGw == 1) {
  14344. _worksStudent[i].push(_works);
  14345. }
  14346. } else {
  14347. _worksStudent[i].push(_works);
  14348. }
  14349. _worksStudent2[i].push(_works);
  14350. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14351. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14352. //问卷
  14353. let _work = {
  14354. userid: b[j].userid,
  14355. ateacher: b[j].ateacher,
  14356. wid: b[j].id,
  14357. works: b[j].content,
  14358. sName: b[j].name,
  14359. type: 2,
  14360. time: b[j].time,
  14361. score: b[j].score,
  14362. img: b[j].img,
  14363. likesCount: likesCount,
  14364. commentCount: commentCount,
  14365. isLikes: isLikes,
  14366. commentJson: commentJson,
  14367. };
  14368. _worksStudent[i].push(_work);
  14369. _worksStudent2[i].push(_work);
  14370. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14371. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14372. //选择题
  14373. let _work = {
  14374. userid: b[j].userid,
  14375. ateacher: b[j].ateacher,
  14376. wid: b[j].id,
  14377. works: b[j].content,
  14378. sName: b[j].name,
  14379. type: 8,
  14380. time: b[j].time,
  14381. score: b[j].score,
  14382. img: b[j].img,
  14383. likesCount: likesCount,
  14384. commentCount: commentCount,
  14385. isLikes: isLikes,
  14386. commentJson: commentJson,
  14387. };
  14388. _worksStudent[i].push(_work);
  14389. _worksStudent2[i].push(_work);
  14390. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14391. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14392. //选择题
  14393. let _work = {
  14394. userid: b[j].userid,
  14395. ateacher: b[j].ateacher,
  14396. wid: b[j].id,
  14397. works: b[j].content,
  14398. sName: b[j].name,
  14399. type: 9,
  14400. time: b[j].time,
  14401. score: b[j].score,
  14402. img: b[j].img,
  14403. likesCount: likesCount,
  14404. commentCount: commentCount,
  14405. isLikes: isLikes,
  14406. commentJson: commentJson,
  14407. };
  14408. _worksStudent[i].push(_work);
  14409. _worksStudent2[i].push(_work);
  14410. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14411. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14412. //选择题
  14413. let _work = {
  14414. userid: b[j].userid,
  14415. ateacher: b[j].ateacher,
  14416. wid: b[j].id,
  14417. works: b[j].content,
  14418. sName: b[j].name,
  14419. type: 10,
  14420. time: b[j].time,
  14421. score: b[j].score,
  14422. img: b[j].img,
  14423. likesCount: likesCount,
  14424. commentCount: commentCount,
  14425. isLikes: isLikes,
  14426. commentJson: commentJson,
  14427. };
  14428. _worksStudent[i].push(_work);
  14429. _worksStudent2[i].push(_work);
  14430. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14431. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14432. //选择题
  14433. let _work = {
  14434. userid: b[j].userid,
  14435. ateacher: b[j].ateacher,
  14436. wid: b[j].id,
  14437. works: b[j].content,
  14438. sName: b[j].name,
  14439. type: 13,
  14440. time: b[j].time,
  14441. score: b[j].score,
  14442. img: b[j].img,
  14443. likesCount: likesCount,
  14444. commentCount: commentCount,
  14445. isLikes: isLikes,
  14446. commentJson: commentJson,
  14447. };
  14448. _worksStudent[i].push(_work);
  14449. _worksStudent2[i].push(_work);
  14450. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14451. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14452. //选择题
  14453. let _work = {
  14454. userid: b[j].userid,
  14455. ateacher: b[j].ateacher,
  14456. wid: b[j].id,
  14457. works: b[j].content,
  14458. sName: b[j].name,
  14459. type: 16,
  14460. time: b[j].time,
  14461. score: b[j].score,
  14462. img: b[j].img,
  14463. likesCount: likesCount,
  14464. commentCount: commentCount,
  14465. isLikes: isLikes,
  14466. commentJson: commentJson,
  14467. aiCode: b[j].aiCode,
  14468. teacherCode: b[j].teacherCode
  14469. };
  14470. _worksStudent[i].push(_work);
  14471. _worksStudent2[i].push(_work);
  14472. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14473. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  14474. let _gindex = JSON.parse(b[j].content);
  14475. if (
  14476. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  14477. b[j].userid
  14478. ) != -1
  14479. ) {
  14480. let _work = {
  14481. userid: b[j].userid,
  14482. ateacher: b[j].ateacher,
  14483. wid: b[j].id,
  14484. works: _gindex.url,
  14485. sName: b[j].name,
  14486. type: _gindex.type,
  14487. time: b[j].time,
  14488. score: b[j].score,
  14489. img: b[j].img,
  14490. likesCount: likesCount,
  14491. commentCount: commentCount,
  14492. isLikes: isLikes,
  14493. commentJson: commentJson,
  14494. };
  14495. _worksStudent[i][_gindex.groupIndex].push(_work);
  14496. _worksStudent2[i][_gindex.groupIndex].push(_work);
  14497. }
  14498. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14499. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  14500. let _work = {
  14501. userid: b[j].userid,
  14502. ateacher: b[j].ateacher,
  14503. wid: b[j].id,
  14504. works: b[j].content,
  14505. sName: b[j].name ? b[j].name : b[j].userid,
  14506. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  14507. time: b[j].time,
  14508. score: b[j].score,
  14509. img: b[j].img,
  14510. likesCount: likesCount,
  14511. commentCount: commentCount,
  14512. isLikes: isLikes,
  14513. commentJson: commentJson,
  14514. };
  14515. _worksStudent[i].push(_work);
  14516. _worksStudent2[i].push(_work);
  14517. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14518. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  14519. let _work = {
  14520. userid: b[j].userid,
  14521. ateacher: b[j].ateacher,
  14522. wid: b[j].id,
  14523. works: b[j].content,
  14524. sName: b[j].name ? b[j].name : b[j].userid,
  14525. type: 12,
  14526. time: b[j].time,
  14527. score: b[j].score,
  14528. img: b[j].img,
  14529. likesCount: likesCount,
  14530. commentCount: commentCount,
  14531. isLikes: isLikes,
  14532. commentJson: commentJson,
  14533. };
  14534. _worksStudent[i].push(_work);
  14535. _worksStudent2[i].push(_work);
  14536. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14537. } else if (
  14538. a[i].tool[0] == 57 &&
  14539. b[j].atool == 57 &&
  14540. b[j].type == 12
  14541. ) {
  14542. let _work = {
  14543. userid: b[j].userid,
  14544. ateacher: b[j].ateacher,
  14545. wid: b[j].id,
  14546. works: b[j].content,
  14547. sName: b[j].name ? b[j].name : b[j].userid,
  14548. type: 12,
  14549. time: b[j].time,
  14550. score: b[j].score,
  14551. img: b[j].img,
  14552. likesCount: likesCount,
  14553. commentCount: commentCount,
  14554. isLikes: isLikes,
  14555. commentJson: commentJson,
  14556. };
  14557. _worksStudent[i].push(_work);
  14558. _worksStudent2[i].push(_work);
  14559. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14560. } else if (
  14561. a[i].tool[0] == 57 &&
  14562. b[j].atool == 57 &&
  14563. b[j].type == 15
  14564. ) {
  14565. let _work = {
  14566. userid: b[j].userid,
  14567. ateacher: b[j].ateacher,
  14568. wid: b[j].id,
  14569. works: b[j].content,
  14570. sName: b[j].name ? b[j].name : b[j].userid,
  14571. type: 15,
  14572. time: b[j].time,
  14573. score: b[j].score,
  14574. img: b[j].img,
  14575. likesCount: likesCount,
  14576. commentCount: commentCount,
  14577. isLikes: isLikes,
  14578. commentJson: commentJson,
  14579. };
  14580. _worksStudent[i].push(_work);
  14581. _worksStudent2[i].push(_work);
  14582. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14583. }
  14584. }
  14585. }
  14586. if (_worksStudent[i] && _worksStudent[i].length) {
  14587. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  14588. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14589. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14590. var scoreA = parseFloat(jscoreA);
  14591. var scoreB = parseFloat(jscoreB);
  14592. if (scoreA == scoreB) {
  14593. return b.likesCount - a.likesCount;
  14594. }
  14595. return scoreB - scoreA;
  14596. });
  14597. if (this.isGroup) {
  14598. for (
  14599. var groupI = 0;
  14600. groupI < this.courseGroup.group.length;
  14601. groupI++
  14602. ) {
  14603. this.courseGroup.group[groupI].works[i] =
  14604. this.courseGroup.group[groupI].works[i].sort(function (
  14605. a,
  14606. b
  14607. ) {
  14608. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14609. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14610. var scoreA = parseFloat(jscoreA);
  14611. var scoreB = parseFloat(jscoreB);
  14612. if (scoreA == scoreB) {
  14613. return b.likesCount - a.likesCount;
  14614. }
  14615. return scoreB - scoreA;
  14616. });
  14617. }
  14618. }
  14619. }
  14620. }
  14621. this.timeWorkList = _worksStudent2;
  14622. for (var i = 0; i < a.length; i++) {
  14623. for (var j = 0; j < b.length; j++) {
  14624. var data = b[j];
  14625. if (i == b[j].tool) {
  14626. if (data.type == 2 || data.type == 8) {
  14627. for (var z = 0; z < this.checkJson[i].length; z++) {
  14628. this.checkJson[i][z].checkPerent = [];
  14629. this.checkJson[i][z].right = Math.round(
  14630. (this.checkJson[i][z].rightPerson.length /
  14631. parseInt(_worksStudent[i].length)) *
  14632. 100
  14633. );
  14634. let aaaa = this.checkJson[i][z];
  14635. for (
  14636. var k = 0;
  14637. k < this.checkJson[i][z].checkCount.length;
  14638. k++
  14639. ) {
  14640. this.checkJson[i][z].checkPerent.push(
  14641. Math.round(
  14642. (this.checkJson[i][z].checkCount[k] /
  14643. parseInt(_worksStudent[i].length)) *
  14644. 100
  14645. )
  14646. );
  14647. }
  14648. }
  14649. } else if (data.type == 9) {
  14650. for (var z = 0; z < this.checkJson[i].length; z++) {
  14651. this.checkJson[i][z].checkPerent = [];
  14652. this.checkJson[i][z].right = Math.round(
  14653. (this.checkJson[i][z].rightPerson.length /
  14654. this.checkJson[i][z].checkPerson.length) *
  14655. 100
  14656. );
  14657. }
  14658. }
  14659. }
  14660. }
  14661. }
  14662. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  14663. this.joinGroup(gindex);
  14664. }
  14665. this.worksStudent = _worksStudent;
  14666. this.selectWorksStudent();
  14667. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  14668. this.$nextTick(()=>{
  14669. setTimeout(()=>{
  14670. setTimeout(()=>{
  14671. this.panToolHeight('tool-'+ci);
  14672. }, 500)
  14673. }, 0)
  14674. })
  14675. }
  14676. })
  14677. .catch((err) => {
  14678. console.error(err);
  14679. });
  14680. },
  14681. pngToWhiteBg(file) {
  14682. const _file = file;
  14683. let read = new FileReader();
  14684. read.readAsDataURL(file); // 文件转base64
  14685. return new Promise((resolve, reject) => {
  14686. read.onload = (e) => {
  14687. let img = new Image();
  14688. img.src = e.target.result;
  14689. img.onload = async () => {
  14690. // 生成canvas
  14691. let canvas = document.createElement("canvas");
  14692. let context = canvas.getContext("2d");
  14693. // 绘制图片到canvas上
  14694. canvas.width = img.width;
  14695. canvas.height = img.height;
  14696. // 在canvas绘制前填充白色背景
  14697. context.fillStyle = "#fff";
  14698. context.fillRect(0, 0, canvas.width, canvas.height);
  14699. context.drawImage(img, 0, 0);
  14700. let base64 = canvas.toDataURL(file["type"], 1);
  14701. let newFile = this.dataUrlToFile(base64, _file);
  14702. resolve(newFile);
  14703. };
  14704. };
  14705. });
  14706. },
  14707. dataUrlToFile(dataurl, file) {
  14708. let arr = dataurl.split(","),
  14709. mime = arr[0].match(/:(.*?);/)[1],
  14710. bstr = atob(arr[1]),
  14711. n = bstr.length,
  14712. u8arr = new Uint8Array(n);
  14713. while (n--) {
  14714. u8arr[n] = bstr.charCodeAt(n);
  14715. }
  14716. // return new Blob([u8arr], { type: mime });
  14717. return new File([new Blob([u8arr], { type: mime })], file.name, {
  14718. type: mime,
  14719. });
  14720. },
  14721. async beforeUpload1(event, type, i) {
  14722. // this.$message.success('进入上传')
  14723. var file = "";
  14724. if (type == 5) {
  14725. file = event;
  14726. } else {
  14727. file = event.target.files[0];
  14728. }
  14729. var credentials = {
  14730. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14731. secretAccessKey: "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",
  14732. }; //秘钥形式的登录上传
  14733. window.AWS.config.update(credentials);
  14734. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14735. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14736. var _this = this;
  14737. _this.progress = 0;
  14738. _this.proVisible = true;
  14739. _this.isFinishSize = 0;
  14740. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  14741. var b = [
  14742. "DOC",
  14743. "DOCX",
  14744. "DOCM",
  14745. "DOTM",
  14746. "DOTX",
  14747. "PPTX",
  14748. "PPSX",
  14749. "PPT",
  14750. "PPS",
  14751. "PPTM",
  14752. "POTM",
  14753. "PPAM",
  14754. "POTX",
  14755. "PPSM",
  14756. ];
  14757. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14758. var photoA = [
  14759. "BMP",
  14760. "GIF",
  14761. "PNG",
  14762. "JPGE",
  14763. "JPEG",
  14764. "JPG",
  14765. "TIF",
  14766. "PCX",
  14767. "TGA",
  14768. "EXIF",
  14769. "FPX",
  14770. "SVG",
  14771. "APNG",
  14772. ];
  14773. // if (
  14774. // b.indexOf(
  14775. // file.name
  14776. // .split(".")
  14777. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14778. // ) != -1
  14779. // ) {
  14780. // if (file.size / 1024 / 1024 > 10) {
  14781. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  14782. // return;
  14783. // }
  14784. // } else if (
  14785. // excelA.indexOf(
  14786. // file.name
  14787. // .split(".")
  14788. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14789. // ) != "-1"
  14790. // ) {
  14791. // if (file.size / 1024 / 1024 > 5) {
  14792. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  14793. // return;
  14794. // }
  14795. // }
  14796. if (
  14797. photoA.indexOf(
  14798. file.name
  14799. .split(".")
  14800. [file.name.split(".").length - 1].toLocaleUpperCase()
  14801. ) != -1 &&
  14802. type != 4
  14803. ) {
  14804. // const blob = await imageConversion.compress(file, 0.8)
  14805. file = await this.pngToWhiteBg(file);
  14806. const blob = await imageConversion.compressAccurately(file, 256);
  14807. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14808. file = new File([blob], file.name, { type: file.type });
  14809. }
  14810. if (file) {
  14811. var params = {
  14812. Key:
  14813. file.name.split(".")[0] +
  14814. new Date().getTime() +
  14815. "." +
  14816. file.name.split(".")[file.name.split(".").length - 1],
  14817. ContentType: file.type,
  14818. Body: file,
  14819. "Access-Control-Allow-Credentials": "*",
  14820. ACL: "public-read",
  14821. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14822. var options = {
  14823. // partSize: 2048 * 1024 * 1024,
  14824. partSize: 1024 * 1024 * 1024,
  14825. queueSize: 2,
  14826. leavePartsOnError: true,
  14827. };
  14828. bucket
  14829. .upload(params, options)
  14830. .on("httpUploadProgress", function (evt) {
  14831. //这里可以写进度条
  14832. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14833. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  14834. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  14835. })
  14836. .send(function (err, data) {
  14837. _this.progress = 100;
  14838. _this.isFinishSize = _this.isAllSize;
  14839. setTimeout(() => {
  14840. _this.proVisible = false;
  14841. }, 1000);
  14842. if (err) {
  14843. var a = _this.$refs.upload1.uploadFiles;
  14844. a.splice(a.length - 1, a.length);
  14845. _this.$message.error("上传失败");
  14846. } else {
  14847. // _this.$message.success('上传成功')
  14848. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14849. var c = [
  14850. "AVI",
  14851. "NAVI",
  14852. "MPEG",
  14853. "ASF",
  14854. "MOV",
  14855. "WMV",
  14856. "3GP",
  14857. "RM",
  14858. "RMVB",
  14859. "FLV",
  14860. "F4V",
  14861. "H.264",
  14862. "H.265",
  14863. "REAL VIDEO",
  14864. "MKV",
  14865. "WebM",
  14866. "HDDVD",
  14867. "MP4",
  14868. "MPG",
  14869. "M4V",
  14870. "MGV",
  14871. "OGV",
  14872. "QTM",
  14873. "STR",
  14874. "AMC",
  14875. "DVX",
  14876. "EVO",
  14877. "DAT",
  14878. "OGG",
  14879. "OGM",
  14880. ];
  14881. if (type == 1) {
  14882. _this.studyJuri[0].cover.push({
  14883. name: file.name,
  14884. url: data.Location,
  14885. uid: file.uid,
  14886. });
  14887. if (
  14888. c.indexOf(
  14889. _this.studyJuri[0].cover[0].url
  14890. .split(".")
  14891. [
  14892. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14893. ].toLocaleUpperCase()
  14894. ) != -1
  14895. ) {
  14896. _this.fileType = 2;
  14897. } else if (
  14898. b.indexOf(
  14899. _this.studyJuri[0].cover[0].url
  14900. .split(".")
  14901. [
  14902. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14903. ].toLocaleUpperCase()
  14904. ) != -1
  14905. ) {
  14906. _this.fileType = 1;
  14907. } else if (
  14908. photoA.indexOf(
  14909. _this.studyJuri[0].cover[0].url
  14910. .split(".")
  14911. [
  14912. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14913. ].toLocaleUpperCase()
  14914. ) != -1
  14915. ) {
  14916. _this.fileType = 0;
  14917. } else {
  14918. _this.fileType = 3;
  14919. }
  14920. _this.imgChange(null, null, type);
  14921. } else if (type == 2) {
  14922. _this.upToolImg = data.Location;
  14923. _this.imgChange(null, null, type);
  14924. _this.addCourseWorks(i);
  14925. } else if (type == 4) {
  14926. _this.addPz("3", data.Location);
  14927. } else if (type == 5) {
  14928. _this.addImgDrawImG(data.Location);
  14929. } else if (type == 6) {
  14930. var _ftype = 1;
  14931. if (
  14932. c.indexOf(
  14933. data.Location.split(".")[
  14934. data.Location.split(".").length - 1
  14935. ].toLocaleUpperCase()
  14936. ) != -1
  14937. ) {
  14938. _ftype = 5;
  14939. } else if (
  14940. b.indexOf(
  14941. data.Location.split(".")[
  14942. data.Location.split(".").length - 1
  14943. ].toLocaleUpperCase()
  14944. ) != -1
  14945. ) {
  14946. _ftype = 4;
  14947. } else {
  14948. _ftype = 1;
  14949. }
  14950. _this.plworkFile.push({
  14951. name: file.name,
  14952. url: data.Location,
  14953. uid: file.uid,
  14954. fileType: _ftype,
  14955. username:
  14956. _this.plworkFile.length > 10
  14957. ? _this.plworkFile.length + 1
  14958. : "0" + (_this.plworkFile.length + 1),
  14959. });
  14960. } else if (type == 7) {
  14961. _this.addCourseWorksGong(i, data.Location, 32);
  14962. } else if (type == 8) {
  14963. _this.addCourseWorksGong(i, data.Location, 57);
  14964. }
  14965. _this.imgChange(null, null, type);
  14966. console.log(data.Location);
  14967. // _this.$message.success('上传成功'+data.Location)
  14968. }
  14969. });
  14970. }
  14971. },
  14972. async beforeUpload3(event, type, i) {
  14973. // this.$message.success('进入上传')
  14974. let file = "";
  14975. let cfindex2 = 0;
  14976. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  14977. file = event.target.files[cfindex];
  14978. var credentials = {
  14979. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14980. secretAccessKey: "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",
  14981. }; //秘钥形式的登录上传
  14982. window.AWS.config.update(credentials);
  14983. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14984. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14985. var _this = this;
  14986. // _this.progress = 0;
  14987. _this.proVisible2 = true;
  14988. var b = [
  14989. "DOC",
  14990. "DOCX",
  14991. "DOCM",
  14992. "DOTM",
  14993. "DOTX",
  14994. "PPTX",
  14995. "PPSX",
  14996. "PPT",
  14997. "PPS",
  14998. "PPTM",
  14999. "POTM",
  15000. "PPAM",
  15001. "POTX",
  15002. "PPSM",
  15003. ];
  15004. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15005. var photoA = [
  15006. "BMP",
  15007. "GIF",
  15008. "PNG",
  15009. "JPGE",
  15010. "JPG",
  15011. "TIF",
  15012. "PCX",
  15013. "TGA",
  15014. "EXIF",
  15015. "FPX",
  15016. "SVG",
  15017. "APNG",
  15018. ];
  15019. if (
  15020. photoA.indexOf(
  15021. file.name
  15022. .split(".")
  15023. [file.name.split(".").length - 1].toLocaleUpperCase()
  15024. ) != -1 &&
  15025. type != 4
  15026. ) {
  15027. // const blob = await imageConversion.compress(file, 0.8)
  15028. file = await this.pngToWhiteBg(file);
  15029. const blob = await imageConversion.compressAccurately(file, 256);
  15030. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15031. file = new File([blob], file.name, { type: file.type });
  15032. }
  15033. if (file) {
  15034. var params = {
  15035. Key:
  15036. file.name.split(".")[0] +
  15037. new Date().getTime() +
  15038. "." +
  15039. file.name.split(".")[file.name.split(".").length - 1],
  15040. ContentType: file.type,
  15041. Body: file,
  15042. "Access-Control-Allow-Credentials": "*",
  15043. ACL: "public-read",
  15044. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15045. var options = {
  15046. // partSize: 2048 * 1024 * 1024,
  15047. partSize: 1024 * 1024 * 1024,
  15048. queueSize: 2,
  15049. leavePartsOnError: true,
  15050. };
  15051. bucket
  15052. .upload(params, options)
  15053. .on("httpUploadProgress", function (evt) {
  15054. //这里可以写进度条
  15055. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15056. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15057. })
  15058. .send(function (err, data) {
  15059. // _this.progress = 100;
  15060. cfindex2++;
  15061. setTimeout(() => {
  15062. if (
  15063. cfindex2 == event.target.files.length - 1 ||
  15064. cfindex2 > event.target.files.length - 1
  15065. ) {
  15066. _this.proVisible2 = false;
  15067. }
  15068. }, 1000);
  15069. if (err) {
  15070. var a = _this.$refs.upload1.uploadFiles;
  15071. a.splice(a.length - 1, a.length);
  15072. _this.$message.error("上传失败");
  15073. } else {
  15074. // _this.$message.success('上传成功')
  15075. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15076. var c = [
  15077. "AVI",
  15078. "NAVI",
  15079. "MPEG",
  15080. "ASF",
  15081. "MOV",
  15082. "WMV",
  15083. "3GP",
  15084. "RM",
  15085. "RMVB",
  15086. "FLV",
  15087. "F4V",
  15088. "H.264",
  15089. "H.265",
  15090. "REAL VIDEO",
  15091. "MKV",
  15092. "WebM",
  15093. "HDDVD",
  15094. "MP4",
  15095. "MPG",
  15096. "M4V",
  15097. "MGV",
  15098. "OGV",
  15099. "QTM",
  15100. "STR",
  15101. "AMC",
  15102. "DVX",
  15103. "EVO",
  15104. "DAT",
  15105. "OGG",
  15106. "OGM",
  15107. ];
  15108. if (type == 1) {
  15109. _this.studyJuri[0].cover.push({
  15110. name: file.name,
  15111. url: data.Location,
  15112. uid: file.uid,
  15113. });
  15114. if (
  15115. c.indexOf(
  15116. _this.studyJuri[0].cover[0].url
  15117. .split(".")
  15118. [
  15119. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15120. ].toLocaleUpperCase()
  15121. ) != -1
  15122. ) {
  15123. _this.fileType = 2;
  15124. } else if (
  15125. b.indexOf(
  15126. _this.studyJuri[0].cover[0].url
  15127. .split(".")
  15128. [
  15129. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15130. ].toLocaleUpperCase()
  15131. ) != -1
  15132. ) {
  15133. _this.fileType = 1;
  15134. } else {
  15135. _this.fileType = 0;
  15136. }
  15137. _this.imgChange(null, null, type);
  15138. } else if (type == 2) {
  15139. _this.upToolImg = data.Location;
  15140. _this.imgChange(null, null, type);
  15141. _this.addCourseWorks(i);
  15142. } else if (type == 4) {
  15143. _this.addPz("3", data.Location);
  15144. } else if (type == 5) {
  15145. _this.addImgDrawImG(data.Location);
  15146. } else if (type == 6) {
  15147. var _ftype = 1;
  15148. if (
  15149. c.indexOf(
  15150. data.Location.split(".")[
  15151. data.Location.split(".").length - 1
  15152. ].toLocaleUpperCase()
  15153. ) != -1
  15154. ) {
  15155. _ftype = 5;
  15156. } else if (
  15157. b.indexOf(
  15158. data.Location.split(".")[
  15159. data.Location.split(".").length - 1
  15160. ].toLocaleUpperCase()
  15161. ) != -1
  15162. ) {
  15163. _ftype = 4;
  15164. } else {
  15165. _ftype = 1;
  15166. }
  15167. _this.plworkFile.push({
  15168. name: file.name,
  15169. url: data.Location,
  15170. uid: file.uid,
  15171. fileType: _ftype,
  15172. username:
  15173. _this.plworkFile.length + 1 > 9
  15174. ? _this.plworkFile.length + 1
  15175. : "0" + (_this.plworkFile.length + 1),
  15176. });
  15177. }
  15178. _this.imgChange(null, null, type);
  15179. console.log(data.Location);
  15180. // _this.$message.success('上传成功'+data.Location)
  15181. }
  15182. });
  15183. }
  15184. }
  15185. },
  15186. beforeUpload2(event, type) {
  15187. var file = event.target.files[0];
  15188. var credentials = {
  15189. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15190. secretAccessKey: "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",
  15191. }; //秘钥形式的登录上传
  15192. window.AWS.config.update(credentials);
  15193. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15194. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15195. var _this = this;
  15196. _this.progress = 0;
  15197. _this.proVisible = true;
  15198. if (file) {
  15199. var params = {
  15200. Key:
  15201. file.name.split(".")[0] +
  15202. new Date().getTime() +
  15203. "." +
  15204. file.name.split(".")[file.name.split(".").length - 1],
  15205. ContentType: file.type,
  15206. Body: file,
  15207. "Access-Control-Allow-Credentials": "*",
  15208. ACL: "public-read",
  15209. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15210. var options = {
  15211. partSize: 2048 * 1024 * 1024,
  15212. queueSize: 2,
  15213. leavePartsOnError: true,
  15214. };
  15215. bucket
  15216. .upload(params, options)
  15217. .on("httpUploadProgress", function (evt) {
  15218. //这里可以写进度条
  15219. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15220. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15221. })
  15222. .send(function (err, data) {
  15223. _this.progress = 100;
  15224. setTimeout(() => {
  15225. _this.proVisible = false;
  15226. }, 1000);
  15227. if (err) {
  15228. var a = _this.$refs.upload1.uploadFiles;
  15229. a.splice(a.length - 1, a.length);
  15230. _this.$message.error("上传失败");
  15231. } else {
  15232. if (type == 2) {
  15233. _this.studyJuri[0].upVedio.push({
  15234. name: file.name,
  15235. url: data.Location,
  15236. uid: file.uid,
  15237. });
  15238. _this.imgChange(null, null, type);
  15239. } else if (type == 3) {
  15240. _this.studyJuri[0].upFile.push({
  15241. name: file.name,
  15242. url: data.Location,
  15243. uid: file.uid,
  15244. });
  15245. _this.imgChange(null, null, type);
  15246. }
  15247. console.log(data.Location);
  15248. }
  15249. });
  15250. }
  15251. },
  15252. allScrell() {
  15253. window.parent.postMessage({ allScreen: this.screenType }, "*");
  15254. },
  15255. nextOrpreSteps(t) {
  15256. if (this.IsFollow && this.tType == 2) {
  15257. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15258. return;
  15259. }
  15260. var b = this.chapInfoList.length - 1;
  15261. if (t == 0) {
  15262. if (this.courseType == 0) {
  15263. if (this.taskCount == 0) {
  15264. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  15265. if (this.IsLookOpen) {
  15266. if (
  15267. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  15268. ) {
  15269. if (
  15270. this.courseDetail.userid != this.userid &&
  15271. this.courseDetail.course_teacher &&
  15272. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  15273. ) {
  15274. this.$message.error("任务未解锁");
  15275. } else {
  15276. this.$message.error("上一任务未解锁");
  15277. }
  15278. return;
  15279. }
  15280. }
  15281. this.navList[this.courseType].isOpen = false;
  15282. this.courseType = b;
  15283. this.taskCount =
  15284. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15285. .length - 1;
  15286. this.navList[this.courseType].isOpen = true;
  15287. } else {
  15288. this.taskCount--;
  15289. }
  15290. } else {
  15291. if (this.taskCount == 0) {
  15292. this.navList[this.courseType].isOpen = false;
  15293. this.courseType--;
  15294. this.taskCount =
  15295. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15296. .length - 1;
  15297. this.navList[this.courseType].isOpen = true;
  15298. } else {
  15299. this.taskCount--;
  15300. }
  15301. }
  15302. } else {
  15303. if (this.courseType == b) {
  15304. if (
  15305. this.taskCount ==
  15306. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15307. 1
  15308. ) {
  15309. this.navList[this.courseType].isOpen = false;
  15310. this.courseType = 0;
  15311. this.taskCount = 0;
  15312. this.navList[this.courseType].isOpen = true;
  15313. } else {
  15314. var bbb = parseInt(this.taskCount) + 1;
  15315. if (
  15316. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15317. .isLook &&
  15318. this.courseDetail.userid != this.userid &&
  15319. this.courseDetail.course_teacher &&
  15320. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15321. this.IsLookOpen
  15322. ) {
  15323. this.$message.error("任务未解锁");
  15324. return;
  15325. }
  15326. this.taskCount++;
  15327. if (this.IsLookOpen) {
  15328. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15329. this.taskCount
  15330. ].isLook = true;
  15331. this.addCourseState(3);
  15332. }
  15333. }
  15334. } else {
  15335. if (
  15336. this.taskCount ==
  15337. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15338. 1
  15339. ) {
  15340. var bbb = parseInt(this.courseType) + 1;
  15341. if (
  15342. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  15343. this.courseDetail.userid != this.userid &&
  15344. this.courseDetail.course_teacher &&
  15345. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15346. this.IsLookOpen
  15347. ) {
  15348. this.$message.error("任务未解锁");
  15349. return;
  15350. }
  15351. this.navList[this.courseType].isOpen = false;
  15352. this.courseType++;
  15353. this.taskCount = 0;
  15354. this.navList[this.courseType].isOpen = true;
  15355. } else {
  15356. var bbb = parseInt(this.taskCount) + 1;
  15357. if (
  15358. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15359. .isLook &&
  15360. this.courseDetail.userid != this.userid &&
  15361. this.courseDetail.course_teacher &&
  15362. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15363. this.IsLookOpen
  15364. ) {
  15365. this.$message.error("任务未解锁");
  15366. return;
  15367. }
  15368. this.taskCount++;
  15369. }
  15370. if (this.IsLookOpen) {
  15371. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15372. this.taskCount
  15373. ].isLook = true;
  15374. this.addCourseState(3);
  15375. }
  15376. }
  15377. // if (
  15378. // this.taskCount ==
  15379. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  15380. // ) {
  15381. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  15382. // } else {
  15383. // this.taskCount++;
  15384. // }
  15385. }
  15386. document.scrollingElement.scrollTop = 0;
  15387. this.showType = 0;
  15388. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15389. // if (this.vedio[this.taskCount].length > 0) {
  15390. // var a =
  15391. // document.getElementsByClassName("box_course")[this.taskCount]
  15392. // .offsetHeight;
  15393. // document.getElementsByClassName("vedioList")[
  15394. // this.taskCount
  15395. // ].style.height = a + "px";
  15396. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  15397. // a - 40 + "px";
  15398. // }
  15399. this.isNoHomeWork = false;
  15400. (this.studyJuri = [
  15401. {
  15402. content: "",
  15403. cover: [],
  15404. upVedio: [],
  15405. upFile: [],
  15406. },
  15407. ]),
  15408. (this.radio = []);
  15409. this.isClickNav = "";
  15410. this.selectPz();
  15411. this.getHomeWork();
  15412. this.getCourseDetail(2);
  15413. this.$forceUpdate();
  15414. },
  15415. openTask(s, n, i) {
  15416. if (this.IsFollow && this.tType == 2) {
  15417. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15418. return;
  15419. }
  15420. if (this.IsLookOpen) {
  15421. if (
  15422. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  15423. this.courseDetail.userid != this.userid &&
  15424. this.courseDetail.course_teacher &&
  15425. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  15426. ) {
  15427. this.$message.error("任务未解锁");
  15428. return;
  15429. }
  15430. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  15431. if (
  15432. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  15433. .isLook
  15434. ) {
  15435. this.$message.error("上一任务未解锁");
  15436. return;
  15437. }
  15438. } else if (s > this.courseType) {
  15439. if (n > 0) {
  15440. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  15441. this.$message.error("上一任务未解锁");
  15442. return;
  15443. }
  15444. } else {
  15445. if (
  15446. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  15447. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  15448. ].isLook
  15449. ) {
  15450. this.$message.error("上一任务未解锁");
  15451. return;
  15452. }
  15453. }
  15454. }
  15455. }
  15456. if (this.navList[s].task[n].isOpen == true) {
  15457. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  15458. return;
  15459. }
  15460. this.courseType = s;
  15461. this.navId = i;
  15462. this.taskCount = n;
  15463. this.navList[this.courseType].task[this.taskCount].isOpen =
  15464. !this.navList[this.courseType].task[this.taskCount].isOpen;
  15465. if (this.IsLookOpen) {
  15466. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15467. this.taskCount
  15468. ].isLook = true;
  15469. this.addCourseState(3);
  15470. }
  15471. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  15472. this.isCloseList[ci].isClose = 0;
  15473. this.isCloseList[ci].isCloseBoolean = false;
  15474. this.$nextTick(()=>{
  15475. setTimeout(()=>{
  15476. setTimeout(()=>{
  15477. this.panToolHeight('tool-'+ci);
  15478. }, 0)
  15479. }, 0)
  15480. })
  15481. }
  15482. this.showType = 0;
  15483. this.isNoHomeWork = false;
  15484. (this.studyJuri = [
  15485. {
  15486. content: "",
  15487. cover: [],
  15488. upVedio: [],
  15489. upFile: [],
  15490. },
  15491. ]),
  15492. (this.radio = []);
  15493. document.scrollingElement.scrollTop = 0;
  15494. // setTimeout(() => {
  15495. // let a = document.getElementById(i);
  15496. // if (a.offsetTop - 110 == 0) {
  15497. // window.scrollTo(0, 0);
  15498. // } else {
  15499. // window.scrollTo(0, a.offsetTop);
  15500. // }
  15501. // }, 0);
  15502. for (var z = 0; z < this.navList.length; z++) {
  15503. for (var q = 0; q < this.navList[z].task.length; q++) {
  15504. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  15505. this.navList[z].task[q].tool[w].isTool = false;
  15506. }
  15507. }
  15508. }
  15509. this.selectPz();
  15510. this.getHomeWork();
  15511. this.getCourseDetail(2);
  15512. },
  15513. get(i) {
  15514. if (this.IsFollow && this.tType == 2) {
  15515. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15516. return;
  15517. }
  15518. // for(var k=0;k<this.navList.length;k++){
  15519. // this.navList[k].isOpen = false;
  15520. // }
  15521. // this.navList[i].isOpen = true;
  15522. this.navList[i].isOpen = !this.navList[i].isOpen;
  15523. if (this.navList[i].isOpen) {
  15524. this.openTask(i, 0, i + "-0");
  15525. }
  15526. },
  15527. addQuestion() {
  15528. this.answerList.push({
  15529. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  15530. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  15531. });
  15532. let params = [
  15533. {
  15534. uid: this.userid,
  15535. cid: this.id,
  15536. stage: this.courseType,
  15537. task: this.taskCount,
  15538. tool: this.toolindex,
  15539. content: JSON.stringify(this.answerList),
  15540. type: 3,
  15541. },
  15542. ];
  15543. this.ajax
  15544. .post(this.$store.state.api + "addCourseWorks", params)
  15545. .then((res) => {
  15546. this.$message({
  15547. message: "提交成功",
  15548. type: "success",
  15549. });
  15550. this.answerList = [];
  15551. this.answerDialogVisible = false;
  15552. this.selectStudent();
  15553. this.selectSWorks();
  15554. this.selectSLook();
  15555. })
  15556. .catch((err) => {
  15557. this.$message.error("提交失败");
  15558. console.error(err);
  15559. });
  15560. },
  15561. addQuestionTeacher() {
  15562. this.answerList.push({
  15563. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  15564. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  15565. });
  15566. let params = [
  15567. {
  15568. uid: this.sStudent.userid,
  15569. cid: this.id,
  15570. stage: this.courseType,
  15571. task: this.taskCount,
  15572. tool: this.toolindex,
  15573. content: JSON.stringify(this.answerList),
  15574. type: 3,
  15575. ateacher: this.userid,
  15576. },
  15577. ];
  15578. this.ajax
  15579. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  15580. .then((res) => {
  15581. this.$message({
  15582. message: "提交成功",
  15583. type: "success",
  15584. });
  15585. this.answerList = [];
  15586. this.questionAnswer = "";
  15587. this.answerDialogVisibleTeacher = false;
  15588. this.selectStudent();
  15589. this.selectSWorks();
  15590. this.selectSLook();
  15591. })
  15592. .catch((err) => {
  15593. this.$message.error("提交失败");
  15594. console.error(err);
  15595. });
  15596. },
  15597. refreshCourse() {
  15598. // window.location.reload();
  15599. this.navList = [];
  15600. this.getCourseDetail(1);
  15601. },
  15602. getCourseDetail(type, gindex) {
  15603. let loading;
  15604. if (type != 2) {
  15605. loading = this.$loading.service({
  15606. background: "rgba(255, 255, 255, 0.7)",
  15607. target: document.querySelector(".student_table"),
  15608. });
  15609. }
  15610. this.downLoading = false
  15611. // this.navList[0].isOpen = false;
  15612. // this.navList[this.courseType].isOpen = true;
  15613. // this.courseType = this.courseTypeLine;
  15614. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15615. let params = {
  15616. courseId: this.id,
  15617. };
  15618. this.ajax
  15619. .get(this.$store.state.api + "selectCourseDetail3", params)
  15620. .then((res) => {
  15621. if (type != 2) {
  15622. loading.close();
  15623. if (
  15624. this.courseType >
  15625. JSON.parse(res.data[0][0].chapters).length - 1
  15626. ) {
  15627. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  15628. }
  15629. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15630. .chapterInfo[0].taskJson;
  15631. var b = [
  15632. "AVI",
  15633. "NAVI",
  15634. "MPEG",
  15635. "ASF",
  15636. "MOV",
  15637. "WMV",
  15638. "3GP",
  15639. "RM",
  15640. "RMVB",
  15641. "FLV",
  15642. "F4V",
  15643. "H.264",
  15644. "H.265",
  15645. "REAL VIDEO",
  15646. "MKV",
  15647. "WebM",
  15648. "HDDVD",
  15649. "MP4",
  15650. "MPG",
  15651. "M4V",
  15652. "MGV",
  15653. "OGV",
  15654. "QTM",
  15655. "STR",
  15656. "AMC",
  15657. "DVX",
  15658. "EVO",
  15659. "DAT",
  15660. "OGG",
  15661. "OGM",
  15662. "MP3",
  15663. ];
  15664. let _chapterData = [];
  15665. for (var i = 0; i < a.length; i++) {
  15666. var c = a[i].chapterData;
  15667. this.vedio[i] = [];
  15668. this.textList[i] = [];
  15669. this.lineList[i] = [];
  15670. this.chapToolList[i] = [];
  15671. this.file[i] = [];
  15672. this.fileC[i] = [];
  15673. _chapterData[i] = c.filter((el) => {
  15674. return el.type != 12;
  15675. });
  15676. this.fileC[i] = c.filter((el) => {
  15677. return el.type == 12;
  15678. });
  15679. // else if (c[j].type == 12) {
  15680. // this.fileC[i].push(c[j]);
  15681. // }
  15682. for (var j = 0; j < c.length; j++) {
  15683. if (c[j].type == 7) {
  15684. this.chapToolList[i].push(c[j]);
  15685. } else if (c[j].type == 8 || c[j].type == 14) {
  15686. this.lineList[i].push(c[j]);
  15687. } else if (c[j].type == 6) {
  15688. this.textList[i].push(c[j]);
  15689. } else {
  15690. if (
  15691. b.indexOf(
  15692. c[j].url
  15693. .split(".")
  15694. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15695. ) != -1
  15696. ) {
  15697. this.vedio[i].push(c[j]);
  15698. } else {
  15699. this.file[i].push(c[j]);
  15700. }
  15701. }
  15702. }
  15703. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15704. d.sources[0].src =
  15705. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15706. this.playerO[i] = d;
  15707. }
  15708. this.courseDetail = res.data[0][0];
  15709. this.tcid = this.arrayToArray(
  15710. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15711. this.tcid2 ? this.tcid2.split(",") : []
  15712. ).join(",");
  15713. this.evalua = res.data[0][0].evaId;
  15714. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  15715. this.courseType
  15716. ];
  15717. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  15718. if (this.tcid && res.data[1].length) {
  15719. let _inviteA = [];
  15720. for (var ik = 0; ik < res.data[1].length; ik++) {
  15721. _inviteA.push({
  15722. cid: res.data[1][ik].classid,
  15723. ic: res.data[1][ik].code,
  15724. });
  15725. }
  15726. for (var ik = 0; ik < _inviteA.length; ik++) {
  15727. if (
  15728. this.arrayToArray(
  15729. _inviteA[ik].cid.split(","),
  15730. this.tcid.split(",")
  15731. ).length
  15732. ) {
  15733. this.inviteCode = _inviteA[ik].ic;
  15734. break;
  15735. }
  15736. }
  15737. }
  15738. for (var l = 0; l < this.chapInfoList.length; l++) {
  15739. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15740. for (var m = 0; m < w.length; m++) {
  15741. w[m].id = l + "-" + m;
  15742. }
  15743. }
  15744. if (
  15745. _chapterData[this.taskCount].length &&
  15746. _chapterData[this.taskCount][0].type == 2
  15747. ) {
  15748. this.showType = 0;
  15749. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  15750. } else {
  15751. if (_chapterData[this.taskCount].length > 0) {
  15752. let _url = _chapterData[this.taskCount][0].url;
  15753. if (
  15754. _chapterData[this.taskCount][0].type == 8 ||
  15755. _chapterData[this.taskCount][0].type == 14
  15756. ) {
  15757. this.showType = 2;
  15758. if (
  15759. _url.indexOf("https://") == -1 &&
  15760. _url.indexOf("http://") == -1
  15761. ) {
  15762. _url = "https://" + _url;
  15763. }
  15764. this.pptImgUrl1 = _url;
  15765. } else if (_chapterData[this.taskCount][0].type == 3) {
  15766. if (
  15767. _url
  15768. .split(".")
  15769. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15770. ) {
  15771. this.showType = 3;
  15772. this.pptImgUrl1 = _url;
  15773. } else if (
  15774. this.isAssetTypeAnImage(
  15775. _url
  15776. .split(".")
  15777. [_url.split(".").length - 1].toLocaleLowerCase()
  15778. )
  15779. ) {
  15780. this.showType = 4;
  15781. this.pptImgUrl1 = _url;
  15782. } else {
  15783. this.showType = 2;
  15784. this.pptImgUrl1 =
  15785. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15786. encodeURIComponent(_url);
  15787. }
  15788. } else if (_chapterData[this.taskCount][0].type == 13) {
  15789. this.showType = 4;
  15790. this.pptImgUrl1 = _url;
  15791. } else if (_chapterData[this.taskCount][0].type == 6) {
  15792. this.showType = 1;
  15793. this.text = this.textList[this.taskCount][0];
  15794. }
  15795. }
  15796. }
  15797. this.isClickNav = 0;
  15798. if (
  15799. !_chapterData[this.taskCount].length ||
  15800. _chapterData[this.taskCount][0].type == 12
  15801. ) {
  15802. this.isClickNav = "";
  15803. this.showType = "";
  15804. }
  15805. this.vChapterData = _chapterData;
  15806. } else {
  15807. this.showType = 0;
  15808. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15809. .chapterInfo[0].taskJson;
  15810. var b = [
  15811. "AVI",
  15812. "NAVI",
  15813. "MPEG",
  15814. "ASF",
  15815. "MOV",
  15816. "WMV",
  15817. "3GP",
  15818. "RM",
  15819. "RMVB",
  15820. "FLV",
  15821. "F4V",
  15822. "H.264",
  15823. "H.265",
  15824. "REAL VIDEO",
  15825. "MKV",
  15826. "WebM",
  15827. "HDDVD",
  15828. "MP4",
  15829. "MPG",
  15830. "M4V",
  15831. "MGV",
  15832. "OGV",
  15833. "QTM",
  15834. "STR",
  15835. "AMC",
  15836. "DVX",
  15837. "EVO",
  15838. "DAT",
  15839. "OGG",
  15840. "OGM",
  15841. "MP3",
  15842. ];
  15843. let _chapterData = [];
  15844. for (var i = 0; i < a.length; i++) {
  15845. var c = a[i].chapterData;
  15846. this.vedio[i] = [];
  15847. this.textList[i] = [];
  15848. this.lineList[i] = [];
  15849. this.chapToolList[i] = [];
  15850. this.file[i] = [];
  15851. this.fileC[i] = [];
  15852. _chapterData[i] = c.filter((el) => {
  15853. return el.type != 12;
  15854. });
  15855. this.fileC[i] = c.filter((el) => {
  15856. return el.type == 12;
  15857. });
  15858. for (var j = 0; j < c.length; j++) {
  15859. if (c[j].type == 7) {
  15860. this.chapToolList[i].push(c[j]);
  15861. } else if (c[j].type == 8 || c[j].type == 14) {
  15862. this.lineList[i].push(c[j]);
  15863. } else if (c[j].type == 6) {
  15864. this.textList[i].push(c[j]);
  15865. } else {
  15866. if (
  15867. b.indexOf(
  15868. c[j].url
  15869. .split(".")
  15870. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15871. ) != -1
  15872. ) {
  15873. this.vedio[i].push(c[j]);
  15874. } else {
  15875. this.file[i].push(c[j]);
  15876. }
  15877. }
  15878. }
  15879. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15880. d.sources[0].src =
  15881. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15882. this.playerO[i] = d;
  15883. }
  15884. if (
  15885. _chapterData[this.taskCount].length &&
  15886. _chapterData[this.taskCount][0].type == 2
  15887. ) {
  15888. this.showType = 0;
  15889. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  15890. } else {
  15891. if (_chapterData[this.taskCount].length > 0) {
  15892. let _url = _chapterData[this.taskCount][0].url;
  15893. if (
  15894. _chapterData[this.taskCount][0].type == 8 ||
  15895. _chapterData[this.taskCount][0].type == 14
  15896. ) {
  15897. this.showType = 2;
  15898. if (
  15899. _url.indexOf("https://") == -1 &&
  15900. _url.indexOf("http://") == -1
  15901. ) {
  15902. _url = "https://" + _url;
  15903. }
  15904. this.pptImgUrl1 = _url;
  15905. } else if (_chapterData[this.taskCount][0].type == 3) {
  15906. if (
  15907. _url
  15908. .split(".")
  15909. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15910. ) {
  15911. this.showType = 3;
  15912. this.pptImgUrl1 = _url;
  15913. } else if (
  15914. this.isAssetTypeAnImage(
  15915. _url
  15916. .split(".")
  15917. [_url.split(".").length - 1].toLocaleLowerCase()
  15918. )
  15919. ) {
  15920. this.showType = 4;
  15921. this.pptImgUrl1 = _url;
  15922. } else {
  15923. this.showType = 2;
  15924. this.pptImgUrl1 =
  15925. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15926. encodeURIComponent(_url);
  15927. }
  15928. } else if (_chapterData[this.taskCount][0].type == 13) {
  15929. this.showType = 4;
  15930. this.pptImgUrl1 = _url;
  15931. } else if (_chapterData[this.taskCount][0].type == 6) {
  15932. this.showType = 1;
  15933. this.text = this.textList[this.taskCount][0];
  15934. }
  15935. }
  15936. }
  15937. this.isClickNav = 0;
  15938. if (
  15939. !_chapterData[this.taskCount].length ||
  15940. _chapterData[this.taskCount][0].type == 12
  15941. ) {
  15942. this.isClickNav = "";
  15943. this.showType = "";
  15944. }
  15945. this.vChapterData = _chapterData;
  15946. this.$forceUpdate();
  15947. }
  15948. // else {
  15949. // this.courseDetail = res.data[0][0];
  15950. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  15951. // }
  15952. let _this = this;
  15953. if (_this.timer) {
  15954. clearInterval(_this.timer);
  15955. _this.timer = null;
  15956. }
  15957. if (_this.tcid) {
  15958. _this.getCourseGroup(gindex);
  15959. } else {
  15960. _this.selectSWorks(gindex);
  15961. }
  15962. _this.selectStudent();
  15963. _this.selectSLook();
  15964. _this.getPick();
  15965. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15966. _this.setCTask();
  15967. }
  15968. if (_this.dialogVisibleGroup) {
  15969. _this.groupJson =
  15970. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15971. _this.taskCount
  15972. ].toolChoose[_this.toolindex].groupJson;
  15973. }
  15974. _this.$nextTick(() => {
  15975. setTimeout(() => {
  15976. _this.checkEva();
  15977. }, 1000);
  15978. });
  15979. _this.timer = setInterval(function () {
  15980. // _this.getCourseDetail(2);
  15981. if (_this.tcid) {
  15982. _this.getCourseGroup(gindex);
  15983. } else {
  15984. _this.selectSWorks(gindex);
  15985. }
  15986. _this.selectStudent();
  15987. _this.selectSLook();
  15988. _this.getPick();
  15989. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15990. _this.setCTask();
  15991. }
  15992. if (_this.dialogVisibleGroup) {
  15993. _this.groupJson =
  15994. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15995. _this.taskCount
  15996. ].toolChoose[_this.toolindex].groupJson;
  15997. }
  15998. if (_this.tType == 4 || _this.ispzType == 4) {
  15999. _this.selectPz();
  16000. }
  16001. }, 5000);
  16002. _this.$nextTick(function () {
  16003. setTimeout(() => {
  16004. // var a =
  16005. // document.getElementsByClassName("box_course")[0].offsetHeight;
  16006. // document.getElementsByClassName("vedioList")[0].style.height =
  16007. // a + "px";
  16008. // document.getElementsByClassName("navBox")[0].style.height =
  16009. // a - 40 + "px";
  16010. // if (_this.vedio[_this.taskCount].length > 0) {
  16011. // _this.vedioTime = [];
  16012. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  16013. // _this.vedioTime[i] = document.getElementsByClassName(
  16014. // "vjs-duration-display"
  16015. // )[i].textContent;
  16016. // }
  16017. // }
  16018. }, 1000);
  16019. });
  16020. })
  16021. .catch((err) => {
  16022. loading.close();
  16023. console.error(err);
  16024. });
  16025. },
  16026. getCourseGroup(gindex) {
  16027. let params = {
  16028. cid: this.id,
  16029. classid: this.tcid ? this.tcid : "1",
  16030. };
  16031. this.ajax
  16032. .get(this.$store.state.api + "getCourseGroup", params)
  16033. .then((res) => {
  16034. if (res.data && res.data[0].length) {
  16035. if (!this.isGroup) {
  16036. let courseGroup = JSON.parse(res.data[0][0].group);
  16037. courseGroup.group = courseGroup.group.filter((el) => {
  16038. el.works = [];
  16039. return el;
  16040. });
  16041. if (courseGroup.isopen == 2) {
  16042. this.isGroup = false;
  16043. this.selectSWorks(gindex);
  16044. return;
  16045. }
  16046. this.courseGroup = courseGroup;
  16047. let groupPerson = res.data[1];
  16048. let group = JSON.parse(res.data[0][0].group).group;
  16049. let courseGroupStudent = {};
  16050. let courseGroupStudentUid = {};
  16051. for (var i = 0; i < group.length; i++) {
  16052. courseGroupStudent[group[i].id] = [];
  16053. courseGroupStudentUid[group[i].id] = [];
  16054. for (var j = 0; j < groupPerson.length; j++) {
  16055. if (groupPerson[j].groupCid == group[i].id) {
  16056. courseGroupStudent[group[i].id].push(groupPerson[j]);
  16057. courseGroupStudentUid[group[i].id].push(
  16058. groupPerson[j].userid
  16059. );
  16060. }
  16061. }
  16062. }
  16063. this.courseGroupStudent = courseGroupStudent;
  16064. this.courseGroupStudentUid = courseGroupStudentUid;
  16065. }
  16066. if (this.courseGroup.isopen == 2) {
  16067. this.isGroup = false;
  16068. } else {
  16069. this.isGroup = true;
  16070. }
  16071. this.selectSWorks(gindex);
  16072. } else {
  16073. this.selectSWorks(gindex);
  16074. this.isGroup = false;
  16075. }
  16076. })
  16077. .catch((err) => {
  16078. // this.$message.error("网络不佳");
  16079. console.error(err);
  16080. });
  16081. },
  16082. setOperationTime() {
  16083. let _this = this;
  16084. if (_this.opertimer) {
  16085. clearInterval(_this.opertimer);
  16086. _this.opertimer = null;
  16087. }
  16088. _this.opertimer = setInterval(() => {
  16089. _this.setoTime("600");
  16090. }, 600000);
  16091. },
  16092. setoTime(time) {
  16093. let params = [
  16094. {
  16095. uid: this.userid,
  16096. cid: this.id,
  16097. type: "2",
  16098. time: time,
  16099. },
  16100. ];
  16101. this.ajax
  16102. .post(this.$store.state.api + "addOperationTimeT2", params)
  16103. .then((res) => {})
  16104. .catch((err) => {
  16105. console.error(err);
  16106. });
  16107. },
  16108. addPz(type, content) {
  16109. if (type == "1" && this.pzConText == "") {
  16110. this.$message.error("评论不能为空!");
  16111. return;
  16112. }
  16113. let params = [
  16114. {
  16115. cid: this.id,
  16116. uid: this.userid,
  16117. s: this.courseType,
  16118. t: this.taskCount,
  16119. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  16120. type: type,
  16121. },
  16122. ];
  16123. this.ajax
  16124. .post(this.$store.state.api + "addPz2", params)
  16125. .then((res) => {
  16126. this.$message({
  16127. message: "添加成功",
  16128. type: "success",
  16129. });
  16130. this.pzConText = "";
  16131. this.addPzDialog = false;
  16132. this.selectPz();
  16133. })
  16134. .catch((err) => {
  16135. this.$message.error("添加失败");
  16136. console.error(err);
  16137. });
  16138. },
  16139. setReplyIndex(id, i) {
  16140. this.replyIndex = i;
  16141. this.replyPid = id;
  16142. this.replyDialogVisible = true;
  16143. },
  16144. addHf() {
  16145. if (this.reply == "") {
  16146. this.$message.error("回复不能为空!");
  16147. return;
  16148. }
  16149. let params = [
  16150. {
  16151. cid: this.id,
  16152. uid: this.userid,
  16153. s: this.courseType,
  16154. t: this.taskCount,
  16155. type: "1",
  16156. ct: 2,
  16157. pid: this.replyPid,
  16158. c: this.reply.replaceAll(/%/g, "%25"),
  16159. },
  16160. ];
  16161. this.ajax
  16162. .post(this.$store.state.api + "addHf", params)
  16163. .then((res) => {
  16164. this.reply = "";
  16165. this.$message({
  16166. message: "回复成功",
  16167. type: "success",
  16168. });
  16169. this.replyDialogVisible = false;
  16170. this.selectPz();
  16171. })
  16172. .catch((err) => {
  16173. this.$message.error("回复失败");
  16174. console.error(err);
  16175. });
  16176. },
  16177. deletePz(id) {
  16178. this.$confirm("确定删除此评论吗?", "提示", {
  16179. confirmButtonText: "确定",
  16180. cancelButtonText: "取消",
  16181. type: "warning",
  16182. })
  16183. .then(() => {
  16184. let params = [
  16185. {
  16186. id: id,
  16187. },
  16188. ];
  16189. this.ajax
  16190. .post(this.$store.state.api + "deletePz", params)
  16191. .then((res) => {
  16192. this.$message({
  16193. message: "删除成功",
  16194. type: "success",
  16195. });
  16196. this.selectPz();
  16197. })
  16198. .catch((err) => {
  16199. this.$message.error("网络异常");
  16200. console.error(err);
  16201. });
  16202. })
  16203. .catch(() => {});
  16204. },
  16205. deleteReply(id) {
  16206. this.$confirm("确定删除此回复吗?", "提示", {
  16207. confirmButtonText: "确定",
  16208. cancelButtonText: "取消",
  16209. type: "warning",
  16210. })
  16211. .then(() => {
  16212. let params = [
  16213. {
  16214. id: id,
  16215. },
  16216. ];
  16217. this.ajax
  16218. .post(this.$store.state.api + "deleteReply", params)
  16219. .then((res) => {
  16220. this.$message({
  16221. message: "删除成功",
  16222. type: "success",
  16223. });
  16224. this.selectPz();
  16225. })
  16226. .catch((err) => {
  16227. this.$message.error("网络异常");
  16228. console.error(err);
  16229. });
  16230. })
  16231. .catch(() => {});
  16232. },
  16233. setPz() {
  16234. if (this.ispzType == 4) {
  16235. this.ispzType = 0;
  16236. this.pzDialog = false;
  16237. return;
  16238. }
  16239. this.ispzType = 4;
  16240. this.pzDialog = true;
  16241. this.selectPz();
  16242. },
  16243. selectPz() {
  16244. let params = {
  16245. cid: this.id,
  16246. s: this.courseType,
  16247. t: this.taskCount,
  16248. type: this.pzStype,
  16249. uid: this.userid,
  16250. };
  16251. this.ajax
  16252. .get(this.$store.state.api + "selectPzListType", params)
  16253. .then((res) => {
  16254. this.pzList = res.data[0];
  16255. var a = res.data[1];
  16256. for (var i = 0; i < a.length; i++) {
  16257. for (var j = 0; j < this.pzList.length; j++) {
  16258. if (!this.pzList[j].hfList) {
  16259. this.pzList[j].hfList = [];
  16260. }
  16261. if (a[i].pid == this.pzList[j].id) {
  16262. this.pzList[j].hfList.push(a[i]);
  16263. }
  16264. }
  16265. }
  16266. })
  16267. .catch((err) => {
  16268. console.error(err);
  16269. });
  16270. },
  16271. // selectHf() {
  16272. // let params = {
  16273. // cid: this.id,
  16274. // s: this.courseType,
  16275. // t: this.taskCount,
  16276. // };
  16277. // this.ajax
  16278. // .get(this.$store.state.api + "selectHfList", params)
  16279. // .then((res) => {
  16280. // var a = res.data[0];
  16281. // for (var i = 0; i < a.length; i++) {
  16282. // for (var j = 0; j < this.pzList.length; j++) {
  16283. // if (!this.pzList[i].hfList) {
  16284. // this.pzList[i].hfList = [];
  16285. // }
  16286. // if (a[i].pid == this.pzList[j].id) {
  16287. // this.pzList[i].hfList.push(a[i]);
  16288. // }
  16289. // }
  16290. // }
  16291. // })
  16292. // .catch((err) => {
  16293. // console.error(err);
  16294. // });
  16295. // },
  16296. updateSLook() {
  16297. let params = {
  16298. sopen: this.sIsOpen == false ? 1 : 2,
  16299. cid: this.id,
  16300. };
  16301. this.ajax
  16302. .get(this.$store.state.api + "updateCourseSLook", params)
  16303. .then((res) => {
  16304. if (this.sIsOpen == true) {
  16305. this.$message({
  16306. message: "权限设置成功",
  16307. type: "success",
  16308. });
  16309. } else {
  16310. this.$message({
  16311. message: "权限关闭成功",
  16312. type: "success",
  16313. });
  16314. }
  16315. })
  16316. .catch((err) => {
  16317. console.error(err);
  16318. });
  16319. },
  16320. updateFollow() {
  16321. let params = [
  16322. {
  16323. sopen: this.IsFollow == false ? 1 : 2,
  16324. cid: this.id,
  16325. },
  16326. ];
  16327. this.ajax
  16328. .post(this.$store.state.api + "updateCourseFollow", params)
  16329. .then((res) => {
  16330. if (this.IsFollow == true) {
  16331. this.$message({
  16332. message: "开启成功",
  16333. type: "success",
  16334. });
  16335. } else {
  16336. this.$message({
  16337. message: "关闭成功",
  16338. type: "success",
  16339. });
  16340. }
  16341. this.setCTask();
  16342. })
  16343. .catch((err) => {
  16344. console.error(err);
  16345. });
  16346. },
  16347. setCTask() {
  16348. let params = [
  16349. {
  16350. sopen: this.courseType + "-" + this.taskCount,
  16351. cid: this.id,
  16352. },
  16353. ];
  16354. this.ajax
  16355. .post(this.$store.state.api + "updateCourseFollowC", params)
  16356. .then((res) => {})
  16357. .catch((err) => {
  16358. console.error(err);
  16359. });
  16360. },
  16361. updateLookOpen() {
  16362. let params = [
  16363. {
  16364. sopen: this.IsLookOpen == false ? 1 : 2,
  16365. cid: this.id,
  16366. },
  16367. ];
  16368. this.ajax
  16369. .post(this.$store.state.api + "updateCourseLookOpen", params)
  16370. .then((res) => {
  16371. if (this.IsLookOpen == true) {
  16372. // if (this.courseType != 0 && this.taskCount != 0) {
  16373. // this.openTask(0, 0, "0-0");
  16374. // }
  16375. this.$message({
  16376. message: "权限设置成功",
  16377. type: "success",
  16378. });
  16379. } else {
  16380. this.$message({
  16381. message: "权限关闭成功",
  16382. type: "success",
  16383. });
  16384. }
  16385. this.getCourseState(2);
  16386. })
  16387. .catch((err) => {
  16388. console.error(err);
  16389. });
  16390. },
  16391. selectSLook() {
  16392. let params = {
  16393. cid: this.id,
  16394. };
  16395. this.ajax
  16396. .get(this.$store.state.api + "selectCourseSLook", params)
  16397. .then((res) => {
  16398. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  16399. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  16400. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  16401. if (!this.IsLookOpen) {
  16402. this.setNavList();
  16403. } else {
  16404. this.getCourseState(1);
  16405. }
  16406. if (this.IsFollow && this.tType == 2) {
  16407. this.setContent2(false);
  16408. let _followC = res.data[0][0].followC.split("-");
  16409. if (
  16410. this.courseType != _followC[0] ||
  16411. this.taskCount != _followC[1]
  16412. ) {
  16413. this.navList[this.courseType].isOpen = false;
  16414. this.courseType = _followC[0];
  16415. this.navList[this.courseType].isOpen = true;
  16416. this.taskCount = parseInt(_followC[1]);
  16417. this.navId = res.data[0][0].followC;
  16418. document.scrollingElement.scrollTop = 0;
  16419. this.getCourseDetail(2);
  16420. }
  16421. }
  16422. })
  16423. .catch((err) => {
  16424. console.error(err);
  16425. });
  16426. },
  16427. setNavList() {
  16428. if (this.navList.length == 0) {
  16429. this.navList = [];
  16430. var copyList = [];
  16431. for (var l = 0; l < this.chapInfoList.length; l++) {
  16432. var q = this.chapInfoList[l].dyName;
  16433. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16434. var e;
  16435. copyList.push({
  16436. dyName: q,
  16437. isOpen: l === 0 ? true : false,
  16438. task: [],
  16439. });
  16440. for (var r = 0; r < w.length; r++) {
  16441. e = w[r].task;
  16442. if (this.chapInfoList[l].easy == 1) {
  16443. copyList[l].task.push({
  16444. taskName: q,
  16445. id: l + "-" + r,
  16446. isLook: w[r].isLook,
  16447. isOpen: r === 0 ? true : false,
  16448. tool: [],
  16449. });
  16450. } else {
  16451. copyList[l].task.push({
  16452. taskName: e,
  16453. id: l + "-" + r,
  16454. isLook: w[r].isLook,
  16455. isOpen: r === 0 ? true : false,
  16456. tool: [],
  16457. });
  16458. }
  16459. var t = w[r].toolChoose;
  16460. for (var k = 0; k < t.length; k++) {
  16461. var tool = t[k].tool[0];
  16462. copyList[l].task[r].tool.push({
  16463. tool: tool,
  16464. isTool: false,
  16465. });
  16466. }
  16467. // this.navId = this.navId ? this.navId : l + "-" + r;
  16468. // this.navId = l + "-" + r;
  16469. }
  16470. }
  16471. this.navList = copyList;
  16472. this.navList[0].isOpen = false;
  16473. this.navList[this.courseType].isOpen = true;
  16474. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16475. } else {
  16476. this.setNavList2();
  16477. }
  16478. },
  16479. setNavList2() {
  16480. for (var l = 0; l < this.chapInfoList.length; l++) {
  16481. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16482. for (var r = 0; r < w.length; r++) {
  16483. this.navList[l].task[r].isLook = w[r].isLook;
  16484. }
  16485. }
  16486. if (
  16487. this.IsLookOpen &&
  16488. !this.navList[this.courseType].task[this.taskCount].isLook
  16489. ) {
  16490. this.openTask(0, 0, "0-0");
  16491. }
  16492. this.$forceUpdate();
  16493. },
  16494. getCourseState(type) {
  16495. let params = {
  16496. cid: this.id,
  16497. };
  16498. this.ajax
  16499. .get(this.$store.state.api + "getCourseState", params)
  16500. .then((res) => {
  16501. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  16502. this.chapInfoList = JSON.parse(res.data[0][0].state);
  16503. this.setNavList();
  16504. this.$forceUpdate();
  16505. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  16506. this.addCourseState(2);
  16507. } else {
  16508. this.addCourseState(1);
  16509. }
  16510. })
  16511. .catch((err) => {
  16512. console.error(err);
  16513. });
  16514. },
  16515. addCourseState(type) {
  16516. let _state = this.chapInfoList;
  16517. // this.courseType this.taskCount
  16518. if (type == 1 || type == 2) {
  16519. for (var i = 0; i < _state.length; i++) {
  16520. let el = _state[i].chapterInfo[0].taskJson;
  16521. for (var j = 0; j < el.length; j++) {
  16522. // if (i == 0 && j == 0) {
  16523. // el[j].isLook = true;
  16524. // } else {
  16525. // el[j].isLook = false;
  16526. // }
  16527. if (
  16528. this.courseType > i ||
  16529. (this.courseType == i && this.taskCount + 1 > j)
  16530. ) {
  16531. el[j].isLook = true;
  16532. } else {
  16533. el[j].isLook = false;
  16534. }
  16535. }
  16536. }
  16537. }
  16538. let params = [
  16539. {
  16540. cid: this.id,
  16541. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  16542. },
  16543. ];
  16544. this.ajax
  16545. .post(
  16546. this.$store.state.api +
  16547. (type == 1 ? "addCourseState" : "updateCourseSate"),
  16548. params
  16549. )
  16550. .then((res) => {
  16551. if (this.IsLookOpen) {
  16552. this.setNavList();
  16553. }
  16554. if (type == 3 && type == 2) {
  16555. this.getCourseState(1);
  16556. }
  16557. })
  16558. .catch((err) => {
  16559. console.error(err);
  16560. });
  16561. },
  16562. getHomeWork() {
  16563. let params = {
  16564. cid: this.id,
  16565. stage: this.courseType,
  16566. task: this.taskCount,
  16567. uid: this.userid,
  16568. };
  16569. this.ajax
  16570. .get(this.$store.state.api + "selectWork", params)
  16571. .then((res) => {
  16572. if (res.data[0].length > 0) {
  16573. this.studyJuri = JSON.parse(res.data[0][0].content);
  16574. this.isNoHomeWork = true;
  16575. }
  16576. })
  16577. .catch((err) => {
  16578. console.error(err);
  16579. });
  16580. },
  16581. isAssetTypeAnImage(ext) {
  16582. return (
  16583. [
  16584. "png",
  16585. "jpg",
  16586. "jpeg",
  16587. "bmp",
  16588. "gif",
  16589. "webp",
  16590. "psd",
  16591. "svg",
  16592. "tiff",
  16593. ].indexOf(ext) !== -1
  16594. );
  16595. },
  16596. switchVideo(media) {
  16597. this.playerO = {};
  16598. this.playerOptions.poster = "";
  16599. this.playerOptions.sources[0].src = media;
  16600. this.playerO = this.playerOptions;
  16601. },
  16602. onPlayerPlay() {},
  16603. onPlayerTimeupdate(player) {
  16604. let gklog = player.cache_.currentTime; //当前播放的秒数
  16605. let a = player.cache_.duration; //视频的总时长
  16606. let gklog2 = parseInt(gklog);
  16607. // if(gklog2 == '3'){
  16608. // player.pause()
  16609. // setTimeout(()=>{
  16610. // player.currentTime(gklog2+1)
  16611. // player.play()
  16612. // },1000)
  16613. // }
  16614. console.log(" onPlayerTimeupdate!", gklog);
  16615. console.log(" onPlayerTimeupdate!", gklog2);
  16616. },
  16617. lookVedio(u, i) {
  16618. this.isClickNav = "";
  16619. // this.playerOptions.sources[0].src = u;
  16620. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16621. d.sources[0].src = u;
  16622. this.playerO[this.taskCount] = d;
  16623. this.showType = 0;
  16624. // this.isClickNav = "video" + i;
  16625. this.isClickNav = i;
  16626. this.$forceUpdate();
  16627. },
  16628. lookText(i, t) {
  16629. this.isClickNav = "";
  16630. // this.text = this.textList[i][t];
  16631. this.text = this.vChapterData[i][t];
  16632. // this.dialogVisible1 = true;
  16633. this.showType = 1;
  16634. // this.isClickNav = "text" + t;
  16635. this.isClickNav = t;
  16636. },
  16637. lookTools(i, t) {
  16638. this.chapTools = this.chapToolList[i][t];
  16639. this.dialogVisible2 = true;
  16640. },
  16641. openFile(f) {
  16642. this.pptImgUrl = "";
  16643. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  16644. if (
  16645. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  16646. -1
  16647. ) {
  16648. this.pptImgUrl =
  16649. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(f);
  16650. this.showPDF = false;
  16651. this.dialogVisible3 = true;
  16652. } else if (
  16653. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16654. ) {
  16655. this.pptImgUrl = f;
  16656. this.showPDF = true;
  16657. this.dialogVisible3 = true;
  16658. }
  16659. },
  16660. openTable(f) {
  16661. this.tableJson = JSON.parse(f.works);
  16662. this.dialogVisibleTable2 = true;
  16663. },
  16664. openWord(f) {
  16665. this.tableJson = JSON.parse(f.works);
  16666. this.dialogVisibleTable3 = true;
  16667. },
  16668. doUrl(url, i) {
  16669. this.isClickNav = "";
  16670. this.pptImgUrl1 = "";
  16671. this.showType = 2;
  16672. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  16673. url = "https://" + url;
  16674. }
  16675. this.pptImgUrl1 = "";
  16676. setTimeout(() => {
  16677. this.pptImgUrl1 = url;
  16678. }, 500);
  16679. // this.isClickNav = "line" + i;
  16680. this.isClickNav = i;
  16681. this.$forceUpdate();
  16682. },
  16683. checkPhoto(f, i) {
  16684. this.showType = 4;
  16685. this.pptImgUrl1 = f.url;
  16686. this.isClickNav = i;
  16687. this.$forceUpdate();
  16688. },
  16689. downFile(f, i) {
  16690. this.isClickNav = "";
  16691. this.pptImgUrl1 = "";
  16692. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  16693. if (
  16694. a.indexOf(
  16695. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  16696. ) != -1
  16697. ) {
  16698. this.pptImgUrl1 =
  16699. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(f.url);
  16700. // this.dialogVisible3 = true;
  16701. this.showType = 2;
  16702. } else if (
  16703. this.isAssetTypeAnImage(
  16704. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  16705. )
  16706. ) {
  16707. this.showType = 4;
  16708. this.pptImgUrl1 = f.url;
  16709. } else if (
  16710. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  16711. "PDF"
  16712. ) {
  16713. this.pptImgUrl1 = f.url;
  16714. // this.dialogVisible3 = true;
  16715. this.showType = 3;
  16716. } else {
  16717. window.open(this.file[i].url);
  16718. }
  16719. // this.isClickNav = "word" + i;
  16720. this.isClickNav = i;
  16721. },
  16722. downFileList(i) {
  16723. window.open(this.noImgList[i].url);
  16724. },
  16725. openAddWork() {
  16726. this.dialogVisible = true;
  16727. },
  16728. addBzWorks() {
  16729. let params = [
  16730. {
  16731. uid: this.userid,
  16732. cid: this.id,
  16733. stage: this.courseType,
  16734. task: this.taskCount,
  16735. tool: this.toolindex,
  16736. content: JSON.stringify(this.eScore),
  16737. type: 6,
  16738. },
  16739. ];
  16740. this.ajax
  16741. .post(this.$store.state.api + "addCourseWorks", params)
  16742. .then((res) => {
  16743. this.$message({
  16744. message: "提交成功",
  16745. type: "success",
  16746. });
  16747. this.eScore = { eBzText: "", eStar: [] };
  16748. this.studentEvalDialogVisible = false;
  16749. this.selectSWorks();
  16750. })
  16751. .catch((err) => {
  16752. this.$message.error("提交失败");
  16753. console.error(err);
  16754. });
  16755. },
  16756. addBzWorksTeacher() {
  16757. let params = [
  16758. {
  16759. uid: this.sStudent.userid,
  16760. cid: this.id,
  16761. stage: this.courseType,
  16762. task: this.taskCount,
  16763. tool: this.toolindex,
  16764. content: JSON.stringify(this.eScore),
  16765. type: 6,
  16766. },
  16767. ];
  16768. this.ajax
  16769. .post(this.$store.state.api + "addCourseWorks", params)
  16770. .then((res) => {
  16771. this.$message({
  16772. message: "提交成功",
  16773. type: "success",
  16774. });
  16775. this.eScore = { eBzText: "", eStar: [] };
  16776. this.studentEvalDialogVisibleTeacher = false;
  16777. this.selectSWorks();
  16778. })
  16779. .catch((err) => {
  16780. this.$message.error("提交失败");
  16781. console.error(err);
  16782. });
  16783. },
  16784. addStudentAsk() {
  16785. if (!this.radio.length) {
  16786. this.$message.error("请选择选项");
  16787. return;
  16788. }
  16789. for (var i = 0; i < this.askJson.askCount; i++) {
  16790. if (
  16791. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16792. (this.radio[i] !== 0 && !this.radio[i])
  16793. ) {
  16794. this.$message.error("请选择选项");
  16795. return;
  16796. }
  16797. }
  16798. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16799. let params = [
  16800. {
  16801. uid: this.userid,
  16802. cid: this.id,
  16803. stage: this.courseType,
  16804. task: this.taskCount,
  16805. tool: this.toolindex,
  16806. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16807. type: 2,
  16808. },
  16809. ];
  16810. this.ajax
  16811. .post(this.$store.state.api + "addCourseWorks", params)
  16812. .then((res) => {
  16813. this.$message({
  16814. message: "提交成功",
  16815. type: "success",
  16816. });
  16817. this.askList = [];
  16818. this.dialogVisible5 = false;
  16819. this.selectStudent();
  16820. this.selectSWorks();
  16821. this.selectSLook();
  16822. })
  16823. .catch((err) => {
  16824. this.$message.error("提交失败");
  16825. console.error(err);
  16826. });
  16827. },
  16828. addStudentAskTeacher() {
  16829. if (!this.radio.length) {
  16830. this.$message.error("请选择选项");
  16831. return;
  16832. }
  16833. for (var i = 0; i < this.askJson.askCount; i++) {
  16834. if (
  16835. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16836. (this.radio[i] !== 0 && !this.radio[i])
  16837. ) {
  16838. this.$message.error("请选择选项");
  16839. return;
  16840. }
  16841. }
  16842. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16843. let params = [
  16844. {
  16845. uid: this.sStudent.userid,
  16846. cid: this.id,
  16847. stage: this.courseType,
  16848. task: this.taskCount,
  16849. tool: this.toolindex,
  16850. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16851. type: 2,
  16852. },
  16853. ];
  16854. this.ajax
  16855. .post(this.$store.state.api + "addCourseWorks", params)
  16856. .then((res) => {
  16857. this.$message({
  16858. message: "提交成功",
  16859. type: "success",
  16860. });
  16861. this.askList = [];
  16862. this.dialogVisible5Teacher = false;
  16863. this.selectStudent();
  16864. this.selectSWorks();
  16865. this.selectSLook();
  16866. })
  16867. .catch((err) => {
  16868. this.$message.error("提交失败");
  16869. console.error(err);
  16870. });
  16871. },
  16872. addStudentTest() {
  16873. if (!this.radio.length) {
  16874. this.$message.error("请选择选项");
  16875. return;
  16876. }
  16877. for (var i = 0; i < this.testJson.testCount; i++) {
  16878. if (
  16879. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16880. (this.radio[i] !== 0 && !this.radio[i])
  16881. ) {
  16882. this.$message.error("请选择选项");
  16883. return;
  16884. }
  16885. }
  16886. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16887. let params = [
  16888. {
  16889. uid: this.userid,
  16890. cid: this.id,
  16891. stage: this.courseType,
  16892. task: this.taskCount,
  16893. tool: this.toolindex,
  16894. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16895. type: 8,
  16896. },
  16897. ];
  16898. this.ajax
  16899. .post(this.$store.state.api + "addCourseWorks", params)
  16900. .then((res) => {
  16901. this.$message({
  16902. message: "提交成功",
  16903. type: "success",
  16904. });
  16905. this.askList = [];
  16906. this.dialogVisibleChoice = false;
  16907. this.selectStudent();
  16908. this.selectSWorks();
  16909. this.selectSLook();
  16910. })
  16911. .catch((err) => {
  16912. this.$message.error("提交失败");
  16913. console.error(err);
  16914. });
  16915. },
  16916. addStudentTestTeacher() {
  16917. if (!this.radio.length) {
  16918. this.$message.error("请选择选项");
  16919. return;
  16920. }
  16921. for (var i = 0; i < this.testJson.testCount; i++) {
  16922. if (
  16923. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16924. (this.radio[i] !== 0 && !this.radio[i])
  16925. ) {
  16926. this.$message.error("请选择选项");
  16927. return;
  16928. }
  16929. }
  16930. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16931. let params = [
  16932. {
  16933. uid: this.sStudent.userid,
  16934. cid: this.id,
  16935. stage: this.courseType,
  16936. task: this.taskCount,
  16937. tool: this.toolindex,
  16938. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16939. type: 8,
  16940. },
  16941. ];
  16942. this.ajax
  16943. .post(this.$store.state.api + "addCourseWorks", params)
  16944. .then((res) => {
  16945. this.$message({
  16946. message: "提交成功",
  16947. type: "success",
  16948. });
  16949. this.askList = [];
  16950. this.dialogVisibleChoiceTeacher = false;
  16951. this.selectStudent();
  16952. this.selectSWorks();
  16953. this.selectSLook();
  16954. })
  16955. .catch((err) => {
  16956. this.$message.error("提交失败");
  16957. console.error(err);
  16958. });
  16959. },
  16960. addWork() {
  16961. if (this.studyJuri[0].content == "") {
  16962. this.$message.error("请将信息填写完整");
  16963. return;
  16964. } else if (this.studyJuri[0].cover.length == 0) {
  16965. this.$message.error("请将信息填写完整");
  16966. return;
  16967. } else if (this.studyJuri[0].upVedio.length == 0) {
  16968. this.$message.error("请将信息填写完整");
  16969. return;
  16970. }
  16971. if (this.isNoHomeWork) {
  16972. this.$confirm(
  16973. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  16974. "提示",
  16975. {
  16976. confirmButtonText: "确定",
  16977. cancelButtonText: "取消",
  16978. type: "warning",
  16979. }
  16980. )
  16981. .then(() => {
  16982. let params = [
  16983. {
  16984. uid: this.userid,
  16985. cid: this.id,
  16986. stage: this.courseType,
  16987. task: this.taskCount,
  16988. content: JSON.stringify(this.studyJuri),
  16989. },
  16990. ];
  16991. this.ajax
  16992. .post(this.$store.state.api + "addWorks", params)
  16993. .then((res) => {
  16994. this.$message({
  16995. message: "提交成功",
  16996. type: "success",
  16997. });
  16998. this.isNoHomeWork = true;
  16999. this.dialogVisible = false;
  17000. })
  17001. .catch((err) => {
  17002. this.$message.error("提交失败");
  17003. console.error(err);
  17004. });
  17005. })
  17006. .catch(() => {});
  17007. } else {
  17008. let params = [
  17009. {
  17010. uid: this.userid,
  17011. cid: this.id,
  17012. stage: this.courseType,
  17013. task: this.taskCount,
  17014. content: JSON.stringify(this.studyJuri),
  17015. },
  17016. ];
  17017. this.ajax
  17018. .post(this.$store.state.api + "addWorks", params)
  17019. .then((res) => {
  17020. this.$message({
  17021. message: "提交成功",
  17022. type: "success",
  17023. });
  17024. this.isNoHomeWork = true;
  17025. this.dialogVisible = false;
  17026. })
  17027. .catch((err) => {
  17028. this.$message.error("提交失败");
  17029. console.error(err);
  17030. });
  17031. }
  17032. },
  17033. selectCount() {
  17034. let params = {
  17035. cid: this.id,
  17036. chid: this.courseType,
  17037. uid: this.userid,
  17038. };
  17039. this.ajax
  17040. .get(this.$store.state.api + "selectToolsCount", params)
  17041. .then((res) => {
  17042. for (var i = 0; i < res.data[0].length; i++) {
  17043. if (res.data[0][i].tools == 1) {
  17044. this.wbCount = res.data[0][i].count;
  17045. } else if (res.data[0][i].tools == 2) {
  17046. this.wordCount = res.data[0][i].count;
  17047. } else if (res.data[0][i].tools == 3) {
  17048. this.mindCount = res.data[0][i].count;
  17049. } else if (res.data[0][i].tools == 4) {
  17050. this.askCount = res.data[0][i].count;
  17051. } else if (res.data[0][i].tools == 6) {
  17052. this.noteCount = res.data[0][i].count;
  17053. } else if (res.data[0][i].tools == 7) {
  17054. this.mindNetWorkCount = res.data[0][i].count;
  17055. } else if (res.data[0][i].tools == 8) {
  17056. this.libraryCount = res.data[0][i].count;
  17057. } else if (res.data[0][i].tools == 16) {
  17058. this.workCount = res.data[0][i].count;
  17059. } else if (res.data[0][i].tools == 10) {
  17060. this.timeCount = res.data[0][i].count;
  17061. } else if (res.data[0][i].tools == 15) {
  17062. this.answerCount = res.data[0][i].count;
  17063. } else if (res.data[0][i].tools == 18) {
  17064. this.trainCount = res.data[0][i].count;
  17065. }
  17066. }
  17067. })
  17068. .catch((err) => {
  17069. console.error(err);
  17070. });
  17071. },
  17072. openTools(t, i, index, c, sName,id) {
  17073. var z = JSON.parse(c);
  17074. this.noteName = sName;
  17075. if (t == 4) {
  17076. this.radio = [];
  17077. this.isAnswer = false;
  17078. let b = z[0].anwer;
  17079. this.radio = b;
  17080. this.askJson = z[0].askJson;
  17081. this.isAnswer = true;
  17082. this.dialogVisible5 = true;
  17083. } else if (t == 45) {
  17084. this.radio = [];
  17085. this.isAnswer = false;
  17086. let b = z[0].anwer;
  17087. this.radio = b;
  17088. this.testJson = z[0].testJson;
  17089. this.isAnswer = true;
  17090. this.dialogVisibleChoice = true;
  17091. }else if(t == 69){
  17092. this.oldEnglishJson1 = {}
  17093. this.oldEnglishJson = {}
  17094. this.englishList1 = {}
  17095. this.newEngIndex = -1;
  17096. this.isNoUserid = false;
  17097. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17098. .toolChoose[i].englishList;
  17099. this.oldEnglishJson = z;
  17100. this.engWid = id;
  17101. this.newEnglishList = { engTitle:"",engText:"" }
  17102. this.newEnglishList1 = []
  17103. this.selectEngC(id,z);
  17104. }
  17105. // else if (t == 15) {
  17106. // this.answerQ = "";
  17107. // this.questionAnswer = "";
  17108. // this.answerQ = z[0].answerTitle;
  17109. // this.questionAnswer = z[0].answer;
  17110. // this.answerDialogVisible = true;
  17111. // }
  17112. },
  17113. fastText(p, t) {
  17114. if (t == 1) {
  17115. this.commentText += p;
  17116. } else {
  17117. this.eScore.eBzText += p;
  17118. }
  17119. },
  17120. addTools(t, i, index) {
  17121. var a = 0;
  17122. // this.taskCount = index;
  17123. this.toolindex = i;
  17124. if (t == 1) {
  17125. if (this.wbCount > 0) {
  17126. this.updateCount(this.wbCount, t);
  17127. } else {
  17128. this.wbCount++;
  17129. a = this.wbCount;
  17130. this.toolsCount(a, t);
  17131. }
  17132. window.parent.postMessage(
  17133. {
  17134. tools: "1",
  17135. cid: this.id,
  17136. stage: this.courseType,
  17137. task: this.taskCount,
  17138. tool: i,
  17139. },
  17140. "*"
  17141. );
  17142. } else if (t == 2) {
  17143. if (this.wordCount > 0) {
  17144. this.updateCount(this.wordCount, t);
  17145. } else {
  17146. this.wordCount++;
  17147. a = this.wordCount;
  17148. this.toolsCount(a, t);
  17149. }
  17150. window.parent.postMessage({ tools: "2" }, "*");
  17151. } else if (t == 3) {
  17152. if (this.mindCount > 0) {
  17153. this.updateCount(this.mindCount, t);
  17154. } else {
  17155. this.mindCount++;
  17156. a = this.mindCount;
  17157. this.toolsCount(a, t);
  17158. }
  17159. window.parent.postMessage(
  17160. {
  17161. tools: "3",
  17162. cid: this.id,
  17163. stage: this.courseType,
  17164. task: this.taskCount,
  17165. tool: i,
  17166. },
  17167. "*"
  17168. );
  17169. } else if (t == 4) {
  17170. this.radio = [];
  17171. this.noteName = "";
  17172. this.isAnswer = false;
  17173. if (this.askCount > 0) {
  17174. this.updateCount(this.askCount, t);
  17175. } else {
  17176. this.askCount++;
  17177. a = this.askCount;
  17178. this.toolsCount(a, t);
  17179. }
  17180. if (!this.dialogVisible2) {
  17181. this.askJson.askJson =
  17182. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17183. index
  17184. ].toolChoose[i].askJson;
  17185. this.askJson.askTitle =
  17186. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17187. index
  17188. ].toolChoose[i].askTitle;
  17189. this.askJson.askCount =
  17190. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17191. index
  17192. ].toolChoose[i].askCount;
  17193. } else {
  17194. this.askJson.askJson = this.chapTools.askJson.askJson;
  17195. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17196. this.askJson.askCount = this.chapTools.askJson.askCount;
  17197. }
  17198. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17199. if (this.askJson.askJson[k].type == "2") {
  17200. this.radio.push([]);
  17201. } else {
  17202. this.radio.push("");
  17203. }
  17204. }
  17205. this.dialogVisible5 = true;
  17206. // window.parent.postMessage({ tools: "4" }, "*");
  17207. } else if (t == 45) {
  17208. this.noteName = "";
  17209. this.radio = [];
  17210. this.isAnswer = false;
  17211. if (this.askCount > 0) {
  17212. this.updateCount(this.askCount, t);
  17213. } else {
  17214. this.askCount++;
  17215. a = this.askCount;
  17216. this.toolsCount(a, t);
  17217. }
  17218. this.testJson =
  17219. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17220. index
  17221. ].toolChoose[i].testJson;
  17222. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17223. if (this.testJson.testJson[k].type == "2") {
  17224. this.radio.push([]);
  17225. } else {
  17226. this.radio.push("");
  17227. }
  17228. }
  17229. this.dialogVisibleChoice = true;
  17230. // window.parent.postMessage({ tools: "4" }, "*");
  17231. } else if (t == 5) {
  17232. if (this.scoreCount > 0) {
  17233. this.updateCount(this.scoreCount, t);
  17234. } else {
  17235. this.scoreCount++;
  17236. a = this.scoreCount;
  17237. this.toolsCount(a, t);
  17238. }
  17239. this.dialogVisible4 = true;
  17240. // window.parent.postMessage({ tools: "5" }, "*");
  17241. } else if (t == 6) {
  17242. if (this.noteCount > 0) {
  17243. this.updateCount(this.noteCount, t);
  17244. } else {
  17245. this.noteCount++;
  17246. a = this.noteCount;
  17247. this.toolsCount(a, t);
  17248. }
  17249. window.parent.postMessage(
  17250. {
  17251. tools: "6",
  17252. cid: this.id,
  17253. stage: this.courseType,
  17254. task: this.taskCount,
  17255. tool: i,
  17256. },
  17257. "*"
  17258. );
  17259. } else if (t == 7) {
  17260. if (this.mindNetWorkCount > 0) {
  17261. this.updateCount(this.mindNetWorkCount, t);
  17262. } else {
  17263. this.mindNetWorkCount++;
  17264. a = this.mindNetWorkCount;
  17265. this.toolsCount(a, t);
  17266. }
  17267. window.parent.postMessage(
  17268. {
  17269. tools: "7",
  17270. cid: this.id,
  17271. stage: this.courseType,
  17272. task: this.taskCount,
  17273. tool: i,
  17274. },
  17275. "*"
  17276. );
  17277. } else if (t == 16) {
  17278. if (this.workCount > 0) {
  17279. this.updateCount(this.workCount, t);
  17280. } else {
  17281. this.workCount++;
  17282. a = this.workCount;
  17283. this.toolsCount(a, t);
  17284. }
  17285. this.dialogVisible = true;
  17286. } else if (t == 50) {
  17287. if (this.tType == 2) {
  17288. this.$message.error("不支持学生使用");
  17289. return;
  17290. }
  17291. this.plworkFile = [];
  17292. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  17293. if (!this.uploadCid) {
  17294. this.$message.error(
  17295. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  17296. );
  17297. return;
  17298. }
  17299. // this.uploadCid =
  17300. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17301. // index
  17302. // ].toolChoose[i].uploadJson[0];
  17303. this.selectUploadStudent(2);
  17304. } else if (t == 8) {
  17305. if (this.libraryCount > 0) {
  17306. this.updateCount(this.libraryCount, t);
  17307. } else {
  17308. this.libraryCount++;
  17309. a = this.libraryCount;
  17310. this.toolsCount(a, t);
  17311. }
  17312. window.parent.postMessage({ tools: "8" }, "*");
  17313. } else if (t == 17) {
  17314. if (this.libraryCount > 0) {
  17315. this.updateCount(this.libraryCount, t);
  17316. } else {
  17317. this.libraryCount++;
  17318. a = this.libraryCount;
  17319. this.toolsCount(a, t);
  17320. }
  17321. window.parent.postMessage({ tools: "17" }, "*");
  17322. } else if (t == 18) {
  17323. if (this.trainCount > 0) {
  17324. this.updateCount(this.trainCount, t);
  17325. } else {
  17326. this.trainCount++;
  17327. a = this.trainCount;
  17328. this.toolsCount(a, t);
  17329. }
  17330. window.parent.postMessage({ tools: "18" }, "*");
  17331. } else if (t == 10) {
  17332. if (this.timeCount > 0) {
  17333. this.updateCount(this.timeCount, t);
  17334. } else {
  17335. this.timeCount++;
  17336. a = this.timeCount;
  17337. this.toolsCount(a, t);
  17338. }
  17339. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  17340. .taskJson[index].toolChoose[i].preTime
  17341. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17342. .toolChoose[i].preTime
  17343. : "";
  17344. this.timeDialogVisible = true;
  17345. } else if (t == 15) {
  17346. this.answerQ = "";
  17347. this.questionAnswer = "";
  17348. if (this.answerCount > 0) {
  17349. this.updateCount(this.answerCount, t);
  17350. } else {
  17351. this.answerCount++;
  17352. a = this.answerCount;
  17353. this.toolsCount(a, t);
  17354. }
  17355. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17356. .taskJson[index].toolChoose[i].answerQ
  17357. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17358. .toolChoose[i].answerQ
  17359. : "";
  17360. this.answerDialogVisible = true;
  17361. } else if (t == 21) {
  17362. window.parent.postMessage({ tools: "21" }, "*");
  17363. } else if (t == 22) {
  17364. window.parent.postMessage({ tools: "22" }, "*");
  17365. } else if (t == 23) {
  17366. window.parent.postMessage({ tools: "23" }, "*");
  17367. } else if (t == 24) {
  17368. window.parent.postMessage({ tools: "24" }, "*");
  17369. } else if (t == 25) {
  17370. window.parent.postMessage({ tools: "25" }, "*");
  17371. } else if (t == 31) {
  17372. window.parent.postMessage({ tools: "31" }, "*");
  17373. } else if (t == 28) {
  17374. window.parent.postMessage({ tools: "28" }, "*");
  17375. } else if (t == 37) {
  17376. window.parent.postMessage({ tools: "37" }, "*");
  17377. } else if (t == 38) {
  17378. window.parent.postMessage({ tools: "38" }, "*");
  17379. } else if (t == 39) {
  17380. window.parent.postMessage({ tools: "39" }, "*");
  17381. } else if (t == 32) {
  17382. window.parent.postMessage({ tools: "32" }, "*");
  17383. } else if (t == 66) {
  17384. window.parent.postMessage({ tools: "66" }, "*");
  17385. } else if (t == 67) {
  17386. window.parent.postMessage({ tools: "67" }, "*");
  17387. } else if (t == 68) {
  17388. window.parent.postMessage({ tools: "68" }, "*");
  17389. } else if (t == 57) {
  17390. // window.parent.postMessage({ tools: "57" }, "*");
  17391. window.parent.postMessage(
  17392. {
  17393. tools: "57u",
  17394. cid: this.id,
  17395. stage: this.courseType,
  17396. task: this.taskCount,
  17397. tool: i,
  17398. },
  17399. "*"
  17400. );
  17401. } else if (t == 58) {
  17402. window.parent.postMessage({ tools: "58" }, "*");
  17403. } else if (t == 59) {
  17404. window.parent.postMessage({ tools: "59" }, "*");
  17405. } else if (t == 60) {
  17406. window.parent.postMessage({ tools: "60" }, "*");
  17407. } else if (t == 61) {
  17408. window.parent.postMessage({ tools: "61" }, "*");
  17409. } else if (t == 63) {
  17410. window.parent.postMessage({ tools: "63" }, "*");
  17411. } else if (t == 69) {
  17412. if (this.worksStudent[i].length) {
  17413. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17414. if (this.userid == this.worksStudent[i][k].userid) {
  17415. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  17416. break;
  17417. } else {
  17418. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  17419. }
  17420. }
  17421. } else {
  17422. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  17423. }
  17424. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  17425. .taskJson[index].toolChoose[i].englishList
  17426. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17427. .toolChoose[i].englishList
  17428. : {};
  17429. this.englishToolIndex = i;
  17430. this.engDialogVisible = true;
  17431. } else if (t == 65) {
  17432. if (this.tType == 2) {
  17433. this.$message.error("不支持学生使用");
  17434. return;
  17435. }
  17436. this.uploadCid = this.tcid;
  17437. if (!this.uploadCid) {
  17438. this.$message.error(
  17439. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  17440. );
  17441. return;
  17442. }
  17443. this.selectPickStudent();
  17444. } else if (t == 26) {
  17445. window.parent.postMessage(
  17446. {
  17447. tools: "26",
  17448. cid: this.id,
  17449. stage: this.courseType,
  17450. task: this.taskCount,
  17451. tool: i,
  17452. },
  17453. "*"
  17454. );
  17455. } else if (t == 40) {
  17456. if (this.evalCount > 0) {
  17457. this.updateCount(this.evalCount, t);
  17458. } else {
  17459. this.evalCount++;
  17460. a = this.evalCount;
  17461. this.toolsCount(a, t);
  17462. }
  17463. this.eScore = { eBzText: "", eStar: [] };
  17464. if (this.worksStudent[i].length) {
  17465. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17466. if (this.userid == this.worksStudent[i][k].userid) {
  17467. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  17468. this.rateJson =
  17469. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17470. index
  17471. ].toolChoose[i].rateJson;
  17472. break;
  17473. } else {
  17474. this.rateJson =
  17475. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17476. index
  17477. ].toolChoose[i].rateJson;
  17478. }
  17479. }
  17480. } else {
  17481. this.rateJson =
  17482. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17483. index
  17484. ].toolChoose[i].rateJson;
  17485. }
  17486. this.isStar = false;
  17487. this.studentEvalDialogVisible = true;
  17488. } else if (t == 41) {
  17489. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17490. .taskJson[index].toolChoose[i].selectJson
  17491. ? JSON.parse(
  17492. JSON.stringify(
  17493. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17494. index
  17495. ].toolChoose[i].selectJson
  17496. )
  17497. )
  17498. : { url: "", select: [], answer: [] };
  17499. if (this.worksStudent[i].length) {
  17500. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17501. if (this.userid == this.worksStudent[i][k].userid) {
  17502. var a = this.worksStudent[i][k].works.split(",");
  17503. for (var ki = 0; ki < a.length; ki++) {
  17504. a[ki] = parseInt(a[ki]);
  17505. }
  17506. this.selectAnswer = {
  17507. answer: a,
  17508. stu: this.worksStudent[i][k].sName,
  17509. };
  17510. break;
  17511. } else {
  17512. this.selectAnswer = { answer: [], stu: "" };
  17513. }
  17514. }
  17515. } else {
  17516. this.selectAnswer = { answer: [], stu: "" };
  17517. }
  17518. this.isSelect = false;
  17519. this.dialogVisibleSelect = true;
  17520. } else if (t == 44) {
  17521. window.parent.postMessage({ tools: "44" }, "*");
  17522. } else if (t == 47) {
  17523. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  17524. .taskJson[index].toolChoose[i].sentenceList
  17525. ? JSON.parse(
  17526. JSON.stringify(
  17527. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17528. index
  17529. ].toolChoose[i].sentenceList
  17530. )
  17531. )
  17532. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  17533. for (var q = 0; q < this.sentenceList.length; q++) {
  17534. this.sentenceList[q].chooseSenList = [];
  17535. this.sentenceList[q].addChangeSen = [];
  17536. this.sentenceList[q].addChangeSen = JSON.parse(
  17537. JSON.stringify(this.sentenceList[q].addSentence)
  17538. );
  17539. this.sentenceList[q].chooseSenList.length =
  17540. this.sentenceList[q].rightAnswer.length;
  17541. }
  17542. this.dialogVisibleSentence = true;
  17543. } else if (t == 48) {
  17544. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17545. .taskJson[index].toolChoose[i].tableJson
  17546. ? JSON.parse(
  17547. JSON.stringify(
  17548. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17549. index
  17550. ].toolChoose[i].tableJson
  17551. )
  17552. )
  17553. : { text: "" };
  17554. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  17555. if (this.worksStudent[i].length) {
  17556. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17557. if (this.userid == this.worksStudent[i][k].userid) {
  17558. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  17559. break;
  17560. }
  17561. }
  17562. }
  17563. this.dialogVisibleTable = true;
  17564. } else if (t == 52) {
  17565. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17566. .taskJson[index].toolChoose[i].wordJson
  17567. ? JSON.parse(
  17568. JSON.stringify(
  17569. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17570. index
  17571. ].toolChoose[i].wordJson
  17572. )
  17573. )
  17574. : { text: "" };
  17575. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  17576. if (this.worksStudent[i].length) {
  17577. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17578. if (this.userid == this.worksStudent[i][k].userid) {
  17579. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  17580. break;
  17581. }
  17582. }
  17583. }
  17584. this.dialogVisibleWord = true;
  17585. } else if (t == 49) {
  17586. this.groupJson =
  17587. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17588. index
  17589. ].toolChoose[i].groupJson;
  17590. this.islock = this.groupJson.islock == 1 ? true : false;
  17591. this.dialogVisibleGroup = true;
  17592. } else if (t == 62) {
  17593. this.videoJson =
  17594. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17595. index
  17596. ].toolChoose[i].videoJson;
  17597. this.dialogVisibleVideo = true;
  17598. }
  17599. },
  17600. teacherWorkSubmit(t, i, index, s) {
  17601. this.sStudent = s;
  17602. this.toolindex = i;
  17603. this.sTool = t;
  17604. if (this.tType !== "1" && this.tType !== "4") {
  17605. return;
  17606. }
  17607. if (t == 16 || t == 32 || t == 50) {
  17608. this.dialogVisibleWorks = true;
  17609. } else if (t == 15) {
  17610. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17611. .taskJson[index].toolChoose[i].answerQ
  17612. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17613. .toolChoose[i].answerQ
  17614. : "";
  17615. this.questionAnswer = "";
  17616. this.answerDialogVisibleTeacher = true; //问答
  17617. } else if (t == 52) {
  17618. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17619. .taskJson[index].toolChoose[i].wordJson
  17620. ? JSON.parse(
  17621. JSON.stringify(
  17622. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17623. index
  17624. ].toolChoose[i].wordJson
  17625. )
  17626. )
  17627. : { text: "" };
  17628. if (this.worksStudent[i].length) {
  17629. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17630. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17631. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  17632. break;
  17633. }
  17634. }
  17635. }
  17636. this.dialogVisibleWordTeacher = true; //文档
  17637. } else if (t == 4) {
  17638. this.radio = [];
  17639. this.noteName = "";
  17640. this.isAnswer = false;
  17641. if (this.askCount > 0) {
  17642. this.updateCount(this.askCount, t);
  17643. } else {
  17644. this.askCount++;
  17645. a = this.askCount;
  17646. this.toolsCount(a, t);
  17647. }
  17648. if (!this.dialogVisible2) {
  17649. this.askJson.askJson =
  17650. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17651. index
  17652. ].toolChoose[i].askJson;
  17653. this.askJson.askTitle =
  17654. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17655. index
  17656. ].toolChoose[i].askTitle;
  17657. this.askJson.askCount =
  17658. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17659. index
  17660. ].toolChoose[i].askCount;
  17661. } else {
  17662. this.askJson.askJson = this.chapTools.askJson.askJson;
  17663. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17664. this.askJson.askCount = this.chapTools.askJson.askCount;
  17665. }
  17666. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17667. if (this.askJson.askJson[k].type == "2") {
  17668. this.radio.push([]);
  17669. } else {
  17670. this.radio.push("");
  17671. }
  17672. }
  17673. this.dialogVisible5Teacher = true;
  17674. } else if (t == 45) {
  17675. this.noteName = "";
  17676. this.radio = [];
  17677. this.isAnswer = false;
  17678. if (this.askCount > 0) {
  17679. this.updateCount(this.askCount, t);
  17680. } else {
  17681. this.askCount++;
  17682. a = this.askCount;
  17683. this.toolsCount(a, t);
  17684. }
  17685. this.testJson =
  17686. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17687. index
  17688. ].toolChoose[i].testJson;
  17689. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17690. if (this.testJson.testJson[k].type == "2") {
  17691. this.radio.push([]);
  17692. } else {
  17693. this.radio.push("");
  17694. }
  17695. }
  17696. this.dialogVisibleChoiceTeacher = true;
  17697. } else if (t == 41) {
  17698. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17699. .taskJson[index].toolChoose[i].selectJson
  17700. ? JSON.parse(
  17701. JSON.stringify(
  17702. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17703. index
  17704. ].toolChoose[i].selectJson
  17705. )
  17706. )
  17707. : { url: "", select: [], answer: [] };
  17708. if (this.worksStudent[i].length) {
  17709. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17710. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17711. var a = this.worksStudent[i][k].works.split(",");
  17712. for (var ki = 0; ki < a.length; ki++) {
  17713. a[ki] = parseInt(a[ki]);
  17714. }
  17715. this.selectAnswer = {
  17716. answer: a,
  17717. stu: this.worksStudent[i][k].sName,
  17718. };
  17719. break;
  17720. } else {
  17721. this.selectAnswer = { answer: [], stu: "" };
  17722. }
  17723. }
  17724. } else {
  17725. this.selectAnswer = { answer: [], stu: "" };
  17726. }
  17727. this.isSelect = false;
  17728. this.dialogVisibleSelectTeacher = true;
  17729. } else if (t == 47) {
  17730. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  17731. .taskJson[index].toolChoose[i].sentenceList
  17732. ? JSON.parse(
  17733. JSON.stringify(
  17734. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17735. index
  17736. ].toolChoose[i].sentenceList
  17737. )
  17738. )
  17739. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  17740. for (var q = 0; q < this.sentenceList.length; q++) {
  17741. this.sentenceList[q].chooseSenList = [];
  17742. this.sentenceList[q].addChangeSen = [];
  17743. this.sentenceList[q].addChangeSen = JSON.parse(
  17744. JSON.stringify(this.sentenceList[q].addSentence)
  17745. );
  17746. this.sentenceList[q].chooseSenList.length =
  17747. this.sentenceList[q].rightAnswer.length;
  17748. }
  17749. this.dialogVisibleSentenceTeacher = true;
  17750. } else if (t == 48) {
  17751. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17752. .taskJson[index].toolChoose[i].tableJson
  17753. ? JSON.parse(
  17754. JSON.stringify(
  17755. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17756. index
  17757. ].toolChoose[i].tableJson
  17758. )
  17759. )
  17760. : { text: "" };
  17761. if (this.worksStudent[i].length) {
  17762. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17763. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17764. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  17765. break;
  17766. }
  17767. }
  17768. }
  17769. this.dialogVisibleTableTeacher = true;
  17770. } else if (t == 40) {
  17771. if (this.evalCount > 0) {
  17772. this.updateCount(this.evalCount, t);
  17773. } else {
  17774. this.evalCount++;
  17775. a = this.evalCount;
  17776. this.toolsCount(a, t);
  17777. }
  17778. this.eScore = { eBzText: "", eStar: [] };
  17779. if (this.worksStudent[i].length) {
  17780. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17781. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17782. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  17783. this.rateJson =
  17784. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17785. index
  17786. ].toolChoose[i].rateJson;
  17787. break;
  17788. } else {
  17789. this.rateJson =
  17790. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17791. index
  17792. ].toolChoose[i].rateJson;
  17793. }
  17794. }
  17795. } else {
  17796. this.rateJson =
  17797. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17798. index
  17799. ].toolChoose[i].rateJson;
  17800. }
  17801. this.isStar = false;
  17802. this.studentEvalDialogVisibleTeacher = true;
  17803. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  17804. window.parent.postMessage(
  17805. {
  17806. tools: t + "teacher",
  17807. cid: this.id,
  17808. stage: this.courseType,
  17809. task: this.taskCount,
  17810. tool: i,
  17811. student: this.sStudent,
  17812. },
  17813. "*"
  17814. );
  17815. }
  17816. },
  17817. openCocoPi(tool, i, uid, uname) {
  17818. let student = {
  17819. userid: uid,
  17820. student: uname,
  17821. };
  17822. if (tool == 57) {
  17823. window.parent.postMessage(
  17824. {
  17825. tools: tool + "teacher",
  17826. cid: this.id,
  17827. stage: this.courseType,
  17828. task: this.taskCount,
  17829. tool: i,
  17830. student: student,
  17831. },
  17832. "*"
  17833. );
  17834. }
  17835. },
  17836. setRightAnswer(s, i, j) {
  17837. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  17838. if (
  17839. this.sentenceList[i].chooseSenList[q] == undefined ||
  17840. this.sentenceList[i].chooseSenList[q] == ""
  17841. ) {
  17842. this.sentenceList[i].chooseSenList[q] = s;
  17843. this.sentenceList[i].addChangeSen[j] = "";
  17844. break;
  17845. }
  17846. }
  17847. this.$forceUpdate();
  17848. },
  17849. returnCard(r, i, j) {
  17850. var a = this.sentenceList[i].addSentence.indexOf(r);
  17851. this.sentenceList[i].chooseSenList[j] = "";
  17852. this.sentenceList[i].addChangeSen[a] = r;
  17853. this.$forceUpdate();
  17854. },
  17855. // addSentenceTool() {
  17856. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17857. // this.taskCount
  17858. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  17859. // this.sentenceList = [
  17860. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  17861. // ];
  17862. // this.dialogVisibleSentence = false;
  17863. // },
  17864. toolsCount(a, t) {
  17865. let params = {
  17866. cid: this.id,
  17867. chid: this.courseType,
  17868. uid: this.userid,
  17869. tid: t,
  17870. count: a,
  17871. };
  17872. this.ajax
  17873. .get(this.$store.state.api + "insertToolsCount", params)
  17874. .then((res) => {
  17875. this.selectCount();
  17876. })
  17877. .catch((err) => {
  17878. console.error(err);
  17879. });
  17880. },
  17881. updateCount(c, t) {
  17882. c++;
  17883. let params = {
  17884. cid: this.id,
  17885. chid: this.courseType,
  17886. uid: this.userid,
  17887. tid: t,
  17888. count: c,
  17889. };
  17890. this.ajax
  17891. .get(this.$store.state.api + "updateToolsCount", params)
  17892. .then((res) => {
  17893. this.selectCount();
  17894. })
  17895. .catch((err) => {
  17896. console.error(err);
  17897. });
  17898. },
  17899. checkEva() {
  17900. if (this.evalua != "") {
  17901. for (var i = 0; i < this.evaJuri.length; i++) {
  17902. if (this.evalua == this.evaJuri[i].id) {
  17903. this.eTitle = this.evaJuri[i].title;
  17904. this.eJson = JSON.parse(this.evaJuri[i].content);
  17905. }
  17906. }
  17907. this.$forceUpdate();
  17908. setTimeout(() => {
  17909. this.setMindData();
  17910. }, 0);
  17911. }
  17912. },
  17913. selectEva() {
  17914. let params = {
  17915. oid: this.oid,
  17916. };
  17917. this.ajax
  17918. .get(this.$store.state.api + "selectAllEvaluation", params)
  17919. .then((res) => {
  17920. this.evaJuri = res.data[0];
  17921. })
  17922. .catch((err) => {
  17923. console.error(err);
  17924. });
  17925. },
  17926. setMindData() {
  17927. this.data.data = [];
  17928. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  17929. let _eJson = Object.keys(this.eJson);
  17930. let _e = this.eJson;
  17931. for (let i = 0; i < _eJson.length; i++) {
  17932. let element = _e[_eJson[i]];
  17933. this.data.data.push({
  17934. id: element.id,
  17935. parentid: "root",
  17936. topic: element.name,
  17937. });
  17938. let _eJsonc = Object.keys(element.child);
  17939. let _e2 = element.child;
  17940. for (let j = 0; j < _eJsonc.length; j++) {
  17941. let _ec = _e2[_eJsonc[j]];
  17942. this.data.data.push({
  17943. id: _ec.id,
  17944. parentid: element.id,
  17945. topic: _ec.name,
  17946. });
  17947. let _eJsonz = Object.keys(_ec.child);
  17948. let _e3 = _ec.child;
  17949. for (let z = 0; z < _eJsonz.length; z++) {
  17950. let _ez = _e3[_eJsonz[z]];
  17951. this.data.data.push({
  17952. id: _ez.id,
  17953. parentid: _ec.id,
  17954. topic: _ez.name,
  17955. });
  17956. }
  17957. }
  17958. }
  17959. this.$forceUpdate();
  17960. },
  17961. checkFileFull(type, url) {
  17962. this.fullDialogVisible = true;
  17963. this.fulltype = type;
  17964. this.fullUrl = url;
  17965. },
  17966. checkFileFull1(t, f) {
  17967. this.fullDialogVisible = true;
  17968. if (t == 6) {
  17969. this.fulltype = 1;
  17970. this.fullUrl = JSON.parse(JSON.stringify(f));
  17971. } else if (t == 8) {
  17972. this.fulltype = 2;
  17973. this.fullUrl = f.url;
  17974. } else if (
  17975. t == 3 &&
  17976. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17977. "PDF"
  17978. ) {
  17979. this.fulltype = 3;
  17980. this.fullUrl = f.url;
  17981. } else if (t == 3) {
  17982. this.fulltype = 2;
  17983. this.fullUrl =
  17984. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(f.url);
  17985. }
  17986. },
  17987. openSname(n, id, i, uid) {
  17988. this.snameWid = id;
  17989. this.worksSName = n;
  17990. this.worksSid = uid == n ? "" : uid;
  17991. this.toolindex = i;
  17992. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  17993. if (!this.uploadCid) {
  17994. this.$message.error(
  17995. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  17996. );
  17997. return;
  17998. }
  17999. this.selectUploadStudent(1);
  18000. },
  18001. updateName() {
  18002. let params = {
  18003. n: this.worksSName,
  18004. cid: this.snameWid,
  18005. };
  18006. this.ajax
  18007. .get(this.$store.state.api + "updateCourseWorksName", params)
  18008. .then((res) => {
  18009. this.$message({
  18010. message: "修改成功",
  18011. type: "success",
  18012. });
  18013. this.dialogVisibleSname = false;
  18014. this.getCourseDetail(2);
  18015. this.snameWid = "";
  18016. this.worksSName = "";
  18017. })
  18018. .catch((err) => {
  18019. console.error(err);
  18020. });
  18021. },
  18022. downloadFile2(f) {
  18023. // const loading = this.$loading.service({
  18024. // background: "rgba(255, 255, 255, 0.7)",
  18025. // target: document.body,
  18026. // text: "文件加载中...",
  18027. // });
  18028. // let url2 = f.url;
  18029. // let _url2 = "";
  18030. // if (
  18031. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18032. // ) {
  18033. // _url2 = url2.split(
  18034. // "https://view.officeapps.live.com/op/view.aspx?src="
  18035. // )[1];
  18036. // } else {
  18037. // _url2 = url2;
  18038. // }
  18039. // let params = {
  18040. // url: _url2,
  18041. // name: f.name,
  18042. // };
  18043. // this.ajax
  18044. // .get(this.$store.state.api + "download", params)
  18045. // .then((res) => {
  18046. // loading.close();
  18047. // let content = res.data.data.data;
  18048. // let ab = new ArrayBuffer(content.length);
  18049. // let view = new Uint8Array(ab);
  18050. // for (var i = 0; i < content.length; ++i) {
  18051. // view[i] = content[i];
  18052. // }
  18053. // let elink = document.createElement("a");
  18054. // elink.download = f.name;
  18055. // elink.style.display = "none";
  18056. // let blob = new Blob([ab], {
  18057. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  18058. // });
  18059. // elink.href = URL.createObjectURL(blob);
  18060. // document.body.appendChild(elink);
  18061. // elink.click();
  18062. // document.body.removeChild(elink);
  18063. // })
  18064. // .catch((err) => {
  18065. // loading.close();
  18066. // console.error(err);
  18067. // });
  18068. var credentials = {
  18069. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18070. secretAccessKey: "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",
  18071. }; //秘钥形式的登录上传
  18072. window.AWS.config.update(credentials);
  18073. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18074. let url2 = f.url;
  18075. let _url2 = "";
  18076. if (
  18077. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18078. ) {
  18079. _url2 = url2.split(
  18080. "https://view.officeapps.live.com/op/view.aspx?src="
  18081. )[1];
  18082. } else {
  18083. _url2 = url2;
  18084. }
  18085. let _this = this;
  18086. _this.downLoading = true
  18087. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18088. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18089. var params = {
  18090. Bucket: "ccrb",
  18091. Key: name
  18092. };
  18093. s3.getObject(params, function (err, data) {
  18094. _this.downLoading = false
  18095. if (err) console.log(err, err.stack); // an error occurred
  18096. else {
  18097. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18098. let a = document.createElement("a");
  18099. a.name = f.name;
  18100. a.href = url;
  18101. a.download = f.name;
  18102. a.click();
  18103. console.log(data);
  18104. } // sxuccessful response
  18105. });
  18106. return;
  18107. let url = f.url;
  18108. let _url = "";
  18109. if (
  18110. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18111. ) {
  18112. _url = url.split(
  18113. "https://view.officeapps.live.com/op/view.aspx?src="
  18114. )[1];
  18115. } else {
  18116. _url = url;
  18117. }
  18118. _this.downLoading = true
  18119. // const loading = _this.$loading.service({
  18120. // background: "rgba(255, 255, 255, 0.7)",
  18121. // target: document.body,
  18122. // text: "文件加载中...",
  18123. // });
  18124. let x = new XMLHttpRequest();
  18125. x.open("GET", _url, true);
  18126. x.responseType = "blob";
  18127. x.onload = function () {
  18128. _this.downLoading = false
  18129. // loading.close();
  18130. let url = window.URL.createObjectURL(new Blob([x.response]));
  18131. let a = document.createElement("a");
  18132. a.name = f.name;
  18133. a.href = url;
  18134. a.download = f.name;
  18135. a.click();
  18136. };
  18137. x.send();
  18138. },
  18139. downloadFile(url) {
  18140. var credentials = {
  18141. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18142. secretAccessKey: "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",
  18143. }; //秘钥形式的登录上传
  18144. window.AWS.config.update(credentials);
  18145. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18146. let url2 = url;
  18147. let _url2 = "";
  18148. if (
  18149. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18150. ) {
  18151. _url2 = url2.split(
  18152. "https://view.officeapps.live.com/op/view.aspx?src="
  18153. )[1];
  18154. } else {
  18155. _url2 = url2;
  18156. }
  18157. const loading2 = this.$loading.service({
  18158. background: "rgba(255, 255, 255, 0.7)",
  18159. target: document.body,
  18160. text: "文件加载中...",
  18161. });
  18162. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18163. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18164. var params = {
  18165. Bucket: "ccrb",
  18166. Key: name
  18167. };
  18168. s3.getObject(params, function (err, data) {
  18169. loading2.close();
  18170. if (err) console.log(err, err.stack); // an error occurred
  18171. else {
  18172. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18173. let a = document.createElement("a");
  18174. a.name = name;
  18175. a.href = url;
  18176. a.download = name;
  18177. a.click();
  18178. console.log(data);
  18179. } // sxuccessful response
  18180. });
  18181. return;
  18182. let _this = this;
  18183. let _url = "";
  18184. if (
  18185. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18186. ) {
  18187. _url = url.split(
  18188. "https://view.officeapps.live.com/op/view.aspx?src="
  18189. )[1];
  18190. } else {
  18191. _url = url;
  18192. }
  18193. const x = new XMLHttpRequest();
  18194. x.open("GET", _url, true);
  18195. x.responseType = "blob";
  18196. const loading = _this.$loading.service({
  18197. background: "rgba(255, 255, 255, 0.7)",
  18198. target: document.body,
  18199. text: "文件加载中...",
  18200. });
  18201. // _this.$message.success("文件下载中...");
  18202. x.onload = function (e) {
  18203. loading.close();
  18204. let content = x.response;
  18205. let elink = document.createElement("a");
  18206. elink.download = decodeURI(
  18207. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  18208. );
  18209. elink.style.display = "none";
  18210. let blob = new Blob([content]);
  18211. elink.href = URL.createObjectURL(blob);
  18212. document.body.appendChild(elink);
  18213. elink.click();
  18214. document.body.removeChild(elink);
  18215. };
  18216. x.send();
  18217. },
  18218. openLine(url) {
  18219. window.open(url);
  18220. },
  18221. resize() {
  18222. if (document.getElementsByClassName("box_course").length) {
  18223. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  18224. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  18225. if (this.showType == 2 || this.showType == 3) {
  18226. document.getElementsByClassName("navBox")[0].style.height =
  18227. a - 40 + 46 + "px";
  18228. } else {
  18229. document.getElementsByClassName("navBox")[0].style.height =
  18230. a - 40 + "px";
  18231. }
  18232. }
  18233. this.Stbodywidth =
  18234. document.getElementsByClassName("student_body").length &&
  18235. document.getElementsByClassName("student_body")[0].offsetWidth;
  18236. },
  18237. closeDraw() {
  18238. this.bg = null;
  18239. this.drawShow = false;
  18240. },
  18241. showPicturePaint(url) {
  18242. let params = {
  18243. img: url,
  18244. };
  18245. this.ajax
  18246. .get(this.$store.state.api + "imgToBase64", params)
  18247. .then((res) => {
  18248. this.drawShow = true;
  18249. this.bg = res.data[0].img;
  18250. })
  18251. .catch((err) => {
  18252. console.error(err);
  18253. });
  18254. },
  18255. addImgDraw(base64) {
  18256. let file = { name: "批注图.png" };
  18257. let img = this.dataUrlToFile(base64, file);
  18258. this.beforeUpload1(img, 5);
  18259. },
  18260. addImgDrawImG(url) {
  18261. // console.log(url);
  18262. let params = [
  18263. {
  18264. wid: this.commentDetail.wid,
  18265. img: url,
  18266. },
  18267. ];
  18268. this.ajax
  18269. .post(this.$store.state.api + "updateCourseWorks", params)
  18270. .then((res) => {
  18271. this.$message({
  18272. message: "提交成功",
  18273. type: "success",
  18274. });
  18275. this.drawShow = false;
  18276. this.bg = "";
  18277. this.selectSWorks();
  18278. this.selectStudent();
  18279. })
  18280. .catch((err) => {
  18281. this.$message.error("提交失败");
  18282. console.error(err);
  18283. });
  18284. },
  18285. deletePicturePaint() {
  18286. this.$confirm("确定删除此批注吗?", "提示", {
  18287. confirmButtonText: "确定",
  18288. cancelButtonText: "取消",
  18289. type: "warning",
  18290. })
  18291. .then(() => {
  18292. let params = [
  18293. {
  18294. wid: this.commentDetail.wid,
  18295. img: "",
  18296. },
  18297. ];
  18298. this.ajax
  18299. .post(this.$store.state.api + "updateCourseWorks", params)
  18300. .then((res) => {
  18301. this.$message({
  18302. message: "删除成功",
  18303. type: "success",
  18304. });
  18305. this.selectSWorks();
  18306. this.selectStudent();
  18307. })
  18308. .catch((err) => {
  18309. this.$message.error("删除失败");
  18310. console.error(err);
  18311. });
  18312. })
  18313. .catch(() => {});
  18314. },
  18315. getAudioVideo(constraintsData) {
  18316. if (navigator.mediaDevices === undefined) {
  18317. navigator.mediaDevices = {};
  18318. }
  18319. if (navigator.mediaDevices.getUserMedia === undefined) {
  18320. navigator.mediaDevices.getUserMedia = function (constraints) {
  18321. // 首先,如果有getUserMedia的话,就获得它
  18322. var getUserMedia =
  18323. navigator.getUserMedia ||
  18324. navigator.webkitGetUserMedia ||
  18325. navigator.mozGetUserMedia ||
  18326. navigator.msGetUserMedia;
  18327. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  18328. if (!getUserMedia) {
  18329. return Promise.reject({ code: 404 });
  18330. }
  18331. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  18332. return new Promise(function (resolve, reject) {
  18333. getUserMedia.call(navigator, constraints, resolve, reject);
  18334. });
  18335. };
  18336. }
  18337. return navigator.mediaDevices.getUserMedia(constraintsData);
  18338. },
  18339. /**
  18340. * 开始录制
  18341. */
  18342. startRecording(callback) {
  18343. let _function = (screenStream) => {
  18344. this.addStreamStopListener(screenStream, () => {
  18345. console.log("流停止监听");
  18346. this.stopRecording();
  18347. this.$emit("streamStop", {});
  18348. // this.stopRecording();
  18349. });
  18350. var options = {
  18351. type: "video",
  18352. mimeType: "video/webm",
  18353. disableLogs: false,
  18354. getNativeBlob: false, // enable it for longer recordings
  18355. ignoreMutedMedia: false,
  18356. };
  18357. // this.video.srcObject = screenStream;
  18358. this.recorder = RecordRTC(screenStream, options);
  18359. this.recorder.startRecording();
  18360. this.recorder.screen = screenStream;
  18361. this.videoStart = true;
  18362. // callback(true);
  18363. };
  18364. this.getAudioVideo({ audio: true })
  18365. .then((res) => {
  18366. this.captureScreen(_function, true);
  18367. console.log("已点击允许,开启成功");
  18368. })
  18369. .catch((err) => {
  18370. // console.log('浏览器不支持,请更换浏览器')
  18371. // } else {
  18372. this.captureScreen(_function, false);
  18373. console.log("请检查是否存在麦克风");
  18374. });
  18375. },
  18376. /**
  18377. * 停止录制
  18378. */
  18379. stopRecording(callback) {
  18380. this.recorder.stopRecording(() => {
  18381. // this.video.src = this.video.srcObject = null;
  18382. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  18383. const url = URL.createObjectURL(this.recorder.getBlob());
  18384. const a = document.createElement("a"); //this.fileName+
  18385. let videoFile = new File(
  18386. [this.recorder.getBlob()],
  18387. this.courseDetail.title + "录屏.mp4",
  18388. {
  18389. type: "video/mp4",
  18390. }
  18391. );
  18392. let downloadUrl = URL.createObjectURL(videoFile);
  18393. document.body.appendChild(a);
  18394. a.style.display = "none";
  18395. a.href = url;
  18396. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  18397. a.click();
  18398. this.recorder.screen.stop();
  18399. this.recorder.destroy();
  18400. this.recorder = null;
  18401. this.videoStart = false;
  18402. // callback(false);
  18403. });
  18404. },
  18405. //初始化
  18406. captureScreen(callback, type) {
  18407. if (navigator.getDisplayMedia) {
  18408. //录制结束,文件下载
  18409. navigator
  18410. .getDisplayMedia({
  18411. video: true,
  18412. })
  18413. .then((screenStream) => {
  18414. if (type) {
  18415. navigator.mediaDevices
  18416. .getUserMedia({ audio: true })
  18417. .then((mic) => {
  18418. screenStream.addTrack(mic.getTracks()[0]);
  18419. callback(screenStream);
  18420. });
  18421. } else {
  18422. callback(screenStream);
  18423. }
  18424. })
  18425. .catch(function (error) {
  18426. console.log("error", error);
  18427. });
  18428. } else if (navigator.mediaDevices.getDisplayMedia) {
  18429. navigator.mediaDevices
  18430. .getDisplayMedia({
  18431. video: true,
  18432. })
  18433. .then((screenStream) => {
  18434. if (type) {
  18435. navigator.mediaDevices
  18436. .getUserMedia({ audio: true })
  18437. .then((mic) => {
  18438. screenStream.addTrack(mic.getTracks()[0]);
  18439. callback(screenStream);
  18440. });
  18441. } else {
  18442. callback(screenStream);
  18443. }
  18444. })
  18445. .catch(function (error) {
  18446. console.log("error", error);
  18447. });
  18448. } else {
  18449. var error = "getDisplayMedia API are not supported in this browser.";
  18450. console.log("error", error);
  18451. alert(error);
  18452. }
  18453. },
  18454. //流监听
  18455. addStreamStopListener(stream, callback) {
  18456. stream.addEventListener(
  18457. "ended",
  18458. function () {
  18459. callback();
  18460. callback = function () {};
  18461. },
  18462. false
  18463. );
  18464. stream.addEventListener(
  18465. "inactive",
  18466. function () {
  18467. callback();
  18468. callback = function () {};
  18469. },
  18470. false
  18471. );
  18472. stream.getTracks().forEach(function (track) {
  18473. track.addEventListener(
  18474. "ended",
  18475. function () {
  18476. callback();
  18477. callback = function () {};
  18478. },
  18479. false
  18480. );
  18481. track.addEventListener(
  18482. "inactive",
  18483. function () {
  18484. callback();
  18485. callback = function () {};
  18486. },
  18487. false
  18488. );
  18489. });
  18490. },
  18491. updateGroup() {
  18492. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  18493. this.dialogVisibleGroup2 = true;
  18494. },
  18495. numberPan() {
  18496. if (
  18497. /[^\d]/.test(this.groupJson.number) ||
  18498. this.groupJson.number < 2 ||
  18499. this.groupJson.number > 10
  18500. ) {
  18501. this.$message.error("请输入2-10的数字");
  18502. this.groupJson.number = "";
  18503. }
  18504. },
  18505. updateGroupJson() {
  18506. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  18507. if (
  18508. this.groupStudentUid[this.toolindex][i].length >
  18509. this.groupJson2.number
  18510. ) {
  18511. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  18512. return;
  18513. }
  18514. }
  18515. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  18516. this.islock = this.groupJson.islock == 1 ? true : false;
  18517. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18518. this.taskCount
  18519. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  18520. let params = [
  18521. {
  18522. cid: this.id,
  18523. chapters: JSON.stringify(this.chapInfoList),
  18524. uid: this.userid,
  18525. unitIndex: this.courseType,
  18526. },
  18527. ];
  18528. this.ajax
  18529. .post(this.$store.state.api + "updateWorkNew4", params)
  18530. .then((res) => {
  18531. this.$message.success("设置成功");
  18532. this.getCourseDetail(2);
  18533. this.dialogVisibleGroup2 = false;
  18534. this.groupJson2 = {};
  18535. this.$forceUpdate();
  18536. })
  18537. .catch((err) => {
  18538. this.$message.error("网络不佳");
  18539. console.error(err);
  18540. });
  18541. },
  18542. lockChair() {
  18543. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  18544. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  18545. this.updateGroupJson();
  18546. },
  18547. selectGroup(index) {
  18548. this.getCourseDetail(2, index);
  18549. },
  18550. joinGroup(index) {
  18551. if (this.groupJson.islock == 2) {
  18552. this.$message.error("位置已被锁定,无法加入");
  18553. return;
  18554. }
  18555. if (
  18556. this.groupStudent[this.toolindex][index].length >
  18557. this.groupJson.number ||
  18558. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  18559. ) {
  18560. this.$message.error("位置已满,无法加入");
  18561. return;
  18562. }
  18563. let params = [
  18564. {
  18565. cid: this.id,
  18566. stage: this.courseType,
  18567. task: this.taskCount,
  18568. tool: this.toolindex,
  18569. g: index,
  18570. uid: this.userid,
  18571. },
  18572. ];
  18573. this.ajax
  18574. .post(this.$store.state.api + "joinGroup", params)
  18575. .then((res) => {
  18576. this.$message.success("加入成功");
  18577. this.getCourseDetail(2);
  18578. })
  18579. .catch((err) => {
  18580. this.$message.error("网络不佳");
  18581. console.error(err);
  18582. });
  18583. },
  18584. exitGroup(id) {
  18585. if (this.groupJson.islock == 2) {
  18586. this.$message.error("位置已被锁定,无法退出");
  18587. return;
  18588. }
  18589. let params = [
  18590. {
  18591. gid: id,
  18592. },
  18593. ];
  18594. this.ajax
  18595. .post(this.$store.state.api + "exitGroup", params)
  18596. .then((res) => {
  18597. this.$message.success("退出成功");
  18598. this.getCourseDetail(2);
  18599. })
  18600. .catch((err) => {
  18601. this.$message.error("网络不佳");
  18602. console.error(err);
  18603. });
  18604. },
  18605. groupUpload(index, task, gindex) {
  18606. this.taskCount = task;
  18607. this.toolindex = index;
  18608. this.groupIndex = gindex;
  18609. this.dialogVisibleGroupWork = true;
  18610. },
  18611. updateGroupChair(user) {
  18612. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  18613. el.label = index;
  18614. return index != user.group;
  18615. });
  18616. this.updateGroupUser = user;
  18617. this.dialogVisibleUpdateGroup = true;
  18618. },
  18619. updateChair() {
  18620. if (
  18621. this.groupStudent[this.toolindex][this.checkChair].length >
  18622. this.groupJson.number ||
  18623. this.groupStudent[this.toolindex][this.checkChair].length ==
  18624. this.groupJson.number
  18625. ) {
  18626. this.$message.error("位置已满,无法加入");
  18627. return;
  18628. }
  18629. let params = [
  18630. {
  18631. cid: this.id,
  18632. stage: this.courseType,
  18633. task: this.taskCount,
  18634. tool: this.toolindex,
  18635. g: this.checkChair,
  18636. uid: this.updateGroupUser.userid,
  18637. },
  18638. ];
  18639. this.ajax
  18640. .post(this.$store.state.api + "joinGroup", params)
  18641. .then((res) => {
  18642. this.$message.success("修改成功");
  18643. this.updateGroupUser = {};
  18644. this.checkChair = "";
  18645. this.updateGroupArray = {};
  18646. this.dialogVisibleUpdateGroup = false;
  18647. this.getCourseDetail(2);
  18648. })
  18649. .catch((err) => {
  18650. this.$message.error("网络不佳");
  18651. console.error(err);
  18652. });
  18653. },
  18654. deleteGroupChair(gindex) {
  18655. this.checkDeleteGroup = [];
  18656. this.deleteGroupUser = JSON.parse(
  18657. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  18658. );
  18659. this.deleteGroupArray = this.groupJson.group[gindex];
  18660. this.groupIndex = gindex;
  18661. this.dialogVisibleDeleteGroup = true;
  18662. },
  18663. async deleteChair() {
  18664. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  18665. const gid =
  18666. this.groupStudent[this.toolindex][this.groupIndex][
  18667. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  18668. this.checkDeleteGroup[i]
  18669. )
  18670. ];
  18671. let params = [
  18672. {
  18673. gid: gid.id,
  18674. },
  18675. ];
  18676. var a = await this.deleteChairA(params);
  18677. if (i == this.checkDeleteGroup.length - 1) {
  18678. this.$message.success("退出成功");
  18679. this.dialogVisibleDeleteGroup = false;
  18680. this.deleteGroupUser = [];
  18681. this.deleteGroupArray = {};
  18682. this.groupIndex = "";
  18683. this.checkDeleteGroup = [];
  18684. this.getCourseDetail(2);
  18685. }
  18686. }
  18687. },
  18688. deleteChairA(params) {
  18689. return new Promise((resolve, reject) => {
  18690. this.ajax
  18691. .post(this.$store.state.api + "exitGroup", params)
  18692. .then((res) => {
  18693. resolve(1);
  18694. })
  18695. .catch((err) => {
  18696. this.$message.error("网络不佳");
  18697. console.error(err);
  18698. });
  18699. });
  18700. },
  18701. contract(i) {
  18702. if (this.isCloseList[i].isClose == 0) {
  18703. this.isCloseList[i].isClose = 1;
  18704. } else {
  18705. this.isCloseList[i].isClose = 0;
  18706. }
  18707. this.$forceUpdate();
  18708. },
  18709. openWordCloud(toolindex) {
  18710. let array = [];
  18711. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  18712. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  18713. array.push({ name: works });
  18714. }
  18715. if (this.isGroup) {
  18716. for (var i = 0; i < this.courseGroup.group.length; i++) {
  18717. let works = this.courseGroup.group[i].works[toolindex];
  18718. for (var j = 0; j < works.length; j++) {
  18719. let answer = JSON.parse(works[j].works)[0].answer;
  18720. array.push({ name: answer });
  18721. }
  18722. }
  18723. }
  18724. this.wordCloudData = array;
  18725. this.dialogVisibleWordCloud = true;
  18726. },
  18727. openTips(i) {
  18728. this.tipsIndex = i;
  18729. this.downDialogVisible = true;
  18730. },
  18731. uploadWorks() {
  18732. this.$confirm("确定导出作业吗?", "提示", {
  18733. confirmButtonText: "确定",
  18734. cancelButtonText: "取消",
  18735. type: "warning",
  18736. })
  18737. .then(() => {
  18738. const loading = this.$loading.service({
  18739. background: "rgba(255, 255, 255, 0.7)",
  18740. target: document.body,
  18741. text: "文件加载中...",
  18742. });
  18743. const _worksStudent = this.worksStudent;
  18744. let url = [];
  18745. var counts = {};
  18746. for (var l = 0; l < _worksStudent[i].length; l++) {
  18747. var item = _worksStudent[i][l];
  18748. var name = item.sName;
  18749. if (!counts.hasOwnProperty(name)) {
  18750. counts[name] = 0;
  18751. } else {
  18752. counts[name]++;
  18753. }
  18754. if (counts[name] > 0) {
  18755. item.sName += " (" + counts[name] + ")";
  18756. }
  18757. }
  18758. for (var l = 0; l < _worksStudent[i].length; l++) {
  18759. var item = _worksStudent[i][l];
  18760. if (
  18761. item.works.indexOf(
  18762. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  18763. ) !== -1 &&
  18764. item.works.indexOf("img") === -1
  18765. ) {
  18766. url.push({ name: item.sName, url: item.works });
  18767. }
  18768. }
  18769. // var toolList = [
  18770. // { name: "电子白板", tool: 1 },
  18771. // { name: "思维导图", tool: 3 },
  18772. // { name: "协同文档", tool: 6 },
  18773. // { name: "思维网格", tool: 7 },
  18774. // { name: "素材库", tool: 8 },
  18775. // { name: "学习资料", tool: 17 },
  18776. // { name: "便签", tool: 2 },
  18777. // { name: "问卷调查", tool: 4 },
  18778. // { name: "选择题", tool: 45 },
  18779. // { name: "倒计时", tool: 10 },
  18780. // { name: "问答", tool: 15 },
  18781. // { name: "课程设计", tool: 26 },
  18782. // { name: "训练服务器", tool: 18 },
  18783. // { name: "作业提交", tool: 16 },
  18784. // { name: "批量上传", tool: 50 },
  18785. // { name: "AIoT Blockly", tool: 21 },
  18786. // { name: "AI Python", tool: 23 },
  18787. // { name: "AI Blockly", tool: 24 },
  18788. // { name: "目标管理", tool: 25 },
  18789. // { name: "数学画板", tool: 31 },
  18790. // { name: "翻译", tool: 28 },
  18791. // { name: "魔盒识字", tool: 37 },
  18792. // { name: "数学画板", tool: 31 },
  18793. // { name: "24点", tool: 38 },
  18794. // { name: "GeoGebra", tool: 39 },
  18795. // { name: "源码编辑", tool: 32 },
  18796. // { name: "个人评价", tool: 40 },
  18797. // { name: "选择匹配", tool: 41 },
  18798. // { name: "汉字宫", tool: 44 },
  18799. // { name: "排序", tool: 47 },
  18800. // { name: "表格", tool: 48 },
  18801. // { name: "文档", tool: 52 },
  18802. // { name: "学生分组", tool: 49 },
  18803. // { name: "CocoPi", tool: 57 },
  18804. // { name: "模拟驾驶", tool: 58 },
  18805. // { name: "路径搜索", tool: 59 },
  18806. // { name: "深度学习", tool: 60 },
  18807. // { name: "全历史", tool: 61 },
  18808. // { name: "交互视频", tool: 62 },
  18809. // { name: "海龟编程", tool: 63 },
  18810. // { name: "挑人", tool: 65 },
  18811. // { name: "公式编辑", tool: 66 },
  18812. // { name: "分子结构", tool: 67 },
  18813. // { name: "时间轴", tool: 68 },
  18814. // ];
  18815. // var toolName = "";
  18816. // for(var w = 0;w<toolList.length;w++){
  18817. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  18818. // toolName = toolList[w].name;
  18819. // }
  18820. // }
  18821. console.log(url);
  18822. this.downLoadAll(url, loading);
  18823. })
  18824. .catch(() => {});
  18825. },
  18826. downLoadAll(url, loading) {
  18827. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  18828. const zip = new JSZip();
  18829. const cache = {};
  18830. const promises = [];
  18831. data.forEach((item) => {
  18832. const promise = getFile(item.url).then((data) => {
  18833. if (data.data != 1) {
  18834. // 下载文件, 并存成ArrayBuffer对象
  18835. const file_name =
  18836. item.name +
  18837. "." +
  18838. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  18839. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  18840. cache[file_name] = data.data;
  18841. }
  18842. });
  18843. promises.push(promise);
  18844. });
  18845. Promise.all(promises).then(() => {
  18846. zip.generateAsync({ type: "blob" }).then((content) => {
  18847. // 生成二进制流
  18848. FileSaver.saveAs(
  18849. content,
  18850. this.courseDetail.title + "-" + "作业提交工具.zip"
  18851. ); // 利用file-saver保存文件 自定义文件名
  18852. setTimeout(() => {
  18853. loading.close();
  18854. }, 2000);
  18855. });
  18856. });
  18857. },
  18858. pickStudent(stu) {
  18859. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  18860. return;
  18861. }
  18862. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  18863. confirmButtonText: "确定",
  18864. cancelButtonText: "取消",
  18865. type: "warning",
  18866. })
  18867. .then(() => {
  18868. let params = [
  18869. {
  18870. uid: stu.userid,
  18871. cid: this.id,
  18872. stage: this.courseType,
  18873. task: this.taskCount,
  18874. tool: this.toolindex,
  18875. },
  18876. ];
  18877. this.ajax
  18878. .post(this.$store.state.api + "updateCoursePick", params)
  18879. .then((res) => {
  18880. this.$message.success("操作成功");
  18881. this.getPick();
  18882. })
  18883. .catch((err) => {
  18884. this.$message.error("网络不佳");
  18885. console.error(err);
  18886. });
  18887. })
  18888. .catch(() => {});
  18889. },
  18890. selectUser(){
  18891. let params = {
  18892. userid: this.userid,
  18893. };
  18894. this.ajax
  18895. .get(this.$store.state.api + "selectUser", params)
  18896. .then((res) => {
  18897. this.userMes = res.data[0];
  18898. })
  18899. .catch((err) => {
  18900. console.error(err);
  18901. });
  18902. },
  18903. setEngText(i){
  18904. this.newEngIndex = i;
  18905. this.$forceUpdate();
  18906. },
  18907. addCorrect(){
  18908. this.$confirm("你确定提交批改嘛?", "提示", {
  18909. confirmButtonText: "确定",
  18910. showCancelButton: false,
  18911. closeOnClickModal: false,
  18912. type: "warning",
  18913. })
  18914. .then(() => {
  18915. let params = {
  18916. cid: this.id,
  18917. s: parseInt(this.courseType),
  18918. t: this.taskCount,
  18919. tool: this.toolindex,
  18920. wid: this.engWid,
  18921. c: this.userid,
  18922. 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) : "",
  18923. };
  18924. this.ajax
  18925. .get(this.$store.state.api + "addEngC", params)
  18926. .then((res) => {
  18927. this.$message.success("提交成功");
  18928. this.engUpdateDialogVisible = false;
  18929. })
  18930. .catch((err) => {
  18931. console.error(err);
  18932. });
  18933. })
  18934. .catch(() => {});
  18935. },
  18936. selectEngC(id,z){
  18937. let params = {
  18938. workid: id,
  18939. };
  18940. this.ajax
  18941. .get(this.$store.state.api + "selectEngC", params)
  18942. .then((res) => {
  18943. if(res.data[0].length == 0){
  18944. this.newEnglishList.engTitle = z.engTitle;
  18945. this.newEnglishList.engText = z.engText;
  18946. }else{
  18947. var a = res.data[0];
  18948. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  18949. if(this.userMes[0].type == 2){
  18950. var snum = 0;
  18951. for(var i = 0;i<a.length;i++){
  18952. if(this.userMes[0].userid == a[i].correct){
  18953. this.newEnglishList = JSON.parse(a[i].cWork);
  18954. snum = 1;
  18955. }
  18956. }
  18957. if(snum == 0){
  18958. this.newEnglishList = { engTitle:"",engText:"" };
  18959. this.newEnglishList.engTitle = z.engTitle;
  18960. this.newEnglishList.engText = z.engText;
  18961. }
  18962. }else if(this.userMes[0].type == 1){
  18963. var num = 0;
  18964. for(var w= 0;w<a.length;w++){
  18965. if(this.userMes[0].userid == a[w].correct){
  18966. num = 1;
  18967. }
  18968. }
  18969. if(num == 0){
  18970. this.isNoUserid = true;
  18971. var c = JSON.parse(JSON.stringify(z));
  18972. this.oldEnglishJson1 = c;
  18973. }else{
  18974. this.isNoUserid = false;
  18975. }
  18976. var b = a.sort((item, index) => {
  18977. console.log(item)
  18978. if (item.correct === this.userMes[0].userid) {
  18979. return -1; // 将a移到前面
  18980. } else if (index.correct === this.userMes[0].userid) {
  18981. return 1; // 将b移到前面
  18982. } else {
  18983. return 0; // 保持默认顺序
  18984. }
  18985. });
  18986. for(var p = 0;p<b.length;p++){
  18987. for(var y = 0;y<ppp.length;y++){
  18988. if(b[p].id == ppp[y].id){
  18989. b[p].cWork = JSON.parse(ppp[y].cWork);
  18990. break
  18991. }
  18992. }
  18993. }
  18994. this.newEnglishList1 = b;
  18995. }
  18996. }
  18997. this.greyType = false;
  18998. setTimeout(() => {
  18999. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  19000. if(this.newEnglishList1.length > 0){
  19001. if(this.isNoUserid == true){
  19002. this.engListLength = this.newEnglishList1.length + 1;
  19003. this.newEngIndex = -1;
  19004. }else{
  19005. this.engListLength = this.newEnglishList1.length;
  19006. this.newEngIndex = 0;
  19007. }
  19008. }
  19009. if(this.userMes[0].type == 2){
  19010. this.correctWord = Diff.diffChars(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19011. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  19012. this.correctWord = Diff.diffChars(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  19013. }else if(this.newEngIndex == -1){
  19014. this.correctWord = Diff.diffChars(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19015. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  19016. this.correctWord = Diff.diffChars(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  19017. }
  19018. }, 500);
  19019. this.engUpdateDialogVisible = true;
  19020. this.$forceUpdate();
  19021. })
  19022. .catch((err) => {
  19023. console.error(err);
  19024. });
  19025. },
  19026. getPick() {
  19027. let params = {
  19028. cid: this.id,
  19029. };
  19030. this.ajax
  19031. .get(this.$store.state.api + "getPick", params)
  19032. .then((res) => {
  19033. let array = [];
  19034. for (var i = 0; i < res.data[0].length; i++) {
  19035. array.push(res.data[0][i].userid);
  19036. }
  19037. this.isPickStudent = array;
  19038. if (array.indexOf(this.userid) !== -1) {
  19039. this.$confirm("你被老师选到啦!", "提示", {
  19040. confirmButtonText: "确定",
  19041. showCancelButton: false,
  19042. closeOnClickModal: false,
  19043. type: "warning",
  19044. })
  19045. .then(() => {
  19046. let pa = [
  19047. {
  19048. uid: this.userid,
  19049. cid: this.id,
  19050. },
  19051. ];
  19052. this.ajax
  19053. .post(this.$store.state.api + "deletePick", pa)
  19054. .then((res) => {
  19055. this.getPick();
  19056. })
  19057. .catch((err) => {
  19058. this.$message.error("网络不佳");
  19059. console.error(err);
  19060. });
  19061. })
  19062. .catch(() => {});
  19063. }
  19064. })
  19065. .catch((err) => {
  19066. this.$message.error("网络不佳");
  19067. console.error(err);
  19068. });
  19069. },
  19070. foldEva() {
  19071. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  19072. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  19073. } else {
  19074. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  19075. setTimeout(() => {
  19076. this.checkEva();
  19077. setTimeout(() => {
  19078. this.checkEva();
  19079. }, 500);
  19080. }, 0);
  19081. }
  19082. this.$forceUpdate();
  19083. },
  19084. panToolHeight(tool) {
  19085. var _tool = document.querySelectorAll('#'+tool)[0]
  19086. var _toolA = _tool ? _tool.offsetHeight : 0
  19087. var _toolC = 0
  19088. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  19089. let boolean2 = (_toolA > _toolC) ? true : false
  19090. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  19091. this.$forceUpdate();
  19092. },
  19093. },
  19094. directives: {
  19095. // 使用局部注册指令的方式
  19096. resize: {
  19097. // 指令的名称
  19098. bind(el, binding) {
  19099. // el为绑定的元素,binding为绑定给指令的对象
  19100. let width = "",
  19101. height = "";
  19102. function isReize() {
  19103. const style = document.defaultView.getComputedStyle(el);
  19104. if (width !== style.width || height !== style.height) {
  19105. binding.value(); // 关键
  19106. }
  19107. width = style.width;
  19108. height = style.height;
  19109. }
  19110. el.__vueSetInterval__ = setInterval(isReize, 300);
  19111. },
  19112. unbind(el) {
  19113. clearInterval(el.__vueSetInterval__);
  19114. },
  19115. },
  19116. autoHeight: {
  19117. update(el, binding) {
  19118. const { value } = binding
  19119. if (value && typeof value === 'number') {
  19120. el.style.height = `${value}px`
  19121. } else {
  19122. el.style.height = 'auto'
  19123. }
  19124. },
  19125. componentUpdated(el) {
  19126. el.style.height = `${el.scrollHeight + 5}px`
  19127. },
  19128. },
  19129. },
  19130. beforeDestroy() {
  19131. window.onresize = null;
  19132. clearInterval(this.timer);
  19133. this.timer = null;
  19134. clearInterval(this.opertimer);
  19135. this.opertimer = null;
  19136. },
  19137. computed: {
  19138. getHeight(){
  19139. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  19140. },
  19141. contentConvent() {
  19142. return function (c) {
  19143. return c
  19144. ? c
  19145. .replaceAll(/\r\n/g, "<br/>")
  19146. .replaceAll(/\n/g, "<br/>")
  19147. .replaceAll(/\s/g, " &nbsp")
  19148. : "";
  19149. };
  19150. },
  19151. checkUpload() {
  19152. return function () {
  19153. var studentK = [];
  19154. if (this.plworkFile.length > 0) {
  19155. for (var z = 0; z < this.plworkFile.length; z++) {
  19156. studentK.push(this.plworkFile[z].username);
  19157. }
  19158. studentK = studentK.join(",");
  19159. }
  19160. var a = this.uploadStudentJuri.filter((el) => {
  19161. return studentK.indexOf(el.userid) == -1;
  19162. });
  19163. return a;
  19164. };
  19165. },
  19166. getSName() {
  19167. return function (name) {
  19168. var check = name;
  19169. this.uploadStudentJuri.forEach((el) => {
  19170. if (el.userid == check) {
  19171. check = el.name ? el.name : el.username;
  19172. }
  19173. });
  19174. return check;
  19175. };
  19176. },
  19177. getImgList() {
  19178. return function (val) {
  19179. let srcList = []; // 定义一个数组用来接收后面的img地址
  19180. val.replace(
  19181. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  19182. function (match, capture) {
  19183. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  19184. srcList.push(capture);
  19185. }
  19186. );
  19187. return srcList;
  19188. };
  19189. },
  19190. retrnToolHeight(){
  19191. return function (tool) {
  19192. var _tool = document.querySelectorAll('#'+tool)[0]
  19193. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  19194. };
  19195. },
  19196. Correct() {
  19197. return function (c) {
  19198. let w = "";
  19199. let a = this.correctWord;
  19200. for(var k = 0;k<a.length;k++){
  19201. if(w == ""){
  19202. if(a.length > 1){
  19203. if(a[k].added == true){
  19204. w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19205. }else if(a[k].removed == true){
  19206. w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19207. }
  19208. }else{
  19209. w = c
  19210. }
  19211. }else{
  19212. if(k == a.length - 1){
  19213. if(a[k].added == true){
  19214. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19215. }else if(a[k].removed == true){
  19216. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19217. }
  19218. }else{
  19219. if(a[k].added == true){
  19220. w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19221. }else if(a[k].removed == true){
  19222. w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19223. }
  19224. }
  19225. }
  19226. }
  19227. c = w;
  19228. return c;
  19229. };
  19230. },
  19231. },
  19232. mounted() {
  19233. document.body.addEventListener("click", (e) => {
  19234. if (this.isUpdateToolDetail1) {
  19235. this.updateToolDetail(this.toolDetailIndex);
  19236. }
  19237. });
  19238. if (this.screenType == 2) {
  19239. window.parent.postMessage({ allScreen: 4 }, "*");
  19240. } else if (this.screenType == 3) {
  19241. window.parent.postMessage({ allScreen: 5 }, "*");
  19242. } else if (this.screenType == 1) {
  19243. window.parent.postMessage({ allScreen: 6 }, "*");
  19244. }
  19245. this.setOperationTime();
  19246. this.selectEva();
  19247. this.getCourseDetail();
  19248. this.selectCount();
  19249. this.getHomeWork();
  19250. this.selectUser();
  19251. this.contentDialog = true;
  19252. this.setContent2(true);
  19253. if (this.tType == 4) {
  19254. this.pzDialog = true;
  19255. this.selectPz();
  19256. }
  19257. document.scrollingElement.scrollTop = 0;
  19258. window.addEventListener("resize", () => {
  19259. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19260. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19261. if (this.showType == 2 || this.showType == 3) {
  19262. document.getElementsByClassName("navBox")[0].style.height =
  19263. a - 40 + 46 + "px";
  19264. } else {
  19265. document.getElementsByClassName("navBox")[0].style.height =
  19266. a - 40 + "px";
  19267. }
  19268. });
  19269. let _this = this;
  19270. setTimeout(() => {
  19271. // _this.vedioTime = [];
  19272. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  19273. // _this.vedioTime[i] = document.getElementsByClassName(
  19274. // "vjs-duration-display"
  19275. // )[i].textContent;
  19276. // }
  19277. }, 1000);
  19278. },
  19279. };
  19280. </script>
  19281. <style scoped>
  19282. @media screen and (max-width: 1280px) {
  19283. /* .courseIndex > div:first-child(2) {
  19284. width: 15% !important;
  19285. } */
  19286. /* .navText {
  19287. width: 120px !important;
  19288. } */
  19289. .evaCss {
  19290. flex-direction: column !important;
  19291. align-items: center !important;
  19292. }
  19293. .elist_input {
  19294. width: 90% !important;
  19295. }
  19296. .dialog_diy1 >>> .el-dialog {
  19297. width: 100% !important;
  19298. }
  19299. .rightWidthCss {
  19300. width: 100% !important;
  19301. }
  19302. .dialog_diy3 >>> .el-dialog {
  19303. width: 100% !important;
  19304. }
  19305. .addToolCss {
  19306. right: 0 !important;
  19307. width: 100% !important;
  19308. min-width: unset !important;
  19309. }
  19310. }
  19311. .evaCssMax {
  19312. flex-direction: column !important;
  19313. align-items: center !important;
  19314. }
  19315. .dialog_diy >>> .el-dialog {
  19316. margin-top: 10vh !important;
  19317. }
  19318. .body_student {
  19319. width: 77%;
  19320. height: 100%;
  19321. position: absolute;
  19322. left: 22%;
  19323. top: 0;
  19324. }
  19325. .student_head {
  19326. width: 100%;
  19327. margin: 20px auto 0;
  19328. padding-bottom: 20px;
  19329. display: flex;
  19330. flex-direction: column;
  19331. flex-wrap: nowrap;
  19332. align-items: flex-start;
  19333. justify-content: flex-start;
  19334. }
  19335. .pb_left {
  19336. width: 20%;
  19337. margin-right: 10px;
  19338. background: rgb(255, 255, 255);
  19339. position: fixed;
  19340. height: calc(100% - 40px);
  19341. border-radius: 20px;
  19342. padding-bottom: 15px;
  19343. box-sizing: border-box;
  19344. }
  19345. .wheel > img,
  19346. .project > img,
  19347. .star > img,
  19348. .evaluate > img,
  19349. .up_photo > img,
  19350. .chapter_add > img,
  19351. .deleteWord > img,
  19352. .question > img,
  19353. .homework > img {
  19354. width: 100%;
  19355. height: 100%;
  19356. }
  19357. .upCover > img {
  19358. width: 131px;
  19359. height: 69px;
  19360. object-fit: cover;
  19361. }
  19362. .upCover {
  19363. width: calc(100% / 3.5);
  19364. position: relative;
  19365. margin: 0 15px 10px 0;
  19366. display: flex;
  19367. flex-direction: column;
  19368. flex-wrap: nowrap;
  19369. justify-content: center;
  19370. align-content: center;
  19371. align-items: center;
  19372. height: fit-content;
  19373. }
  19374. .upCover2 {
  19375. width: 100%;
  19376. position: relative;
  19377. margin: 0 15px 10px 0;
  19378. display: flex;
  19379. flex-direction: column;
  19380. flex-wrap: nowrap;
  19381. justify-content: center;
  19382. align-content: center;
  19383. align-items: center;
  19384. }
  19385. .upCover2 > img {
  19386. width: 100%;
  19387. height: 90px;
  19388. object-fit: contain;
  19389. }
  19390. .chapter_add {
  19391. width: 120px;
  19392. position: relative;
  19393. text-align: center;
  19394. }
  19395. .isAddThings {
  19396. margin-top: 20px;
  19397. position: relative;
  19398. text-align: center;
  19399. background: #f7f8fa;
  19400. height: 90px;
  19401. width: 90px;
  19402. display: flex;
  19403. flex-direction: column;
  19404. justify-content: center;
  19405. }
  19406. .deleteWord {
  19407. width: 22px;
  19408. height: 22px;
  19409. position: absolute;
  19410. right: -5px;
  19411. top: -5px;
  19412. cursor: pointer;
  19413. }
  19414. .box_course {
  19415. /* width: 60%; */
  19416. width: calc(100% - 300px);
  19417. }
  19418. .wheel {
  19419. width: 100%;
  19420. /* height: 100%; */
  19421. height: 650px;
  19422. }
  19423. .right_box {
  19424. display: flex;
  19425. flex-direction: column;
  19426. margin-left: 30px;
  19427. justify-content: space-around;
  19428. }
  19429. .right_box_title {
  19430. font-size: 23px;
  19431. }
  19432. .people {
  19433. display: flex;
  19434. }
  19435. .student_body {
  19436. width: 100%;
  19437. margin: 0 auto;
  19438. margin-top: 10px;
  19439. padding: 0 0 20px;
  19440. }
  19441. .study_top {
  19442. margin-top: 100px;
  19443. width: 100%;
  19444. height: auto;
  19445. padding-bottom: 20px;
  19446. }
  19447. .study_top .checkbox {
  19448. display: flex;
  19449. align-items: center;
  19450. padding: 15px 0 15px 30px;
  19451. flex: 0 0 auto;
  19452. font-weight: bold;
  19453. border-bottom: 1px solid #eee;
  19454. }
  19455. .study_top .check {
  19456. padding-bottom: 5px;
  19457. text-align: center;
  19458. cursor: pointer;
  19459. height: 30px;
  19460. box-sizing: border-box;
  19461. display: flex;
  19462. }
  19463. .study_top .checked {
  19464. border-bottom: 4px solid #3fc6a0;
  19465. padding-bottom: 5px;
  19466. color: #3fc6a0;
  19467. display: flex;
  19468. height: 35px;
  19469. }
  19470. .study_top .checked > div,
  19471. .study_top .check > div {
  19472. margin-right: 5px;
  19473. }
  19474. .videoTop {
  19475. display: flex;
  19476. flex-direction: row;
  19477. justify-content: space-between;
  19478. background: #fff;
  19479. align-items: center;
  19480. width: 95%;
  19481. padding: 20px;
  19482. }
  19483. .filebox {
  19484. display: flex;
  19485. flex-wrap: wrap;
  19486. flex-direction: column;
  19487. padding: 0 0 5px;
  19488. position: relative;
  19489. }
  19490. .filebox:before {
  19491. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  19492. position: absolute;
  19493. top: 20px;
  19494. left: 13px;
  19495. border-left: 2px dotted #cad1dc;
  19496. height: calc(100% - 15px);
  19497. }
  19498. .toolHeng2 > div:last-child::before {
  19499. height: calc(100% - 43px);
  19500. }
  19501. .filebox .tooldetail {
  19502. width: calc(100% - 280px);
  19503. margin: 0px 12px;
  19504. padding: 12px;
  19505. line-height: 30px;
  19506. word-break: break-word;
  19507. background: #ffffff;
  19508. border-radius: 8px 8px 8px 8px;
  19509. opacity: 1;
  19510. border: 1px solid #cad1dc;
  19511. overflow:hidden;
  19512. box-sizing:border-box;
  19513. }
  19514. .file {
  19515. display: flex;
  19516. flex-direction: column;
  19517. align-items: center;
  19518. justify-content: center;
  19519. cursor: pointer;
  19520. width: 200px;
  19521. }
  19522. .file div {
  19523. margin-top: 10px;
  19524. width: 150px;
  19525. text-align: center;
  19526. overflow: hidden;
  19527. white-space: nowrap;
  19528. text-overflow: ellipsis;
  19529. }
  19530. .media {
  19531. display: flex;
  19532. flex-direction: column;
  19533. align-items: center;
  19534. justify-content: center;
  19535. margin: 0 20px 20px 0;
  19536. cursor: pointer;
  19537. margin: 12px 0 5px 15px;
  19538. overflow: hidden;
  19539. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  19540. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  19541. box-sizing: border-box;
  19542. }
  19543. .media img {
  19544. height: 90px;
  19545. width: 160px;
  19546. object-fit: cover;
  19547. }
  19548. .media .title {
  19549. padding: 5px;
  19550. text-align: left;
  19551. width: 100%;
  19552. box-sizing: border-box;
  19553. }
  19554. .media .btn {
  19555. width: 100%;
  19556. height: 35px;
  19557. line-height: 35px;
  19558. color: #fff;
  19559. background: #606060;
  19560. text-align: center;
  19561. overflow: hidden;
  19562. white-space: nowrap;
  19563. text-overflow: ellipsis;
  19564. }
  19565. .detail_content_top {
  19566. width: 100%;
  19567. padding: 25px 0 25px 0;
  19568. }
  19569. .detail_title {
  19570. text-align: center;
  19571. font-size: 24px;
  19572. }
  19573. .detail_time {
  19574. font-size: 13px;
  19575. padding: 15px 0 0 40px;
  19576. }
  19577. .detail_content {
  19578. line-height: 2pc;
  19579. width: 90%;
  19580. margin: 0 auto;
  19581. padding-top: 30px;
  19582. text-indent: 30px;
  19583. overflow: auto;
  19584. height: 200px;
  19585. }
  19586. .score_box >>> .el-rate {
  19587. margin-left: 10px;
  19588. }
  19589. .dialog_change >>> .el-dialog {
  19590. border-radius: 5px;
  19591. }
  19592. .dialog_change >>> .el-dialog__header {
  19593. background: #f2f2f2;
  19594. text-align: center;
  19595. }
  19596. .dialog_change >>> .el-dialog__title {
  19597. line-height: 5px;
  19598. }
  19599. .dialog_change >>> .el-dialog__body {
  19600. background: #fff;
  19601. padding: 10px 20px;
  19602. }
  19603. .score_box {
  19604. display: flex;
  19605. align-items: center;
  19606. margin-bottom: 18px;
  19607. margin-top: 20px;
  19608. }
  19609. .up_photo {
  19610. width: 120px;
  19611. cursor: pointer;
  19612. margin-top: 10px;
  19613. }
  19614. .up_photo2 {
  19615. width: 180px;
  19616. box-sizing: border-box;
  19617. min-width: 180px;
  19618. height: 180px;
  19619. max-height: 180px;
  19620. min-height: 180px;
  19621. cursor: pointer;
  19622. display: flex;
  19623. flex-direction: column;
  19624. align-items: center;
  19625. justify-content: center;
  19626. background: rgb(242, 246, 255);
  19627. /* padding: 25px; */
  19628. margin-bottom: 10px;
  19629. }
  19630. .up_photo2 img {
  19631. width: 50%;
  19632. height: auto;
  19633. }
  19634. .up_photo2 span {
  19635. color: #898989;
  19636. }
  19637. .plworkBox {
  19638. display: flex;
  19639. align-items: center;
  19640. margin-top: 10px;
  19641. flex-wrap: wrap;
  19642. }
  19643. .upload_send {
  19644. margin: 30px auto 30px;
  19645. width: 60%;
  19646. background: #3681fc;
  19647. text-align: center;
  19648. height: 35px;
  19649. line-height: 35px;
  19650. color: #fff;
  19651. border-radius: 5px;
  19652. cursor: pointer;
  19653. }
  19654. .marginT {
  19655. margin-top: 20px;
  19656. }
  19657. .cd_content_steps {
  19658. display: flex;
  19659. width: 90%;
  19660. justify-content: space-around;
  19661. border-top: 1px solid #eeeeee;
  19662. }
  19663. .cd_steps_box {
  19664. display: flex;
  19665. justify-content: center;
  19666. align-items: center;
  19667. flex-direction: column;
  19668. cursor: pointer;
  19669. }
  19670. .first {
  19671. display: flex;
  19672. align-items: center;
  19673. margin: 15px 0 20px 0;
  19674. font-size: 20px;
  19675. }
  19676. .first > div:nth-child(2) {
  19677. font-size: 16px !important;
  19678. padding-left: 10px;
  19679. line-height: 26px;
  19680. box-sizing: border-box;
  19681. }
  19682. .blue_box_one {
  19683. text-align: center;
  19684. color: #fff;
  19685. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  19686. border-radius: 7px;
  19687. margin: 10px;
  19688. cursor: pointer;
  19689. width: 95%;
  19690. height: 45px;
  19691. display: flex;
  19692. flex-direction: row;
  19693. justify-content: flex-start;
  19694. align-items: center;
  19695. }
  19696. .blue_box_one > div:nth-child(1) {
  19697. line-height: 30px;
  19698. margin: 0 5px 0 10px;
  19699. width: 30%;
  19700. min-width: 70px;
  19701. border-radius: 4px;
  19702. }
  19703. .blue_box_one > div:nth-child(2) {
  19704. white-space: nowrap;
  19705. text-overflow: ellipsis;
  19706. overflow: hidden;
  19707. word-break: break-all;
  19708. width: 70%;
  19709. text-align: left;
  19710. margin-right: 10px;
  19711. max-width: calc(100% - 85px);
  19712. }
  19713. .blue_box_one > div:nth-child(2):hover {
  19714. overflow: hidden;
  19715. text-overflow: ellipsis;
  19716. white-space: nowrap;
  19717. cursor: pointer;
  19718. }
  19719. .upFile {
  19720. margin: 0 auto;
  19721. width: 120px;
  19722. background: #3681fc;
  19723. color: #fff;
  19724. height: 30px;
  19725. text-align: center;
  19726. line-height: 30px;
  19727. border-radius: 5px;
  19728. font-size: 14px;
  19729. cursor: pointer;
  19730. }
  19731. .courseTitle {
  19732. width: 85%;
  19733. margin: 10px auto 26px auto;
  19734. display: flex;
  19735. flex-direction: row;
  19736. align-items: center;
  19737. justify-content: space-between;
  19738. text-align: center;
  19739. }
  19740. .courseTitle .ctitle {
  19741. font-size: 20px;
  19742. font-weight: bold;
  19743. color: #0e1e33;
  19744. white-space: nowrap;
  19745. overflow: hidden;
  19746. text-overflow: ellipsis;
  19747. }
  19748. .inviteBox {
  19749. font-size: 14px;
  19750. /* margin-top: 5px; */
  19751. color: #00000099;
  19752. text-align: center;
  19753. }
  19754. .courseTitle >>> .el-tooltip {
  19755. width: 100%;
  19756. white-space: nowrap;
  19757. overflow: hidden;
  19758. text-overflow: ellipsis;
  19759. word-break: break-word;
  19760. }
  19761. .ml {
  19762. margin-left: 20px;
  19763. color: #5b7dba;
  19764. border-left: 3px solid #5b7dba;
  19765. padding-left: 5px;
  19766. font-weight: bold;
  19767. }
  19768. .return {
  19769. width: 2rem;
  19770. height: 2rem;
  19771. cursor: pointer;
  19772. }
  19773. .return > img {
  19774. width: 100%;
  19775. height: 100%;
  19776. }
  19777. .returnBtn {
  19778. width: 86px;
  19779. height: 36px;
  19780. background: #3681fc;
  19781. border-radius: 4px;
  19782. color: #fff;
  19783. text-align: center;
  19784. line-height: 36px;
  19785. margin-right: 20px;
  19786. cursor: pointer;
  19787. font-size: 14px;
  19788. font-weight: 400;
  19789. display: flex;
  19790. flex-direction: row;
  19791. flex-wrap: nowrap;
  19792. align-items: center;
  19793. justify-content: center;
  19794. }
  19795. .reBtnIcon,
  19796. .commentIcon,
  19797. .vedioIcon,
  19798. .vedioIcon1 {
  19799. /* width: 36px; */
  19800. height: 36px;
  19801. border-radius: 4px;
  19802. position: relative;
  19803. /* background: #e0eafb; */
  19804. background: #0061ff;
  19805. cursor: pointer;
  19806. margin-right: 12px;
  19807. display: flex;
  19808. align-items: center;
  19809. padding: 0 10px;
  19810. box-sizing: border-box;
  19811. font-size: 14px;
  19812. color: #fff;
  19813. }
  19814. .reBtnIcon::before,
  19815. .commentIcon::before,
  19816. .vedioIcon::before,
  19817. .vedioIcon1::before {
  19818. content: "";
  19819. display: block;
  19820. background-size: 100% 100%;
  19821. background-repeat: no-repeat;
  19822. width: 20px;
  19823. height: 20px;
  19824. margin-right: 5px;
  19825. /* position: absolute; */
  19826. /* top: 8px;
  19827. left: 8px; */
  19828. }
  19829. .vedioIcon1 {
  19830. background: #f63564;
  19831. }
  19832. .reBtnIcon::before {
  19833. background-image: url("../../assets/icon/newIcons/refresh.png");
  19834. }
  19835. .commentIcon::before {
  19836. background-image: url("../../assets/icon/newIcons/comment.png");
  19837. }
  19838. .vedioIcon::before {
  19839. background-image: url("../../assets/icon/newIcons/transcribe.png");
  19840. }
  19841. .vedioIcon1::before {
  19842. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  19843. background-image: url("../../assets/icon/newIcons/transcribe.png");
  19844. }
  19845. .tool {
  19846. display: flex;
  19847. flex-direction: column;
  19848. flex-wrap: nowrap;
  19849. width: 13%;
  19850. margin: 0 30px;
  19851. align-items: center;
  19852. position: relative;
  19853. padding: 10px 25px;
  19854. cursor: pointer;
  19855. }
  19856. .whiteBIcon {
  19857. width: 150px;
  19858. }
  19859. .whiteBIcon > img {
  19860. width: 100%;
  19861. height: 100%;
  19862. }
  19863. .mask {
  19864. background-color: rgba(0, 0, 0, 0);
  19865. position: fixed;
  19866. top: 0;
  19867. left: 0;
  19868. width: 100%;
  19869. height: 100%;
  19870. z-index: 20000;
  19871. display: flex;
  19872. align-items: center;
  19873. justify-content: center;
  19874. }
  19875. .progressBox {
  19876. width: 500px;
  19877. height: 180px;
  19878. background: #fff;
  19879. border-radius: 10px;
  19880. box-shadow: 0 0 6px 1px #bfbfbf;
  19881. display: flex;
  19882. align-items: center;
  19883. justify-content: center;
  19884. flex-direction: column;
  19885. position: relative;
  19886. color: #6c6c6c;
  19887. }
  19888. .progressBox >>> .el-progress-bar__outer {
  19889. background-color: #d1dfff !important;
  19890. }
  19891. .progressBox .lbox {
  19892. height: 50px;
  19893. font-size: 19px;
  19894. display: flex;
  19895. align-items: center;
  19896. color: #747474;
  19897. }
  19898. .progressBox .lbox img {
  19899. width: 40px;
  19900. margin-right: 20px;
  19901. }
  19902. .closeCss {
  19903. position: absolute;
  19904. top: 8px;
  19905. right: 8px;
  19906. cursor: pointer;
  19907. width: 20px;
  19908. height: 20px;
  19909. }
  19910. .closeCss > img {
  19911. width: 100%;
  19912. height: 100%;
  19913. }
  19914. .uploadVedio {
  19915. display: flex;
  19916. flex-direction: column;
  19917. flex-wrap: nowrap;
  19918. justify-content: center;
  19919. align-items: center;
  19920. margin: 0 15px 10px 0;
  19921. }
  19922. .uploadVedio > img {
  19923. width: 30px;
  19924. height: 30px;
  19925. }
  19926. .uploadVedio > span {
  19927. white-space: nowrap;
  19928. overflow: hidden;
  19929. text-overflow: ellipsis;
  19930. width: 75px;
  19931. margin-top: 7px;
  19932. }
  19933. .picName {
  19934. white-space: nowrap;
  19935. overflow: hidden;
  19936. text-overflow: ellipsis;
  19937. width: 75px;
  19938. margin-top: 7px;
  19939. }
  19940. .new_top {
  19941. display: flex;
  19942. background: #fff;
  19943. flex-direction: row;
  19944. justify-content: flex-start;
  19945. align-items: center;
  19946. height: 60px;
  19947. position: fixed;
  19948. top: 20px;
  19949. left: 22%;
  19950. width: 77%;
  19951. z-index: 999;
  19952. border-radius: 12px 12px 0 0;
  19953. border-bottom: 1px solid #cad1dc;
  19954. padding: 10px 0;
  19955. }
  19956. .new_topFixed {
  19957. width: 100%;
  19958. height: 40px;
  19959. position: fixed;
  19960. top: 0px;
  19961. display: block;
  19962. background: #f2f2f2;
  19963. z-index: 998;
  19964. }
  19965. .before {
  19966. position: absolute;
  19967. background: #c3dad4;
  19968. width: 6px;
  19969. height: 100%;
  19970. }
  19971. .courseIndex {
  19972. display: flex;
  19973. flex-direction: row;
  19974. align-items: center;
  19975. width: calc(100% - 745px);
  19976. }
  19977. .courseIndex > div:nth-child(1) {
  19978. margin: 0 0 0 10px;
  19979. font-size: 20px;
  19980. min-width: 100px;
  19981. font-weight: bold;
  19982. border-left: 4px solid #3363b9;
  19983. height: 32px;
  19984. text-align: center;
  19985. line-height: 35px;
  19986. }
  19987. .courseIndex > div:nth-child(2) {
  19988. font-size: 20px;
  19989. /* width: 300px; */
  19990. max-width: calc(100% - 105px);
  19991. white-space: nowrap;
  19992. overflow: hidden;
  19993. text-overflow: ellipsis;
  19994. }
  19995. .courseIndex > div:nth-child(3) {
  19996. border-bottom: 1px solid #d7d7d7;
  19997. padding-bottom: 5px;
  19998. background: #3681fc;
  19999. width: 55px;
  20000. min-width: 55px;
  20001. border-radius: 5px;
  20002. color: #fff;
  20003. text-align: center;
  20004. height: 20px;
  20005. line-height: 26px;
  20006. font-size: 14px;
  20007. margin: 0 0 0 10px;
  20008. }
  20009. .course_text {
  20010. padding: 20px 0 0 15px;
  20011. text-indent: 30px;
  20012. width: 80%;
  20013. min-height: 20px;
  20014. }
  20015. .vedioList {
  20016. background: #f2f2f2;
  20017. border: 1px solid #ececec;
  20018. /* width: 38.8%; */
  20019. /* width: 300px; */
  20020. width: 100%;
  20021. height: 445px;
  20022. border-radius: 10px;
  20023. overflow: hidden;
  20024. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  20025. }
  20026. .vedioNav {
  20027. margin: 10px 0 0 15px;
  20028. border-bottom: 1px solid #d7d7d7;
  20029. padding-bottom: 5px;
  20030. background: #3681fc;
  20031. width: 55px;
  20032. min-width: 55px;
  20033. border-radius: 5px;
  20034. color: #fff;
  20035. text-align: center;
  20036. height: 20px;
  20037. line-height: 26px;
  20038. font-size: 14px;
  20039. }
  20040. .queTop {
  20041. display: flex;
  20042. padding: 20px 0 20px 30px;
  20043. width: 100%;
  20044. flex-direction: row;
  20045. justify-content: flex-start;
  20046. align-items: center;
  20047. box-sizing: border-box;
  20048. }
  20049. .queTopTitle {
  20050. display: flex;
  20051. flex-direction: row;
  20052. flex-wrap: nowrap;
  20053. align-items: center;
  20054. font-weight: bold;
  20055. font-size: 20px;
  20056. color: rgb(14, 30, 51);
  20057. }
  20058. .queTopTitle::before {
  20059. content: "";
  20060. width: 2px;
  20061. height: 22px;
  20062. background: #3681fc;
  20063. border-radius: 3px;
  20064. display: block;
  20065. margin: 2px 6px 0 0;
  20066. }
  20067. .queTopRight {
  20068. display: flex;
  20069. flex-direction: row;
  20070. flex-wrap: nowrap;
  20071. align-items: center;
  20072. }
  20073. .queTopClose {
  20074. margin-right: 20px;
  20075. cursor: pointer;
  20076. position: relative;
  20077. display: flex;
  20078. }
  20079. .closeImg,
  20080. .openImg {
  20081. width: 25px;
  20082. height: 25px;
  20083. position: absolute;
  20084. left: -20px;
  20085. top: -1px;
  20086. }
  20087. .closeImg > img,
  20088. .openImg > img {
  20089. width: 100%;
  20090. height: 100%;
  20091. }
  20092. .question {
  20093. width: 40px;
  20094. margin-right: 10px;
  20095. margin-top: 7px;
  20096. }
  20097. .queTitle {
  20098. margin-left: 5px;
  20099. font-size: 25px;
  20100. display: flex;
  20101. align-items: center;
  20102. }
  20103. .addEditor {
  20104. width: 100px;
  20105. height: 30px;
  20106. background: #42cda6;
  20107. color: #fff;
  20108. border-radius: 5px;
  20109. text-align: center;
  20110. line-height: 30px;
  20111. box-shadow: 1px 3px 6px 1px #bfbfbf;
  20112. cursor: pointer;
  20113. }
  20114. /* .vedioName {
  20115. cursor: pointer;
  20116. margin: 0px 0px 10px 5px;
  20117. white-space: nowrap;
  20118. overflow: hidden;
  20119. text-overflow: ellipsis;
  20120. width: 100%;
  20121. } */
  20122. .vedioTime {
  20123. width: 35px;
  20124. position: absolute;
  20125. color: #fff;
  20126. bottom: 0px;
  20127. right: 0px;
  20128. text-align: center;
  20129. background: #46411f;
  20130. height: 20px;
  20131. font-size: 14px;
  20132. line-height: 20px;
  20133. }
  20134. .homework {
  20135. width: 200px;
  20136. display: flex;
  20137. flex-direction: column;
  20138. flex-wrap: nowrap;
  20139. align-items: center;
  20140. cursor: pointer;
  20141. }
  20142. .homebox {
  20143. display: flex;
  20144. flex-wrap: wrap;
  20145. flex-direction: row;
  20146. justify-content: flex-start;
  20147. align-items: center;
  20148. padding: 15px 0;
  20149. }
  20150. .isChooseActive {
  20151. color: #3681fc !important;
  20152. font-weight: bold !important;
  20153. }
  20154. .chooseWho {
  20155. display: flex;
  20156. width: 100%;
  20157. flex-direction: row;
  20158. flex-wrap: nowrap;
  20159. justify-content: flex-start;
  20160. padding-bottom: 10px;
  20161. }
  20162. .chooseWho > div {
  20163. cursor: pointer;
  20164. padding-bottom: 10px;
  20165. margin: 0 30px 0 0;
  20166. font-weight: 400;
  20167. color: #0e1e33;
  20168. }
  20169. .addPoint > div > img {
  20170. cursor: pointer;
  20171. width: 85px;
  20172. border-radius: 15px;
  20173. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  20174. }
  20175. .addPoint > div {
  20176. display: flex;
  20177. flex-direction: column;
  20178. flex-wrap: nowrap;
  20179. align-items: center;
  20180. }
  20181. .isBorder > div {
  20182. margin: 0 0 10px 0;
  20183. align-items: flex-start !important;
  20184. }
  20185. .noiframeBox {
  20186. display: flex;
  20187. flex-wrap: wrap;
  20188. }
  20189. .iframeBox iframe {
  20190. width: 100%;
  20191. height: 800px;
  20192. border: none;
  20193. margin-bottom: 20px;
  20194. border: 1px solid #ccc;
  20195. }
  20196. .upload_toolBtn {
  20197. background: #3681fc;
  20198. color: #fff;
  20199. width: 110px;
  20200. text-align: center;
  20201. height: 35px;
  20202. line-height: 35px;
  20203. font-size: 14px;
  20204. border-radius: 5px;
  20205. cursor: pointer;
  20206. position: absolute;
  20207. right: 10px;
  20208. bottom: 0;
  20209. }
  20210. .binfo_input,
  20211. .pj {
  20212. font: inherit;
  20213. color: currentColor;
  20214. width: 100%;
  20215. margin: 0;
  20216. padding: 15px 14px;
  20217. display: block;
  20218. min-width: 0;
  20219. outline: none;
  20220. box-sizing: content-box;
  20221. background: none;
  20222. -webkit-tap-highlight-color: transparent;
  20223. border: 1px solid rgba(0, 0, 0, 0.23);
  20224. border-radius: 4px;
  20225. box-sizing: border-box;
  20226. resize: none;
  20227. }
  20228. .binfo_input:focus-visible {
  20229. border: 1px solid rgba(61, 103, 188);
  20230. }
  20231. .dialog_diy >>> .el-dialog__header,
  20232. .dialog_diy1 >>> .el-dialog__header {
  20233. background: #454545 !important;
  20234. padding: 15px 20px;
  20235. }
  20236. .dialog_diy >>> .el-dialog__title,
  20237. .dialog_diy1 >>> .el-dialog__title {
  20238. color: #fff;
  20239. }
  20240. .dialog_diy >>> .el-dialog__headerbtn,
  20241. .dialog_diy1 >>> .el-dialog__headerbtn {
  20242. top: 19px;
  20243. }
  20244. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  20245. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  20246. color: #fff;
  20247. }
  20248. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  20249. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  20250. color: #fff;
  20251. }
  20252. .dialog_diy1 >>> .el-dialog__body {
  20253. padding: 0;
  20254. }
  20255. .dialog_diy >>> .el-dialog__body,
  20256. .dialog_diy >>> .el-dialog__footer,
  20257. .dialog_diy1 >>> .el-dialog__footer {
  20258. background: #fafafa;
  20259. }
  20260. .a_addBox {
  20261. padding: 0 0 0 15px;
  20262. }
  20263. .a_add_box {
  20264. padding: 10px;
  20265. background: #fff;
  20266. margin-bottom: 10px;
  20267. border-radius: 5px;
  20268. box-shadow: 0 0 5px 0 #d5d5d5;
  20269. }
  20270. .a_add_head {
  20271. display: flex;
  20272. align-items: flex-start;
  20273. /* justify-content: space-between; */
  20274. flex-direction: column;
  20275. /* flex-direction: row; */
  20276. margin: 10px 0 20px 0;
  20277. font-size: 18px;
  20278. width: 100%;
  20279. }
  20280. .askIndex {
  20281. background: #3681fc;
  20282. border-radius: 50%;
  20283. color: #fff;
  20284. width: 25px;
  20285. height: 25px;
  20286. min-width: 25px;
  20287. min-height: 25px;
  20288. text-align: center;
  20289. line-height: 25px;
  20290. margin-right: 5px;
  20291. }
  20292. .a_add_head .a_add_head_input {
  20293. width: 300px;
  20294. }
  20295. .a_add_head .a_add_head_div {
  20296. display: flex;
  20297. align-items: center;
  20298. justify-content: space-between;
  20299. }
  20300. .a_add_body {
  20301. display: flex;
  20302. align-items: center;
  20303. }
  20304. .a_add_input {
  20305. display: flex;
  20306. align-items: center;
  20307. flex-wrap: wrap;
  20308. width: 100%;
  20309. }
  20310. .a_add_input >>> .el-radio-group,
  20311. .a_add_input >>> .el-checkbox-group {
  20312. width: 100%;
  20313. }
  20314. .a_add_input >>> .el-radio,
  20315. .a_add_input >>> .el-checkbox {
  20316. display: flex;
  20317. flex-direction: row;
  20318. flex-wrap: nowrap;
  20319. align-items: center;
  20320. padding: 15px 0;
  20321. }
  20322. .a_add_input >>> .el-radio:not(:last-child),
  20323. .a_add_input >>> .el-checkbox:not(:last-child) {
  20324. width: 100%;
  20325. border-bottom: 1px solid #efefef;
  20326. }
  20327. .redioStyle >>> .el-radio__label {
  20328. font-size: 18px;
  20329. }
  20330. .redioStyle >>> .el-radio__label > span,
  20331. .redioStyle >>> .el-checkbox__label > span {
  20332. word-break: break-all;
  20333. white-space: normal;
  20334. }
  20335. .redioStyle >>> .el-checkbox__label {
  20336. font-size: 18px;
  20337. }
  20338. .toolHeng2 {
  20339. width: 100%;
  20340. padding-left: 37px;
  20341. box-sizing: border-box;
  20342. }
  20343. .workNav {
  20344. font-size: 20px;
  20345. font-weight: bold;
  20346. color: #0e1e33;
  20347. display: flex;
  20348. flex-direction: row;
  20349. flex-wrap: nowrap;
  20350. align-items: center;
  20351. padding: 15px 0 15px 0;
  20352. }
  20353. .workNav::before {
  20354. content: "";
  20355. width: 2px;
  20356. height: 22px;
  20357. background: #3681fc;
  20358. border-radius: 3px;
  20359. display: block;
  20360. margin: 2px 6px 0 0;
  20361. }
  20362. .toolHeng {
  20363. display: flex;
  20364. flex-direction: row;
  20365. flex-wrap: wrap;
  20366. justify-content: flex-start;
  20367. align-items: center;
  20368. width: 100%;
  20369. }
  20370. .toolHeng > div {
  20371. padding-left: 20px;
  20372. }
  20373. .isWidth {
  20374. width: 20%;
  20375. }
  20376. .textTitle {
  20377. display: flex;
  20378. flex-direction: row;
  20379. flex-wrap: nowrap;
  20380. align-items: center;
  20381. width: 95%;
  20382. }
  20383. .textTitle >>> .el-form-item__label {
  20384. font-size: 22px;
  20385. color: #918f8f;
  20386. width: 100px;
  20387. }
  20388. .textTitle >>> .el-form-item__content {
  20389. width: calc(100% - 100px);
  20390. }
  20391. .textCss >>> .el-dialog {
  20392. width: 800px !important;
  20393. height: 400px;
  20394. background: #fafafa;
  20395. }
  20396. .textCss >>> .el-dialog__body {
  20397. margin: 55px 8% 0 8%;
  20398. padding: 0 !important;
  20399. }
  20400. .textCss >>> .el-dialog__footer {
  20401. padding-top: 38px;
  20402. }
  20403. .toolsCss >>> .el-dialog__body {
  20404. padding: 20px;
  20405. }
  20406. .lineCss >>> .el-dialog__body {
  20407. display: flex;
  20408. flex-direction: row;
  20409. align-items: center;
  20410. justify-content: center;
  20411. }
  20412. .newNav {
  20413. display: flex;
  20414. flex-direction: row;
  20415. align-items: baseline;
  20416. justify-content: flex-start;
  20417. }
  20418. .navListItem {
  20419. width: calc(100% - 20px);
  20420. height: 50px;
  20421. margin: 0px auto 10px;
  20422. display: flex;
  20423. flex-direction: row;
  20424. flex-wrap: nowrap;
  20425. align-items: center;
  20426. justify-content: space-between;
  20427. background: #f0f4fa;
  20428. border-radius: 6px 6px 6px 6px;
  20429. }
  20430. .navText {
  20431. cursor: pointer;
  20432. white-space: nowrap;
  20433. overflow: hidden;
  20434. text-overflow: ellipsis;
  20435. width: 220px;
  20436. padding: 0 10px;
  20437. font-weight: 400;
  20438. color: #0e1e33;
  20439. }
  20440. .downIcon {
  20441. width: 20px;
  20442. min-width: 20px;
  20443. height: 20px;
  20444. margin-right: 15px;
  20445. cursor: pointer;
  20446. }
  20447. .downIcon > img {
  20448. width: 100%;
  20449. height: 100%;
  20450. }
  20451. .noVedio {
  20452. display: flex;
  20453. flex-direction: row;
  20454. justify-content: center;
  20455. align-content: center;
  20456. }
  20457. .noNavText {
  20458. cursor: pointer;
  20459. margin: 0px 0px 10px 5px;
  20460. width: 112px;
  20461. }
  20462. .listNoVedio {
  20463. margin: 0 0 0 30px;
  20464. width: 97%;
  20465. }
  20466. .video-player >>> .video-js {
  20467. height: 100%;
  20468. }
  20469. .hangVedioList {
  20470. width: 90% !important;
  20471. height: 150px !important;
  20472. margin: 20px 0 0 30px;
  20473. }
  20474. .hangVedio {
  20475. width: 100%;
  20476. height: 170px !important;
  20477. align-items: flex-start !important;
  20478. }
  20479. .hangHand {
  20480. height: 150px !important;
  20481. }
  20482. .twoChild {
  20483. width: 95%;
  20484. margin: 10px;
  20485. border-radius: 5px;
  20486. background: #f2f2f2;
  20487. display: flex;
  20488. flex-direction: column;
  20489. flex-wrap: nowrap;
  20490. justify-content: flex-start;
  20491. align-items: flex-start;
  20492. transition: all 0.5s;
  20493. overflow: hidden;
  20494. height: 0;
  20495. background: #e7f3ff;
  20496. }
  20497. .twoChild > div:nth-child(1) {
  20498. margin-top: 5px;
  20499. }
  20500. .navChild {
  20501. width: 100%;
  20502. cursor: pointer;
  20503. margin-bottom: 10px;
  20504. position: relative;
  20505. }
  20506. .navChild img {
  20507. position: absolute;
  20508. right: 11px;
  20509. width: 15px;
  20510. top: 50%;
  20511. transform: translateY(-50%);
  20512. }
  20513. .navActive,
  20514. .toolActive {
  20515. height: auto !important;
  20516. overflow: auto !important;
  20517. /* // padding-bottom: 16px; */
  20518. }
  20519. .toolActive {
  20520. padding: 0;
  20521. }
  20522. .navTask {
  20523. display: flex;
  20524. flex-direction: row;
  20525. flex-wrap: nowrap;
  20526. align-items: center;
  20527. align-content: flex-start;
  20528. height: 40px;
  20529. justify-content: flex-start;
  20530. padding: 0 10px;
  20531. width: 100%;
  20532. box-sizing: border-box;
  20533. }
  20534. .navTaskname {
  20535. white-space: nowrap;
  20536. text-overflow: ellipsis;
  20537. overflow: hidden;
  20538. word-break: break-all;
  20539. padding-left: 5px;
  20540. }
  20541. .openTaskActive {
  20542. /* background-color: #e0eafb !important;
  20543. color: #0061ff; */
  20544. color:#fff;
  20545. background: rgb(55, 129, 252) !important;
  20546. }
  20547. .iframeName {
  20548. margin: 5px 0;
  20549. border-left: 4px solid #41c4a4;
  20550. padding-left: 4px;
  20551. }
  20552. .toolTitle {
  20553. margin: 0px 0px 20px;
  20554. font-size: 20px;
  20555. font-weight: 500;
  20556. border-left: 4px solid #41c4a4;
  20557. padding-left: 4px;
  20558. }
  20559. .cru_selectBox {
  20560. overflow: auto;
  20561. width: 95%;
  20562. margin: 17px auto 0;
  20563. height: calc(100% - 40px - 21px - 20px - 17px);
  20564. background: #fff;
  20565. border-radius: 8px;
  20566. }
  20567. .cru_selectBox::-webkit-scrollbar,
  20568. .study_top::-webkit-scrollbar,
  20569. .textContent::-webkit-scrollbar {
  20570. /*滚动条整体样式*/
  20571. width: 6px;
  20572. /*高宽分别对应横竖滚动条的尺寸*/
  20573. height: 6px;
  20574. }
  20575. /*定义滚动条轨道 内阴影+圆角*/
  20576. .cru_selectBox::-webkit-scrollbar-track,
  20577. .study_top::-webkit-scrollbar-track,
  20578. .textContent::-webkit-scrollbar {
  20579. border-radius: 10px;
  20580. background-color: #b8bdc9;
  20581. }
  20582. /*定义滑块 内阴影+圆角*/
  20583. .cru_selectBox::-webkit-scrollbar-thumb,
  20584. .study_top::-webkit-scrollbar-thumb,
  20585. .textContent::-webkit-scrollbar-thumb {
  20586. border-radius: 10px;
  20587. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  20588. background-color: #2c5ab3;
  20589. }
  20590. .vedioBox {
  20591. border-radius: 0 0 20px 20px;
  20592. background: #fff;
  20593. overflow: auto;
  20594. }
  20595. .taskBox {
  20596. width: 98%;
  20597. background: #f0f4fa;
  20598. margin: 10px auto;
  20599. padding: 0 10px;
  20600. border-radius: 4px;
  20601. box-sizing: border-box;
  20602. }
  20603. .vedioTaskBox {
  20604. width: 100%;
  20605. display: flex;
  20606. flex-direction: row;
  20607. flex-wrap: nowrap;
  20608. align-items: flex-start;
  20609. position: relative;
  20610. }
  20611. .toolBox {
  20612. margin: 15px 0 0 25px;
  20613. display: flex;
  20614. position: relative;
  20615. padding: 18px 20px;
  20616. border-top-left-radius: 5px;
  20617. border-top-right-radius: 5px;
  20618. width: 90%;
  20619. }
  20620. .btnAll {
  20621. position: absolute;
  20622. right: 0;
  20623. display: flex;
  20624. flex-direction: row;
  20625. flex-wrap: nowrap;
  20626. align-items: center;
  20627. }
  20628. .btnLeft,
  20629. .btnRight {
  20630. display: flex;
  20631. flex-direction: row;
  20632. flex-wrap: nowrap;
  20633. align-items: center;
  20634. padding: 5px 0;
  20635. }
  20636. .btnLeft {
  20637. border-right: 1px solid #cad1dc;
  20638. }
  20639. .btnLeft > .custom-tooltip {
  20640. background: #3681fc;
  20641. color: #fff;
  20642. }
  20643. .last:hover {
  20644. background: #3383fa !important;
  20645. color: #fff;
  20646. border: 1px solid #3383fa !important;
  20647. }
  20648. .last,
  20649. .returnBtn1 {
  20650. width: 90px;
  20651. height: 36px;
  20652. background: #ffffff;
  20653. border-radius: 4px;
  20654. border: 1px solid #0061ff;
  20655. color: #0061ff;
  20656. cursor: pointer;
  20657. display: flex;
  20658. flex-direction: row;
  20659. flex-wrap: nowrap;
  20660. align-items: center;
  20661. justify-content: center;
  20662. margin-left: 12px;
  20663. }
  20664. .returnBtn1 {
  20665. background: #f0f4fa;
  20666. border-radius: 4px;
  20667. border: 1px solid #cad1dc;
  20668. margin: 0 12px;
  20669. }
  20670. .lastImg {
  20671. min-width: 15px;
  20672. width: 15px;
  20673. height: 15px;
  20674. }
  20675. .lastText {
  20676. padding: 0 5px 2px 5px;
  20677. box-sizing: border-box;
  20678. font-size: 14px;
  20679. }
  20680. .lastImg > img {
  20681. width: 100%;
  20682. height: 100%;
  20683. }
  20684. /* .vedioTimeBox {
  20685. display: flex;
  20686. flex-direction: row;
  20687. align-items: center;
  20688. flex-wrap: nowrap;
  20689. position: relative;
  20690. } */
  20691. .navBox {
  20692. background: #fff;
  20693. height: calc(100% - 40px);
  20694. overflow-y: auto;
  20695. overflow-x: hidden;
  20696. }
  20697. .worksBox {
  20698. margin: 0 0 10px 25px;
  20699. border-bottom: 1px solid #eeeeee;
  20700. padding: 18px 20px;
  20701. border-radius: 4px;
  20702. width: 90%;
  20703. }
  20704. .worksBTitle {
  20705. font-size: 20px;
  20706. padding-bottom: 15px;
  20707. border-bottom: 1px solid #eeeeee;
  20708. display: flex;
  20709. align-items: center;
  20710. }
  20711. .greenBox {
  20712. width: 5px;
  20713. height: 30px;
  20714. background: #63b6fa;
  20715. margin-right: 5px;
  20716. }
  20717. .worksDetailBox {
  20718. display: flex;
  20719. width: 100%;
  20720. flex-direction: row;
  20721. flex-wrap: wrap;
  20722. align-items: flex-end;
  20723. justify-content: flex-start;
  20724. padding: 15px 5px;
  20725. box-sizing: border-box;
  20726. }
  20727. .works {
  20728. display: flex;
  20729. flex-direction: column;
  20730. flex-wrap: nowrap;
  20731. align-items: flex-start;
  20732. justify-content: flex-start;
  20733. align-content: center;
  20734. max-width: 240px;
  20735. width: calc(100% / 3 - 10px);
  20736. height: auto;
  20737. margin-right: 10px;
  20738. margin-bottom: 10px;
  20739. overflow: hidden;
  20740. height: 140px;
  20741. box-shadow: 0 0 6px 1px #dfdada;
  20742. border-radius: 15px;
  20743. }
  20744. .workImg {
  20745. width: 100%;
  20746. /* height: calc(100% - 40px); */
  20747. height: 105px;
  20748. position: relative;
  20749. }
  20750. .workImg > img {
  20751. width: 100%;
  20752. height: 100%;
  20753. object-fit: contain;
  20754. cursor: pointer;
  20755. }
  20756. .worksName {
  20757. height: 40px;
  20758. line-height: 40px;
  20759. display: flex;
  20760. width: 100%;
  20761. flex-direction: row;
  20762. flex-wrap: nowrap;
  20763. justify-content: space-between;
  20764. align-items: center;
  20765. margin: 0 0 0 10px;
  20766. }
  20767. .worksName > div:nth-child(1) {
  20768. width: 110px;
  20769. white-space: nowrap;
  20770. overflow: hidden;
  20771. text-overflow: ellipsis;
  20772. }
  20773. .worksName > div:nth-child(2) {
  20774. color: #b7b4b5;
  20775. }
  20776. .noWorksS {
  20777. padding: 15px 0;
  20778. display: flex;
  20779. flex-direction: row;
  20780. flex-wrap: wrap;
  20781. align-items: center;
  20782. justify-content: flex-start;
  20783. }
  20784. .noWorksName,
  20785. .isWorksName,
  20786. .isWorksName2 {
  20787. background: #ddebf8;
  20788. color: #000;
  20789. width: 90px;
  20790. height: 25px;
  20791. text-align: center;
  20792. line-height: 25px;
  20793. border-radius: 4px;
  20794. margin: 10px 15px 10px 0;
  20795. white-space: nowrap;
  20796. overflow: hidden;
  20797. padding: 5px;
  20798. text-overflow: ellipsis;
  20799. cursor: pointer;
  20800. border: 1px solid #ddebf8;
  20801. }
  20802. .noWorksName {
  20803. background: #fff;
  20804. color: #0061ff;
  20805. border: 1px solid #0061ff;
  20806. }
  20807. .isWorksName2 {
  20808. width: 100px;
  20809. height: 40px;
  20810. line-height: 40px;
  20811. position: relative;
  20812. background: #dae6f9;
  20813. }
  20814. .isWorksName {
  20815. background: #e7ebf1 !important;
  20816. width: 100px;
  20817. height: 40px;
  20818. line-height: 40px;
  20819. position: relative;
  20820. color: #acb4bf;
  20821. border: 1px solid #cad1dc !important;
  20822. }
  20823. .isSelectName,
  20824. .noWorksName:hover {
  20825. background: #3383fa !important;
  20826. color: #fff !important;
  20827. border: 1px solid #3383fa !important;
  20828. }
  20829. .title {
  20830. background: #1e5cc9;
  20831. /* width: 98%; */
  20832. height: 45px;
  20833. color: #fff;
  20834. line-height: 45px;
  20835. padding-left: 20px;
  20836. box-sizing: border-box;
  20837. }
  20838. .textBox {
  20839. font-size: 20px;
  20840. width: 90%;
  20841. display: flex;
  20842. flex-direction: column;
  20843. align-items: center;
  20844. margin: 20px auto 0;
  20845. max-height: calc(100% - 75px);
  20846. overflow: auto;
  20847. }
  20848. .textContent {
  20849. font-size: 18px;
  20850. width: 95%;
  20851. max-width: 95%;
  20852. }
  20853. .answerBg {
  20854. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  20855. background-size: 100% 100%;
  20856. width: 100%;
  20857. height: 100%;
  20858. color: #fff;
  20859. text-align: center;
  20860. display: flex;
  20861. flex-direction: column;
  20862. flex-wrap: nowrap;
  20863. align-items: center;
  20864. position: relative;
  20865. justify-content: center;
  20866. }
  20867. .answerBg > div:nth-child(1) {
  20868. /* font-size: 22px;
  20869. padding: 25px 0 10px; */
  20870. }
  20871. .answerContent {
  20872. width: 215px;
  20873. max-height: 60px;
  20874. word-break: break-all;
  20875. text-align: center;
  20876. /* white-space: nowrap; */
  20877. overflow: hidden;
  20878. text-overflow: ellipsis;
  20879. /* padding: 23px 0 0; */
  20880. -webkit-line-clamp: 3;
  20881. -webkit-box-orient: vertical;
  20882. display: -webkit-box;
  20883. font-size: 15px;
  20884. cursor: pointer;
  20885. }
  20886. .elist_input_box {
  20887. display: flex;
  20888. align-items: flex-start;
  20889. flex-wrap: nowrap;
  20890. padding: 10px 0 15px 30px;
  20891. flex-direction: column;
  20892. }
  20893. .elist_input {
  20894. /* width: 40%; */
  20895. width: 45%;
  20896. margin: 20px;
  20897. }
  20898. .elist_input .elist_input_box input {
  20899. font: inherit;
  20900. color: currentColor;
  20901. width: 200px;
  20902. padding: 8px 14px;
  20903. display: block;
  20904. min-width: 0;
  20905. outline: none;
  20906. border: 1px solid rgba(0, 0, 0, 0.23);
  20907. border-radius: 4px;
  20908. box-sizing: border-box;
  20909. background: #fff;
  20910. margin: 0 20px 0 0;
  20911. }
  20912. .elist_input .elist_input_box span {
  20913. height: 36px;
  20914. line-height: 36px;
  20915. color: rgb(82, 82, 82);
  20916. }
  20917. .elist_input .elist_input_box .remove {
  20918. height: 20px;
  20919. width: 20px;
  20920. background-size: 100% 100%;
  20921. background-position: unset;
  20922. margin-left: 5px;
  20923. }
  20924. .elist_input_box >>> .el-rate {
  20925. display: flex;
  20926. height: 36px;
  20927. align-items: center;
  20928. }
  20929. .elist_input_box .elist_inptu_text {
  20930. min-height: 50px;
  20931. /* width: 500px;
  20932. max-height: 150px; */
  20933. width: 100%;
  20934. line-height: 50px;
  20935. color: rgb(82, 82, 82);
  20936. overflow: auto;
  20937. text-indent: 5px;
  20938. background: #f7f6f9;
  20939. border-radius: 10px;
  20940. }
  20941. .elist_input_box .elist_inptu_text input {
  20942. width: 500px;
  20943. }
  20944. .elist_input_box >>> .el-rate__icon {
  20945. font-size: 24px;
  20946. }
  20947. .isClick {
  20948. background: #4d9def;
  20949. }
  20950. .bzBox {
  20951. display: flex;
  20952. flex-direction: row;
  20953. align-items: center;
  20954. }
  20955. .bzBox .yCss {
  20956. width: 7px;
  20957. height: 7px;
  20958. background: #fff;
  20959. margin: 0 16px 0 6px;
  20960. border-radius: 50%;
  20961. border: 5px solid #3681fc;
  20962. z-index: 99;
  20963. }
  20964. .bzBox > div:nth-child(2) {
  20965. font-size: 18px;
  20966. font-weight: bold;
  20967. color: #0e1e33;
  20968. }
  20969. .navTitile {
  20970. padding: 0 0px 0 15px;
  20971. font-size: 16px;
  20972. font-weight: bold;
  20973. color: #0e1e33;
  20974. height: 40px;
  20975. line-height: 40px;
  20976. }
  20977. .isTypeOne {
  20978. width: 240px;
  20979. height: 170px;
  20980. /* border: 1px solid #f8f8f8; */
  20981. border-radius: 10px;
  20982. box-shadow: 0 0 6px 1px #dfdada;
  20983. }
  20984. .e_add_top {
  20985. display: flex;
  20986. justify-content: space-between;
  20987. padding: 10px 20px;
  20988. border-radius: 3px;
  20989. background: #fff;
  20990. }
  20991. .e_add_title2 {
  20992. display: flex;
  20993. align-items: center;
  20994. }
  20995. .e_add_title2 span {
  20996. width: 40px;
  20997. }
  20998. .e_add_title {
  20999. display: flex;
  21000. align-items: center;
  21001. color: #b8b8b8;
  21002. font-size: 18px;
  21003. position: relative;
  21004. height: 40px;
  21005. }
  21006. .e_add_title span {
  21007. margin-right: 10px;
  21008. }
  21009. .e_add_title .el_input {
  21010. width: 300px;
  21011. }
  21012. .e_add_title >>> .el-input__inner {
  21013. width: 400px;
  21014. }
  21015. .e_add_btn {
  21016. }
  21017. .e_add_content {
  21018. display: flex;
  21019. width: 100%;
  21020. max-width: 650px;
  21021. height: 550px;
  21022. }
  21023. .e_add_list {
  21024. background: #fff;
  21025. height: 500px;
  21026. width: 210px;
  21027. position: relative;
  21028. margin: 15px 5px 0 0;
  21029. flex-shrink: 0;
  21030. display: flex;
  21031. flex-direction: column;
  21032. }
  21033. .e_add_list_title {
  21034. font-size: 20px;
  21035. width: 100%;
  21036. box-sizing: border-box;
  21037. padding: 15px 40px;
  21038. text-align: center;
  21039. border-bottom: 1px solid #eaeaea;
  21040. position: relative;
  21041. display: flex;
  21042. align-items: center;
  21043. justify-content: center;
  21044. height: 57px;
  21045. background: #f6f6f6;
  21046. }
  21047. .e_add_list_title span {
  21048. overflow: hidden;
  21049. white-space: nowrap;
  21050. text-overflow: ellipsis;
  21051. }
  21052. .e_add_list_title img {
  21053. position: absolute;
  21054. right: 15px;
  21055. width: 25px;
  21056. cursor: pointer;
  21057. top: 50%;
  21058. transform: translateY(-50%);
  21059. }
  21060. .e_add_list_body {
  21061. height: calc(100% - 187px);
  21062. overflow: auto;
  21063. }
  21064. .e_add_list_child {
  21065. width: 100%;
  21066. display: flex;
  21067. align-items: center;
  21068. justify-content: center;
  21069. position: relative;
  21070. box-sizing: border-box;
  21071. padding: 15px 40px;
  21072. text-align: center;
  21073. }
  21074. .e_add_list_child span {
  21075. overflow: hidden;
  21076. white-space: nowrap;
  21077. text-overflow: ellipsis;
  21078. cursor: pointer;
  21079. }
  21080. .e_add_list_child img {
  21081. position: absolute;
  21082. right: 10px;
  21083. width: 21px;
  21084. cursor: pointer;
  21085. top: 50%;
  21086. transform: translateY(-50%);
  21087. }
  21088. .e_add_list_child + .e_add_list_child {
  21089. border-top: 1px solid #eaeaea;
  21090. }
  21091. .e_add_list_child .active {
  21092. color: #409eff;
  21093. }
  21094. .e_add_list_btn {
  21095. position: absolute;
  21096. bottom: 0;
  21097. height: 50px;
  21098. background: rgb(120, 120, 254);
  21099. width: 100%;
  21100. color: #fff;
  21101. font-size: 16px;
  21102. text-align: center;
  21103. line-height: 50px;
  21104. cursor: pointer;
  21105. }
  21106. .e_add_list_detail {
  21107. position: absolute;
  21108. bottom: 0;
  21109. height: 130px;
  21110. background: rgb(120, 120, 254);
  21111. width: 100%;
  21112. color: #fff;
  21113. font-size: 16px;
  21114. display: flex;
  21115. align-items: center;
  21116. justify-content: center;
  21117. }
  21118. .e_add_list_detail textarea {
  21119. height: 90%;
  21120. width: 95%;
  21121. border: none;
  21122. resize: none;
  21123. outline: none;
  21124. padding: 5px;
  21125. box-sizing: border-box;
  21126. }
  21127. .e_add_list_pbox {
  21128. width: 100%;
  21129. max-width: 650px;
  21130. /* height: 600px; */
  21131. }
  21132. .e_add_list_pbox_title {
  21133. height: 50px;
  21134. background: #fff;
  21135. display: flex;
  21136. align-items: center;
  21137. width: 100%;
  21138. box-sizing: border-box;
  21139. padding: 0 20px;
  21140. }
  21141. .type_title {
  21142. font-size: 18px;
  21143. font-weight: 700;
  21144. }
  21145. .type_content {
  21146. font-size: 16px;
  21147. /* margin-left: 30px; */
  21148. }
  21149. .type_content span + span {
  21150. margin-left: 20px;
  21151. }
  21152. .type_content span {
  21153. cursor: pointer;
  21154. padding-bottom: 5px;
  21155. box-sizing: border-box;
  21156. }
  21157. .type_content .active {
  21158. color: #409eff;
  21159. border-bottom: 2px solid #409eff;
  21160. }
  21161. .e_add_list_pbox_content {
  21162. height: calc(100% - 50px);
  21163. display: flex;
  21164. align-items: center;
  21165. width: 100%;
  21166. background: #fff;
  21167. }
  21168. .evaCss {
  21169. display: flex;
  21170. flex-direction: row;
  21171. flex-wrap: nowrap;
  21172. align-items: flex-start;
  21173. padding: 0 0 20px;
  21174. }
  21175. .cru_line {
  21176. position: absolute;
  21177. bottom: 0px;
  21178. transition: all 0.5s;
  21179. left: 0px;
  21180. width: 125px;
  21181. margin-left: -25px;
  21182. }
  21183. .isNoMessage {
  21184. width: 20%;
  21185. margin: 25% auto 0;
  21186. }
  21187. .isNoMessage > img {
  21188. width: 100%;
  21189. height: 100%;
  21190. }
  21191. .fullStyle >>> .el-dialog__body {
  21192. height: 100% !important;
  21193. }
  21194. .fullStyle >>> .el-dialog,
  21195. .fullStyle {
  21196. width: 100% !important;
  21197. max-width: 100% !important;
  21198. height: 100% !important;
  21199. margin: 0 !important;
  21200. }
  21201. .full_diy >>> .el-dialog {
  21202. margin: 0 !important;
  21203. height: 100%;
  21204. padding: 4px;
  21205. }
  21206. .full_diy >>> .el-dialog__body {
  21207. height: calc(100% - 100px);
  21208. }
  21209. .full_diy2 >>> .el-dialog__body {
  21210. height: calc(100% - 50px);
  21211. padding: 0;
  21212. }
  21213. .switchCss {
  21214. /* width: 100%; */
  21215. display: flex;
  21216. flex-direction: row;
  21217. flex-wrap: nowrap;
  21218. align-items: center;
  21219. /* justify-content: center; */
  21220. }
  21221. .isClickNav {
  21222. /* color: #499eef; */
  21223. color: #000;
  21224. }
  21225. .commentImg {
  21226. width: 25px;
  21227. height: 25px;
  21228. cursor: pointer;
  21229. }
  21230. .commentImg > img {
  21231. width: 100%;
  21232. height: 100%;
  21233. }
  21234. .comment {
  21235. background: #f9f9f9;
  21236. border-radius: 0 0 4px 4px;
  21237. display: flex;
  21238. flex-direction: row;
  21239. flex-wrap: nowrap;
  21240. align-items: center;
  21241. justify-content: flex-end;
  21242. height: 35px;
  21243. }
  21244. .commentList {
  21245. display: flex;
  21246. flex-direction: row;
  21247. flex-wrap: nowrap;
  21248. align-items: center;
  21249. justify-content: center;
  21250. align-content: center;
  21251. /* margin-left: 15px; */
  21252. /* margin-left: 8px; */
  21253. }
  21254. .scoreImg {
  21255. width: 17px;
  21256. height: 17px;
  21257. }
  21258. .studentDetail {
  21259. display: flex;
  21260. flex-direction: row;
  21261. flex-wrap: nowrap;
  21262. /* align-items: center; */
  21263. align-items: flex-start;
  21264. }
  21265. .tx {
  21266. width: 50px;
  21267. }
  21268. .tx > img {
  21269. width: 100%;
  21270. height: 100%;
  21271. }
  21272. .nameAndTime {
  21273. display: flex;
  21274. flex-direction: column;
  21275. flex-wrap: nowrap;
  21276. align-items: flex-start;
  21277. margin-left: 10px;
  21278. }
  21279. .worksAnswer {
  21280. color: #4078dd;
  21281. margin: 10px 0;
  21282. font-size: 16px;
  21283. position: relative;
  21284. }
  21285. .worksAnswer > img {
  21286. width: 500px;
  21287. height: 300px;
  21288. object-fit: contain;
  21289. margin: 0 auto;
  21290. display: block;
  21291. }
  21292. .commentTop {
  21293. border-bottom: 1px solid #eaeaea;
  21294. padding-bottom: 10px;
  21295. }
  21296. .commentBox {
  21297. padding-top: 15px;
  21298. }
  21299. .pl {
  21300. font-size: 18px;
  21301. }
  21302. .plPerson {
  21303. width: 100%;
  21304. }
  21305. .plName {
  21306. display: flex;
  21307. flex-direction: row;
  21308. flex-wrap: nowrap;
  21309. align-items: baseline;
  21310. color: #78787a;
  21311. width: 100%;
  21312. }
  21313. .deleteComment {
  21314. cursor: pointer;
  21315. margin-left: auto;
  21316. color: #237ade;
  21317. }
  21318. .plContent {
  21319. margin-top: 5px;
  21320. }
  21321. .evalCss {
  21322. background: #fff;
  21323. font-size: 18px;
  21324. }
  21325. .nav {
  21326. color: #9d9d9d;
  21327. padding: 5px 0 15px 20px;
  21328. }
  21329. .middleBox {
  21330. padding: 5px 0 15px 20px;
  21331. }
  21332. .pfBox {
  21333. padding-bottom: 30px;
  21334. }
  21335. .nameAndrate {
  21336. display: flex;
  21337. flex-direction: row;
  21338. flex-wrap: nowrap;
  21339. align-items: center;
  21340. padding-bottom: 10px;
  21341. height: 30px;
  21342. line-height: 30px;
  21343. }
  21344. .nameAndrate > div {
  21345. margin-left: 10px;
  21346. color: #000;
  21347. height: 30px;
  21348. }
  21349. .nameAndrate >>> .el-rate__icon {
  21350. font-size: 28px !important;
  21351. }
  21352. .pfBox > div:nth-child(2) {
  21353. background: #f7f6f9;
  21354. width: 400px;
  21355. min-height: 45px;
  21356. border-radius: 10px;
  21357. font-size: 16px;
  21358. display: flex;
  21359. flex-wrap: wrap;
  21360. align-items: center;
  21361. padding: 10px 20px;
  21362. box-sizing: border-box;
  21363. color: #000;
  21364. }
  21365. .bz {
  21366. display: flex;
  21367. flex-direction: row;
  21368. flex-wrap: nowrap;
  21369. align-items: flex-start;
  21370. }
  21371. .bz > div {
  21372. padding: 0 10px;
  21373. }
  21374. .select_box2_title {
  21375. background: #fff;
  21376. border-radius: 5px;
  21377. padding: 15px 10px;
  21378. box-sizing: border-box;
  21379. margin-bottom: 10px;
  21380. display: flex;
  21381. flex-direction: row;
  21382. flex-wrap: nowrap;
  21383. align-items: center;
  21384. }
  21385. .select_box2_title > div:nth-child(2) {
  21386. margin-left: 10px;
  21387. color: #c4c4c4;
  21388. }
  21389. .select_box2_box {
  21390. display: flex;
  21391. height: 500px;
  21392. }
  21393. .select_box2_img {
  21394. width: calc(100% - 310px);
  21395. height: 100%;
  21396. overflow: auto;
  21397. background: #fff;
  21398. border-radius: 5px;
  21399. }
  21400. .select_box2_img img {
  21401. width: 100%;
  21402. }
  21403. .select_box2_answer {
  21404. background: #fff;
  21405. margin-left: 10px;
  21406. border-radius: 5px;
  21407. width: 300px;
  21408. overflow: auto;
  21409. height: 90%;
  21410. display: flex;
  21411. flex-direction: column;
  21412. align-items: flex-start;
  21413. padding-top: 10px;
  21414. box-sizing: border-box;
  21415. position: relative;
  21416. }
  21417. .select_answer_title {
  21418. padding: 0 0 15px 20px;
  21419. color: #c4c4c4;
  21420. }
  21421. .select_box2_answer_box {
  21422. margin: 0 0 10px 20px;
  21423. width: 85%;
  21424. display: flex;
  21425. flex-direction: row;
  21426. flex-wrap: nowrap;
  21427. align-items: center;
  21428. }
  21429. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  21430. color: #000;
  21431. }
  21432. .upAnswerCss {
  21433. position: absolute;
  21434. bottom: 15px;
  21435. right: 15px;
  21436. }
  21437. .upAnswerCss >>> .el-button {
  21438. width: 95px;
  21439. height: 35px;
  21440. line-height: 35px;
  21441. padding: 0;
  21442. }
  21443. .rightWidthCss {
  21444. width: 60%;
  21445. display: flex;
  21446. flex-direction: row;
  21447. align-items: flex-start;
  21448. }
  21449. .rightAnswer {
  21450. display: flex;
  21451. flex-direction: row;
  21452. flex-wrap: nowrap;
  21453. align-items: center;
  21454. color: red;
  21455. margin-bottom: 31px;
  21456. }
  21457. .rightAnswerCss {
  21458. display: flex;
  21459. flex-direction: column;
  21460. flex-wrap: nowrap;
  21461. padding-top: 60px;
  21462. }
  21463. .blueCss {
  21464. color: #767de1;
  21465. margin-left: 10px;
  21466. }
  21467. .redCss {
  21468. color: red;
  21469. }
  21470. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  21471. color: rgb(0 123 255) !important;
  21472. }
  21473. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  21474. color: rgb(0 123 255) !important;
  21475. }
  21476. .zuoyeYulan {
  21477. padding-top: 0;
  21478. font-size: 18px;
  21479. display: flex;
  21480. align-items: flex-end;
  21481. }
  21482. .buttonA {
  21483. margin-left: 10px;
  21484. padding: 0;
  21485. }
  21486. .displayBox {
  21487. margin-bottom: 10px;
  21488. display: block;
  21489. border-bottom: 3px solid #eee;
  21490. display: flex;
  21491. align-items: center;
  21492. }
  21493. .easy_comment {
  21494. width: calc(100% - 90px);
  21495. margin-left: 10px;
  21496. display: flex;
  21497. flex-wrap: wrap;
  21498. }
  21499. .easy_comment > div {
  21500. border: 1px solid #4a4a4a;
  21501. color: #666;
  21502. border-radius: 15px;
  21503. padding: 5px 10px;
  21504. font-size: 16px;
  21505. margin-bottom: 10px;
  21506. margin-right: 5px;
  21507. cursor: pointer;
  21508. }
  21509. .easy_comment div:hover {
  21510. border: 1px solid #f7ba2a;
  21511. color: #c69217;
  21512. }
  21513. .xuan_right_box {
  21514. padding: 10px 0;
  21515. background: #f0f4fa;
  21516. margin: 0 15px 0 25px;
  21517. border-bottom-left-radius: 5px;
  21518. border-bottom-right-radius: 5px;
  21519. width: 91.5%;
  21520. }
  21521. .tool_right_box {
  21522. display: flex;
  21523. align-items: center;
  21524. }
  21525. .tool_right_box + .tool_right_box {
  21526. margin-top: 10px;
  21527. }
  21528. .right_box_xuan {
  21529. border-radius: 5px;
  21530. padding: 5px;
  21531. margin-left: 10px;
  21532. min-width: 85px;
  21533. background: #fff;
  21534. color: #0061ff;
  21535. border: 1px solid #0061ff;
  21536. font-size: 14px;
  21537. }
  21538. .pButton:hover {
  21539. opacity: 1 !important;
  21540. }
  21541. .pButton {
  21542. position: fixed;
  21543. text-align: center;
  21544. cursor: pointer;
  21545. z-index: 999;
  21546. right: 20px;
  21547. top: 110px;
  21548. width: 50px;
  21549. height: 50px;
  21550. display: flex;
  21551. align-items: center;
  21552. justify-content: center;
  21553. border-radius: 5px;
  21554. }
  21555. .pzClass {
  21556. width: calc(100% - 340px);
  21557. }
  21558. .newDialogCss {
  21559. /* position: fixed;
  21560. right: 5%;
  21561. top: 50%;
  21562. width: 340px;
  21563. transform: translateY(-50%);
  21564. height: 60%;
  21565. box-shadow: 0px 0 8px 0px #555555;
  21566. border-radius: 15px;
  21567. z-index: 999; */
  21568. position: fixed;
  21569. right: 20px;
  21570. top: 101px;
  21571. width: 330px;
  21572. height: calc(100% - 80px);
  21573. z-index: 999;
  21574. background: #fff;
  21575. border-top-right-radius: 0px;
  21576. border-bottom-right-radius: 0px;
  21577. overflow: hidden;
  21578. }
  21579. .pzTop {
  21580. color: #fff;
  21581. background: #000;
  21582. display: flex;
  21583. flex-direction: row;
  21584. flex-wrap: nowrap;
  21585. align-items: center;
  21586. justify-content: space-between;
  21587. height: 40px;
  21588. border-radius: 15px 15px 0 0;
  21589. user-select: none;
  21590. }
  21591. .pzTop2 .checkbox {
  21592. display: flex;
  21593. align-items: center;
  21594. padding: 5px 30px;
  21595. flex: 0 0 auto;
  21596. font-weight: bold;
  21597. border-bottom: 1px solid #eee;
  21598. justify-content: space-between;
  21599. }
  21600. .pzTop2 .check {
  21601. text-align: center;
  21602. cursor: pointer;
  21603. box-sizing: border-box;
  21604. display: flex;
  21605. }
  21606. .pzTop2 img {
  21607. width: 25px;
  21608. cursor: pointer;
  21609. }
  21610. .pzTop > div:nth-child(1) {
  21611. padding-left: 10px;
  21612. }
  21613. .pzTop > div:nth-child(2) {
  21614. width: 15px;
  21615. height: 15px;
  21616. padding-right: 10px;
  21617. cursor: pointer;
  21618. }
  21619. .pzTop > div:nth-child(2) > img {
  21620. width: 100%;
  21621. height: 100%;
  21622. }
  21623. .pzBox,
  21624. .noPzBox {
  21625. height: calc(100% - 60px);
  21626. /* background: #ededed; */
  21627. background: #fff;
  21628. /* border-radius: 0 0 15px 15px; */
  21629. }
  21630. .noPzBox {
  21631. display: flex;
  21632. flex-direction: column;
  21633. flex-wrap: nowrap;
  21634. justify-content: center;
  21635. align-items: center;
  21636. }
  21637. .pzList {
  21638. background: #f7f7f7;
  21639. width: 90%;
  21640. margin: 0 auto 15px;
  21641. border-radius: 5px;
  21642. }
  21643. .pzNavTop {
  21644. display: flex;
  21645. flex-direction: row;
  21646. flex-wrap: nowrap;
  21647. padding: 10px 10px 0 10px;
  21648. align-items: center;
  21649. }
  21650. .pzDelete {
  21651. cursor: pointer;
  21652. margin-left: auto;
  21653. font-size: 14px;
  21654. color: #afafaf;
  21655. }
  21656. .pzNavTop > div:nth-child(1) {
  21657. background: #3760af;
  21658. width: 35px;
  21659. height: 35px;
  21660. color: #fff;
  21661. text-align: center;
  21662. line-height: 35px;
  21663. border-radius: 50%;
  21664. font-size: 14px;
  21665. }
  21666. .pzNavTop > div:nth-child(2) {
  21667. font-size: 18px;
  21668. color: #959595;
  21669. margin-left: 5px;
  21670. }
  21671. .pzContent {
  21672. padding: 10px;
  21673. word-break: break-word;
  21674. }
  21675. .pzContent audio {
  21676. width: 100%;
  21677. }
  21678. .pzContent audio::-webkit-media-controls-panel {
  21679. background: #fff;
  21680. }
  21681. .pzContent >>> img {
  21682. max-width: 100%;
  21683. }
  21684. .pzListBox {
  21685. padding-top: 15px;
  21686. height: calc(100% - 110px);
  21687. overflow: auto;
  21688. }
  21689. .addPzButton {
  21690. position: relative;
  21691. margin-top: 3px;
  21692. width: 100%;
  21693. }
  21694. .addPzButton .img1 {
  21695. position: absolute;
  21696. top: 50%;
  21697. right: 25px;
  21698. transform: translateY(-50%);
  21699. height: 100%;
  21700. display: flex;
  21701. align-items: center;
  21702. }
  21703. .addPzButton .img1 div {
  21704. display: flex;
  21705. }
  21706. .addPzButton .img1 div img {
  21707. width: 28px;
  21708. margin-left: 10px;
  21709. cursor: pointer;
  21710. }
  21711. .addPzButton .img1 div span {
  21712. font-size: 14px;
  21713. margin: 4px 0 0 3px;
  21714. color: #afafaf;
  21715. }
  21716. .addPz {
  21717. background: #4b79ce;
  21718. width: 100px;
  21719. color: #fff;
  21720. font-size: 12px;
  21721. height: 30px;
  21722. margin: 0 auto;
  21723. text-align: center;
  21724. line-height: 30px;
  21725. border-radius: 10px;
  21726. cursor: pointer;
  21727. }
  21728. .addDialogCss {
  21729. position: fixed;
  21730. width: 600px;
  21731. height: 70%;
  21732. min-height: 450px;
  21733. box-shadow: 0px 0 8px 0px #555555;
  21734. border-radius: 15px;
  21735. z-index: 999;
  21736. left: 50%;
  21737. top: 50%;
  21738. margin: -18% 0 0 -300px;
  21739. }
  21740. .teacherPz {
  21741. display: flex;
  21742. flex-direction: row;
  21743. align-items: center;
  21744. flex-wrap: nowrap;
  21745. }
  21746. .teacherPzImg {
  21747. width: 30px;
  21748. height: 30px;
  21749. }
  21750. .teacherPzImg > img {
  21751. width: 100%;
  21752. height: 100%;
  21753. }
  21754. .addPzBox {
  21755. height: calc(100% - 40px);
  21756. background: #ededed;
  21757. border-bottom-left-radius: 15px;
  21758. border-bottom-right-radius: 15px;
  21759. }
  21760. .pzAudioClass {
  21761. margin: 15px 14px;
  21762. background: #fff;
  21763. height: 100%;
  21764. display: flex;
  21765. justify-content: center;
  21766. align-items: center;
  21767. }
  21768. .pzConText {
  21769. width: 95%;
  21770. height: 100%;
  21771. margin: 10px auto 0;
  21772. border: none;
  21773. background: #fff;
  21774. border-radius: 0px;
  21775. }
  21776. .pzConText >>> .text {
  21777. height: calc(100% - 82px);
  21778. }
  21779. .addTextCss {
  21780. background: #4b79ce;
  21781. width: 80px;
  21782. height: 30px;
  21783. text-align: center;
  21784. color: #fff;
  21785. line-height: 30px;
  21786. border-radius: 10px;
  21787. margin: 10px auto 0;
  21788. cursor: pointer;
  21789. }
  21790. .pzConText:focus-visible {
  21791. border: none !important;
  21792. }
  21793. .maxWidth {
  21794. width: 1000px;
  21795. }
  21796. .noPz {
  21797. width: 150px;
  21798. margin: 0 auto 20%;
  21799. }
  21800. .noPz > img {
  21801. width: 100%;
  21802. height: 100%;
  21803. }
  21804. .timeAndReply {
  21805. display: flex;
  21806. flex-direction: row;
  21807. flex-wrap: nowrap;
  21808. justify-content: space-between;
  21809. align-items: center;
  21810. font-size: 14px;
  21811. box-sizing: border-box;
  21812. padding: 0 10px 10px 0px;
  21813. }
  21814. .timeAndReply .time {
  21815. color: #bfbfbf;
  21816. padding: 0 0 0 10px;
  21817. box-sizing: border-box;
  21818. }
  21819. .timeAndReply > div:last-child {
  21820. cursor: pointer;
  21821. color: #777;
  21822. }
  21823. /* table 样式 */
  21824. .cont >>> table {
  21825. border-top: 1px solid #ccc;
  21826. border-left: 1px solid #ccc;
  21827. }
  21828. .cont >>> table td,
  21829. .cont >>> table th {
  21830. border-bottom: 1px solid #ccc;
  21831. border-right: 1px solid #ccc;
  21832. /* padding: 20px 5px; */
  21833. padding: 5px 10px;
  21834. max-width: 0px;
  21835. height: 30px;
  21836. vertical-align: baseline;
  21837. box-sizing: border-box;
  21838. }
  21839. .cont >>> table th {
  21840. border-bottom: 2px solid #ccc;
  21841. text-align: center;
  21842. }
  21843. /* blockquote 样式 */
  21844. .cont >>> blockquote {
  21845. display: block;
  21846. border-left: 8px solid #d0e5f2;
  21847. padding: 5px 10px;
  21848. margin: 10px 0;
  21849. line-height: 1.4;
  21850. font-size: 100%;
  21851. background-color: #f1f1f1;
  21852. }
  21853. /* code 样式 */
  21854. .cont >>> code {
  21855. display: inline-block;
  21856. /* *display: inline; */
  21857. zoom: 1;
  21858. background-color: #f1f1f1;
  21859. border-radius: 3px;
  21860. padding: 3px 5px;
  21861. margin: 0 3px;
  21862. }
  21863. .cont >>> pre code {
  21864. display: block;
  21865. }
  21866. /* ul ol 样式 */
  21867. .cont >>> ul,
  21868. ol {
  21869. margin: 10px 0 10px 20px;
  21870. }
  21871. .addPzCheck {
  21872. display: flex;
  21873. flex-direction: row;
  21874. flex-wrap: nowrap;
  21875. padding: 10px 15px 0;
  21876. }
  21877. .addPzCheck span {
  21878. cursor: pointer;
  21879. padding-bottom: 5px;
  21880. font-weight: bold;
  21881. }
  21882. .addPzCheck span + span {
  21883. margin-left: 10px;
  21884. }
  21885. .addPzCheck .isChooseActive {
  21886. color: #3e88f4;
  21887. border-bottom: 2px solid #2f80f3;
  21888. }
  21889. /* code 样式 */
  21890. .cont {
  21891. /* -webkit-user-modify: read-write; */
  21892. overflow-wrap: break-word;
  21893. -webkit-line-break: after-white-space;
  21894. }
  21895. .scoreBox,
  21896. .scoreDetailBox {
  21897. display: flex;
  21898. align-items: center;
  21899. justify-content: flex-start;
  21900. margin-top: 20px;
  21901. font-size: 18px;
  21902. width: 100%;
  21903. }
  21904. .scoreBox .t,
  21905. .scoreDetailBox .t {
  21906. margin-right: 10px;
  21907. width: 100px;
  21908. text-align: right;
  21909. }
  21910. .scoreDetailBox {
  21911. align-items: flex-start;
  21912. }
  21913. .scoreDetailBox >>> .el-textarea {
  21914. width: calc(100% - 200px);
  21915. }
  21916. .scoreBox >>> .el-input {
  21917. width: 130px;
  21918. font-size: 38px;
  21919. }
  21920. .scoreBox >>> .el-input__inner {
  21921. height: 60px;
  21922. }
  21923. .answerScore {
  21924. position: absolute;
  21925. top: 10px;
  21926. right: 10px;
  21927. background: #0000008f;
  21928. border-radius: 5px;
  21929. padding: 3px 5px;
  21930. font-size: 14px;
  21931. color: #fff;
  21932. cursor: pointer;
  21933. }
  21934. .open_box .switch_box {
  21935. width: 100%;
  21936. margin: 0 auto;
  21937. display: flex;
  21938. justify-content: space-between;
  21939. }
  21940. .open_box .switch_box + .switch_box {
  21941. margin-top: 10px;
  21942. }
  21943. .deleteImg,.deleteImg1 {
  21944. width: 25px !important;
  21945. height: 25px !important;
  21946. cursor: pointer;
  21947. position: absolute;
  21948. top: 10px;
  21949. right: 10px;
  21950. }
  21951. .deleteImg2 {
  21952. width: 23px !important;
  21953. height: 23px !important;
  21954. top: 5px;
  21955. right: 5px;
  21956. }
  21957. .deleteImg1{
  21958. width: 23px !important;
  21959. height: 23px !important;
  21960. top: 5px !important;
  21961. right: 30px !important;
  21962. }
  21963. .rightW {
  21964. right: 40px;
  21965. }
  21966. .drawPBox {
  21967. display: flex;
  21968. flex-direction: column;
  21969. position: relative;
  21970. }
  21971. .drawPBox span {
  21972. font-size: 18px;
  21973. color: #606266;
  21974. padding-bottom: 10px;
  21975. margin: 10px 0;
  21976. border-bottom: 1px solid #eaeaea;
  21977. }
  21978. .drawPBox img {
  21979. width: 500px;
  21980. height: 300px;
  21981. object-fit: contain;
  21982. cursor: pointer;
  21983. margin: 0 auto;
  21984. }
  21985. .sentenBox {
  21986. background: #fff;
  21987. height: 450px;
  21988. overflow: auto;
  21989. background-image: url("../../assets/icon/conSentences/stuBg.png");
  21990. background-position: 102%;
  21991. background-repeat: no-repeat;
  21992. background-size: 60%;
  21993. }
  21994. .addSen {
  21995. background: #409efe;
  21996. width: 90px;
  21997. color: #fff;
  21998. height: 35px;
  21999. text-align: center;
  22000. line-height: 35px;
  22001. border-radius: 5px;
  22002. float: right;
  22003. margin: 10px 20px 0 0;
  22004. cursor: pointer;
  22005. }
  22006. .sentenTop {
  22007. display: flex;
  22008. flex-direction: row;
  22009. flex-wrap: nowrap;
  22010. align-items: center;
  22011. padding: 55px 0 0 20px;
  22012. box-sizing: border-box;
  22013. }
  22014. .sentenTop > div:nth-child(2) {
  22015. width: 300px;
  22016. margin: 0 15px;
  22017. }
  22018. .sentenTop > div:nth-child(3) {
  22019. background: #409efe;
  22020. color: #fff;
  22021. width: 65px;
  22022. height: 35px;
  22023. text-align: center;
  22024. line-height: 35px;
  22025. border-radius: 5px;
  22026. cursor: pointer;
  22027. }
  22028. .cardList,
  22029. .cardList1 {
  22030. padding: 10px 0 10px 0;
  22031. display: flex;
  22032. flex-direction: row;
  22033. flex-wrap: wrap;
  22034. align-items: center;
  22035. box-sizing: border-box;
  22036. border-bottom: 1px solid #f4f4f4;
  22037. width: 98%;
  22038. margin: 0 auto;
  22039. min-width: 60%;
  22040. max-width: 85%;
  22041. }
  22042. .cardList1 {
  22043. padding: 10px 0 10px 10px !important;
  22044. margin: 0 !important;
  22045. }
  22046. .cardBox {
  22047. display: flex;
  22048. flex-direction: row;
  22049. flex-wrap: wrap;
  22050. align-items: center;
  22051. align-content: center;
  22052. }
  22053. .cardBox > div {
  22054. margin-bottom: 10px;
  22055. }
  22056. .isCard,
  22057. .isChooseCard,
  22058. .noCard,
  22059. .isCard1 {
  22060. width: 130px;
  22061. height: 60px;
  22062. text-align: center;
  22063. line-height: 60px;
  22064. font-size: 20px;
  22065. cursor: pointer;
  22066. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  22067. background-size: cover;
  22068. transition: all 2s;
  22069. margin-right: 20px;
  22070. }
  22071. .isCard > div,
  22072. .noCard > div,
  22073. .isCard1 > div {
  22074. white-space: nowrap;
  22075. overflow: hidden;
  22076. text-overflow: ellipsis;
  22077. width: 75%;
  22078. margin: 0 auto;
  22079. }
  22080. .noCard {
  22081. background-image: none;
  22082. }
  22083. .isCard1 {
  22084. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  22085. }
  22086. .isChooseCard {
  22087. background-image: none;
  22088. border: 1px dashed #b9b9b9;
  22089. border-radius: 10px;
  22090. }
  22091. .card {
  22092. width: 130px;
  22093. height: 60px;
  22094. }
  22095. .card > img {
  22096. width: 100%;
  22097. height: 100%;
  22098. }
  22099. .rightCardBox {
  22100. margin: 10px 0 0 10px;
  22101. }
  22102. .rightCardBox > div:nth-child(1) {
  22103. margin-bottom: 10px;
  22104. }
  22105. .cardCss {
  22106. display: flex;
  22107. flex-direction: column;
  22108. flex-wrap: nowrap;
  22109. align-items: center;
  22110. border-bottom: 3px solid #b4c3d3;
  22111. padding: 0 0 5px 0;
  22112. margin-right: 10px;
  22113. }
  22114. .cardCss > div:nth-child(2) {
  22115. background: #5b7b9d;
  22116. color: #fff;
  22117. width: 20px;
  22118. height: 20px;
  22119. border-radius: 50%;
  22120. text-align: center;
  22121. line-height: 20px;
  22122. }
  22123. .isWrong {
  22124. display: flex;
  22125. flex-direction: row;
  22126. flex-wrap: nowrap;
  22127. align-content: center;
  22128. align-items: center;
  22129. }
  22130. .answerRight {
  22131. width: 25%;
  22132. }
  22133. .isTj {
  22134. display: flex;
  22135. flex-direction: row;
  22136. flex-wrap: nowrap;
  22137. align-items: center;
  22138. }
  22139. .isTj > div:nth-child(2) {
  22140. color: #727070;
  22141. margin-left: 10px;
  22142. }
  22143. .isTjImg {
  22144. width: 30px;
  22145. height: 30px;
  22146. }
  22147. .isTjImg > img {
  22148. width: 100%;
  22149. height: 100%;
  22150. }
  22151. .cardAnswerBox {
  22152. font-size: 18px;
  22153. width: 97%;
  22154. border: 5px;
  22155. padding: 0;
  22156. border-radius: 5px;
  22157. margin: 10px auto;
  22158. word-break: break-word;
  22159. }
  22160. .w_name {
  22161. margin-bottom: 10px;
  22162. }
  22163. .w_name span {
  22164. font-size: 16px;
  22165. }
  22166. .w_teachert {
  22167. width: 50px !important;
  22168. position: absolute;
  22169. height: auto !important;
  22170. z-index: 10;
  22171. right: 25px;
  22172. top: -25px;
  22173. }
  22174. .group_workBox {
  22175. }
  22176. .group_workBox + .group_workBox {
  22177. margin-top: 20px;
  22178. }
  22179. .group_box {
  22180. padding-bottom: 20px;
  22181. border-bottom: 2px solid #f0f0f0;
  22182. margin-top: 10px;
  22183. }
  22184. .group_title {
  22185. display: flex;
  22186. align-items: center;
  22187. justify-content: space-between;
  22188. width: 95%;
  22189. }
  22190. .group_name {
  22191. background-image: url(../../assets/icon/groupN.png);
  22192. width: 220px;
  22193. background-size: 100% 100%;
  22194. height: 67px;
  22195. padding: 0 20px 0 43px;
  22196. box-sizing: border-box;
  22197. line-height: 63px;
  22198. color: #fff;
  22199. overflow: hidden;
  22200. white-space: nowrap;
  22201. text-overflow: ellipsis;
  22202. }
  22203. .group_work {
  22204. width: 100%;
  22205. padding: 0 10px;
  22206. box-sizing: border-box;
  22207. display: flex;
  22208. flex-wrap: wrap;
  22209. }
  22210. .g_d_box {
  22211. display: flex;
  22212. flex-flow: wrap;
  22213. justify-content: space-around;
  22214. }
  22215. .g_d_box .isChair {
  22216. background-image: url(../../assets/avatar.png) !important;
  22217. }
  22218. .g_d_group {
  22219. width: 500px;
  22220. margin-bottom: 80px;
  22221. }
  22222. .g_d_group_chair {
  22223. display: flex;
  22224. align-items: center;
  22225. justify-content: center;
  22226. }
  22227. .g_d_group_chair > div + div {
  22228. margin-left: 30px;
  22229. }
  22230. .g_d_group_chair > div,
  22231. .g_d_group_chair2 > div {
  22232. display: flex;
  22233. flex-direction: column;
  22234. align-items: center;
  22235. }
  22236. .g_d_group_chair > div > span:nth-child(1),
  22237. .g_d_group_chair2 > div > span:nth-child(1) {
  22238. background-image: url(../../assets/icon/chair.png);
  22239. width: 50px;
  22240. height: 50px;
  22241. display: block;
  22242. background-size: 100% 100%;
  22243. }
  22244. .g_d_group_tableBox {
  22245. display: flex;
  22246. align-items: center;
  22247. justify-content: center;
  22248. }
  22249. .g_d_group_chair2 {
  22250. display: flex;
  22251. flex-direction: column;
  22252. align-items: center;
  22253. justify-content: center;
  22254. }
  22255. .g_d_group_chair2 > div + div {
  22256. margin-top: 10px;
  22257. }
  22258. .g_d_group_table {
  22259. background-image: url(../../assets/icon/groupBg.png);
  22260. width: 354px;
  22261. height: 196px;
  22262. background-size: 100% 100%;
  22263. display: flex;
  22264. align-items: center;
  22265. justify-content: center;
  22266. flex-direction: column;
  22267. color: #fff;
  22268. }
  22269. .g_d_group_table > div:nth-child(1) {
  22270. font-size: 24px;
  22271. margin-bottom: 5px;
  22272. }
  22273. .g_d_group_table > div:nth-child(2) div {
  22274. cursor: pointer;
  22275. background: #2e77bf;
  22276. padding: 4px 10px;
  22277. border-radius: 5px;
  22278. }
  22279. .groupBox {
  22280. }
  22281. .groupContent + .groupContent {
  22282. margin-top: 30px;
  22283. }
  22284. .groupTitle {
  22285. font-size: 24px;
  22286. color: rgb(80, 80, 80);
  22287. margin-bottom: 20px;
  22288. }
  22289. .groupName {
  22290. display: flex;
  22291. align-items: center;
  22292. }
  22293. .groupn {
  22294. font-size: 15px;
  22295. margin-right: 10px;
  22296. }
  22297. .groupName + .groupName {
  22298. margin-top: 15px;
  22299. }
  22300. .groupBtn {
  22301. margin-left: 10px;
  22302. }
  22303. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  22304. text-align: left;
  22305. }
  22306. .g_d_btnBox {
  22307. display: flex;
  22308. justify-content: flex-end;
  22309. align-items: center;
  22310. margin-bottom: 20px;
  22311. }
  22312. .updateChair {
  22313. position: relative;
  22314. }
  22315. .updateChairBtn {
  22316. position: absolute;
  22317. width: 50px;
  22318. height: 50px;
  22319. overflow: hidden;
  22320. /* display: flex; */
  22321. align-items: center;
  22322. justify-content: center;
  22323. background: #00000087;
  22324. color: #fff;
  22325. border-radius: 50px;
  22326. display: none;
  22327. cursor: pointer;
  22328. }
  22329. .updateChair:hover .updateChairBtn {
  22330. display: flex;
  22331. }
  22332. .group_staic_box {
  22333. display: flex;
  22334. padding: 30px 40px 10px;
  22335. flex-wrap: wrap;
  22336. }
  22337. .group_staic {
  22338. /* width: 50%; */
  22339. margin-bottom: 20px;
  22340. display: flex;
  22341. align-items: center;
  22342. }
  22343. .group_staic span:nth-child(1) {
  22344. width: 150px;
  22345. text-align: right;
  22346. margin-right: 15px;
  22347. }
  22348. .group_staic span:nth-child(2) {
  22349. background: rgb(0 123 255);
  22350. color: #fff;
  22351. border-radius: 5px;
  22352. padding: 5px;
  22353. }
  22354. .codeFileBox {
  22355. height: 300px;
  22356. background: #fff;
  22357. display: flex;
  22358. align-items: center;
  22359. justify-content: center;
  22360. }
  22361. .codeFileBox img {
  22362. width: 200px;
  22363. margin: 0;
  22364. height: auto;
  22365. }
  22366. .codeFileBox div {
  22367. background: rgb(80, 142, 226);
  22368. color: #fff;
  22369. padding: 10px 20px;
  22370. border-radius: 25px;
  22371. cursor: pointer;
  22372. margin-left: 15px;
  22373. }
  22374. .radioBox {
  22375. display: flex;
  22376. flex-direction: column;
  22377. flex-wrap: nowrap;
  22378. align-items: flex-start;
  22379. }
  22380. .radioBox > div {
  22381. margin: 10px 0 0 10px;
  22382. }
  22383. /* .radioBox >>> .el-radio__input,
  22384. .radioBox >>> .el-checkbox__inner {
  22385. margin-left: 10px;
  22386. } */
  22387. .radioBox >>> .el-radio__label,
  22388. .radioBox >>> .el-checkbox__label {
  22389. display: flex;
  22390. align-items: center;
  22391. width: 100%;
  22392. }
  22393. .radioBox >>> .el-radio__label > span {
  22394. width: 100%;
  22395. display: -webkit-box;
  22396. overflow: hidden;
  22397. white-space: normal !important;
  22398. text-overflow: ellipsis;
  22399. word-wrap: break-word;
  22400. }
  22401. .inImg {
  22402. width: 100px;
  22403. cursor: pointer;
  22404. }
  22405. .inImg > img {
  22406. width: 100%;
  22407. height: 100%;
  22408. object-fit: cover;
  22409. }
  22410. .timuImgBox {
  22411. margin: 10px 0;
  22412. display: flex;
  22413. flex-direction: column;
  22414. flex-wrap: wrap;
  22415. align-items: flex-start;
  22416. }
  22417. .timuImg {
  22418. width: 150px;
  22419. margin: 5px 0;
  22420. cursor: pointer;
  22421. }
  22422. .timuImg > img {
  22423. width: 100%;
  22424. height: 100%;
  22425. object-fit: cover;
  22426. }
  22427. .worksTop {
  22428. display: flex;
  22429. flex-direction: row;
  22430. align-items: flex-end;
  22431. }
  22432. .worksTitle{
  22433. display: flex;
  22434. flex-direction: row;
  22435. flex-wrap: nowrap;
  22436. align-items: center;
  22437. }
  22438. .worksTitle::before,.worksTop::before{
  22439. content: '';
  22440. display: block;
  22441. width: 3px;
  22442. height: 20px;
  22443. background: #0061FF;
  22444. border-radius: 3px;
  22445. margin: 0 5px 0 0;
  22446. }
  22447. .corOpen {
  22448. margin: 0 0 0 10px;
  22449. font-size: 14px;
  22450. cursor: pointer;
  22451. color: #505050;
  22452. }
  22453. .corOpen:hover {
  22454. color: #499eef;
  22455. }
  22456. .navCorOpenBox {
  22457. display: flex;
  22458. flex-direction: row;
  22459. align-items: center;
  22460. justify-content: space-between;
  22461. height: 55px;
  22462. background: #ffffff;
  22463. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  22464. border-radius: 8px 8px 0px 0px;
  22465. z-index: 9;
  22466. position: relative;
  22467. }
  22468. .navCorOpen {
  22469. padding-right: 15px;
  22470. cursor: pointer;
  22471. width: 45px;
  22472. display: flex;
  22473. }
  22474. .navCorOpen > img {
  22475. width: 100%;
  22476. height: 100%;
  22477. }
  22478. .mlImg {
  22479. width: 40px !important;
  22480. min-width: 40px;
  22481. cursor: pointer;
  22482. transform: rotate(180deg);
  22483. }
  22484. .mlImg > img {
  22485. width: 100%;
  22486. height: 100%;
  22487. }
  22488. .navLeftCss {
  22489. width: 100% !important;
  22490. left: 0 !important;
  22491. }
  22492. .isContentCss {
  22493. width: 100% !important;
  22494. }
  22495. .isAllWidth {
  22496. width: 100% !important;
  22497. }
  22498. .group_switch {
  22499. margin-right: 10px;
  22500. height: 30px;
  22501. display: flex;
  22502. align-items: center;
  22503. }
  22504. .group_switch > span {
  22505. margin-right: 5px;
  22506. }
  22507. .fileC_box {
  22508. padding-top: 15px;
  22509. }
  22510. .fileC_box > .fileC_title {
  22511. padding: 10px 5px 14px 10px;
  22512. border-top: 1px solid #cad1dc;
  22513. font-size: 14px;
  22514. font-weight: 400;
  22515. color: #cad1dc;
  22516. width: calc(100% - 20px);
  22517. margin: 0 auto;
  22518. box-sizing: border-box;
  22519. }
  22520. .pl_select_box {
  22521. height: 40px;
  22522. line-height: 40px;
  22523. width: 100%;
  22524. cursor: pointer;
  22525. padding: 0 20px;
  22526. box-sizing: border-box;
  22527. border-radius: 5px;
  22528. border: 1px solid #d6d6d6;
  22529. white-space: nowrap;
  22530. overflow: hidden;
  22531. text-overflow: ellipsis;
  22532. background: #fff;
  22533. text-align: left;
  22534. }
  22535. .newButton {
  22536. width: 102px;
  22537. height: 36px;
  22538. background: #e7ebf1;
  22539. border-radius: 4px;
  22540. color: #0e1e33;
  22541. font-weight: 400;
  22542. font-size: 14px;
  22543. border: none;
  22544. float: right;
  22545. margin-left: 10px;
  22546. }
  22547. .el-table >>> .even_row {
  22548. background-color: #f0f4fa;
  22549. }
  22550. .stageBoxCss,
  22551. .stageBoxIsCss {
  22552. display: flex;
  22553. flex-direction: row;
  22554. flex-wrap: nowrap;
  22555. align-items: center;
  22556. height: 50px;
  22557. border-bottom: 1px solid #e2f5fc;
  22558. cursor: pointer;
  22559. width: 100%;
  22560. }
  22561. .stageBoxIsCss {
  22562. background: #0061ff;
  22563. color: #fff;
  22564. border-radius: 8px;
  22565. }
  22566. .closeTri,
  22567. .closeTri1 {
  22568. min-width: 15px;
  22569. width: 15px;
  22570. height: 15px;
  22571. }
  22572. .closeTri1 {
  22573. padding-left: 10px;
  22574. cursor: pointer;
  22575. }
  22576. .closeTri > img,
  22577. .closeTri1 > img {
  22578. width: 100%;
  22579. height: 100%;
  22580. /* transition: all .5s; */
  22581. }
  22582. .noToolBlue {
  22583. min-width: 10px;
  22584. width: 10px;
  22585. height: 10px;
  22586. background: #0061ff;
  22587. border-radius: 50%;
  22588. margin-left: 13px;
  22589. }
  22590. .stageChild,
  22591. .toolChild {
  22592. height: 0;
  22593. overflow: hidden;
  22594. transition: all 0.5s;
  22595. }
  22596. .toolChild {
  22597. /* margin: 0 0 0 17px;
  22598. padding: 0 0 0 20px;
  22599. border-left: 1px solid #d7d7d7; */
  22600. }
  22601. .toolChild > div + div{
  22602. margin-top:5px;
  22603. }
  22604. .gjCss {
  22605. display: flex;
  22606. flex-direction: row;
  22607. flex-wrap: nowrap;
  22608. align-items: center;
  22609. padding: 10px 0 10px 40px;
  22610. box-sizing: border-box;
  22611. font-size: 14px;
  22612. cursor: pointer;
  22613. border-radius:5px;
  22614. }
  22615. .toolChild > div {
  22616. position: relative;
  22617. width: 100%;
  22618. }
  22619. .toolChild > div::before {
  22620. /* content: "";
  22621. width: 15px;
  22622. height: 1px;
  22623. background: #cad1dc;
  22624. position: absolute;
  22625. top: 24px;
  22626. left: -20px;
  22627. display: block; */
  22628. }
  22629. .isGjCss {
  22630. /* color: #0061ff; */
  22631. color:#fff;
  22632. background: rgb(55, 129, 252);
  22633. /* background-color: #e0eafb !important;
  22634. color: #0061ff !important; */
  22635. }
  22636. .navItem {
  22637. background: #ffffff;
  22638. border-radius: 4px;
  22639. width: 100%;
  22640. margin: 10px auto;
  22641. position: relative;
  22642. height: 40px;
  22643. display: flex;
  22644. flex-direction: row;
  22645. flex-wrap: nowrap;
  22646. align-items: center;
  22647. }
  22648. .navItemList {
  22649. display: flex;
  22650. flex-direction: row;
  22651. flex-wrap: nowrap;
  22652. align-items: center;
  22653. padding: 0 13px;
  22654. cursor: pointer;
  22655. width: calc(100% - 60px);
  22656. height: 100%;
  22657. }
  22658. .navItemList > div:first-child {
  22659. min-width: 60px;
  22660. }
  22661. .navItemList > div:last-child {
  22662. width: calc(100% - 80px);
  22663. white-space: nowrap;
  22664. overflow: hidden;
  22665. text-overflow: ellipsis;
  22666. word-break: break-word;
  22667. }
  22668. /* .isItemList > div {
  22669. color: #fff !important;
  22670. } */
  22671. .tool_work_box {
  22672. width: 100%;
  22673. padding: 0 37px 0;
  22674. box-sizing: border-box;
  22675. }
  22676. .tool_box {
  22677. width: 100%;
  22678. padding: 0 0 0 20px;
  22679. }
  22680. .tool_type_box {
  22681. display: flex;
  22682. flex-direction: row;
  22683. align-items: baseline;
  22684. flex-wrap: nowrap;
  22685. justify-content: flex-start;
  22686. position: relative;
  22687. }
  22688. .toolSort {
  22689. display: flex;
  22690. flex-direction: row;
  22691. flex-wrap: wrap;
  22692. justify-content: flex-start;
  22693. align-items: flex-start;
  22694. padding: 0 0 15px 0;
  22695. }
  22696. .toolSort > div {
  22697. margin: 0 10px 0 0;
  22698. width: 135px;
  22699. box-sizing: border-box;
  22700. border: 2px solid transparent;
  22701. }
  22702. .tools {
  22703. width: 100%;
  22704. display: flex;
  22705. flex-direction: column;
  22706. flex-wrap: nowrap;
  22707. align-items: flex-start;
  22708. }
  22709. .whiteBIcon {
  22710. width: fit-content;
  22711. cursor: pointer;
  22712. display: flex;
  22713. flex-direction: column;
  22714. flex-wrap: nowrap;
  22715. align-items: center;
  22716. font-size: 14px;
  22717. }
  22718. .tool:hover {
  22719. border: 2px solid #a5c7ff;
  22720. border-radius: 5px;
  22721. }
  22722. .whiteBIcon > img {
  22723. width: 65px;
  22724. height: 100%;
  22725. }
  22726. .whiteBIcon > img {
  22727. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  22728. border-radius: 15px;
  22729. }
  22730. .check {
  22731. /* width: 20px;
  22732. height: 20px; */
  22733. cursor: pointer;
  22734. margin: 10px 0;
  22735. position: absolute;
  22736. right: 2px;
  22737. top: -5px;
  22738. }
  22739. .noChoose,
  22740. .isChoose {
  22741. width: 15px;
  22742. height: 15px;
  22743. border-radius: 50%;
  22744. border: 1px solid #adadad;
  22745. }
  22746. .isChoose {
  22747. border: 4px solid #0363ff !important;
  22748. width: 10px;
  22749. height: 10px;
  22750. }
  22751. .isToolChoose {
  22752. border: 2px solid #5394ff !important;
  22753. border-radius: 5px;
  22754. box-shadow: 0 0 6px 0px #5394ff;
  22755. }
  22756. .checkDiv {
  22757. display: flex;
  22758. align-items: center;
  22759. }
  22760. .checkDiv span {
  22761. margin-left: 5px;
  22762. color: #858585;
  22763. }
  22764. .check img {
  22765. width: 20px;
  22766. height: 20px;
  22767. }
  22768. .lockTaskIcon {
  22769. width: 20px;
  22770. height: 20px;
  22771. position: absolute;
  22772. right: 10px;
  22773. top: 10px;
  22774. }
  22775. .lockTaskIcon > img {
  22776. width: 100%;
  22777. height: 100%;
  22778. }
  22779. .pick_box {
  22780. display: flex;
  22781. align-items: flex-start;
  22782. flex-wrap: wrap;
  22783. }
  22784. .selectBox {
  22785. width: 110px;
  22786. margin-left: 10px;
  22787. margin: 0 10px 0 auto;
  22788. }
  22789. .selectBox >>> .el-input__inner {
  22790. height: 30px;
  22791. line-height: 30px;
  22792. }
  22793. .selectBox >>> .el-input__icon {
  22794. line-height: 30px;
  22795. }
  22796. .sentenceTitle {
  22797. display: flex;
  22798. flex-direction: row;
  22799. flex-wrap: nowrap;
  22800. align-items: center;
  22801. }
  22802. .sentenceTitle::before {
  22803. content: attr(index);
  22804. background: #3681fc;
  22805. border-radius: 50%;
  22806. color: #fff;
  22807. width: 25px;
  22808. height: 25px;
  22809. min-width: 25px;
  22810. min-height: 25px;
  22811. text-align: center;
  22812. line-height: 25px;
  22813. margin-right: 5px;
  22814. }
  22815. .hfBox {
  22816. padding: 10px;
  22817. box-sizing: border-box;
  22818. }
  22819. .whoReplyWho {
  22820. display: flex;
  22821. flex-direction: row;
  22822. flex-wrap: nowrap;
  22823. align-items: baseline;
  22824. justify-content: flex-start;
  22825. }
  22826. .hfBottom {
  22827. display: flex;
  22828. flex-direction: row;
  22829. flex-wrap: nowrap;
  22830. align-items: center;
  22831. justify-content: space-between;
  22832. font-size: 14px;
  22833. }
  22834. .deleteHfItem {
  22835. cursor: pointer;
  22836. width: 20px;
  22837. height: 20px;
  22838. }
  22839. .deleteHfItem > img {
  22840. width: 100%;
  22841. height: 100%;
  22842. }
  22843. .whoReplyWho > .hfImg {
  22844. width: 12px;
  22845. height: 12px;
  22846. margin: 0 5px;
  22847. }
  22848. .whoReplyWho > .hfImg > img {
  22849. width: 100%;
  22850. height: 100%;
  22851. }
  22852. .hfContent {
  22853. padding-top: 10px;
  22854. box-sizing: border-box;
  22855. display: -webkit-box;
  22856. overflow: hidden;
  22857. white-space: normal !important;
  22858. text-overflow: ellipsis;
  22859. word-wrap: break-word;
  22860. -webkit-box-orient: vertical;
  22861. }
  22862. .hfTime {
  22863. text-align: left;
  22864. box-sizing: border-box;
  22865. padding: 10px 0 10px 0px;
  22866. color: #bfbfbf;
  22867. font-size: 14px;
  22868. }
  22869. .btnAllNT {
  22870. position: fixed;
  22871. bottom: 100px;
  22872. right: 40px;
  22873. z-index: 999;
  22874. display: flex;
  22875. flex-direction: row;
  22876. }
  22877. .btnAllNT > img {
  22878. cursor: pointer;
  22879. width: 80px;
  22880. }
  22881. .toolMask {
  22882. position: fixed;
  22883. width: 100%;
  22884. height: 100%;
  22885. background: #3f3c3c;
  22886. opacity: 0.5;
  22887. top: 0;
  22888. left: 0;
  22889. z-index: 999;
  22890. }
  22891. .addToolCss {
  22892. position: fixed;
  22893. z-index: 999;
  22894. background: #fff;
  22895. right: 5%;
  22896. bottom: 18%;
  22897. min-width: 1035px;
  22898. min-height: 300px;
  22899. border-radius: 10px;
  22900. box-shadow: 0 0 8px 1px #b2b2b2;
  22901. }
  22902. .toolTop {
  22903. display: flex;
  22904. flex-direction: row;
  22905. flex-wrap: nowrap;
  22906. justify-content: space-between;
  22907. align-items: center;
  22908. padding: 20px;
  22909. }
  22910. .toolTop > div:nth-child(2) {
  22911. width: 15px;
  22912. height: 15px;
  22913. padding-right: 10px;
  22914. cursor: pointer;
  22915. }
  22916. .toolTop > div:nth-child(2) > img {
  22917. width: 100%;
  22918. height: 100%;
  22919. }
  22920. .fullStyle>>>.el-dialog__body {
  22921. height: calc(100% - 125px) !important;
  22922. box-sizing: border-box;
  22923. padding: 30px 0 !important;
  22924. background: #fff !important;
  22925. }
  22926. .fullStyle>>>.el-dialog {
  22927. width: 100% !important;
  22928. max-width: 100% !important;
  22929. height: 100% !important;
  22930. margin: 0 !important;
  22931. }
  22932. .fullStyle {
  22933. width: 100% !important;
  22934. max-width: 100% !important;
  22935. height: 100% !important;
  22936. margin: 0 auto !important;
  22937. }
  22938. .fullStyle>>>.el-dialog__footer{
  22939. background: #fff !important;
  22940. }
  22941. .engUpBox {
  22942. width: 100%;
  22943. height: 100%;
  22944. }
  22945. .engTitle,
  22946. .engText {
  22947. display: flex;
  22948. flex-direction: row;
  22949. flex-wrap: nowrap;
  22950. align-items: flex-start;
  22951. padding: 0 20px 20px 20px;
  22952. box-sizing: border-box;
  22953. }
  22954. .engTitle > .div:first-child,
  22955. .engText > div:first-child {
  22956. min-width: 75px;
  22957. }
  22958. .correctBox{
  22959. width: 100%;
  22960. display: flex;
  22961. flex-direction: row;
  22962. flex-wrap: nowrap;
  22963. align-items: flex-start;
  22964. }
  22965. .oldBox{
  22966. width: 50%;
  22967. height: 100%;
  22968. display: flex;
  22969. flex-direction: column;
  22970. flex-wrap: nowrap;
  22971. align-items: center;
  22972. border-top: 1px solid #d9d9d9;
  22973. border-left: 1px solid #d9d9d9;
  22974. border-right: 1px solid #d9d9d9;
  22975. }
  22976. .oldBox>div:first-child{
  22977. width: 100%;
  22978. text-align: center;
  22979. background: #d9d9d9;
  22980. height: 35px;
  22981. line-height: 35px;
  22982. font-weight: bold;
  22983. }
  22984. .oldText{
  22985. width: 100%;
  22986. height: calc(100% - 35px);
  22987. overflow: auto;
  22988. margin: 10px 0;
  22989. display: flex;
  22990. flex-direction: column;
  22991. flex-wrap: nowrap;
  22992. align-content: center;
  22993. align-items: center;
  22994. }
  22995. .detailBox{
  22996. width: 50%;
  22997. padding: 10px;
  22998. background: #f6f6f6;
  22999. border-radius: 5px;
  23000. }
  23001. .oldDetail,.oldDetail1{
  23002. padding-bottom: 30px;
  23003. }
  23004. .oldImg{
  23005. width:30px;
  23006. height: 30px;
  23007. }
  23008. .oldImg>img{
  23009. width: 100%;
  23010. height: 100%;
  23011. }
  23012. .allName{
  23013. min-width: 200px;
  23014. white-space: nowrap;
  23015. overflow: hidden;
  23016. text-overflow: ellipsis;
  23017. word-break: break-word;
  23018. cursor: pointer;
  23019. text-align: center;
  23020. border: 1px solid #bcc2cc;
  23021. box-sizing: border-box;
  23022. }
  23023. .engUpTop{
  23024. max-height: 300px;
  23025. overflow: auto;
  23026. }
  23027. .isUpdateToolDetailClass{
  23028. padding: 0 !important;
  23029. }
  23030. .isUpdateToolDetailClass textarea{
  23031. padding:12px;
  23032. font-size: 16px;
  23033. min-height:100%;
  23034. width: 100%;
  23035. box-sizing:border-box;
  23036. outline: none;
  23037. border:none;
  23038. line-height: 30px;
  23039. resize: none;
  23040. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  23041. color: #838383;
  23042. }
  23043. .show_taskD {
  23044. min-width: fit-content;
  23045. margin-left: 10px;
  23046. display: flex;
  23047. align-items: center;
  23048. font-size: 14px;
  23049. cursor: pointer;
  23050. color: #717c8d;
  23051. }
  23052. .show_taskD > img {
  23053. width: 15px;
  23054. margin-right: 5px;
  23055. transition: 0.2s all;
  23056. transform: rotate(-90deg);
  23057. }
  23058. .show_taskD.show > img {
  23059. transform: rotate(0deg);
  23060. }
  23061. </style>