studyStudent.vue 891 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497
  1. <template>
  2. <div class="pb_content" style="height: 100%;overflow: unset;">
  3. <!-- 极简模式 -->
  4. <div
  5. class="pb_content_body"
  6. style="
  7. display: flex;
  8. height: 100%;
  9. position: relative;
  10. padding: 20px 0 20px 20px;
  11. box-sizing: border-box;
  12. overflow: auto;
  13. "
  14. >
  15. <!-- <div class="btnAllNT">
  16. <img
  17. v-if="
  18. courseDetail.userid == userid ||
  19. (courseDetail.course_teacher &&
  20. courseDetail.course_teacher.indexOf(userid) != -1)
  21. "
  22. src="../../assets/icon/learn/addTool.png"
  23. @click="openToolAll"
  24. style="position: relative"
  25. />
  26. <img
  27. src="../../assets/icon/learn/last.png"
  28. @click="nextOrpreSteps(0)"
  29. />
  30. <img
  31. src="../../assets/icon/learn/next.png"
  32. @click="nextOrpreSteps(1)"
  33. />
  34. <img
  35. src="../../assets/icon/learn/return.png"
  36. @click.stop="
  37. goTo(
  38. '/courseDetail?userid=' +
  39. userid +
  40. '&oid=' +
  41. oid +
  42. '&org=' +
  43. org +
  44. '&cid=' +
  45. classId +
  46. '&courseId=' +
  47. id +
  48. '&tType=' +
  49. tType +
  50. '&screenType=' +
  51. screenType
  52. )
  53. "
  54. />
  55. </div> -->
  56. <div
  57. class="pButton"
  58. style="left: 0; top: 140px"
  59. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  60. @click="setContent2(true)"
  61. >
  62. <!-- 批 , getCourseDetail()-->
  63. <img
  64. src="../../assets/icon/newIcons/isRight.png"
  65. style="width: 45px"
  66. alt=""
  67. />
  68. </div>
  69. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  70. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  71. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  72. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  73. <div
  74. style="
  75. max-width: calc(100% - 40px);
  76. width: auto;
  77. white-space: nowrap;
  78. overflow: hidden;
  79. text-overflow: ellipsis;
  80. word-break: break-word;
  81. display: block;
  82. "
  83. >
  84. <el-tooltip
  85. effect="light"
  86. :content="courseDetail.title"
  87. placement="top"
  88. >
  89. <div class="ctitle">
  90. {{ courseDetail.title }}
  91. </div>
  92. </el-tooltip>
  93. </div>
  94. <el-tooltip effect="light" content="收缩" placement="top">
  95. <div class="mlImg" @click="setContent2(false)">
  96. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  97. </div>
  98. </el-tooltip>
  99. </div>
  100. <div
  101. class="inviteBox"
  102. v-if="tcid && inviteCode"
  103. style="padding: 0 0 8px 0"
  104. >
  105. <div>
  106. <span>识别码:{{ inviteCode }}</span>
  107. </div>
  108. </div>
  109. </div>
  110. <div class="cru_selectBox">
  111. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  112. <div class="stageChild" :class="{ navActive: item.isOpen }">
  113. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  114. <div
  115. class="navItem"
  116. :class="{
  117. openTaskActive:
  118. navIndex == taskCount &&
  119. nav.id == navId &&
  120. stageIndex == courseType,
  121. }"
  122. >
  123. <div v-if="nav.tool[0].tool != undefined">
  124. <div
  125. class="closeTri1"
  126. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  127. @click="openTask(stageIndex, navIndex, nav.id)"
  128. >
  129. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../../assets/icon/newIcons/bDown2.png" alt />
  130. </div>
  131. <div
  132. class="closeTri1"
  133. v-else
  134. @click="openTask(stageIndex, navIndex, nav.id)"
  135. >
  136. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../../assets/icon/newIcons/right.png" alt />
  137. </div>
  138. </div>
  139. <div v-else class="noToolBlue"></div>
  140. <div
  141. @click="openTask(stageIndex, navIndex, nav.id)"
  142. class="navItemList"
  143. :class="{
  144. isItemList:
  145. navIndex == taskCount &&
  146. nav.id == navId &&
  147. stageIndex == courseType,
  148. }"
  149. >
  150. <div>任务{{ navIndex + 1 }}:</div>
  151. <el-tooltip
  152. effect="light"
  153. :content="nav.taskName"
  154. placement="top"
  155. >
  156. <div
  157. :style="{
  158. width:
  159. IsLookOpen && !nav.isLook
  160. ? 'calc(100% - 75px)'
  161. : 'auto',
  162. }"
  163. >
  164. {{ nav.taskName }}
  165. </div>
  166. </el-tooltip>
  167. </div>
  168. <div class="lockTaskIcon">
  169. <img
  170. src="../../assets/lock.png"
  171. v-if="IsLookOpen && !nav.isLook && courseDetail.userid != userid &&
  172. courseDetail.course_teacher.indexOf(userid) ==-1"
  173. alt=""
  174. />
  175. </div>
  176. </div>
  177. <div
  178. v-if="nav.tool[0].tool != undefined"
  179. class="toolChild"
  180. :class="{ toolActive: nav.isOpen }"
  181. >
  182. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  183. <div
  184. class="gjCss"
  185. :class="{
  186. isGjCss: t.isTool,
  187. }"
  188. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  189. >
  190. <div>工具{{ toolIndex2 + 1 }}:</div>
  191. <div v-if="t.tool == 58">模拟驾驶</div>
  192. <div v-if="t.tool == 59">路径搜索</div>
  193. <div v-if="t.tool == 60">深度学习</div>
  194. <div v-if="t.tool == 10">倒计时</div>
  195. <div v-if="t.tool == 65">挑人</div>
  196. <div v-if="t.tool == 7">思维网格</div>
  197. <div v-if="t.tool == 1">电子白板</div>
  198. <div v-if="t.tool == 52">文档</div>
  199. <div v-if="t.tool == 3">思维导图</div>
  200. <div v-if="t.tool == 48">表格</div>
  201. <div v-if="t.tool == 49">学生分组</div>
  202. <div v-if="t.tool == 4">问卷调查</div>
  203. <div v-if="t.tool == 45">选择题</div>
  204. <div v-if="t.tool == 15">问答</div>
  205. <div v-if="t.tool == 16">作业提交</div>
  206. <div v-if="t.tool == 50">批量上传</div>
  207. <div v-if="t.tool == 41">选择匹配</div>
  208. <div v-if="t.tool == 47">排序</div>
  209. <div v-if="t.tool == 40">个人评价</div>
  210. <div v-if="t.tool == 18">训练平台</div>
  211. <div v-if="t.tool == 21">AIoT Blockly</div>
  212. <div v-if="t.tool == 23">AI Python</div>
  213. <div v-if="t.tool == 24">AI Blockly</div>
  214. <div v-if="t.tool == 32">源码编辑</div>
  215. <div v-if="t.tool == 57">CocoPi</div>
  216. <div v-if="t.tool == 63">海龟编程</div>
  217. <div v-if="t.tool == 28">翻译</div>
  218. <div v-if="t.tool == 31">数字画板</div>
  219. <div v-if="t.tool == 39">GeoGebra</div>
  220. <div v-if="t.tool == 66">公式编辑</div>
  221. <div v-if="t.tool == 67">分子结构</div>
  222. <div v-if="t.tool == 68">时间轴</div>
  223. <div v-if="t.tool == 69">英语写作</div>
  224. <div v-if="t.tool == 70">英语口语</div>
  225. <div v-if="t.tool == 25">目标管理</div>
  226. <div v-if="t.tool == 26">课程设计</div>
  227. <div v-if="t.tool == 62">交互视频</div>
  228. <div v-if="t.tool == 71">AI智能体</div>
  229. <div v-if="t.tool == 72">应用中心</div>
  230. <div v-if="t.tool == 73">PPT</div>
  231. </div>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. </div>
  239. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  240. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }"></div>
  241. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 47px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 18px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  242. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid))? '100%' : 'calc(100% - 745px)'}">
  243. <div>任务{{ taskCount + 1 }}</div>
  244. <el-tooltip
  245. effect="light"
  246. :content="
  247. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  248. "
  249. placement="top"
  250. >
  251. <div>
  252. {{
  253. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  254. .task
  255. }}
  256. </div>
  257. </el-tooltip>
  258. </div>
  259. <!-- v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'" -->
  260. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid)">
  261. <div class="btnLeft">
  262. <el-tooltip effect="light" content="刷新" placement="top">
  263. <div class="reBtnIcon" @click="refreshCourse">
  264. <span>刷新</span>
  265. </div>
  266. </el-tooltip>
  267. <el-tooltip effect="light" content="评论" placement="top">
  268. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  269. <span>评论</span>
  270. </div>
  271. </el-tooltip>
  272. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  273. <el-tooltip effect="light" content="录制" placement="top">
  274. <div class="vedioIcon" @click="startRecording">
  275. <span>录制</span>
  276. </div>
  277. </el-tooltip>
  278. </div>
  279. <div v-else-if="tType == 1 || tType == 4">
  280. <el-tooltip effect="light" content="下载" placement="top">
  281. <div class="vedioIcon1" @click="stopRecording">
  282. <span>下载</span>
  283. </div>
  284. </el-tooltip>
  285. </div>
  286. </div>
  287. <div class="btnRight">
  288. <div
  289. class="last"
  290. @click="nextOrpreSteps(0)"
  291. v-if="!(IsFollow && tType == 2)"
  292. @mouseover="isHovered = true"
  293. @mouseout="isHovered = false"
  294. >
  295. <div class="lastImg">
  296. <img
  297. :src="
  298. isHovered
  299. ? require('../../assets/icon/newIcons/whiteLast.png')
  300. : require('../../assets/icon/newIcons/last.png')
  301. "
  302. alt=""
  303. />
  304. </div>
  305. <div class="lastText">上一步</div>
  306. </div>
  307. <div
  308. class="last"
  309. @click="nextOrpreSteps(1)"
  310. v-if="!(IsFollow && tType == 2)"
  311. @mouseover="isHovered1 = true"
  312. @mouseout="isHovered1 = false"
  313. >
  314. <div class="lastText">下一步</div>
  315. <div class="lastImg">
  316. <img
  317. :src="
  318. isHovered1
  319. ? require('../../assets/icon/newIcons/whiteNext.png')
  320. : require('../../assets/icon/newIcons/next.png')
  321. "
  322. alt=""
  323. />
  324. </div>
  325. </div>
  326. <div
  327. class="last"
  328. @click="juriVisible = true"
  329. v-if="tType == 1"
  330. @mouseover="isHovered2 = true"
  331. @mouseout="isHovered2 = false"
  332. >
  333. <div class="lastImg">
  334. <img
  335. :src="
  336. isHovered2
  337. ? require('../../assets/icon/newIcons/whiteLock.png')
  338. : require('../../assets/icon/newIcons/lock.png')
  339. "
  340. alt=""
  341. />
  342. </div>
  343. <div class="lastText">权限</div>
  344. </div>
  345. <div
  346. class="returnBtn1 returnIcon"
  347. @click.stop="
  348. goTo(
  349. '/courseDetail?userid=' +
  350. userid +
  351. '&oid=' +
  352. oid +
  353. '&org=' +
  354. org +
  355. '&cid=' +
  356. classId +
  357. '&courseId=' +
  358. id +
  359. '&tType=' +
  360. tType +
  361. '&screenType=' +
  362. screenType
  363. )
  364. "
  365. >
  366. <div class="lastImg">
  367. <img src="../../assets/icon/newIcon/return.png" alt="" />
  368. </div>
  369. <div class="lastText" style="color: #000">返回</div>
  370. </div>
  371. </div>
  372. <!-- <div
  373. class="returnBtn lockIcon"
  374. @click="juriVisible = true"
  375. v-if="tType == 1"
  376. >
  377. 权限
  378. </div>
  379. <div
  380. class="returnBtn vedioIcon"
  381. @click="startRecording"
  382. v-if="!videoStart && (tType == 1 || tType == 4)"
  383. >
  384. 录制
  385. </div>
  386. <div
  387. class="returnBtn"
  388. @click="stopRecording"
  389. v-else-if="tType == 1 || tType == 4"
  390. style="background: #ee5255"
  391. >
  392. 下载
  393. </div>
  394. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  395. 评论
  396. </div>
  397. <div
  398. class="returnBtn"
  399. @click="nextOrpreSteps(0)"
  400. v-if="!(IsFollow && tType == 2)"
  401. >
  402. 上一步
  403. </div>
  404. <div
  405. class="returnBtn"
  406. @click="nextOrpreSteps(1)"
  407. v-if="!(IsFollow && tType == 2)"
  408. >
  409. 下一步
  410. </div>
  411. <div class="returnBtn" @click="refreshCourse">刷新</div>
  412. <div
  413. class="returnBtn returnIcon"
  414. @click.stop="
  415. goTo(
  416. '/courseDetail?userid=' +
  417. userid +
  418. '&oid=' +
  419. oid +
  420. '&org=' +
  421. org +
  422. '&cid=' +
  423. classId +
  424. '&courseId=' +
  425. id +
  426. '&tType=' +
  427. tType +
  428. '&screenType=' +
  429. screenType
  430. )
  431. "
  432. >
  433. 返回
  434. </div> -->
  435. </div>
  436. </div>
  437. <!-- !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  438. .taskDetail3 && -->
  439. <div
  440. class="isNoMessage"
  441. v-if="
  442. chapInfoList[courseType].chapterInfo[0].taskJson[0]
  443. .chapterData.length == 0 &&
  444. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  445. .toolChoose[0].tool.length == 0 &&
  446. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  447. .taskDetail == '' &&
  448. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  449. .eList &&
  450. !(
  451. courseDetail.userid == userid ||
  452. (courseDetail.course_teacher &&
  453. courseDetail.course_teacher.indexOf(userid) != -1)
  454. )
  455. "
  456. >
  457. <img src="../../assets/icon/isNoMessage.png" alt />
  458. </div>
  459. <div class="study_top" :class="{ pzClass: pzDialog }">
  460. <!-- chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  461. .taskDetail3 || -->
  462. <div
  463. class="vedioBox"
  464. v-if="
  465. (chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  466. .taskDetail != '' ||
  467. vChapterData[0].length > 0 ||
  468. fileC[0].length > 0) && (tType == 1 || (tType == 2 && IsStulook))
  469. "
  470. style="border-radius: 0 0 20px 20px"
  471. >
  472. <!-- <div
  473. class="taskBox"
  474. v-if="
  475. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  476. .taskDetail3
  477. "
  478. >
  479. <div
  480. style="
  481. display: flex;
  482. flex-wrap: nowrap;
  483. flex-direction: column;
  484. position: relative;
  485. "
  486. >
  487. <div
  488. style="
  489. padding: 15px 0;
  490. line-height: 29px;
  491. font-size: 18px;
  492. color: #0e1e33;
  493. "
  494. class="cont"
  495. v-if="
  496. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  497. .taskDetail3 != ''
  498. "
  499. v-html="
  500. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  501. .taskDetail3
  502. ? MarkdownT(chapInfoList[courseType].chapterInfo[0].taskJson[
  503. taskCount
  504. ].taskDetail3)
  505. : '暂无描述'
  506. "
  507. ></div>
  508. </div>
  509. </div> -->
  510. <div
  511. class="taskBox"
  512. v-if="
  513. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  514. .taskDetail != ''
  515. "
  516. >
  517. <div
  518. style="
  519. display: flex;
  520. flex-wrap: nowrap;
  521. flex-direction: column;
  522. position: relative;
  523. "
  524. class="renderedFor"
  525. >
  526. <div
  527. style="
  528. padding: 15px 0;
  529. line-height: 29px;
  530. font-size: 18px;
  531. color: #0e1e33;
  532. "
  533. class="cont"
  534. v-if="
  535. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  536. .taskDetail != ''
  537. "
  538. v-html="
  539. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  540. .taskDetail
  541. ? renderedFormula2(chapInfoList[courseType].chapterInfo[0].taskJson[
  542. taskCount
  543. ].taskDetail)
  544. : '暂无描述'
  545. "
  546. ></div>
  547. </div>
  548. </div>
  549. <div
  550. class="student_head"
  551. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  552. >
  553. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  554. <div
  555. :class="
  556. contentDialog == false
  557. ? 'box_course isContentCss'
  558. : 'box_course'
  559. "
  560. v-if="
  561. vChapterData.length > 0 &&
  562. vChapterData[0] &&
  563. showType !== ''
  564. "
  565. >
  566. <div class="wheel" style="height: auto" v-if="showType === 0">
  567. <div
  568. class="workd_media"
  569. style="height: 650px; width: calc(100% - 50px)"
  570. >
  571. <video-player
  572. class="video-player vjs-custom-skin notop"
  573. :class="contentDialog == false ? 'isAllWidth' : ''"
  574. :playsinline="true"
  575. :options="playerO[0]"
  576. @play="onPlayerPlay($event)"
  577. style="width: 100%; height: 650px; margin: 0 0 0 30px"
  578. ></video-player>
  579. </div>
  580. </div>
  581. <div
  582. class="wheel"
  583. v-if="showType == 1"
  584. style="
  585. box-shadow: 0 0 6px 1px #f2f2f2;
  586. width: 95%;
  587. margin: 0 auto;
  588. background: #f1f1f1;
  589. "
  590. >
  591. <div class="title">查看文档</div>
  592. <el-form class="textBox">
  593. <el-form-item class="textTitle">
  594. <div style="font-size: 22px">
  595. {{ text.name }}
  596. </div>
  597. </el-form-item>
  598. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  599. <div v-html="text.url" class="textContent cont"></div>
  600. </el-form>
  601. </div>
  602. <div
  603. class="wheel"
  604. v-if="
  605. pptImgUrl1.indexOf(
  606. 'https://view.officeapps.live.com/op/view.aspx?src='
  607. ) != -1 && showType == 2
  608. "
  609. style="width: 95%; margin: 0 auto"
  610. >
  611. <iframe
  612. style="width: 100%; height: 100%; border: none"
  613. :src="pptImgUrl1"
  614. ></iframe>
  615. </div>
  616. <div
  617. class="wheel"
  618. v-else-if="showType == 2"
  619. style="width: 95%; margin: 0 auto"
  620. >
  621. <iframe
  622. style="width: 100%; height: 100%; border: none"
  623. :key="diffKey"
  624. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  625. v-if="pptImgUrl1.indexOf('cocorobo')!=-1"
  626. :src="pptImgUrl1"
  627. ></iframe>
  628. <iframe
  629. style="width: 100%; height: 100%; border: none"
  630. security="restricted"
  631. v-else
  632. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  633. :src="pptImgUrl1"
  634. ></iframe>
  635. </div>
  636. <div
  637. class="wheel"
  638. v-if="showType === 16"
  639. style="width: 95%; margin: 0 auto"
  640. >
  641. <iframe
  642. style="width: 100%; height: 100%; border: none"
  643. :src="pptImgUrl1"
  644. ></iframe>
  645. </div>
  646. <div
  647. class="wheel"
  648. v-if="showType == 3"
  649. style="width: 95%; margin: 0 auto"
  650. >
  651. <pdf
  652. :pdfUrl="pptImgUrl1"
  653. style="width: 100%; height: 100%; overflow: auto"
  654. ></pdf>
  655. </div>
  656. <div
  657. class="wheel"
  658. v-if="showType == 4"
  659. style="width: 95%; margin: 0 auto"
  660. >
  661. <el-image
  662. :src="pptImgUrl1"
  663. fit="contain"
  664. style="width: 100%; height: 100%; cursor: pointer"
  665. @click="previewImg(pptImgUrl1)"
  666. ></el-image>
  667. </div>
  668. </div>
  669. <div
  670. class="pButton"
  671. style="position: absolute; right: 20px; top: 0; z-index: 998"
  672. v-if="!contentDialog"
  673. @click="setContent(true)"
  674. >
  675. <!-- 批 -->
  676. <img
  677. src="../../assets/icon/newIcons/isLeft.png"
  678. style="width: 45px"
  679. alt=""
  680. />
  681. </div>
  682. <div
  683. v-if="contentDialog == true"
  684. :style="{
  685. width:
  686. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  687. showType === ''
  688. ? 'calc(100%)'
  689. : '300px',
  690. margin:
  691. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  692. showType === ''
  693. ? '0 15px'
  694. : '0 15px 0 0',
  695. }"
  696. >
  697. <div
  698. class="vedioList"
  699. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  700. style="height: 650px"
  701. >
  702. <div class="navCorOpenBox">
  703. <div class="navTitile">内容列表:</div>
  704. <div class="navCorOpen" @click="setContent(false)">
  705. <img
  706. src="../../assets/icon/newIcons/isRight.png"
  707. alt=""
  708. />
  709. </div>
  710. </div>
  711. <div class="navBox">
  712. <div
  713. v-show="
  714. vChapterData[0].length > 0 || fileC[0].length > 0
  715. "
  716. style="padding: 10px 0 25px 0"
  717. >
  718. <div
  719. class="vedioTimeBox"
  720. v-for="(vitem, vindex) in vChapterData[0]"
  721. :key="vindex + '1'"
  722. >
  723. <div class="navListItem" v-if="vitem.type == 2">
  724. <div
  725. @click="lookVedio(vitem.url, vindex)"
  726. class="navText"
  727. :class="isClickNav == vindex ? 'isClickNav' : ''"
  728. >
  729. <span v-if="vitem.text">{{ vitem.text }}-</span
  730. >{{ vitem.name }}
  731. </div>
  732. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  733. <img
  734. src="../../assets/icon/newIcon/down.png"
  735. alt
  736. />
  737. </div> -->
  738. </div>
  739. <div class="navListItem" v-if="vitem.type == 6">
  740. <div
  741. @click="lookText(0, vindex)"
  742. class="navText"
  743. :class="isClickNav == vindex ? 'isClickNav' : ''"
  744. >
  745. {{ vitem.name }}.doc
  746. </div>
  747. <div
  748. class="downIcon"
  749. @click="checkFileFull1(vitem.type, vitem)"
  750. >
  751. <img
  752. src="../../assets/icon/newIcon/allScreen.png"
  753. alt
  754. />
  755. </div>
  756. </div>
  757. <div
  758. class="navListItem"
  759. v-if="vitem.type == 8 || vitem.type == 14 || vitem.type == 15"
  760. >
  761. <div
  762. @click="doUrl(vitem.url, vindex)"
  763. class="navText"
  764. :class="isClickNav == vindex ? 'isClickNav' : ''"
  765. >
  766. {{ vitem.title ? vitem.title : vitem.url }}
  767. </div>
  768. <div
  769. class="downIcon"
  770. @click="checkFileFull1(vitem.type, vitem)"
  771. >
  772. <img
  773. src="../../assets/icon/newIcon/allScreen.png"
  774. alt
  775. />
  776. </div>
  777. </div>
  778. <div class="navListItem" v-if="vitem.type == 3">
  779. <div
  780. @click="downFile(vitem, vindex)"
  781. class="navText"
  782. :class="isClickNav == vindex ? 'isClickNav' : ''"
  783. >
  784. <span v-if="vitem.text">{{ vitem.text }}-</span
  785. >{{ vitem.name }}
  786. </div>
  787. <div
  788. class="downIcon"
  789. @click="checkFileFull1(vitem.type, vitem)"
  790. >
  791. <img
  792. src="../../assets/icon/newIcon/allScreen.png"
  793. alt
  794. />
  795. </div>
  796. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  797. <img
  798. src="../../assets/icon/newIcon/down.png"
  799. alt
  800. />
  801. </div> -->
  802. </div>
  803. <div class="navListItem" v-if="vitem.type == 12">
  804. <div class="navText" @click="downloadFile2(vitem)">
  805. <span v-if="vitem.text">{{ vitem.text }}-</span
  806. >{{ vitem.name }}
  807. </div>
  808. <div
  809. class="downIcon"
  810. @click="checkFileFull1(vitem.type, vitem)"
  811. >
  812. <img
  813. src="../../assets/icon/newIcon/allScreen.png"
  814. alt
  815. />
  816. </div>
  817. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  818. <img
  819. src="../../assets/icon/newIcon/down.png"
  820. alt
  821. />
  822. </div> -->
  823. </div>
  824. <div class="navListItem" v-if="vitem.type == 13">
  825. <div
  826. class="navText"
  827. @click="checkPhoto(vitem, vindex)"
  828. :class="isClickNav == vindex ? 'isClickNav' : ''"
  829. >
  830. {{ vitem.name }}
  831. </div>
  832. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  833. <img
  834. src="../../assets/icon/newIcon/down.png"
  835. alt
  836. />
  837. </div> -->
  838. </div>
  839. <div class="navListItem" v-if="vitem.type == 16">
  840. <div
  841. class="navText"
  842. @click="checkHtml(vitem, vindex)"
  843. :class="isClickNav == vindex ? 'isClickNav' : ''"
  844. >
  845. {{ vitem.name }}
  846. </div>
  847. <div
  848. class="downIcon"
  849. @click="checkFileFull1(vitem.type, vitem)"
  850. >
  851. <img
  852. src="../../assets/icon/newIcon/allScreen.png"
  853. alt
  854. />
  855. </div>
  856. </div>
  857. <div class="navListItem" v-if="vitem.type == 17">
  858. <div
  859. class="navText"
  860. @click="checkHtml(vitem, vindex)"
  861. :class="isClickNav == vindex ? 'isClickNav' : ''"
  862. >
  863. {{ vitem.name }}
  864. </div>
  865. <div
  866. class="downIcon"
  867. @click="checkFileFull1(vitem.type, vitem)"
  868. >
  869. <img
  870. src="../../assets/icon/newIcon/allScreen.png"
  871. alt
  872. />
  873. </div>
  874. </div>
  875. </div>
  876. <div class="fileC_box" v-if="fileC[0].length > 0">
  877. <div class="fileC_title">以下文件不支持预览</div>
  878. <div
  879. class="vedioTimeBox"
  880. v-for="(vitem, vindex) in fileC[0]"
  881. :key="vindex + '1'"
  882. >
  883. <div class="navListItem" v-if="vitem.type == 12">
  884. <div class="navText" style="color: #acb4bf">
  885. <span v-if="vitem.text">{{ vitem.text }}-</span
  886. >{{ vitem.name }}
  887. </div>
  888. <!-- <div
  889. class="downIcon"
  890. @click="downloadFile2(vitem)"
  891. >
  892. <img
  893. src="../../assets/icon/newIcon/down.png"
  894. alt
  895. />
  896. </div> -->
  897. </div>
  898. </div>
  899. </div>
  900. </div>
  901. </div>
  902. </div>
  903. </div>
  904. </div>
  905. <div style="width: calc(100% - 315px)">
  906. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  907. <!-- <el-button
  908. type="primary"
  909. class="newButton"
  910. @click="checkFileFull(showType, pptImgUrl1)"
  911. >全屏查看</el-button
  912. >
  913. <el-button
  914. type="primary"
  915. class="newButton"
  916. @click="downloadFile(pptImgUrl1)"
  917. v-if="showType != 2"
  918. >文件下载</el-button
  919. > -->
  920. <el-button
  921. v-if="
  922. showType == 2 &&
  923. pptImgUrl1.indexOf(
  924. 'https://view.officeapps.live.com/op/view.aspx?src='
  925. ) == -1
  926. "
  927. type="primary"
  928. class="newButton"
  929. @click="openLine(pptImgUrl1)"
  930. >打开链接
  931. </el-button>
  932. </div>
  933. <!-- <div
  934. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  935. v-if="showType == 1"
  936. >
  937. <el-button
  938. type="primary"
  939. class="newButton"
  940. @click="checkFileFull(showType, text)"
  941. >全屏查看</el-button
  942. >
  943. </div> -->
  944. </div>
  945. </div>
  946. </div>
  947. <div class="student_body" v-resize="resize">
  948. <div
  949. class="vedioBox"
  950. :style="{
  951. borderRadius:
  952. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  953. .taskDetail == '' &&
  954. vChapterData[taskCount].length == 0 &&
  955. fileC[taskCount].length == 0
  956. ? '0 0 20px 20px'
  957. : '20px',
  958. }"
  959. v-if="
  960. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  961. .toolChoose[0].tool &&
  962. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  963. .toolChoose[0].tool.length > 0
  964. "
  965. >
  966. <div
  967. class="toolHeng2"
  968. style="position: relative"
  969. v-if="
  970. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  971. .toolChoose[0].tool &&
  972. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  973. .toolChoose[0].tool.length &&
  974. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  975. .toolChoose[0].tool.length > 0
  976. "
  977. >
  978. <div class="workNav">工作区</div>
  979. <div
  980. class="filebox"
  981. style="flex-wrap: nowrap"
  982. v-for="(tool, toolIndex) in chapInfoList[courseType]
  983. .chapterInfo[0].taskJson[taskCount].toolChoose"
  984. :key="toolIndex"
  985. >
  986. <div class="bzBox">
  987. <div class="yCss"></div>
  988. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  989. 工具{{ toolIndex + 1 }}
  990. </div>
  991. <div
  992. v-if="timeWorkList[toolIndex].length > 0"
  993. style="margin: 0 0 0 10px"
  994. >
  995. {{
  996. timeWorkList[toolIndex][0].time
  997. ? "时间:" + timeWorkList[toolIndex][0].time
  998. : ""
  999. }}
  1000. </div>
  1001. </div>
  1002. <div class="toolBox">
  1003. <div>
  1004. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  1005. :key="indexTool"-->
  1006. <!-- <div class="iframeBox">
  1007. <div
  1008. class="addPoint isBorder"
  1009. v-for="(tooC, toolCIndex) in tool.tool"
  1010. :key="toolCIndex"
  1011. >
  1012. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  1013. <div
  1014. class="iframeName"
  1015. >
  1016. 电子白板
  1017. </div>
  1018. <iframe
  1019. src="https://iwb.cocorobo.cn/"
  1020. ref="whiteBoard"
  1021. ></iframe>
  1022. </div>
  1023. </div>
  1024. </div>-->
  1025. <div class="noiframeBox">
  1026. <div
  1027. class="addPoint"
  1028. v-for="(tooC, toolCIndex) in tool.tool"
  1029. :key="toolCIndex"
  1030. >
  1031. <div v-if="tooC == 1">
  1032. <img
  1033. src="../../assets/icon/secondToolList/whiteBoard.png"
  1034. alt
  1035. @click="addTools(tooC, toolIndex, taskCount)"
  1036. />
  1037. <div style="margin: 5px 0">电子白板</div>
  1038. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  1039. style="position: absolute;right: 33px;top: -30px;">
  1040. 分析
  1041. </div>
  1042. </div>
  1043. <div v-if="tooC == 3">
  1044. <img
  1045. src="../../assets/icon/secondToolList/mindMapping.png"
  1046. alt
  1047. @click="addTools(tooC, toolIndex, taskCount)"
  1048. />
  1049. <div style="margin: 5px 0">思维导图</div>
  1050. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  1051. style="position: absolute;right: 33px;top: -30px;">
  1052. 分析
  1053. </div>
  1054. </div>
  1055. <div v-if="tooC == 6">
  1056. <img
  1057. src="../../assets/icon/secondToolList/doc.png"
  1058. alt
  1059. @click="addTools(tooC, toolIndex, taskCount)"
  1060. />
  1061. <div style="margin: 5px 0">协同文档</div>
  1062. </div>
  1063. <div v-if="tooC == 7">
  1064. <img
  1065. src="../../assets/icon/secondToolList/mindNetwork.png"
  1066. alt
  1067. @click="addTools(tooC, toolIndex, taskCount)"
  1068. />
  1069. <div style="margin: 5px 0">思维网格</div>
  1070. <!-- && worksStudent[toolIndex].length>0 -->
  1071. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1072. style="position: absolute;right: 33px;top: -30px;">
  1073. 分析
  1074. </div>
  1075. </div>
  1076. <div v-if="tooC == 8">
  1077. <img
  1078. src="../../assets/icon/secondToolList/library.png"
  1079. alt
  1080. @click="addTools(tooC, toolIndex, taskCount)"
  1081. />
  1082. <div style="margin: 5px 0">素材库</div>
  1083. </div>
  1084. <div v-if="tooC == 17">
  1085. <img
  1086. src="../../assets/icon/secondToolList/library.png"
  1087. alt
  1088. @click="addTools(tooC, toolIndex, taskCount)"
  1089. />
  1090. <div style="margin: 5px 0">学习资料</div>
  1091. </div>
  1092. <div v-if="tooC == 2">
  1093. <img
  1094. @click="addTools(tooC, toolIndex, taskCount)"
  1095. src="../../assets/icon/secondToolList/note.png"
  1096. alt
  1097. />
  1098. <div style="margin: 5px 0">便签</div>
  1099. </div>
  1100. <div v-if="tooC == 4">
  1101. <img
  1102. @click="addTools(tooC, toolIndex, taskCount)"
  1103. src="../../assets/icon/thirdToolList/ask.png"
  1104. alt
  1105. />
  1106. <div style="margin: 5px 0">问卷调查</div>
  1107. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1108. style="position: absolute;right: 153px;top: -30px;">
  1109. 分析
  1110. </div>
  1111. <div class="upload_toolBtn" v-if="tType==='1'" @click="openStatisticalAnalysis(tooC,toolIndex,taskCount)"
  1112. style="position: absolute;right: 33px;top: -30px;">
  1113. 统计分析
  1114. </div>
  1115. </div>
  1116. <div v-if="tooC == 45">
  1117. <img
  1118. @click="addTools(tooC, toolIndex, taskCount)"
  1119. src="../../assets/icon/thirdToolList/choose.png"
  1120. alt
  1121. />
  1122. <div style="margin: 5px 0">选择题</div>
  1123. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,45)"
  1124. style="position: absolute;right: 33px;top: -30px;">
  1125. 分析
  1126. </div>
  1127. </div>
  1128. <!-- <div v-if="tooC == 5">
  1129. <img
  1130. @click="addTools(tooC, toolIndex, taskCount)"
  1131. src="../../assets/icon/thirdToolList/score.png"
  1132. alt
  1133. />
  1134. <div style="margin: 5px 0">量规评分</div>
  1135. </div> -->
  1136. <div v-if="tooC == 10">
  1137. <img
  1138. @click="addTools(tooC, toolIndex, taskCount)"
  1139. src="../../assets/icon/thirdToolList/time.png"
  1140. alt
  1141. />
  1142. <div style="margin: 5px 0">倒计时</div>
  1143. </div>
  1144. <div v-if="tooC == 15">
  1145. <img
  1146. @click="addTools(tooC, toolIndex, taskCount)"
  1147. src="../../assets/icon/thirdToolList/answer.png"
  1148. alt
  1149. />
  1150. <div style="margin: 5px 0">问答</div>
  1151. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1152. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1153. 分析
  1154. </div>
  1155. </div>
  1156. <div v-if="tooC == 26">
  1157. <img
  1158. @click="addTools(tooC, toolIndex, taskCount)"
  1159. src="../../assets/icon/thirdToolList/courseDesign.png"
  1160. alt
  1161. />
  1162. <div style="margin: 5px 0">课程设计</div>
  1163. </div>
  1164. <div v-if="tooC == 18">
  1165. <img
  1166. @click="addTools(tooC, toolIndex, taskCount)"
  1167. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1168. alt
  1169. />
  1170. <div style="margin: 5px 0">训练服务器</div>
  1171. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,18)"
  1172. style="position: absolute;right: 33px;top: -30px;">
  1173. 分析
  1174. </div>
  1175. </div>
  1176. <div v-if="tooC == 16">
  1177. <img
  1178. @click="addTools(tooC, toolIndex, taskCount)"
  1179. src="../../assets/icon/thirdToolList/work.png"
  1180. alt
  1181. />
  1182. <div style="margin: 5px 0">作业提交</div>
  1183. </div>
  1184. <div v-if="tooC == 50">
  1185. <img
  1186. @click="addTools(tooC, toolIndex, taskCount)"
  1187. src="../../assets/icon/thirdToolList/plwork.png"
  1188. alt
  1189. />
  1190. <div style="margin: 5px 0">批量上传</div>
  1191. </div>
  1192. <div v-if="tooC == 21">
  1193. <img
  1194. @click="addTools(tooC, toolIndex, taskCount)"
  1195. src="../../assets/icon/fourthToolList/program.png"
  1196. alt
  1197. />
  1198. <div style="margin: 5px 0">AIoT Blockly</div>
  1199. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,21)"
  1200. style="position: absolute;right: 33px;top: -30px;">
  1201. 分析
  1202. </div>
  1203. </div>
  1204. <!-- <div v-if="tooC == 22">
  1205. <img
  1206. @click="addTools(tooC, toolIndex, taskCount)"
  1207. src="../../assets/icon/fourthToolList/program.png"
  1208. alt
  1209. />
  1210. <div style="margin: 5px 0">AI体验</div>
  1211. </div> -->
  1212. <div v-if="tooC == 23">
  1213. <img
  1214. @click="addTools(tooC, toolIndex, taskCount)"
  1215. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1216. alt
  1217. />
  1218. <div style="margin: 5px 0">AI Python</div>
  1219. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,23)"
  1220. style="position: absolute;right: 33px;top: -30px;">
  1221. 分析
  1222. </div>
  1223. </div>
  1224. <div v-if="tooC == 24">
  1225. <img
  1226. @click="addTools(tooC, toolIndex, taskCount)"
  1227. src="../../assets/icon/fourthToolList/AIprogram.png"
  1228. alt
  1229. />
  1230. <div style="margin: 5px 0">AI Blockly</div>
  1231. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,24)"
  1232. style="position: absolute;right: 33px;top: -30px;">
  1233. 分析
  1234. </div>
  1235. </div>
  1236. <div v-if="tooC == 25">
  1237. <img
  1238. @click="addTools(tooC, toolIndex, taskCount)"
  1239. src="../../assets/icon/thirdToolList/evalua.png"
  1240. alt
  1241. />
  1242. <div style="margin: 5px 0">目标管理</div>
  1243. </div>
  1244. <div v-if="tooC == 31">
  1245. <img
  1246. @click="addTools(tooC, toolIndex, taskCount)"
  1247. src="../../assets/icon/secondToolList/networkPanel.png"
  1248. alt
  1249. />
  1250. <div style="margin: 5px 0">数学画板</div>
  1251. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,31)"
  1252. style="position: absolute;right: 33px;top: -30px;">
  1253. 分析
  1254. </div>
  1255. </div>
  1256. <div v-if="tooC == 28">
  1257. <img
  1258. @click="addTools(tooC, toolIndex, taskCount)"
  1259. src="../../assets/icon/secondToolList/translation.png"
  1260. alt
  1261. />
  1262. <div style="margin: 5px 0">翻译</div>
  1263. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,28)"
  1264. style="position: absolute;right: 33px;top: -30px;">
  1265. 分析
  1266. </div>
  1267. </div>
  1268. <div v-if="tooC == 37">
  1269. <img
  1270. @click="addTools(tooC, toolIndex, taskCount)"
  1271. src="../../assets/icon/secondToolList/mohe.png"
  1272. alt
  1273. />
  1274. <div style="margin: 5px 0">魔盒识字</div>
  1275. </div>
  1276. <div v-if="tooC == 38">
  1277. <img
  1278. @click="addTools(tooC, toolIndex, taskCount)"
  1279. src="../../assets/icon/secondToolList/24game.png"
  1280. alt
  1281. />
  1282. <div style="margin: 5px 0">24点</div>
  1283. </div>
  1284. <div v-if="tooC == 39">
  1285. <img
  1286. @click="addTools(tooC, toolIndex, taskCount)"
  1287. src="../../assets/icon/secondToolList/GeoGebra.png"
  1288. alt
  1289. />
  1290. <div style="margin: 5px 0">GeoGebra</div>
  1291. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,39)"
  1292. style="position: absolute;right: 33px;top: -30px;">
  1293. 分析
  1294. </div>
  1295. </div>
  1296. <div v-if="tooC == 32">
  1297. <img
  1298. @click="addTools(tooC, toolIndex, taskCount)"
  1299. src="../../assets/icon/thirdToolList/code.png"
  1300. alt
  1301. />
  1302. <div style="margin: 5px 0">源码编辑</div>
  1303. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,32)"
  1304. style="position: absolute;right: 153px;top: -42px;">
  1305. 分析
  1306. </div>
  1307. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1308. style="position: absolute;left: 110px;bottom: 30px;">
  1309. 上传文件
  1310. <input type="file" accept="*" style="display: none"
  1311. @change="beforeUpload1($event, 7, toolIndex)" />
  1312. </div> -->
  1313. </div>
  1314. <div v-if="tooC == 40">
  1315. <img
  1316. @click="addTools(tooC, toolIndex, taskCount)"
  1317. src="../../assets/icon/secondToolList/eval.png"
  1318. alt
  1319. />
  1320. <div style="margin: 5px 0">个人评价</div>
  1321. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1322. style="position: absolute;right: 33px;top: -30px;">
  1323. 分析
  1324. </div>
  1325. </div>
  1326. <div v-if="tooC == 41">
  1327. <img
  1328. @click="addTools(tooC, toolIndex, taskCount)"
  1329. src="../../assets/icon/thirdToolList/select.png"
  1330. alt
  1331. />
  1332. <div style="margin: 5px 0">选择匹配</div>
  1333. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1334. style="position: absolute;right: 33px;top: -30px;">
  1335. 分析
  1336. </div>
  1337. </div>
  1338. <div v-if="tooC == 44">
  1339. <img
  1340. @click="addTools(tooC, toolIndex, taskCount)"
  1341. src="../../assets/icon/thirdToolList/hanClass.png"
  1342. alt
  1343. />
  1344. <div style="margin: 5px 0">汉字宫</div>
  1345. </div>
  1346. <div v-if="tooC == 47">
  1347. <img
  1348. @click="addTools(tooC, toolIndex, taskCount)"
  1349. src="../../assets/icon/fourthToolList/conSentences.png"
  1350. alt
  1351. />
  1352. <div style="margin: 5px 0">排序</div>
  1353. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1354. style="position: absolute;right: 33px;top: -30px;">
  1355. 分析
  1356. </div>
  1357. </div>
  1358. <div v-if="tooC == 48">
  1359. <img
  1360. @click="addTools(tooC, toolIndex, taskCount)"
  1361. src="../../assets/icon/fourthToolList/table.png"
  1362. alt
  1363. />
  1364. <div style="margin: 5px 0">表格</div>
  1365. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1366. style="position: absolute;right: 33px;top: -30px;">
  1367. 分析
  1368. </div>
  1369. </div>
  1370. <div v-if="tooC == 52">
  1371. <img
  1372. @click="addTools(tooC, toolIndex, taskCount)"
  1373. src="../../assets/icon/fourthToolList/text.png"
  1374. alt
  1375. />
  1376. <div style="margin: 5px 0">文档</div>
  1377. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1378. style="position: absolute;right: 33px;top: -30px;">
  1379. 分析
  1380. </div>
  1381. </div>
  1382. <div v-if="tooC == 49">
  1383. <img
  1384. @click="addTools(tooC, toolIndex, taskCount)"
  1385. src="../../assets/icon/fourthToolList/group.png"
  1386. alt
  1387. />
  1388. <div style="margin: 5px 0">学生分组</div>
  1389. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1390. style="position: absolute;right: 33px;top: -30px;">
  1391. 分析
  1392. </div>
  1393. </div>
  1394. <div v-if="tooC == 57">
  1395. <img
  1396. @click="addTools(tooC, toolIndex, taskCount)"
  1397. src="../../assets/icon/fourthToolList/cocopi.png"
  1398. alt
  1399. />
  1400. <div style="margin: 5px 0">CocoPi</div>
  1401. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1402. style="position: absolute;right: 33px;top: -30px;">
  1403. 分析
  1404. </div>
  1405. </div>
  1406. <div v-if="tooC == 58">
  1407. <img
  1408. @click="addTools(tooC, toolIndex, taskCount)"
  1409. src="../../assets/icon/fourthToolList/car.png"
  1410. alt
  1411. />
  1412. <div style="margin: 5px 0">模拟驾驶</div>
  1413. </div>
  1414. <div v-if="tooC == 59">
  1415. <img
  1416. @click="addTools(tooC, toolIndex, taskCount)"
  1417. src="../../assets/icon/fourthToolList/lineSearch.png"
  1418. alt
  1419. />
  1420. <div style="margin: 5px 0">路径搜索</div>
  1421. </div>
  1422. <div v-if="tooC == 60">
  1423. <img
  1424. @click="addTools(tooC, toolIndex, taskCount)"
  1425. src="../../assets/icon/fourthToolList/deepLearning.png"
  1426. alt
  1427. />
  1428. <div style="margin: 5px 0">深度学习</div>
  1429. </div>
  1430. <div v-if="tooC == 61">
  1431. <img
  1432. @click="addTools(tooC, toolIndex, taskCount)"
  1433. src="../../assets/icon/fourthToolList/allHistory.png"
  1434. alt
  1435. />
  1436. <div style="margin: 5px 0">全历史</div>
  1437. </div>
  1438. <div v-if="tooC == 62">
  1439. <img
  1440. @click="addTools(tooC, toolIndex, taskCount)"
  1441. src="../../assets/icon/fourthToolList/interVideo.png"
  1442. alt
  1443. />
  1444. <div style="margin: 5px 0">交互视频</div>
  1445. </div>
  1446. <div v-if="tooC == 63">
  1447. <img
  1448. @click="addTools(tooC, toolIndex, taskCount)"
  1449. src="../../assets/icon/fourthToolList/Wood.png"
  1450. alt
  1451. />
  1452. <div style="margin: 5px 0">海龟编程</div>
  1453. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,63)"
  1454. style="position: absolute;right: 33px;top: -30px;">
  1455. 分析
  1456. </div>
  1457. </div>
  1458. <div v-if="tooC == 71">
  1459. <img
  1460. @click="addTools(tooC, toolIndex, taskCount)"
  1461. src="../../assets/icon/fourthToolList/chatgpt.png"
  1462. alt
  1463. />
  1464. <div style="margin: 5px 0">AI智能体</div>
  1465. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,71)"
  1466. style="position: absolute;right: 33px;top: -30px;">
  1467. 分析
  1468. </div>
  1469. </div>
  1470. <div v-if="tooC == 72">
  1471. <img
  1472. style="height: 85px;object-fit: cover;"
  1473. v-if="tool.appJson && tool.appJson.json && tool.appJson.json.icon"
  1474. @click="addTools(tooC, toolIndex, taskCount)"
  1475. :src="tool.appJson.json.icon"
  1476. alt
  1477. />
  1478. <img
  1479. v-else
  1480. @click="addTools(tooC, toolIndex, taskCount)"
  1481. src="../../assets/icon/firstToolList/appStore.png"
  1482. alt
  1483. />
  1484. <el-tooltip :content="tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'" placement="top" effect="dark">
  1485. <!-- content to trigger tooltip here -->
  1486. <div class="Ovh">
  1487. {{tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'}}
  1488. </div>
  1489. </el-tooltip>
  1490. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,72)"
  1491. style="position: absolute;right: 33px;top: -30px;">
  1492. 分析
  1493. </div>
  1494. </div>
  1495. <div v-if="tooC == 73">
  1496. <img
  1497. src="../../assets/icon/secondToolList/ppt.png"
  1498. alt
  1499. @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,73)"
  1500. />
  1501. <div style="margin: 5px 0">PPT</div>
  1502. </div>
  1503. <div v-if="tooC == 65">
  1504. <img
  1505. @click="addTools(tooC, toolIndex, taskCount)"
  1506. src="../../assets/icon/firstToolList/pickPeople.png"
  1507. alt
  1508. />
  1509. <div style="margin: 5px 0">挑人</div>
  1510. </div>
  1511. <div v-if="tooC == 66">
  1512. <img
  1513. @click="addTools(tooC, toolIndex, taskCount)"
  1514. src="../../assets/icon/secondToolList/formulaEdi.png"
  1515. alt
  1516. />
  1517. <div style="margin: 5px 0">公式编辑</div>
  1518. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,66)"
  1519. style="position: absolute;right: 33px;top: -30px;">
  1520. 分析
  1521. </div>
  1522. </div>
  1523. <div v-if="tooC == 67">
  1524. <img
  1525. @click="addTools(tooC, toolIndex, taskCount)"
  1526. src="../../assets/icon/secondToolList/molStr.png"
  1527. alt
  1528. />
  1529. <div style="margin: 5px 0">分子结构</div>
  1530. </div>
  1531. <div v-if="tooC == 68">
  1532. <img
  1533. @click="addTools(tooC, toolIndex, taskCount)"
  1534. src="../../assets/icon/secondToolList/timeAxis.png"
  1535. alt
  1536. />
  1537. <div style="margin: 5px 0">时间轴</div>
  1538. <!-- <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,68)"
  1539. style="position: absolute;right: 33px;top: -30px;">
  1540. 分析
  1541. </div> -->
  1542. </div>
  1543. <div v-if="tooC == 69">
  1544. <img
  1545. @click="addTools(tooC, toolIndex, taskCount)"
  1546. src="../../assets/icon/secondToolList/english.png"
  1547. alt
  1548. />
  1549. <div style="margin: 5px 0">英语写作</div>
  1550. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1551. style="position: absolute;right: 33px;top: -30px;">
  1552. 分析
  1553. </div>
  1554. </div>
  1555. <div v-if="tooC == 70">
  1556. <img
  1557. @click="addTools(tooC, toolIndex, taskCount)"
  1558. src="../../assets/icon/thirdToolList/englishVoice.png"
  1559. alt
  1560. />
  1561. <div style="margin: 5px 0">英语口语</div>
  1562. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1563. style="position: absolute;right: 33px;top: -30px;">
  1564. 分析
  1565. </div>
  1566. </div>
  1567. </div>
  1568. </div>
  1569. </div>
  1570. <div class="tooldetail renderedFor" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1571. <!-- <div class="toolTitle">工具描述</div> -->
  1572. <!-- @click.stop="updateToolDetail(toolIndex, 2)" 点击开启修改-->
  1573. <div style="height:100%;"
  1574. v-html="renderedFormula(tool.toolDetail)"
  1575. v-if="toolDetailIndex != toolIndex"
  1576. ></div>
  1577. <div v-else @click.stop="" style="height:100%;">
  1578. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1579. </div>
  1580. </div>
  1581. <el-button
  1582. type="primary"
  1583. v-if="tool.tool[0] == 32"
  1584. style="position: absolute; right: 30px; top: -45px"
  1585. @click="addImg($event)"
  1586. >上传作业<input
  1587. type="file"
  1588. accept="*"
  1589. style="display: none"
  1590. @change="beforeUpload1($event, 7, toolIndex)"
  1591. /></el-button>
  1592. <el-button
  1593. type="primary"
  1594. v-if="tool.tool[0] == 15"
  1595. style="position: absolute; right: 30px; top: -45px"
  1596. @click="openWordCloud(toolIndex)"
  1597. >生成词云</el-button
  1598. >
  1599. <el-button
  1600. type="primary"
  1601. v-if="
  1602. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0 && tType==1 && tType==1
  1603. "
  1604. style="position: absolute; right: 30px; top: -45px"
  1605. @click="uploadWorks(toolIndex)"
  1606. >导出作业</el-button
  1607. >
  1608. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1609. position: absolute;
  1610. right: 30px;
  1611. transform: translateY(-130%);
  1612. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1613. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1614. </div>
  1615. <div
  1616. v-if="
  1617. tType &&
  1618. tType == 2 &&
  1619. !sIsOpen &&
  1620. tool.tool.indexOf(16) != -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. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1630. </div>
  1631. <div
  1632. class="worksDetailBox"
  1633. v-if="workStudent[toolIndex].length > 0"
  1634. >
  1635. <div
  1636. class="works"
  1637. style="
  1638. width: 200px;
  1639. height: 140px;
  1640. margin: 10px 10px 10px 0;
  1641. box-shadow: 0 0 6px 1px #dfdada;
  1642. "
  1643. v-for="(w, wIndex) in workStudent[toolIndex]"
  1644. :key="wIndex"
  1645. >
  1646. <div class="workImg" v-if="w.type == 0">
  1647. <img
  1648. :src="w.works"
  1649. @click="previewImg(w.works,w)"
  1650. alt
  1651. />
  1652. <div
  1653. class="answerScore"
  1654. v-if="w.score"
  1655. @click.stop="openScore(w)"
  1656. :class="{
  1657. rightW:
  1658. w.userid == userid || tType == 1 || tType == 4,
  1659. }"
  1660. >
  1661. {{ JSON.parse(w.score).wScore }}分
  1662. </div>
  1663. <div
  1664. class="answerScore"
  1665. @click.stop="openScore(w)"
  1666. v-else-if="courseDetail.userid == userid"
  1667. :class="{
  1668. rightW:
  1669. w.userid == userid || tType == 1 || tType == 4,
  1670. }"
  1671. >
  1672. 评分
  1673. </div>
  1674. <img
  1675. class="deleteImg"
  1676. src="../../assets/deleteworks.png"
  1677. v-if="
  1678. w.userid == userid || tType == 1 || tType == 4
  1679. "
  1680. @click.stop="deleteWorks(w.wid)"
  1681. alt
  1682. />
  1683. </div>
  1684. <div class="workImg" v-if="w.type == 1">
  1685. <img :src="word" @click="openFile(w.works)" alt />
  1686. <div
  1687. class="answerScore"
  1688. v-if="w.score"
  1689. @click.stop="openScore(w)"
  1690. :class="{
  1691. rightW:
  1692. w.userid == userid || tType == 1 || tType == 4,
  1693. }"
  1694. >
  1695. {{ JSON.parse(w.score).wScore }}分
  1696. </div>
  1697. <div
  1698. class="answerScore"
  1699. @click.stop="openScore(w)"
  1700. v-else-if="courseDetail.userid == userid"
  1701. :class="{
  1702. rightW:
  1703. w.userid == userid || tType == 1 || tType == 4,
  1704. }"
  1705. >
  1706. 评分
  1707. </div>
  1708. <img
  1709. class="deleteImg"
  1710. src="../../assets/deleteworks.png"
  1711. v-if="
  1712. w.userid == userid || tType == 1 || tType == 4
  1713. "
  1714. @click.stop="deleteWorks(w.wid)"
  1715. alt
  1716. />
  1717. </div>
  1718. <div class="workImg" v-if="w.type == 3">
  1719. <img
  1720. style="cursor: pointer"
  1721. :src="video"
  1722. @click="openVideo(w)"
  1723. alt
  1724. />
  1725. <div
  1726. class="answerScore"
  1727. v-if="w.score"
  1728. @click.stop="openScore(w)"
  1729. :class="{
  1730. rightW:
  1731. w.userid == userid || tType == 1 || tType == 4,
  1732. }"
  1733. >
  1734. {{ JSON.parse(w.score).wScore }}分
  1735. </div>
  1736. <div
  1737. class="answerScore"
  1738. @click.stop="openScore(w)"
  1739. v-else-if="courseDetail.userid == userid"
  1740. :class="{
  1741. rightW:
  1742. w.userid == userid || tType == 1 || tType == 4,
  1743. }"
  1744. >
  1745. 评分
  1746. </div>
  1747. <img
  1748. class="deleteImg"
  1749. src="../../assets/deleteworks.png"
  1750. v-if="
  1751. w.userid == userid || tType == 1 || tType == 4
  1752. "
  1753. @click.stop="deleteWorks(w.wid)"
  1754. alt
  1755. />
  1756. </div>
  1757. <div class="workImg" v-if="w.type == 12">
  1758. <img
  1759. style="cursor: pointer"
  1760. :src="word2"
  1761. @click="downloadFile(w.works,w.userid)"
  1762. alt
  1763. />
  1764. <div
  1765. class="answerScore"
  1766. v-if="w.score"
  1767. @click.stop="openScore(w)"
  1768. :class="{
  1769. rightW:
  1770. w.userid == userid || tType == 1 || tType == 4,
  1771. }"
  1772. >
  1773. {{ JSON.parse(w.score).wScore }}分
  1774. </div>
  1775. <div
  1776. class="answerScore"
  1777. @click.stop="openScore(w)"
  1778. v-else-if="courseDetail.userid == userid"
  1779. :class="{
  1780. rightW:
  1781. w.userid == userid || tType == 1 || tType == 4,
  1782. }"
  1783. >
  1784. 评分
  1785. </div>
  1786. <img
  1787. class="deleteImg"
  1788. src="../../assets/deleteworks.png"
  1789. v-if="
  1790. w.userid == userid || tType == 1 || tType == 4
  1791. "
  1792. @click.stop="deleteWorks(w.wid)"
  1793. alt
  1794. />
  1795. </div>
  1796. <div class="worksName">
  1797. <div>{{ w.sName }}</div>
  1798. </div>
  1799. </div>
  1800. </div>
  1801. </div>
  1802. <div
  1803. v-if="
  1804. tType &&
  1805. tType == 2 &&
  1806. !sIsOpen &&
  1807. tool.tool.indexOf(32) != -1
  1808. "
  1809. class="worksBox"
  1810. >
  1811. <div
  1812. class="zuoyeYulan"
  1813. v-if="workStudent[toolIndex].length > 0"
  1814. >
  1815. <span class="worksTitle">作业预览</span>
  1816. </div>
  1817. <div
  1818. class="worksDetailBox"
  1819. v-if="workStudent[toolIndex].length > 0"
  1820. >
  1821. <div
  1822. class="works"
  1823. style="
  1824. width: 200px;
  1825. height: 140px;
  1826. margin: 10px 10px 10px 0;
  1827. box-shadow: 0 0 6px 1px #dfdada;
  1828. "
  1829. v-for="(w, wIndex) in workStudent[toolIndex]"
  1830. :key="wIndex"
  1831. >
  1832. <div class="workImg">
  1833. <img
  1834. :src="word2"
  1835. @click="downloadFile(w.works,w.userid)"
  1836. alt
  1837. />
  1838. <div
  1839. class="answerScore"
  1840. v-if="w.score"
  1841. @click.stop="openScore(w)"
  1842. :class="{
  1843. rightW:
  1844. w.userid == userid || tType == 1 || tType == 4,
  1845. }"
  1846. >
  1847. {{ JSON.parse(w.score).wScore }}分
  1848. </div>
  1849. <div
  1850. class="answerScore"
  1851. @click.stop="openScore(w)"
  1852. v-else-if="courseDetail.userid == userid"
  1853. :class="{
  1854. rightW:
  1855. w.userid == userid || tType == 1 || tType == 4,
  1856. }"
  1857. >
  1858. 评分
  1859. </div>
  1860. <img
  1861. class="deleteImg"
  1862. src="../../assets/deleteworks.png"
  1863. v-if="
  1864. w.userid == userid || tType == 1 || tType == 4
  1865. "
  1866. @click.stop="deleteWorks(w.wid)"
  1867. alt
  1868. />
  1869. </div>
  1870. <div class="worksName">
  1871. <div>{{ w.sName }}</div>
  1872. </div>
  1873. </div>
  1874. </div>
  1875. </div>
  1876. <div
  1877. v-if="
  1878. tType &&
  1879. tType == 2 &&
  1880. !sIsOpen &&
  1881. tool.tool.indexOf(57) != -1
  1882. "
  1883. class="worksBox"
  1884. >
  1885. <div
  1886. class="zuoyeYulan"
  1887. v-if="workStudent[toolIndex].length > 0"
  1888. >
  1889. <span class="worksTitle">作业预览</span>
  1890. </div>
  1891. <div
  1892. class="worksDetailBox"
  1893. v-if="workStudent[toolIndex].length > 0"
  1894. >
  1895. <div
  1896. class="works"
  1897. style="
  1898. width: 200px;
  1899. height: 140px;
  1900. margin: 10px 10px 10px 0;
  1901. box-shadow: 0 0 6px 1px #dfdada;
  1902. "
  1903. v-for="(w, wIndex) in workStudent[toolIndex]"
  1904. :key="wIndex"
  1905. >
  1906. <div class="workImg">
  1907. <img
  1908. :src="word2"
  1909. @click="downloadFile(w.works,w.userid)"
  1910. v-if="w.type == 12"
  1911. alt
  1912. />
  1913. <img
  1914. :src="word2"
  1915. @click="
  1916. openCocoPi(57, toolIndex, w.userid, w.sName)
  1917. "
  1918. v-else-if="w.type == 15"
  1919. alt
  1920. />
  1921. <div
  1922. class="answerScore"
  1923. v-if="w.score"
  1924. @click.stop="openScore(w)"
  1925. :class="{
  1926. rightW:
  1927. w.userid == userid || tType == 1 || tType == 4,
  1928. }"
  1929. >
  1930. {{ JSON.parse(w.score).wScore }}分
  1931. </div>
  1932. <div
  1933. class="answerScore"
  1934. @click.stop="openScore(w)"
  1935. v-else-if="courseDetail.userid == userid"
  1936. :class="{
  1937. rightW:
  1938. w.userid == userid || tType == 1 || tType == 4,
  1939. }"
  1940. >
  1941. 评分
  1942. </div>
  1943. <img
  1944. class="deleteImg"
  1945. src="../../assets/deleteworks.png"
  1946. v-if="
  1947. w.userid == userid || tType == 1 || tType == 4
  1948. "
  1949. @click.stop="deleteWorks(w.wid)"
  1950. alt
  1951. />
  1952. </div>
  1953. <div class="worksName">
  1954. <div>{{ w.sName }}</div>
  1955. </div>
  1956. </div>
  1957. </div>
  1958. </div>
  1959. <div
  1960. v-if="
  1961. tType &&
  1962. tType == 2 &&
  1963. !sIsOpen &&
  1964. tool.tool.indexOf(4) != -1
  1965. "
  1966. class="worksBox"
  1967. >
  1968. <div
  1969. class="zuoyeYulan"
  1970. v-if="workStudent[toolIndex].length > 0"
  1971. >
  1972. <span class="worksTitle">作业预览</span>
  1973. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1974. </div>
  1975. <div
  1976. class="worksDetailBox"
  1977. v-if="workStudent[toolIndex].length > 0"
  1978. >
  1979. <div
  1980. class="isWorksName2"
  1981. v-for="(w, wIndex) in workStudent[toolIndex]"
  1982. :key="wIndex"
  1983. @click="
  1984. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1985. "
  1986. >
  1987. {{ w.sName }}
  1988. <img
  1989. class="deleteImg deleteImg2"
  1990. src="../../assets/deleteworks.png"
  1991. v-if="w.userid == userid || tType == 1 || tType == 4"
  1992. @click.stop="deleteWorks(w.wid)"
  1993. alt
  1994. />
  1995. </div>
  1996. <!-- <div
  1997. class="works"
  1998. style="
  1999. width: 200px;
  2000. height: 140px;
  2001. border-radius: 10px;
  2002. box-shadow: 0 0 6px 1px #dfdada;
  2003. overflow: hidden;
  2004. "
  2005. v-for="(w, wIndex) in workStudent[toolIndex]"
  2006. :key="wIndex"
  2007. >
  2008. <div class="workImg">
  2009. <img
  2010. src="../../assets/icon/works/noImg.png"
  2011. @click="
  2012. openTools(
  2013. 4,
  2014. toolIndex,
  2015. taskCount,
  2016. w.works,
  2017. w.sName
  2018. )
  2019. "
  2020. alt
  2021. />
  2022. </div>
  2023. <div class="worksName">
  2024. <div>{{ w.sName }}</div>
  2025. <div>{{ w.time }}</div>
  2026. </div>
  2027. </div> -->
  2028. </div>
  2029. </div>
  2030. <div
  2031. v-if="
  2032. tType &&
  2033. ((tType == 2 && sIsOpen == true) ||
  2034. tType == 1 ||
  2035. tType == 4) &&
  2036. tool.tool.indexOf(62) != -1
  2037. "
  2038. class="worksBox"
  2039. >
  2040. <div
  2041. class="zuoyeYulan"
  2042. v-if="
  2043. worksStudent.length &&
  2044. worksStudent[toolIndex].length > 0
  2045. "
  2046. >
  2047. <div class="worksTop">
  2048. <div>作业预览</div>
  2049. <div
  2050. class="corOpen"
  2051. @click="contract(toolIndex)"
  2052. v-if="
  2053. (isCloseList[toolIndex].isCloseBoolean) &&
  2054. isCloseList[toolIndex].isClose == 0
  2055. "
  2056. >
  2057. 折叠
  2058. </div>
  2059. <div
  2060. class="corOpen"
  2061. @click="contract(toolIndex)"
  2062. v-if="isCloseList[toolIndex].isClose == 1"
  2063. >
  2064. 展开
  2065. </div>
  2066. </div>
  2067. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2068. </div>
  2069. <div>
  2070. <div
  2071. :id="'tool-' + toolIndex"
  2072. :style="{
  2073. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2074. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2075. }"
  2076. class="worksDetailBox"
  2077. v-if="
  2078. worksStudent.length &&
  2079. worksStudent[toolIndex].length > 0
  2080. "
  2081. >
  2082. <div
  2083. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2084. :key="wIndex"
  2085. class="isWorksName2"
  2086. @click="
  2087. openTools(
  2088. 62,
  2089. toolIndex,
  2090. taskCount,
  2091. w.works,
  2092. w.sName
  2093. )
  2094. "
  2095. >
  2096. {{ w.sName }}
  2097. <img
  2098. class="deleteImg deleteImg2"
  2099. src="../../assets/deleteworks.png"
  2100. v-if="
  2101. w.userid == userid || tType == 1 || tType == 4
  2102. "
  2103. @click.stop="deleteWorks(w.wid)"
  2104. alt
  2105. />
  2106. </div>
  2107. </div>
  2108. </div>
  2109. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2110. 未提交
  2111. </div>
  2112. <div
  2113. class="noWorksS"
  2114. v-if="noWorksS && noWorksS[toolIndex].length"
  2115. >
  2116. <div
  2117. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2118. :key="sIndex"
  2119. class="noWorksName"
  2120. >
  2121. <el-tooltip effect="dark" :content="s.student" placement="top">
  2122. <span>{{ s.student }}</span>
  2123. </el-tooltip>
  2124. </div>
  2125. </div>
  2126. </div>
  2127. <div
  2128. v-if="
  2129. tType &&
  2130. tType == 2 &&
  2131. !sIsOpen &&
  2132. tool.tool.indexOf(62) != -1
  2133. "
  2134. class="worksBox"
  2135. >
  2136. <div
  2137. class="zuoyeYulan"
  2138. v-if="workStudent[toolIndex].length > 0"
  2139. >
  2140. <span class="worksTitle">作业预览</span>
  2141. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2142. </div>
  2143. <div
  2144. class="worksDetailBox"
  2145. v-if="workStudent[toolIndex].length > 0"
  2146. >
  2147. <div
  2148. class="isWorksName2"
  2149. v-for="(w, wIndex) in workStudent[toolIndex]"
  2150. :key="wIndex"
  2151. @click="
  2152. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2153. "
  2154. >
  2155. {{ w.sName }}
  2156. <img
  2157. class="deleteImg deleteImg2"
  2158. src="../../assets/deleteworks.png"
  2159. v-if="w.userid == userid || tType == 1 || tType == 4"
  2160. @click.stop="deleteWorks(w.wid)"
  2161. alt
  2162. />
  2163. </div>
  2164. </div>
  2165. </div>
  2166. <div
  2167. v-if="
  2168. tType &&
  2169. tType == 2 &&
  2170. !sIsOpen &&
  2171. tool.tool.indexOf(45) != -1
  2172. "
  2173. class="worksBox"
  2174. >
  2175. <div
  2176. class="zuoyeYulan"
  2177. v-if="workStudent[toolIndex].length > 0"
  2178. >
  2179. <span class="worksTitle">作业预览</span>
  2180. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2181. </div>
  2182. <div
  2183. class="worksDetailBox"
  2184. v-if="workStudent[toolIndex].length > 0"
  2185. >
  2186. <div
  2187. class="isWorksName2"
  2188. v-for="(w, wIndex) in workStudent[toolIndex]"
  2189. :key="wIndex"
  2190. @click="
  2191. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2192. "
  2193. >
  2194. {{ w.sName }}
  2195. <img
  2196. class="deleteImg deleteImg2"
  2197. src="../../assets/deleteworks.png"
  2198. v-if="w.userid == userid || tType == 1 || tType == 4"
  2199. @click.stop="deleteWorks(w.wid)"
  2200. alt
  2201. />
  2202. </div>
  2203. </div>
  2204. </div>
  2205. <div
  2206. v-if="
  2207. tType &&
  2208. tType == 2 &&
  2209. !sIsOpen &&
  2210. tool.tool.indexOf(69) != -1
  2211. "
  2212. class="worksBox"
  2213. >
  2214. <div
  2215. class="zuoyeYulan"
  2216. v-if="workStudent[toolIndex].length > 0"
  2217. >
  2218. <span class="worksTitle">作业预览</span>
  2219. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2220. </div>
  2221. <div
  2222. class="worksDetailBox"
  2223. v-if="workStudent[toolIndex].length > 0"
  2224. >
  2225. <div
  2226. class="isWorksName2"
  2227. v-for="(w, wIndex) in workStudent[toolIndex]"
  2228. :key="wIndex"
  2229. @click="
  2230. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2231. "
  2232. >
  2233. {{ w.sName }}
  2234. <img
  2235. class="deleteImg deleteImg2"
  2236. src="../../assets/deleteworks.png"
  2237. v-if="w.userid == userid || tType == 1 || tType == 4"
  2238. @click.stop="deleteWorks(w.wid)"
  2239. alt
  2240. />
  2241. </div>
  2242. </div>
  2243. </div>
  2244. <div
  2245. v-if="
  2246. tType &&
  2247. tType == 2 &&
  2248. !sIsOpen &&
  2249. tool.tool.indexOf(15) != -1
  2250. "
  2251. class="worksBox"
  2252. >
  2253. <div
  2254. class="zuoyeYulan"
  2255. v-if="workStudent[toolIndex].length > 0"
  2256. >
  2257. <span class="worksTitle">作业预览</span>
  2258. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2259. </div>
  2260. <div
  2261. class="worksDetailBox"
  2262. v-if="workStudent[toolIndex].length > 0"
  2263. >
  2264. <div
  2265. class="works"
  2266. v-for="(w, wIndex) in workStudent[toolIndex]"
  2267. :key="wIndex"
  2268. >
  2269. <div class="workImg">
  2270. <!-- <img
  2271. src="../../assets/icon/works/noImg.png"
  2272. @click="openTools(15, toolIndex, taskCount, w.works)"
  2273. alt=""
  2274. />-->
  2275. <div class="answerBg">
  2276. <!-- <div>{{ w.sName }}</div> -->
  2277. <el-tooltip
  2278. class="item"
  2279. effect="light"
  2280. :content="JSON.parse(w.works)[0].answer"
  2281. placement="top"
  2282. >
  2283. <div class="answerContent">
  2284. {{ JSON.parse(w.works)[0].answer }}
  2285. </div>
  2286. </el-tooltip>
  2287. <div
  2288. class="answerScore"
  2289. v-if="w.score"
  2290. @click.stop="openScore(w)"
  2291. :class="{
  2292. rightW:
  2293. w.userid == userid ||
  2294. tType == 1 ||
  2295. tType == 4,
  2296. }"
  2297. >
  2298. {{ JSON.parse(w.score).wScore }}分
  2299. </div>
  2300. <div
  2301. class="answerScore"
  2302. @click.stop="openScore(w)"
  2303. v-else-if="courseDetail.userid == userid"
  2304. :class="{
  2305. rightW:
  2306. w.userid == userid ||
  2307. tType == 1 ||
  2308. tType == 4,
  2309. }"
  2310. >
  2311. 评分
  2312. </div>
  2313. <img
  2314. class="deleteImg"
  2315. src="../../assets/deleteworks.png"
  2316. v-if="
  2317. w.userid == userid || tType == 1 || tType == 4
  2318. "
  2319. @click.stop="deleteWorks(w.wid)"
  2320. alt
  2321. />
  2322. </div>
  2323. <div class="comment">
  2324. <div class="worksName">
  2325. <div>{{ w.sName }}</div>
  2326. </div>
  2327. </div>
  2328. </div>
  2329. </div>
  2330. </div>
  2331. </div>
  2332. <div
  2333. v-if="
  2334. tType &&
  2335. tType == 2 &&
  2336. !sIsOpen &&
  2337. tool.tool.indexOf(1) != -1
  2338. "
  2339. class="worksBox"
  2340. >
  2341. <div
  2342. class="zuoyeYulan"
  2343. v-if="workStudent[toolIndex].length > 0"
  2344. >
  2345. <span class="worksTitle">作业预览</span>
  2346. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2347. </div>
  2348. <div
  2349. class="worksDetailBox"
  2350. v-if="workStudent[toolIndex].length > 0"
  2351. >
  2352. <div
  2353. class="works"
  2354. style="
  2355. width: 200px;
  2356. height: 140px;
  2357. margin: 10px 10px 10px 0;
  2358. box-shadow: 0 0 6px 1px #dfdada;
  2359. "
  2360. v-for="(w, wIndex) in workStudent[toolIndex]"
  2361. :key="wIndex"
  2362. >
  2363. <div class="workImg">
  2364. <img
  2365. :src="w.works"
  2366. @click="previewImg(w.works,w)"
  2367. alt
  2368. />
  2369. <div
  2370. class="answerScore"
  2371. v-if="w.score"
  2372. @click.stop="openScore(w)"
  2373. :class="{
  2374. rightW:
  2375. w.userid == userid || tType == 1 || tType == 4,
  2376. }"
  2377. >
  2378. {{ JSON.parse(w.score).wScore }}分
  2379. </div>
  2380. <div
  2381. class="answerScore"
  2382. @click.stop="openScore(w)"
  2383. v-else-if="courseDetail.userid == userid"
  2384. :class="{
  2385. rightW:
  2386. w.userid == userid || tType == 1 || tType == 4,
  2387. }"
  2388. >
  2389. 评分
  2390. </div>
  2391. <img
  2392. class="deleteImg"
  2393. src="../../assets/deleteworks.png"
  2394. v-if="
  2395. w.userid == userid || tType == 1 || tType == 4
  2396. "
  2397. @click.stop="deleteWorks(w.wid)"
  2398. alt
  2399. />
  2400. </div>
  2401. <div class="worksName">
  2402. <div>{{ w.sName }}</div>
  2403. </div>
  2404. </div>
  2405. </div>
  2406. </div>
  2407. <div
  2408. v-if="
  2409. tType &&
  2410. tType == 2 &&
  2411. !sIsOpen &&
  2412. tool.tool.indexOf(3) != -1
  2413. "
  2414. class="worksBox"
  2415. >
  2416. <div
  2417. class="zuoyeYulan"
  2418. v-if="workStudent[toolIndex].length > 0"
  2419. >
  2420. <span class="worksTitle">作业预览</span>
  2421. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2422. </div>
  2423. <div
  2424. class="worksDetailBox"
  2425. v-if="workStudent[toolIndex].length > 0"
  2426. >
  2427. <div
  2428. class="works"
  2429. style="
  2430. width: 200px;
  2431. height: 140px;
  2432. margin: 10px 10px 10px 0;
  2433. box-shadow: 0 0 6px 1px #dfdada;
  2434. "
  2435. v-for="(w, wIndex) in workStudent[toolIndex]"
  2436. :key="wIndex"
  2437. >
  2438. <div class="workImg">
  2439. <img
  2440. :src="w.works"
  2441. @click="previewImg(w.works,w)"
  2442. alt
  2443. />
  2444. <div
  2445. class="answerScore"
  2446. v-if="w.score"
  2447. @click.stop="openScore(w)"
  2448. :class="{
  2449. rightW:
  2450. w.userid == userid || tType == 1 || tType == 4,
  2451. }"
  2452. >
  2453. {{ JSON.parse(w.score).wScore }}分
  2454. </div>
  2455. <div
  2456. class="answerScore"
  2457. @click.stop="openScore(w)"
  2458. v-else-if="courseDetail.userid == userid"
  2459. :class="{
  2460. rightW:
  2461. w.userid == userid || tType == 1 || tType == 4,
  2462. }"
  2463. >
  2464. 评分
  2465. </div>
  2466. <img
  2467. class="deleteImg"
  2468. src="../../assets/deleteworks.png"
  2469. v-if="
  2470. w.userid == userid || tType == 1 || tType == 4
  2471. "
  2472. @click.stop="deleteWorks(w.wid)"
  2473. alt
  2474. />
  2475. </div>
  2476. <div class="worksName">
  2477. <div>{{ w.sName }}</div>
  2478. </div>
  2479. </div>
  2480. </div>
  2481. </div>
  2482. <div
  2483. v-if="
  2484. tType &&
  2485. tType == 2 &&
  2486. !sIsOpen &&
  2487. tool.tool.indexOf(6) != -1
  2488. "
  2489. class="worksBox"
  2490. >
  2491. <div
  2492. class="zuoyeYulan"
  2493. v-if="workStudent[toolIndex].length > 0"
  2494. >
  2495. <span class="worksTitle">作业预览</span>
  2496. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2497. </div>
  2498. <div
  2499. class="worksDetailBox"
  2500. v-if="workStudent[toolIndex].length > 0"
  2501. >
  2502. <div
  2503. class="works"
  2504. style="
  2505. width: 200px;
  2506. height: 140px;
  2507. margin: 10px 10px 10px 0;
  2508. box-shadow: 0 0 6px 1px #dfdada;
  2509. "
  2510. v-for="(w, wIndex) in workStudent[toolIndex]"
  2511. :key="wIndex"
  2512. >
  2513. <div class="workImg">
  2514. <img
  2515. :src="w.works"
  2516. @click="previewImg(w.works,w)"
  2517. alt
  2518. />
  2519. <div
  2520. class="answerScore"
  2521. v-if="w.score"
  2522. @click.stop="openScore(w)"
  2523. :class="{
  2524. rightW:
  2525. w.userid == userid || tType == 1 || tType == 4,
  2526. }"
  2527. >
  2528. {{ JSON.parse(w.score).wScore }}分
  2529. </div>
  2530. <div
  2531. class="answerScore"
  2532. @click.stop="openScore(w)"
  2533. v-else-if="courseDetail.userid == userid"
  2534. :class="{
  2535. rightW:
  2536. w.userid == userid || tType == 1 || tType == 4,
  2537. }"
  2538. >
  2539. 评分
  2540. </div>
  2541. <img
  2542. class="deleteImg"
  2543. src="../../assets/deleteworks.png"
  2544. v-if="
  2545. w.userid == userid || tType == 1 || tType == 4
  2546. "
  2547. @click.stop="deleteWorks(w.wid)"
  2548. alt
  2549. />
  2550. </div>
  2551. <div class="worksName">
  2552. <div>{{ w.sName }}</div>
  2553. </div>
  2554. </div>
  2555. </div>
  2556. </div>
  2557. <div
  2558. v-if="
  2559. tType &&
  2560. tType == 2 &&
  2561. !sIsOpen &&
  2562. tool.tool.indexOf(7) != -1
  2563. "
  2564. class="worksBox"
  2565. >
  2566. <div
  2567. class="zuoyeYulan"
  2568. v-if="workStudent[toolIndex].length > 0"
  2569. >
  2570. <span class="worksTitle">作业预览</span>
  2571. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2572. </div>
  2573. <div
  2574. class="worksDetailBox"
  2575. v-if="workStudent[toolIndex].length > 0"
  2576. >
  2577. <div
  2578. class="works"
  2579. style="
  2580. width: 200px;
  2581. height: 140px;
  2582. margin: 10px 10px 10px 0;
  2583. box-shadow: 0 0 6px 1px #dfdada;
  2584. "
  2585. v-for="(w, wIndex) in workStudent[toolIndex]"
  2586. :key="wIndex"
  2587. >
  2588. <div class="workImg">
  2589. <img
  2590. :src="w.works"
  2591. @click="previewImg(w.works,w)"
  2592. alt
  2593. />
  2594. <div
  2595. class="answerScore"
  2596. v-if="w.score"
  2597. @click.stop="openScore(w)"
  2598. :class="{
  2599. rightW:
  2600. w.userid == userid || tType == 1 || tType == 4,
  2601. }"
  2602. >
  2603. {{ JSON.parse(w.score).wScore }}分
  2604. </div>
  2605. <div
  2606. class="answerScore"
  2607. @click.stop="openScore(w)"
  2608. v-else-if="courseDetail.userid == userid"
  2609. :class="{
  2610. rightW:
  2611. w.userid == userid || tType == 1 || tType == 4,
  2612. }"
  2613. >
  2614. 评分
  2615. </div>
  2616. <img
  2617. class="deleteImg"
  2618. src="../../assets/deleteworks.png"
  2619. v-if="
  2620. w.userid == userid || tType == 1 || tType == 4
  2621. "
  2622. @click.stop="deleteWorks(w.wid)"
  2623. alt
  2624. />
  2625. </div>
  2626. <div class="worksName">
  2627. <div>{{ w.sName }}</div>
  2628. </div>
  2629. </div>
  2630. </div>
  2631. </div>
  2632. <div
  2633. v-if="
  2634. tType &&
  2635. tType == 2 &&
  2636. !sIsOpen &&
  2637. tool.tool.indexOf(26) != -1
  2638. "
  2639. class="worksBox"
  2640. >
  2641. <div
  2642. class="zuoyeYulan"
  2643. v-if="workStudent[toolIndex].length > 0"
  2644. >
  2645. <span class="worksTitle">作业预览</span>
  2646. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2647. </div>
  2648. <div
  2649. class="worksDetailBox"
  2650. v-if="workStudent[toolIndex].length > 0"
  2651. >
  2652. <div
  2653. class="works"
  2654. style="
  2655. width: 200px;
  2656. height: 140px;
  2657. margin: 10px 10px 10px 0;
  2658. box-shadow: 0 0 6px 1px #dfdada;
  2659. "
  2660. v-for="(w, wIndex) in workStudent[toolIndex]"
  2661. :key="wIndex"
  2662. >
  2663. <div class="workImg">
  2664. <img
  2665. :src="w.works"
  2666. @click="previewImg(w.works,w)"
  2667. alt
  2668. />
  2669. <img
  2670. class="deleteImg"
  2671. src="../../assets/deleteworks.png"
  2672. v-if="
  2673. w.userid == userid || tType == 1 || tType == 4
  2674. "
  2675. @click.stop="deleteWorks(w.wid)"
  2676. alt
  2677. />
  2678. </div>
  2679. <div class="worksName">
  2680. <div>{{ w.sName }}</div>
  2681. </div>
  2682. </div>
  2683. </div>
  2684. </div>
  2685. <div
  2686. v-if="
  2687. tType &&
  2688. ((tType == 2 && sIsOpen == true) ||
  2689. tType == 1 ||
  2690. tType == 4) &&
  2691. tool.tool.indexOf(16) != -1
  2692. "
  2693. class="worksBox"
  2694. >
  2695. <div
  2696. class="zuoyeYulan"
  2697. v-if="
  2698. (worksStudent.length &&
  2699. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2700. "
  2701. >
  2702. <div class="worksTop">
  2703. <div>作业预览</div>
  2704. <div
  2705. class="corOpen"
  2706. @click="contract(toolIndex)"
  2707. v-if="
  2708. (isCloseList[toolIndex].isCloseBoolean) &&
  2709. isCloseList[toolIndex].isClose == 0
  2710. "
  2711. >
  2712. 折叠
  2713. </div>
  2714. <div
  2715. class="corOpen"
  2716. @click="contract(toolIndex)"
  2717. v-if="isCloseList[toolIndex].isClose == 1"
  2718. >
  2719. 展开
  2720. </div>
  2721. </div>
  2722. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2723. </div>
  2724. <div
  2725. class="group_workBox"
  2726. v-for="(g, gindex) in courseGroup.group"
  2727. :key="gindex"
  2728. >
  2729. <div class="group_box">
  2730. <div class="group_title">
  2731. <el-tooltip
  2732. class="item"
  2733. effect="light"
  2734. :content="g.name"
  2735. placement="top"
  2736. >
  2737. <div class="group_name">{{ g.name }}</div>
  2738. </el-tooltip>
  2739. </div>
  2740. <div
  2741. class="group_work"
  2742. v-if="
  2743. g.works &&
  2744. g.works.length &&
  2745. g.works[toolIndex].length
  2746. "
  2747. >
  2748. <div
  2749. class="works"
  2750. style="
  2751. width: 200px;
  2752. height: 140px;
  2753. margin: 10px 10px 10px 0;
  2754. border-radius: 15px;
  2755. box-shadow: 0 0 6px 1px #dfdada;
  2756. "
  2757. v-for="(w, wIndex) in g.works[toolIndex]"
  2758. :key="wIndex"
  2759. :class="w.type == 1 ? 'isTypeOne' : ''"
  2760. >
  2761. <div class="workImg" v-if="w.type == 0">
  2762. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2763. <img
  2764. :src="w.works"
  2765. @click="previewImg(w.works,w)"
  2766. alt
  2767. />
  2768. <div
  2769. class="answerScore"
  2770. v-if="w.score"
  2771. @click.stop="openScore(w)"
  2772. :class="{
  2773. rightW:
  2774. w.userid == userid ||
  2775. tType == 1 ||
  2776. tType == 4 ||
  2777. w.ateacher == userid,
  2778. }"
  2779. >
  2780. {{ JSON.parse(w.score).wScore }}分
  2781. </div>
  2782. <div
  2783. class="answerScore"
  2784. @click.stop="openScore(w)"
  2785. v-else-if="courseDetail.userid == userid"
  2786. :class="{
  2787. rightW:
  2788. w.userid == userid ||
  2789. tType == 1 ||
  2790. tType == 4 ||
  2791. w.ateacher == userid,
  2792. }"
  2793. >
  2794. 评分
  2795. </div>
  2796. <img
  2797. class="deleteImg"
  2798. src="../../assets/deleteworks.png"
  2799. v-if="
  2800. w.userid == userid || tType == 1 || tType == 4
  2801. "
  2802. @click.stop="deleteWorks(w.wid)"
  2803. alt
  2804. />
  2805. </div>
  2806. <div class="workImg" v-if="w.type == 1">
  2807. <img :src="word" @click="openFile(w.works)" alt />
  2808. <!-- @click="openFile(w.works)" -->
  2809. <div
  2810. class="answerScore"
  2811. v-if="w.score"
  2812. @click.stop="openScore(w)"
  2813. :class="{
  2814. rightW:
  2815. w.userid == userid ||
  2816. tType == 1 ||
  2817. tType == 4 ||
  2818. w.ateacher == userid,
  2819. }"
  2820. >
  2821. {{ JSON.parse(w.score).wScore }}分
  2822. </div>
  2823. <div
  2824. class="answerScore"
  2825. @click.stop="openScore(w)"
  2826. v-else-if="courseDetail.userid == userid"
  2827. :class="{
  2828. rightW:
  2829. w.userid == userid ||
  2830. tType == 1 ||
  2831. tType == 4 ||
  2832. w.ateacher == userid,
  2833. }"
  2834. >
  2835. 评分
  2836. </div>
  2837. <img
  2838. class="deleteImg"
  2839. src="../../assets/deleteworks.png"
  2840. v-if="
  2841. w.userid == userid || tType == 1 || tType == 4
  2842. "
  2843. @click.stop="deleteWorks(w.wid)"
  2844. alt
  2845. />
  2846. </div>
  2847. <div class="workImg" v-if="w.type == 3">
  2848. <img
  2849. style="cursor: pointer"
  2850. :src="video"
  2851. @click="openVideo(w)"
  2852. alt
  2853. />
  2854. <!-- @click="openVideo(w.works)" -->
  2855. <div
  2856. class="answerScore"
  2857. v-if="w.score"
  2858. @click.stop="openScore(w)"
  2859. :class="{
  2860. rightW:
  2861. w.userid == userid ||
  2862. tType == 1 ||
  2863. tType == 4 ||
  2864. w.ateacher == userid,
  2865. }"
  2866. >
  2867. {{ JSON.parse(w.score).wScore }}分
  2868. </div>
  2869. <div
  2870. class="answerScore"
  2871. @click.stop="openScore(w)"
  2872. v-else-if="courseDetail.userid == userid"
  2873. :class="{
  2874. rightW:
  2875. w.userid == userid ||
  2876. tType == 1 ||
  2877. tType == 4 ||
  2878. w.ateacher == userid,
  2879. }"
  2880. >
  2881. 评分
  2882. </div>
  2883. <img
  2884. class="deleteImg"
  2885. src="../../assets/deleteworks.png"
  2886. v-if="
  2887. w.userid == userid || tType == 1 || tType == 4
  2888. "
  2889. @click.stop="deleteWorks(w.wid)"
  2890. alt
  2891. />
  2892. </div>
  2893. <div class="workImg" v-if="w.type == 12">
  2894. <img
  2895. style="cursor: pointer"
  2896. :src="word2"
  2897. @click="downloadFile(w.works,w.userid)"
  2898. alt
  2899. />
  2900. <!-- @click="openVideo(w.works)" -->
  2901. <div
  2902. class="answerScore"
  2903. v-if="w.score"
  2904. @click.stop="openScore(w)"
  2905. :class="{
  2906. rightW:
  2907. w.userid == userid ||
  2908. tType == 1 ||
  2909. tType == 4 ||
  2910. w.ateacher == userid,
  2911. }"
  2912. >
  2913. {{ JSON.parse(w.score).wScore }}分
  2914. </div>
  2915. <div
  2916. class="answerScore"
  2917. @click.stop="openScore(w)"
  2918. v-else-if="courseDetail.userid == userid"
  2919. :class="{
  2920. rightW:
  2921. w.userid == userid ||
  2922. tType == 1 ||
  2923. tType == 4 ||
  2924. w.ateacher == userid,
  2925. }"
  2926. >
  2927. 评分
  2928. </div>
  2929. <img
  2930. class="deleteImg"
  2931. src="../../assets/deleteworks.png"
  2932. v-if="
  2933. w.userid == userid || tType == 1 || tType == 4
  2934. "
  2935. @click.stop="deleteWorks(w.wid)"
  2936. alt
  2937. />
  2938. </div>
  2939. <div class="comment" style="min-width: 200px">
  2940. <div class="worksName">
  2941. <div>{{ w.sName }}</div>
  2942. </div>
  2943. <div class="commentList">
  2944. <div class="commentList">
  2945. <div
  2946. class="commentImg"
  2947. @click="
  2948. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2949. "
  2950. >
  2951. <img
  2952. :src="w.isLikes == true ? likes : noLikes"
  2953. alt=""
  2954. />
  2955. </div>
  2956. <div>{{ w.likesCount }}</div>
  2957. </div>
  2958. <div
  2959. class="commentList"
  2960. style="margin-right: 15px"
  2961. >
  2962. <div
  2963. class="commentImg"
  2964. @click="
  2965. commentOther(
  2966. w,
  2967. toolIndex,
  2968. wIndex,
  2969. null,
  2970. g.id
  2971. )
  2972. "
  2973. >
  2974. <img
  2975. src="../../assets/icon/comment/comment.png"
  2976. alt=""
  2977. />
  2978. </div>
  2979. <div>{{ w.commentCount }}</div>
  2980. </div>
  2981. </div>
  2982. </div>
  2983. </div>
  2984. </div>
  2985. <div class="group_work" v-else>暂无提交作业</div>
  2986. </div>
  2987. </div>
  2988. <div
  2989. :id="'tool-' + toolIndex"
  2990. :style="{
  2991. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2992. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2993. }"
  2994. class="worksDetailBox"
  2995. v-if="
  2996. worksStudent.length &&
  2997. worksStudent[toolIndex].length > 0
  2998. "
  2999. >
  3000. <div
  3001. class="works"
  3002. style="
  3003. width: 200px;
  3004. height: 140px;
  3005. margin: 10px 10px 10px 0;
  3006. border-radius: 15px;
  3007. box-shadow: 0 0 6px 1px #dfdada;
  3008. "
  3009. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3010. :key="wIndex"
  3011. :class="w.type == 1 ? 'isTypeOne' : ''"
  3012. >
  3013. <div class="workImg" v-if="w.type == 0">
  3014. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3015. <img
  3016. :src="w.works"
  3017. @click="previewImg(w.works,w)"
  3018. alt
  3019. />
  3020. <div
  3021. class="answerScore"
  3022. v-if="w.score"
  3023. @click.stop="openScore(w)"
  3024. :class="{
  3025. rightW:
  3026. w.userid == userid ||
  3027. tType == 1 ||
  3028. tType == 4 ||
  3029. w.ateacher == userid,
  3030. }"
  3031. >
  3032. {{ JSON.parse(w.score).wScore }}分
  3033. </div>
  3034. <div
  3035. class="answerScore"
  3036. @click.stop="openScore(w)"
  3037. v-else-if="courseDetail.userid == userid"
  3038. :class="{
  3039. rightW:
  3040. w.userid == userid ||
  3041. tType == 1 ||
  3042. tType == 4 ||
  3043. w.ateacher == userid,
  3044. }"
  3045. >
  3046. 评分
  3047. </div>
  3048. <img
  3049. class="deleteImg"
  3050. src="../../assets/deleteworks.png"
  3051. v-if="
  3052. w.userid == userid || tType == 1 || tType == 4
  3053. "
  3054. @click.stop="deleteWorks(w.wid)"
  3055. alt
  3056. />
  3057. </div>
  3058. <div class="workImg" v-if="w.type == 1">
  3059. <img :src="word" @click="openFile(w.works)" alt />
  3060. <!-- @click="openFile(w.works)" -->
  3061. <div
  3062. class="answerScore"
  3063. v-if="w.score"
  3064. @click.stop="openScore(w)"
  3065. :class="{
  3066. rightW:
  3067. w.userid == userid ||
  3068. tType == 1 ||
  3069. tType == 4 ||
  3070. w.ateacher == userid,
  3071. }"
  3072. >
  3073. {{ JSON.parse(w.score).wScore }}分
  3074. </div>
  3075. <div
  3076. class="answerScore"
  3077. @click.stop="openScore(w)"
  3078. v-else-if="courseDetail.userid == userid"
  3079. :class="{
  3080. rightW:
  3081. w.userid == userid ||
  3082. tType == 1 ||
  3083. tType == 4 ||
  3084. w.ateacher == userid,
  3085. }"
  3086. >
  3087. 评分
  3088. </div>
  3089. <img
  3090. class="deleteImg"
  3091. src="../../assets/deleteworks.png"
  3092. v-if="
  3093. w.userid == userid || tType == 1 || tType == 4
  3094. "
  3095. @click.stop="deleteWorks(w.wid)"
  3096. alt
  3097. />
  3098. </div>
  3099. <div class="workImg" v-if="w.type == 3">
  3100. <img
  3101. style="cursor: pointer"
  3102. :src="video"
  3103. @click="openVideo(w)"
  3104. alt
  3105. />
  3106. <!-- @click="openVideo(w.works)" -->
  3107. <div
  3108. class="answerScore"
  3109. v-if="w.score"
  3110. @click.stop="openScore(w)"
  3111. :class="{
  3112. rightW:
  3113. w.userid == userid ||
  3114. tType == 1 ||
  3115. tType == 4 ||
  3116. w.ateacher == userid,
  3117. }"
  3118. >
  3119. {{ JSON.parse(w.score).wScore }}分
  3120. </div>
  3121. <div
  3122. class="answerScore"
  3123. @click.stop="openScore(w)"
  3124. v-else-if="courseDetail.userid == userid"
  3125. :class="{
  3126. rightW:
  3127. w.userid == userid ||
  3128. tType == 1 ||
  3129. tType == 4 ||
  3130. w.ateacher == userid,
  3131. }"
  3132. >
  3133. 评分
  3134. </div>
  3135. <img
  3136. class="deleteImg"
  3137. src="../../assets/deleteworks.png"
  3138. v-if="
  3139. w.userid == userid || tType == 1 || tType == 4
  3140. "
  3141. @click.stop="deleteWorks(w.wid)"
  3142. alt
  3143. />
  3144. </div>
  3145. <div class="workImg" v-if="w.type == 12">
  3146. <img
  3147. style="cursor: pointer"
  3148. :src="word2"
  3149. @click="downloadFile(w.works,w.userid)"
  3150. alt
  3151. />
  3152. <!-- @click="openVideo(w.works)" -->
  3153. <div
  3154. class="answerScore"
  3155. v-if="w.score"
  3156. @click.stop="openScore(w)"
  3157. :class="{
  3158. rightW:
  3159. w.userid == userid ||
  3160. tType == 1 ||
  3161. tType == 4 ||
  3162. w.ateacher == userid,
  3163. }"
  3164. >
  3165. {{ JSON.parse(w.score).wScore }}分
  3166. </div>
  3167. <div
  3168. class="answerScore"
  3169. @click.stop="openScore(w)"
  3170. v-else-if="courseDetail.userid == userid"
  3171. :class="{
  3172. rightW:
  3173. w.userid == userid ||
  3174. tType == 1 ||
  3175. tType == 4 ||
  3176. w.ateacher == userid,
  3177. }"
  3178. >
  3179. 评分
  3180. </div>
  3181. <img
  3182. class="deleteImg"
  3183. src="../../assets/deleteworks.png"
  3184. v-if="
  3185. w.userid == userid || tType == 1 || tType == 4
  3186. "
  3187. @click.stop="deleteWorks(w.wid)"
  3188. alt
  3189. />
  3190. </div>
  3191. <div class="comment" style="min-width: 200px">
  3192. <div class="worksName">
  3193. <div>{{ w.sName }}</div>
  3194. </div>
  3195. <div class="commentList">
  3196. <div class="commentList">
  3197. <div
  3198. class="commentImg"
  3199. @click="
  3200. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3201. "
  3202. >
  3203. <img
  3204. :src="w.isLikes == true ? likes : noLikes"
  3205. alt=""
  3206. />
  3207. </div>
  3208. <div>{{ w.likesCount }}</div>
  3209. </div>
  3210. <div class="commentList" style="margin-right: 15px">
  3211. <div
  3212. class="commentImg"
  3213. @click="commentOther(w, toolIndex, wIndex)"
  3214. >
  3215. <img
  3216. src="../../assets/icon/comment/comment.png"
  3217. alt=""
  3218. />
  3219. </div>
  3220. <div>{{ w.commentCount }}</div>
  3221. </div>
  3222. </div>
  3223. </div>
  3224. </div>
  3225. </div>
  3226. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3227. 未提交
  3228. </div>
  3229. <div
  3230. class="noWorksS"
  3231. v-if="noWorksS && noWorksS[toolIndex].length"
  3232. >
  3233. <div
  3234. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3235. :key="sIndex"
  3236. class="noWorksName"
  3237. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3238. >
  3239. <el-tooltip effect="dark" :content="s.student" placement="top">
  3240. <span>{{ s.student }}</span>
  3241. </el-tooltip>
  3242. </div>
  3243. </div>
  3244. </div>
  3245. <div
  3246. v-if="
  3247. tType &&
  3248. ((tType == 2 && sIsOpen == true) ||
  3249. tType == 1 ||
  3250. tType == 4) &&
  3251. tool.tool.indexOf(70) != -1
  3252. "
  3253. class="worksBox"
  3254. >
  3255. <div
  3256. class="zuoyeYulan"
  3257. v-if="
  3258. (worksStudent.length &&
  3259. worksStudent[toolIndex].length > 0)
  3260. "
  3261. >
  3262. <div class="worksTop">
  3263. <div>作业预览</div>
  3264. <div
  3265. class="corOpen"
  3266. @click="contract(toolIndex)"
  3267. v-if="
  3268. (isCloseList[toolIndex].isCloseBoolean) &&
  3269. isCloseList[toolIndex].isClose == 0
  3270. "
  3271. >
  3272. 折叠
  3273. </div>
  3274. <div
  3275. class="corOpen"
  3276. @click="contract(toolIndex)"
  3277. v-if="isCloseList[toolIndex].isClose == 1"
  3278. >
  3279. 展开
  3280. </div>
  3281. </div>
  3282. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3283. </div>
  3284. <div
  3285. :id="'tool-' + toolIndex"
  3286. :style="{
  3287. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3288. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3289. }"
  3290. class="worksDetailBox"
  3291. v-if="
  3292. worksStudent.length &&
  3293. worksStudent[toolIndex].length > 0
  3294. "
  3295. >
  3296. <div
  3297. class="works"
  3298. style="
  3299. width: 200px;
  3300. height: 140px;
  3301. margin: 10px 10px 10px 0;
  3302. border-radius: 15px;
  3303. box-shadow: 0 0 6px 1px #dfdada;
  3304. "
  3305. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3306. :key="wIndex"
  3307. :class="w.type == 1 ? 'isTypeOne' : ''"
  3308. >
  3309. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3310. <img :src="word" alt />
  3311. <img
  3312. class="deleteImg"
  3313. src="../../assets/deleteworks.png"
  3314. v-if="
  3315. w.userid == userid || tType == 1 || tType == 4
  3316. "
  3317. @click.stop="deleteWorks(w.wid)"
  3318. alt
  3319. />
  3320. </div>
  3321. <div class="comment" style="min-width: 200px">
  3322. <div class="worksName">
  3323. <div>{{ w.sName }}</div>
  3324. </div>
  3325. </div>
  3326. </div>
  3327. </div>
  3328. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3329. 未提交
  3330. </div>
  3331. <div
  3332. class="noWorksS"
  3333. v-if="noWorksS && noWorksS[toolIndex].length"
  3334. >
  3335. <div
  3336. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3337. :key="sIndex"
  3338. class="noWorksName"
  3339. >
  3340. <el-tooltip effect="dark" :content="s.student" placement="top">
  3341. <span>{{ s.student }}</span>
  3342. </el-tooltip>
  3343. </div>
  3344. </div>
  3345. </div>
  3346. <div
  3347. v-if="
  3348. tType &&
  3349. tType == 2 &&
  3350. !sIsOpen &&
  3351. tool.tool.indexOf(70) != -1
  3352. "
  3353. class="worksBox"
  3354. >
  3355. <div
  3356. class="zuoyeYulan"
  3357. v-if="workStudent[toolIndex].length > 0"
  3358. >
  3359. <span class="worksTitle">作业预览</span>
  3360. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3361. </div>
  3362. <div
  3363. class="worksDetailBox"
  3364. v-if="workStudent[toolIndex].length > 0"
  3365. >
  3366. <div
  3367. class="works"
  3368. style="
  3369. width: 200px;
  3370. height: 140px;
  3371. margin: 10px 10px 10px 0;
  3372. box-shadow: 0 0 6px 1px #dfdada;
  3373. "
  3374. v-for="(w, wIndex) in workStudent[toolIndex]"
  3375. :key="wIndex"
  3376. >
  3377. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3378. <img :src="word" alt />
  3379. <img
  3380. class="deleteImg"
  3381. src="../../assets/deleteworks.png"
  3382. v-if="
  3383. w.userid == userid || tType == 1 || tType == 4
  3384. "
  3385. @click.stop="deleteWorks(w.wid)"
  3386. alt
  3387. />
  3388. </div>
  3389. <div class="worksName">
  3390. <div>{{ w.sName }}</div>
  3391. </div>
  3392. </div>
  3393. </div>
  3394. </div>
  3395. <div
  3396. v-if="
  3397. tType &&
  3398. ((tType == 2 && sIsOpen == true) ||
  3399. tType == 1 ||
  3400. tType == 4) &&
  3401. tool.tool.indexOf(32) != -1
  3402. "
  3403. class="worksBox"
  3404. >
  3405. <div
  3406. class="zuoyeYulan"
  3407. v-if="
  3408. worksStudent.length &&
  3409. worksStudent[toolIndex].length > 0
  3410. "
  3411. >
  3412. <div class="worksTop">
  3413. <div>作业预览</div>
  3414. <div
  3415. class="corOpen"
  3416. @click="contract(toolIndex)"
  3417. v-if="
  3418. (isCloseList[toolIndex].isCloseBoolean) &&
  3419. isCloseList[toolIndex].isClose == 0
  3420. "
  3421. >
  3422. 折叠
  3423. </div>
  3424. <div
  3425. class="corOpen"
  3426. @click="contract(toolIndex)"
  3427. v-if="isCloseList[toolIndex].isClose == 1"
  3428. >
  3429. 展开
  3430. </div>
  3431. </div>
  3432. </div>
  3433. <div
  3434. :id="'tool-' + toolIndex"
  3435. :style="{
  3436. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3437. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3438. }"
  3439. class="worksDetailBox"
  3440. v-if="
  3441. worksStudent.length &&
  3442. worksStudent[toolIndex].length > 0
  3443. "
  3444. >
  3445. <div
  3446. class="works"
  3447. style="
  3448. width: 200px;
  3449. height: 140px;
  3450. margin: 10px 10px 10px 0;
  3451. border-radius: 15px;
  3452. box-shadow: 0 0 6px 1px #dfdada;
  3453. "
  3454. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3455. :key="wIndex"
  3456. :class="w.type == 1 ? 'isTypeOne' : ''"
  3457. >
  3458. <div class="workImg">
  3459. <img
  3460. :src="word2"
  3461. @click="downloadFile(w.works,w.userid)"
  3462. alt
  3463. />
  3464. <div
  3465. class="answerScore"
  3466. v-if="w.score"
  3467. @click.stop="openScore(w)"
  3468. :class="{
  3469. rightW:
  3470. w.userid == userid ||
  3471. tType == 1 ||
  3472. tType == 4 ||
  3473. w.ateacher == userid,
  3474. }"
  3475. >
  3476. {{ JSON.parse(w.score).wScore }}分
  3477. </div>
  3478. <div
  3479. class="answerScore"
  3480. @click.stop="openScore(w)"
  3481. v-else-if="courseDetail.userid == userid"
  3482. :class="{
  3483. rightW:
  3484. w.userid == userid ||
  3485. tType == 1 ||
  3486. tType == 4 ||
  3487. w.ateacher == userid,
  3488. }"
  3489. >
  3490. 评分
  3491. </div>
  3492. <img
  3493. class="deleteImg"
  3494. src="../../assets/deleteworks.png"
  3495. v-if="
  3496. w.userid == userid || tType == 1 || tType == 4
  3497. "
  3498. @click.stop="deleteWorks(w.wid)"
  3499. alt
  3500. />
  3501. </div>
  3502. <div class="comment" style="min-width: 200px">
  3503. <div class="worksName">
  3504. <div>{{ w.sName }}</div>
  3505. </div>
  3506. <div class="commentList">
  3507. <div class="commentList">
  3508. <div
  3509. class="commentImg"
  3510. @click="
  3511. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3512. "
  3513. >
  3514. <img
  3515. :src="w.isLikes == true ? likes : noLikes"
  3516. alt=""
  3517. />
  3518. </div>
  3519. <div>{{ w.likesCount }}</div>
  3520. </div>
  3521. <div class="commentList" style="margin-right: 15px">
  3522. <div
  3523. class="commentImg"
  3524. @click="commentOther(w, toolIndex, wIndex)"
  3525. >
  3526. <img
  3527. src="../../assets/icon/comment/comment.png"
  3528. alt=""
  3529. />
  3530. </div>
  3531. <div>{{ w.commentCount }}</div>
  3532. </div>
  3533. </div>
  3534. </div>
  3535. </div>
  3536. </div>
  3537. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3538. 未提交
  3539. </div>
  3540. <div
  3541. class="noWorksS"
  3542. v-if="noWorksS && noWorksS[toolIndex].length"
  3543. >
  3544. <div
  3545. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3546. :key="sIndex"
  3547. class="noWorksName"
  3548. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3549. >
  3550. <el-tooltip effect="dark" :content="s.student" placement="top">
  3551. <span>{{ s.student }}</span>
  3552. </el-tooltip>
  3553. </div>
  3554. </div>
  3555. </div>
  3556. <div
  3557. v-if="
  3558. tType &&
  3559. ((tType == 2 && sIsOpen == true) ||
  3560. tType == 1 ||
  3561. tType == 4) &&
  3562. tool.tool.indexOf(57) != -1
  3563. "
  3564. class="worksBox"
  3565. >
  3566. <div
  3567. class="zuoyeYulan"
  3568. v-if="
  3569. worksStudent.length &&
  3570. worksStudent[toolIndex].length > 0
  3571. "
  3572. >
  3573. <div class="worksTop">
  3574. <div>作业预览</div>
  3575. <div
  3576. class="corOpen"
  3577. @click="contract(toolIndex)"
  3578. v-if="
  3579. (isCloseList[toolIndex].isCloseBoolean) &&
  3580. isCloseList[toolIndex].isClose == 0
  3581. "
  3582. >
  3583. 折叠
  3584. </div>
  3585. <div
  3586. class="corOpen"
  3587. @click="contract(toolIndex)"
  3588. v-if="isCloseList[toolIndex].isClose == 1"
  3589. >
  3590. 展开
  3591. </div>
  3592. </div>
  3593. </div>
  3594. <div
  3595. :id="'tool-' + toolIndex"
  3596. :style="{
  3597. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3598. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3599. }"
  3600. class="worksDetailBox"
  3601. v-if="
  3602. worksStudent.length &&
  3603. worksStudent[toolIndex].length > 0
  3604. "
  3605. >
  3606. <div
  3607. class="works"
  3608. style="
  3609. width: 200px;
  3610. height: 140px;
  3611. margin: 10px 10px 10px 0;
  3612. border-radius: 15px;
  3613. box-shadow: 0 0 6px 1px #dfdada;
  3614. "
  3615. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3616. :key="wIndex"
  3617. :class="w.type == 1 ? 'isTypeOne' : ''"
  3618. >
  3619. <div class="workImg">
  3620. <img
  3621. :src="word2"
  3622. @click="downloadFile(w.works,w.userid)"
  3623. v-if="w.type == 12"
  3624. alt
  3625. />
  3626. <img
  3627. :src="word2"
  3628. @click="
  3629. openCocoPi(57, toolIndex, w.userid, w.sName)
  3630. "
  3631. v-else-if="w.type == 15"
  3632. alt
  3633. />
  3634. <div
  3635. class="answerScore"
  3636. v-if="w.score"
  3637. @click.stop="openScore(w)"
  3638. :class="{
  3639. rightW:
  3640. w.userid == userid ||
  3641. tType == 1 ||
  3642. tType == 4 ||
  3643. w.ateacher == userid,
  3644. }"
  3645. >
  3646. {{ JSON.parse(w.score).wScore }}分
  3647. </div>
  3648. <div
  3649. class="answerScore"
  3650. @click.stop="openScore(w)"
  3651. v-else-if="courseDetail.userid == userid"
  3652. :class="{
  3653. rightW:
  3654. w.userid == userid ||
  3655. tType == 1 ||
  3656. tType == 4 ||
  3657. w.ateacher == userid,
  3658. }"
  3659. >
  3660. 评分
  3661. </div>
  3662. <img
  3663. class="deleteImg"
  3664. src="../../assets/deleteworks.png"
  3665. v-if="
  3666. w.userid == userid || tType == 1 || tType == 4
  3667. "
  3668. @click.stop="deleteWorks(w.wid)"
  3669. alt
  3670. />
  3671. </div>
  3672. <div class="comment" style="min-width: 200px">
  3673. <div class="worksName">
  3674. <div>{{ w.sName }}</div>
  3675. </div>
  3676. <div class="commentList">
  3677. <div class="commentList">
  3678. <div
  3679. class="commentImg"
  3680. @click="
  3681. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3682. "
  3683. >
  3684. <img
  3685. :src="w.isLikes == true ? likes : noLikes"
  3686. alt=""
  3687. />
  3688. </div>
  3689. <div>{{ w.likesCount }}</div>
  3690. </div>
  3691. <div class="commentList" style="margin-right: 15px">
  3692. <div
  3693. class="commentImg"
  3694. @click="commentOther(w, toolIndex, wIndex)"
  3695. >
  3696. <img
  3697. src="../../assets/icon/comment/comment.png"
  3698. alt=""
  3699. />
  3700. </div>
  3701. <div>{{ w.commentCount }}</div>
  3702. </div>
  3703. </div>
  3704. </div>
  3705. </div>
  3706. </div>
  3707. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3708. 未提交
  3709. </div>
  3710. <div
  3711. class="noWorksS"
  3712. v-if="noWorksS && noWorksS[toolIndex].length"
  3713. >
  3714. <div
  3715. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3716. :key="sIndex"
  3717. class="noWorksName"
  3718. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3719. >
  3720. <el-tooltip effect="dark" :content="s.student" placement="top">
  3721. <span>{{ s.student }}</span>
  3722. </el-tooltip>
  3723. </div>
  3724. </div>
  3725. </div>
  3726. <div
  3727. v-if="
  3728. tType &&
  3729. ((tType == 2 && sIsOpen == true) ||
  3730. tType == 1 ||
  3731. tType == 4) &&
  3732. tool.tool.indexOf(72) != -1
  3733. "
  3734. class="worksBox"
  3735. >
  3736. <div
  3737. class="zuoyeYulan"
  3738. v-if="
  3739. worksStudent.length &&
  3740. worksStudent[toolIndex].length > 0
  3741. "
  3742. >
  3743. <div class="worksTop">
  3744. <div>作业预览</div>
  3745. <div
  3746. class="corOpen"
  3747. @click="contract(toolIndex)"
  3748. v-if="
  3749. isCloseList[toolIndex].isCloseBoolean &&
  3750. isCloseList[toolIndex].isClose == 0
  3751. "
  3752. >
  3753. 折叠
  3754. </div>
  3755. <div
  3756. class="corOpen"
  3757. @click="contract(toolIndex)"
  3758. v-if="isCloseList[toolIndex].isClose == 1"
  3759. >
  3760. 展开
  3761. </div>
  3762. </div>
  3763. </div>
  3764. <div
  3765. :id="'tool-' + toolIndex"
  3766. :style="{
  3767. height:
  3768. isCloseList[toolIndex].isClose == 1
  3769. ? retrnToolHeight('tool-' + toolIndex)
  3770. : 'auto',
  3771. overflow:
  3772. isCloseList[toolIndex].isClose == 1
  3773. ? 'hidden'
  3774. : 'unset'
  3775. }"
  3776. class="worksDetailBox"
  3777. v-if="
  3778. worksStudent.length &&
  3779. worksStudent[toolIndex].length > 0
  3780. "
  3781. >
  3782. <div
  3783. class="works"
  3784. style="
  3785. width: 200px;
  3786. height: 140px;
  3787. margin: 10px 10px 10px 0;
  3788. border-radius: 15px;
  3789. box-shadow: 0 0 6px 1px #dfdada;
  3790. "
  3791. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3792. :key="wIndex"
  3793. :class="w.type == 1 ? 'isTypeOne' : ''"
  3794. >
  3795. <div class="workImg">
  3796. <!-- <img
  3797. :src="word2"
  3798. @click="downloadFile(w.works)"
  3799. v-if="w.type == 12"
  3800. alt
  3801. /> -->
  3802. <img
  3803. :src="word2"
  3804. @click="
  3805. openCocoFlow(w)
  3806. "
  3807. alt
  3808. />
  3809. <div
  3810. class="answerScore"
  3811. v-if="w.score"
  3812. @click.stop="openScore(w)"
  3813. :class="{
  3814. rightW:
  3815. w.userid == userid ||
  3816. tType == 1 ||
  3817. tType == 4 ||
  3818. w.ateacher == userid
  3819. }"
  3820. >
  3821. {{ JSON.parse(w.score).wScore }}分
  3822. </div>
  3823. <div
  3824. class="answerScore"
  3825. @click.stop="openScore(w)"
  3826. v-else-if="
  3827. courseDetail.userid == userid &&
  3828. courseDetail.state != 5 &&
  3829. chapInfoList[courseType].chapterInfo[0]
  3830. .taskJson[taskCount].eList &&
  3831. chapInfoList[courseType].chapterInfo[0]
  3832. .taskJson[taskCount].eList.length
  3833. "
  3834. :class="{
  3835. rightW:
  3836. w.userid == userid ||
  3837. tType == 1 ||
  3838. tType == 4 ||
  3839. w.ateacher == userid
  3840. }"
  3841. >
  3842. 评分
  3843. </div>
  3844. <img
  3845. class="deleteImg"
  3846. src="../../assets/deleteworks.png"
  3847. v-if="
  3848. w.userid == userid || tType == 1 || tType == 4
  3849. "
  3850. @click.stop="deleteWorks(w.wid)"
  3851. alt
  3852. />
  3853. </div>
  3854. <div class="comment" style="min-width: 200px">
  3855. <div class="worksName">
  3856. <div>{{ w.sName }}</div>
  3857. </div>
  3858. <div class="commentList">
  3859. <div class="commentList">
  3860. <div
  3861. class="commentImg"
  3862. @click="
  3863. isLikes(
  3864. w.wid,
  3865. userid,
  3866. 1,
  3867. null,
  3868. w.isLikes,
  3869. w.sName
  3870. )
  3871. "
  3872. >
  3873. <img
  3874. :src="w.isLikes == true ? likes : noLikes"
  3875. alt=""
  3876. />
  3877. </div>
  3878. <div>{{ w.likesCount }}</div>
  3879. </div>
  3880. <div class="commentList" style="margin-right: 15px">
  3881. <div
  3882. class="commentImg"
  3883. @click="commentOther(w, toolIndex, wIndex)"
  3884. >
  3885. <img
  3886. src="../../assets/icon/comment/comment.png"
  3887. alt=""
  3888. />
  3889. </div>
  3890. <div>{{ w.commentCount }}</div>
  3891. </div>
  3892. </div>
  3893. </div>
  3894. </div>
  3895. </div>
  3896. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3897. 未提交
  3898. </div>
  3899. <div
  3900. class="noWorksS"
  3901. v-if="noWorksS && noWorksS[toolIndex].length"
  3902. >
  3903. <div
  3904. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3905. :key="sIndex"
  3906. class="noWorksName2"
  3907. @click="teacherWorkSubmit(72, toolIndex, taskCount, s)"
  3908. >
  3909. <el-tooltip
  3910. effect="dark"
  3911. :content="s.student"
  3912. placement="top"
  3913. >
  3914. <span>{{ s.student }}</span>
  3915. </el-tooltip>
  3916. </div>
  3917. </div>
  3918. </div>
  3919. <div
  3920. v-if="
  3921. tType &&
  3922. tType == 2 &&
  3923. !sIsOpen &&
  3924. tool.tool.indexOf(72) != -1
  3925. "
  3926. class="worksBox"
  3927. >
  3928. <div
  3929. class="zuoyeYulan"
  3930. v-if="workStudent[toolIndex].length > 0"
  3931. >
  3932. <span class="worksTitle">作业预览</span>
  3933. </div>
  3934. <div
  3935. class="worksDetailBox"
  3936. v-if="workStudent[toolIndex].length > 0"
  3937. >
  3938. <div
  3939. class="works"
  3940. style="
  3941. width: 200px;
  3942. height: 140px;
  3943. margin: 10px 10px 10px 0;
  3944. box-shadow: 0 0 6px 1px #dfdada;
  3945. "
  3946. v-for="(w, wIndex) in workStudent[toolIndex]"
  3947. :key="wIndex"
  3948. >
  3949. <div class="workImg">
  3950. <!-- <img
  3951. :src="word2"
  3952. @click="downloadFile(w.works)"
  3953. v-if="w.type == 12"
  3954. alt
  3955. /> -->
  3956. <img
  3957. :src="word2"
  3958. @click="
  3959. openCocoFlow(w)
  3960. "
  3961. alt
  3962. />
  3963. <div
  3964. class="answerScore"
  3965. v-if="w.score"
  3966. @click.stop="openScore(w)"
  3967. :class="{
  3968. rightW:
  3969. w.userid == userid || tType == 1 || tType == 4
  3970. }"
  3971. >
  3972. {{ JSON.parse(w.score).wScore }}分
  3973. </div>
  3974. <div
  3975. class="answerScore"
  3976. @click.stop="openScore(w)"
  3977. v-else-if="courseDetail.userid == userid"
  3978. :class="{
  3979. rightW:
  3980. w.userid == userid || tType == 1 || tType == 4
  3981. }"
  3982. >
  3983. 评分
  3984. </div>
  3985. <img
  3986. class="deleteImg"
  3987. src="../../assets/deleteworks.png"
  3988. v-if="
  3989. w.userid == userid || tType == 1 || tType == 4
  3990. "
  3991. @click.stop="deleteWorks(w.wid)"
  3992. alt
  3993. />
  3994. </div>
  3995. <div class="worksName">
  3996. <div>{{ w.sName }}</div>
  3997. </div>
  3998. </div>
  3999. </div>
  4000. </div>
  4001. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  4002. <div
  4003. class="zuoyeYulan"
  4004. v-if="
  4005. worksStudent.length &&
  4006. worksStudent[toolIndex].length > 0
  4007. "
  4008. >
  4009. <span class="worksTitle">作业预览</span>
  4010. <div
  4011. class="corOpen"
  4012. @click="contract(toolIndex)"
  4013. v-if="
  4014. (isCloseList[toolIndex].isCloseBoolean) &&
  4015. isCloseList[toolIndex].isClose == 0
  4016. "
  4017. >
  4018. 折叠
  4019. </div>
  4020. <div
  4021. class="corOpen"
  4022. @click="contract(toolIndex)"
  4023. v-if="isCloseList[toolIndex].isClose == 1"
  4024. >
  4025. 展开
  4026. </div>
  4027. </div>
  4028. <div
  4029. :id="'tool-' + toolIndex"
  4030. :style="{
  4031. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4032. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4033. }"
  4034. class="worksDetailBox"
  4035. v-if="
  4036. worksStudent.length &&
  4037. worksStudent[toolIndex].length > 0
  4038. "
  4039. >
  4040. <div
  4041. class="works"
  4042. style="
  4043. width: 200px;
  4044. height: 140px;
  4045. margin: 10px 10px 10px 0;
  4046. border-radius: 15px;
  4047. box-shadow: 0 0 6px 1px #dfdada;
  4048. "
  4049. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4050. :key="wIndex"
  4051. :class="w.type == 1 ? 'isTypeOne' : ''"
  4052. >
  4053. <div class="workImg" v-if="w.type == 0">
  4054. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  4055. <img
  4056. :src="w.works"
  4057. @click="previewImg(w.works,w)"
  4058. alt
  4059. />
  4060. <div
  4061. class="answerScore"
  4062. v-if="w.score"
  4063. @click.stop="openScore(w)"
  4064. :class="{
  4065. rightW:
  4066. w.userid == userid ||
  4067. tType == 1 ||
  4068. tType == 4 ||
  4069. w.ateacher == userid,
  4070. }"
  4071. >
  4072. {{ JSON.parse(w.score).wScore }}分
  4073. </div>
  4074. <div
  4075. class="answerScore"
  4076. @click.stop="openScore(w)"
  4077. v-else-if="courseDetail.userid == userid"
  4078. :class="{
  4079. rightW:
  4080. w.userid == userid ||
  4081. tType == 1 ||
  4082. tType == 4 ||
  4083. w.ateacher == userid,
  4084. }"
  4085. >
  4086. 评分
  4087. </div>
  4088. <img
  4089. class="deleteImg"
  4090. src="../../assets/deleteworks.png"
  4091. v-if="
  4092. w.userid == userid || tType == 1 || tType == 4
  4093. "
  4094. @click.stop="deleteWorks(w.wid)"
  4095. alt
  4096. />
  4097. </div>
  4098. <div
  4099. class="workImg"
  4100. style="cursor: pointer"
  4101. v-if="w.type == 1"
  4102. >
  4103. <img :src="word" @click="openFile(w.works)" alt />
  4104. <!-- @click="openFile(w.works)" -->
  4105. <div
  4106. class="answerScore"
  4107. v-if="w.score"
  4108. @click.stop="openScore(w)"
  4109. :class="{
  4110. rightW:
  4111. w.userid == userid ||
  4112. tType == 1 ||
  4113. tType == 4 ||
  4114. w.ateacher == userid,
  4115. }"
  4116. >
  4117. {{ JSON.parse(w.score).wScore }}分
  4118. </div>
  4119. <div
  4120. class="answerScore"
  4121. @click.stop="openScore(w)"
  4122. v-else-if="courseDetail.userid == userid"
  4123. :class="{
  4124. rightW:
  4125. w.userid == userid ||
  4126. tType == 1 ||
  4127. tType == 4 ||
  4128. w.ateacher == userid,
  4129. }"
  4130. >
  4131. 评分
  4132. </div>
  4133. <img
  4134. class="deleteImg"
  4135. src="../../assets/deleteworks.png"
  4136. v-if="
  4137. w.userid == userid || tType == 1 || tType == 4
  4138. "
  4139. @click.stop="deleteWorks(w.wid)"
  4140. alt
  4141. />
  4142. </div>
  4143. <div class="workImg" v-if="w.type == 3">
  4144. <img
  4145. style="cursor: pointer"
  4146. :src="video"
  4147. @click="openVideo(w)"
  4148. alt
  4149. />
  4150. <!-- @click="openVideo(w.works)" -->
  4151. <div
  4152. class="answerScore"
  4153. v-if="w.score"
  4154. @click.stop="openScore(w)"
  4155. :class="{
  4156. rightW:
  4157. w.userid == userid ||
  4158. tType == 1 ||
  4159. tType == 4 ||
  4160. w.ateacher == userid,
  4161. }"
  4162. >
  4163. {{ JSON.parse(w.score).wScore }}分
  4164. </div>
  4165. <div
  4166. class="answerScore"
  4167. @click.stop="openScore(w)"
  4168. v-else-if="courseDetail.userid == userid"
  4169. :class="{
  4170. rightW:
  4171. w.userid == userid ||
  4172. tType == 1 ||
  4173. tType == 4 ||
  4174. w.ateacher == userid,
  4175. }"
  4176. >
  4177. 评分
  4178. </div>
  4179. <img
  4180. class="deleteImg"
  4181. src="../../assets/deleteworks.png"
  4182. v-if="
  4183. w.userid == userid || tType == 1 || tType == 4
  4184. "
  4185. @click.stop="deleteWorks(w.wid)"
  4186. alt
  4187. />
  4188. </div>
  4189. <div class="comment" style="min-width: 200px">
  4190. <div class="worksName">
  4191. <div
  4192. style="cursor: pointer"
  4193. @click="
  4194. openSname(w.sName, w.wid, toolIndex, w.userid)
  4195. "
  4196. >
  4197. {{ w.sName }}
  4198. </div>
  4199. </div>
  4200. <div class="commentList">
  4201. <div class="commentList">
  4202. <div
  4203. class="commentImg"
  4204. @click="
  4205. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4206. "
  4207. >
  4208. <img
  4209. :src="w.isLikes == true ? likes : noLikes"
  4210. alt=""
  4211. />
  4212. </div>
  4213. <div>{{ w.likesCount }}</div>
  4214. </div>
  4215. <div class="commentList" style="margin-right: 15px">
  4216. <div
  4217. class="commentImg"
  4218. @click="commentOther(w, toolIndex, wIndex)"
  4219. >
  4220. <img
  4221. src="../../assets/icon/comment/comment.png"
  4222. alt=""
  4223. />
  4224. </div>
  4225. <div>{{ w.commentCount }}</div>
  4226. </div>
  4227. </div>
  4228. </div>
  4229. </div>
  4230. </div>
  4231. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4232. 未提交
  4233. </div>
  4234. <div
  4235. class="noWorksS"
  4236. v-if="noWorksS && noWorksS[toolIndex].length"
  4237. >
  4238. <div
  4239. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4240. :key="sIndex"
  4241. class="noWorksName"
  4242. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  4243. >
  4244. <el-tooltip effect="dark" :content="s.student" placement="top">
  4245. <span>{{ s.student }}</span>
  4246. </el-tooltip>
  4247. </div>
  4248. </div>
  4249. </div>
  4250. <div
  4251. v-if="
  4252. tType &&
  4253. ((tType == 2 && sIsOpen == true) ||
  4254. tType == 1 ||
  4255. tType == 4) &&
  4256. tool.tool.indexOf(4) != -1 &&
  4257. (tool.askJson[0].answer ||
  4258. tool.askJson[0].answer === 0) &&
  4259. checkJson[toolIndex].length
  4260. "
  4261. class="xuan_right_box"
  4262. >
  4263. <div
  4264. class="tool_right_box"
  4265. v-for="(item, index) in tool.askJson"
  4266. :key="index"
  4267. >
  4268. <div style="width: calc(100% - 30px);">
  4269. <el-tooltip
  4270. effect="light"
  4271. :content="index + 1 + '、' + item.askstitle"
  4272. placement="top"
  4273. popper-class="text_tooltip"
  4274. >
  4275. <div
  4276. style="
  4277. width: calc(100% - 130px);
  4278. display: block;
  4279. white-space: nowrap;
  4280. overflow: hidden;
  4281. text-overflow: ellipsis;
  4282. word-break: break-word;
  4283. cursor: pointer;
  4284. "
  4285. >
  4286. {{ index + 1 + "、" + item.askstitle }}
  4287. </div>
  4288. </el-tooltip>
  4289. </div>
  4290. <div class="right_box_xuan">
  4291. <span>正确率</span>
  4292. <span>{{
  4293. (checkJson[toolIndex][index].right
  4294. ? checkJson[toolIndex][index].right
  4295. : 0) + "%"
  4296. }}</span>
  4297. </div>
  4298. </div>
  4299. </div>
  4300. <div
  4301. class="xuan_right_box"
  4302. style="background: unset; padding: 0 10px"
  4303. v-if="
  4304. tType &&
  4305. ((tType == 2 && sIsOpen == true) ||
  4306. tType == 1 ||
  4307. tType == 4) &&
  4308. tool.tool.indexOf(4) != -1
  4309. "
  4310. >
  4311. <AskStatic
  4312. v-if="
  4313. worksStudent.length &&
  4314. worksStudent[toolIndex].length > 0
  4315. "
  4316. :askJSON="tool"
  4317. :checkJson="checkJson[toolIndex]"
  4318. ></AskStatic>
  4319. </div>
  4320. <div
  4321. v-if="
  4322. tType &&
  4323. ((tType == 2 && sIsOpen == true) ||
  4324. tType == 1 ||
  4325. tType == 4) &&
  4326. tool.tool.indexOf(4) != -1
  4327. "
  4328. class="worksBox"
  4329. >
  4330. <div
  4331. class="zuoyeYulan"
  4332. v-if="
  4333. worksStudent.length &&
  4334. worksStudent[toolIndex].length > 0
  4335. "
  4336. >
  4337. <div class="worksTop">
  4338. <div>作业预览</div>
  4339. <div
  4340. class="corOpen"
  4341. @click="contract(toolIndex)"
  4342. v-if="
  4343. (isCloseList[toolIndex].isCloseBoolean) &&
  4344. isCloseList[toolIndex].isClose == 0
  4345. "
  4346. >
  4347. 折叠
  4348. </div>
  4349. <div
  4350. class="corOpen"
  4351. @click="contract(toolIndex)"
  4352. v-if="isCloseList[toolIndex].isClose == 1"
  4353. >
  4354. 展开
  4355. </div>
  4356. </div>
  4357. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4358. </div>
  4359. <div>
  4360. <div
  4361. :id="'tool-' + toolIndex"
  4362. :style="{
  4363. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4364. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4365. }"
  4366. class="worksDetailBox"
  4367. v-if="
  4368. worksStudent.length &&
  4369. worksStudent[toolIndex].length > 0
  4370. "
  4371. >
  4372. <div
  4373. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4374. :key="wIndex"
  4375. class="isWorksName2"
  4376. @click="
  4377. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4378. "
  4379. >
  4380. {{ w.sName }}
  4381. <img
  4382. class="deleteImg deleteImg2"
  4383. src="../../assets/deleteworks.png"
  4384. v-if="
  4385. w.userid == userid || tType == 1 || tType == 4
  4386. "
  4387. @click.stop="deleteWorks(w.wid)"
  4388. alt
  4389. />
  4390. </div>
  4391. <!-- <div class="works" style="
  4392. width: 200px;
  4393. height: 140px;
  4394. border-radius: 10px;
  4395. box-shadow: 0 0 6px 1px #dfdada;
  4396. overflow: hidden;
  4397. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  4398. <div class="workImg">
  4399. <img src="../../assets/icon/works/noImg.png" @click="
  4400. openTools(
  4401. 4,
  4402. toolIndex,
  4403. taskCount,
  4404. w.works,
  4405. w.sName
  4406. )
  4407. " alt />
  4408. </div>
  4409. <div class="worksName">
  4410. <div>{{ w.sName }}</div>
  4411. <div>{{ w.time }}</div>
  4412. </div>
  4413. </div> -->
  4414. </div>
  4415. </div>
  4416. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4417. 未提交
  4418. </div>
  4419. <div
  4420. class="noWorksS"
  4421. v-if="noWorksS && noWorksS[toolIndex].length"
  4422. >
  4423. <div
  4424. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4425. :key="sIndex"
  4426. class="noWorksName"
  4427. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4428. >
  4429. <el-tooltip effect="dark" :content="s.student" placement="top">
  4430. <span>{{ s.student }}</span>
  4431. </el-tooltip>
  4432. </div>
  4433. </div>
  4434. </div>
  4435. <div
  4436. v-if="
  4437. tType &&
  4438. ((tType == 2 && sIsOpen == true) ||
  4439. tType == 1 ||
  4440. tType == 4) &&
  4441. tool.tool.indexOf(45) != -1 &&
  4442. (tool.testJson.testJson[0].answer ||
  4443. tool.testJson.testJson[0].answer === 0) &&
  4444. checkJson[toolIndex].length
  4445. "
  4446. class="xuan_right_box"
  4447. >
  4448. <div
  4449. class="tool_right_box"
  4450. v-for="(item, index) in tool.testJson.testJson"
  4451. :key="index"
  4452. >
  4453. <div class="right_box_xuan" style="margin-right: 10px">
  4454. <span>正确率</span>
  4455. <span>{{
  4456. (checkJson[toolIndex][index].right
  4457. ? checkJson[toolIndex][index].right
  4458. : 0) + "%"
  4459. }}</span>
  4460. </div>
  4461. <div style="width: calc(100% - 30px);">
  4462. <el-tooltip
  4463. effect="light"
  4464. :content="index + 1 + '、' + item.teststitle"
  4465. placement="top"
  4466. popper-class="text_tooltip"
  4467. >
  4468. <div
  4469. style="
  4470. width: calc(100% - 130px);
  4471. display: flex;
  4472. white-space: nowrap;
  4473. overflow: hidden;
  4474. text-overflow: ellipsis;
  4475. word-break: break-word;
  4476. cursor: pointer;
  4477. "
  4478. class="renderedFor"
  4479. >
  4480. {{ index + 1 + "、" }} <span v-html="renderedFormula(item.teststitle)"></span>
  4481. </div>
  4482. </el-tooltip>
  4483. </div>
  4484. </div>
  4485. </div>
  4486. <div
  4487. class="xuan_right_box"
  4488. style="background: unset; padding: 0 10px; width: 91.5%"
  4489. v-if="
  4490. tType &&
  4491. ((tType == 2 && sIsOpen == true) ||
  4492. tType == 1 ||
  4493. tType == 4) &&
  4494. tool.tool.indexOf(45) != -1
  4495. "
  4496. >
  4497. <AskStatic2
  4498. v-if="
  4499. worksStudent.length &&
  4500. worksStudent[toolIndex].length > 0
  4501. "
  4502. :askJSON="tool"
  4503. :checkJson="checkJson[toolIndex]"
  4504. ></AskStatic2>
  4505. </div>
  4506. <div
  4507. v-if="
  4508. tType &&
  4509. ((tType == 2 && sIsOpen == true) ||
  4510. tType == 1 ||
  4511. tType == 4) &&
  4512. tool.tool.indexOf(45) != -1
  4513. "
  4514. class="worksBox"
  4515. >
  4516. <div
  4517. class="zuoyeYulan"
  4518. v-if="
  4519. worksStudent.length &&
  4520. worksStudent[toolIndex].length > 0
  4521. "
  4522. >
  4523. <div class="worksTop">
  4524. <div>作业预览</div>
  4525. <div
  4526. class="corOpen"
  4527. @click="contract(toolIndex)"
  4528. v-if="
  4529. (isCloseList[toolIndex].isCloseBoolean) &&
  4530. isCloseList[toolIndex].isClose == 0
  4531. "
  4532. >
  4533. 折叠
  4534. </div>
  4535. <div
  4536. class="corOpen"
  4537. @click="contract(toolIndex)"
  4538. v-if="isCloseList[toolIndex].isClose == 1"
  4539. >
  4540. 展开
  4541. </div>
  4542. </div>
  4543. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4544. </div>
  4545. <div>
  4546. <div
  4547. :id="'tool-' + toolIndex"
  4548. :style="{
  4549. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4550. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4551. }"
  4552. class="worksDetailBox"
  4553. v-if="
  4554. worksStudent.length &&
  4555. worksStudent[toolIndex].length > 0
  4556. "
  4557. >
  4558. <div
  4559. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4560. :key="wIndex"
  4561. class="isWorksName2"
  4562. @click="
  4563. openTools(
  4564. 45,
  4565. toolIndex,
  4566. taskCount,
  4567. w.works,
  4568. w.sName
  4569. )
  4570. "
  4571. >
  4572. {{ w.sName }}
  4573. <img
  4574. class="deleteImg deleteImg2"
  4575. src="../../assets/deleteworks.png"
  4576. v-if="
  4577. w.userid == userid || tType == 1 || tType == 4
  4578. "
  4579. @click.stop="deleteWorks(w.wid)"
  4580. alt
  4581. />
  4582. </div>
  4583. </div>
  4584. </div>
  4585. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4586. 未提交
  4587. </div>
  4588. <div
  4589. class="noWorksS"
  4590. v-if="noWorksS && noWorksS[toolIndex].length"
  4591. >
  4592. <div
  4593. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4594. :key="sIndex"
  4595. class="noWorksName"
  4596. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4597. >
  4598. <el-tooltip effect="dark" :content="s.student" placement="top">
  4599. <span>{{ s.student }}</span>
  4600. </el-tooltip>
  4601. </div>
  4602. </div>
  4603. </div>
  4604. <div
  4605. v-if="
  4606. tType &&
  4607. ((tType == 2 && sIsOpen == true) ||
  4608. tType == 1 ||
  4609. tType == 4) &&
  4610. tool.tool.indexOf(69) != -1
  4611. "
  4612. class="worksBox"
  4613. >
  4614. <div
  4615. class="zuoyeYulan"
  4616. v-if="
  4617. worksStudent.length &&
  4618. worksStudent[toolIndex].length > 0
  4619. "
  4620. >
  4621. <div class="worksTop">
  4622. <div>作业预览</div>
  4623. <div
  4624. class="corOpen"
  4625. @click="contract(toolIndex)"
  4626. v-if="
  4627. (isCloseList[toolIndex].isCloseBoolean) &&
  4628. isCloseList[toolIndex].isClose == 0
  4629. "
  4630. >
  4631. 折叠
  4632. </div>
  4633. <div
  4634. class="corOpen"
  4635. @click="contract(toolIndex)"
  4636. v-if="isCloseList[toolIndex].isClose == 1"
  4637. >
  4638. 展开
  4639. </div>
  4640. </div>
  4641. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4642. </div>
  4643. <div>
  4644. <div
  4645. :id="'tool-' + toolIndex"
  4646. :style="{
  4647. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4648. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4649. }"
  4650. class="worksDetailBox"
  4651. v-if="
  4652. worksStudent.length &&
  4653. worksStudent[toolIndex].length > 0
  4654. "
  4655. >
  4656. <div
  4657. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4658. :key="wIndex"
  4659. class="isWorksName2"
  4660. style="width: 160px;height: 65px;line-height: 65px;"
  4661. @click="
  4662. openTools(
  4663. 69,
  4664. toolIndex,
  4665. taskCount,
  4666. w.works,
  4667. w.sName,
  4668. w.wid
  4669. )
  4670. "
  4671. >
  4672. {{ w.sName }}
  4673. <img
  4674. class="deleteImg1"
  4675. src="../../assets/evaEnglish.png"
  4676. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4677. alt
  4678. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4679. />
  4680. <img
  4681. class="deleteImg deleteImg2"
  4682. src="../../assets/deleteworks.png"
  4683. v-if="
  4684. w.userid == userid || tType == 1 || tType == 4
  4685. "
  4686. @click.stop="deleteWorks(w.wid)"
  4687. alt
  4688. />
  4689. </div>
  4690. </div>
  4691. </div>
  4692. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4693. 未提交
  4694. </div>
  4695. <div
  4696. class="noWorksS"
  4697. v-if="noWorksS && noWorksS[toolIndex].length"
  4698. >
  4699. <div
  4700. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4701. :key="sIndex"
  4702. class="noWorksName"
  4703. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4704. >
  4705. <el-tooltip effect="dark" :content="s.student" placement="top">
  4706. <span>{{ s.student }}</span>
  4707. </el-tooltip>
  4708. </div>
  4709. </div>
  4710. </div>
  4711. <div
  4712. v-if="
  4713. tType &&
  4714. ((tType == 2 && sIsOpen == true) ||
  4715. tType == 1 ||
  4716. tType == 4) &&
  4717. tool.tool.indexOf(15) != -1
  4718. "
  4719. class="worksBox"
  4720. >
  4721. <div
  4722. class="zuoyeYulan"
  4723. v-if="
  4724. (worksStudent.length &&
  4725. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4726. "
  4727. >
  4728. <div class="worksTop">
  4729. <div>作业预览</div>
  4730. <div
  4731. class="corOpen"
  4732. @click="contract(toolIndex)"
  4733. v-if="
  4734. (isCloseList[toolIndex].isCloseBoolean) &&
  4735. isCloseList[toolIndex].isClose == 0
  4736. "
  4737. >
  4738. 折叠
  4739. </div>
  4740. <div
  4741. class="corOpen"
  4742. @click="contract(toolIndex)"
  4743. v-if="isCloseList[toolIndex].isClose == 1"
  4744. >
  4745. 展开
  4746. </div>
  4747. </div>
  4748. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4749. </div>
  4750. <div
  4751. class="group_workBox"
  4752. v-for="(g, gindex) in courseGroup.group"
  4753. :key="gindex"
  4754. >
  4755. <div class="group_box">
  4756. <div class="group_title">
  4757. <el-tooltip
  4758. class="item"
  4759. effect="light"
  4760. :content="g.name"
  4761. placement="top"
  4762. >
  4763. <div class="group_name">{{ g.name }}</div>
  4764. </el-tooltip>
  4765. </div>
  4766. <div
  4767. class="group_work"
  4768. v-if="
  4769. g.works &&
  4770. g.works.length &&
  4771. g.works[toolIndex].length
  4772. "
  4773. >
  4774. <div
  4775. class="works"
  4776. v-for="(w, wIndex) in g.works[toolIndex]"
  4777. :key="wIndex"
  4778. >
  4779. <div
  4780. class="workImg"
  4781. style="
  4782. border-radius: 15px;
  4783. box-shadow: 0px 0px 5px 5px #eee;
  4784. "
  4785. >
  4786. <div
  4787. class="answerBg"
  4788. style="border-radius: 15px 15px 0 0"
  4789. @click="
  4790. commentOther(w, toolIndex, wIndex, null, g.id)
  4791. "
  4792. >
  4793. <div class="answerContent">
  4794. {{ JSON.parse(w.works)[0].answer }}
  4795. </div>
  4796. <div
  4797. class="answerScore"
  4798. v-if="w.score"
  4799. @click.stop="openScore(w)"
  4800. :class="{
  4801. rightW:
  4802. w.userid == userid ||
  4803. tType == 1 ||
  4804. tType == 4,
  4805. }"
  4806. >
  4807. {{ JSON.parse(w.score).wScore }}分
  4808. </div>
  4809. <div
  4810. class="answerScore"
  4811. @click.stop="openScore(w)"
  4812. v-else-if="courseDetail.userid == userid"
  4813. :class="{
  4814. rightW:
  4815. w.userid == userid ||
  4816. tType == 1 ||
  4817. tType == 4,
  4818. }"
  4819. >
  4820. 评分
  4821. </div>
  4822. <img
  4823. class="deleteImg"
  4824. src="../../assets/deleteworks.png"
  4825. v-if="
  4826. w.userid == userid ||
  4827. tType == 1 ||
  4828. tType == 4
  4829. "
  4830. @click.stop="deleteWorks(w.wid)"
  4831. alt
  4832. />
  4833. </div>
  4834. <div class="comment">
  4835. <div class="worksName">
  4836. <div>{{ w.sName }}</div>
  4837. </div>
  4838. <div class="commentList">
  4839. <div
  4840. class="commentImg"
  4841. @click="
  4842. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4843. "
  4844. >
  4845. <img
  4846. :src="w.isLikes == true ? likes : noLikes"
  4847. alt=""
  4848. />
  4849. </div>
  4850. <div>{{ w.likesCount }}</div>
  4851. </div>
  4852. <div
  4853. class="commentList"
  4854. style="margin-right: 15px"
  4855. >
  4856. <div
  4857. class="commentImg"
  4858. @click="
  4859. commentOther(
  4860. w,
  4861. toolIndex,
  4862. wIndex,
  4863. null,
  4864. g.id
  4865. )
  4866. "
  4867. >
  4868. <img
  4869. src="../../assets/icon/comment/comment.png"
  4870. alt=""
  4871. />
  4872. </div>
  4873. <div>{{ w.commentCount }}</div>
  4874. </div>
  4875. </div>
  4876. </div>
  4877. </div>
  4878. </div>
  4879. <div class="group_work" v-else>暂无提交作业</div>
  4880. </div>
  4881. </div>
  4882. <div
  4883. :id="'tool-' + toolIndex"
  4884. :style="{
  4885. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4886. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4887. }"
  4888. class="worksDetailBox"
  4889. v-if="
  4890. worksStudent.length &&
  4891. worksStudent[toolIndex].length > 0
  4892. "
  4893. >
  4894. <div
  4895. class="works"
  4896. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4897. :key="wIndex"
  4898. >
  4899. <div
  4900. class="workImg"
  4901. style="
  4902. border-radius: 15px;
  4903. box-shadow: 0px 0px 5px 5px #eee;
  4904. "
  4905. >
  4906. <!-- <img
  4907. src="../../assets/icon/works/noImg.png"
  4908. @click="openTools(15, toolIndex, taskCount, w.works)"
  4909. alt=""
  4910. />-->
  4911. <div
  4912. class="answerBg"
  4913. style="border-radius: 15px 15px 0 0"
  4914. @click="commentOther(w, toolIndex, wIndex)"
  4915. >
  4916. <!-- <div>{{ w.sName }}</div> -->
  4917. <div class="answerContent">
  4918. {{ JSON.parse(w.works)[0].answer }}
  4919. </div>
  4920. <div
  4921. class="answerScore"
  4922. v-if="w.score"
  4923. @click.stop="openScore(w)"
  4924. :class="{
  4925. rightW:
  4926. w.userid == userid ||
  4927. tType == 1 ||
  4928. tType == 4,
  4929. }"
  4930. >
  4931. {{ JSON.parse(w.score).wScore }}分
  4932. </div>
  4933. <div
  4934. class="answerScore"
  4935. @click.stop="openScore(w)"
  4936. v-else-if="courseDetail.userid == userid"
  4937. :class="{
  4938. rightW:
  4939. w.userid == userid ||
  4940. tType == 1 ||
  4941. tType == 4,
  4942. }"
  4943. >
  4944. 评分
  4945. </div>
  4946. <img
  4947. class="deleteImg"
  4948. src="../../assets/deleteworks.png"
  4949. v-if="
  4950. w.userid == userid || tType == 1 || tType == 4
  4951. "
  4952. @click.stop="deleteWorks(w.wid)"
  4953. alt
  4954. />
  4955. </div>
  4956. <div class="comment">
  4957. <div class="worksName">
  4958. <div>{{ w.sName }}</div>
  4959. </div>
  4960. <div class="commentList">
  4961. <div
  4962. class="commentImg"
  4963. @click="
  4964. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4965. "
  4966. >
  4967. <img
  4968. :src="w.isLikes == true ? likes : noLikes"
  4969. alt=""
  4970. />
  4971. </div>
  4972. <div>{{ w.likesCount }}</div>
  4973. </div>
  4974. <div class="commentList" style="margin-right: 15px">
  4975. <div
  4976. class="commentImg"
  4977. @click="commentOther(w, toolIndex, wIndex)"
  4978. >
  4979. <img
  4980. src="../../assets/icon/comment/comment.png"
  4981. alt=""
  4982. />
  4983. </div>
  4984. <div>{{ w.commentCount }}</div>
  4985. </div>
  4986. </div>
  4987. </div>
  4988. </div>
  4989. </div>
  4990. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4991. 未提交
  4992. </div>
  4993. <div
  4994. class="noWorksS"
  4995. v-if="noWorksS && noWorksS[toolIndex].length"
  4996. >
  4997. <div
  4998. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4999. :key="sIndex"
  5000. class="noWorksName"
  5001. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  5002. >
  5003. <el-tooltip effect="dark" :content="s.student" placement="top">
  5004. <span>{{ s.student }}</span>
  5005. </el-tooltip>
  5006. </div>
  5007. </div>
  5008. </div>
  5009. <div
  5010. v-if="
  5011. tType &&
  5012. ((tType == 2 && sIsOpen == true) ||
  5013. tType == 1 ||
  5014. tType == 4) &&
  5015. tool.tool.indexOf(1) != -1
  5016. "
  5017. class="worksBox"
  5018. >
  5019. <div
  5020. class="zuoyeYulan"
  5021. v-if="
  5022. (worksStudent.length &&
  5023. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5024. "
  5025. >
  5026. <div class="worksTop">
  5027. <div>作业预览</div>
  5028. <div
  5029. class="corOpen"
  5030. @click="contract(toolIndex)"
  5031. v-if="
  5032. (isCloseList[toolIndex].isCloseBoolean) &&
  5033. isCloseList[toolIndex].isClose == 0
  5034. "
  5035. >
  5036. 折叠
  5037. </div>
  5038. <div
  5039. class="corOpen"
  5040. @click="contract(toolIndex)"
  5041. v-if="isCloseList[toolIndex].isClose == 1"
  5042. >
  5043. 展开
  5044. </div>
  5045. </div>
  5046. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5047. </div>
  5048. <div
  5049. class="group_workBox"
  5050. v-for="(g, gindex) in courseGroup.group"
  5051. :key="gindex"
  5052. >
  5053. <div class="group_box">
  5054. <div class="group_title">
  5055. <el-tooltip
  5056. class="item"
  5057. effect="light"
  5058. :content="g.name"
  5059. placement="top"
  5060. >
  5061. <div class="group_name">{{ g.name }}</div>
  5062. </el-tooltip>
  5063. </div>
  5064. <div
  5065. class="group_work"
  5066. v-if="
  5067. g.works &&
  5068. g.works.length &&
  5069. g.works[toolIndex].length
  5070. "
  5071. >
  5072. <div
  5073. class="works"
  5074. style="
  5075. width: 200px;
  5076. height: 140px;
  5077. margin: 10px 10px 10px 0;
  5078. border-radius: 15px;
  5079. box-shadow: 0 0 6px 1px #dfdada;
  5080. "
  5081. v-for="(w, wIndex) in g.works[toolIndex]"
  5082. :key="wIndex"
  5083. :class="w.type == 1 ? 'isTypeOne' : ''"
  5084. >
  5085. <div class="workImg">
  5086. <img
  5087. :src="w.works"
  5088. @click="previewImg(w.works,w)"
  5089. alt
  5090. />
  5091. <div
  5092. class="answerScore"
  5093. v-if="w.score"
  5094. @click.stop="openScore(w)"
  5095. :class="{
  5096. rightW:
  5097. w.userid == userid ||
  5098. tType == 1 ||
  5099. tType == 4,
  5100. }"
  5101. >
  5102. {{ JSON.parse(w.score).wScore }}分
  5103. </div>
  5104. <div
  5105. class="answerScore"
  5106. @click.stop="openScore(w)"
  5107. v-else-if="courseDetail.userid == userid"
  5108. :class="{
  5109. rightW:
  5110. w.userid == userid ||
  5111. tType == 1 ||
  5112. tType == 4,
  5113. }"
  5114. >
  5115. 评分
  5116. </div>
  5117. <img
  5118. class="deleteImg"
  5119. src="../../assets/deleteworks.png"
  5120. v-if="
  5121. w.userid == userid || tType == 1 || tType == 4
  5122. "
  5123. @click.stop="deleteWorks(w.wid)"
  5124. alt
  5125. />
  5126. </div>
  5127. <div class="comment" style="min-width: 200px">
  5128. <div class="worksName">
  5129. <div>{{ w.sName }}</div>
  5130. </div>
  5131. <div class="commentList">
  5132. <div class="commentList">
  5133. <div
  5134. class="commentImg"
  5135. @click="
  5136. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5137. "
  5138. >
  5139. <img
  5140. :src="w.isLikes == true ? likes : noLikes"
  5141. alt=""
  5142. />
  5143. </div>
  5144. <div>{{ w.likesCount }}</div>
  5145. </div>
  5146. <div
  5147. class="commentList"
  5148. style="margin-right: 15px"
  5149. >
  5150. <div
  5151. class="commentImg"
  5152. @click="
  5153. commentOther(
  5154. w,
  5155. toolIndex,
  5156. wIndex,
  5157. null,
  5158. g.id
  5159. )
  5160. "
  5161. >
  5162. <img
  5163. src="../../assets/icon/comment/comment.png"
  5164. alt=""
  5165. />
  5166. </div>
  5167. <div>{{ w.commentCount }}</div>
  5168. </div>
  5169. </div>
  5170. </div>
  5171. </div>
  5172. </div>
  5173. <div class="group_work" v-else>暂无提交作业</div>
  5174. </div>
  5175. </div>
  5176. <div
  5177. :id="'tool-' + toolIndex"
  5178. :style="{
  5179. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5180. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5181. }"
  5182. class="worksDetailBox"
  5183. v-if="
  5184. worksStudent.length &&
  5185. worksStudent[toolIndex].length > 0
  5186. "
  5187. >
  5188. <div
  5189. class="works"
  5190. style="
  5191. width: 200px;
  5192. height: 140px;
  5193. margin: 10px 10px 10px 0;
  5194. border-radius: 15px;
  5195. box-shadow: 0 0 6px 1px #dfdada;
  5196. "
  5197. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5198. :key="wIndex"
  5199. >
  5200. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  5201. <div class="workImg">
  5202. <img
  5203. :src="w.works"
  5204. @click="previewImg(w.works,w)"
  5205. alt
  5206. />
  5207. <div
  5208. class="answerScore"
  5209. v-if="w.score"
  5210. @click.stop="openScore(w)"
  5211. :class="{
  5212. rightW:
  5213. w.userid == userid || tType == 1 || tType == 4,
  5214. }"
  5215. >
  5216. {{ JSON.parse(w.score).wScore }}分
  5217. </div>
  5218. <div
  5219. class="answerScore"
  5220. @click.stop="openScore(w)"
  5221. v-else-if="courseDetail.userid == userid"
  5222. :class="{
  5223. rightW:
  5224. w.userid == userid || tType == 1 || tType == 4,
  5225. }"
  5226. >
  5227. 评分
  5228. </div>
  5229. <img
  5230. class="deleteImg"
  5231. src="../../assets/deleteworks.png"
  5232. v-if="
  5233. w.userid == userid || tType == 1 || tType == 4
  5234. "
  5235. @click.stop="deleteWorks(w.wid)"
  5236. alt
  5237. />
  5238. </div>
  5239. <div class="comment" style="min-width: 200px">
  5240. <div class="worksName">
  5241. <div>{{ w.sName }}</div>
  5242. </div>
  5243. <div class="commentList">
  5244. <div class="commentList">
  5245. <div
  5246. class="commentImg"
  5247. @click="
  5248. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5249. "
  5250. >
  5251. <img
  5252. :src="w.isLikes == true ? likes : noLikes"
  5253. alt=""
  5254. />
  5255. </div>
  5256. <div>{{ w.likesCount }}</div>
  5257. </div>
  5258. <div class="commentList" style="margin-right: 15px">
  5259. <div
  5260. class="commentImg"
  5261. @click="commentOther(w, toolIndex, wIndex)"
  5262. >
  5263. <img
  5264. src="../../assets/icon/comment/comment.png"
  5265. alt=""
  5266. />
  5267. </div>
  5268. <div>{{ w.commentCount }}</div>
  5269. </div>
  5270. </div>
  5271. </div>
  5272. </div>
  5273. </div>
  5274. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5275. 未提交
  5276. </div>
  5277. <div
  5278. class="noWorksS"
  5279. v-if="noWorksS && noWorksS[toolIndex].length"
  5280. >
  5281. <div
  5282. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5283. :key="sIndex"
  5284. class="noWorksName"
  5285. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  5286. >
  5287. <el-tooltip effect="dark" :content="s.student" placement="top">
  5288. <span>{{ s.student }}</span>
  5289. </el-tooltip>
  5290. </div>
  5291. </div>
  5292. </div>
  5293. <div
  5294. v-if="
  5295. tType &&
  5296. ((tType == 2 && sIsOpen == true) ||
  5297. tType == 1 ||
  5298. tType == 4) &&
  5299. tool.tool.indexOf(3) != -1
  5300. "
  5301. class="worksBox"
  5302. >
  5303. <div
  5304. class="zuoyeYulan"
  5305. v-if="
  5306. (worksStudent.length &&
  5307. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5308. "
  5309. >
  5310. <div class="worksTop">
  5311. <div>作业预览</div>
  5312. <div
  5313. class="corOpen"
  5314. @click="contract(toolIndex)"
  5315. v-if="
  5316. (isCloseList[toolIndex].isCloseBoolean) &&
  5317. isCloseList[toolIndex].isClose == 0
  5318. "
  5319. >
  5320. 折叠
  5321. </div>
  5322. <div
  5323. class="corOpen"
  5324. @click="contract(toolIndex)"
  5325. v-if="isCloseList[toolIndex].isClose == 1"
  5326. >
  5327. 展开
  5328. </div>
  5329. </div>
  5330. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5331. </div>
  5332. <div
  5333. class="group_workBox"
  5334. v-for="(g, gindex) in courseGroup.group"
  5335. :key="gindex"
  5336. >
  5337. <div class="group_box">
  5338. <div class="group_title">
  5339. <el-tooltip
  5340. class="item"
  5341. effect="light"
  5342. :content="g.name"
  5343. placement="top"
  5344. >
  5345. <div class="group_name">{{ g.name }}</div>
  5346. </el-tooltip>
  5347. </div>
  5348. <div
  5349. class="group_work"
  5350. v-if="
  5351. g.works &&
  5352. g.works.length &&
  5353. g.works[toolIndex].length
  5354. "
  5355. >
  5356. <div
  5357. class="works"
  5358. style="
  5359. width: 200px;
  5360. height: 140px;
  5361. margin: 10px 10px 10px 0;
  5362. border-radius: 15px;
  5363. box-shadow: 0 0 6px 1px #dfdada;
  5364. "
  5365. v-for="(w, wIndex) in g.works[toolIndex]"
  5366. :key="wIndex"
  5367. :class="w.type == 1 ? 'isTypeOne' : ''"
  5368. >
  5369. <div class="workImg">
  5370. <img
  5371. :src="w.works"
  5372. @click="previewImg(w.works,w)"
  5373. alt
  5374. />
  5375. <div
  5376. class="answerScore"
  5377. v-if="w.score"
  5378. @click.stop="openScore(w)"
  5379. :class="{
  5380. rightW:
  5381. w.userid == userid ||
  5382. tType == 1 ||
  5383. tType == 4,
  5384. }"
  5385. >
  5386. {{ JSON.parse(w.score).wScore }}分
  5387. </div>
  5388. <div
  5389. class="answerScore"
  5390. @click.stop="openScore(w)"
  5391. v-else-if="courseDetail.userid == userid"
  5392. :class="{
  5393. rightW:
  5394. w.userid == userid ||
  5395. tType == 1 ||
  5396. tType == 4,
  5397. }"
  5398. >
  5399. 评分
  5400. </div>
  5401. <img
  5402. class="deleteImg"
  5403. src="../../assets/deleteworks.png"
  5404. v-if="
  5405. w.userid == userid || tType == 1 || tType == 4
  5406. "
  5407. @click.stop="deleteWorks(w.wid)"
  5408. alt
  5409. />
  5410. </div>
  5411. <div class="comment" style="min-width: 200px">
  5412. <div class="worksName">
  5413. <div>{{ w.sName }}</div>
  5414. </div>
  5415. <div class="commentList">
  5416. <div class="commentList">
  5417. <div
  5418. class="commentImg"
  5419. @click="
  5420. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5421. "
  5422. >
  5423. <img
  5424. :src="w.isLikes == true ? likes : noLikes"
  5425. alt=""
  5426. />
  5427. </div>
  5428. <div>{{ w.likesCount }}</div>
  5429. </div>
  5430. <div
  5431. class="commentList"
  5432. style="margin-right: 15px"
  5433. >
  5434. <div
  5435. class="commentImg"
  5436. @click="
  5437. commentOther(
  5438. w,
  5439. toolIndex,
  5440. wIndex,
  5441. null,
  5442. g.id
  5443. )
  5444. "
  5445. >
  5446. <img
  5447. src="../../assets/icon/comment/comment.png"
  5448. alt=""
  5449. />
  5450. </div>
  5451. <div>{{ w.commentCount }}</div>
  5452. </div>
  5453. </div>
  5454. </div>
  5455. </div>
  5456. </div>
  5457. <div class="group_work" v-else>暂无提交作业</div>
  5458. </div>
  5459. </div>
  5460. <div
  5461. :id="'tool-' + toolIndex"
  5462. :style="{
  5463. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5464. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5465. }"
  5466. class="worksDetailBox"
  5467. v-if="
  5468. worksStudent.length &&
  5469. worksStudent[toolIndex].length > 0
  5470. "
  5471. >
  5472. <div
  5473. class="works"
  5474. style="
  5475. width: 200px;
  5476. height: 140px;
  5477. margin: 10px 10px 10px 0;
  5478. border-radius: 15px;
  5479. box-shadow: 0 0 6px 1px #dfdada;
  5480. "
  5481. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5482. :key="wIndex"
  5483. >
  5484. <!-- @click="previewImg(w.works)" -->
  5485. <div class="workImg">
  5486. <img
  5487. :src="w.works"
  5488. @click="previewImg(w.works,w)"
  5489. alt
  5490. />
  5491. <div
  5492. class="answerScore"
  5493. v-if="w.score"
  5494. @click.stop="openScore(w)"
  5495. :class="{
  5496. rightW:
  5497. w.userid == userid || tType == 1 || tType == 4,
  5498. }"
  5499. >
  5500. {{ JSON.parse(w.score).wScore }}分
  5501. </div>
  5502. <div
  5503. class="answerScore"
  5504. @click.stop="openScore(w)"
  5505. v-else-if="courseDetail.userid == userid"
  5506. :class="{
  5507. rightW:
  5508. w.userid == userid || tType == 1 || tType == 4,
  5509. }"
  5510. >
  5511. 评分
  5512. </div>
  5513. <img
  5514. class="deleteImg"
  5515. src="../../assets/deleteworks.png"
  5516. v-if="
  5517. w.userid == userid || tType == 1 || tType == 4
  5518. "
  5519. @click.stop="deleteWorks(w.wid)"
  5520. alt
  5521. />
  5522. </div>
  5523. <div class="comment" style="min-width: 200px">
  5524. <div class="worksName">
  5525. <div>{{ w.sName }}</div>
  5526. </div>
  5527. <div class="commentList">
  5528. <div class="commentList">
  5529. <div
  5530. class="commentImg"
  5531. @click="
  5532. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5533. "
  5534. >
  5535. <img
  5536. :src="w.isLikes == true ? likes : noLikes"
  5537. alt=""
  5538. />
  5539. </div>
  5540. <div>{{ w.likesCount }}</div>
  5541. </div>
  5542. <div class="commentList" style="margin-right: 15px">
  5543. <div
  5544. class="commentImg"
  5545. @click="commentOther(w, toolIndex, wIndex)"
  5546. >
  5547. <img
  5548. src="../../assets/icon/comment/comment.png"
  5549. alt=""
  5550. />
  5551. </div>
  5552. <div>{{ w.commentCount }}</div>
  5553. </div>
  5554. </div>
  5555. </div>
  5556. </div>
  5557. </div>
  5558. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5559. 未提交
  5560. </div>
  5561. <div
  5562. class="noWorksS"
  5563. v-if="noWorksS && noWorksS[toolIndex].length"
  5564. >
  5565. <div
  5566. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5567. :key="sIndex"
  5568. class="noWorksName"
  5569. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5570. >
  5571. <el-tooltip effect="dark" :content="s.student" placement="top">
  5572. <span>{{ s.student }}</span>
  5573. </el-tooltip>
  5574. </div>
  5575. </div>
  5576. </div>
  5577. <div
  5578. v-if="
  5579. tType &&
  5580. ((tType == 2 && sIsOpen == true) ||
  5581. tType == 1 ||
  5582. tType == 4) &&
  5583. tool.tool.indexOf(6) != -1
  5584. "
  5585. class="worksBox"
  5586. >
  5587. <div
  5588. class="zuoyeYulan"
  5589. v-if="
  5590. (worksStudent.length &&
  5591. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5592. "
  5593. >
  5594. <div class="worksTop">
  5595. <div>作业预览</div>
  5596. <div
  5597. class="corOpen"
  5598. @click="contract(toolIndex)"
  5599. v-if="
  5600. (isCloseList[toolIndex].isCloseBoolean) &&
  5601. isCloseList[toolIndex].isClose == 0
  5602. "
  5603. >
  5604. 折叠
  5605. </div>
  5606. <div
  5607. class="corOpen"
  5608. @click="contract(toolIndex)"
  5609. v-if="isCloseList[toolIndex].isClose == 1"
  5610. >
  5611. 展开
  5612. </div>
  5613. </div>
  5614. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5615. </div>
  5616. <div
  5617. class="group_workBox"
  5618. v-for="(g, gindex) in courseGroup.group"
  5619. :key="gindex"
  5620. >
  5621. <div class="group_box">
  5622. <div class="group_title">
  5623. <el-tooltip
  5624. class="item"
  5625. effect="light"
  5626. :content="g.name"
  5627. placement="top"
  5628. >
  5629. <div class="group_name">{{ g.name }}</div>
  5630. </el-tooltip>
  5631. </div>
  5632. <div
  5633. class="group_work"
  5634. v-if="
  5635. g.works &&
  5636. g.works.length &&
  5637. g.works[toolIndex].length
  5638. "
  5639. >
  5640. <div
  5641. class="works"
  5642. style="
  5643. width: 200px;
  5644. height: 140px;
  5645. margin: 10px 10px 10px 0;
  5646. border-radius: 15px;
  5647. box-shadow: 0 0 6px 1px #dfdada;
  5648. "
  5649. v-for="(w, wIndex) in g.works[toolIndex]"
  5650. :key="wIndex"
  5651. :class="w.type == 1 ? 'isTypeOne' : ''"
  5652. >
  5653. <div class="workImg">
  5654. <img
  5655. :src="w.works"
  5656. @click="previewImg(w.works,w)"
  5657. alt
  5658. />
  5659. <div
  5660. class="answerScore"
  5661. v-if="w.score"
  5662. @click.stop="openScore(w)"
  5663. :class="{
  5664. rightW:
  5665. w.userid == userid ||
  5666. tType == 1 ||
  5667. tType == 4,
  5668. }"
  5669. >
  5670. {{ JSON.parse(w.score).wScore }}分
  5671. </div>
  5672. <div
  5673. class="answerScore"
  5674. @click.stop="openScore(w)"
  5675. v-else-if="courseDetail.userid == userid"
  5676. :class="{
  5677. rightW:
  5678. w.userid == userid ||
  5679. tType == 1 ||
  5680. tType == 4,
  5681. }"
  5682. >
  5683. 评分
  5684. </div>
  5685. <img
  5686. class="deleteImg"
  5687. src="../../assets/deleteworks.png"
  5688. v-if="
  5689. w.userid == userid || tType == 1 || tType == 4
  5690. "
  5691. @click.stop="deleteWorks(w.wid)"
  5692. alt
  5693. />
  5694. </div>
  5695. <div class="comment" style="min-width: 200px">
  5696. <div class="worksName">
  5697. <div>{{ w.sName }}</div>
  5698. </div>
  5699. <div class="commentList">
  5700. <div class="commentList">
  5701. <div
  5702. class="commentImg"
  5703. @click="
  5704. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5705. "
  5706. >
  5707. <img
  5708. :src="w.isLikes == true ? likes : noLikes"
  5709. alt=""
  5710. />
  5711. </div>
  5712. <div>{{ w.likesCount }}</div>
  5713. </div>
  5714. <div
  5715. class="commentList"
  5716. style="margin-right: 15px"
  5717. >
  5718. <div
  5719. class="commentImg"
  5720. @click="
  5721. commentOther(
  5722. w,
  5723. toolIndex,
  5724. wIndex,
  5725. null,
  5726. g.id
  5727. )
  5728. "
  5729. >
  5730. <img
  5731. src="../../assets/icon/comment/comment.png"
  5732. alt=""
  5733. />
  5734. </div>
  5735. <div>{{ w.commentCount }}</div>
  5736. </div>
  5737. </div>
  5738. </div>
  5739. </div>
  5740. </div>
  5741. <div class="group_work" v-else>暂无提交作业</div>
  5742. </div>
  5743. </div>
  5744. <div
  5745. :id="'tool-' + toolIndex"
  5746. :style="{
  5747. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5748. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5749. }"
  5750. class="worksDetailBox"
  5751. v-if="
  5752. worksStudent.length &&
  5753. worksStudent[toolIndex].length > 0
  5754. "
  5755. >
  5756. <div
  5757. class="works"
  5758. style="
  5759. width: 200px;
  5760. height: 140px;
  5761. margin: 10px 10px 10px 0;
  5762. border-radius: 15px;
  5763. box-shadow: 0 0 6px 1px #dfdada;
  5764. "
  5765. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5766. :key="wIndex"
  5767. >
  5768. <!-- @click="previewImg(w.works)" -->
  5769. <div class="workImg">
  5770. <img
  5771. :src="w.works"
  5772. @click="previewImg(w.works,w)"
  5773. alt
  5774. />
  5775. <div
  5776. class="answerScore"
  5777. v-if="w.score"
  5778. @click.stop="openScore(w)"
  5779. :class="{
  5780. rightW:
  5781. w.userid == userid || tType == 1 || tType == 4,
  5782. }"
  5783. >
  5784. {{ JSON.parse(w.score).wScore }}分
  5785. </div>
  5786. <div
  5787. class="answerScore"
  5788. @click.stop="openScore(w)"
  5789. v-else-if="courseDetail.userid == userid"
  5790. :class="{
  5791. rightW:
  5792. w.userid == userid || tType == 1 || tType == 4,
  5793. }"
  5794. >
  5795. 评分
  5796. </div>
  5797. <img
  5798. class="deleteImg"
  5799. src="../../assets/deleteworks.png"
  5800. v-if="
  5801. w.userid == userid || tType == 1 || tType == 4
  5802. "
  5803. @click.stop="deleteWorks(w.wid)"
  5804. alt
  5805. />
  5806. </div>
  5807. <div class="comment" style="min-width: 200px">
  5808. <div class="worksName">
  5809. <div>{{ w.sName }}</div>
  5810. </div>
  5811. <div class="commentList">
  5812. <div class="commentList">
  5813. <div
  5814. class="commentImg"
  5815. @click="
  5816. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5817. "
  5818. >
  5819. <img
  5820. :src="w.isLikes == true ? likes : noLikes"
  5821. alt=""
  5822. />
  5823. </div>
  5824. <div>{{ w.likesCount }}</div>
  5825. </div>
  5826. <div class="commentList" style="margin-right: 15px">
  5827. <div
  5828. class="commentImg"
  5829. @click="commentOther(w, toolIndex, wIndex)"
  5830. >
  5831. <img
  5832. src="../../assets/icon/comment/comment.png"
  5833. alt=""
  5834. />
  5835. </div>
  5836. <div>{{ w.commentCount }}</div>
  5837. </div>
  5838. </div>
  5839. </div>
  5840. </div>
  5841. </div>
  5842. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5843. 未提交
  5844. </div>
  5845. <div
  5846. class="noWorksS"
  5847. v-if="noWorksS && noWorksS[toolIndex].length"
  5848. >
  5849. <div
  5850. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5851. :key="sIndex"
  5852. class="noWorksName"
  5853. >
  5854. <el-tooltip effect="dark" :content="s.student" placement="top">
  5855. <span>{{ s.student }}</span>
  5856. </el-tooltip>
  5857. </div>
  5858. </div>
  5859. </div>
  5860. <div
  5861. v-if="
  5862. tType &&
  5863. ((tType == 2 && sIsOpen == true) ||
  5864. tType == 1 ||
  5865. tType == 4) &&
  5866. tool.tool.indexOf(7) != -1
  5867. "
  5868. class="worksBox"
  5869. >
  5870. <div
  5871. class="zuoyeYulan"
  5872. v-if="
  5873. (worksStudent.length &&
  5874. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5875. "
  5876. >
  5877. <div class="worksTop">
  5878. <div>作业预览</div>
  5879. <div
  5880. class="corOpen"
  5881. @click="contract(toolIndex)"
  5882. v-if="
  5883. (isCloseList[toolIndex].isCloseBoolean) &&
  5884. isCloseList[toolIndex].isClose == 0
  5885. "
  5886. >
  5887. 折叠
  5888. </div>
  5889. <div
  5890. class="corOpen"
  5891. @click="contract(toolIndex)"
  5892. v-if="isCloseList[toolIndex].isClose == 1"
  5893. >
  5894. 展开
  5895. </div>
  5896. </div>
  5897. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5898. </div>
  5899. <div
  5900. class="group_workBox"
  5901. v-for="(g, gindex) in courseGroup.group"
  5902. :key="gindex"
  5903. >
  5904. <div class="group_box">
  5905. <div class="group_title">
  5906. <el-tooltip
  5907. class="item"
  5908. effect="light"
  5909. :content="g.name"
  5910. placement="top"
  5911. >
  5912. <div class="group_name">{{ g.name }}</div>
  5913. </el-tooltip>
  5914. </div>
  5915. <div
  5916. class="group_work"
  5917. v-if="
  5918. g.works &&
  5919. g.works.length &&
  5920. g.works[toolIndex].length
  5921. "
  5922. >
  5923. <div
  5924. class="works"
  5925. style="
  5926. width: 200px;
  5927. height: 140px;
  5928. margin: 10px 10px 10px 0;
  5929. border-radius: 15px;
  5930. box-shadow: 0 0 6px 1px #dfdada;
  5931. "
  5932. v-for="(w, wIndex) in g.works[toolIndex]"
  5933. :key="wIndex"
  5934. :class="w.type == 1 ? 'isTypeOne' : ''"
  5935. >
  5936. <div class="workImg">
  5937. <img
  5938. :src="w.works"
  5939. @click="previewImg(w.works,w)"
  5940. alt
  5941. />
  5942. <div
  5943. class="answerScore"
  5944. v-if="w.score"
  5945. @click.stop="openScore(w)"
  5946. :class="{
  5947. rightW:
  5948. w.userid == userid ||
  5949. tType == 1 ||
  5950. tType == 4,
  5951. }"
  5952. >
  5953. {{ JSON.parse(w.score).wScore }}分
  5954. </div>
  5955. <div
  5956. class="answerScore"
  5957. @click.stop="openScore(w)"
  5958. v-else-if="courseDetail.userid == userid"
  5959. :class="{
  5960. rightW:
  5961. w.userid == userid ||
  5962. tType == 1 ||
  5963. tType == 4,
  5964. }"
  5965. >
  5966. 评分
  5967. </div>
  5968. <img
  5969. class="deleteImg"
  5970. src="../../assets/deleteworks.png"
  5971. v-if="
  5972. w.userid == userid || tType == 1 || tType == 4
  5973. "
  5974. @click.stop="deleteWorks(w.wid)"
  5975. alt
  5976. />
  5977. </div>
  5978. <div class="comment" style="min-width: 200px">
  5979. <div class="worksName">
  5980. <div>{{ w.sName }}</div>
  5981. </div>
  5982. <div class="commentList">
  5983. <div class="commentList">
  5984. <div
  5985. class="commentImg"
  5986. @click="
  5987. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5988. "
  5989. >
  5990. <img
  5991. :src="w.isLikes == true ? likes : noLikes"
  5992. alt=""
  5993. />
  5994. </div>
  5995. <div>{{ w.likesCount }}</div>
  5996. </div>
  5997. <div
  5998. class="commentList"
  5999. style="margin-right: 15px"
  6000. >
  6001. <div
  6002. class="commentImg"
  6003. @click="
  6004. commentOther(
  6005. w,
  6006. toolIndex,
  6007. wIndex,
  6008. null,
  6009. g.id
  6010. )
  6011. "
  6012. >
  6013. <img
  6014. src="../../assets/icon/comment/comment.png"
  6015. alt=""
  6016. />
  6017. </div>
  6018. <div>{{ w.commentCount }}</div>
  6019. </div>
  6020. </div>
  6021. </div>
  6022. </div>
  6023. </div>
  6024. <div class="group_work" v-else>暂无提交作业</div>
  6025. </div>
  6026. </div>
  6027. <div
  6028. :id="'tool-' + toolIndex"
  6029. :style="{
  6030. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6031. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6032. }"
  6033. class="worksDetailBox"
  6034. v-if="
  6035. worksStudent.length &&
  6036. worksStudent[toolIndex].length > 0
  6037. "
  6038. >
  6039. <div
  6040. class="works"
  6041. style="
  6042. width: 200px;
  6043. height: 140px;
  6044. margin: 10px 10px 10px 0;
  6045. border-radius: 15px;
  6046. box-shadow: 0 0 6px 1px #dfdada;
  6047. "
  6048. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6049. :key="wIndex"
  6050. >
  6051. <!-- @click="previewImg(w.works)" -->
  6052. <div class="workImg">
  6053. <img
  6054. :src="w.works"
  6055. @click="previewImg(w.works,w)"
  6056. alt
  6057. />
  6058. <div
  6059. class="answerScore"
  6060. v-if="w.score"
  6061. @click.stop="openScore(w)"
  6062. :class="{
  6063. rightW:
  6064. w.userid == userid || tType == 1 || tType == 4,
  6065. }"
  6066. >
  6067. {{ JSON.parse(w.score).wScore }}分
  6068. </div>
  6069. <div
  6070. class="answerScore"
  6071. @click.stop="openScore(w)"
  6072. v-else-if="courseDetail.userid == userid"
  6073. :class="{
  6074. rightW:
  6075. w.userid == userid || tType == 1 || tType == 4,
  6076. }"
  6077. >
  6078. 评分
  6079. </div>
  6080. <img
  6081. class="deleteImg"
  6082. src="../../assets/deleteworks.png"
  6083. v-if="
  6084. w.userid == userid || tType == 1 || tType == 4
  6085. "
  6086. @click.stop="deleteWorks(w.wid)"
  6087. alt
  6088. />
  6089. </div>
  6090. <div class="comment" style="min-width: 200px">
  6091. <div class="worksName">
  6092. <div>{{ w.sName }}</div>
  6093. </div>
  6094. <div class="commentList">
  6095. <div class="commentList">
  6096. <div
  6097. class="commentImg"
  6098. @click="
  6099. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6100. "
  6101. >
  6102. <img
  6103. :src="w.isLikes == true ? likes : noLikes"
  6104. alt=""
  6105. />
  6106. </div>
  6107. <div>{{ w.likesCount }}</div>
  6108. </div>
  6109. <div class="commentList" style="margin-right: 15px">
  6110. <div
  6111. class="commentImg"
  6112. @click="commentOther(w, toolIndex, wIndex)"
  6113. >
  6114. <img
  6115. src="../../assets/icon/comment/comment.png"
  6116. alt=""
  6117. />
  6118. </div>
  6119. <div>{{ w.commentCount }}</div>
  6120. </div>
  6121. </div>
  6122. </div>
  6123. </div>
  6124. </div>
  6125. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6126. 未提交
  6127. </div>
  6128. <div
  6129. class="noWorksS"
  6130. v-if="noWorksS && noWorksS[toolIndex].length"
  6131. >
  6132. <div
  6133. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6134. :key="sIndex"
  6135. class="noWorksName"
  6136. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  6137. >
  6138. <el-tooltip effect="dark" :content="s.student" placement="top">
  6139. <span>{{ s.student }}</span>
  6140. </el-tooltip>
  6141. </div>
  6142. </div>
  6143. </div>
  6144. <div
  6145. v-if="
  6146. tType &&
  6147. ((tType == 2 && sIsOpen == true) ||
  6148. tType == 1 ||
  6149. tType == 4) &&
  6150. tool.tool.indexOf(26) != -1
  6151. "
  6152. class="worksBox"
  6153. >
  6154. <div
  6155. class="zuoyeYulan"
  6156. v-if="
  6157. worksStudent.length &&
  6158. worksStudent[toolIndex].length > 0
  6159. "
  6160. >
  6161. <div class="worksTop">
  6162. <div>作业预览</div>
  6163. <div
  6164. class="corOpen"
  6165. @click="contract(toolIndex)"
  6166. v-if="
  6167. (isCloseList[toolIndex].isCloseBoolean) &&
  6168. isCloseList[toolIndex].isClose == 0
  6169. "
  6170. >
  6171. 折叠
  6172. </div>
  6173. <div
  6174. class="corOpen"
  6175. @click="contract(toolIndex)"
  6176. v-if="isCloseList[toolIndex].isClose == 1"
  6177. >
  6178. 展开
  6179. </div>
  6180. </div>
  6181. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6182. </div>
  6183. <div
  6184. :id="'tool-' + toolIndex"
  6185. :style="{
  6186. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6187. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6188. }"
  6189. class="worksDetailBox"
  6190. v-if="
  6191. worksStudent.length &&
  6192. worksStudent[toolIndex].length > 0
  6193. "
  6194. >
  6195. <div
  6196. class="works"
  6197. style="width: 240px; height: 140px; overflow: hidden"
  6198. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6199. :key="wIndex"
  6200. :class="w.type == 1 ? 'isTypeOne' : ''"
  6201. >
  6202. <div class="workImg" v-if="w.type == 0">
  6203. <img
  6204. :src="w.works"
  6205. @click="previewImg(w.works,w)"
  6206. alt
  6207. />
  6208. <img
  6209. class="deleteImg"
  6210. src="../../assets/deleteworks.png"
  6211. v-if="
  6212. w.userid == userid || tType == 1 || tType == 4
  6213. "
  6214. @click.stop="deleteWorks(w.wid)"
  6215. alt
  6216. />
  6217. </div>
  6218. <div class="workImg" v-if="w.type == 1">
  6219. <img :src="word" @click="openFile(w.works)" alt />
  6220. <img
  6221. class="deleteImg"
  6222. src="../../assets/deleteworks.png"
  6223. v-if="
  6224. w.userid == userid || tType == 1 || tType == 4
  6225. "
  6226. @click.stop="deleteWorks(w.wid)"
  6227. alt
  6228. />
  6229. </div>
  6230. <div class="worksName">
  6231. <div>{{ w.sName }}</div>
  6232. </div>
  6233. </div>
  6234. </div>
  6235. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6236. 未提交
  6237. </div>
  6238. <div
  6239. class="noWorksS"
  6240. v-if="noWorksS && noWorksS[toolIndex].length"
  6241. >
  6242. <div
  6243. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6244. :key="sIndex"
  6245. class="noWorksName"
  6246. >
  6247. <el-tooltip effect="dark" :content="s.student" placement="top">
  6248. <span>{{ s.student }}</span>
  6249. </el-tooltip>
  6250. </div>
  6251. </div>
  6252. </div>
  6253. <div
  6254. v-if="
  6255. tType &&
  6256. ((tType == 2 && sIsOpen == true) ||
  6257. tType == 1 ||
  6258. tType == 4) &&
  6259. tool.tool.indexOf(40) != -1
  6260. "
  6261. class="worksBox"
  6262. >
  6263. <div
  6264. class="zuoyeYulan"
  6265. v-if="
  6266. worksStudent.length &&
  6267. worksStudent[toolIndex].length > 0
  6268. "
  6269. >
  6270. <div class="worksTop">
  6271. <div>作业预览</div>
  6272. <div
  6273. class="corOpen"
  6274. @click="contract(toolIndex)"
  6275. v-if="
  6276. (isCloseList[toolIndex].isCloseBoolean) &&
  6277. isCloseList[toolIndex].isClose == 0
  6278. "
  6279. >
  6280. 折叠
  6281. </div>
  6282. <div
  6283. class="corOpen"
  6284. @click="contract(toolIndex)"
  6285. v-if="isCloseList[toolIndex].isClose == 1"
  6286. >
  6287. 展开
  6288. </div>
  6289. </div>
  6290. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6291. </div>
  6292. <div
  6293. :id="'tool-' + toolIndex"
  6294. :style="{
  6295. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6296. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6297. }"
  6298. class="worksDetailBox"
  6299. v-if="
  6300. worksStudent.length &&
  6301. worksStudent[toolIndex].length > 0
  6302. "
  6303. >
  6304. <div
  6305. class="works"
  6306. style="
  6307. width: 200px;
  6308. height: 140px;
  6309. margin: 10px 10px 10px 0;
  6310. border-radius: 15px;
  6311. box-shadow: 0 0 6px 1px #dfdada;
  6312. "
  6313. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6314. :key="wIndex"
  6315. :class="w.type == 1 ? 'isTypeOne' : ''"
  6316. >
  6317. <div class="workImg">
  6318. <img
  6319. src="../../assets/icon/works/noImg.png"
  6320. @click="openPj(w.works, toolIndex)"
  6321. alt
  6322. />
  6323. <img
  6324. class="deleteImg"
  6325. src="../../assets/deleteworks.png"
  6326. v-if="
  6327. w.userid == userid || tType == 1 || tType == 4
  6328. "
  6329. @click.stop="deleteWorks(w.wid)"
  6330. alt
  6331. />
  6332. </div>
  6333. <div class="comment" style="min-width: 200px">
  6334. <div class="worksName">
  6335. <div>{{ w.sName }}</div>
  6336. </div>
  6337. <div class="commentList">
  6338. <div class="commentList">
  6339. <div
  6340. class="commentImg"
  6341. @click="
  6342. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6343. "
  6344. >
  6345. <img
  6346. :src="w.isLikes == true ? likes : noLikes"
  6347. alt=""
  6348. />
  6349. </div>
  6350. <div>{{ w.likesCount }}</div>
  6351. </div>
  6352. <div class="commentList" style="margin-right: 15px">
  6353. <div
  6354. class="commentImg"
  6355. @click="commentOther(w, toolIndex, wIndex)"
  6356. >
  6357. <img
  6358. src="../../assets/icon/comment/comment.png"
  6359. alt=""
  6360. />
  6361. </div>
  6362. <div>{{ w.commentCount }}</div>
  6363. </div>
  6364. </div>
  6365. </div>
  6366. </div>
  6367. </div>
  6368. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6369. 未提交
  6370. </div>
  6371. <div
  6372. class="noWorksS"
  6373. v-if="noWorksS && noWorksS[toolIndex].length"
  6374. >
  6375. <div
  6376. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6377. :key="sIndex"
  6378. class="noWorksName"
  6379. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  6380. >
  6381. <el-tooltip effect="dark" :content="s.student" placement="top">
  6382. <span>{{ s.student }}</span>
  6383. </el-tooltip>
  6384. </div>
  6385. </div>
  6386. </div>
  6387. <div
  6388. v-if="
  6389. tType &&
  6390. tType == 2 &&
  6391. !sIsOpen &&
  6392. tool.tool.indexOf(40) != -1
  6393. "
  6394. class="worksBox"
  6395. >
  6396. <div
  6397. class="zuoyeYulan"
  6398. v-if="workStudent[toolIndex].length > 0"
  6399. >
  6400. <span class="worksTitle">作业预览</span>
  6401. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6402. </div>
  6403. <div
  6404. class="worksDetailBox"
  6405. v-if="workStudent[toolIndex].length > 0"
  6406. >
  6407. <div
  6408. class="works"
  6409. style="
  6410. width: 200px;
  6411. height: 140px;
  6412. margin: 10px 10px 10px 0;
  6413. "
  6414. v-for="(w, wIndex) in workStudent[toolIndex]"
  6415. :key="wIndex"
  6416. >
  6417. <div class="workImg">
  6418. <img
  6419. src="../../assets/icon/works/noImg.png"
  6420. @click="openPj(w.works, toolIndex)"
  6421. alt
  6422. />
  6423. <img
  6424. class="deleteImg"
  6425. src="../../assets/deleteworks.png"
  6426. v-if="
  6427. w.userid == userid || tType == 1 || tType == 4
  6428. "
  6429. @click.stop="deleteWorks(w.wid)"
  6430. alt
  6431. />
  6432. </div>
  6433. <div class="worksName">
  6434. <div>{{ w.sName }}</div>
  6435. </div>
  6436. </div>
  6437. </div>
  6438. </div>
  6439. <div
  6440. v-if="
  6441. tType &&
  6442. ((tType == 2 && sIsOpen == true) ||
  6443. tType == 1 ||
  6444. tType == 4) &&
  6445. tool.tool.indexOf(41) != -1
  6446. "
  6447. >
  6448. <AnswerData2
  6449. v-if="
  6450. worksStudent.length &&
  6451. worksStudent[toolIndex].length > 0
  6452. "
  6453. :problemJson="tool.selectJson.answer"
  6454. :people="worksStudent[toolIndex]"
  6455. ></AnswerData2>
  6456. </div>
  6457. <div
  6458. v-if="
  6459. tType &&
  6460. ((tType == 2 && sIsOpen == true) ||
  6461. tType == 1 ||
  6462. tType == 4) &&
  6463. tool.tool.indexOf(41) != -1
  6464. "
  6465. class="worksBox"
  6466. >
  6467. <div
  6468. class="zuoyeYulan"
  6469. v-if="
  6470. worksStudent.length &&
  6471. worksStudent[toolIndex].length > 0
  6472. "
  6473. >
  6474. <div class="worksTop">
  6475. <div>作业预览</div>
  6476. <div
  6477. class="corOpen"
  6478. @click="contract(toolIndex)"
  6479. v-if="
  6480. (isCloseList[toolIndex].isCloseBoolean) &&
  6481. isCloseList[toolIndex].isClose == 0
  6482. "
  6483. >
  6484. 折叠
  6485. </div>
  6486. <div
  6487. class="corOpen"
  6488. @click="contract(toolIndex)"
  6489. v-if="isCloseList[toolIndex].isClose == 1"
  6490. >
  6491. 展开
  6492. </div>
  6493. </div>
  6494. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6495. </div>
  6496. <div
  6497. :id="'tool-' + toolIndex"
  6498. :style="{
  6499. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6500. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6501. }"
  6502. class="worksDetailBox"
  6503. v-if="
  6504. worksStudent.length &&
  6505. worksStudent[toolIndex].length > 0
  6506. "
  6507. >
  6508. <div
  6509. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6510. :key="wIndex"
  6511. class="isWorksName2"
  6512. @click="openXz(w, toolIndex)"
  6513. >
  6514. {{ w.sName }}
  6515. <img
  6516. class="deleteImg deleteImg2"
  6517. src="../../assets/deleteworks.png"
  6518. v-if="w.userid == userid || tType == 1 || tType == 4"
  6519. @click.stop="deleteWorks(w.wid)"
  6520. alt
  6521. />
  6522. </div>
  6523. <!-- <div
  6524. class="works"
  6525. style="
  6526. width: 200px;
  6527. height: 140px;
  6528. margin: 10px 10px 10px 0;
  6529. border-radius: 15px;
  6530. box-shadow: 0 0 6px 1px #dfdada;
  6531. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6532. :class="w.type == 5 ? 'isTypeOne' : ''">
  6533. <div class="workImg">
  6534. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6535. </div>
  6536. <div class="worksName">
  6537. <div>{{ w.sName }}</div>
  6538. </div>
  6539. </div> -->
  6540. </div>
  6541. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6542. 未提交
  6543. </div>
  6544. <div
  6545. class="noWorksS"
  6546. v-if="noWorksS && noWorksS[toolIndex].length"
  6547. >
  6548. <div
  6549. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6550. :key="sIndex"
  6551. class="noWorksName"
  6552. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6553. >
  6554. <el-tooltip effect="dark" :content="s.student" placement="top">
  6555. <span>{{ s.student }}</span>
  6556. </el-tooltip>
  6557. </div>
  6558. </div>
  6559. </div>
  6560. <div
  6561. v-if="
  6562. tType &&
  6563. tType == 2 &&
  6564. !sIsOpen &&
  6565. tool.tool.indexOf(41) != -1
  6566. "
  6567. class="worksBox"
  6568. >
  6569. <div
  6570. class="zuoyeYulan"
  6571. v-if="workStudent[toolIndex].length > 0"
  6572. >
  6573. <span class="worksTitle">作业预览</span>
  6574. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6575. </div>
  6576. <div
  6577. class="worksDetailBox"
  6578. v-if="workStudent[toolIndex].length > 0"
  6579. >
  6580. <div
  6581. class="works"
  6582. style="
  6583. width: 200px;
  6584. height: 140px;
  6585. margin: 10px 10px 10px 0;
  6586. "
  6587. v-for="(w, wIndex) in workStudent[toolIndex]"
  6588. :key="wIndex"
  6589. >
  6590. <div class="workImg">
  6591. <img
  6592. src="../../assets/icon/works/noImg.png"
  6593. @click="openXz(w, toolIndex)"
  6594. alt
  6595. />
  6596. <img
  6597. class="deleteImg"
  6598. src="../../assets/deleteworks.png"
  6599. v-if="
  6600. w.userid == userid || tType == 1 || tType == 4
  6601. "
  6602. @click.stop="deleteWorks(w.wid)"
  6603. alt
  6604. />
  6605. </div>
  6606. <div class="worksName">
  6607. <div>{{ w.sName }}</div>
  6608. </div>
  6609. </div>
  6610. </div>
  6611. </div>
  6612. <div v-if="false" class="xuan_right_box">
  6613. <div
  6614. class="tool_right_box"
  6615. v-for="(item, index) in tool.sentenceList"
  6616. :key="index"
  6617. >
  6618. <div>
  6619. <span
  6620. style="word-break: break-all; white-space: normal"
  6621. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6622. >
  6623. </div>
  6624. <div class="right_box_xuan">
  6625. <span>正确率</span>
  6626. <span>{{
  6627. (checkJson[toolIndex][index].right
  6628. ? checkJson[toolIndex][index].right
  6629. : 0) + "%"
  6630. }}</span>
  6631. </div>
  6632. <div class="right_box_xuan">
  6633. <span>答对人数</span>
  6634. <span>{{
  6635. checkJson[toolIndex][index].rightPerson.length
  6636. }}</span>
  6637. </div>
  6638. </div>
  6639. </div>
  6640. <div
  6641. v-if="
  6642. tType &&
  6643. ((tType == 2 && sIsOpen == true) ||
  6644. tType == 1 ||
  6645. tType == 4) &&
  6646. tool.tool.indexOf(47) != -1
  6647. "
  6648. >
  6649. <!-- <AnswerData
  6650. v-if="
  6651. checkJson[toolIndex].length &&
  6652. (tool.sentenceList || tool.sentenceList.length > 0)
  6653. "
  6654. :people="checkJson[toolIndex]"
  6655. ></AnswerData> -->
  6656. <sortToolWorkShow v-if="
  6657. worksStudent[toolIndex].length
  6658. "
  6659. :people="worksStudent[toolIndex]"></sortToolWorkShow>
  6660. </div>
  6661. <div
  6662. v-if="
  6663. tType &&
  6664. tType == 2 &&
  6665. !sIsOpen &&
  6666. tool.tool.indexOf(47) != -1
  6667. "
  6668. class="worksBox"
  6669. >
  6670. <div
  6671. class="zuoyeYulan"
  6672. v-if="workStudent[toolIndex].length > 0"
  6673. >
  6674. <span class="worksTitle">作业预览</span>
  6675. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6676. </div>
  6677. <div
  6678. class="worksDetailBox"
  6679. v-if="workStudent[toolIndex].length > 0"
  6680. >
  6681. <div
  6682. class="works"
  6683. style="
  6684. width: 200px;
  6685. height: 140px;
  6686. margin: 10px 10px 10px 0;
  6687. "
  6688. v-for="(w, wIndex) in workStudent[toolIndex]"
  6689. :key="wIndex"
  6690. >
  6691. <!-- @click="openXz(w, toolIndex)" -->
  6692. <div class="workImg" @click="openSen(w, toolIndex)">
  6693. <img src="../../assets/icon/works/noImg.png" alt />
  6694. <img
  6695. class="deleteImg"
  6696. src="../../assets/deleteworks.png"
  6697. v-if="
  6698. w.userid == userid || tType == 1 || tType == 4
  6699. "
  6700. @click.stop="deleteWorks(w.wid)"
  6701. alt
  6702. />
  6703. </div>
  6704. <div class="worksName">
  6705. <div>
  6706. {{ w.sName }}
  6707. </div>
  6708. </div>
  6709. </div>
  6710. </div>
  6711. </div>
  6712. <div
  6713. v-if="
  6714. tType &&
  6715. ((tType == 2 && sIsOpen == true) ||
  6716. tType == 1 ||
  6717. tType == 4) &&
  6718. tool.tool.indexOf(47) != -1
  6719. "
  6720. class="worksBox"
  6721. >
  6722. <div
  6723. class="zuoyeYulan"
  6724. v-if="
  6725. worksStudent.length &&
  6726. worksStudent[toolIndex].length > 0
  6727. "
  6728. >
  6729. <div class="worksTop">
  6730. <div>作业预览</div>
  6731. <div
  6732. class="corOpen"
  6733. @click="contract(toolIndex)"
  6734. v-if="
  6735. (isCloseList[toolIndex].isCloseBoolean) &&
  6736. isCloseList[toolIndex].isClose == 0
  6737. "
  6738. >
  6739. 折叠
  6740. </div>
  6741. <div
  6742. class="corOpen"
  6743. @click="contract(toolIndex)"
  6744. v-if="isCloseList[toolIndex].isClose == 1"
  6745. >
  6746. 展开
  6747. </div>
  6748. </div>
  6749. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6750. </div>
  6751. <div
  6752. :id="'tool-' + toolIndex"
  6753. :style="{
  6754. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6755. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6756. }"
  6757. class="worksDetailBox"
  6758. v-if="
  6759. worksStudent.length &&
  6760. worksStudent[toolIndex].length > 0
  6761. "
  6762. >
  6763. <!-- @click="openXz(w, toolIndex)" -->
  6764. <div
  6765. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6766. :key="wIndex"
  6767. class="isWorksName2"
  6768. @click="openSen(w, toolIndex)"
  6769. >
  6770. {{ w.sName }}
  6771. <img
  6772. class="deleteImg deleteImg2"
  6773. src="../../assets/deleteworks.png"
  6774. v-if="w.userid == userid || tType == 1 || tType == 4"
  6775. @click.stop="deleteWorks(w.wid)"
  6776. alt
  6777. />
  6778. </div>
  6779. </div>
  6780. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6781. 未提交
  6782. </div>
  6783. <div
  6784. class="noWorksS"
  6785. v-if="noWorksS && noWorksS[toolIndex].length"
  6786. >
  6787. <div
  6788. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6789. :key="sIndex"
  6790. class="noWorksName"
  6791. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6792. >
  6793. <el-tooltip effect="dark" :content="s.student" placement="top">
  6794. <span>{{ s.student }}</span>
  6795. </el-tooltip>
  6796. </div>
  6797. </div>
  6798. </div>
  6799. <div
  6800. v-if="
  6801. tType &&
  6802. ((tType == 2 && sIsOpen == true) ||
  6803. tType == 1 ||
  6804. tType == 4) &&
  6805. tool.tool.indexOf(48) != -1
  6806. "
  6807. class="worksBox"
  6808. >
  6809. <div
  6810. class="zuoyeYulan"
  6811. v-if="
  6812. worksStudent.length &&
  6813. worksStudent[toolIndex].length > 0
  6814. "
  6815. >
  6816. <div class="worksTop">
  6817. <div>作业预览</div>
  6818. <div
  6819. class="corOpen"
  6820. @click="contract(toolIndex)"
  6821. v-if="
  6822. (isCloseList[toolIndex].isCloseBoolean) &&
  6823. isCloseList[toolIndex].isClose == 0
  6824. "
  6825. >
  6826. 折叠
  6827. </div>
  6828. <div
  6829. class="corOpen"
  6830. @click="contract(toolIndex)"
  6831. v-if="isCloseList[toolIndex].isClose == 1"
  6832. >
  6833. 展开
  6834. </div>
  6835. </div>
  6836. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6837. </div>
  6838. <div
  6839. :id="'tool-' + toolIndex"
  6840. :style="{
  6841. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6842. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6843. }"
  6844. class="worksDetailBox"
  6845. v-if="
  6846. worksStudent.length &&
  6847. worksStudent[toolIndex].length > 0
  6848. "
  6849. >
  6850. <div
  6851. class="works"
  6852. style="
  6853. width: 200px;
  6854. height: 140px;
  6855. margin: 10px 10px 10px 0;
  6856. border-radius: 15px;
  6857. box-shadow: 0 0 6px 1px #dfdada;
  6858. "
  6859. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6860. :key="wIndex"
  6861. :class="w.type == 1 ? 'isTypeOne' : ''"
  6862. >
  6863. <div class="workImg">
  6864. <img :src="word" @click="openTable(w)" alt />
  6865. <!-- @click="openFile(w.works)" -->
  6866. <div
  6867. class="answerScore"
  6868. v-if="w.score"
  6869. @click.stop="openScore(w)"
  6870. :class="{
  6871. rightW:
  6872. w.userid == userid ||
  6873. tType == 1 ||
  6874. tType == 4 ||
  6875. w.ateacher == userid,
  6876. }"
  6877. >
  6878. {{ JSON.parse(w.score).wScore }}分
  6879. </div>
  6880. <div
  6881. class="answerScore"
  6882. @click.stop="openScore(w)"
  6883. v-else-if="courseDetail.userid == userid"
  6884. :class="{
  6885. rightW:
  6886. w.userid == userid ||
  6887. tType == 1 ||
  6888. tType == 4 ||
  6889. w.ateacher == userid,
  6890. }"
  6891. >
  6892. 评分
  6893. </div>
  6894. <img
  6895. class="deleteImg"
  6896. src="../../assets/deleteworks.png"
  6897. v-if="
  6898. w.userid == userid || tType == 1 || tType == 4
  6899. "
  6900. @click.stop="deleteWorks(w.wid)"
  6901. alt
  6902. />
  6903. </div>
  6904. <div class="comment" style="min-width: 200px">
  6905. <div class="worksName">
  6906. <div>{{ w.sName }}</div>
  6907. </div>
  6908. <div class="commentList">
  6909. <div class="commentList">
  6910. <div
  6911. class="commentImg"
  6912. @click="
  6913. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6914. "
  6915. >
  6916. <img
  6917. :src="w.isLikes == true ? likes : noLikes"
  6918. alt=""
  6919. />
  6920. </div>
  6921. <div>{{ w.likesCount }}</div>
  6922. </div>
  6923. <div class="commentList" style="margin-right: 15px">
  6924. <div
  6925. class="commentImg"
  6926. @click="commentOther(w, toolIndex, wIndex)"
  6927. >
  6928. <img
  6929. src="../../assets/icon/comment/comment.png"
  6930. alt=""
  6931. />
  6932. </div>
  6933. <div>{{ w.commentCount }}</div>
  6934. </div>
  6935. </div>
  6936. </div>
  6937. </div>
  6938. </div>
  6939. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6940. 未提交
  6941. </div>
  6942. <div
  6943. class="noWorksS"
  6944. v-if="noWorksS && noWorksS[toolIndex].length"
  6945. >
  6946. <div
  6947. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6948. :key="sIndex"
  6949. class="noWorksName"
  6950. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6951. >
  6952. <el-tooltip effect="dark" :content="s.student" placement="top">
  6953. <span>{{ s.student }}</span>
  6954. </el-tooltip>
  6955. </div>
  6956. </div>
  6957. </div>
  6958. <div
  6959. v-if="
  6960. tType &&
  6961. tType == 2 &&
  6962. !sIsOpen &&
  6963. tool.tool.indexOf(48) != -1
  6964. "
  6965. class="worksBox"
  6966. >
  6967. <div
  6968. class="zuoyeYulan"
  6969. v-if="workStudent[toolIndex].length > 0"
  6970. >
  6971. <span class="worksTitle">作业预览</span>
  6972. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6973. </div>
  6974. <div
  6975. class="worksDetailBox"
  6976. v-if="workStudent[toolIndex].length > 0"
  6977. >
  6978. <div
  6979. class="works"
  6980. style="
  6981. width: 200px;
  6982. height: 140px;
  6983. margin: 10px 10px 10px 0;
  6984. box-shadow: 0 0 6px 1px #dfdada;
  6985. "
  6986. v-for="(w, wIndex) in workStudent[toolIndex]"
  6987. :key="wIndex"
  6988. >
  6989. <div class="workImg">
  6990. <img :src="word" @click="openTable(w)" alt />
  6991. <div
  6992. class="answerScore"
  6993. v-if="w.score"
  6994. @click.stop="openScore(w)"
  6995. :class="{
  6996. rightW:
  6997. w.userid == userid || tType == 1 || tType == 4,
  6998. }"
  6999. >
  7000. {{ JSON.parse(w.score).wScore }}分
  7001. </div>
  7002. <div
  7003. class="answerScore"
  7004. @click.stop="openScore(w)"
  7005. v-else-if="courseDetail.userid == userid"
  7006. :class="{
  7007. rightW:
  7008. w.userid == userid || tType == 1 || tType == 4,
  7009. }"
  7010. >
  7011. 评分
  7012. </div>
  7013. <img
  7014. class="deleteImg"
  7015. src="../../assets/deleteworks.png"
  7016. v-if="
  7017. w.userid == userid || tType == 1 || tType == 4
  7018. "
  7019. @click.stop="deleteWorks(w.wid)"
  7020. alt
  7021. />
  7022. </div>
  7023. <div class="worksName">
  7024. <div>{{ w.sName }}</div>
  7025. </div>
  7026. </div>
  7027. </div>
  7028. </div>
  7029. <div
  7030. v-if="
  7031. tType &&
  7032. ((tType == 2 && sIsOpen == true) ||
  7033. tType == 1 ||
  7034. tType == 4) &&
  7035. tool.tool.indexOf(52) != -1
  7036. "
  7037. class="worksBox"
  7038. >
  7039. <div
  7040. class="zuoyeYulan"
  7041. v-if="
  7042. worksStudent.length &&
  7043. worksStudent[toolIndex].length > 0
  7044. "
  7045. >
  7046. <div class="worksTop">
  7047. <div>作业预览</div>
  7048. <div
  7049. class="corOpen"
  7050. @click="contract(toolIndex)"
  7051. v-if="
  7052. (isCloseList[toolIndex].isCloseBoolean) &&
  7053. isCloseList[toolIndex].isClose == 0
  7054. "
  7055. >
  7056. 折叠
  7057. </div>
  7058. <div
  7059. class="corOpen"
  7060. @click="contract(toolIndex)"
  7061. v-if="isCloseList[toolIndex].isClose == 1"
  7062. >
  7063. 展开
  7064. </div>
  7065. </div>
  7066. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7067. </div>
  7068. <div
  7069. :id="'tool-' + toolIndex"
  7070. :style="{
  7071. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  7072. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  7073. }"
  7074. class="worksDetailBox"
  7075. v-if="
  7076. worksStudent.length &&
  7077. worksStudent[toolIndex].length > 0
  7078. "
  7079. >
  7080. <div
  7081. class="works"
  7082. style="
  7083. width: 200px;
  7084. height: 140px;
  7085. margin: 10px 10px 10px 0;
  7086. border-radius: 15px;
  7087. box-shadow: 0 0 6px 1px #dfdada;
  7088. "
  7089. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7090. :key="wIndex"
  7091. :class="w.type == 1 ? 'isTypeOne' : ''"
  7092. >
  7093. <div class="workImg">
  7094. <img :src="word" @click="openWord(w)" alt />
  7095. <!-- @click="openFile(w.works)" -->
  7096. <div
  7097. class="answerScore"
  7098. v-if="w.score"
  7099. @click.stop="openScore(w)"
  7100. :class="{
  7101. rightW:
  7102. w.userid == userid ||
  7103. tType == 1 ||
  7104. tType == 4 ||
  7105. w.ateacher == userid,
  7106. }"
  7107. >
  7108. {{ JSON.parse(w.score).wScore }}分
  7109. </div>
  7110. <div
  7111. class="answerScore"
  7112. @click.stop="openScore(w)"
  7113. v-else-if="courseDetail.userid == userid"
  7114. :class="{
  7115. rightW:
  7116. w.userid == userid ||
  7117. tType == 1 ||
  7118. tType == 4 ||
  7119. w.ateacher == userid,
  7120. }"
  7121. >
  7122. 评分
  7123. </div>
  7124. <img
  7125. class="deleteImg"
  7126. src="../../assets/deleteworks.png"
  7127. v-if="
  7128. w.userid == userid || tType == 1 || tType == 4
  7129. "
  7130. @click.stop="deleteWorks(w.wid)"
  7131. alt
  7132. />
  7133. </div>
  7134. <div class="comment" style="min-width: 200px">
  7135. <div class="worksName">
  7136. <div>{{ w.sName }}</div>
  7137. </div>
  7138. <div class="commentList">
  7139. <div class="commentList">
  7140. <div
  7141. class="commentImg"
  7142. @click="
  7143. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  7144. "
  7145. >
  7146. <img
  7147. :src="w.isLikes == true ? likes : noLikes"
  7148. alt=""
  7149. />
  7150. </div>
  7151. <div>{{ w.likesCount }}</div>
  7152. </div>
  7153. <div class="commentList" style="margin-right: 15px">
  7154. <div
  7155. class="commentImg"
  7156. @click="commentOther(w, toolIndex, wIndex)"
  7157. >
  7158. <img
  7159. src="../../assets/icon/comment/comment.png"
  7160. alt=""
  7161. />
  7162. </div>
  7163. <div>{{ w.commentCount }}</div>
  7164. </div>
  7165. </div>
  7166. </div>
  7167. </div>
  7168. </div>
  7169. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7170. 未提交
  7171. </div>
  7172. <div
  7173. class="noWorksS"
  7174. v-if="noWorksS && noWorksS[toolIndex].length"
  7175. >
  7176. <div
  7177. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7178. :key="sIndex"
  7179. class="noWorksName"
  7180. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  7181. >
  7182. <el-tooltip effect="dark" :content="s.student" placement="top">
  7183. <span>{{ s.student }}</span>
  7184. </el-tooltip>
  7185. </div>
  7186. </div>
  7187. </div>
  7188. <div
  7189. v-if="
  7190. tType &&
  7191. tType == 2 &&
  7192. !sIsOpen &&
  7193. tool.tool.indexOf(52) != -1
  7194. "
  7195. class="worksBox"
  7196. >
  7197. <div
  7198. class="zuoyeYulan"
  7199. v-if="workStudent[toolIndex].length > 0"
  7200. >
  7201. <span class="worksTitle">作业预览</span>
  7202. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7203. </div>
  7204. <div
  7205. class="worksDetailBox"
  7206. v-if="workStudent[toolIndex].length > 0"
  7207. >
  7208. <div
  7209. class="works"
  7210. style="
  7211. width: 200px;
  7212. height: 140px;
  7213. margin: 10px 10px 10px 0;
  7214. box-shadow: 0 0 6px 1px #dfdada;
  7215. "
  7216. v-for="(w, wIndex) in workStudent[toolIndex]"
  7217. :key="wIndex"
  7218. >
  7219. <div class="workImg">
  7220. <img :src="word" @click="openWord(w)" alt />
  7221. <div
  7222. class="answerScore"
  7223. v-if="w.score"
  7224. @click.stop="openScore(w)"
  7225. :class="{
  7226. rightW:
  7227. w.userid == userid || tType == 1 || tType == 4,
  7228. }"
  7229. >
  7230. {{ JSON.parse(w.score).wScore }}分
  7231. </div>
  7232. <div
  7233. class="answerScore"
  7234. @click.stop="openScore(w)"
  7235. v-else-if="courseDetail.userid == userid"
  7236. :class="{
  7237. rightW:
  7238. w.userid == userid || tType == 1 || tType == 4,
  7239. }"
  7240. >
  7241. 评分
  7242. </div>
  7243. <img
  7244. class="deleteImg"
  7245. src="../../assets/deleteworks.png"
  7246. v-if="
  7247. w.userid == userid || tType == 1 || tType == 4
  7248. "
  7249. @click.stop="deleteWorks(w.wid)"
  7250. alt
  7251. />
  7252. </div>
  7253. <div class="worksName">
  7254. <div>{{ w.sName }}</div>
  7255. </div>
  7256. </div>
  7257. </div>
  7258. </div>
  7259. <div
  7260. v-if="tool.tool.indexOf(49) != -1"
  7261. class="xuan_right_box"
  7262. style="margin: 0 15px 0 25px; width: 93%"
  7263. >
  7264. <div
  7265. v-if="courseDetail.userid == userid"
  7266. style="
  7267. display: flex;
  7268. justify-content: flex-end;
  7269. margin-right: 10px;
  7270. "
  7271. >
  7272. <el-button
  7273. type="primary"
  7274. size="small"
  7275. @click="addTools(49, toolIndex, taskCount)"
  7276. >分组设置</el-button
  7277. >
  7278. </div>
  7279. <div
  7280. v-if="groupStudentUid[toolIndex]"
  7281. class="group_staic_box"
  7282. >
  7283. <div
  7284. v-for="(gp, gd) in tool.groupJson.group"
  7285. :key="gd"
  7286. class="group_staic"
  7287. >
  7288. <span> {{ gp.name }}</span>
  7289. <span>
  7290. 目前人数{{
  7291. groupStudentUid[toolIndex][gd].length
  7292. }}人</span
  7293. >
  7294. </div>
  7295. </div>
  7296. </div>
  7297. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  7298. <div
  7299. class="zuoyeYulan"
  7300. v-if="
  7301. worksStudent.length &&
  7302. worksStudent[toolIndex].length > 0
  7303. "
  7304. >
  7305. <span class="worksTitle">作业预览</span>
  7306. </div>
  7307. <div>
  7308. <div
  7309. class="group_workBox"
  7310. v-for="(g, gindex) in tool.groupJson.group"
  7311. :key="gindex"
  7312. >
  7313. <div
  7314. class="group_box"
  7315. v-if="
  7316. groupStudentUid[toolIndex] &&
  7317. worksStudent[toolIndex] &&
  7318. (worksStudent[toolIndex][gindex].length ||
  7319. groupStudentUid[toolIndex][gindex].indexOf(
  7320. userid
  7321. ) != -1)
  7322. "
  7323. >
  7324. <div class="group_title">
  7325. <el-tooltip
  7326. class="item"
  7327. effect="light"
  7328. :content="g.name"
  7329. placement="top"
  7330. >
  7331. <div class="group_name">{{ g.name }}</div>
  7332. </el-tooltip>
  7333. <el-button
  7334. type="primary"
  7335. v-if="
  7336. groupStudentUid[toolIndex][gindex].indexOf(
  7337. userid
  7338. ) != -1
  7339. "
  7340. @click="groupUpload(toolIndex, taskCount, gindex)"
  7341. >上传作业</el-button
  7342. >
  7343. </div>
  7344. <div class="group_work">
  7345. <div
  7346. class="works"
  7347. style="
  7348. width: 200px;
  7349. height: 140px;
  7350. margin: 10px 10px 10px 0;
  7351. border-radius: 15px;
  7352. box-shadow: 0 0 6px 1px #dfdada;
  7353. "
  7354. v-for="(w, wIndex) in worksStudent[toolIndex][
  7355. gindex
  7356. ]"
  7357. :key="wIndex"
  7358. :class="w.type == 1 ? 'isTypeOne' : ''"
  7359. >
  7360. <div class="workImg" v-if="w.type == 0">
  7361. <img
  7362. :src="w.works"
  7363. @click="previewImg(w.works,w)"
  7364. alt
  7365. />
  7366. <div
  7367. class="answerScore"
  7368. v-if="w.score"
  7369. @click.stop="openScore(w)"
  7370. :class="{
  7371. rightW:
  7372. w.userid == userid ||
  7373. tType == 1 ||
  7374. tType == 4 ||
  7375. w.ateacher == userid,
  7376. }"
  7377. >
  7378. {{ JSON.parse(w.score).wScore }}分
  7379. </div>
  7380. <div
  7381. class="answerScore"
  7382. @click.stop="openScore(w)"
  7383. v-else-if="courseDetail.userid == userid"
  7384. :class="{
  7385. rightW:
  7386. w.userid == userid ||
  7387. tType == 1 ||
  7388. tType == 4 ||
  7389. w.ateacher == userid,
  7390. }"
  7391. >
  7392. 评分
  7393. </div>
  7394. <img
  7395. class="deleteImg"
  7396. src="../../assets/deleteworks.png"
  7397. v-if="
  7398. w.userid == userid ||
  7399. tType == 1 ||
  7400. tType == 4
  7401. "
  7402. @click.stop="deleteWorks(w.wid)"
  7403. alt
  7404. />
  7405. </div>
  7406. <div class="workImg" v-if="w.type == 1">
  7407. <img
  7408. :src="word"
  7409. @click="openFile(w.works)"
  7410. alt
  7411. />
  7412. <!-- @click="openFile(w.works)" -->
  7413. <div
  7414. class="answerScore"
  7415. v-if="w.score"
  7416. @click.stop="openScore(w)"
  7417. :class="{
  7418. rightW:
  7419. w.userid == userid ||
  7420. tType == 1 ||
  7421. tType == 4 ||
  7422. w.ateacher == userid,
  7423. }"
  7424. >
  7425. {{ JSON.parse(w.score).wScore }}分
  7426. </div>
  7427. <div
  7428. class="answerScore"
  7429. @click.stop="openScore(w)"
  7430. v-else-if="courseDetail.userid == userid"
  7431. :class="{
  7432. rightW:
  7433. w.userid == userid ||
  7434. tType == 1 ||
  7435. tType == 4 ||
  7436. w.ateacher == userid,
  7437. }"
  7438. >
  7439. 评分
  7440. </div>
  7441. <img
  7442. class="deleteImg"
  7443. src="../../assets/deleteworks.png"
  7444. v-if="
  7445. w.userid == userid ||
  7446. tType == 1 ||
  7447. tType == 4
  7448. "
  7449. @click.stop="deleteWorks(w.wid)"
  7450. alt
  7451. />
  7452. </div>
  7453. <div class="workImg" v-if="w.type == 3">
  7454. <img
  7455. style="cursor: pointer"
  7456. :src="video"
  7457. @click="openVideo(w)"
  7458. alt
  7459. />
  7460. <!-- @click="openVideo(w.works)" -->
  7461. <div
  7462. class="answerScore"
  7463. v-if="w.score"
  7464. @click.stop="openScore(w)"
  7465. :class="{
  7466. rightW:
  7467. w.userid == userid ||
  7468. tType == 1 ||
  7469. tType == 4 ||
  7470. w.ateacher == userid,
  7471. }"
  7472. >
  7473. {{ JSON.parse(w.score).wScore }}分
  7474. </div>
  7475. <div
  7476. class="answerScore"
  7477. @click.stop="openScore(w)"
  7478. v-else-if="courseDetail.userid == userid"
  7479. :class="{
  7480. rightW:
  7481. w.userid == userid ||
  7482. tType == 1 ||
  7483. tType == 4 ||
  7484. w.ateacher == userid,
  7485. }"
  7486. >
  7487. 评分
  7488. </div>
  7489. <img
  7490. class="deleteImg"
  7491. src="../../assets/deleteworks.png"
  7492. v-if="
  7493. w.userid == userid ||
  7494. tType == 1 ||
  7495. tType == 4
  7496. "
  7497. @click.stop="deleteWorks(w.wid)"
  7498. alt
  7499. />
  7500. </div>
  7501. <div class="workImg" v-if="w.type == 12">
  7502. <img
  7503. style="cursor: pointer"
  7504. :src="word2"
  7505. @click="downloadFile(w.works,w.userid)"
  7506. alt
  7507. />
  7508. <!-- @click="openVideo(w.works)" -->
  7509. <div
  7510. class="answerScore"
  7511. v-if="w.score"
  7512. @click.stop="openScore(w)"
  7513. :class="{
  7514. rightW:
  7515. w.userid == userid ||
  7516. tType == 1 ||
  7517. tType == 4 ||
  7518. w.ateacher == userid,
  7519. }"
  7520. >
  7521. {{ JSON.parse(w.score).wScore }}分
  7522. </div>
  7523. <div
  7524. class="answerScore"
  7525. @click.stop="openScore(w)"
  7526. v-else-if="courseDetail.userid == userid"
  7527. :class="{
  7528. rightW:
  7529. w.userid == userid ||
  7530. tType == 1 ||
  7531. tType == 4 ||
  7532. w.ateacher == userid,
  7533. }"
  7534. >
  7535. 评分
  7536. </div>
  7537. <img
  7538. class="deleteImg"
  7539. src="../../assets/deleteworks.png"
  7540. v-if="
  7541. w.userid == userid ||
  7542. tType == 1 ||
  7543. tType == 4
  7544. "
  7545. @click.stop="deleteWorks(w.wid)"
  7546. alt
  7547. />
  7548. </div>
  7549. <div class="comment" style="min-width: 200px">
  7550. <div class="worksName">
  7551. <div>{{ w.sName }}</div>
  7552. </div>
  7553. <div class="commentList">
  7554. <div class="commentList">
  7555. <div
  7556. class="commentImg"
  7557. @click="
  7558. isLikes(
  7559. w.wid,
  7560. userid,
  7561. 1,
  7562. null,
  7563. w.isLikes,
  7564. w.sName
  7565. )
  7566. "
  7567. >
  7568. <img
  7569. :src="
  7570. w.isLikes == true ? likes : noLikes
  7571. "
  7572. alt=""
  7573. />
  7574. </div>
  7575. <div>{{ w.likesCount }}</div>
  7576. </div>
  7577. <div
  7578. class="commentList"
  7579. style="margin-right: 15px"
  7580. >
  7581. <div
  7582. class="commentImg"
  7583. @click="
  7584. commentOther(
  7585. w,
  7586. toolIndex,
  7587. wIndex,
  7588. gindex
  7589. )
  7590. "
  7591. >
  7592. <img
  7593. src="../../assets/icon/comment/comment.png"
  7594. alt=""
  7595. />
  7596. </div>
  7597. <div>{{ w.commentCount }}</div>
  7598. </div>
  7599. </div>
  7600. </div>
  7601. </div>
  7602. </div>
  7603. </div>
  7604. </div>
  7605. </div>
  7606. </div>
  7607. </div>
  7608. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7609. 上传文件
  7610. <input
  7611. type="file"
  7612. accept="image/png, image/gif, image/jpeg"
  7613. style="display: none"
  7614. @change="beforeUpload1($event, 2, index)"
  7615. />
  7616. </div>-->
  7617. </div>
  7618. </div>
  7619. <!-- <div
  7620. class="vedioBox"
  7621. style="margin-top: 10px"
  7622. v-if="
  7623. courseDetail.userid == userid ||
  7624. (courseDetail.course_teacher &&
  7625. courseDetail.course_teacher.indexOf(userid) != -1)
  7626. "
  7627. :style="{
  7628. borderRadius:
  7629. !(
  7630. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7631. .toolChoose[0].tool &&
  7632. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7633. .toolChoose[0].tool.length > 0
  7634. ) &&
  7635. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7636. .taskDetail == '' &&
  7637. vChapterData[taskCount].length == 0 &&
  7638. fileC[taskCount].length == 0
  7639. ? '0 0 20px 20px'
  7640. : '20px',
  7641. }"
  7642. >
  7643. <div
  7644. class="queTop"
  7645. @click="isClose = !isClose"
  7646. style="
  7647. padding: 15px 0 15px 37px;
  7648. justify-content: space-between;
  7649. "
  7650. >
  7651. <div class="queTopTitle">新增工具</div>
  7652. <div class="queTopRight">
  7653. <div class="queTopClose" v-if="isClose == 0">
  7654. 展开
  7655. <div class="closeImg">
  7656. <img src="../../assets/icon/newIcon/close.png" alt="" />
  7657. </div>
  7658. </div>
  7659. <div class="queTopClose" v-if="isClose == 1">
  7660. 折叠
  7661. <div class="openImg">
  7662. <img src="../../assets/icon/newIcon/open.png" alt="" />
  7663. </div>
  7664. </div>
  7665. <el-button
  7666. style="margin: 0 30px 0 auto"
  7667. type="primary"
  7668. size="small"
  7669. v-if="isClose == 1 && checktoolArray.length > 0"
  7670. @click.stop="addToolChoose"
  7671. >确定</el-button
  7672. >
  7673. </div>
  7674. </div>
  7675. <div
  7676. class="tool_work_box"
  7677. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7678. >
  7679. <div class="tool_box">
  7680. <div class="tool_type_box">
  7681. <div class="chooseWho">
  7682. <div
  7683. :class="toolType == 0 ? 'isChooseActive' : ''"
  7684. @click="(toolType = 0), $forceUpdate()"
  7685. >
  7686. 互动类
  7687. </div>
  7688. <div
  7689. :class="toolType == 1 ? 'isChooseActive' : ''"
  7690. @click="(toolType = 1), $forceUpdate()"
  7691. >
  7692. 思维类
  7693. </div>
  7694. <div
  7695. :class="toolType == 2 ? 'isChooseActive' : ''"
  7696. @click="(toolType = 2), $forceUpdate()"
  7697. >
  7698. 测评类
  7699. </div>
  7700. <div
  7701. :class="toolType == 3 ? 'isChooseActive' : ''"
  7702. @click="(toolType = 3), $forceUpdate()"
  7703. >
  7704. 编程类
  7705. </div>
  7706. <div
  7707. :class="toolType == 5 ? 'isChooseActive' : ''"
  7708. @click="(toolType = 5), $forceUpdate()"
  7709. >
  7710. 学科类
  7711. </div>
  7712. </div>
  7713. </div>
  7714. <div>
  7715. <div class="toolSort" v-if="toolType == 0">
  7716. <div class="tool">
  7717. <div class="whiteBIcon" @click="addTools2(10)">
  7718. <img
  7719. src="../../assets/icon/thirdToolList/time.png"
  7720. alt
  7721. />
  7722. <div style="margin: 5px 0">倒计时</div>
  7723. </div>
  7724. <div class="check" @click="addTools2(10)">
  7725. <img
  7726. src="../../assets/icon/checkNo.png"
  7727. alt
  7728. v-if="checktoolArray.indexOf(10) == -1"
  7729. />
  7730. <div class="checkDiv" v-else>
  7731. <img src="../../assets/icon/checkedIs.png" alt /><span
  7732. >已选择</span
  7733. >
  7734. </div>
  7735. </div>
  7736. </div>
  7737. <div class="tool">
  7738. <div class="whiteBIcon" @click="addTools2(65)">
  7739. <img
  7740. src="../../assets/icon/firstToolList/pickPeople.png"
  7741. alt
  7742. />
  7743. <div style="margin: 5px 0">挑人</div>
  7744. </div>
  7745. <div class="check" @click="addTools2(65)">
  7746. <img
  7747. src="../../assets/icon/checkNo.png"
  7748. alt
  7749. v-if="checktoolArray.indexOf(65) == -1"
  7750. />
  7751. <div class="checkDiv" v-else>
  7752. <img src="../../assets/icon/checkedIs.png" alt /><span
  7753. >已选择</span
  7754. >
  7755. </div>
  7756. </div>
  7757. </div>
  7758. </div>
  7759. <div class="toolSort" v-if="toolType == 1">
  7760. <div class="tool">
  7761. <div class="whiteBIcon" @click="addTools2(7)">
  7762. <img
  7763. src="../../assets/icon/secondToolList/mindNetwork.png"
  7764. alt
  7765. />
  7766. <div style="margin: 5px 0">思维网格</div>
  7767. </div>
  7768. <div class="check" @click="addTools2(7)">
  7769. <img
  7770. src="../../assets/icon/checkNo.png"
  7771. alt
  7772. v-if="checktoolArray.indexOf(7) == -1"
  7773. />
  7774. <div class="checkDiv" v-else>
  7775. <img src="../../assets/icon/checkedIs.png" alt /><span
  7776. >已选择</span
  7777. >
  7778. </div>
  7779. </div>
  7780. </div>
  7781. <div class="tool">
  7782. <div class="whiteBIcon" @click="addTools2(1)">
  7783. <img
  7784. src="../../assets/icon/secondToolList/whiteBoard.png"
  7785. alt
  7786. />
  7787. <div style="margin: 5px 0">电子白板</div>
  7788. </div>
  7789. <div class="check" @click="addTools2(1)">
  7790. <img
  7791. src="../../assets/icon/checkNo.png"
  7792. alt
  7793. v-if="checktoolArray.indexOf(1) == -1"
  7794. />
  7795. <div class="checkDiv" v-else>
  7796. <img src="../../assets/icon/checkedIs.png" alt /><span
  7797. >已选择</span
  7798. >
  7799. </div>
  7800. </div>
  7801. </div>
  7802. <div class="tool">
  7803. <div class="whiteBIcon" @click="addTools2(52)">
  7804. <img
  7805. src="../../assets/icon/fourthToolList/text.png"
  7806. alt
  7807. />
  7808. <div style="margin: 5px 0">文档</div>
  7809. </div>
  7810. <div class="check" @click="addTools2(52)">
  7811. <img
  7812. src="../../assets/icon/checkNo.png"
  7813. alt
  7814. v-if="checktoolArray.indexOf(52) == -1"
  7815. />
  7816. <div class="checkDiv" v-else>
  7817. <img src="../../assets/icon/checkedIs.png" alt /><span
  7818. >已选择</span
  7819. >
  7820. </div>
  7821. </div>
  7822. </div>
  7823. <div class="tool">
  7824. <div class="whiteBIcon" @click="addTools2(3)">
  7825. <img
  7826. src="../../assets/icon/secondToolList/mindMapping.png"
  7827. alt
  7828. />
  7829. <div style="margin: 5px 0">思维导图</div>
  7830. </div>
  7831. <div class="check" @click="addTools2(3)">
  7832. <img
  7833. src="../../assets/icon/checkNo.png"
  7834. alt
  7835. v-if="checktoolArray.indexOf(3) == -1"
  7836. />
  7837. <div class="checkDiv" v-else>
  7838. <img src="../../assets/icon/checkedIs.png" alt /><span
  7839. >已选择</span
  7840. >
  7841. </div>
  7842. </div>
  7843. </div>
  7844. <div class="tool">
  7845. <div class="whiteBIcon" @click="addTools2(48)">
  7846. <img
  7847. src="../../assets/icon/fourthToolList/table.png"
  7848. alt
  7849. />
  7850. <div style="margin: 5px 0">表格</div>
  7851. </div>
  7852. <div class="check" @click="addTools2(48)">
  7853. <img
  7854. src="../../assets/icon/checkNo.png"
  7855. alt
  7856. v-if="checktoolArray.indexOf(48) == -1"
  7857. />
  7858. <div class="checkDiv" v-else>
  7859. <img src="../../assets/icon/checkedIs.png" alt /><span
  7860. >已选择</span
  7861. >
  7862. </div>
  7863. </div>
  7864. </div>
  7865. </div>
  7866. <div class="toolSort" v-if="toolType == 6">
  7867. <div v-show="tooC == 49">
  7868. <img
  7869. @click="addTools(tooC, toolIndex, taskCount)"
  7870. src="../../assets/icon/fourthToolList/group.png"
  7871. alt
  7872. />
  7873. <div style="margin: 5px 0">学生分组</div>
  7874. </div>
  7875. </div>
  7876. <div class="toolSort" v-if="toolType == 2">
  7877. <div class="tool">
  7878. <div class="whiteBIcon" @click="addTools2(16)">
  7879. <img
  7880. src="../../assets/icon/thirdToolList/work.png"
  7881. alt
  7882. />
  7883. <div style="margin: 5px 0">作业提交</div>
  7884. </div>
  7885. <div class="check" @click="addTools2(16)">
  7886. <img
  7887. src="../../assets/icon/checkNo.png"
  7888. alt
  7889. v-if="checktoolArray.indexOf(16) == -1"
  7890. />
  7891. <div class="checkDiv" v-else>
  7892. <img src="../../assets/icon/checkedIs.png" alt /><span
  7893. >已选择</span
  7894. >
  7895. </div>
  7896. </div>
  7897. </div>
  7898. <div class="tool">
  7899. <div class="whiteBIcon" @click="addTools2(50)">
  7900. <img
  7901. src="../../assets/icon/thirdToolList/plwork.png"
  7902. alt
  7903. />
  7904. <div style="margin: 5px 0">批量上传</div>
  7905. </div>
  7906. <div class="check" @click="addTools2(50)">
  7907. <img
  7908. src="../../assets/icon/checkNo.png"
  7909. alt
  7910. v-if="checktoolArray.indexOf(50) == -1"
  7911. />
  7912. <div class="checkDiv" v-else>
  7913. <img src="../../assets/icon/checkedIs.png" alt /><span
  7914. >已选择</span
  7915. >
  7916. </div>
  7917. </div>
  7918. </div>
  7919. </div>
  7920. <div class="toolSort" v-if="toolType == 3">
  7921. <div class="tool">
  7922. <div class="whiteBIcon" @click="addTools2(18)">
  7923. <img
  7924. src="../../assets/icon/thirdToolList/trainPlatform.png"
  7925. alt
  7926. />
  7927. <div style="margin: 5px 0">训练平台</div>
  7928. </div>
  7929. <div class="check" @click="addTools2(18)">
  7930. <img
  7931. src="../../assets/icon/checkNo.png"
  7932. alt
  7933. v-if="checktoolArray.indexOf(18) == -1"
  7934. />
  7935. <div class="checkDiv" v-else>
  7936. <img src="../../assets/icon/checkedIs.png" alt /><span
  7937. >已选择</span
  7938. >
  7939. </div>
  7940. </div>
  7941. </div>
  7942. <div class="tool">
  7943. <div class="whiteBIcon" @click="addTools2(21)">
  7944. <img
  7945. src="../../assets/icon/fourthToolList/program.png"
  7946. alt
  7947. />
  7948. <div style="margin: 5px 0">AIoT Blockly</div>
  7949. </div>
  7950. <div class="check" @click="addTools2(21)">
  7951. <img
  7952. src="../../assets/icon/checkNo.png"
  7953. alt
  7954. v-if="checktoolArray.indexOf(21) == -1"
  7955. />
  7956. <div class="checkDiv" v-else>
  7957. <img src="../../assets/icon/checkedIs.png" alt /><span
  7958. >已选择</span
  7959. >
  7960. </div>
  7961. </div>
  7962. </div>
  7963. <div class="tool">
  7964. <div class="whiteBIcon" @click="addTools2(23)">
  7965. <img
  7966. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  7967. alt
  7968. />
  7969. <div style="margin: 5px 0">AI Python</div>
  7970. </div>
  7971. <div class="check" @click="addTools2(23)">
  7972. <img
  7973. src="../../assets/icon/checkNo.png"
  7974. alt
  7975. v-if="checktoolArray.indexOf(23) == -1"
  7976. />
  7977. <div class="checkDiv" v-else>
  7978. <img src="../../assets/icon/checkedIs.png" alt /><span
  7979. >已选择</span
  7980. >
  7981. </div>
  7982. </div>
  7983. </div>
  7984. <div class="tool">
  7985. <div class="whiteBIcon" @click="addTools2(24)">
  7986. <img
  7987. src="../../assets/icon/fourthToolList/AIprogram.png"
  7988. alt
  7989. />
  7990. <div style="margin: 5px 0">AI Blockly</div>
  7991. </div>
  7992. <div class="check" @click="addTools2(24)">
  7993. <img
  7994. src="../../assets/icon/checkNo.png"
  7995. alt
  7996. v-if="checktoolArray.indexOf(24) == -1"
  7997. />
  7998. <div class="checkDiv" v-else>
  7999. <img src="../../assets/icon/checkedIs.png" alt /><span
  8000. >已选择</span
  8001. >
  8002. </div>
  8003. </div>
  8004. </div>
  8005. <div class="tool">
  8006. <div class="whiteBIcon" @click="addTools2(32)">
  8007. <img
  8008. src="../../assets/icon/thirdToolList/code.png"
  8009. alt
  8010. />
  8011. <div style="margin: 5px 0">源码编辑</div>
  8012. </div>
  8013. <div class="check" @click="addTools2(32)">
  8014. <img
  8015. src="../../assets/icon/checkNo.png"
  8016. alt
  8017. v-if="checktoolArray.indexOf(32) == -1"
  8018. />
  8019. <div class="checkDiv" v-else>
  8020. <img src="../../assets/icon/checkedIs.png" alt /><span
  8021. >已选择</span
  8022. >
  8023. </div>
  8024. </div>
  8025. </div>
  8026. <div class="tool">
  8027. <div class="whiteBIcon" @click="addTools2(57)">
  8028. <img
  8029. src="../../assets/icon/fourthToolList/cocopi.png"
  8030. alt
  8031. />
  8032. <div style="margin: 5px 0">CocoPi</div>
  8033. </div>
  8034. <div class="check" @click="addTools2(57)">
  8035. <img
  8036. src="../../assets/icon/checkNo.png"
  8037. alt
  8038. v-if="checktoolArray.indexOf(57) == -1"
  8039. />
  8040. <div class="checkDiv" v-else>
  8041. <img src="../../assets/icon/checkedIs.png" alt /><span
  8042. >已选择</span
  8043. >
  8044. </div>
  8045. </div>
  8046. </div>
  8047. <div class="tool">
  8048. <div class="whiteBIcon" @click="addTools2(63)">
  8049. <img
  8050. src="../../assets/icon/fourthToolList/Wood.png"
  8051. alt
  8052. />
  8053. <div style="margin: 5px 0">海龟编程</div>
  8054. </div>
  8055. <div class="check" @click="addTools2(63)">
  8056. <img
  8057. src="../../assets/icon/checkNo.png"
  8058. alt
  8059. v-if="checktoolArray.indexOf(63) == -1"
  8060. />
  8061. <div class="checkDiv" v-else>
  8062. <img src="../../assets/icon/checkedIs.png" alt /><span
  8063. >已选择</span
  8064. >
  8065. </div>
  8066. </div>
  8067. </div>
  8068. </div>
  8069. <div class="toolSort" v-if="toolType == 5">
  8070. <div class="tool">
  8071. <div class="whiteBIcon" @click="addTools2(28)">
  8072. <img
  8073. src="../../assets/icon/secondToolList/translation.png"
  8074. alt
  8075. />
  8076. <div style="margin: 5px 0">翻译</div>
  8077. </div>
  8078. <div class="check" @click="addTools2(28)">
  8079. <img
  8080. src="../../assets/icon/checkNo.png"
  8081. alt
  8082. v-if="checktoolArray.indexOf(28) == -1"
  8083. />
  8084. <div class="checkDiv" v-else>
  8085. <img src="../../assets/icon/checkedIs.png" alt /><span
  8086. >已选择</span
  8087. >
  8088. </div>
  8089. </div>
  8090. </div>
  8091. <div class="tool">
  8092. <div class="whiteBIcon" @click="addTools2(31)">
  8093. <img
  8094. src="../../assets/icon/secondToolList/networkPanel.png"
  8095. alt
  8096. />
  8097. <div style="margin: 5px 0">数字画板</div>
  8098. </div>
  8099. <div class="check" @click="addTools2(31)">
  8100. <img
  8101. src="../../assets/icon/checkNo.png"
  8102. alt
  8103. v-if="checktoolArray.indexOf(31) == -1"
  8104. />
  8105. <div class="checkDiv" v-else>
  8106. <img src="../../assets/icon/checkedIs.png" alt /><span
  8107. >已选择</span
  8108. >
  8109. </div>
  8110. </div>
  8111. </div>
  8112. <div class="tool">
  8113. <div class="whiteBIcon" @click="addTools2(39)">
  8114. <img
  8115. src="../../assets/icon/secondToolList/GeoGebra.png"
  8116. alt
  8117. />
  8118. <div style="margin: 5px 0">GeoGebra</div>
  8119. </div>
  8120. <div class="check" @click="addTools2(39)">
  8121. <img
  8122. src="../../assets/icon/checkNo.png"
  8123. alt
  8124. v-if="checktoolArray.indexOf(39) == -1"
  8125. />
  8126. <div class="checkDiv" v-else>
  8127. <img src="../../assets/icon/checkedIs.png" alt /><span
  8128. >已选择</span
  8129. >
  8130. </div>
  8131. </div>
  8132. </div>
  8133. <div class="tool">
  8134. <div class="whiteBIcon" @click="addTools2(66)">
  8135. <img
  8136. src="../../assets/icon/secondToolList/formulaEdi.png"
  8137. alt
  8138. />
  8139. <div style="margin: 5px 0">公式编辑</div>
  8140. </div>
  8141. <div class="check" @click="addTools2(66)">
  8142. <img
  8143. src="../../assets/icon/checkNo.png"
  8144. alt
  8145. v-if="checktoolArray.indexOf(66) == -1"
  8146. />
  8147. <div class="checkDiv" v-else>
  8148. <img src="../../assets/icon/checkedIs.png" alt /><span
  8149. >已选择</span
  8150. >
  8151. </div>
  8152. </div>
  8153. </div>
  8154. <div class="tool">
  8155. <div class="whiteBIcon" @click="addTools2(67)">
  8156. <img
  8157. src="../../assets/icon/secondToolList/molStr.png"
  8158. alt
  8159. />
  8160. <div style="margin: 5px 0">分子结构</div>
  8161. </div>
  8162. <div class="check" @click="addTools2(67)">
  8163. <img
  8164. src="../../assets/icon/checkNo.png"
  8165. alt
  8166. v-if="checktoolArray.indexOf(67) == -1"
  8167. />
  8168. <div class="checkDiv" v-else>
  8169. <img src="../../assets/icon/checkedIs.png" alt /><span
  8170. >已选择</span
  8171. >
  8172. </div>
  8173. </div>
  8174. </div>
  8175. <div class="tool">
  8176. <div class="whiteBIcon" @click="addTools2(68)">
  8177. <img
  8178. src="../../assets/icon/secondToolList/timeAxis.png"
  8179. alt
  8180. />
  8181. <div style="margin: 5px 0">时间轴</div>
  8182. </div>
  8183. <div class="check" @click="addTools2(68)">
  8184. <img
  8185. src="../../assets/icon/checkNo.png"
  8186. alt
  8187. v-if="checktoolArray.indexOf(68) == -1"
  8188. />
  8189. <div class="checkDiv" v-else>
  8190. <img src="../../assets/icon/checkedIs.png" alt /><span
  8191. >已选择</span
  8192. >
  8193. </div>
  8194. </div>
  8195. </div>
  8196. </div>
  8197. <div class="toolSort" v-if="toolType == 7">
  8198. <div class="tool">
  8199. <div class="whiteBIcon" @click="addTools2(40)">
  8200. <img
  8201. src="../../assets/icon/secondToolList/eval.png"
  8202. alt
  8203. />
  8204. <div style="margin: 5px 0">个人评价</div>
  8205. </div>
  8206. <div class="check" @click="addTools2(40)">
  8207. <img
  8208. src="../../assets/icon/checkNo.png"
  8209. alt
  8210. v-if="checktoolArray.indexOf(40) == -1"
  8211. />
  8212. <div class="checkDiv" v-else>
  8213. <img src="../../assets/icon/checkedIs.png" alt /><span
  8214. >已选择</span
  8215. >
  8216. </div>
  8217. </div>
  8218. </div>
  8219. </div>
  8220. <div class="toolSort" v-if="toolType == 4">
  8221. <div class="tool">
  8222. <div class="whiteBIcon" @click="addTools2(26)">
  8223. <img
  8224. src="../../assets/icon/thirdToolList/courseDesign.png"
  8225. alt
  8226. />
  8227. <div style="margin: 5px 0">课程设计</div>
  8228. </div>
  8229. <div class="check" @click="addTools2(26)">
  8230. <img
  8231. src="../../assets/icon/checkNo.png"
  8232. alt
  8233. v-if="checktoolArray.indexOf(26) == -1"
  8234. />
  8235. <div class="checkDiv" v-else>
  8236. <img src="../../assets/icon/checkedIs.png" alt /><span
  8237. >已选择</span
  8238. >
  8239. </div>
  8240. </div>
  8241. </div>
  8242. <div class="tool">
  8243. <div class="whiteBIcon" @click="addTools2(25)">
  8244. <img
  8245. src="../../assets/icon/thirdToolList/evalua.png"
  8246. alt
  8247. />
  8248. <div style="margin: 5px 0">目标管理</div>
  8249. </div>
  8250. <div class="check" @click="addTools2(25)">
  8251. <img
  8252. src="../../assets/icon/checkNo.png"
  8253. alt
  8254. v-if="checktoolArray.indexOf(25) == -1"
  8255. />
  8256. <div class="checkDiv" v-else>
  8257. <img src="../../assets/icon/checkedIs.png" alt /><span
  8258. >已选择</span
  8259. >
  8260. </div>
  8261. </div>
  8262. </div>
  8263. </div>
  8264. </div>
  8265. </div>
  8266. </div>
  8267. </div> -->
  8268. <div
  8269. class="vedioBox"
  8270. style="margin-top: 10px; border-radius: 20px"
  8271. v-if="
  8272. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8273. .eList &&
  8274. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8275. .eList.length &&
  8276. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8277. .eList.length > 0 &&
  8278. tType != 2
  8279. "
  8280. >
  8281. <div
  8282. class="queTop"
  8283. style="
  8284. font-size: 20px;
  8285. padding: 15px 0 15px 37px;
  8286. font-weight: bold;
  8287. "
  8288. >
  8289. <!-- <div class="question" style="width: 30px">
  8290. <img src="../assets/icon/toolIcon.png" alt />
  8291. </div>
  8292. <div class="queTitle">
  8293. <div>工具</div>
  8294. </div>-->
  8295. 评一评
  8296. </div>
  8297. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  8298. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  8299. <el-table
  8300. :data="
  8301. chapInfoList[courseType].chapterInfo[0].taskJson[
  8302. taskCount
  8303. ].eList
  8304. "
  8305. :header-cell-style="{ background: '#F0F4FA' }"
  8306. :row-class-name="tableRowClassName"
  8307. border
  8308. stripe
  8309. style="width: 100%"
  8310. >
  8311. <el-table-column
  8312. label="评价名称"
  8313. align="center"
  8314. >
  8315. <template slot-scope="scope"
  8316. ><div>{{ scope.row.value }}</div></template
  8317. >
  8318. </el-table-column>
  8319. <el-table-column
  8320. label="评价描述"
  8321. align="center"
  8322. >
  8323. <template slot-scope="scope"
  8324. ><div>
  8325. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  8326. </div></template
  8327. >
  8328. </el-table-column>
  8329. <el-table-column label="目标" align="center">
  8330. <template slot-scope="scope"
  8331. ><div>
  8332. {{
  8333. scope.row.target
  8334. ? scope.row.target[scope.row.target.length - 1]
  8335. : "-"
  8336. }}
  8337. </div></template
  8338. ></el-table-column
  8339. >
  8340. </el-table>
  8341. <!-- <div
  8342. v-for="(eItem, eIndex) in chapInfoList[courseType]
  8343. .chapterInfo[0].taskJson[taskCount].eList"
  8344. :key="eIndex"
  8345. class="elist_input_box"
  8346. >
  8347. <div style="width: 95%">
  8348. <div
  8349. style="
  8350. display: flex;
  8351. flex-direction: row;
  8352. flex-wrap: nowrap;
  8353. align-items: center;
  8354. "
  8355. >
  8356. <div style="max-width: calc(100% - 285px)">
  8357. <span>{{ eItem.value }}</span>
  8358. </div>
  8359. <div
  8360. style="
  8361. padding-left: 25px;
  8362. display: flex;
  8363. flex-direction: row;
  8364. align-items: center;
  8365. "
  8366. >
  8367. <el-rate
  8368. v-model="eItem.score"
  8369. :colors="colors"
  8370. disabled
  8371. ></el-rate>
  8372. </div>
  8373. </div>
  8374. <div class="elist_inptu_text" style="padding-left: 10px">
  8375. <span v-if="eItem.detail != ''">{{
  8376. eItem.detail
  8377. }}</span>
  8378. <span v-else style="color: #b2b1b3; font-size: 14px"
  8379. >暂无描述...</span
  8380. >
  8381. </div>
  8382. </div>
  8383. </div> -->
  8384. </div>
  8385. <div
  8386. v-if="evalua"
  8387. style="
  8388. border: 1px solid #e5e5e5;
  8389. max-width: 650px;
  8390. width: 100%;
  8391. margin-top: 20px;
  8392. box-shadow: 3px 1px 15px 3px #e0e0e0;
  8393. "
  8394. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  8395. >
  8396. <div class="e_add_top">
  8397. <div class="e_add_title" style="width: 100%">
  8398. <!-- <span>目标管理名称</span> -->
  8399. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  8400. <img
  8401. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  8402. src="../../assets/line.png"
  8403. class="cru_line"
  8404. style="
  8405. width: 125px;
  8406. height: 20px;
  8407. bottom: -10px;
  8408. left: 5px;
  8409. "
  8410. />
  8411. <!-- <el-input
  8412. v-model="eTitle"
  8413. placeholder="请输入名称"
  8414. @change="setMindData"
  8415. ></el-input>-->
  8416. <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>
  8417. <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>
  8418. </div>
  8419. </div>
  8420. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  8421. <div class="e_add_list_pbox">
  8422. <div class="e_add_list_pbox_title">
  8423. <!-- <span class="type_title">切换模式</span> -->
  8424. <div class="type_content">
  8425. <span
  8426. :class="{ active: typeMode == 1 }"
  8427. @click="typeMode = 1"
  8428. >目标树</span
  8429. >
  8430. <span
  8431. :class="{ active: typeMode == 2 }"
  8432. @click="typeMode = 2"
  8433. >目标罗盘</span
  8434. >
  8435. <!-- <span
  8436. :class="{ active: typeMode == 3 }"
  8437. @click="typeMode = 3"
  8438. >目标看板</span
  8439. > -->
  8440. </div>
  8441. </div>
  8442. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  8443. <Mind
  8444. :showBar="false"
  8445. :mindData="data"
  8446. style="width: 100%"
  8447. v-show="typeMode == 1"
  8448. ></Mind>
  8449. <Sunburst
  8450. :Josn="eJson"
  8451. :num="eJSONNum"
  8452. style="width: 100%"
  8453. v-if="typeMode == 2"
  8454. ></Sunburst>
  8455. <SeeBoard
  8456. :Josn="eJson"
  8457. :num="eJSONNum"
  8458. :ename="eTitle"
  8459. style="width: 100%"
  8460. v-if="typeMode == 3"
  8461. >
  8462. </SeeBoard>
  8463. </div>
  8464. </div>
  8465. </div>
  8466. </div>
  8467. </div>
  8468. </div>
  8469. <!-- <div
  8470. class="project_box"
  8471. style="margin-top: 15px; padding-bottom: 30px"
  8472. >
  8473. <div
  8474. style="
  8475. display: flex;
  8476. flex-wrap: nowrap;
  8477. flex-direction: column;
  8478. position: relative;
  8479. "
  8480. >
  8481. <div class="queTop">
  8482. <div class="question">
  8483. <img src="../../assets/icon/homeWork.png" alt="" />
  8484. </div>
  8485. <div class="queTitle">
  8486. <div>作业提交<span>(提交图文视频等)</span></div>
  8487. <div>:任务:{{ task.task }}</div>
  8488. </div>
  8489. </div>
  8490. <div class="ediBottom">
  8491. <div
  8492. class="addEditor"
  8493. style="margin-top: 23px"
  8494. @click="openAddWork"
  8495. v-if="!isNoHomeWork"
  8496. >
  8497. 选择文件
  8498. </div>
  8499. <div
  8500. class="addEditor"
  8501. style="margin-top: 23px"
  8502. @click="openAddWork"
  8503. v-else
  8504. >
  8505. 已提交
  8506. </div>
  8507. </div>
  8508. </div>
  8509. </div>-->
  8510. </div>
  8511. </div>
  8512. <el-dialog
  8513. title="作业提交"
  8514. :visible.sync="dialogVisible"
  8515. :append-to-body="true"
  8516. width="500px"
  8517. :before-close="handleClose"
  8518. class="dialog_change"
  8519. >
  8520. <div class="marginT">
  8521. <div>上传文件</div>
  8522. <div style="display: flex; gap: 10px">
  8523. <div
  8524. class="chapter_add"
  8525. @click="addImg($event)"
  8526. v-if="studyJuri[0].cover.length == 0"
  8527. >
  8528. <div class="up_photo">
  8529. <img src="../../assets/icon/uploadImg.png" alt />
  8530. </div>
  8531. <!-- <input
  8532. type="file"
  8533. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8534. style="display: none"
  8535. @change="beforeUpload1($event, 1)"
  8536. /> -->
  8537. <input
  8538. type="file"
  8539. accept="*"
  8540. style="display: none"
  8541. @change="beforeUpload1($event, 1)"
  8542. />
  8543. <!-- <input
  8544. type="file"
  8545. accept="image/*"
  8546. capture="camera"
  8547. style="display: none"
  8548. @change="beforeUpload1($event, 1)"
  8549. /> -->
  8550. </div>
  8551. <div
  8552. class="chapter_add"
  8553. @click="addImg($event)"
  8554. v-if="studyJuri[0].cover.length == 0"
  8555. >
  8556. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  8557. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  8558. </div>
  8559. <input
  8560. type="file"
  8561. accept="image/*"
  8562. capture="camera"
  8563. style="display: none"
  8564. @change="beforeUpload1($event, 1)"
  8565. />
  8566. </div>
  8567. </div>
  8568. <div
  8569. class="chapter_add"
  8570. style="
  8571. display: flex;
  8572. width: 100%;
  8573. flex-direction: row;
  8574. flex-wrap: wrap;
  8575. justify-content: flex-start;
  8576. padding: 15px 0;
  8577. "
  8578. v-if="studyJuri[0].cover.length > 0"
  8579. >
  8580. <div class="upCover">
  8581. <img
  8582. :src="studyJuri[0].cover[0].url"
  8583. alt
  8584. v-if="fileType == 0"
  8585. />
  8586. <img :src="word" alt v-else-if="fileType == 1" />
  8587. <img :src="video" alt v-else-if="fileType == 2" />
  8588. <img :src="word2" alt v-else-if="fileType == 3" />
  8589. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8590. <div class="deleteWord" @click="clean(1)">
  8591. <img src="../../assets/icon/deleteWorks.png" alt />
  8592. </div>
  8593. </div>
  8594. </div>
  8595. </div>
  8596. <div
  8597. class="upload_send"
  8598. @click="addCourseWorks(taskCount)"
  8599. v-if="!proVisible"
  8600. >
  8601. 提交
  8602. </div>
  8603. </el-dialog>
  8604. </div>
  8605. </div>
  8606. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  8607. <classRoomHelper v-if="!['2'].includes(tType)" @studentFreePreview="studentFreePreview" @OpenJobPreview="OpenJobPreview" :videoStart="videoStart" :IsFollow="IsFollow" :sIsOpen="sIsOpen" :IsLookOpen="IsLookOpen" :splitScreenData="splitScreenData" @splitScreenBehavior="splitScreenBehavior" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" ref="classRoomHelperRef" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  8608. '/courseDetail?userid=' +
  8609. userid +
  8610. '&oid=' +
  8611. oid +
  8612. '&org=' +
  8613. org +
  8614. '&cid=' +
  8615. classId +
  8616. '&courseId=' +
  8617. id +
  8618. '&tType=' +
  8619. tType +
  8620. '&screenType=' +
  8621. screenType+
  8622. '&role=' +
  8623. role
  8624. )"></classRoomHelper>
  8625. <studentClassRoomHelper v-else-if="['2'].includes(tType)" @studentFreePreview="studentFreePreview" @OpenJobPreview="OpenJobPreview" :videoStart="videoStart" :IsFollow="IsFollow" :sIsOpen="sIsOpen" :IsLookOpen="IsLookOpen" :splitScreenData="splitScreenData" @splitScreenBehavior="splitScreenBehavior" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  8626. '/courseDetail?userid=' +
  8627. userid +
  8628. '&oid=' +
  8629. oid +
  8630. '&org=' +
  8631. org +
  8632. '&cid=' +
  8633. classId +
  8634. '&courseId=' +
  8635. id +
  8636. '&tType=' +
  8637. tType +
  8638. '&screenType=' +
  8639. screenType+
  8640. '&role=' +
  8641. role
  8642. )"></studentClassRoomHelper>
  8643. <div
  8644. class="pButton"
  8645. @click="(pzDialog = true), selectPz()"
  8646. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8647. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8648. >
  8649. <!-- 批 -->
  8650. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  8651. </div>
  8652. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8653. <div class="pzTop2">
  8654. <!-- <div>评论</div>
  8655. <div @click="pzDialog = false">
  8656. <img src="../../assets/close1.png" alt="" />
  8657. </div> -->
  8658. <div class="checkbox">
  8659. <!-- <div class="check" style="font-size: 25px; position: unset">
  8660. 评论
  8661. </div> -->
  8662. <div class="cb-tabList">
  8663. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8664. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8665. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8666. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  8667. </div>
  8668. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8669. <el-option label="时间降序" :value="1"></el-option>
  8670. <el-option label="时间升序" :value="2"></el-option>
  8671. <el-option label="我的评课" :value="3"></el-option>
  8672. </el-select>
  8673. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8674. </div>
  8675. </div>
  8676. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8677. <div class="pzListBox" v-if="pzList && pzList.length">
  8678. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8679. <div class="pzNavTop">
  8680. <div>评</div>
  8681. <div>
  8682. {{
  8683. pz.username && pz.username.length > 5
  8684. ? pz.username.substring(0, 5) + "..."
  8685. : pz.username
  8686. }}的评论
  8687. </div>
  8688. <div
  8689. class="pzDelete"
  8690. v-if="pz.userid == userid"
  8691. @click="deletePz(pz.id)"
  8692. >
  8693. 删除
  8694. </div>
  8695. </div>
  8696. <div
  8697. @click="checkImg(getImgList(pz.content))"
  8698. class="pzContent cont"
  8699. v-html="pz.content"
  8700. v-if="pz.type == '1'"
  8701. ></div>
  8702. <div class="pzContent" v-if="pz.type == '2'">
  8703. <audio :src="pz.content" controls="controls" ref="audio">
  8704. Your browser does not support the audio element.
  8705. </audio>
  8706. </div>
  8707. <div class="pzContent" v-if="pz.type == '3'">
  8708. <img
  8709. :src="pz.content"
  8710. style="width: 90%; margin: 0 auto; display: block"
  8711. @click="previewImg(pz.content)"
  8712. />
  8713. </div>
  8714. <div class="timeAndReply">
  8715. <div class="time">
  8716. {{ pz.time }}
  8717. </div>
  8718. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8719. </div>
  8720. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8721. <div
  8722. v-for="(h, hIndex) in pz.hfList"
  8723. :key="hIndex"
  8724. class="hfItem"
  8725. >
  8726. <div class="whoReplyWho">
  8727. <div class="hfName">{{ h.username }}</div>
  8728. <div class="hfImg">
  8729. <img src="../../assets/icon/newIcons/right.png" alt="" />
  8730. </div>
  8731. <div class="hfName">{{ pz.username }}</div>
  8732. </div>
  8733. <div class="hfContent" v-html="h.content"></div>
  8734. <div class="hfBottom">
  8735. <div class="hfTime">{{ h.time }}</div>
  8736. <div
  8737. class="deleteHfItem"
  8738. @click="deleteReply(h.id)"
  8739. v-if="userid == h.userid"
  8740. >
  8741. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  8742. </div>
  8743. </div>
  8744. </div>
  8745. </div>
  8746. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8747. <div class="replyInput">
  8748. <el-input v-model="reply[pzIndex]"></el-input>
  8749. </div>
  8750. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8751. </div> -->
  8752. </div>
  8753. </div>
  8754. <div class="noPz" v-else>
  8755. <img src="../../assets/icon/noPz.png" alt="" />
  8756. </div>
  8757. <div class="addPzButton">
  8758. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8759. 添加评论
  8760. </div>
  8761. <!-- <div class="img1">
  8762. <div @click="(addPzDialog = true), (pzType = 2)">
  8763. <img src="../../assets/audio.png" /><span>音频</span>
  8764. </div>
  8765. </div> -->
  8766. </div>
  8767. </div>
  8768. <div class="scoreList" v-if="commentTagShow==1">
  8769. <scoreItem v-for="item in scoreList.datalist" @refresh="getScoreList" :data="item" :isScore="scoreList.isScoreList.filter(i=>(i.userid==item.userid && i.courseid == item.courseId))" :key="item.courseId"/>
  8770. </div>
  8771. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8772. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8773. </div>
  8774. </div>
  8775. <div
  8776. v-if="toolDialogVisible == true"
  8777. class="toolMask"
  8778. @click="toolDialogVisible = false"
  8779. ></div>
  8780. <div v-if="toolDialogVisible == true" class="addToolCss">
  8781. <div class="toolTop">
  8782. <div style="font-weight: bold">新增工具</div>
  8783. <div @click="toolDialogVisible = false">
  8784. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  8785. </div>
  8786. </div>
  8787. <div class="tool_box">
  8788. <div class="tool_type_box">
  8789. <div class="chooseWho">
  8790. <div
  8791. :class="toolType == 0 ? 'isChooseActive' : ''"
  8792. @click="(toolType = 0), $forceUpdate()"
  8793. >
  8794. 互动类
  8795. </div>
  8796. <div
  8797. :class="toolType == 1 ? 'isChooseActive' : ''"
  8798. @click="(toolType = 1), $forceUpdate()"
  8799. >
  8800. 思维类
  8801. </div>
  8802. <div
  8803. :class="toolType == 2 ? 'isChooseActive' : ''"
  8804. @click="(toolType = 2), $forceUpdate()"
  8805. >
  8806. 测评类
  8807. </div>
  8808. <div
  8809. :class="toolType == 3 ? 'isChooseActive' : ''"
  8810. @click="(toolType = 3), $forceUpdate()"
  8811. >
  8812. 编程类
  8813. </div>
  8814. <div
  8815. :class="toolType == 5 ? 'isChooseActive' : ''"
  8816. @click="(toolType = 5), $forceUpdate()"
  8817. >
  8818. 学科类
  8819. </div>
  8820. </div>
  8821. </div>
  8822. <div>
  8823. <div class="toolSort" v-if="toolType == 0">
  8824. <div
  8825. class="tool"
  8826. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8827. @click="addTools2(10)"
  8828. >
  8829. <div class="whiteBIcon">
  8830. <img src="../../assets/icon/thirdToolList/time.png" alt />
  8831. <div style="margin: 5px 0">倒计时</div>
  8832. </div>
  8833. <div class="check">
  8834. <div
  8835. v-if="checktoolArray.indexOf(10) == -1"
  8836. class="noChoose"
  8837. ></div>
  8838. <div v-else class="isChoose"></div>
  8839. </div>
  8840. </div>
  8841. <div
  8842. class="tool"
  8843. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8844. @click="addTools2(65)"
  8845. >
  8846. <div class="whiteBIcon">
  8847. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  8848. <div style="margin: 5px 0">挑人</div>
  8849. </div>
  8850. <div class="check">
  8851. <div
  8852. v-if="checktoolArray.indexOf(65) == -1"
  8853. class="noChoose"
  8854. ></div>
  8855. <div v-else class="isChoose"></div>
  8856. </div>
  8857. </div>
  8858. </div>
  8859. <div class="toolSort" v-if="toolType == 1">
  8860. <div
  8861. class="tool"
  8862. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8863. @click="addTools2(7)"
  8864. >
  8865. <div class="whiteBIcon">
  8866. <img
  8867. src="../../assets/icon/secondToolList/mindNetwork.png"
  8868. alt
  8869. />
  8870. <div style="margin: 5px 0">思维网格</div>
  8871. </div>
  8872. <div class="check">
  8873. <div
  8874. v-if="checktoolArray.indexOf(7) == -1"
  8875. class="noChoose"
  8876. ></div>
  8877. <div v-else class="isChoose"></div>
  8878. </div>
  8879. </div>
  8880. <div
  8881. class="tool"
  8882. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8883. @click="addTools2(1)"
  8884. >
  8885. <div class="whiteBIcon">
  8886. <img
  8887. src="../../assets/icon/secondToolList/whiteBoard.png"
  8888. alt
  8889. />
  8890. <div style="margin: 5px 0">电子白板</div>
  8891. </div>
  8892. <div class="check">
  8893. <div
  8894. v-if="checktoolArray.indexOf(1) == -1"
  8895. class="noChoose"
  8896. ></div>
  8897. <div v-else class="isChoose"></div>
  8898. </div>
  8899. </div>
  8900. <div
  8901. class="tool"
  8902. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8903. @click="addTools2(52)"
  8904. >
  8905. <div class="whiteBIcon">
  8906. <img src="../../assets/icon/fourthToolList/text.png" alt />
  8907. <div style="margin: 5px 0">文档</div>
  8908. </div>
  8909. <div class="check">
  8910. <div
  8911. v-if="checktoolArray.indexOf(52) == -1"
  8912. class="noChoose"
  8913. ></div>
  8914. <div v-else class="isChoose"></div>
  8915. </div>
  8916. </div>
  8917. <div
  8918. class="tool"
  8919. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8920. @click="addTools2(3)"
  8921. >
  8922. <div class="whiteBIcon">
  8923. <img
  8924. src="../../assets/icon/secondToolList/mindMapping.png"
  8925. alt
  8926. />
  8927. <div style="margin: 5px 0">思维导图</div>
  8928. </div>
  8929. <div class="check">
  8930. <div
  8931. v-if="checktoolArray.indexOf(3) == -1"
  8932. class="noChoose"
  8933. ></div>
  8934. <div v-else class="isChoose"></div>
  8935. </div>
  8936. </div>
  8937. <div
  8938. class="tool"
  8939. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8940. @click="addTools2(48)"
  8941. >
  8942. <div class="whiteBIcon">
  8943. <img src="../../assets/icon/fourthToolList/table.png" alt />
  8944. <div style="margin: 5px 0">表格</div>
  8945. </div>
  8946. <div class="check">
  8947. <div
  8948. v-if="checktoolArray.indexOf(48) == -1"
  8949. class="noChoose"
  8950. ></div>
  8951. <div v-else class="isChoose"></div>
  8952. </div>
  8953. </div>
  8954. </div>
  8955. <div class="toolSort" v-if="toolType == 6">
  8956. <div v-show="tooC == 49">
  8957. <img
  8958. @click="addTools(tooC, toolIndex, taskCount)"
  8959. src="../../assets/icon/fourthToolList/group.png"
  8960. alt
  8961. />
  8962. <div style="margin: 5px 0">学生分组</div>
  8963. </div>
  8964. </div>
  8965. <div class="toolSort" v-if="toolType == 2">
  8966. <div
  8967. class="tool"
  8968. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8969. @click="addTools2(16)"
  8970. >
  8971. <div class="whiteBIcon">
  8972. <img src="../../assets/icon/thirdToolList/work.png" alt />
  8973. <div style="margin: 5px 0">作业提交</div>
  8974. </div>
  8975. <div class="check">
  8976. <div
  8977. v-if="checktoolArray.indexOf(16) == -1"
  8978. class="noChoose"
  8979. ></div>
  8980. <div v-else class="isChoose"></div>
  8981. </div>
  8982. </div>
  8983. <div
  8984. class="tool"
  8985. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8986. @click="addTools2(50)"
  8987. >
  8988. <div class="whiteBIcon">
  8989. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  8990. <div style="margin: 5px 0">批量上传</div>
  8991. </div>
  8992. <div class="check">
  8993. <div
  8994. v-if="checktoolArray.indexOf(50) == -1"
  8995. class="noChoose"
  8996. ></div>
  8997. <div v-else class="isChoose"></div>
  8998. </div>
  8999. </div>
  9000. </div>
  9001. <div class="toolSort" v-if="toolType == 3">
  9002. <div
  9003. class="tool"
  9004. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  9005. @click="addTools2(18)"
  9006. >
  9007. <div class="whiteBIcon">
  9008. <img
  9009. src="../../assets/icon/thirdToolList/trainPlatform.png"
  9010. alt
  9011. />
  9012. <div style="margin: 5px 0">训练平台</div>
  9013. </div>
  9014. <div class="check">
  9015. <div
  9016. v-if="checktoolArray.indexOf(18) == -1"
  9017. class="noChoose"
  9018. ></div>
  9019. <div v-else class="isChoose"></div>
  9020. </div>
  9021. </div>
  9022. <div
  9023. class="tool"
  9024. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  9025. @click="addTools2(21)"
  9026. >
  9027. <div class="whiteBIcon">
  9028. <img src="../../assets/icon/fourthToolList/program.png" alt />
  9029. <div style="margin: 5px 0">AIoT Blockly</div>
  9030. </div>
  9031. <div class="check">
  9032. <div
  9033. v-if="checktoolArray.indexOf(21) == -1"
  9034. class="noChoose"
  9035. ></div>
  9036. <div v-else class="isChoose"></div>
  9037. </div>
  9038. </div>
  9039. <div
  9040. class="tool"
  9041. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  9042. @click="addTools2(23)"
  9043. >
  9044. <div class="whiteBIcon">
  9045. <img
  9046. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  9047. alt
  9048. />
  9049. <div style="margin: 5px 0">AI Python</div>
  9050. </div>
  9051. <div class="check">
  9052. <div
  9053. v-if="checktoolArray.indexOf(23) == -1"
  9054. class="noChoose"
  9055. ></div>
  9056. <div v-else class="isChoose"></div>
  9057. </div>
  9058. </div>
  9059. <div
  9060. class="tool"
  9061. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  9062. @click="addTools2(24)"
  9063. >
  9064. <div class="whiteBIcon">
  9065. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  9066. <div style="margin: 5px 0">AI Blockly</div>
  9067. </div>
  9068. <div class="check">
  9069. <div
  9070. v-if="checktoolArray.indexOf(24) == -1"
  9071. class="noChoose"
  9072. ></div>
  9073. <div v-else class="isChoose"></div>
  9074. </div>
  9075. </div>
  9076. <div
  9077. class="tool"
  9078. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  9079. @click="addTools2(32)"
  9080. >
  9081. <div class="whiteBIcon">
  9082. <img src="../../assets/icon/thirdToolList/code.png" alt />
  9083. <div style="margin: 5px 0">源码编辑</div>
  9084. </div>
  9085. <div class="check">
  9086. <div
  9087. v-if="checktoolArray.indexOf(32) == -1"
  9088. class="noChoose"
  9089. ></div>
  9090. <div v-else class="isChoose"></div>
  9091. </div>
  9092. </div>
  9093. <div
  9094. class="tool"
  9095. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  9096. @click="addTools2(57)"
  9097. >
  9098. <div class="whiteBIcon">
  9099. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  9100. <div style="margin: 5px 0">CocoPi</div>
  9101. </div>
  9102. <div class="check">
  9103. <div
  9104. v-if="checktoolArray.indexOf(57) == -1"
  9105. class="noChoose"
  9106. ></div>
  9107. <div v-else class="isChoose"></div>
  9108. </div>
  9109. </div>
  9110. <div
  9111. class="tool"
  9112. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  9113. @click="addTools2(63)"
  9114. >
  9115. <div class="whiteBIcon">
  9116. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  9117. <div style="margin: 5px 0">海龟编程</div>
  9118. </div>
  9119. <div class="check">
  9120. <div
  9121. v-if="checktoolArray.indexOf(63) == -1"
  9122. class="noChoose"
  9123. ></div>
  9124. <div v-else class="isChoose"></div>
  9125. </div>
  9126. </div>
  9127. <div
  9128. class="tool"
  9129. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  9130. @click="addTools2(71)"
  9131. >
  9132. <div class="whiteBIcon">
  9133. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  9134. <div style="margin: 5px 0">AI智能体</div>
  9135. </div>
  9136. <div class="check">
  9137. <div
  9138. v-if="checktoolArray.indexOf(71) == -1"
  9139. class="noChoose"
  9140. ></div>
  9141. <div v-else class="isChoose"></div>
  9142. </div>
  9143. </div>
  9144. </div>
  9145. <div class="toolSort" v-if="toolType == 7">
  9146. <div
  9147. class="tool"
  9148. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  9149. @click="addTools2(40)"
  9150. >
  9151. <div class="whiteBIcon">
  9152. <img src="../../assets/icon/secondToolList/eval.png" alt />
  9153. <div style="margin: 5px 0">个人评价</div>
  9154. </div>
  9155. <div class="check">
  9156. <div
  9157. v-if="checktoolArray.indexOf(40) == -1"
  9158. class="noChoose"
  9159. ></div>
  9160. <div v-else class="isChoose"></div>
  9161. </div>
  9162. </div>
  9163. </div>
  9164. <div class="toolSort" v-if="toolType == 5">
  9165. <div
  9166. class="tool"
  9167. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  9168. @click="addTools2(28)"
  9169. >
  9170. <div class="whiteBIcon">
  9171. <img
  9172. src="../../assets/icon/secondToolList/translation.png"
  9173. alt
  9174. />
  9175. <div style="margin: 5px 0">翻译</div>
  9176. </div>
  9177. <div class="check">
  9178. <div
  9179. v-if="checktoolArray.indexOf(28) == -1"
  9180. class="noChoose"
  9181. ></div>
  9182. <div v-else class="isChoose"></div>
  9183. </div>
  9184. </div>
  9185. <div
  9186. class="tool"
  9187. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  9188. @click="addTools2(31)"
  9189. >
  9190. <div class="whiteBIcon">
  9191. <img
  9192. src="../../assets/icon/secondToolList/networkPanel.png"
  9193. alt
  9194. />
  9195. <div style="margin: 5px 0">数字画板</div>
  9196. </div>
  9197. <div class="check">
  9198. <div
  9199. v-if="checktoolArray.indexOf(31) == -1"
  9200. class="noChoose"
  9201. ></div>
  9202. <div v-else class="isChoose"></div>
  9203. </div>
  9204. </div>
  9205. <div
  9206. class="tool"
  9207. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  9208. @click="addTools2(39)"
  9209. >
  9210. <div class="whiteBIcon">
  9211. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  9212. <div style="margin: 5px 0">GeoGebra</div>
  9213. </div>
  9214. <div class="check">
  9215. <div
  9216. v-if="checktoolArray.indexOf(39) == -1"
  9217. class="noChoose"
  9218. ></div>
  9219. <div v-else class="isChoose"></div>
  9220. </div>
  9221. </div>
  9222. <div
  9223. class="tool"
  9224. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  9225. @click="addTools2(66)"
  9226. >
  9227. <div class="whiteBIcon">
  9228. <img
  9229. src="../../assets/icon/secondToolList/formulaEdi.png"
  9230. alt
  9231. />
  9232. <div style="margin: 5px 0">公式编辑</div>
  9233. </div>
  9234. <div class="check">
  9235. <div
  9236. v-if="checktoolArray.indexOf(66) == -1"
  9237. class="noChoose"
  9238. ></div>
  9239. <div v-else class="isChoose"></div>
  9240. </div>
  9241. </div>
  9242. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  9243. <div class="whiteBIcon" @click="addTools2(67)">
  9244. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  9245. <div style="margin: 5px 0">分子结构</div>
  9246. </div>
  9247. <div class="check" @click="addTools2(67)">
  9248. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  9249. <div v-else class="isChoose"></div>
  9250. </div>
  9251. </div> -->
  9252. <div
  9253. class="tool"
  9254. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  9255. @click="addTools2(68)"
  9256. >
  9257. <div class="whiteBIcon">
  9258. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  9259. <div style="margin: 5px 0">时间轴</div>
  9260. </div>
  9261. <div class="check">
  9262. <div
  9263. v-if="checktoolArray.indexOf(68) == -1"
  9264. class="noChoose"
  9265. ></div>
  9266. <div v-else class="isChoose"></div>
  9267. </div>
  9268. </div>
  9269. <!-- <div
  9270. class="tool"
  9271. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  9272. @click="addTools2(69)"
  9273. >
  9274. <div class="whiteBIcon">
  9275. <img src="../../assets/icon/secondToolList/english.png" alt />
  9276. <div style="margin: 5px 0">英语写作</div>
  9277. </div>
  9278. <div class="check">
  9279. <div
  9280. v-if="checktoolArray.indexOf(69) == -1"
  9281. class="noChoose"
  9282. ></div>
  9283. <div v-else class="isChoose"></div>
  9284. </div>
  9285. </div> -->
  9286. </div>
  9287. <div class="toolSort" v-if="toolType == 4">
  9288. <div
  9289. class="tool"
  9290. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  9291. @click="addTools2(26)"
  9292. >
  9293. <div class="whiteBIcon">
  9294. <img
  9295. src="../../assets/icon/thirdToolList/courseDesign.png"
  9296. alt
  9297. />
  9298. <div style="margin: 5px 0">课程设计</div>
  9299. </div>
  9300. <div class="check">
  9301. <div
  9302. v-if="checktoolArray.indexOf(26) == -1"
  9303. class="noChoose"
  9304. ></div>
  9305. <div v-else class="isChoose"></div>
  9306. </div>
  9307. </div>
  9308. <div
  9309. class="tool"
  9310. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  9311. @click="addTools2(25)"
  9312. >
  9313. <div class="whiteBIcon">
  9314. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  9315. <div style="margin: 5px 0">目标管理</div>
  9316. </div>
  9317. <div class="check">
  9318. <div
  9319. v-if="checktoolArray.indexOf(25) == -1"
  9320. class="noChoose"
  9321. ></div>
  9322. <div v-else class="isChoose"></div>
  9323. </div>
  9324. </div>
  9325. </div>
  9326. </div>
  9327. </div>
  9328. <span
  9329. slot="footer"
  9330. class="dialog-footer"
  9331. style="display: block; text-align: center; padding: 0 0 10px 0"
  9332. >
  9333. <el-button @click="toolDialogVisible = false">取 消</el-button>
  9334. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  9335. </span>
  9336. </div>
  9337. <div
  9338. v-if="replyDialogVisible == true"
  9339. class="addDialogCss"
  9340. v-el-drag-dialog
  9341. >
  9342. <div class="pzTop">
  9343. <div class="teacherPz">
  9344. <div class="teacherPzImg">
  9345. <img src="../../assets/icon/teacherPz.png" alt="" />
  9346. </div>
  9347. <div style="margin-left: 10px; height: 25px">添加回复</div>
  9348. </div>
  9349. <div @click="replyDialogVisible = false">
  9350. <img src="../../assets/close1.png" class="pzClose" alt="" />
  9351. </div>
  9352. </div>
  9353. <div class="addPzBox">
  9354. <!-- <div class="addPzCheck">
  9355. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9356. >文本</span
  9357. >
  9358. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9359. >音频</span
  9360. >
  9361. </div> -->
  9362. <div style="height: calc(100% - 50px)">
  9363. <editor-bar
  9364. class="binfo_input pzConText"
  9365. style="width: 100% !important; margin: 0 auto"
  9366. placeholder="请输入回复描述"
  9367. v-model="reply"
  9368. @change="change"
  9369. ></editor-bar>
  9370. </div>
  9371. <div class="addTextCss" @click="addHf">确定</div>
  9372. </div>
  9373. </div>
  9374. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  9375. <div class="pzTop">
  9376. <div class="teacherPz">
  9377. <div class="teacherPzImg">
  9378. <img src="../../assets/icon/teacherPz.png" alt="" />
  9379. </div>
  9380. <div style="margin-left: 10px; height: 25px">教师评论</div>
  9381. </div>
  9382. <div @click="addPzDialog = false">
  9383. <img src="../../assets/close1.png" class="pzClose" alt="" />
  9384. </div>
  9385. </div>
  9386. <div class="addPzBox">
  9387. <div class="addPzCheck">
  9388. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9389. >文本</span
  9390. >
  9391. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  9392. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9393. >音频</span
  9394. >
  9395. </div>
  9396. <div style="height: calc(100% - 95px)">
  9397. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  9398. v-if="pzType == 1"></textarea> -->
  9399. <editor-bar
  9400. class="binfo_input pzConText"
  9401. style="width: 100% !important"
  9402. placeholder="请输入任务描述"
  9403. v-model="pzConText"
  9404. @change="change"
  9405. v-if="pzType == 1"
  9406. ></editor-bar>
  9407. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  9408. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  9409. <div @click="addImg($event)">
  9410. <el-button type="primary">上传图片</el-button>
  9411. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  9412. @change="beforeUpload1($event, 4)" />
  9413. </div>
  9414. </div> -->
  9415. </div>
  9416. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  9417. 确定
  9418. </div>
  9419. </div>
  9420. </div>
  9421. <div v-if="proVisible" class="mask">
  9422. <div class="progressBox">
  9423. <!-- <div id="closePro" class="closeCss">
  9424. <img src="../../assets/icon/close.png" alt />
  9425. </div> -->
  9426. <div class="lbox">
  9427. <img src="../../assets/loading.gif" />上传中,请稍后
  9428. </div>
  9429. <div style="margin-bottom: 10px">
  9430. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  9431. </div>
  9432. <el-progress
  9433. :text-inside="true"
  9434. :stroke-width="20"
  9435. :percentage="progress"
  9436. style="width: 80%"
  9437. ></el-progress>
  9438. </div>
  9439. </div>
  9440. <div v-if="proVisible2" class="mask">
  9441. <div class="progressBox">
  9442. <div class="lbox">
  9443. <img src="../../assets/loading.gif" />上传中,请稍后
  9444. </div>
  9445. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  9446. </div>
  9447. </div>
  9448. <el-dialog :visible.sync="pictureDialog" size="tiny">
  9449. <img width="100%" :src="dialogImageUrl" alt />
  9450. </el-dialog>
  9451. <el-dialog
  9452. :title="noteName != '' ? noteName : '查看问卷'"
  9453. :visible.sync="dialogVisible5"
  9454. :append-to-body="true"
  9455. width="1000px"
  9456. :before-close="handleClose"
  9457. class="dialog_diy dialog_diy3"
  9458. >
  9459. <div>
  9460. <div
  9461. class="a_add_title"
  9462. style="
  9463. display: flex;
  9464. flex-direction: row;
  9465. align-items: center;
  9466. justify-content: center;
  9467. "
  9468. >
  9469. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9470. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9471. </div>
  9472. <div class="a_addBox">
  9473. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9474. 题目内容
  9475. </div>
  9476. <div
  9477. class="a_add_box"
  9478. v-for="(item1, index1) in askJson.askCount"
  9479. :key="index1"
  9480. >
  9481. <div class="a_add_head">
  9482. <div style="display: flex">
  9483. <span class="askIndex"> {{ index1 + 1 }}</span>
  9484. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9485. </div>
  9486. <img
  9487. v-if="askJson.askJson[index1].img"
  9488. :src="askJson.askJson[index1].img"
  9489. style="height: 300px; margin-top: 10px; max-width: 100%"
  9490. />
  9491. </div>
  9492. <div class="a_add_body">
  9493. <div class="a_add_input">
  9494. <el-radio-group
  9495. v-model="radio[index1]"
  9496. v-if="
  9497. askJson.askJson[index1].type == '1' ||
  9498. !askJson.askJson[index1].type
  9499. "
  9500. >
  9501. <el-radio
  9502. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9503. .checkList"
  9504. :key="checkIndex"
  9505. :label="checkIndex"
  9506. :disabled="isAnswer"
  9507. class="redioStyle"
  9508. ><span v-html="item2"></span
  9509. ></el-radio>
  9510. </el-radio-group>
  9511. <el-checkbox-group
  9512. v-model="radio[index1]"
  9513. v-if="askJson.askJson[index1].type == '2'"
  9514. >
  9515. <el-checkbox
  9516. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9517. .checkList"
  9518. :key="checkIndex1"
  9519. :label="checkIndex1"
  9520. :disabled="isAnswer"
  9521. class="redioStyle"
  9522. ><span v-html="item2"></span>
  9523. </el-checkbox>
  9524. </el-checkbox-group>
  9525. </div>
  9526. </div>
  9527. </div>
  9528. </div>
  9529. </div>
  9530. <span slot="footer" class="dialog-footer">
  9531. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  9532. >取 消</el-button
  9533. >
  9534. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  9535. >确 定</el-button
  9536. >
  9537. </span>
  9538. </el-dialog>
  9539. <el-dialog
  9540. :title="noteName != '' ? noteName : '查看问卷'"
  9541. :visible.sync="dialogVisible5Teacher"
  9542. :append-to-body="true"
  9543. width="1000px"
  9544. :before-close="handleClose"
  9545. class="dialog_diy dialog_diy3"
  9546. >
  9547. <div>
  9548. <div class="w_name">
  9549. 学生姓名:<span>{{ sStudent.student }}</span>
  9550. </div>
  9551. <div
  9552. class="a_add_title"
  9553. style="
  9554. display: flex;
  9555. flex-direction: row;
  9556. align-items: center;
  9557. justify-content: center;
  9558. "
  9559. >
  9560. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9561. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9562. </div>
  9563. <div class="a_addBox">
  9564. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9565. 题目内容
  9566. </div>
  9567. <div
  9568. class="a_add_box"
  9569. v-for="(item1, index1) in askJson.askCount"
  9570. :key="index1"
  9571. >
  9572. <div class="a_add_head">
  9573. <div style="display: flex">
  9574. <span class="askIndex">{{ index1 + 1 }}</span>
  9575. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9576. </div>
  9577. <img
  9578. v-if="askJson.askJson[index1].img"
  9579. :src="askJson.askJson[index1].img"
  9580. style="height: 300px; margin-top: 10px; max-width: 100%"
  9581. />
  9582. </div>
  9583. <div class="a_add_body">
  9584. <div class="a_add_input">
  9585. <el-radio-group
  9586. v-model="radio[index1]"
  9587. v-if="
  9588. askJson.askJson[index1].type == '1' ||
  9589. !askJson.askJson[index1].type
  9590. "
  9591. >
  9592. <el-radio
  9593. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9594. .checkList"
  9595. :key="checkIndex"
  9596. :label="checkIndex"
  9597. :disabled="isAnswer"
  9598. class="redioStyle"
  9599. ><span v-html="item2"></span
  9600. ></el-radio>
  9601. </el-radio-group>
  9602. <el-checkbox-group
  9603. v-model="radio[index1]"
  9604. v-if="askJson.askJson[index1].type == '2'"
  9605. >
  9606. <el-checkbox
  9607. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9608. .checkList"
  9609. :key="checkIndex1"
  9610. :label="checkIndex1"
  9611. :disabled="isAnswer"
  9612. class="redioStyle"
  9613. ><span v-html="item2"></span>
  9614. </el-checkbox>
  9615. </el-checkbox-group>
  9616. </div>
  9617. </div>
  9618. </div>
  9619. </div>
  9620. </div>
  9621. <span slot="footer" class="dialog-footer">
  9622. <el-button
  9623. @click="dialogVisible5Teacher = false"
  9624. v-show="noteName == ''"
  9625. >取 消</el-button
  9626. >
  9627. <el-button
  9628. type="primary"
  9629. @click="addStudentAskTeacher"
  9630. v-show="noteName == ''"
  9631. >确 定</el-button
  9632. >
  9633. </span>
  9634. </el-dialog>
  9635. <el-dialog
  9636. :title="noteName != '' ? noteName : '查看选择题'"
  9637. :visible.sync="dialogVisibleChoice"
  9638. :append-to-body="true"
  9639. width="1000px"
  9640. :before-close="handleClose"
  9641. class="dialog_diy dialog_diy3"
  9642. >
  9643. <div>
  9644. <!-- <div class="a_add_title" style="
  9645. display: flex;
  9646. flex-direction: row;
  9647. align-items: center;
  9648. justify-content: center;
  9649. ">
  9650. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9651. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9652. </div> -->
  9653. <div class="a_addBox">
  9654. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9655. 题目内容
  9656. </div>
  9657. <div
  9658. class="a_add_box"
  9659. v-for="(item1, index1) in testJson.testCount"
  9660. :key="index1"
  9661. >
  9662. <div class="a_add_head">
  9663. <div style="display: flex;">
  9664. <span class="askIndex">{{ index1 + 1 }}</span>
  9665. <div
  9666. v-if="testJson.testJson[index1].type == '1'"
  9667. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9668. >
  9669. (单选题)
  9670. </div>
  9671. <div
  9672. v-if="testJson.testJson[index1].type == '2'"
  9673. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9674. >
  9675. (多选题)
  9676. </div>
  9677. <div class="renderedFor">题目:<span v-html="renderedFormula(testJson.testJson[index1].teststitle)"></span></div>
  9678. </div>
  9679. <img
  9680. v-if="testJson.testJson[index1].img"
  9681. :src="testJson.testJson[index1].img"
  9682. style="height: 300px; margin-top: 10px; max-width: 100%"
  9683. />
  9684. </div>
  9685. <div
  9686. class="timuImgBox"
  9687. v-if="
  9688. testJson.testJson[index1].timuList &&
  9689. testJson.testJson[index1].timuList.length
  9690. "
  9691. >
  9692. <div
  9693. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9694. :key="tIndex"
  9695. class="timuImg"
  9696. @click.stop="previewImg(timg.src)"
  9697. >
  9698. <img :src="timg.src" alt="" />
  9699. </div>
  9700. </div>
  9701. <div class="a_add_body">
  9702. <div class="a_add_input">
  9703. <el-radio-group
  9704. v-model="radio[index1]"
  9705. v-if="testJson.testJson[index1].type == '1'"
  9706. >
  9707. <div class="radioBox">
  9708. <el-radio
  9709. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9710. .checkList"
  9711. :key="checkIndex"
  9712. :label="checkIndex"
  9713. :disabled="isAnswer"
  9714. class="redioStyle"
  9715. >
  9716. <div
  9717. style="margin-right: 10px"
  9718. v-if="item2 && item2.imgType && item2.imgType == 1"
  9719. >
  9720. <div class="inImg" @click.stop="previewImg(item2.src)">
  9721. <img :src="item2.src" alt="" />
  9722. </div>
  9723. </div>
  9724. <span v-else v-html="item2"></span>
  9725. </el-radio>
  9726. </div>
  9727. </el-radio-group>
  9728. <el-checkbox-group
  9729. v-model="radio[index1]"
  9730. v-if="testJson.testJson[index1].type == '2'"
  9731. >
  9732. <div class="radioBox">
  9733. <el-checkbox
  9734. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9735. .checkList"
  9736. :key="checkIndex"
  9737. :label="checkIndex"
  9738. :disabled="isAnswer"
  9739. class="redioStyle"
  9740. >
  9741. <div
  9742. style="margin-right: 10px"
  9743. v-if="item2 && item2.imgType && item2.imgType == 1"
  9744. >
  9745. <div class="inImg" @click.stop="previewImg(item2.src)">
  9746. <img :src="item2.src" alt="" />
  9747. </div>
  9748. </div>
  9749. <span v-else v-html="item2"></span>
  9750. </el-checkbox>
  9751. </div>
  9752. </el-checkbox-group>
  9753. </div>
  9754. </div>
  9755. </div>
  9756. </div>
  9757. </div>
  9758. <span slot="footer" class="dialog-footer">
  9759. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9760. >取 消</el-button
  9761. >
  9762. <el-button
  9763. type="primary"
  9764. @click="addStudentTest"
  9765. v-show="noteName == ''"
  9766. >确 定</el-button
  9767. >
  9768. </span>
  9769. </el-dialog>
  9770. <el-dialog
  9771. :title="noteName != '' ? noteName : '查看选择题'"
  9772. :visible.sync="dialogVisibleChoiceTeacher"
  9773. :append-to-body="true"
  9774. width="1000px"
  9775. :before-close="handleClose"
  9776. class="dialog_diy dialog_diy3"
  9777. >
  9778. <div>
  9779. <div class="w_name">
  9780. 学生姓名:<span>{{ sStudent.student }}</span>
  9781. </div>
  9782. <div class="a_addBox">
  9783. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9784. 题目内容
  9785. </div>
  9786. <div
  9787. class="a_add_box"
  9788. v-for="(item1, index1) in testJson.testCount"
  9789. :key="index1"
  9790. >
  9791. <div class="a_add_head">
  9792. <div style="display: flex">
  9793. <span class="askIndex">{{ index1 + 1 }}</span>
  9794. <div
  9795. v-if="testJson.testJson[index1].type == '1'"
  9796. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9797. >
  9798. (单选题)
  9799. </div>
  9800. <div
  9801. v-if="testJson.testJson[index1].type == '2'"
  9802. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9803. >
  9804. (多选题)
  9805. </div>
  9806. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9807. </div>
  9808. <img
  9809. v-if="testJson.testJson[index1].img"
  9810. :src="testJson.testJson[index1].img"
  9811. style="height: 300px; margin-top: 10px; max-width: 100%"
  9812. />
  9813. </div>
  9814. <div
  9815. class="timuImgBox"
  9816. v-if="
  9817. testJson.testJson[index1].timuList &&
  9818. testJson.testJson[index1].timuList.length
  9819. "
  9820. >
  9821. <div
  9822. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9823. :key="tIndex"
  9824. class="timuImg"
  9825. @click.stop="previewImg(timg.src)"
  9826. >
  9827. <img :src="timg.src" alt="" />
  9828. </div>
  9829. </div>
  9830. <div class="a_add_body">
  9831. <div class="a_add_input">
  9832. <el-radio-group
  9833. v-model="radio[index1]"
  9834. v-if="testJson.testJson[index1].type == '1'"
  9835. >
  9836. <div class="radioBox">
  9837. <el-radio
  9838. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9839. .checkList"
  9840. :key="checkIndex"
  9841. :label="checkIndex"
  9842. :disabled="isAnswer"
  9843. class="redioStyle"
  9844. >
  9845. <div
  9846. style="margin-right: 10px"
  9847. v-if="item2 && item2.imgType && item2.imgType == 1"
  9848. >
  9849. <div class="inImg" @click.stop="previewImg(item2.src)">
  9850. <img :src="item2.src" alt="" />
  9851. </div>
  9852. </div>
  9853. <span v-else v-html="item2"></span>
  9854. </el-radio>
  9855. </div>
  9856. </el-radio-group>
  9857. <el-checkbox-group
  9858. v-model="radio[index1]"
  9859. v-if="testJson.testJson[index1].type == '2'"
  9860. >
  9861. <div class="radioBox">
  9862. <el-checkbox
  9863. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9864. .checkList"
  9865. :key="checkIndex"
  9866. :label="checkIndex"
  9867. :disabled="isAnswer"
  9868. class="redioStyle"
  9869. >
  9870. <div
  9871. style="margin-right: 10px"
  9872. v-if="item2 && item2.imgType && item2.imgType == 1"
  9873. >
  9874. <div class="inImg" @click.stop="previewImg(item2.src)">
  9875. <img :src="item2.src" alt="" />
  9876. </div>
  9877. </div>
  9878. <span v-else v-html="item2"></span>
  9879. </el-checkbox>
  9880. </div>
  9881. </el-checkbox-group>
  9882. </div>
  9883. </div>
  9884. </div>
  9885. </div>
  9886. </div>
  9887. <span slot="footer" class="dialog-footer">
  9888. <el-button
  9889. @click="dialogVisibleChoiceTeacher = false"
  9890. v-show="noteName == ''"
  9891. >取 消</el-button
  9892. >
  9893. <el-button
  9894. type="primary"
  9895. @click="addStudentTestTeacher"
  9896. v-show="noteName == ''"
  9897. >确 定</el-button
  9898. >
  9899. </span>
  9900. </el-dialog>
  9901. <el-dialog
  9902. title="查看富文本"
  9903. :visible.sync="dialogVisible1"
  9904. :append-to-body="true"
  9905. width="500px"
  9906. :before-close="handleClose"
  9907. class="dialog_diy textCss"
  9908. >
  9909. <el-form style="font-size: 20px">
  9910. <el-form-item label="文本标题" class="textTitle">
  9911. <div style="font-size: 20px">{{ text.name }}</div>
  9912. </el-form-item>
  9913. <div>富文本内容</div>
  9914. <div
  9915. v-html="text.url"
  9916. style="font-size: 18px; padding: 40px 0 0 0"
  9917. ></div>
  9918. </el-form>
  9919. <span slot="footer" class="dialog-footer">
  9920. <el-button type="primary" @click="dialogVisible1 = false"
  9921. >确定</el-button
  9922. >
  9923. </span>
  9924. </el-dialog>
  9925. <el-dialog
  9926. title="文件预览"
  9927. :visible.sync="dialogVisible3"
  9928. width="50%"
  9929. :before-close="handleClose"
  9930. class="dialog_diy"
  9931. :class="{ fullStyle: full }"
  9932. >
  9933. <div slot="title" class="header-title">
  9934. <div style="color: #fff">文件预览</div>
  9935. <div style="position: absolute; top: 19px; right: 50px">
  9936. <img
  9937. src="../../assets/full.png"
  9938. style="height: 16px; cursor: pointer"
  9939. alt=""
  9940. @click="fullTools"
  9941. />
  9942. </div>
  9943. </div>
  9944. <pdf
  9945. v-if="showPDF"
  9946. :pdfUrl="pptImgUrl"
  9947. style="width: 100%; height: 520px; overflow: auto"
  9948. :class="{ fullStyle: full }"
  9949. ></pdf>
  9950. <iframe
  9951. v-else
  9952. :src="pptImgUrl"
  9953. frameborder="0"
  9954. width="100%"
  9955. height="600"
  9956. :class="{ fullStyle: full }"
  9957. ></iframe>
  9958. </el-dialog>
  9959. <el-dialog
  9960. title="文件预览"
  9961. :visible.sync="dialogVisible6"
  9962. width="50%"
  9963. :before-close="handleClose"
  9964. class="dialog_diy"
  9965. >
  9966. <iframe
  9967. :src="pptImgUrl1"
  9968. frameborder="0"
  9969. width="100%"
  9970. height="600"
  9971. ></iframe>
  9972. </el-dialog>
  9973. <el-dialog
  9974. title="提示"
  9975. :visible.sync="dialogVisible4"
  9976. :append-to-body="true"
  9977. width="800px"
  9978. :before-close="handleClose"
  9979. class="dialog_diy notice"
  9980. >
  9981. <div>此功能暂未开放!</div>
  9982. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9983. </el-dialog>
  9984. <el-dialog
  9985. title="问答"
  9986. :visible.sync="answerDialogVisible"
  9987. :append-to-body="true"
  9988. width="800px"
  9989. :before-close="handleClose"
  9990. class="dialog_diy"
  9991. >
  9992. <div>
  9993. <div
  9994. style="
  9995. display: flex;
  9996. flex-wrap: nowrap;
  9997. flex-direction: column;
  9998. position: relative;
  9999. "
  10000. >
  10001. <div class="queTop" style="padding: 20px 0 20px 0">
  10002. <div class="question">
  10003. <img src="../../assets/icon/question.png" alt />
  10004. </div>
  10005. <div class="queTitle">
  10006. <div style="width: 90px; min-width: 90px">提问:</div>
  10007. <div>{{ answerQ }}</div>
  10008. </div>
  10009. </div>
  10010. <div class="ediBottom">
  10011. <textarea
  10012. rows="6"
  10013. class="binfo_input"
  10014. cols
  10015. style="width: 95%; height: 120px"
  10016. v-model="questionAnswer"
  10017. ></textarea>
  10018. </div>
  10019. </div>
  10020. </div>
  10021. <div slot="footer">
  10022. <el-button @click="answerDialogVisible = false">取 消</el-button>
  10023. <el-button type="primary" @click="addQuestion">提 交</el-button>
  10024. </div>
  10025. </el-dialog>
  10026. <el-dialog
  10027. title="问答"
  10028. :visible.sync="answerDialogVisibleTeacher"
  10029. :append-to-body="true"
  10030. width="800px"
  10031. :before-close="handleClose"
  10032. class="dialog_diy"
  10033. >
  10034. <div>
  10035. <div class="w_name">
  10036. 学生姓名:<span>{{ sStudent.student }}</span>
  10037. </div>
  10038. <div
  10039. style="
  10040. display: flex;
  10041. flex-wrap: nowrap;
  10042. flex-direction: column;
  10043. position: relative;
  10044. "
  10045. >
  10046. <div class="queTop" style="padding: 20px 0 20px 0">
  10047. <div class="question">
  10048. <img src="../../assets/icon/question.png" alt />
  10049. </div>
  10050. <div class="queTitle">
  10051. <div style="width: 90px; min-width: 90px">提问:</div>
  10052. <div>{{ answerQ }}</div>
  10053. </div>
  10054. </div>
  10055. <div class="ediBottom">
  10056. <textarea
  10057. rows="6"
  10058. class="binfo_input"
  10059. cols
  10060. style="width: 95%; height: 120px"
  10061. v-model="questionAnswer"
  10062. ></textarea>
  10063. </div>
  10064. </div>
  10065. </div>
  10066. <div slot="footer">
  10067. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  10068. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  10069. </div>
  10070. </el-dialog>
  10071. <el-dialog
  10072. title="倒计时"
  10073. :visible.sync="timeDialogVisible"
  10074. :append-to-body="true"
  10075. width="800px"
  10076. :before-close="handleClose"
  10077. class="dialog_diy"
  10078. >
  10079. <div>
  10080. <div style="margin-bottom: 20px; color: #999">
  10081. 提示:点击“+”或“-”修改倒计时时长。
  10082. </div>
  10083. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  10084. </div>
  10085. <div slot="footer">
  10086. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  10087. </div>
  10088. </el-dialog>
  10089. <el-dialog
  10090. title="权限设置"
  10091. :visible.sync="juriVisible"
  10092. :append-to-body="true"
  10093. width="400px"
  10094. :before-close="handleClose"
  10095. class="dialog_diy"
  10096. >
  10097. <div>
  10098. <div class="open_box">
  10099. <div class="switch_box">
  10100. <span>允许学生查看所有作业</span>
  10101. <el-switch
  10102. v-model="sIsOpen"
  10103. active-text=""
  10104. class="switchCss"
  10105. @change="updateSLook"
  10106. ></el-switch>
  10107. </div>
  10108. <div
  10109. class="switch_box"
  10110. v-if="
  10111. (courseDetail.userid == userid ||
  10112. (courseDetail.course_teacher &&
  10113. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen
  10114. "
  10115. >
  10116. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  10117. <span>禁止学生查看阶段</span>
  10118. <el-switch
  10119. v-model="IsLookOpen"
  10120. active-text=""
  10121. class="switchCss"
  10122. @change="updateLookOpen"
  10123. ></el-switch>
  10124. </div>
  10125. <div class="switch_box" v-if="(courseDetail.userid == userid ||
  10126. (courseDetail.course_teacher &&
  10127. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen">
  10128. <span>开启跟随模式</span>
  10129. <el-switch
  10130. v-model="IsFollow"
  10131. active-text=""
  10132. class="switchCss"
  10133. @change="updateFollow"
  10134. ></el-switch>
  10135. </div>
  10136. <div class="switch_box" v-if="courseDetail.userid == userid">
  10137. <span>允许学生查看内容资料</span>
  10138. <el-switch
  10139. v-model="IsStulook"
  10140. active-text=""
  10141. class="switchCss"
  10142. @change="updateIsStulook"
  10143. ></el-switch>
  10144. </div>
  10145. </div>
  10146. </div>
  10147. <div slot="footer">
  10148. <el-button
  10149. style="background: #409efe; color: #fff"
  10150. @click="juriVisible = false"
  10151. >关 闭</el-button
  10152. >
  10153. </div>
  10154. </el-dialog>
  10155. <el-dialog
  10156. title="查看视频"
  10157. :visible.sync="videoVisible"
  10158. :append-to-body="true"
  10159. width="1000px"
  10160. :before-close="handleClose"
  10161. class="dialog_diy1"
  10162. >
  10163. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  10164. <video-player
  10165. class="video-player vjs-custom-skin"
  10166. :playsinline="true"
  10167. :options="videoDetail"
  10168. @play="onPlayerPlay($event)"
  10169. style="width: 100%; height: 100%"
  10170. ></video-player>
  10171. </div>
  10172. <div slot="footer">
  10173. <el-button
  10174. style="background: #409efe; color: #fff"
  10175. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  10176. >
  10177. 关 闭</el-button
  10178. >
  10179. </div>
  10180. </el-dialog>
  10181. <el-dialog
  10182. title="查看详情"
  10183. :visible.sync="commentDialogVisible"
  10184. :append-to-body="true"
  10185. width="800px"
  10186. :before-close="handleClose"
  10187. class="dialog_diy"
  10188. >
  10189. <div class="commentTop">
  10190. <div class="studentDetail">
  10191. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10192. <div class="nameAndTime">
  10193. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10194. <div>{{ commentDetail.time }}</div>
  10195. </div>
  10196. <div
  10197. class="returnBtn"
  10198. style="margin-left: auto; width: 80px"
  10199. v-if="
  10200. commentDetail.works &&
  10201. commentDetail.type == 0 &&
  10202. (tType == 1 || tType == 4)
  10203. "
  10204. @click="
  10205. showPicturePaint(
  10206. commentDetail.img ? commentDetail.img : commentDetail.works
  10207. )
  10208. "
  10209. >
  10210. 教师批注
  10211. </div>
  10212. </div>
  10213. <div
  10214. class="worksAnswer"
  10215. v-if="commentDetail.works && commentDetail.type == 2"
  10216. >
  10217. {{ JSON.parse(commentDetail.works)[0].answer }}
  10218. </div>
  10219. <div
  10220. class="worksAnswer"
  10221. v-if="commentDetail.works && commentDetail.type == 1"
  10222. >
  10223. <img
  10224. src="../../assets/teacherWork.png"
  10225. v-if="commentDetail.ateacher"
  10226. class="w_teachert"
  10227. />
  10228. <pdf
  10229. v-if="showPDF"
  10230. :pdfUrl="pptImgUrl"
  10231. style="width: 100%; height: 520px; overflow: auto"
  10232. :class="{ fullStyle: full }"
  10233. ></pdf>
  10234. <iframe
  10235. v-else
  10236. :src="pptImgUrl"
  10237. frameborder="0"
  10238. width="100%"
  10239. height="600"
  10240. :class="{ fullStyle: full }"
  10241. ></iframe>
  10242. </div>
  10243. <div
  10244. class="worksAnswer"
  10245. v-if="commentDetail.works && commentDetail.type == 0"
  10246. >
  10247. <img
  10248. src="../../assets/teacherWork.png"
  10249. v-if="commentDetail.ateacher"
  10250. class="w_teachert"
  10251. style="right: 105px"
  10252. />
  10253. <img
  10254. :src="commentDetail.works"
  10255. alt=""
  10256. @click="previewImg(commentDetail.works)"
  10257. />
  10258. </div>
  10259. <div
  10260. class="worksAnswer"
  10261. v-if="commentDetail.works && commentDetail.type == 3"
  10262. >
  10263. <img
  10264. src="../../assets/teacherWork.png"
  10265. v-if="commentDetail.ateacher"
  10266. class="w_teachert"
  10267. />
  10268. <video-player
  10269. class="video-player vjs-custom-skin"
  10270. :playsinline="true"
  10271. :options="videoDetail"
  10272. @play="onPlayerPlay($event)"
  10273. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10274. ></video-player>
  10275. </div>
  10276. <div
  10277. class="worksAnswer"
  10278. v-if="commentDetail.works && commentDetail.type == 10"
  10279. >
  10280. <div class="cont" v-html="commentDetail.works.text"></div>
  10281. </div>
  10282. <div
  10283. class="worksAnswer codeFileBox"
  10284. v-if="commentDetail.works && commentDetail.type == 12"
  10285. @click="downloadFile(commentDetail.works)"
  10286. >
  10287. <img src="../../assets/icon/codeFile.png" />
  10288. <div>点击下载文件</div>
  10289. </div>
  10290. <div
  10291. class="worksAnswer codeFileBox"
  10292. v-if="commentDetail.works && commentDetail.type == 15"
  10293. @click="
  10294. openCocoPi(
  10295. 57,
  10296. commentIndexJson.toolIndex,
  10297. commentDetail.userid,
  10298. commentDetail.sName
  10299. )
  10300. "
  10301. >
  10302. <img src="../../assets/icon/codeFile.png" />
  10303. <div>点击打开CocoPi</div>
  10304. </div>
  10305. <div
  10306. class="worksAnswer"
  10307. v-if="commentDetail.works && commentDetail.type == 13"
  10308. >
  10309. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10310. </div>
  10311. <div
  10312. class="worksAnswer"
  10313. v-if="commentDetail.works && commentDetail.type == 4"
  10314. >
  10315. <div class="evalCss">
  10316. <div class="nav">请选择星星进行评分</div>
  10317. <div class="middleBox" v-if="eScore.eStar">
  10318. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10319. <div class="nameAndrate">
  10320. <div>{{ e.value }}</div>
  10321. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  10322. </div>
  10323. <div v-if="e.detail">{{ e.detail }}</div>
  10324. </div>
  10325. <div class="bz">
  10326. <textarea
  10327. disabled
  10328. rows="4"
  10329. class="pj"
  10330. style="
  10331. padding: 10px 5px;
  10332. width: 70%;
  10333. background: #f7f6f9;
  10334. font-size: 14px;
  10335. text-indent: 10px;
  10336. color: #000;
  10337. "
  10338. cols
  10339. v-model="eScore.eBzText"
  10340. placeholder="请输入评价内容..."
  10341. ></textarea>
  10342. </div>
  10343. </div>
  10344. </div>
  10345. </div>
  10346. <div class="comment">
  10347. <div class="commentList">
  10348. <div class="commentImg">
  10349. <img
  10350. @click="
  10351. isLikes(
  10352. commentDetail.wid,
  10353. userid,
  10354. 1,
  10355. null,
  10356. commentDetail.isLikes,
  10357. commentDetail.sName
  10358. )
  10359. "
  10360. :src="commentDetail.isLikes == true ? likes : noLikes"
  10361. alt=""
  10362. />
  10363. </div>
  10364. <div>{{ commentDetail.likesCount }}</div>
  10365. </div>
  10366. <div class="commentList">
  10367. <div class="commentImg">
  10368. <img src="../../assets/icon/comment/comment.png" alt="" />
  10369. </div>
  10370. <div>{{ commentDetail.commentCount }}</div>
  10371. </div>
  10372. </div>
  10373. <div class="drawPBox" v-if="commentDetail.img">
  10374. <span>教师批注</span>
  10375. <img
  10376. :src="commentDetail.img"
  10377. alt=""
  10378. @click="previewImg(commentDetail.img)"
  10379. />
  10380. <span
  10381. class="deleteImg"
  10382. v-if="tType == 1 || tType == 4"
  10383. @click.stop="deletePicturePaint(commentDetail.wid)"
  10384. style="
  10385. font-size: 14px;
  10386. width: auto !important;
  10387. color: #b4b4b4;
  10388. top: unset;
  10389. bottom: 0;
  10390. border: none;
  10391. padding: 0;
  10392. height: auto !important;
  10393. margin: 0;
  10394. "
  10395. >删除</span
  10396. >
  10397. </div>
  10398. </div>
  10399. <div class="commentBox">
  10400. <div class="pl">评论:</div>
  10401. <div style="max-height: 200px; overflow: auto">
  10402. <div
  10403. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  10404. style="padding: 10px 0 0 0"
  10405. >
  10406. <div
  10407. class="studentDetail"
  10408. style="padding-top: 10px"
  10409. v-for="(co, coIndex) in commentDetail.commentJson"
  10410. :key="coIndex"
  10411. >
  10412. <div class="tx" style="min-width: 50px">
  10413. <img src="../../assets/avatar.png" alt="" />
  10414. </div>
  10415. <div class="plPerson">
  10416. <div class="plName">
  10417. <div>{{ co.commentPeople }}</div>
  10418. <div style="margin-left: 5px">
  10419. {{ co.commentTime }}
  10420. </div>
  10421. <div
  10422. class="deleteComment"
  10423. v-if="userid == co.userid"
  10424. @click="deleteComment(co.wid)"
  10425. >
  10426. 删除
  10427. </div>
  10428. </div>
  10429. <div class="plContent">{{ co.commentText }}</div>
  10430. </div>
  10431. </div>
  10432. </div>
  10433. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  10434. </div>
  10435. </div>
  10436. <div style="margin-top: 10px">
  10437. <div class="displayBox">
  10438. <div
  10439. style="
  10440. color: #556db4;
  10441. font-size: 14px;
  10442. font-weight: bold;
  10443. padding-bottom: 10px;
  10444. "
  10445. >
  10446. 评价
  10447. </div>
  10448. <div class="easy_comment" v-if="false">
  10449. <div
  10450. v-for="(p, pIndex) in PlTextList"
  10451. :key="pIndex"
  10452. @click="fastText(p, 1)"
  10453. >
  10454. {{ p }}
  10455. </div>
  10456. </div>
  10457. </div>
  10458. <div>
  10459. <textarea
  10460. rows="3"
  10461. class="pj"
  10462. style="padding: 10px 5px"
  10463. cols
  10464. v-model="commentText"
  10465. placeholder="请输入评论"
  10466. ></textarea>
  10467. </div>
  10468. </div>
  10469. <div slot="footer">
  10470. <el-button
  10471. @click="
  10472. (commentDialogVisible = false),
  10473. (commentIndexJson = {}),
  10474. videoDetail.sources && videoDetail.sources[0]
  10475. ? (videoDetail.sources[0].src = '')
  10476. : ''
  10477. "
  10478. >取 消</el-button
  10479. >
  10480. <el-button
  10481. type="primary"
  10482. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  10483. >确 定</el-button
  10484. >
  10485. </div>
  10486. </el-dialog>
  10487. <el-dialog
  10488. title="查看文档"
  10489. :visible.sync="fullDialogVisible"
  10490. :append-to-body="true"
  10491. width="100%"
  10492. :before-close="handleClose"
  10493. :show-close="false"
  10494. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  10495. >
  10496. <div slot="title" class="header-title">
  10497. <div v-if="fulltype == 4" style="color: #fff">AI应用</div>
  10498. <div v-else style="color: #fff">查看文档</div>
  10499. <div
  10500. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  10501. style="
  10502. cursor: pointer;
  10503. position: absolute;
  10504. top: 20px;
  10505. right: 20px;
  10506. color: #fff;
  10507. "
  10508. >
  10509. 退出全屏
  10510. </div>
  10511. </div>
  10512. <div style="height: 100%;position: relative;">
  10513. <el-button
  10514. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  10515. size="medium"
  10516. type="primary"
  10517. @click="
  10518. () => {
  10519. (fullDialogVisible = false),
  10520. changeSplitScreenBehavior({ code: 99 });
  10521. }
  10522. "
  10523. style="
  10524. cursor: pointer;
  10525. position: absolute;
  10526. top: 10px;
  10527. right: 20px;
  10528. color: #fff;
  10529. "
  10530. >
  10531. 退出全屏
  10532. </el-button>
  10533. <div
  10534. class="wheel"
  10535. v-if="fulltype == 1"
  10536. style="
  10537. box-shadow: 0 0 6px 1px #f2f2f2;
  10538. height:100%;
  10539. width: 100%;
  10540. background: #f1f1f1;
  10541. "
  10542. >
  10543. <div class="title" style="width: 100%; box-sizing: border-box">
  10544. 查看文档
  10545. </div>
  10546. <el-form class="textBox" style="height: 90%">
  10547. <el-form-item class="textTitle">
  10548. <div style="font-size: 22px">
  10549. {{ fullUrl.name }}
  10550. </div>
  10551. </el-form-item>
  10552. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  10553. <div
  10554. v-html="fullUrl.url"
  10555. class="textContent"
  10556. style="height: auto"
  10557. ></div>
  10558. </el-form>
  10559. </div>
  10560. <div
  10561. class="wheel"
  10562. v-else-if="
  10563. (fulltype == 2 || fulltype == 4) &&
  10564. fullUrl.indexOf(
  10565. 'https://view.officeapps.live.com/op/view.aspx?src='
  10566. ) != -1
  10567. "
  10568. style="width: 100%;height:100%; margin: 0 auto"
  10569. >
  10570. <iframe
  10571. style="width: 100%; height: 100%; border: none"
  10572. :src="fullUrl"
  10573. ></iframe>
  10574. </div>
  10575. <iframe
  10576. style="width: 100%; height: 100%; border: none"
  10577. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  10578. v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('knowledge.cocorobo.cn')!=-1 || fullUrl.indexOf('cloud.cocorobo.cn')!=-1) || fullUrl.indexOf('app.cocorobo.cn')!=-1"
  10579. :src="fullUrl"
  10580. ></iframe>
  10581. <iframe
  10582. style="width: 100%; height: 100%; border: none"
  10583. security="restricted"
  10584. v-else-if="(fulltype == 2 || fulltype == 4)"
  10585. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10586. :src="fullUrl"
  10587. ></iframe>
  10588. <pdf
  10589. v-else-if="fulltype == 3"
  10590. :pdfUrl="fullUrl"
  10591. style="width: 100%; height: 100%; overflow: auto"
  10592. ></pdf>
  10593. <iframe
  10594. style="width: 100%; height: 100%; border: none"
  10595. security="restricted"
  10596. v-if="(fulltype == 16)"
  10597. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10598. :src="fullUrl"
  10599. ></iframe>
  10600. </div>
  10601. <!-- <div slot="footer">
  10602. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  10603. </div> -->
  10604. </el-dialog>
  10605. <el-dialog
  10606. title="个人评价"
  10607. :visible.sync="studentEvalDialogVisible"
  10608. :append-to-body="true"
  10609. width="800px"
  10610. :before-close="handleClose"
  10611. class="dialog_diy"
  10612. >
  10613. <div class="evalCss">
  10614. <div class="nav">请选择星星进行评分</div>
  10615. <div class="middleBox" v-if="eScore.eStar">
  10616. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10617. <div class="nameAndrate">
  10618. <div>{{ e.value }}</div>
  10619. <el-rate
  10620. v-model="eScore.eStar[eIndex]"
  10621. :disabled="isStar"
  10622. ></el-rate>
  10623. </div>
  10624. <div v-if="e.detail">{{ e.detail }}</div>
  10625. </div>
  10626. <div class="easy_comment" v-if="false">
  10627. <div
  10628. v-for="(p, pIndex) in PlTextList"
  10629. :key="pIndex"
  10630. @click="fastText(p, 2)"
  10631. >
  10632. {{ p }}
  10633. </div>
  10634. </div>
  10635. <div class="bz">
  10636. <textarea
  10637. :disabled="isStar"
  10638. rows="4"
  10639. class="pj"
  10640. style="
  10641. padding: 10px 5px;
  10642. width: 70%;
  10643. background: #f7f6f9;
  10644. font-size: 14px;
  10645. text-indent: 10px;
  10646. "
  10647. cols
  10648. v-model="eScore.eBzText"
  10649. placeholder="请输入评价内容..."
  10650. ></textarea>
  10651. </div>
  10652. </div>
  10653. </div>
  10654. <div slot="footer">
  10655. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10656. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10657. >确 定</el-button
  10658. >
  10659. </div>
  10660. </el-dialog>
  10661. <el-dialog
  10662. title="个人评价"
  10663. :visible.sync="studentEvalDialogVisibleTeacher"
  10664. :append-to-body="true"
  10665. width="800px"
  10666. :before-close="handleClose"
  10667. class="dialog_diy"
  10668. >
  10669. <div class="w_name">
  10670. 学生姓名:<span>{{ sStudent.student }}</span>
  10671. </div>
  10672. <div class="evalCss">
  10673. <div class="nav">请选择星星进行评分</div>
  10674. <div class="middleBox" v-if="eScore.eStar">
  10675. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10676. <div class="nameAndrate">
  10677. <div>{{ e.value }}</div>
  10678. <el-rate
  10679. v-model="eScore.eStar[eIndex]"
  10680. :disabled="isStar"
  10681. ></el-rate>
  10682. </div>
  10683. <div v-if="e.detail">{{ e.detail }}</div>
  10684. </div>
  10685. <div class="easy_comment" v-if="false">
  10686. <div
  10687. v-for="(p, pIndex) in PlTextList"
  10688. :key="pIndex"
  10689. @click="fastText(p, 2)"
  10690. >
  10691. {{ p }}
  10692. </div>
  10693. </div>
  10694. <div class="bz">
  10695. <textarea
  10696. :disabled="isStar"
  10697. rows="4"
  10698. class="pj"
  10699. style="
  10700. padding: 10px 5px;
  10701. width: 70%;
  10702. background: #f7f6f9;
  10703. font-size: 14px;
  10704. text-indent: 10px;
  10705. "
  10706. cols
  10707. v-model="eScore.eBzText"
  10708. placeholder="请输入评价内容..."
  10709. ></textarea>
  10710. </div>
  10711. </div>
  10712. </div>
  10713. <div slot="footer">
  10714. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10715. >取 消</el-button
  10716. >
  10717. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10718. >确 定</el-button
  10719. >
  10720. </div>
  10721. </el-dialog>
  10722. <el-dialog
  10723. title="选择匹配"
  10724. :visible.sync="dialogVisibleSelect"
  10725. :append-to-body="true"
  10726. width="90%"
  10727. :before-close="handleClose"
  10728. class="dialog_diy dialog_diy3"
  10729. >
  10730. <div v-if="selectJson">
  10731. <div class="select_box2">
  10732. <div class="select_box2_title">
  10733. <div>选择匹配</div>
  10734. <div>请选择对应的答案进行答题!</div>
  10735. </div>
  10736. <div class="select_box2_box">
  10737. <div class="select_box2_img">
  10738. <img
  10739. :src="selectJson.url"
  10740. @click="previewImg(selectJson.url)"
  10741. alt=""
  10742. />
  10743. </div>
  10744. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10745. <div style="padding-top: 15px">
  10746. <div class="select_answer_title" v-if="isSelect">
  10747. {{ selectAnswer.stu }}
  10748. </div>
  10749. <div class="select_answer_title" v-else>
  10750. 根据题目选择对应答案
  10751. </div>
  10752. <div
  10753. class="select_box2_answer_box"
  10754. v-for="(item2, checkIndex) in selectJson.select"
  10755. :key="checkIndex"
  10756. >
  10757. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10758. <el-select
  10759. :disabled="isSelect"
  10760. v-model="selectAnswer.answer[checkIndex]"
  10761. placeholder="请选择正确答案"
  10762. >
  10763. <el-option
  10764. v-for="(e, eIndex) in selectJson.select"
  10765. :key="eIndex"
  10766. :label="e"
  10767. :value="eIndex"
  10768. >
  10769. </el-option>
  10770. </el-select>
  10771. </div>
  10772. </div>
  10773. <div
  10774. class="rightAnswerCss"
  10775. v-if="isSelect && (tType == 1 || tType == 4)"
  10776. >
  10777. <div
  10778. v-for="(a, aIndex) in selectJson.answer"
  10779. :key="aIndex"
  10780. class="rightAnswer"
  10781. >
  10782. <div
  10783. v-if="selectAnswer.answer[aIndex] === a"
  10784. style="color: #767de1"
  10785. >
  10786. 回答正确
  10787. </div>
  10788. <div v-else>回答错误</div>
  10789. <div
  10790. style="margin-left: 10px"
  10791. v-if="selectAnswer.answer[aIndex] !== a"
  10792. >
  10793. 正确答案:
  10794. </div>
  10795. <div
  10796. :class="
  10797. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10798. "
  10799. >
  10800. {{ selectJson.select[a] }}
  10801. </div>
  10802. </div>
  10803. </div>
  10804. </div>
  10805. <div class="upAnswerCss">
  10806. <el-button
  10807. type="primary"
  10808. @click="addSelectAnswer"
  10809. v-if="!isSelect"
  10810. >提交答案</el-button
  10811. >
  10812. </div>
  10813. </div>
  10814. </div>
  10815. </div>
  10816. </el-dialog>
  10817. <el-dialog
  10818. title="选择匹配"
  10819. :visible.sync="dialogVisibleSelectTeacher"
  10820. :append-to-body="true"
  10821. width="90%"
  10822. :before-close="handleClose"
  10823. class="dialog_diy dialog_diy3"
  10824. >
  10825. <div v-if="selectJson">
  10826. <div class="w_name">
  10827. 学生姓名:<span>{{ sStudent.student }}</span>
  10828. </div>
  10829. <div class="select_box2">
  10830. <div class="select_box2_title">
  10831. <div>选择匹配</div>
  10832. <div>请选择对应的答案进行答题!</div>
  10833. </div>
  10834. <div class="select_box2_box">
  10835. <div class="select_box2_img">
  10836. <img
  10837. :src="selectJson.url"
  10838. @click="previewImg(selectJson.url)"
  10839. alt=""
  10840. />
  10841. </div>
  10842. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10843. <div style="padding-top: 15px">
  10844. <div class="select_answer_title" v-if="isSelect">
  10845. {{ selectAnswer.stu }}
  10846. </div>
  10847. <div class="select_answer_title" v-else>
  10848. 根据题目选择对应答案
  10849. </div>
  10850. <div
  10851. class="select_box2_answer_box"
  10852. v-for="(item2, checkIndex) in selectJson.select"
  10853. :key="checkIndex"
  10854. >
  10855. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10856. <el-select
  10857. :disabled="isSelect"
  10858. v-model="selectAnswer.answer[checkIndex]"
  10859. placeholder="请选择正确答案"
  10860. >
  10861. <el-option
  10862. v-for="(e, eIndex) in selectJson.select"
  10863. :key="eIndex"
  10864. :label="e"
  10865. :value="eIndex"
  10866. >
  10867. </el-option>
  10868. </el-select>
  10869. </div>
  10870. </div>
  10871. <div
  10872. class="rightAnswerCss"
  10873. v-if="isSelect && (tType == 1 || tType == 4)"
  10874. >
  10875. <div
  10876. v-for="(a, aIndex) in selectJson.answer"
  10877. :key="aIndex"
  10878. class="rightAnswer"
  10879. >
  10880. <div
  10881. v-if="selectAnswer.answer[aIndex] === a"
  10882. style="color: #767de1"
  10883. >
  10884. 回答正确
  10885. </div>
  10886. <div v-else>回答错误</div>
  10887. <div
  10888. style="margin-left: 10px"
  10889. v-if="selectAnswer.answer[aIndex] !== a"
  10890. >
  10891. 正确答案:
  10892. </div>
  10893. <div
  10894. :class="
  10895. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10896. "
  10897. >
  10898. {{ selectJson.select[a] }}
  10899. </div>
  10900. </div>
  10901. </div>
  10902. </div>
  10903. <div class="upAnswerCss">
  10904. <el-button
  10905. type="primary"
  10906. @click="addSelectAnswerTeacher"
  10907. v-if="!isSelect"
  10908. >提交答案</el-button
  10909. >
  10910. </div>
  10911. </div>
  10912. </div>
  10913. </div>
  10914. </el-dialog>
  10915. <el-dialog
  10916. title="教师评分"
  10917. :visible.sync="dialogVisibleScore"
  10918. :append-to-body="true"
  10919. width="800px"
  10920. :before-close="handleClose"
  10921. class="dialog_diy"
  10922. >
  10923. <div>
  10924. <div class="studentDetail">
  10925. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10926. <div class="nameAndTime">
  10927. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10928. <div>{{ commentDetail.time }}</div>
  10929. </div>
  10930. </div>
  10931. <div
  10932. class="worksAnswer"
  10933. v-if="commentDetail.works && commentDetail.type == 2"
  10934. >
  10935. {{ JSON.parse(commentDetail.works)[0].answer }}
  10936. </div>
  10937. <div
  10938. class="worksAnswer"
  10939. v-if="commentDetail.works && commentDetail.type == 1"
  10940. >
  10941. <pdf
  10942. v-if="showPDF"
  10943. :pdfUrl="pptImgUrl"
  10944. style="width: 100%; height: 520px; overflow: auto"
  10945. :class="{ fullStyle: full }"
  10946. ></pdf>
  10947. <iframe
  10948. v-else
  10949. :src="pptImgUrl"
  10950. frameborder="0"
  10951. width="100%"
  10952. height="600"
  10953. :class="{ fullStyle: full }"
  10954. ></iframe>
  10955. </div>
  10956. <div
  10957. class="worksAnswer"
  10958. v-if="commentDetail.works && commentDetail.type == 0"
  10959. >
  10960. <img
  10961. :src="commentDetail.works"
  10962. alt=""
  10963. @click="previewImg(commentDetail.works)"
  10964. />
  10965. </div>
  10966. <div
  10967. class="worksAnswer"
  10968. v-if="commentDetail.works && commentDetail.type == 3"
  10969. >
  10970. <video-player
  10971. class="video-player vjs-custom-skin"
  10972. :playsinline="true"
  10973. :options="videoDetail"
  10974. @play="onPlayerPlay($event)"
  10975. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10976. ></video-player>
  10977. </div>
  10978. <div
  10979. class="worksAnswer codeFileBox"
  10980. v-if="commentDetail.works && commentDetail.type == 12"
  10981. @click="downloadFile(commentDetail.works)"
  10982. >
  10983. <img src="../../assets/icon/codeFile.png" />
  10984. <div>点击下载文件</div>
  10985. </div>
  10986. <div
  10987. class="worksAnswer codeFileBox"
  10988. v-if="commentDetail.works && commentDetail.type == 15"
  10989. @click="
  10990. openCocoPi(
  10991. 57,
  10992. commentIndexJson.toolIndex,
  10993. commentDetail.userid,
  10994. commentDetail.sName
  10995. )
  10996. "
  10997. >
  10998. <img src="../../assets/icon/codeFile.png" />
  10999. <div>点击打开CocoPi</div>
  11000. </div>
  11001. <div
  11002. class="worksAnswer"
  11003. v-if="commentDetail.works && commentDetail.type == 13"
  11004. >
  11005. <div v-html="JSON.parse(commentDetail.works).text"></div>
  11006. </div>
  11007. <div class="scoreBox">
  11008. <span class="t">请输入分数</span>
  11009. <el-input-number
  11010. :disabled="courseDetail.userid != userid"
  11011. v-model="wScore"
  11012. :controls="false"
  11013. :min="0"
  11014. :max="100"
  11015. ></el-input-number>
  11016. </div>
  11017. <div class="scoreDetailBox">
  11018. <span class="t">评分评论</span>
  11019. <el-input
  11020. type="textarea"
  11021. :rows="5"
  11022. :disabled="courseDetail.userid != userid"
  11023. resize="none"
  11024. v-model="scoreDetail"
  11025. placeholder="请输入对学生的评价"
  11026. >
  11027. </el-input>
  11028. </div>
  11029. </div>
  11030. <span slot="footer" class="dialog-footer">
  11031. <el-button
  11032. @click="
  11033. (dialogVisibleScore = false),
  11034. (commentIndexJson = {}),
  11035. videoDetail.sources && videoDetail.sources[0]
  11036. ? (videoDetail.sources[0].src = '')
  11037. : ''
  11038. "
  11039. >取 消</el-button
  11040. >
  11041. <el-button
  11042. type="primary"
  11043. v-if="courseDetail.userid == userid"
  11044. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  11045. >确 定
  11046. </el-button>
  11047. </span>
  11048. </el-dialog>
  11049. <el-dialog
  11050. title="排序"
  11051. :visible.sync="dialogVisibleSentence"
  11052. :append-to-body="true"
  11053. width="1000px"
  11054. :before-close="handleClose"
  11055. class="dialog_diy dialog_diy3"
  11056. >
  11057. <div>
  11058. <div class="sentenBox">
  11059. <div
  11060. v-for="(st, stIndex) in sentenceList"
  11061. :key="stIndex"
  11062. style="padding-bottom: 20px"
  11063. >
  11064. <div
  11065. style="padding: 15px 0 10px 20px"
  11066. class="sentenceTitle"
  11067. :index="stIndex + 1"
  11068. >
  11069. 题目{{ stIndex + 1 }}:请选择正确顺序
  11070. </div>
  11071. <div class="cardList" v-if="st.chooseSenList">
  11072. <div class="cardBox">
  11073. <div
  11074. v-for="(r, rIndex) in st.chooseSenList"
  11075. :key="rIndex"
  11076. @click="returnCard(r, stIndex, rIndex)"
  11077. >
  11078. <el-tooltip
  11079. class="item"
  11080. effect="light"
  11081. :content="r"
  11082. placement="top"
  11083. v-if="r != '' && r != undefined"
  11084. >
  11085. <div
  11086. :class="{
  11087. isCard: r,
  11088. isChooseCard: r == '' || r == undefined,
  11089. }"
  11090. >
  11091. <div>{{ r }}</div>
  11092. </div>
  11093. </el-tooltip>
  11094. <div
  11095. :class="{
  11096. isCard: r,
  11097. isChooseCard: r == '' || r == undefined,
  11098. }"
  11099. v-else
  11100. >
  11101. <div>{{ r }}</div>
  11102. </div>
  11103. </div>
  11104. </div>
  11105. </div>
  11106. <div class="cardList" v-if="st.addChangeSen">
  11107. <div class="cardBox">
  11108. <div
  11109. v-for="(s, sIndex) in st.addChangeSen"
  11110. :key="sIndex"
  11111. @click="setRightAnswer(s, stIndex, sIndex)"
  11112. >
  11113. <el-tooltip
  11114. class="item"
  11115. effect="light"
  11116. :content="s"
  11117. placement="top"
  11118. v-if="s != '' && s != undefined"
  11119. >
  11120. <div
  11121. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11122. >
  11123. <div>{{ s }}</div>
  11124. </div>
  11125. </el-tooltip>
  11126. <div
  11127. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11128. v-else
  11129. >
  11130. <div>{{ s }}</div>
  11131. </div>
  11132. </div>
  11133. </div>
  11134. </div>
  11135. </div>
  11136. </div>
  11137. </div>
  11138. <span slot="footer" class="dialog-footer">
  11139. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  11140. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  11141. </span>
  11142. </el-dialog>
  11143. <el-dialog
  11144. title="排序"
  11145. :visible.sync="dialogVisibleSentenceTeacher"
  11146. :append-to-body="true"
  11147. width="1000px"
  11148. :before-close="handleClose"
  11149. class="dialog_diy dialog_diy3"
  11150. >
  11151. <div>
  11152. <div class="w_name">
  11153. 学生姓名:<span>{{ sStudent.student }}</span>
  11154. </div>
  11155. <div class="sentenBox">
  11156. <div
  11157. v-for="(st, stIndex) in sentenceList"
  11158. :key="stIndex"
  11159. style="padding-bottom: 20px"
  11160. >
  11161. <div
  11162. style="padding: 15px 0 10px 20px"
  11163. class="sentenceTitle"
  11164. :index="stIndex + 1"
  11165. >
  11166. 题目{{ stIndex + 1 }}:请选择正确顺序
  11167. </div>
  11168. <div class="cardList" v-if="st.chooseSenList">
  11169. <div class="cardBox">
  11170. <div
  11171. v-for="(r, rIndex) in st.chooseSenList"
  11172. :key="rIndex"
  11173. @click="returnCard(r, stIndex, rIndex)"
  11174. >
  11175. <el-tooltip
  11176. class="item"
  11177. effect="light"
  11178. :content="r"
  11179. placement="top"
  11180. v-if="r != '' && r != undefined"
  11181. >
  11182. <div
  11183. :class="{
  11184. isCard: r,
  11185. isChooseCard: r == '' || r == undefined,
  11186. }"
  11187. >
  11188. <div>{{ r }}</div>
  11189. </div>
  11190. </el-tooltip>
  11191. <div
  11192. :class="{
  11193. isCard: r,
  11194. isChooseCard: r == '' || r == undefined,
  11195. }"
  11196. v-else
  11197. >
  11198. <div>{{ r }}</div>
  11199. </div>
  11200. </div>
  11201. </div>
  11202. </div>
  11203. <div class="cardList" v-if="st.addChangeSen">
  11204. <div class="cardBox">
  11205. <div
  11206. v-for="(s, sIndex) in st.addChangeSen"
  11207. :key="sIndex"
  11208. @click="setRightAnswer(s, stIndex, sIndex)"
  11209. >
  11210. <el-tooltip
  11211. class="item"
  11212. effect="light"
  11213. :content="s"
  11214. placement="top"
  11215. v-if="s != '' && s != undefined"
  11216. >
  11217. <div
  11218. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11219. >
  11220. <div>{{ s }}</div>
  11221. </div>
  11222. </el-tooltip>
  11223. <div
  11224. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11225. v-else
  11226. >
  11227. <div>{{ s }}</div>
  11228. </div>
  11229. </div>
  11230. </div>
  11231. </div>
  11232. </div>
  11233. </div>
  11234. </div>
  11235. <span slot="footer" class="dialog-footer">
  11236. <el-button @click="dialogVisibleSentenceTeacher = false"
  11237. >取 消</el-button
  11238. >
  11239. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  11240. </span>
  11241. </el-dialog>
  11242. <el-dialog
  11243. title="排序"
  11244. :visible.sync="dialogVisibleSentence1"
  11245. :append-to-body="true"
  11246. width="1000px"
  11247. :before-close="handleClose"
  11248. class="dialog_diy dialog_diy3"
  11249. >
  11250. <div>
  11251. <div class="sentenBox">
  11252. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11253. {{ sentenceList1.stuName }}的作业
  11254. </div>
  11255. <div
  11256. v-for="(st, stIndex) in sentenceList1"
  11257. :key="stIndex"
  11258. style="padding-bottom: 20px"
  11259. >
  11260. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11261. 第{{ stIndex + 1 }}题
  11262. </div>
  11263. <div class="isWrong">
  11264. <div class="cardList1" v-if="st.chooseSenList">
  11265. <div class="cardBox">
  11266. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  11267. <el-tooltip
  11268. class="item"
  11269. effect="light"
  11270. :content="s"
  11271. placement="top"
  11272. >
  11273. <div class="isCard">
  11274. <div>{{ s }}</div>
  11275. </div>
  11276. </el-tooltip>
  11277. </div>
  11278. </div>
  11279. <div class="cardAnswerBox">
  11280. 组成句子:{{ st.chooseSenList.join(" ") }}
  11281. </div>
  11282. </div>
  11283. <div v-if="tType == 2" class="isTj">
  11284. <div class="isTjImg">
  11285. <img src="../../assets/icon/conSentences/right.png" alt="" />
  11286. </div>
  11287. <div>已提交</div>
  11288. </div>
  11289. <div
  11290. class="answerRight isTj"
  11291. v-if="
  11292. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  11293. (tType == 1 || tType == 4)
  11294. "
  11295. >
  11296. <div class="isTjImg">
  11297. <img src="../../assets/icon/conSentences/right.png" alt="" />
  11298. </div>
  11299. <div>回答正确</div>
  11300. </div>
  11301. <div
  11302. class="answerRight isTj"
  11303. v-if="
  11304. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11305. (tType == 1 || tType == 4)
  11306. "
  11307. >
  11308. <div class="isTjImg">
  11309. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  11310. </div>
  11311. <div>回答错误</div>
  11312. </div>
  11313. </div>
  11314. <div
  11315. v-if="
  11316. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11317. (tType == 1 || tType == 4)
  11318. "
  11319. >
  11320. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  11321. <div
  11322. class="cardList"
  11323. v-if="st.rightAnswer"
  11324. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  11325. >
  11326. <div class="cardBox">
  11327. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  11328. <el-tooltip
  11329. class="item"
  11330. effect="light"
  11331. :content="r"
  11332. placement="top"
  11333. >
  11334. <div class="isCard1">
  11335. <div>{{ r }}</div>
  11336. </div>
  11337. </el-tooltip>
  11338. </div>
  11339. </div>
  11340. <div class="cardAnswerBox">
  11341. 组成句子:{{ st.rightAnswer.join(" ") }}
  11342. </div>
  11343. </div>
  11344. </div>
  11345. </div>
  11346. </div>
  11347. </div>
  11348. <span slot="footer" class="dialog-footer">
  11349. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  11350. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  11351. >确 定</el-button
  11352. >
  11353. </span>
  11354. </el-dialog>
  11355. <el-dialog
  11356. title="教师提交作业"
  11357. :visible.sync="dialogVisibleWorks"
  11358. :append-to-body="true"
  11359. width="500px"
  11360. :before-close="handleClose"
  11361. class="dialog_change"
  11362. >
  11363. <div class="marginT">
  11364. <div class="w_name">
  11365. 学生姓名:<span>{{ sStudent.student }}</span>
  11366. </div>
  11367. <div>上传文件</div>
  11368. <div style="display: flex; gap: 10px">
  11369. <div
  11370. class="chapter_add"
  11371. @click="addImg($event)"
  11372. v-if="studyJuri[0].cover.length == 0"
  11373. >
  11374. <div class="up_photo">
  11375. <img src="../../assets/icon/uploadImg.png" alt />
  11376. </div>
  11377. <!-- <input
  11378. type="file"
  11379. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11380. style="display: none"
  11381. @change="beforeUpload1($event, 1)"
  11382. /> -->
  11383. <input
  11384. type="file"
  11385. accept="*"
  11386. style="display: none"
  11387. @change="beforeUpload1($event, 1)"
  11388. />
  11389. <!-- <input
  11390. type="file"
  11391. accept="image/*"
  11392. capture="camera"
  11393. style="display: none"
  11394. @change="beforeUpload1($event, 1)"
  11395. /> -->
  11396. </div>
  11397. <div
  11398. class="chapter_add"
  11399. @click="addImg($event)"
  11400. v-if="studyJuri[0].cover.length == 0"
  11401. >
  11402. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  11403. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  11404. </div>
  11405. <input
  11406. type="file"
  11407. accept="image/*"
  11408. capture="camera"
  11409. style="display: none"
  11410. @change="beforeUpload1($event, 1)"
  11411. />
  11412. </div>
  11413. </div>
  11414. <!-- capture="camera" -->
  11415. <div
  11416. class="chapter_add"
  11417. style="
  11418. display: flex;
  11419. width: 100%;
  11420. flex-direction: row;
  11421. flex-wrap: wrap;
  11422. justify-content: flex-start;
  11423. padding: 15px 0;
  11424. "
  11425. v-if="studyJuri[0].cover.length > 0"
  11426. >
  11427. <div class="upCover">
  11428. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11429. <img :src="word" alt v-else-if="fileType == 1" />
  11430. <img :src="video" alt v-else-if="fileType == 2" />
  11431. <img :src="word2" alt v-else-if="fileType == 3" />
  11432. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11433. <div class="deleteWord" @click="clean(1)">
  11434. <img src="../../assets/icon/deleteWorks.png" alt />
  11435. </div>
  11436. </div>
  11437. </div>
  11438. </div>
  11439. <div
  11440. class="upload_send"
  11441. @click="addCourseWorksTeacher(taskCount)"
  11442. v-if="!proVisible"
  11443. >
  11444. 提交
  11445. </div>
  11446. </el-dialog>
  11447. <ImgDraw
  11448. :drawShow="drawShow"
  11449. @closeDraw="closeDraw"
  11450. @addImgDraw="addImgDraw"
  11451. :bg="bg"
  11452. ></ImgDraw>
  11453. <el-dialog
  11454. title="表格"
  11455. :visible.sync="dialogVisibleTable"
  11456. :append-to-body="true"
  11457. width="95%"
  11458. :before-close="handleClose"
  11459. class="dialog_diy"
  11460. >
  11461. <el-form>
  11462. <div
  11463. style="
  11464. display: flex;
  11465. align-items: center;
  11466. justify-content: space-between;
  11467. "
  11468. >
  11469. <span>表格内容</span>
  11470. <el-button type="primary" size="small" @click="returnTableText"
  11471. >还原模板</el-button
  11472. >
  11473. </div>
  11474. <Table
  11475. v-model="tableJson.text"
  11476. @change="change"
  11477. v-if="dialogVisibleTable"
  11478. ></Table>
  11479. </el-form>
  11480. <span slot="footer" class="dialog-footer">
  11481. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  11482. <el-button type="primary" @click="addTableWorks">确定</el-button>
  11483. </span>
  11484. </el-dialog>
  11485. <el-dialog
  11486. title="表格"
  11487. :visible.sync="dialogVisibleTableTeacher"
  11488. :append-to-body="true"
  11489. width="95%"
  11490. :before-close="handleClose"
  11491. class="dialog_diy"
  11492. >
  11493. <el-form>
  11494. <div class="w_name">
  11495. 学生姓名:<span>{{ sStudent.student }}</span>
  11496. </div>
  11497. <div>表格内容</div>
  11498. <Table
  11499. v-model="tableJson.text"
  11500. @change="change"
  11501. v-if="dialogVisibleTableTeacher"
  11502. ></Table>
  11503. </el-form>
  11504. <span slot="footer" class="dialog-footer">
  11505. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  11506. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  11507. </span>
  11508. </el-dialog>
  11509. <el-dialog
  11510. title="文档"
  11511. :visible.sync="dialogVisibleWord"
  11512. :append-to-body="true"
  11513. width="95%"
  11514. :before-close="handleClose"
  11515. class="dialog_diy"
  11516. >
  11517. <el-form>
  11518. <div
  11519. style="
  11520. display: flex;
  11521. align-items: center;
  11522. justify-content: space-between;
  11523. "
  11524. >
  11525. <span>文档内容</span>
  11526. <el-button type="primary" size="small" @click="returnWordText"
  11527. >还原模板</el-button
  11528. >
  11529. </div>
  11530. <editor-bar
  11531. v-model="wordJson.text"
  11532. v-if="dialogVisibleWord"
  11533. ></editor-bar>
  11534. </el-form>
  11535. <span slot="footer" class="dialog-footer">
  11536. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  11537. <el-button type="primary" @click="addWordWorks">确定</el-button>
  11538. </span>
  11539. </el-dialog>
  11540. <el-dialog
  11541. title="文档"
  11542. :visible.sync="dialogVisibleWordTeacher"
  11543. :append-to-body="true"
  11544. width="95%"
  11545. :before-close="handleClose"
  11546. class="dialog_diy"
  11547. >
  11548. <el-form>
  11549. <div class="w_name">
  11550. 学生姓名:<span>{{ sStudent.student }}</span>
  11551. </div>
  11552. <div>文档内容</div>
  11553. <editor-bar
  11554. v-model="wordJson.text"
  11555. v-if="dialogVisibleWordTeacher"
  11556. ></editor-bar>
  11557. </el-form>
  11558. <span slot="footer" class="dialog-footer">
  11559. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  11560. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  11561. </span>
  11562. </el-dialog>
  11563. <el-dialog
  11564. title="表格"
  11565. :visible.sync="dialogVisibleTable2"
  11566. :append-to-body="true"
  11567. width="95%"
  11568. :before-close="handleClose"
  11569. class="dialog_diy"
  11570. >
  11571. <el-form>
  11572. <div class="cont" v-html="tableJson.text"></div>
  11573. </el-form>
  11574. <span slot="footer" class="dialog-footer">
  11575. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  11576. </span>
  11577. </el-dialog>
  11578. <el-dialog
  11579. title="文档"
  11580. :visible.sync="dialogVisibleTable3"
  11581. :append-to-body="true"
  11582. width="95%"
  11583. :before-close="handleClose"
  11584. class="dialog_diy"
  11585. >
  11586. <el-form>
  11587. <div class="cont" v-html="tableJson.text"></div>
  11588. </el-form>
  11589. <span slot="footer" class="dialog-footer">
  11590. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  11591. </span>
  11592. </el-dialog>
  11593. <el-dialog
  11594. title="分组设置"
  11595. :visible.sync="dialogVisibleGroup"
  11596. :append-to-body="true"
  11597. width="95%"
  11598. :before-close="handleClose"
  11599. class="dialog_diy"
  11600. >
  11601. <div v-if="dialogVisibleGroup">
  11602. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  11603. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  11604. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  11605. </div>
  11606. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  11607. @click="lockChair">
  11608. 锁定位置
  11609. </div>
  11610. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  11611. 解锁位置
  11612. </div> -->
  11613. <div class="group_switch">
  11614. <span>开放选座</span>
  11615. <el-switch
  11616. v-model="islock"
  11617. active-text=""
  11618. class="switchCss"
  11619. @change="lockChair"
  11620. ></el-switch>
  11621. </div>
  11622. <div
  11623. type="primary"
  11624. @click="updateGroup"
  11625. class="returnBtn"
  11626. style="background-color: #225bc7"
  11627. >
  11628. 分组设置
  11629. </div>
  11630. </div>
  11631. <div>
  11632. <div
  11633. class="g_d_box"
  11634. v-if="groupJson.group && groupStudent[toolindex]"
  11635. >
  11636. <div
  11637. class="g_d_group"
  11638. v-for="(g, gindex) in groupJson.group"
  11639. :key="gindex"
  11640. >
  11641. <div class="g_d_group_chair">
  11642. <div v-if="groupJson.number > 1">
  11643. <span
  11644. :class="{
  11645. isChair:
  11646. groupStudent[toolindex][gindex] &&
  11647. groupStudent[toolindex][gindex][0],
  11648. updateChair:
  11649. courseDetail.userid == userid &&
  11650. groupStudent[toolindex][gindex] &&
  11651. groupStudent[toolindex][gindex][0] &&
  11652. groupJson.islock == 2,
  11653. }"
  11654. ><span
  11655. class="updateChairBtn"
  11656. @click="
  11657. updateGroupChair(
  11658. groupStudent[toolindex][gindex] &&
  11659. groupStudent[toolindex][gindex][0]
  11660. )
  11661. "
  11662. >修改</span
  11663. ></span
  11664. ><span>{{
  11665. groupStudent[toolindex][gindex] &&
  11666. groupStudent[toolindex][gindex][0]
  11667. ? groupStudent[toolindex][gindex] &&
  11668. groupStudent[toolindex][gindex][0].name
  11669. : "空位置"
  11670. }}</span>
  11671. </div>
  11672. <div v-if="groupJson.number > 4">
  11673. <span
  11674. :class="{
  11675. isChair:
  11676. groupStudent[toolindex][gindex] &&
  11677. groupStudent[toolindex][gindex][4],
  11678. updateChair:
  11679. courseDetail.userid == userid &&
  11680. groupStudent[toolindex][gindex] &&
  11681. groupStudent[toolindex][gindex][4] &&
  11682. groupJson.islock == 2,
  11683. }"
  11684. ><span
  11685. class="updateChairBtn"
  11686. @click="
  11687. updateGroupChair(
  11688. groupStudent[toolindex][gindex] &&
  11689. groupStudent[toolindex][gindex][4]
  11690. )
  11691. "
  11692. >修改</span
  11693. ></span
  11694. ><span>{{
  11695. groupStudent[toolindex][gindex] &&
  11696. groupStudent[toolindex][gindex][4]
  11697. ? groupStudent[toolindex][gindex] &&
  11698. groupStudent[toolindex][gindex][4].name
  11699. : "空位置"
  11700. }}</span>
  11701. </div>
  11702. <div v-if="groupJson.number > 8">
  11703. <span
  11704. :class="{
  11705. isChair:
  11706. groupStudent[toolindex][gindex] &&
  11707. groupStudent[toolindex][gindex][8],
  11708. updateChair:
  11709. courseDetail.userid == userid &&
  11710. groupStudent[toolindex][gindex] &&
  11711. groupStudent[toolindex][gindex][8] &&
  11712. groupJson.islock == 2,
  11713. }"
  11714. ><span
  11715. class="updateChairBtn"
  11716. @click="
  11717. updateGroupChair(
  11718. groupStudent[toolindex][gindex] &&
  11719. groupStudent[toolindex][gindex][8]
  11720. )
  11721. "
  11722. >修改</span
  11723. ></span
  11724. ><span>{{
  11725. groupStudent[toolindex][gindex] &&
  11726. groupStudent[toolindex][gindex][8]
  11727. ? groupStudent[toolindex][gindex] &&
  11728. groupStudent[toolindex][gindex][8].name
  11729. : "空位置"
  11730. }}</span>
  11731. </div>
  11732. </div>
  11733. <div class="g_d_group_tableBox">
  11734. <div class="g_d_group_chair2">
  11735. <div v-if="groupJson.number > 2">
  11736. <span
  11737. :class="{
  11738. isChair:
  11739. groupStudent[toolindex][gindex] &&
  11740. groupStudent[toolindex][gindex][2],
  11741. updateChair:
  11742. courseDetail.userid == userid &&
  11743. groupStudent[toolindex][gindex] &&
  11744. groupStudent[toolindex][gindex][2] &&
  11745. groupJson.islock == 2,
  11746. }"
  11747. ><span
  11748. class="updateChairBtn"
  11749. @click="
  11750. updateGroupChair(
  11751. groupStudent[toolindex][gindex] &&
  11752. groupStudent[toolindex][gindex][2]
  11753. )
  11754. "
  11755. >修改</span
  11756. ></span
  11757. ><span>{{
  11758. groupStudent[toolindex][gindex] &&
  11759. groupStudent[toolindex][gindex][2]
  11760. ? groupStudent[toolindex][gindex] &&
  11761. groupStudent[toolindex][gindex][2].name
  11762. : "空位置"
  11763. }}</span>
  11764. </div>
  11765. <div v-if="groupJson.number > 6">
  11766. <span
  11767. :class="{
  11768. isChair:
  11769. groupStudent[toolindex][gindex] &&
  11770. groupStudent[toolindex][gindex][6],
  11771. updateChair:
  11772. courseDetail.userid == userid &&
  11773. groupStudent[toolindex][gindex] &&
  11774. groupStudent[toolindex][gindex][6] &&
  11775. groupJson.islock == 2,
  11776. }"
  11777. ><span
  11778. class="updateChairBtn"
  11779. @click="
  11780. updateGroupChair(
  11781. groupStudent[toolindex][gindex] &&
  11782. groupStudent[toolindex][gindex][6]
  11783. )
  11784. "
  11785. >修改</span
  11786. ></span
  11787. ><span>{{
  11788. groupStudent[toolindex][gindex] &&
  11789. groupStudent[toolindex][gindex][6]
  11790. ? groupStudent[toolindex][gindex] &&
  11791. groupStudent[toolindex][gindex][6].name
  11792. : "空位置"
  11793. }}</span>
  11794. </div>
  11795. </div>
  11796. <div class="g_d_group_table">
  11797. <div>
  11798. {{ g.name }}
  11799. </div>
  11800. <div>
  11801. <div
  11802. v-if="
  11803. courseDetail.userid == userid && groupJson.islock == 2
  11804. "
  11805. @click="deleteGroupChair(gindex)"
  11806. >
  11807. 移除组员
  11808. </div>
  11809. <div
  11810. @click="selectGroup(gindex)"
  11811. v-else-if="
  11812. groupStudentUid[toolindex] &&
  11813. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11814. "
  11815. >
  11816. 加入分组
  11817. </div>
  11818. <div
  11819. @click="
  11820. exitGroup(
  11821. groupStudent[toolindex][gindex] &&
  11822. groupStudent[toolindex][gindex][
  11823. groupStudentUid[toolindex][gindex].indexOf(userid)
  11824. ].id
  11825. )
  11826. "
  11827. v-else-if="
  11828. groupStudentUid[toolindex] &&
  11829. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11830. "
  11831. >
  11832. 退出分组
  11833. </div>
  11834. </div>
  11835. </div>
  11836. <div class="g_d_group_chair2">
  11837. <div v-if="groupJson.number > 3">
  11838. <span
  11839. :class="{
  11840. isChair:
  11841. groupStudent[toolindex][gindex] &&
  11842. groupStudent[toolindex][gindex][3],
  11843. updateChair:
  11844. courseDetail.userid == userid &&
  11845. groupStudent[toolindex][gindex] &&
  11846. groupStudent[toolindex][gindex][3] &&
  11847. groupJson.islock == 2,
  11848. }"
  11849. ><span
  11850. class="updateChairBtn"
  11851. @click="
  11852. updateGroupChair(
  11853. groupStudent[toolindex][gindex] &&
  11854. groupStudent[toolindex][gindex][3]
  11855. )
  11856. "
  11857. >修改</span
  11858. ></span
  11859. ><span>{{
  11860. groupStudent[toolindex][gindex] &&
  11861. groupStudent[toolindex][gindex][3]
  11862. ? groupStudent[toolindex][gindex] &&
  11863. groupStudent[toolindex][gindex][3].name
  11864. : "空位置"
  11865. }}</span>
  11866. </div>
  11867. <div v-if="groupJson.number > 7">
  11868. <span
  11869. :class="{
  11870. isChair:
  11871. groupStudent[toolindex][gindex] &&
  11872. groupStudent[toolindex][gindex][7],
  11873. updateChair:
  11874. courseDetail.userid == userid &&
  11875. groupStudent[toolindex][gindex] &&
  11876. groupStudent[toolindex][gindex][7] &&
  11877. groupJson.islock == 2,
  11878. }"
  11879. ><span
  11880. class="updateChairBtn"
  11881. @click="
  11882. updateGroupChair(
  11883. groupStudent[toolindex][gindex] &&
  11884. groupStudent[toolindex][gindex][7]
  11885. )
  11886. "
  11887. >修改</span
  11888. ></span
  11889. ><span>{{
  11890. groupStudent[toolindex][gindex] &&
  11891. groupStudent[toolindex][gindex][7]
  11892. ? groupStudent[toolindex][gindex] &&
  11893. groupStudent[toolindex][gindex][7].name
  11894. : "空位置"
  11895. }}</span>
  11896. </div>
  11897. </div>
  11898. </div>
  11899. <div class="g_d_group_chair">
  11900. <div v-if="groupJson.number > 1">
  11901. <span
  11902. :class="{
  11903. isChair:
  11904. groupStudent[toolindex][gindex] &&
  11905. groupStudent[toolindex][gindex][1],
  11906. updateChair:
  11907. courseDetail.userid == userid &&
  11908. groupStudent[toolindex][gindex] &&
  11909. groupStudent[toolindex][gindex][1] &&
  11910. groupJson.islock == 2,
  11911. }"
  11912. ><span
  11913. class="updateChairBtn"
  11914. @click="
  11915. updateGroupChair(
  11916. groupStudent[toolindex][gindex] &&
  11917. groupStudent[toolindex][gindex][1]
  11918. )
  11919. "
  11920. >修改</span
  11921. ></span
  11922. ><span>{{
  11923. groupStudent[toolindex][gindex] &&
  11924. groupStudent[toolindex][gindex][1]
  11925. ? groupStudent[toolindex][gindex] &&
  11926. groupStudent[toolindex][gindex][1].name
  11927. : "空位置"
  11928. }}</span>
  11929. </div>
  11930. <div v-if="groupJson.number > 5">
  11931. <span
  11932. :class="{
  11933. isChair:
  11934. groupStudent[toolindex][gindex] &&
  11935. groupStudent[toolindex][gindex][5],
  11936. updateChair:
  11937. courseDetail.userid == userid &&
  11938. groupStudent[toolindex][gindex] &&
  11939. groupStudent[toolindex][gindex][5] &&
  11940. groupJson.islock == 2,
  11941. }"
  11942. ><span
  11943. class="updateChairBtn"
  11944. @click="
  11945. updateGroupChair(
  11946. groupStudent[toolindex][gindex] &&
  11947. groupStudent[toolindex][gindex][5]
  11948. )
  11949. "
  11950. >修改</span
  11951. ></span
  11952. ><span>{{
  11953. groupStudent[toolindex][gindex] &&
  11954. groupStudent[toolindex][gindex][5]
  11955. ? groupStudent[toolindex][gindex] &&
  11956. groupStudent[toolindex][gindex][5].name
  11957. : "空位置"
  11958. }}</span>
  11959. </div>
  11960. <div v-if="groupJson.number > 9">
  11961. <span
  11962. :class="{
  11963. isChair:
  11964. groupStudent[toolindex][gindex] &&
  11965. groupStudent[toolindex][gindex][9],
  11966. updateChair:
  11967. courseDetail.userid == userid &&
  11968. groupStudent[toolindex][gindex] &&
  11969. groupStudent[toolindex][gindex][9] &&
  11970. groupJson.islock == 2,
  11971. }"
  11972. ><span
  11973. class="updateChairBtn"
  11974. @click="
  11975. updateGroupChair(
  11976. groupStudent[toolindex][gindex] &&
  11977. groupStudent[toolindex][gindex][9]
  11978. )
  11979. "
  11980. >修改</span
  11981. ></span
  11982. ><span>{{
  11983. groupStudent[toolindex][gindex] &&
  11984. groupStudent[toolindex][gindex][9]
  11985. ? groupStudent[toolindex][gindex] &&
  11986. groupStudent[toolindex][gindex][9].name
  11987. : "空位置"
  11988. }}</span>
  11989. </div>
  11990. </div>
  11991. </div>
  11992. </div>
  11993. </div>
  11994. </div>
  11995. <span slot="footer" class="dialog-footer">
  11996. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11997. </span>
  11998. </el-dialog>
  11999. <el-dialog
  12000. title="分组设置"
  12001. :visible.sync="dialogVisibleGroup2"
  12002. :append-to-body="true"
  12003. width="650px"
  12004. :before-close="handleClose"
  12005. class="dialog_diy"
  12006. >
  12007. <div class="groupBox">
  12008. <div v-if="groupJson2.group" class="groupContent">
  12009. <div class="groupTitle">请设置小组数量及名称</div>
  12010. <div
  12011. v-for="(item, index) in groupJson2.group"
  12012. :key="index"
  12013. class="groupName"
  12014. >
  12015. <span class="groupn">第{{ index + 1 }}组名称:</span>
  12016. <el-input
  12017. v-model="item.name"
  12018. placeholder="请输入名称..."
  12019. style="width: 250px"
  12020. ></el-input>
  12021. <!-- <div class="groupBtn">
  12022. <el-button type="primary" size="small" @click="addGroup(index)">
  12023. 添加</el-button>
  12024. <el-button type="primary" size="small" @click="deleteGroup(index)"
  12025. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  12026. </div> -->
  12027. </div>
  12028. </div>
  12029. <div class="groupContent">
  12030. <div class="groupTitle">请设置每组人数</div>
  12031. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  12032. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  12033. <el-input
  12034. v-model="groupJson2.number"
  12035. style="width: 150px"
  12036. placeholder="请输入2-10的数字"
  12037. @change="numberPan"
  12038. ></el-input>
  12039. </div>
  12040. </div>
  12041. <span slot="footer" class="dialog-footer">
  12042. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  12043. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  12044. </span>
  12045. </el-dialog>
  12046. <el-dialog
  12047. title="作业提交"
  12048. :visible.sync="dialogVisibleGroupWork"
  12049. :append-to-body="true"
  12050. width="500px"
  12051. :before-close="handleClose"
  12052. class="dialog_change"
  12053. >
  12054. <div class="marginT">
  12055. <div>上传文件</div>
  12056. <div
  12057. class="chapter_add"
  12058. @click="addImg($event)"
  12059. v-if="studyJuri[0].cover.length == 0"
  12060. >
  12061. <div class="up_photo">
  12062. <img src="../../assets/icon/uploadImg.png" alt />
  12063. </div>
  12064. <!-- <input
  12065. type="file"
  12066. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12067. style="display: none"
  12068. @change="beforeUpload1($event, 1)"
  12069. /> -->
  12070. <input
  12071. type="file"
  12072. accept="*"
  12073. style="display: none"
  12074. @change="beforeUpload1($event, 1)"
  12075. />
  12076. </div>
  12077. <!-- capture="camera" -->
  12078. <div
  12079. class="chapter_add"
  12080. style="
  12081. display: flex;
  12082. width: 100%;
  12083. flex-direction: row;
  12084. flex-wrap: wrap;
  12085. justify-content: flex-start;
  12086. padding: 15px 0;
  12087. "
  12088. v-if="studyJuri[0].cover.length > 0"
  12089. >
  12090. <div class="upCover">
  12091. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  12092. <img :src="word" alt v-else-if="fileType == 1" />
  12093. <img :src="video" alt v-else-if="fileType == 2" />
  12094. <img :src="word2" alt v-else-if="fileType == 3" />
  12095. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  12096. <div class="deleteWord" @click="clean(1)">
  12097. <img src="../../assets/icon/deleteWorks.png" alt />
  12098. </div>
  12099. </div>
  12100. </div>
  12101. </div>
  12102. <div
  12103. class="upload_send"
  12104. @click="addCourseWorks2(taskCount)"
  12105. v-if="!proVisible"
  12106. >
  12107. 提交
  12108. </div>
  12109. </el-dialog>
  12110. <el-dialog
  12111. title="修改分组"
  12112. :visible.sync="dialogVisibleUpdateGroup"
  12113. :append-to-body="true"
  12114. width="350px"
  12115. :before-close="handleClose"
  12116. class="dialog_diy"
  12117. >
  12118. <div>
  12119. <h2>
  12120. {{ this.updateGroupUser.name }}
  12121. </h2>
  12122. <div style="color: rgb(171 171 171); margin-top: 10px">
  12123. 请选择要进入的分组
  12124. </div>
  12125. <el-radio-group v-model="checkChair">
  12126. <el-radio
  12127. style="display: block; margin-top: 20px"
  12128. v-for="(item, index) in updateGroupArray"
  12129. :label="item.label"
  12130. :key="index"
  12131. >{{ item.name }}</el-radio
  12132. >
  12133. </el-radio-group>
  12134. </div>
  12135. <span slot="footer" class="dialog-footer">
  12136. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  12137. <el-button type="primary" @click="updateChair">确定</el-button>
  12138. </span>
  12139. </el-dialog>
  12140. <el-dialog
  12141. title="移除组员"
  12142. :visible.sync="dialogVisibleDeleteGroup"
  12143. :append-to-body="true"
  12144. width="350px"
  12145. :before-close="handleClose"
  12146. class="dialog_diy"
  12147. >
  12148. <div>
  12149. <h2>
  12150. {{ this.deleteGroupArray.name }}
  12151. </h2>
  12152. <div style="color: rgb(171 171 171); margin-top: 10px">
  12153. 请选择要删除的组员
  12154. </div>
  12155. <el-checkbox-group v-model="checkDeleteGroup">
  12156. <el-checkbox
  12157. style="display: flex; margin-top: 20px"
  12158. v-for="(item, index) in deleteGroupUser"
  12159. :label="item.userid"
  12160. :key="index"
  12161. >{{ item.name }}</el-checkbox
  12162. >
  12163. </el-checkbox-group>
  12164. </div>
  12165. <span slot="footer" class="dialog-footer">
  12166. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  12167. <el-button type="primary" @click="deleteChair">确定</el-button>
  12168. </span>
  12169. </el-dialog>
  12170. <el-dialog
  12171. title="批量上传"
  12172. :visible.sync="dialogVisiblePl"
  12173. :append-to-body="true"
  12174. width="700px"
  12175. :before-close="handleClose"
  12176. class="dialog_change"
  12177. >
  12178. <div class="marginT">
  12179. <div class="plworkBox">
  12180. <div
  12181. class="chapter_add"
  12182. style="
  12183. display: flex;
  12184. width: 150px;
  12185. flex-direction: row;
  12186. flex-wrap: wrap;
  12187. justify-content: flex-start;
  12188. margin: 0 10px 10px 0;
  12189. "
  12190. v-for="(item, index) in plworkFile"
  12191. :key="index"
  12192. >
  12193. <div class="upCover2">
  12194. <img
  12195. :src="item.url"
  12196. alt
  12197. v-if="item.fileType == 1"
  12198. @click="previewImg(item.url)"
  12199. />
  12200. <img :src="word" alt v-else-if="item.fileType == 4" />
  12201. <img :src="video" alt v-else />
  12202. <!-- <span class="picName">{{ item.name }}</span> -->
  12203. <!-- <el-input
  12204. v-model="item.username"
  12205. placeholder="请输入学生名字"
  12206. style="margin-top: 10px"
  12207. ></el-input> -->
  12208. <div
  12209. class="pl_select_box"
  12210. @click="
  12211. getUpdateMore(true, checkUpload(), item.username, index)
  12212. "
  12213. >
  12214. {{ getSName(item.username) }}
  12215. </div>
  12216. <!-- <el-select
  12217. style="margin-top: 10px"
  12218. v-model="item.username"
  12219. filterable
  12220. allow-create
  12221. placeholder="请选择学生"
  12222. >
  12223. <el-option
  12224. v-for="item1 in checkUpload()"
  12225. :key="item1.userid"
  12226. :label="item1.name ? item1.name : item1.username"
  12227. :value="item1.userid"
  12228. >
  12229. </el-option>
  12230. </el-select> -->
  12231. <div class="deleteWord" @click="clean2(index)">
  12232. <img src="../../assets/icon/deleteWorks.png" alt />
  12233. </div>
  12234. </div>
  12235. </div>
  12236. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  12237. <div class="up_photo2">
  12238. <img src="../../assets/icon/plwork.png" alt />
  12239. <span>点击上传文件</span>
  12240. </div>
  12241. <input
  12242. type="file"
  12243. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12244. multiple="multiple"
  12245. style="display: none"
  12246. @change="beforeUpload3($event, 6)"
  12247. />
  12248. </div>
  12249. </div>
  12250. </div>
  12251. <!-- capture="camera" -->
  12252. <div
  12253. class="upload_send"
  12254. @click="addCourseWorksPl(taskCount)"
  12255. v-if="!proVisible2"
  12256. >
  12257. 提交
  12258. </div>
  12259. </el-dialog>
  12260. <el-dialog
  12261. title="修改名称"
  12262. :visible.sync="dialogVisibleSname"
  12263. width="500px"
  12264. :before-close="handleClose"
  12265. class="dialog_diy"
  12266. center
  12267. >
  12268. <div
  12269. style="
  12270. text-align: center;
  12271. display: flex;
  12272. align-items: center;
  12273. justify-content: center;
  12274. "
  12275. >
  12276. <span class="tian1">名称</span>
  12277. <div
  12278. class="pl_select_box"
  12279. style="margin-left: 10px; width: 200px"
  12280. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  12281. >
  12282. {{ getSName(worksSName) }}
  12283. </div>
  12284. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  12285. placeholder="请选择学生">
  12286. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  12287. :value="item.userid">
  12288. </el-option>
  12289. </el-select> -->
  12290. <!-- <el-input
  12291. v-model="worksSName"
  12292. style="width: 250px; margin: 15px 0px"
  12293. ></el-input> -->
  12294. </div>
  12295. <span slot="footer" class="dialog-footer">
  12296. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  12297. <el-button type="primary" @click="updateName">确 定</el-button>
  12298. </span>
  12299. </el-dialog>
  12300. <el-dialog
  12301. title="英语写作"
  12302. :visible.sync="engDialogVisible"
  12303. :append-to-body="true"
  12304. width="800px"
  12305. :before-close="handleClose"
  12306. class="dialog_diy"
  12307. >
  12308. <onlineWrite
  12309. v-if="engDialogVisible"
  12310. :englishList="englishList"
  12311. :myAnswerList1="myAnswerList1"
  12312. ref="engJson"
  12313. ></onlineWrite>
  12314. <span slot="footer" class="dialog-footer" style="text-align: center;">
  12315. <el-button @click="engDialogVisible = false">取 消</el-button>
  12316. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  12317. </span>
  12318. </el-dialog>
  12319. <el-dialog
  12320. title="英语写作"
  12321. :visible.sync="engUpdateDialogVisible"
  12322. :append-to-body="true"
  12323. width="800px"
  12324. :before-close="handleClose"
  12325. class="dialog_diy fullStyle"
  12326. >
  12327. <div class="engUpBox">
  12328. <div class="engUpTop">
  12329. <div class="engTitle">
  12330. <div>作文题目:</div>
  12331. <div>{{ englishList1.engTitle }}</div>
  12332. </div>
  12333. <div class="engText">
  12334. <div>作文内容:</div>
  12335. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  12336. </div>
  12337. </div>
  12338. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  12339. <div class="oldBox">
  12340. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  12341. <div class="oldText">
  12342. <div class="detailBox">
  12343. <div class="oldDetail">
  12344. <div>标题:</div>
  12345. <div>{{ oldEnglishJson.engTitle }} </div>
  12346. </div>
  12347. <div class="oldDetail1">
  12348. <div>正文:</div>
  12349. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  12350. </div>
  12351. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  12352. <div>图片:</div>
  12353. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  12354. </div>
  12355. </div>
  12356. </div>
  12357. </div>
  12358. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  12359. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  12360. <div class="oldText">
  12361. <div class="detailBox" style="position: relative;">
  12362. <div class="oldDetail">
  12363. <div>标题:</div>
  12364. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12365. <div v-else v-html="newEnglishList.engTitle"></div>
  12366. </div>
  12367. <div class="oldDetail">
  12368. <div>正文:</div>
  12369. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12370. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12371. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  12372. </div>
  12373. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12374. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12375. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12376. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12377. </div>
  12378. </div>
  12379. </div>
  12380. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  12381. <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">
  12382. <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>
  12383. <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>
  12384. </div>
  12385. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  12386. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  12387. <div class="detailBox" style="position: relative;">
  12388. <div class="oldDetail">
  12389. <div>标题:</div>
  12390. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  12391. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  12392. </div>
  12393. <div class="oldDetail">
  12394. <div>正文:</div>
  12395. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  12396. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  12397. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(oldEnglishJson1.engText,correctWord)"></div> -->
  12398. </div>
  12399. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12400. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12401. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12402. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12403. </div>
  12404. </div>
  12405. <div class="oldText" v-else-if="newEngIndex == -1">
  12406. <div class="detailBox" style="position: relative;">
  12407. <div class="oldDetail">
  12408. <div>标题:</div>
  12409. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12410. <div v-else v-html="newEnglishList.engTitle"></div>
  12411. </div>
  12412. <div class="oldDetail">
  12413. <div>正文:</div>
  12414. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12415. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12416. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  12417. </div>
  12418. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12419. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12420. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12421. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12422. </div>
  12423. </div>
  12424. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  12425. <div class="detailBox" style="position: relative;">
  12426. <div class="oldDetail">
  12427. <div>标题:</div>
  12428. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12429. <div v-else>
  12430. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  12431. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12432. </div>
  12433. </div>
  12434. <div class="oldDetail">
  12435. <div>正文:</div>
  12436. <!-- <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engText"></div> -->
  12437. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12438. <div v-else>
  12439. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  12440. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12441. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList1[newEngIndex].cWork.engText,correctWord)"></div> -->
  12442. </div>
  12443. </div>
  12444. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12445. <el-button @click="isUpdateCorrect(newEnglishList1[newEngIndex].cWork.engText,4)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }" v-if="!greyType && userMes[0].userid == newEnglishList1[newEngIndex].correct">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12446. <el-button @click="aiCorrect(newEnglishList1[newEngIndex].cWork.engText,4)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType && userMes[0].userid == newEnglishList1[newEngIndex].correct">AI批注</el-button>
  12447. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12448. </div>
  12449. </div>
  12450. </div>
  12451. </div>
  12452. </div>
  12453. <span slot="footer" class="dialog-footer">
  12454. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  12455. <el-button type="primary" @click="addCorrect">确 定</el-button>
  12456. </span>
  12457. </el-dialog>
  12458. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  12459. <interVideo
  12460. :dialogVisibleVideo.sync="dialogVisibleVideo"
  12461. :videoJson="videoJson"
  12462. :userid="userid"
  12463. :id="id"
  12464. :courseType="courseType"
  12465. :taskCount="taskCount"
  12466. :toolindex="toolindex"
  12467. :videoType="videoType"
  12468. ></interVideo>
  12469. <UpdateMore
  12470. :dialogVisibleMember.sync="dialogVisibleMember"
  12471. :cList="uploadStudentJuri"
  12472. :userid="userid"
  12473. :searchTN="worksSName2"
  12474. @setPlname="setPlname"
  12475. ></UpdateMore>
  12476. <!-- <wordCloud
  12477. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  12478. :data="wordCloudData"
  12479. ></wordCloud> -->
  12480. <el-dialog
  12481. title="词云"
  12482. :visible.sync="dialogVisibleWordCloud"
  12483. width="30%"
  12484. class="dialog_diy"
  12485. :before-close="handleClose">
  12486. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  12487. </el-dialog>
  12488. <el-dialog
  12489. title="挑人"
  12490. :visible.sync="dialogVisiblePickPeople"
  12491. width="650px"
  12492. :before-close="handleClose"
  12493. class="dialog_diy"
  12494. center
  12495. >
  12496. <div class="pick_box">
  12497. <div
  12498. class="noWorksName"
  12499. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  12500. v-for="(item, index) in uploadStudentJuri"
  12501. :key="index"
  12502. @click="pickStudent(item)"
  12503. >
  12504. {{ item.name }}
  12505. </div>
  12506. </div>
  12507. </el-dialog>
  12508. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  12509. :englishVoiceJson='englishVoiceJson'
  12510. :userid="userid"
  12511. :id="id"
  12512. :courseType="courseType"
  12513. :taskCount="taskCount"
  12514. :toolindex="toolindex"
  12515. @selectSWorks="selectSWorks"
  12516. @selectStudent="selectStudent"
  12517. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  12518. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  12519. :userid="userid"
  12520. :dialogVisibleENScore.sync='dialogVisibleENScore'
  12521. :commentDetail="commentDetail"
  12522. :courseDetail="courseDetail"
  12523. :wScore="wScore"
  12524. :scoreDetail="scoreDetail"
  12525. @selectSWorks="selectSWorks"
  12526. @selectStudent="selectStudent"></checkEnglishVoice>
  12527. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  12528. <choseWorksDetailDialog
  12529. ref="choseWorksDetailDialogRef"
  12530. :worksStudentData="worksStudent"
  12531. :noWorksSData="noWorksS"
  12532. :chapInfoListData="chapInfoList"
  12533. :courseType="courseType"
  12534. :taskCount="taskCount"
  12535. :tType="tType"
  12536. :sIsOpen="sIsOpen"
  12537. :courseDetail="courseDetail"
  12538. :groupStudent2="groupStudent"
  12539. :groupStudentUid2="groupStudentUid"
  12540. :oid="oid"
  12541. :org="org"
  12542. @getCourseDetail="getCourseDetail"
  12543. @selectSLook="selectSLook"
  12544. @selectSWorks="selectSWorks"
  12545. @selectStudent="selectStudent"
  12546. @deleteWorks="deleteWorks"
  12547. @openTools="openTools"
  12548. @openWord="openWord"
  12549. @openScore="openScore"
  12550. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  12551. />
  12552. <el-dialog
  12553. :visible.sync="confirmOpenDig"
  12554. width="500px"
  12555. :modal="false"
  12556. class="confirmOpenDigCss dialog_diyCopy"
  12557. :before-close="handleClose">
  12558. <div style="display: flex;align-items: center;">
  12559. <img src="../../assets/icon/course/confirmOpenDig.svg" alt="">
  12560. <span>“{{ courseDetail.title }}”开课啦</span>
  12561. </div>
  12562. <div style="margin: 20px 0 35px;">
  12563. <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
  12564. <div>要认真听讲哦~</div>
  12565. </div>
  12566. <div style="text-align: center;">
  12567. <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
  12568. </div>
  12569. </el-dialog>
  12570. <appStoreC ref="appStoreC"
  12571. :sStudent="sStudent"
  12572. :courseType="courseType"
  12573. :taskCount="taskCount"
  12574. :toolindex="toolindex"
  12575. @selectSWorks="selectSWorks"
  12576. @selectStudent="selectStudent"
  12577. ></appStoreC>
  12578. <cocoFlowDia ref="cocoFlowDiaRef"></cocoFlowDia>
  12579. </div>
  12580. </template>
  12581. <script>
  12582. import "../../common/aws-sdk-2.235.1.min.js";
  12583. // import pdf from "../components/pdf3";
  12584. import pdf from "../components/vpdf";
  12585. import AskStatic from "../components/askStatic";
  12586. import AskStatic2 from "../components/askStatic2";
  12587. import AnswerData2 from "../components/answerData2";
  12588. import AnswerData from "../components/answerData";
  12589. import sortToolWorkShow from "../components/sortToolWorkShow.vue";
  12590. import EditorBar from "../tools/wangEnduit.vue";
  12591. import Table from "../tools/table.vue";
  12592. import Time from "../tools/time.vue";
  12593. import Mind from "../tools/jsmind.vue";
  12594. import Sunburst from "../tools/sunburst";
  12595. import SeeBoard from "../tools/seeBoard";
  12596. import * as imageConversion from "image-conversion";
  12597. import Audio from "../components/audio.vue";
  12598. import ImgDraw from "../tools/imgDraw/imgDraw";
  12599. import { Empty } from "element-ui";
  12600. import RecordRTC from "recordrtc";
  12601. import interVideo from "../interVideo/index.vue";
  12602. import UpdateMore from "../updateMore/updateMore.vue";
  12603. import wordCloud from "../wordCloud/index.vue";
  12604. import axios from "axios";
  12605. import JSZip from "jszip";
  12606. import FileSaver from "file-saver";
  12607. import onlineWrite from "./commpont/onlineWrite";
  12608. import englishEva from "../components/englishEva";
  12609. import * as Diff from 'diff'
  12610. import EnglishVoice from '../EnglishVoice2/index.vue'
  12611. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  12612. import correctText from '../components/correctText.vue'
  12613. import scoreItem from '../scoreList/scoreItem.vue'
  12614. import scoreZong from '../scoreZong/index.vue'
  12615. import classRoomHelper from '../classRoomHelper/index.vue'
  12616. import studentClassRoomHelper from '../classRoomHelper/studentIndex.vue'
  12617. import MarkdownIt from "markdown-it";
  12618. import statisticalAnalysis from '../components/statisticalAnalysis.vue'
  12619. import choseWorksDetailDialog from '../components/choseWorksDetailDialog.vue'
  12620. import { v4 as uuidv4 } from "uuid";
  12621. var OpenCC = require("opencc-js");
  12622. import choseWordCloud from '../components/choseWordCloud.vue'
  12623. import appStoreC from "../components/appStoreC.vue";
  12624. import cocoFlowDia from "../components/cocoFlowDia.vue";
  12625. import { myMixin } from "@/mixins/mixin.js"
  12626. import { tools as toolsList } from "@/common/tools2.js";
  12627. import katex from 'katex'
  12628. import 'katex/dist/katex.min.css'
  12629. let converter = OpenCC.Converter({
  12630. from: "hk",
  12631. to: "cn"
  12632. });
  12633. const getFile = (url) => {
  12634. return new Promise((resolve, reject) => {
  12635. var credentials = {
  12636. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  12637. secretAccessKey: "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",
  12638. }; //秘钥形式的登录上传
  12639. window.AWS.config.update(credentials);
  12640. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12641. let url2 = url;
  12642. let _url2 = "";
  12643. if (
  12644. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  12645. ) {
  12646. _url2 = url2.split(
  12647. "https://view.officeapps.live.com/op/view.aspx?src="
  12648. )[1];
  12649. } else {
  12650. _url2 = url2;
  12651. }
  12652. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  12653. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  12654. var params = {
  12655. Bucket: "ccrb",
  12656. Key: name
  12657. };
  12658. s3.getObject(params, function (err, data) {
  12659. if (err) {
  12660. console.log(err, err.stack)
  12661. resolve({ data: 1 });
  12662. }else {
  12663. resolve({ data: data.Body });
  12664. console.log(data);
  12665. } // sxuccessful response
  12666. });
  12667. // axios({
  12668. // method: "get",
  12669. // url,
  12670. // responseType: "blob",
  12671. // })
  12672. // .then((data) => {
  12673. // resolve({ data: data.data });
  12674. // })
  12675. // .catch((error) => {
  12676. // resolve({ data: 1 });
  12677. // // reject(error.toString());
  12678. // });
  12679. });
  12680. };
  12681. export default {
  12682. mixins: [ myMixin ],
  12683. components: {
  12684. choseWordCloud,
  12685. EditorBar,
  12686. Time,
  12687. pdf,
  12688. AskStatic,
  12689. AskStatic2,
  12690. Mind,
  12691. Sunburst,
  12692. SeeBoard,
  12693. AnswerData2,
  12694. AnswerData,
  12695. sortToolWorkShow,
  12696. Audio,
  12697. ImgDraw,
  12698. Table,
  12699. interVideo,
  12700. UpdateMore,
  12701. wordCloud,
  12702. onlineWrite,
  12703. englishEva,
  12704. EnglishVoice,
  12705. checkEnglishVoice,
  12706. correctText,
  12707. scoreItem,
  12708. classRoomHelper,
  12709. scoreZong,
  12710. statisticalAnalysis,
  12711. choseWorksDetailDialog,
  12712. appStoreC,
  12713. cocoFlowDia,
  12714. studentClassRoomHelper
  12715. },
  12716. data() {
  12717. return {
  12718. startTime: "",
  12719. // 是否允许学生查看内容资料 2不可以 1可以
  12720. IsStulook:false,
  12721. homeWorkLoading:false,
  12722. toolsList: toolsList,
  12723. wordCloudKey: 0,
  12724. bg: null,
  12725. drawShow: false,
  12726. dialogVisible: false,
  12727. dialogVisiblePl: false,
  12728. commentDialogVisible: false,
  12729. dialogVisibleMember: false,
  12730. dialogVisibleWordCloud: false,
  12731. videoVisible: false,
  12732. isStar: false,
  12733. studentEvalDialogVisible: false,
  12734. studentEvalDialogVisibleTeacher: false,
  12735. dialogVisibleSelect: false,
  12736. dialogVisibleSelectTeacher: false,
  12737. dialogVisibleScore: false,
  12738. dialogVisibleENScore: false,
  12739. dialogVisibleSentence: false,
  12740. dialogVisibleSentenceTeacher: false,
  12741. dialogVisibleSentence1: false,
  12742. dialogVisibleWorks: false,
  12743. dialogVisibleTable: false,
  12744. dialogVisibleTableTeacher: false,
  12745. dialogVisibleWord: false,
  12746. dialogVisibleWordTeacher: false,
  12747. dialogVisibleTable2: false,
  12748. dialogVisibleTable3: false,
  12749. dialogVisibleGroupWork: false,
  12750. dialogVisibleUpdateGroup: false,
  12751. dialogVisibleDeleteGroup: false,
  12752. dialogVisibleSname: false,
  12753. dialogVisibleVideo: false,
  12754. dialogVisiblePickPeople: false,
  12755. worksSName: "",
  12756. classJuri: [],
  12757. uploadStudentJuri: [],
  12758. uploadCid: "",
  12759. snameWid: "",
  12760. sStudent: {},
  12761. sTool: "",
  12762. bzText: "",
  12763. commentDetail: [],
  12764. selectAnswer: [],
  12765. videoDetail: {},
  12766. selectJson: {},
  12767. eScore: { eBzText: "", eStar: [] },
  12768. id: this.$route.query.courseId,
  12769. userid: this.$route.query.userid,
  12770. classId: this.$route.query.cid,
  12771. role: this.$route.query.role,
  12772. // courseTypeLine: this.$route.query.type,
  12773. oid: this.$route.query.oid,
  12774. org: this.$route.query.org,
  12775. tType: this.$route.query.tType,
  12776. courseType: this.$route.query.type,
  12777. screenType: this.$route.query.screenType,
  12778. tcid2: this.$route.query.tcid,
  12779. tcid: "",
  12780. pptImgUrl: "",
  12781. pptImgUrl1: "",
  12782. commentText: "",
  12783. full: false,
  12784. sIsOpen: false,
  12785. IsLookOpen: false,
  12786. IsFollow: false,
  12787. pzDialog: false,
  12788. contentDialog: false,
  12789. mlDialog: false,
  12790. type: 1,
  12791. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12792. sentenceList1: [],
  12793. tableJson: [],
  12794. tableJsonO: [],
  12795. wordJson: [],
  12796. wordJsonO: [],
  12797. vedio: [],
  12798. text: [],
  12799. textList: [],
  12800. line: [],
  12801. lineList: [],
  12802. chapTools: [],
  12803. chapToolList: [],
  12804. file: [],
  12805. fileC: [],
  12806. vedioTime: [],
  12807. upToolImg: "",
  12808. preTime: 0,
  12809. rateList: {
  12810. ca: 0,
  12811. },
  12812. rateParams: [],
  12813. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12814. studyJuri: [
  12815. {
  12816. content: "",
  12817. cover: [],
  12818. upVedio: [],
  12819. upFile: [],
  12820. },
  12821. ],
  12822. isClose: 0,
  12823. plworkFile: [],
  12824. mr: require("../../assets/vedioPic.png"),
  12825. word: require("../../assets/icon/isWord.png"),
  12826. word2: require("../../assets/icon/word2.png"),
  12827. video: require("../../assets/icon/isVideo.png"),
  12828. noLikes: require("../../assets/icon/comment/noLikes.png"),
  12829. likes: require("../../assets/icon/comment/likes.png"),
  12830. scoreImg: require("../../assets/score.png"),
  12831. courseDetail: {},
  12832. reply: "",
  12833. isSelect: false,
  12834. chapInfo: [],
  12835. chapInfoList: [],
  12836. taskCount: 0,
  12837. imgList: [],
  12838. noImgList: [],
  12839. pzList: [],
  12840. timeWorkList: [],
  12841. PlTextList: [
  12842. "Excellent!",
  12843. "nice!",
  12844. "很有创意!",
  12845. "还不错哦~",
  12846. "继续努力哦~",
  12847. ],
  12848. isClickNav: "",
  12849. navId: "",
  12850. playerOptions: {
  12851. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12852. autoplay: false, //如果true,浏览器准备好时开始回放。
  12853. muted: false, // 默认情况下将会消除任何音频。
  12854. loop: false, // 导致视频一结束就重新开始。
  12855. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12856. language: "zh-CN",
  12857. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12858. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12859. sources: [
  12860. {
  12861. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12862. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12863. },
  12864. ],
  12865. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12866. // poster: dataRes.imgUrl, //你的封面地址
  12867. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12868. controlBar: {
  12869. timeDivider: true, //当前时间和持续时间的分隔符
  12870. durationDisplay: true, //显示持续时间
  12871. remainingTimeDisplay: false, //是否显示剩余时间功能
  12872. fullscreenToggle: true, //全屏按钮
  12873. },
  12874. },
  12875. playerOptions1: {
  12876. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12877. autoplay: false, //如果true,浏览器准备好时开始回放。
  12878. muted: false, // 默认情况下将会消除任何音频。
  12879. loop: false, // 导致视频一结束就重新开始。
  12880. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12881. language: "zh-CN",
  12882. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12883. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12884. sources: [
  12885. {
  12886. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12887. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12888. },
  12889. ],
  12890. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12891. // poster: dataRes.imgUrl, //你的封面地址
  12892. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12893. controlBar: {
  12894. timeDivider: true, //当前时间和持续时间的分隔符
  12895. durationDisplay: true, //显示持续时间
  12896. remainingTimeDisplay: false, //是否显示剩余时间功能
  12897. fullscreenToggle: true, //全屏按钮
  12898. },
  12899. },
  12900. playerO: {},
  12901. noneBtnImg: false,
  12902. proVisible: false,
  12903. proVisible2: false,
  12904. progress: 0,
  12905. isFinishSize: 0,
  12906. isAllSize: 0,
  12907. questionAnswer: "",
  12908. answerQ: "", //问答标题
  12909. rateJson: [],
  12910. wbCount: 0,
  12911. wordCount: 0,
  12912. mindCount: 0,
  12913. askCount: 0,
  12914. noteCount: 0,
  12915. mindNetWorkCount: 0,
  12916. libraryCount: 0,
  12917. workCount: 0,
  12918. timeCount: 0,
  12919. answerCount: 0,
  12920. trainCount: 0,
  12921. evalCount: 0,
  12922. dialogImageUrl: "",
  12923. pictureDialog: false,
  12924. toolTypeList: [],
  12925. dialogVisible1: false,
  12926. dialogVisible2: false,
  12927. dialogVisible3: false,
  12928. dialogVisible6: false,
  12929. dialogVisible4: false,
  12930. isNoHomeWork: false,
  12931. dialogVisible5: false,
  12932. dialogVisible5Teacher: false,
  12933. dialogVisibleChoice: false,
  12934. dialogVisibleChoiceTeacher: false,
  12935. answerDialogVisible: false,
  12936. answerDialogVisibleTeacher: false,
  12937. juriVisible: false,
  12938. timeDialogVisible: false,
  12939. replyDialogVisible: false,
  12940. toolDialogVisible: false,
  12941. engDialogVisible: false,
  12942. engUpdateDialogVisible:false,
  12943. engEvaDialogVisible: false,
  12944. evaEngJson: {
  12945. teacherJson: {},
  12946. studentJson: {},
  12947. message: {},
  12948. },
  12949. isNoUserid:false,
  12950. engListLength:0,
  12951. engWid:"",
  12952. newEnglishList:{
  12953. engTitle:"",
  12954. engText:"",
  12955. },
  12956. newEnglishList1:[],
  12957. oldEnglishJson:{},
  12958. oldEnglishJson1:{},
  12959. englishList1:{},
  12960. englishList:{},
  12961. myAnswerList1:{},
  12962. topHeight:0,
  12963. newEngIndex:-1,
  12964. englishToolIndex:0,
  12965. userMes:{},
  12966. englishToolIndex:0,
  12967. replyIndex: 0,
  12968. replyPid: "",
  12969. radio: [],
  12970. isAsk: false,
  12971. askJson: {
  12972. askCount: 1,
  12973. askTitle: "",
  12974. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12975. },
  12976. testJson: {},
  12977. englishList: {},
  12978. topHeight:0,
  12979. checkJson: [],
  12980. askList: [],
  12981. answerList: [],
  12982. navList: [],
  12983. addPzDialog: false,
  12984. pzConText: "",
  12985. worksStudent: [],
  12986. isCloseList: [],
  12987. workStudent: [],
  12988. groupStudent: [],
  12989. groupStudentUid: [],
  12990. noWorksS: [],
  12991. isWorksS: [],
  12992. noWorksStudent: [],
  12993. toolindex: 0,
  12994. toolDetailIndex: null,
  12995. groupIndex: 0,
  12996. workTypeB: false,
  12997. workTypeC: false,
  12998. isAnswer: false,
  12999. isHovered: false,
  13000. isHovered1: false,
  13001. isHovered2: false,
  13002. commentTagShow:0,
  13003. timer: null,
  13004. timer2: null,
  13005. opertimer: null,
  13006. showType: '',
  13007. fileType: 0,
  13008. showPDF: false,
  13009. noteName: "",
  13010. evaJuri: [],
  13011. evalua: "",
  13012. eTitle: "",
  13013. eName: "",
  13014. eJson: {},
  13015. fid: "", //一级
  13016. sid: "", //二级
  13017. tid: "", //二级
  13018. typeMode: 1,
  13019. eJSONNum: 0,
  13020. Etype: 1,
  13021. data: {
  13022. meta: {
  13023. name: "example",
  13024. author: "dd@163.com",
  13025. version: "0.2",
  13026. },
  13027. format: "node_array",
  13028. data: [{ id: "root", isroot: true, topic: "" }],
  13029. },
  13030. fullDialogVisible: false,
  13031. fulltype: "",
  13032. fullUrl: "",
  13033. commentIndexJson: {},
  13034. Stbodywidth: 0,
  13035. ispzType: 0,
  13036. pzType: 1,
  13037. wScore: 0,
  13038. scoreDetail: "",
  13039. videoStart: false,
  13040. recorder: null,
  13041. groupJson: {},
  13042. islock: false,
  13043. groupJson2: {},
  13044. dialogVisibleGroup: false,
  13045. dialogVisibleGroup2: false,
  13046. updateGroupArray: [],
  13047. updateGroupUser: {},
  13048. deleteGroupUser: [],
  13049. deleteGroupArray: {},
  13050. checkChair: "",
  13051. checkDeleteGroup: [],
  13052. inviteCode: "",
  13053. courseGroupStudent: [],
  13054. courseGroupStudentUid: [],
  13055. courseGroup: {},
  13056. isGroup: false,
  13057. toolIndex: null,
  13058. tool: {},
  13059. isWorkTool: [
  13060. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  13061. ], //, 40
  13062. videoJson: {},
  13063. videoType:0,
  13064. toolType: 0,
  13065. checktoolArray: [],
  13066. vChapterData: [],
  13067. isUpdateToolDetail: false,
  13068. isUpdateToolDetail1: false,
  13069. updateToolDetailInner: "",
  13070. checkboxList: [],
  13071. plIndex: "",
  13072. worksSName2: "",
  13073. worksSid: "",
  13074. wordCloudData: [],
  13075. isPickStudent: [],
  13076. pzStype: 1,
  13077. myAnList: {},
  13078. downLoading: false,
  13079. greyType: false,
  13080. correctWord: [],
  13081. EnglishVoiceDialog: false,
  13082. englishVoiceJson: {},
  13083. englishVoiceJsonWork:[],
  13084. scoreList:{
  13085. listdata:[],
  13086. isScoreList:[],
  13087. },
  13088. classRoomHelperWidth: '85px',
  13089. orgArray:[],
  13090. oidArray:[],
  13091. splitScreenData:{
  13092. isOpen:false,
  13093. userId:"",
  13094. uid:"",
  13095. myUid:"",
  13096. loading:false,
  13097. behavior:null,
  13098. },
  13099. confirmOpenDig:false,
  13100. confirmOpenDigData:'',
  13101. diffKey:"1",
  13102. getCourseGroupLoading: false,
  13103. selectSWorksLoading:false,
  13104. selectStudentLoading:false,
  13105. selectSLookLoading:false,
  13106. getPickLoading:false,
  13107. selectPzLoading:false,
  13108. getSplitScreenDataLoading:false,
  13109. };
  13110. },
  13111. methods: {
  13112. //查看应用中心作业
  13113. openCocoFlow(w){
  13114. this.$refs.cocoFlowDiaRef.openAppWork(w)
  13115. },
  13116. getAIJ(){
  13117. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  13118. let oid = res.data[0];
  13119. let org = res.data[1];
  13120. let oidArray = [];
  13121. let orgArray = [];
  13122. oid.forEach(i=>oidArray.push(i.oid))
  13123. org.forEach(i=>orgArray.push(i.oid))
  13124. this.orgArray = orgArray;
  13125. this.oidArray = oidArray;
  13126. })
  13127. },
  13128. insertMemorandum(_html){//保存行为操作
  13129. //variable
  13130. //btn
  13131. let params = [{
  13132. uid:this.userid,
  13133. courseId:this.id+(this.tcid2?this.tcid2:''),
  13134. content:_html
  13135. }]
  13136. console.log(params)
  13137. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  13138. if(res.data==1){
  13139. console.log('保存操作成功')
  13140. }else{
  13141. console.log('保存操作失败')
  13142. }
  13143. }).catch(e=>{
  13144. console.log('保存操作失败')
  13145. console.log(e)
  13146. })
  13147. },
  13148. gx(){
  13149. this.$forceUpdate();
  13150. },
  13151. isUpdateCorrect(t,p){
  13152. if(this.greyType == false){
  13153. this.isUpdateText = t;
  13154. this.greyType = true;
  13155. }else{
  13156. if(p == 1){
  13157. this.newEnglishList.engText = this.isUpdateText;
  13158. }else if(p == 2){
  13159. this.oldEnglishJson1.engText = this.isUpdateText;
  13160. }else if(p == 3){
  13161. this.newEnglishList.engText = this.isUpdateText;
  13162. }else{
  13163. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  13164. }
  13165. this.greyType = false
  13166. }
  13167. },
  13168. aiCorrect(t,p){
  13169. let aiText = "";
  13170. const loading = this.$loading.service({
  13171. background: "rgba(255, 255, 255)",
  13172. target: document.querySelectorAll(".loadingText")[0],
  13173. });
  13174. let param = {
  13175. model: "gpt-3.5-turbo",
  13176. temperature: 0,
  13177. max_tokens: 2048,
  13178. top_p: 1,
  13179. frequency_penalty: 0,
  13180. presence_penalty: 0,
  13181. messages: [
  13182. {
  13183. role: "user",
  13184. content:
  13185. `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  13186. },
  13187. ],
  13188. uid: this.userid,
  13189. stream: false,
  13190. };
  13191. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  13192. (res) => {
  13193. if (
  13194. res.data.FunctionResponse &&
  13195. res.data.FunctionResponse.result &&
  13196. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  13197. ) {
  13198. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  13199. return;
  13200. }
  13201. aiText =
  13202. res.data.FunctionResponse.choices[0].message.content;
  13203. aiText = aiText.replace(/%/g,"%25");
  13204. // let w = "";
  13205. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  13206. // for(var k = 0;k<a.length;k++){
  13207. // //diffWordsWithSpace
  13208. // if(a.length > 1){
  13209. // if(a[k].added == true){
  13210. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  13211. // }else if(a[k].removed == true){
  13212. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  13213. // }else{
  13214. // w += '<span>' + a[k].value + '</span>';
  13215. // }
  13216. // }else{
  13217. // if(p == 1){
  13218. // w = this.newEnglishList.engText;
  13219. // }else if(p == 2){
  13220. // w = this.oldEnglishJson1.engText;
  13221. // }else if(p == 3){
  13222. // w = this.newEnglishList.engText;
  13223. // }else{
  13224. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  13225. // }
  13226. // }
  13227. // }
  13228. if(p == 1){
  13229. this.newEnglishList.engText = aiText;
  13230. }else if(p == 2){
  13231. this.oldEnglishJson1.engText = aiText;
  13232. }else if(p == 3){
  13233. this.newEnglishList.engText = aiText;
  13234. }else{
  13235. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  13236. }
  13237. loading.close();
  13238. },
  13239. (err) => {
  13240. console.log(err);
  13241. loading.close();
  13242. }
  13243. );
  13244. },
  13245. addToolChoose() {
  13246. if (!this.checktoolArray.length) {
  13247. this.$message.error("请选择要添加的任务");
  13248. return;
  13249. }
  13250. if (
  13251. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13252. this.taskCount
  13253. ].toolChoose[0].tool.length
  13254. ) {
  13255. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13256. this.taskCount
  13257. ].toolChoose[0].tool = this.checktoolArray;
  13258. } else {
  13259. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13260. this.taskCount
  13261. ].toolChoose.push({
  13262. tool: this.checktoolArray,
  13263. toolDetail: "",
  13264. toolType: 0,
  13265. askCount: 1,
  13266. askTitle: "",
  13267. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13268. });
  13269. }
  13270. let params = [
  13271. {
  13272. cid: this.id,
  13273. chapters: JSON.stringify(this.chapInfoList),
  13274. uid: this.userid,
  13275. unitIndex: this.courseType,
  13276. },
  13277. ];
  13278. this.ajax
  13279. .post(this.$store.state.api + "updateWorkNew4", params)
  13280. .then((res) => {
  13281. this.$message({
  13282. message: "添加成功",
  13283. type: "success",
  13284. });
  13285. this.checktoolArray = [];
  13286. this.getCourseDetail(2);
  13287. this.checkBz(
  13288. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13289. this.taskCount
  13290. ].toolChoose.length - 1
  13291. );
  13292. this.toolDialogVisible = false;
  13293. this.refreshCourse();
  13294. this.$forceUpdate();
  13295. })
  13296. .catch((err) => {
  13297. console.error(err);
  13298. });
  13299. },
  13300. checkBz(index) {
  13301. this.isUpdateToolDetail = false;
  13302. this.$forceUpdate();
  13303. setTimeout(() => {
  13304. document.scrollingElement.scrollTop =
  13305. document.querySelectorAll(".filebox")[index].offsetTop +
  13306. document.querySelector(".student_body").offsetTop;
  13307. }, 500);
  13308. },
  13309. updateToolDetail(i, type) {
  13310. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  13311. this.toolDetailIndex = i
  13312. this.isUpdateToolDetail1 = true;
  13313. setTimeout(() => {
  13314. this.updateToolDetailInner = JSON.parse(
  13315. JSON.stringify(
  13316. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13317. this.taskCount
  13318. ].toolChoose[i].toolDetail
  13319. )
  13320. );
  13321. document.querySelector(".checkTextArea").focus();
  13322. }, 0);
  13323. } else if((this.isUpdateToolDetail1 && type != 2)){
  13324. // this.toolDetailIndex = i;
  13325. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13326. this.taskCount
  13327. ].toolChoose[i].toolDetail = JSON.parse(
  13328. JSON.stringify(this.updateToolDetailInner)
  13329. );
  13330. let params = [
  13331. {
  13332. cid: this.id,
  13333. chapters: JSON.stringify(this.chapInfoList),
  13334. uid: this.userid,
  13335. unitIndex: this.courseType,
  13336. },
  13337. ];
  13338. this.ajax
  13339. .post(this.$store.state.api + "updateWorkNew4", params)
  13340. .then((res) => {
  13341. this.isUpdateToolDetail1 = false;
  13342. this.$message({
  13343. message: "修改成功",
  13344. type: "success",
  13345. });
  13346. this.toolDetailIndex = null;
  13347. this.updateToolDetailInner = "";
  13348. this.getCourseDetail(2);
  13349. this.$forceUpdate();
  13350. })
  13351. .catch((err) => {
  13352. console.error(err);
  13353. });
  13354. } else if((this.isUpdateToolDetail1 && type == 2)){
  13355. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13356. this.taskCount
  13357. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  13358. JSON.stringify(this.updateToolDetailInner)
  13359. );
  13360. let params = [
  13361. {
  13362. cid: this.id,
  13363. chapters: JSON.stringify(this.chapInfoList),
  13364. uid: this.userid,
  13365. unitIndex: this.courseType,
  13366. },
  13367. ];
  13368. this.ajax
  13369. .post(this.$store.state.api + "updateWorkNew4", params)
  13370. .then((res) => {
  13371. this.$message({
  13372. message: "修改成功",
  13373. type: "success",
  13374. });
  13375. this.toolDetailIndex = i;
  13376. this.isUpdateToolDetail1 = true;
  13377. setTimeout(() => {
  13378. this.updateToolDetailInner = JSON.parse(
  13379. JSON.stringify(
  13380. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13381. this.taskCount
  13382. ].toolChoose[i].toolDetail
  13383. )
  13384. );
  13385. document.querySelector(".checkTextArea").focus();
  13386. }, 0);
  13387. this.getCourseDetail(2);
  13388. this.$forceUpdate();
  13389. })
  13390. .catch((err) => {
  13391. console.error(err);
  13392. });
  13393. }
  13394. },
  13395. jumpGj(i, j, k, l) {
  13396. for (var z = 0; z < this.navList.length; z++) {
  13397. for (var q = 0; q < this.navList[z].task.length; q++) {
  13398. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  13399. this.navList[z].task[q].tool[w].isTool = false;
  13400. }
  13401. }
  13402. }
  13403. console.log(this.navList);
  13404. this.navList[i].task[j].tool[k].isTool =
  13405. !this.navList[i].task[j].tool[k].isTool;
  13406. var a = document.scrollingElement;
  13407. let target = document.querySelector(`#gj${k}`);
  13408. if (target) {
  13409. // target.scrollIntoView(true);
  13410. // setTimeout(() => {
  13411. // a.scrollTop = a.scrollTop - 150;
  13412. // }, 0);
  13413. target.scrollIntoView();
  13414. setTimeout(()=>{
  13415. let scrollBody = document.querySelector('.body_student').parentElement
  13416. scrollBody.scrollTop = scrollBody.scrollTop - 100
  13417. }, 0);
  13418. }
  13419. this.navId = ""
  13420. let flag = this.courseType == i;
  13421. let flag2 = this.taskCount == j
  13422. if (l) {
  13423. this.courseType = i;
  13424. // this.navId = l;
  13425. this.taskCount = j;
  13426. this.selectPz();
  13427. this.getHomeWork();
  13428. this.getCourseDetail(2);
  13429. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  13430. if(flag){
  13431. if(flag2){
  13432. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  13433. }else{
  13434. this.insertMemorandum(`选择<span class="variable">任务${j+1}${this.navList[i].task[j].taskName?':'+this.navList[i].task[j].taskName:''}</span>→<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  13435. }
  13436. }else{
  13437. this.insertMemorandum(`选择<span class="variable">阶段${i+1}${this.navList[i].dyName?':'+this.navList[i].dyName:''}</span>→<span class="variable">任务${j+1}${this.navList[i].task[j].taskName?':'+this.navList[i].task[j].taskName:''}</span>→<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  13438. }
  13439. }
  13440. if ((this.courseDetail.userid == this.userid ||
  13441. (this.courseDetail.course_teacher &&
  13442. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) &&
  13443. this.IsFollow) {
  13444. this.setCTask();
  13445. }
  13446. // var b = this.$refs["bz" + k][0];
  13447. // a.scrollTop = b.offsetTop;
  13448. },
  13449. addTools2(i) {
  13450. if (i == 4) {
  13451. // this.openTools2(4);
  13452. this.$message.error("暂未开放");
  13453. return;
  13454. }
  13455. if (i == 45) {
  13456. // this.openTools2(45);
  13457. this.$message.error("暂未开放");
  13458. return;
  13459. }
  13460. if (i == 47) {
  13461. // this.openTools2(47);
  13462. this.$message.error("暂未开放");
  13463. return;
  13464. }
  13465. if (i == 49) {
  13466. // this.openTools2(49);
  13467. this.$message.error("暂未开放");
  13468. return;
  13469. }
  13470. if (i == 62) {
  13471. // this.openTools(itemTaskIndex, 62, toolIndex);
  13472. this.$message.error("暂未开放");
  13473. return;
  13474. }
  13475. if (i == 15) {
  13476. // this.openTools(itemTaskIndex, 15, toolIndex);
  13477. this.$message.error("暂未开放");
  13478. return;
  13479. }
  13480. if (i == 40) {
  13481. // this.openTools(itemTaskIndex, 40, toolIndex);
  13482. this.$message.error("暂未开放");
  13483. return;
  13484. }
  13485. if (i == 41) {
  13486. // this.openTools(itemTaskIndex, 41, toolIndex);
  13487. this.$message.error("暂未开放");
  13488. return;
  13489. }
  13490. if (i == 42) {
  13491. // this.openTools(itemTaskIndex, 42, toolIndex);
  13492. this.$message.error("暂未开放");
  13493. return;
  13494. }
  13495. if (this.checktoolArray.length > 0) {
  13496. if (this.checktoolArray.indexOf(i) != -1) {
  13497. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  13498. } else {
  13499. this.checktoolArray = [];
  13500. this.checktoolArray.push(i);
  13501. }
  13502. } else {
  13503. this.checktoolArray.push(i);
  13504. }
  13505. this.$forceUpdate();
  13506. },
  13507. jump() {
  13508. window.topU.postMessage({ tools: "43" }, "*");
  13509. },
  13510. getUpdateMore(f, checkboxList, searchTN, index) {
  13511. this.dialogVisibleMember = f;
  13512. this.checkboxList = checkboxList;
  13513. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  13514. this.plIndex = index;
  13515. },
  13516. setPlname(a) {
  13517. if (this.plworkFile.length) {
  13518. this.plworkFile[this.plIndex].username = a;
  13519. } else {
  13520. this.worksSName = a;
  13521. }
  13522. this.dialogVisibleMember = false;
  13523. },
  13524. previewImg(url,w) {
  13525. this.$hevueImgPreview(url);
  13526. if(w){
  13527. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  13528. }
  13529. },
  13530. checkImg(list) {
  13531. if (!list.length) {
  13532. return;
  13533. }
  13534. this.$hevueImgPreview({
  13535. multiple: true, // 开启多图预览模式
  13536. imgList: list, // 需要预览的多图数组
  13537. });
  13538. },
  13539. change(val) {
  13540. console.log(val);
  13541. },
  13542. goTo(path) {
  13543. this.$router.push(path);
  13544. },
  13545. handlePictureCardPreview(url) {
  13546. this.dialogImageUrl = url;
  13547. this.pictureDialog = true;
  13548. },
  13549. clean(type) {
  13550. if (type == 1) {
  13551. this.studyJuri[0].cover.splice(0, 1);
  13552. } else if (type == 2) {
  13553. this.studyJuri[0].upVedio.splice(0, 1);
  13554. } else {
  13555. this.studyJuri[0].upFile.splice(0, 1);
  13556. }
  13557. },
  13558. clean2(index) {
  13559. this.plworkFile.splice(index, 1);
  13560. },
  13561. handleClose(done) {
  13562. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  13563. this.videoDetail.sources[0].src = "";
  13564. }
  13565. this.commentIndexJson = {};
  13566. this.changeSplitScreenBehavior({code:99})
  13567. done();
  13568. },
  13569. fullTools() {
  13570. this.full = !this.full;
  13571. },
  13572. imgChange(file, fileList, type) {
  13573. if (type == 1) {
  13574. var _tmp = this.studyJuri[0].cover;
  13575. } else if (type == 2) {
  13576. var _tmp = this.studyJuri[0].upVedio;
  13577. } else {
  13578. var _tmp = this.studyJuri[0].upFile;
  13579. }
  13580. this.noneBtnImg = _tmp.length >= 1;
  13581. },
  13582. setContent(bool) {
  13583. this.contentDialog = bool;
  13584. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  13585. document.querySelector(".workd_media").style.height = "650px";
  13586. } else if (document.querySelector(".workd_media")) {
  13587. document.querySelector(".workd_media").style.height = "auto";
  13588. }
  13589. },
  13590. setContent2(bool) {
  13591. this.mlDialog = bool;
  13592. if (
  13593. bool &&
  13594. this.contentDialog &&
  13595. document.querySelector(".workd_media")
  13596. ) {
  13597. document.querySelector(".workd_media").style.height = "650px";
  13598. } else if (document.querySelector(".workd_media")) {
  13599. document.querySelector(".workd_media").style.height = "auto";
  13600. }
  13601. },
  13602. openToolAll() {
  13603. this.toolDialogVisible = true;
  13604. },
  13605. addImg(e) {
  13606. var el = e.currentTarget;
  13607. // this.$message.success('触发上传')
  13608. el.getElementsByTagName("input")[0].click();
  13609. e.target.value = "";
  13610. },
  13611. addSelectAnswer() {
  13612. let params = [
  13613. {
  13614. uid: this.userid,
  13615. cid: this.id,
  13616. stage: this.courseType,
  13617. task: this.taskCount,
  13618. tool: this.toolindex,
  13619. content: this.selectAnswer.answer,
  13620. type: 7,
  13621. },
  13622. ];
  13623. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13624. this.homeWorkLoading = true
  13625. this.ajax
  13626. .post(this.$store.state.api + "addCourseWorks", params)
  13627. .then((res) => {
  13628. this.$message({
  13629. message: "提交成功",
  13630. type: "success",
  13631. });
  13632. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, "success")
  13633. setTimeout(() => {
  13634. this.homeWorkLoading = false
  13635. }, 500);
  13636. this.dialogVisibleSelect = false;
  13637. // this.selectAnswer = {};
  13638. this.selectSWorks();
  13639. this.selectStudent();
  13640. })
  13641. .catch((err) => {
  13642. this.$message.error("提交失败");
  13643. console.error(err);
  13644. setTimeout(() => {
  13645. this.homeWorkLoading = false
  13646. }, 500);
  13647. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, err)
  13648. });
  13649. },
  13650. addSelectAnswerTeacher() {
  13651. let params = [
  13652. {
  13653. uid: this.sStudent.userid,
  13654. cid: this.id,
  13655. stage: this.courseType,
  13656. task: this.taskCount,
  13657. tool: this.toolindex,
  13658. content: this.selectAnswer.answer,
  13659. type: 7,
  13660. },
  13661. ];
  13662. this.ajax
  13663. .post(this.$store.state.api + "addCourseWorks", params)
  13664. .then((res) => {
  13665. this.$message({
  13666. message: "提交成功",
  13667. type: "success",
  13668. });
  13669. this.dialogVisibleSelectTeacher = false;
  13670. // this.selectAnswer = {};
  13671. this.selectSWorks();
  13672. this.selectStudent();
  13673. })
  13674. .catch((err) => {
  13675. this.$message.error("提交失败");
  13676. console.error(err);
  13677. });
  13678. },
  13679. addSenWorks() {
  13680. for (var i = 0; i < this.sentenceList.length; i++) {
  13681. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13682. if (
  13683. this.sentenceList[i].chooseSenList[j] == undefined ||
  13684. this.sentenceList[i].chooseSenList[j] == ""
  13685. ) {
  13686. this.$message.error("请将答案填写完整!");
  13687. return;
  13688. }
  13689. }
  13690. }
  13691. let params = [
  13692. {
  13693. uid: this.userid,
  13694. cid: this.id,
  13695. stage: this.courseType,
  13696. task: this.taskCount,
  13697. tool: this.toolindex,
  13698. content: JSON.stringify(this.sentenceList),
  13699. type: 9,
  13700. },
  13701. ];
  13702. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13703. this.homeWorkLoading = true
  13704. this.ajax
  13705. .post(this.$store.state.api + "addCourseWorks", params)
  13706. .then((res) => {
  13707. this.$message({
  13708. message: "提交成功",
  13709. type: "success",
  13710. });
  13711. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, "success")
  13712. setTimeout(() => {
  13713. this.homeWorkLoading = false
  13714. }, 500);
  13715. this.dialogVisibleSentence = false;
  13716. // this.selectAnswer = {};
  13717. this.selectSWorks();
  13718. this.selectStudent();
  13719. })
  13720. .catch((err) => {
  13721. this.$message.error("提交失败");
  13722. console.error(err);
  13723. setTimeout(() => {
  13724. this.homeWorkLoading = false
  13725. }, 500);
  13726. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, err)
  13727. });
  13728. },
  13729. addSenWorksTeacher() {
  13730. for (var i = 0; i < this.sentenceList.length; i++) {
  13731. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13732. if (
  13733. this.sentenceList[i].chooseSenList[j] == undefined ||
  13734. this.sentenceList[i].chooseSenList[j] == ""
  13735. ) {
  13736. this.$message.error("请将答案填写完整!");
  13737. return;
  13738. }
  13739. }
  13740. }
  13741. let params = [
  13742. {
  13743. uid: this.sStudent.userid,
  13744. cid: this.id,
  13745. stage: this.courseType,
  13746. task: this.taskCount,
  13747. tool: this.toolindex,
  13748. content: JSON.stringify(this.sentenceList),
  13749. type: 9,
  13750. },
  13751. ];
  13752. this.ajax
  13753. .post(this.$store.state.api + "addCourseWorks", params)
  13754. .then((res) => {
  13755. this.$message({
  13756. message: "提交成功",
  13757. type: "success",
  13758. });
  13759. this.dialogVisibleSentenceTeacher = false;
  13760. // this.selectAnswer = {};
  13761. this.selectSWorks();
  13762. this.selectStudent();
  13763. })
  13764. .catch((err) => {
  13765. this.$message.error("提交失败");
  13766. console.error(err);
  13767. });
  13768. },
  13769. returnTableText() {
  13770. this.$confirm("确定还原此模板吗?", "提示", {
  13771. confirmButtonText: "确定",
  13772. cancelButtonText: "取消",
  13773. type: "warning",
  13774. })
  13775. .then(() => {
  13776. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13777. })
  13778. .catch(() => {});
  13779. },
  13780. addTableWorks() {
  13781. let params = [
  13782. {
  13783. uid: this.userid,
  13784. cid: this.id,
  13785. stage: this.courseType,
  13786. task: this.taskCount,
  13787. tool: this.toolindex,
  13788. content: JSON.stringify(this.tableJson),
  13789. type: 10,
  13790. },
  13791. ];
  13792. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13793. this.homeWorkLoading = true
  13794. this.ajax
  13795. .post(this.$store.state.api + "addCourseWorks", params)
  13796. .then((res) => {
  13797. this.$message({
  13798. message: "提交成功",
  13799. type: "success",
  13800. });
  13801. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, "success")
  13802. setTimeout(() => {
  13803. this.homeWorkLoading = false
  13804. }, 500);
  13805. this.dialogVisibleTable = false;
  13806. // this.selectAnswer = {};
  13807. this.selectSWorks();
  13808. this.selectStudent();
  13809. })
  13810. .catch((err) => {
  13811. this.$message.error("提交失败");
  13812. console.error(err);
  13813. setTimeout(() => {
  13814. this.homeWorkLoading = false
  13815. }, 500);
  13816. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, err)
  13817. });
  13818. },
  13819. tableRowClassName({ row, rowIndex }) {
  13820. if ((rowIndex + 1) % 2 === 0) {
  13821. return "even_row";
  13822. } else {
  13823. return "";
  13824. }
  13825. },
  13826. addTableWorksTeacher() {
  13827. let params = [
  13828. {
  13829. uid: this.sStudent.userid,
  13830. cid: this.id,
  13831. stage: this.courseType,
  13832. task: this.taskCount,
  13833. tool: this.toolindex,
  13834. content: JSON.stringify(this.tableJson),
  13835. type: 10,
  13836. },
  13837. ];
  13838. this.ajax
  13839. .post(this.$store.state.api + "addCourseWorks", params)
  13840. .then((res) => {
  13841. this.$message({
  13842. message: "提交成功",
  13843. type: "success",
  13844. });
  13845. this.dialogVisibleTableTeacher = false;
  13846. // this.selectAnswer = {};
  13847. this.selectSWorks();
  13848. this.selectStudent();
  13849. })
  13850. .catch((err) => {
  13851. this.$message.error("提交失败");
  13852. console.error(err);
  13853. });
  13854. },
  13855. returnWordText() {
  13856. this.$confirm("确定还原此模板吗?", "提示", {
  13857. confirmButtonText: "确定",
  13858. cancelButtonText: "取消",
  13859. type: "warning",
  13860. })
  13861. .then(() => {
  13862. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13863. })
  13864. .catch(() => {});
  13865. },
  13866. addWordWorks() {
  13867. let params = [
  13868. {
  13869. uid: this.userid,
  13870. cid: this.id,
  13871. stage: this.courseType,
  13872. task: this.taskCount,
  13873. tool: this.toolindex,
  13874. content: JSON.stringify(this.wordJson),
  13875. type: 13,
  13876. atool: 52,
  13877. },
  13878. ];
  13879. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13880. this.homeWorkLoading = true
  13881. this.ajax
  13882. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13883. .then((res) => {
  13884. this.$message({
  13885. message: "提交成功",
  13886. type: "success",
  13887. });
  13888. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, "success")
  13889. setTimeout(() => {
  13890. this.homeWorkLoading = false
  13891. }, 500);
  13892. this.dialogVisibleWord = false;
  13893. // this.selectAnswer = {};
  13894. this.selectSWorks();
  13895. this.selectStudent();
  13896. })
  13897. .catch((err) => {
  13898. this.$message.error("提交失败");
  13899. console.error(err);
  13900. setTimeout(() => {
  13901. this.homeWorkLoading = false
  13902. }, 500);
  13903. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, err)
  13904. });
  13905. },
  13906. addWordWorksTeacher() {
  13907. let params = [
  13908. {
  13909. uid: this.sStudent.userid,
  13910. cid: this.id,
  13911. stage: this.courseType,
  13912. task: this.taskCount,
  13913. tool: this.toolindex,
  13914. content: JSON.stringify(this.wordJson),
  13915. type: 13,
  13916. atool: 52,
  13917. },
  13918. ];
  13919. this.ajax
  13920. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13921. .then((res) => {
  13922. this.$message({
  13923. message: "提交成功",
  13924. type: "success",
  13925. });
  13926. this.dialogVisibleWordTeacher = false;
  13927. // this.selectAnswer = {};
  13928. this.selectSWorks();
  13929. this.selectStudent();
  13930. })
  13931. .catch((err) => {
  13932. this.$message.error("提交失败");
  13933. console.error(err);
  13934. });
  13935. },
  13936. addCourseWorks(i) {
  13937. var typesql;
  13938. if (this.fileType === 0) {
  13939. typesql = 1;
  13940. } else if (this.fileType === 1) {
  13941. typesql = 4;
  13942. } else if (this.fileType === 2) {
  13943. typesql = 5;
  13944. } else if (this.fileType === 3) {
  13945. typesql = 12;
  13946. }
  13947. if (!this.studyJuri[0].cover[0].url) {
  13948. this.$message.error("请上传文件");
  13949. return;
  13950. }
  13951. let params = [
  13952. {
  13953. uid: this.userid,
  13954. cid: this.id,
  13955. stage: this.courseType,
  13956. task: i,
  13957. tool: this.toolindex,
  13958. content: this.studyJuri[0].cover[0].url,
  13959. type: typesql,
  13960. },
  13961. ];
  13962. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13963. this.homeWorkLoading = true
  13964. this.ajax
  13965. .post(this.$store.state.api + "addCourseWorksR", params)
  13966. .then((res) => {
  13967. this.$message({
  13968. message: "提交成功",
  13969. type: "success",
  13970. });
  13971. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, "success")
  13972. setTimeout(() => {
  13973. this.homeWorkLoading = false
  13974. }, 500);
  13975. this.studyJuri[0].cover = [];
  13976. this.dialogVisible = false;
  13977. this.getCourseDetail(2);
  13978. })
  13979. .catch((err) => {
  13980. this.$message.error("提交失败");
  13981. console.error(err);
  13982. setTimeout(() => {
  13983. this.homeWorkLoading = false
  13984. }, 500);
  13985. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, err)
  13986. });
  13987. },
  13988. addCourseWorksPl(i) {
  13989. let _files = this.plworkFile;
  13990. var c = 1;
  13991. for (var k = 0; k < _files.length; k++) {
  13992. if (!_files[k].username) {
  13993. c = 2;
  13994. }
  13995. }
  13996. if (c == 2) {
  13997. this.$message.error("请填写学生姓名");
  13998. return;
  13999. }
  14000. let params = [
  14001. {
  14002. ateacher: this.userid,
  14003. cid: this.id,
  14004. stage: this.courseType,
  14005. task: i,
  14006. tool: this.toolindex,
  14007. content: JSON.stringify(_files),
  14008. },
  14009. ];
  14010. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  14011. this.homeWorkLoading = true
  14012. this.ajax
  14013. .post(this.$store.state.api + "addCourseWorksPl", params)
  14014. .then((res) => {
  14015. this.$message({
  14016. message: "提交成功",
  14017. type: "success",
  14018. });
  14019. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, "success")
  14020. setTimeout(() => {
  14021. this.homeWorkLoading = false
  14022. }, 500);
  14023. this.plworkFile = [];
  14024. this.dialogVisiblePl = false;
  14025. this.getCourseDetail(2);
  14026. })
  14027. .catch((err) => {
  14028. this.$message.error("提交失败");
  14029. console.error(err);
  14030. setTimeout(() => {
  14031. this.homeWorkLoading = false
  14032. }, 500);
  14033. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, err)
  14034. });
  14035. },
  14036. addCourseWorks2(i) {
  14037. var typesql;
  14038. if (this.fileType === 0) {
  14039. typesql = 0;
  14040. } else if (this.fileType === 1) {
  14041. typesql = 1;
  14042. } else if (this.fileType === 2) {
  14043. typesql = 3;
  14044. } else if (this.fileType === 3) {
  14045. typesql = 12;
  14046. }
  14047. if (!this.studyJuri[0].cover[0].url) {
  14048. this.$message.error("请上传文件");
  14049. return;
  14050. }
  14051. let params = [
  14052. {
  14053. uid: this.userid,
  14054. cid: this.id,
  14055. stage: this.courseType,
  14056. task: i,
  14057. tool: this.toolindex,
  14058. content: JSON.stringify({
  14059. type: typesql,
  14060. groupIndex: this.groupIndex,
  14061. url: this.studyJuri[0].cover[0].url,
  14062. }),
  14063. type: 11,
  14064. atool: 49,
  14065. text: "",
  14066. },
  14067. ];
  14068. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  14069. this.homeWorkLoading = true
  14070. this.ajax
  14071. .post(this.$store.state.api + "addCourseWorks5", params)
  14072. .then((res) => {
  14073. this.$message({
  14074. message: "提交成功",
  14075. type: "success",
  14076. });
  14077. setTimeout(() => {
  14078. this.homeWorkLoading = false
  14079. }, 500);
  14080. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  14081. type: typesql,
  14082. groupIndex: this.groupIndex,
  14083. url: this.studyJuri[0].cover[0].url,
  14084. }),type: "course_tool_sub" }, "success")
  14085. this.studyJuri[0].cover = [];
  14086. this.dialogVisibleGroupWork = false;
  14087. this.getCourseDetail(2);
  14088. })
  14089. .catch((err) => {
  14090. this.$message.error("提交失败");
  14091. console.error(err);
  14092. setTimeout(() => {
  14093. this.homeWorkLoading = false
  14094. }, 500);
  14095. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  14096. type: typesql,
  14097. groupIndex: this.groupIndex,
  14098. url: this.studyJuri[0].cover[0].url,
  14099. }),type: "course_tool_sub" }, err)
  14100. });
  14101. },
  14102. addEnglishWork() {
  14103. this.myAnList = this.$refs['engJson'].myAnswerList;
  14104. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  14105. this.$message.error("请输入作文标题和正文!");
  14106. return;
  14107. }
  14108. let params = [
  14109. {
  14110. uid: this.userid,
  14111. cid: this.id,
  14112. stage: this.courseType,
  14113. task: this.taskCount,
  14114. tool: this.englishToolIndex,
  14115. content: JSON.stringify(this.myAnList),
  14116. type: 16,
  14117. atool: 69,
  14118. text: "",
  14119. },
  14120. ];
  14121. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  14122. this.homeWorkLoading = true
  14123. this.ajax
  14124. .post(this.$store.state.api + "addCourseWorks5", params)
  14125. .then((res) => {
  14126. this.$message({
  14127. message: "提交成功",
  14128. type: "success",
  14129. });
  14130. setTimeout(() => {
  14131. this.homeWorkLoading = false
  14132. }, 500);
  14133. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  14134. data: JSON.stringify(this.myAnList),
  14135. type: "course_tool_sub" }, "success")
  14136. this.myAnList = {};
  14137. this.englishList = {};
  14138. this.englishToolIndex = 0;
  14139. this.engDialogVisible = false;
  14140. this.selectSWorks();
  14141. this.selectStudent();
  14142. })
  14143. .catch((err) => {
  14144. this.$message.error("提交失败");
  14145. console.error(err);
  14146. setTimeout(() => {
  14147. this.homeWorkLoading = false
  14148. }, 500);
  14149. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  14150. data: JSON.stringify(this.myAnList),
  14151. type: "course_tool_sub" }, err)
  14152. });
  14153. },
  14154. addCourseWorksGong(i, data, tool) {
  14155. let params = [
  14156. {
  14157. uid: this.userid,
  14158. cid: this.id,
  14159. stage: this.courseType,
  14160. task: this.taskCount,
  14161. tool: i,
  14162. content: data,
  14163. type: 12,
  14164. atool: tool,
  14165. text: "",
  14166. },
  14167. ];
  14168. this.ajax
  14169. .post(this.$store.state.api + "addCourseWorks5", params)
  14170. .then((res) => {
  14171. this.$message({
  14172. message: "提交成功",
  14173. type: "success",
  14174. });
  14175. this.studyJuri[0].cover = [];
  14176. this.selectSWorks();
  14177. this.selectStudent();
  14178. })
  14179. .catch((err) => {
  14180. this.$message.error("提交失败");
  14181. console.error(err);
  14182. });
  14183. },
  14184. addCourseWorksGongTeacher(i, data, tool) {
  14185. let params = [
  14186. {
  14187. uid: this.sStudent.userid,
  14188. cid: this.id,
  14189. stage: this.courseType,
  14190. task: this.taskCount,
  14191. tool: i,
  14192. content: data,
  14193. type: 12,
  14194. atool: tool,
  14195. text: "",
  14196. },
  14197. ];
  14198. this.ajax
  14199. .post(this.$store.state.api + "addCourseWorks5", params)
  14200. .then((res) => {
  14201. this.$message({
  14202. message: "提交成功",
  14203. type: "success",
  14204. });
  14205. this.studyJuri[0].cover = [];
  14206. this.dialogVisibleWorks = false;
  14207. this.selectSWorks();
  14208. this.selectStudent();
  14209. })
  14210. .catch((err) => {
  14211. this.$message.error("提交失败");
  14212. console.error(err);
  14213. });
  14214. },
  14215. addCourseWorksGongPl(i, data, tool, type) {
  14216. let params = [
  14217. {
  14218. uid: this.sStudent.userid,
  14219. cid: this.id,
  14220. stage: this.courseType,
  14221. task: this.taskCount,
  14222. tool: i,
  14223. content: data,
  14224. type: type,
  14225. atool: tool,
  14226. text: "",
  14227. },
  14228. ];
  14229. this.ajax
  14230. .post(this.$store.state.api + "addCourseWorks5", params)
  14231. .then((res) => {
  14232. this.$message({
  14233. message: "提交成功",
  14234. type: "success",
  14235. });
  14236. this.studyJuri[0].cover = [];
  14237. this.dialogVisibleWorks = false;
  14238. this.selectSWorks();
  14239. this.selectStudent();
  14240. })
  14241. .catch((err) => {
  14242. this.$message.error("提交失败");
  14243. console.error(err);
  14244. });
  14245. },
  14246. addCourseWorksTeacher(i) {
  14247. var typesql;
  14248. if (this.sTool == 32) {
  14249. this.addCourseWorksGongTeacher(
  14250. this.toolindex,
  14251. this.studyJuri[0].cover[0].url,
  14252. this.sTool
  14253. );
  14254. return;
  14255. }
  14256. if (this.fileType === 0) {
  14257. typesql = 1;
  14258. } else if (this.fileType === 1) {
  14259. typesql = 4;
  14260. } else if (this.fileType === 2) {
  14261. typesql = 5;
  14262. } else if (this.fileType === 3) {
  14263. typesql = 12;
  14264. }
  14265. if (this.sTool == 50) {
  14266. this.addCourseWorksGongPl(
  14267. this.toolindex,
  14268. this.studyJuri[0].cover[0].url,
  14269. this.sTool,
  14270. typesql
  14271. );
  14272. return;
  14273. }
  14274. if (!this.studyJuri[0].cover[0].url) {
  14275. this.$message.error("请上传文件");
  14276. return;
  14277. }
  14278. let params = [
  14279. {
  14280. uid: this.sStudent.userid,
  14281. cid: this.id,
  14282. stage: this.courseType,
  14283. task: i,
  14284. tool: this.toolindex,
  14285. content: this.studyJuri[0].cover[0].url,
  14286. type: typesql,
  14287. ateacher: this.userid,
  14288. },
  14289. ];
  14290. this.ajax
  14291. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  14292. .then((res) => {
  14293. this.$message({
  14294. message: "提交成功",
  14295. type: "success",
  14296. });
  14297. this.studyJuri[0].cover = [];
  14298. this.dialogVisibleWorks = false;
  14299. this.getCourseDetail(2);
  14300. })
  14301. .catch((err) => {
  14302. this.$message.error("提交失败");
  14303. console.error(err);
  14304. });
  14305. },
  14306. selectUploadStudent(type) {
  14307. const loading = this.$loading.service({
  14308. background: "rgba(255, 255, 255, 0.7)",
  14309. target: document.body,
  14310. });
  14311. let params = {
  14312. cid: this.uploadCid,
  14313. oid: this.oid,
  14314. cn: "",
  14315. };
  14316. this.ajax
  14317. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14318. .then((res) => {
  14319. loading.close();
  14320. var studentK = [];
  14321. if (this.isWorksS[this.toolindex].length > 0) {
  14322. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  14323. studentK.push(this.isWorksS[this.toolindex][z].uid);
  14324. }
  14325. studentK = studentK.join(",");
  14326. }
  14327. this.uploadStudentJuri = res.data[0].filter((el) => {
  14328. return studentK.indexOf(el.userid) == -1;
  14329. });
  14330. if (this.worksSName && this.worksSid) {
  14331. this.uploadStudentJuri.push({
  14332. userid: this.worksSid,
  14333. name: this.worksSName,
  14334. });
  14335. }
  14336. if (type == 1) {
  14337. this.plworkFile = [];
  14338. this.dialogVisibleSname = true;
  14339. } else if (type == 2) {
  14340. this.dialogVisiblePl = true;
  14341. }
  14342. })
  14343. .catch((err) => {
  14344. loading.close();
  14345. console.error(err);
  14346. });
  14347. },
  14348. selectPickStudent() {
  14349. const loading = this.$loading.service({
  14350. background: "rgba(255, 255, 255, 0.7)",
  14351. target: document.body,
  14352. });
  14353. let params = {
  14354. cid: this.uploadCid,
  14355. oid: this.oid,
  14356. cn: "",
  14357. };
  14358. this.ajax
  14359. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14360. .then((res) => {
  14361. loading.close();
  14362. this.uploadStudentJuri = res.data[0];
  14363. this.dialogVisiblePickPeople = true;
  14364. })
  14365. .catch((err) => {
  14366. loading.close();
  14367. console.error(err);
  14368. });
  14369. },
  14370. arrayToArray(arrayo, arrayt) {
  14371. let array1 = arrayo;
  14372. let array2 = arrayt;
  14373. let commonElements = [];
  14374. for (let i = 0; i < array1.length; i++) {
  14375. for (let j = 0; j < array2.length; j++) {
  14376. if (array1[i] === array2[j]) {
  14377. commonElements.push(array1[i]);
  14378. }
  14379. }
  14380. }
  14381. return commonElements;
  14382. },
  14383. selectWorksStudent() {
  14384. let params = {
  14385. oid: this.oid,
  14386. cid: this.courseDetail.juri,
  14387. };
  14388. this.ajax
  14389. .get(this.$store.state.api + "selectWorksStudent", params)
  14390. .then((res) => {
  14391. var a = res.data[0];
  14392. for (var i = 0; i < this.isWorksS.length; i++) {
  14393. this.noWorksS[i] = [];
  14394. var studentK = [];
  14395. if (this.isWorksS[i].length > 0) {
  14396. for (var z = 0; z < this.isWorksS[i].length; z++) {
  14397. studentK.push(this.isWorksS[i][z].uid);
  14398. }
  14399. studentK = studentK.join(",");
  14400. for (var j = 0; j < a.length; j++) {
  14401. if (studentK.indexOf(a[j].userid) == -1) {
  14402. if (this.tcid) {
  14403. // a[j].classid.indexOf(this.tcid) != -1
  14404. if (
  14405. this.arrayToArray(
  14406. a[j].classid.split(","),
  14407. this.tcid.split(",")
  14408. ).length
  14409. ) {
  14410. this.noWorksS[i].push({
  14411. student: a[j].name,
  14412. userid: a[j].userid,
  14413. });
  14414. }
  14415. } else {
  14416. this.noWorksS[i].push({
  14417. student: a[j].name,
  14418. userid: a[j].userid,
  14419. });
  14420. }
  14421. }
  14422. }
  14423. } else {
  14424. for (var k = 0; k < a.length; k++) {
  14425. if (this.tcid) {
  14426. if (
  14427. this.arrayToArray(
  14428. a[k].classid.split(","),
  14429. this.tcid.split(",")
  14430. ).length
  14431. ) {
  14432. this.noWorksS[i].push({
  14433. student: a[k].name,
  14434. userid: a[k].userid,
  14435. });
  14436. }
  14437. } else {
  14438. this.noWorksS[i].push({
  14439. student: a[k].name,
  14440. userid: a[k].userid,
  14441. });
  14442. }
  14443. }
  14444. }
  14445. }
  14446. this.$forceUpdate();
  14447. if (
  14448. Object.keys(this.commentDetail).length &&
  14449. Object.keys(this.commentIndexJson).length &&
  14450. !this.dialogVisibleScore && !this.dialogVisibleENScore
  14451. ) {
  14452. let a = 1;
  14453. let c = this.commentIndexJson;
  14454. if (
  14455. this.commentIndexJson.gindex ||
  14456. this.commentIndexJson.gindex === 0
  14457. ) {
  14458. for (
  14459. var i = 0;
  14460. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  14461. i++
  14462. ) {
  14463. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  14464. groupA: for (var k = 0; k < _el.length; k++) {
  14465. let el = _el[k];
  14466. if (el.wid == this.commentDetail.wid) {
  14467. a = 2;
  14468. this.commentOther(
  14469. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  14470. this.commentIndexJson.toolIndex,
  14471. k,
  14472. this.commentIndexJson.gindex
  14473. );
  14474. break groupA;
  14475. }
  14476. }
  14477. }
  14478. if (a === 1) {
  14479. this.commentDetail = [];
  14480. this.commentIndexJson = {};
  14481. this.commentDialogVisible = false;
  14482. this.$message("此作业已被删除");
  14483. }
  14484. } else {
  14485. if (this.isGroup && this.commentIndexJson.gid) {
  14486. groupA: for (
  14487. var i = 0;
  14488. i < this.courseGroup.group.length;
  14489. i++
  14490. ) {
  14491. let _group = this.courseGroup.group[i];
  14492. if (_group.id == this.commentIndexJson.gid) {
  14493. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  14494. for (var k = 0; k < _el2.length; k++) {
  14495. let el2 = _el2[k];
  14496. if (el2.wid == this.commentDetail.wid) {
  14497. a = 2;
  14498. this.commentOther(
  14499. _el2[k],
  14500. this.commentIndexJson.toolIndex,
  14501. k,
  14502. null,
  14503. this.commentIndexJson.gid
  14504. );
  14505. break groupA;
  14506. }
  14507. }
  14508. }
  14509. }
  14510. }
  14511. if (a == 1) {
  14512. for (
  14513. var i = 0;
  14514. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  14515. i++
  14516. ) {
  14517. let el =
  14518. this.worksStudent[this.commentIndexJson.toolIndex][i];
  14519. if (el.wid == this.commentDetail.wid) {
  14520. a = 2;
  14521. this.commentOther(
  14522. this.worksStudent[this.commentIndexJson.toolIndex][i],
  14523. this.commentIndexJson.toolIndex,
  14524. i
  14525. );
  14526. break;
  14527. }
  14528. }
  14529. }
  14530. if (a === 1) {
  14531. this.commentDetail = [];
  14532. this.commentIndexJson = {};
  14533. this.commentDialogVisible = false;
  14534. this.$message("此作业已被删除");
  14535. }
  14536. }
  14537. }
  14538. })
  14539. .catch((err) => {
  14540. console.error(err);
  14541. });
  14542. },
  14543. selectStudent() {
  14544. if(this.selectStudentLoading) return
  14545. this.selectStudentLoading = true
  14546. //学生查看自己作业
  14547. let params = {
  14548. uid: this.userid,
  14549. cid: this.id,
  14550. s: this.courseType,
  14551. t: this.taskCount,
  14552. };
  14553. this.ajax
  14554. .get(this.$store.state.api + "selectStudentWorks", params)
  14555. .then((res) => {
  14556. var a =
  14557. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14558. this.taskCount
  14559. ].toolChoose;
  14560. var b = res.data[0];
  14561. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14562. var y = [
  14563. "AVI",
  14564. "NAVI",
  14565. "MPEG",
  14566. "ASF",
  14567. "MOV",
  14568. "WMV",
  14569. "3GP",
  14570. "RM",
  14571. "RMVB",
  14572. "FLV",
  14573. "F4V",
  14574. "H.264",
  14575. "H.265",
  14576. "REAL VIDEO",
  14577. "MKV",
  14578. "WebM",
  14579. "HDDVD",
  14580. "MP4",
  14581. "MPG",
  14582. "M4V",
  14583. "MGV",
  14584. "OGV",
  14585. "QTM",
  14586. "STR",
  14587. "AMC",
  14588. "DVX",
  14589. "EVO",
  14590. "DAT",
  14591. "OGG",
  14592. "OGM",
  14593. ];
  14594. for (var i = 0; i < a.length; i++) {
  14595. this.workStudent[i] = [];
  14596. for (var j = 0; j < b.length; j++) {
  14597. if (i == b[j].tool) {
  14598. if (
  14599. (b[j].type == 1 ||
  14600. b[j].type == 4 ||
  14601. b[j].type == 5 ||
  14602. b[j].type == 6 ||
  14603. b[j].type == 12 ||
  14604. b[j].type == 7) &&
  14605. a[i].tool[0] != 15 &&
  14606. a[i].tool[0] != 4 &&
  14607. a[i].tool[0] != 45 &&
  14608. a[i].tool[0] != 50 &&
  14609. a[i].tool[0] != 32 &&
  14610. a[i].tool[0] != 57 &&
  14611. a[i].tool[0] != 52 &&
  14612. a[i].tool[0] != 69
  14613. ) {
  14614. if (
  14615. c.indexOf(
  14616. b[j].content
  14617. .split(".")
  14618. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14619. ) != -1 &&
  14620. a[i].tool[0] == 16 &&
  14621. b[j].atool != 50
  14622. ) {
  14623. this.workStudent[i].push({
  14624. works: b[j].content,
  14625. sName: b[j].name,
  14626. score: b[j].score,
  14627. img: b[j].img,
  14628. type: 1,
  14629. time: b[j].time,
  14630. userid: b[j].userid,
  14631. wid: b[j].id,
  14632. });
  14633. } else if (
  14634. y.indexOf(
  14635. b[j].content
  14636. .split(".")
  14637. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14638. ) != -1 &&
  14639. a[i].tool[0] == 16 &&
  14640. b[j].atool != 50
  14641. ) {
  14642. this.workStudent[i].push({
  14643. userid: b[j].userid,
  14644. wid: b[j].id,
  14645. works: b[j].content,
  14646. sName: b[j].name,
  14647. score: b[j].score,
  14648. img: b[j].img,
  14649. type: 3,
  14650. time: b[j].time,
  14651. });
  14652. } else if (b[j].type == 6 && b[j].atool != 50) {
  14653. this.workStudent[i].push({
  14654. userid: b[j].userid,
  14655. wid: b[j].id,
  14656. works: b[j].content,
  14657. sName: b[j].name,
  14658. score: b[j].score,
  14659. img: b[j].img,
  14660. type: 4,
  14661. time: b[j].time,
  14662. });
  14663. } else if (b[j].type == 7 && b[j].atool != 50) {
  14664. this.workStudent[i].push({
  14665. userid: b[j].userid,
  14666. wid: b[j].id,
  14667. works: b[j].content,
  14668. sName: b[j].name,
  14669. score: b[j].score,
  14670. img: b[j].img,
  14671. type: 5,
  14672. time: b[j].time,
  14673. });
  14674. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14675. this.workStudent[i].push({
  14676. works: b[j].content,
  14677. sName: b[j].name,
  14678. score: b[j].score,
  14679. img: b[j].img,
  14680. type: 12,
  14681. time: b[j].time,
  14682. userid: b[j].userid,
  14683. wid: b[j].id,
  14684. });
  14685. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14686. this.workStudent[i].push({
  14687. works: b[j].content,
  14688. sName: b[j].name,
  14689. score: b[j].score,
  14690. img: b[j].img,
  14691. type: 0,
  14692. time: b[j].time,
  14693. userid: b[j].userid,
  14694. wid: b[j].id,
  14695. });
  14696. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14697. this.workStudent[i].push({
  14698. works: b[j].content,
  14699. sName: b[j].name,
  14700. score: b[j].score,
  14701. img: b[j].img,
  14702. type: 0,
  14703. time: b[j].time,
  14704. userid: b[j].userid,
  14705. wid: b[j].id,
  14706. });
  14707. }
  14708. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14709. this.workStudent[i].push({
  14710. works: b[j].content,
  14711. sName: b[j].name,
  14712. score: b[j].score,
  14713. img: b[j].img,
  14714. type: 2,
  14715. time: b[j].time,
  14716. userid: b[j].userid,
  14717. wid: b[j].id,
  14718. });
  14719. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  14720. this.workStudent[i].push({
  14721. works: b[j].content,
  14722. sName: b[j].name,
  14723. score: b[j].score,
  14724. img: b[j].img,
  14725. type: 20,
  14726. time: b[j].time,
  14727. userid: b[j].userid,
  14728. wid: b[j].id,
  14729. });
  14730. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14731. //问卷
  14732. this.workStudent[i].push({
  14733. works: b[j].content,
  14734. sName: b[j].name,
  14735. score: b[j].score,
  14736. img: b[j].img,
  14737. type: 2,
  14738. time: b[j].time,
  14739. userid: b[j].userid,
  14740. wid: b[j].id,
  14741. });
  14742. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14743. //选择题
  14744. this.workStudent[i].push({
  14745. works: b[j].content,
  14746. sName: b[j].name,
  14747. score: b[j].score,
  14748. img: b[j].img,
  14749. type: 8,
  14750. time: b[j].time,
  14751. userid: b[j].userid,
  14752. wid: b[j].id,
  14753. });
  14754. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14755. //选择题
  14756. this.workStudent[i].push({
  14757. works: b[j].content,
  14758. sName: b[j].name,
  14759. score: b[j].score,
  14760. img: b[j].img,
  14761. type: 9,
  14762. time: b[j].time,
  14763. userid: b[j].userid,
  14764. wid: b[j].id,
  14765. });
  14766. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14767. //选择题
  14768. this.workStudent[i].push({
  14769. works: b[j].content,
  14770. sName: b[j].name,
  14771. score: b[j].score,
  14772. img: b[j].img,
  14773. type: 10,
  14774. time: b[j].time,
  14775. userid: b[j].userid,
  14776. wid: b[j].id,
  14777. });
  14778. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14779. //选择题
  14780. this.workStudent[i].push({
  14781. works: b[j].content,
  14782. sName: b[j].name,
  14783. score: b[j].score,
  14784. img: b[j].img,
  14785. type: 13,
  14786. time: b[j].time,
  14787. userid: b[j].userid,
  14788. wid: b[j].id,
  14789. });
  14790. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  14791. //选择题
  14792. this.workStudent[i].push({
  14793. works: b[j].content,
  14794. sName: b[j].name,
  14795. score: b[j].score,
  14796. img: b[j].img,
  14797. type: 12,
  14798. time: b[j].time,
  14799. userid: b[j].userid,
  14800. wid: b[j].id,
  14801. });
  14802. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  14803. //选择题
  14804. this.workStudent[i].push({
  14805. works: b[j].content,
  14806. sName: b[j].name,
  14807. score: b[j].score,
  14808. img: b[j].img,
  14809. type: 12,
  14810. time: b[j].time,
  14811. userid: b[j].userid,
  14812. wid: b[j].id,
  14813. });
  14814. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  14815. //选择题
  14816. this.workStudent[i].push({
  14817. works: b[j].content,
  14818. sName: b[j].name,
  14819. score: b[j].score,
  14820. img: b[j].img,
  14821. type: 15,
  14822. time: b[j].time,
  14823. userid: b[j].userid,
  14824. wid: b[j].id,
  14825. });
  14826. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14827. //英语写作
  14828. this.workStudent[i].push({
  14829. works: b[j].content,
  14830. sName: b[j].name,
  14831. score: b[j].score,
  14832. img: b[j].img,
  14833. type: 16,
  14834. time: b[j].time,
  14835. userid: b[j].userid,
  14836. wid: b[j].id,
  14837. aiCode: b[j].aiCode,
  14838. teacherCode: b[j].teacherCode
  14839. });
  14840. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14841. //英语口语
  14842. this.workStudent[i].push({
  14843. works: b[j].content,
  14844. sName: b[j].name,
  14845. score: b[j].score,
  14846. img: b[j].img,
  14847. type: 17,
  14848. time: b[j].time,
  14849. userid: b[j].userid,
  14850. wid: b[j].id,
  14851. });
  14852. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14853. //交互视频
  14854. this.workStudent[i].push({
  14855. works: b[j].content,
  14856. sName: b[j].name,
  14857. score: b[j].score,
  14858. img: b[j].img,
  14859. type: 14,
  14860. time: b[j].time,
  14861. userid: b[j].userid,
  14862. wid: b[j].id,
  14863. });
  14864. }
  14865. }
  14866. }
  14867. }
  14868. this.selectStudentLoading = false
  14869. })
  14870. .catch((err) => {
  14871. this.selectStudentLoading = false
  14872. console.error(err);
  14873. });
  14874. },
  14875. openVideo(w) {
  14876. this.videoDetail = {};
  14877. this.playerOptions1.sources[0].src = w.works;
  14878. this.videoDetail = this.playerOptions1;
  14879. this.videoVisible = true;
  14880. },
  14881. isLikes(wid, uid, t, c, isLikes,sName) {
  14882. if (isLikes == false) {
  14883. let params = [
  14884. {
  14885. wid: wid,
  14886. lid: uid,
  14887. t: t,
  14888. c: c,
  14889. },
  14890. ];
  14891. this.ajax
  14892. .post(this.$store.state.api + "insertComment", params)
  14893. .then((res) => {
  14894. this.$message({
  14895. message: "点赞成功",
  14896. type: "success",
  14897. });
  14898. this.selectSWorks();
  14899. this.selectStudent();
  14900. if(this.tType!=2){
  14901. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14902. }
  14903. })
  14904. .catch((err) => {
  14905. this.$message.error("点赞失败");
  14906. console.error(err);
  14907. });
  14908. } else {
  14909. let params = {
  14910. wid: wid,
  14911. lid: uid,
  14912. type: t,
  14913. };
  14914. this.ajax
  14915. .get(this.$store.state.api + "deleteComment", params)
  14916. .then((res) => {
  14917. this.$message({
  14918. message: "取消点赞成功",
  14919. type: "success",
  14920. });
  14921. this.selectSWorks();
  14922. this.selectStudent();
  14923. })
  14924. .catch((err) => {
  14925. console.error(err);
  14926. });
  14927. }
  14928. },
  14929. deleteComment(wid) {
  14930. this.$confirm("确定删除此评论吗?", "提示", {
  14931. confirmButtonText: "确定",
  14932. cancelButtonText: "取消",
  14933. type: "warning",
  14934. })
  14935. .then(() => {
  14936. let params = {
  14937. id: wid,
  14938. };
  14939. this.ajax
  14940. .get(this.$store.state.api + "deleteComment2", params)
  14941. .then((res) => {
  14942. this.$message({
  14943. message: "删除评论成功",
  14944. type: "success",
  14945. });
  14946. this.selectSWorks();
  14947. this.selectStudent();
  14948. })
  14949. .catch((err) => {
  14950. console.error(err);
  14951. });
  14952. })
  14953. .catch(() => {});
  14954. },
  14955. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14956. this.commentIndexJson = {
  14957. toolIndex: toolIndex,
  14958. wIndex: wIndex,
  14959. gindex: gindex,
  14960. gid: gid,
  14961. };
  14962. this.commentDetail = [];
  14963. this.commentDialogVisible = true;
  14964. this.commentDetail = w;
  14965. if (w.works && w.type == 1) {
  14966. // this.pptImgUrl = "";
  14967. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14968. if (
  14969. a.indexOf(
  14970. w.works
  14971. .split(".")
  14972. [w.works.split(".").length - 1].toLocaleUpperCase()
  14973. ) != -1
  14974. ) {
  14975. let _uuurl = await this.checkLink(w.works);
  14976. console.log(_uuurl)
  14977. this.pptImgUrl =
  14978. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14979. this.showPDF = false;
  14980. } else if (
  14981. w.works
  14982. .split(".")
  14983. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14984. ) {
  14985. this.pptImgUrl = w.works;
  14986. this.showPDF = true;
  14987. }
  14988. } else if (w.works && w.type == 3) {
  14989. this.videoDetail = {};
  14990. this.playerOptions1.sources[0].src = w.works;
  14991. this.videoDetail = this.playerOptions1;
  14992. // this.videoVisible = true;
  14993. } else if (w.works && w.type == 4) {
  14994. this.eScore = JSON.parse(w.works);
  14995. this.rateJson =
  14996. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14997. this.taskCount
  14998. ].toolChoose[toolIndex].rateJson;
  14999. } else if (w.works && w.type == 10) {
  15000. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  15001. } else if (w.works && w.type == 13) {
  15002. this.wordJson =
  15003. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15004. this.taskCount
  15005. ].toolChoose[toolIndex].wordJson;
  15006. }
  15007. },
  15008. async openScore(w, index) {
  15009. this.wScore = 0;
  15010. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  15011. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  15012. this.commentDetail = [];
  15013. if(w.type == 17){
  15014. this.dialogVisibleENScore = true;
  15015. }else{
  15016. this.dialogVisibleScore = true;
  15017. }
  15018. this.commentDetail = w;
  15019. if (w.works && w.type == 1) {
  15020. this.pptImgUrl = "";
  15021. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  15022. if (
  15023. a.indexOf(
  15024. w.works
  15025. .split(".")
  15026. [w.works.split(".").length - 1].toLocaleUpperCase()
  15027. ) != -1
  15028. ) {
  15029. let _uuurl = await this.checkLink(w.works);
  15030. console.log(_uuurl)
  15031. this.pptImgUrl =
  15032. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  15033. this.showPDF = false;
  15034. } else if (
  15035. w.works
  15036. .split(".")
  15037. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15038. ) {
  15039. this.pptImgUrl = w.works;
  15040. this.showPDF = true;
  15041. }
  15042. } else if (w.works && w.type == 3) {
  15043. this.videoDetail = {};
  15044. this.playerOptions1.sources[0].src = w.works;
  15045. this.videoDetail = this.playerOptions1;
  15046. }else if(w.type == 17){
  15047. let englishVoiceJson = {}
  15048. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15049. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  15050. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  15051. .toolChoose[index].englishVoiceJson
  15052. : {};
  15053. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  15054. }
  15055. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15056. },
  15057. addComment(wid, uid, t,detail) {
  15058. if (this.commentText == "") {
  15059. this.$message.error("请输入评论");
  15060. return;
  15061. }
  15062. let params2 = [
  15063. {
  15064. wid: wid,
  15065. lid: uid,
  15066. t: t,
  15067. },
  15068. ];
  15069. this.ajax
  15070. .post(this.$store.state.api + "getComment", params2)
  15071. .then((res) => {
  15072. if (res.data[0].length > 0) {
  15073. this.$message.error("一个作业只能评论一条");
  15074. } else {
  15075. let params = [
  15076. {
  15077. wid: wid,
  15078. lid: uid,
  15079. t: t,
  15080. c: this.commentText,
  15081. },
  15082. ];
  15083. this.ajax
  15084. .post(this.$store.state.api + "insertComment", params)
  15085. .then((res) => {
  15086. this.$message({
  15087. message: "评论成功",
  15088. type: "success",
  15089. });
  15090. this.commentText = "";
  15091. this.selectSWorks();
  15092. this.selectStudent();
  15093. if(this.tType!=2){
  15094. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  15095. }
  15096. })
  15097. .catch((err) => {
  15098. this.$message.error("评论失败");
  15099. console.error(err);
  15100. });
  15101. }
  15102. })
  15103. .catch((err) => {
  15104. // this.$message.error("评论失败");
  15105. console.error(err);
  15106. });
  15107. },
  15108. scoreWork(wid,sName) {
  15109. if (this.wScore == 0) {
  15110. this.$message.error("请评分");
  15111. return;
  15112. }
  15113. let params = [
  15114. {
  15115. wid: wid,
  15116. score: JSON.stringify({
  15117. wScore: this.wScore,
  15118. detail: this.scoreDetail,
  15119. }),
  15120. },
  15121. ];
  15122. this.ajax
  15123. .post(this.$store.state.api + "scoreWork", params)
  15124. .then((res) => {
  15125. this.$message({
  15126. message: "评分成功",
  15127. type: "success",
  15128. });
  15129. this.wScore = 0;
  15130. this.scoreDetail = "";
  15131. this.dialogVisibleScore = false;
  15132. this.selectSWorks();
  15133. this.selectStudent();
  15134. if(this.tType!=2){
  15135. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  15136. }
  15137. })
  15138. .catch((err) => {
  15139. this.$message.error("评分失败");
  15140. console.error(err);
  15141. });
  15142. },
  15143. openXz(w, i) {
  15144. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15145. .taskJson[this.taskCount].toolChoose[i].selectJson
  15146. ? JSON.parse(
  15147. JSON.stringify(
  15148. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15149. this.taskCount
  15150. ].toolChoose[i].selectJson
  15151. )
  15152. )
  15153. : { url: "", select: [], answer: [] };
  15154. var a = w.works.split(",");
  15155. for (var k = 0; k < a.length; k++) {
  15156. a[k] = parseInt(a[k]);
  15157. }
  15158. this.selectAnswer = { answer: a, stu: w.sName };
  15159. this.isSelect = true;
  15160. this.dialogVisibleSelect = true;
  15161. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15162. },
  15163. openSen(w, i) {
  15164. this.sentenceList1 = JSON.parse(w.works);
  15165. this.sentenceList1.stuName = w.sName;
  15166. this.dialogVisibleSentence1 = true;
  15167. },
  15168. openPj(w, toolindex) {
  15169. this.isStar = true;
  15170. this.eScore = JSON.parse(w);
  15171. this.rateJson =
  15172. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15173. this.taskCount
  15174. ].toolChoose[toolindex].rateJson;
  15175. this.studentEvalDialogVisible = true;
  15176. },
  15177. openEnglishEva(id,i){
  15178. let params = {
  15179. wid: id
  15180. };
  15181. this.ajax
  15182. .get(this.$store.state.api + "selectEngWork", params)
  15183. .then((res) => {
  15184. this.evaEngJson.message = res.data[0][0];
  15185. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  15186. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  15187. .toolChoose[i].englishList;
  15188. this.engEvaDialogVisible = true;
  15189. })
  15190. .catch((err) => {
  15191. console.error(err);
  15192. });
  15193. },
  15194. deleteWorks(id) {
  15195. this.$confirm("确定删除此作业吗?", "提示", {
  15196. confirmButtonText: "确定",
  15197. cancelButtonText: "取消",
  15198. type: "warning",
  15199. })
  15200. .then(() => {
  15201. let params = [
  15202. {
  15203. id: id,
  15204. },
  15205. ];
  15206. this.ajax
  15207. .post(this.$store.state.api + "deleteCourseWork", params)
  15208. .then((res) => {
  15209. this.$message({
  15210. message: "删除成功",
  15211. type: "success",
  15212. });
  15213. this.selectStudent();
  15214. this.selectSWorks();
  15215. this.selectSLook();
  15216. })
  15217. .catch((err) => {
  15218. this.$message.error("网络异常");
  15219. console.error(err);
  15220. });
  15221. })
  15222. .catch(() => {});
  15223. },
  15224. selectSWorks(gindex) {
  15225. if(this.selectSWorksLoading) return
  15226. this.selectSWorksLoading = true
  15227. //教师查看全部作业
  15228. let params = {
  15229. cid: this.id,
  15230. s: this.courseType,
  15231. t: this.taskCount,
  15232. };
  15233. this.ajax
  15234. .get(this.$store.state.api + "selectSWorks", params)
  15235. .then((res) => {
  15236. var a =
  15237. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15238. this.taskCount
  15239. ].toolChoose;
  15240. var b = res.data[0];
  15241. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15242. var y = [
  15243. "AVI",
  15244. "NAVI",
  15245. "MPEG",
  15246. "ASF",
  15247. "MOV",
  15248. "WMV",
  15249. "3GP",
  15250. "RM",
  15251. "RMVB",
  15252. "FLV",
  15253. "F4V",
  15254. "H.264",
  15255. "H.265",
  15256. "REAL VIDEO",
  15257. "MKV",
  15258. "WebM",
  15259. "HDDVD",
  15260. "MP4",
  15261. "MPG",
  15262. "M4V",
  15263. "MGV",
  15264. "OGV",
  15265. "QTM",
  15266. "STR",
  15267. "AMC",
  15268. "DVX",
  15269. "EVO",
  15270. "DAT",
  15271. "OGG",
  15272. "OGM",
  15273. ];
  15274. var d = res.data[1];
  15275. var e = res.data[2];
  15276. var f = res.data[3];
  15277. let _worksStudent = [];
  15278. var _worksStudent2 = [];
  15279. for (var i = 0; i < a.length; i++) {
  15280. _worksStudent[i] = [];
  15281. _worksStudent2[i] = [];
  15282. if (
  15283. !this.isCloseList[i] ||
  15284. this.isCloseList[i].isClose == undefined
  15285. ) {
  15286. this.isCloseList[i] = { isClose: 0 };
  15287. }
  15288. this.groupStudent[i] = [];
  15289. this.groupStudentUid[i] = [];
  15290. if (this.isGroup) {
  15291. for (
  15292. var groupI = 0;
  15293. groupI < this.courseGroup.group.length;
  15294. groupI++
  15295. ) {
  15296. this.courseGroup.group[groupI].works[i] = [];
  15297. }
  15298. }
  15299. this.isWorksS[i] = [];
  15300. this.checkJson[i] = [];
  15301. if (a[i].tool[0] == 49) {
  15302. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  15303. this.groupStudent[i][gA] = [];
  15304. this.groupStudentUid[i][gA] = [];
  15305. _worksStudent[i][gA] = [];
  15306. _worksStudent2[i][gA] = [];
  15307. this.isCloseList[i][gA] = [];
  15308. for (var g = 0; g < f.length; g++) {
  15309. if (
  15310. f[g].ttype == 2 &&
  15311. this.tcid &&
  15312. this.arrayToArray(
  15313. (f[g].classid ? f[g].classid.split(",") : []),
  15314. this.tcid.split(",")
  15315. ).length == 0
  15316. ) {
  15317. continue;
  15318. }
  15319. let _classId = this.arrayToArray(
  15320. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15321. this.classId ? this.classId.split(",") : []
  15322. )
  15323. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  15324. (f[g].classid ? f[g].classid.split(",") : []),
  15325. this.tcid.split(",")
  15326. ).length !== 0 || this.arrayToArray(
  15327. (f[g].classid ? f[g].classid.split(",") : []),
  15328. _classId
  15329. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  15330. this.groupStudent[i][gA].push(f[g]);
  15331. this.groupStudentUid[i][gA].push(f[g].userid);
  15332. }
  15333. }
  15334. }
  15335. this.$forceUpdate();
  15336. }
  15337. for (var j = 0; j < b.length; j++) {
  15338. if (
  15339. b[j].ttype == 2 &&
  15340. this.tcid &&
  15341. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  15342. .length == 0
  15343. ) {
  15344. continue;
  15345. }
  15346. var likesCount = 0;
  15347. var commentCount = 0;
  15348. var isLikes = false;
  15349. var commentJson = [];
  15350. var likeJson = [];
  15351. var data = b[j];
  15352. if (i == b[j].tool) {
  15353. if (data.type == 2 && a[i].tool[0] == 4) {
  15354. // if(JSON.parse(data.content)[0].anwer){
  15355. var checkL =
  15356. JSON.parse(data.content)[0].anwer instanceof Array
  15357. ? JSON.parse(data.content)[0].anwer
  15358. : JSON.parse(data.content)[0].anwer.split(",");
  15359. for (var z = 0; z < checkL.length; z++) {
  15360. if (!this.checkJson[i][z]) {
  15361. this.checkJson[i].push({
  15362. checkCount: [],
  15363. checkPerson: [],
  15364. rightPerson: [],
  15365. });
  15366. }
  15367. if (!this.checkJson[i][z].checkCount.length) {
  15368. this.checkJson[i][z].checkCount = [];
  15369. let _askItemCount = JSON.parse(data.content)[0].askJson
  15370. .askJson[z].askItem;
  15371. for (var aic = 0; aic < _askItemCount; aic++) {
  15372. this.checkJson[i][z].checkCount.push(0);
  15373. }
  15374. }
  15375. if (checkL[z] instanceof Array) {
  15376. if (
  15377. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  15378. checkL[z].sort().join(",")
  15379. ) {
  15380. this.checkJson[i][z].rightPerson.push(data.name);
  15381. }
  15382. for (var q = 0; q < checkL[z].length; q++) {
  15383. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15384. ? this.checkJson[i][z].checkPerson[
  15385. parseInt(checkL[z][q])
  15386. ].push(data.name)
  15387. : (this.checkJson[i][z].checkPerson[
  15388. parseInt(checkL[z][q])
  15389. ] = [data.name]);
  15390. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15391. ? this.checkJson[i][z].checkCount[
  15392. parseInt(checkL[z][q])
  15393. ]++
  15394. : (this.checkJson[i][z].checkCount[
  15395. parseInt(checkL[z][q])
  15396. ] = 1);
  15397. }
  15398. } else {
  15399. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  15400. this.checkJson[i][z].rightPerson.push(data.name);
  15401. }
  15402. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  15403. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  15404. ? this.checkJson[i][z].checkPerson[
  15405. parseInt(checkL[z])
  15406. ].push(data.name)
  15407. : (this.checkJson[i][z].checkPerson[
  15408. parseInt(checkL[z])
  15409. ] = [data.name]);
  15410. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  15411. ? this.checkJson[i][z].checkCount[
  15412. parseInt(checkL[z])
  15413. ]++
  15414. : (this.checkJson[i][z].checkCount[
  15415. parseInt(checkL[z])
  15416. ] = 1);
  15417. }
  15418. }
  15419. }
  15420. } else if (data.type == 8 && a[i].tool[0] == 45) {
  15421. var checkL = JSON.parse(data.content)[0].anwer;
  15422. for (var z = 0; z < checkL.length; z++) {
  15423. if (!this.checkJson[i][z]) {
  15424. this.checkJson[i].push({
  15425. checkCount: [],
  15426. checkPerson: [],
  15427. rightPerson: [],
  15428. });
  15429. }
  15430. if (!this.checkJson[i][z].checkCount.length) {
  15431. this.checkJson[i][z].checkCount = [];
  15432. let _askItemCount = JSON.parse(data.content)[0].testJson
  15433. .testJson[z].testItem;
  15434. for (var aic = 0; aic < _askItemCount; aic++) {
  15435. this.checkJson[i][z].checkCount.push(0);
  15436. }
  15437. }
  15438. if (checkL[z] instanceof Array) {
  15439. if (
  15440. JSON.parse(data.content)[0]
  15441. .testJson.testJson[z].answer.sort()
  15442. .join(",") == checkL[z].sort().join(",")
  15443. ) {
  15444. this.checkJson[i][z].rightPerson.push(data.name);
  15445. }
  15446. for (var q = 0; q < checkL[z].length; q++) {
  15447. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15448. ? this.checkJson[i][z].checkPerson[
  15449. parseInt(checkL[z][q])
  15450. ].push(data.name)
  15451. : (this.checkJson[i][z].checkPerson[
  15452. parseInt(checkL[z][q])
  15453. ] = [data.name]);
  15454. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15455. ? this.checkJson[i][z].checkCount[
  15456. parseInt(checkL[z][q])
  15457. ]++
  15458. : (this.checkJson[i][z].checkCount[
  15459. parseInt(checkL[z][q])
  15460. ] = 1);
  15461. }
  15462. } else {
  15463. if (
  15464. JSON.parse(data.content)[0].testJson.testJson[z]
  15465. .answer == checkL[z]
  15466. ) {
  15467. this.checkJson[i][z].rightPerson.push(data.name);
  15468. }
  15469. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  15470. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  15471. ? this.checkJson[i][z].checkPerson[
  15472. parseInt(checkL[z])
  15473. ].push(data.name)
  15474. : (this.checkJson[i][z].checkPerson[
  15475. parseInt(checkL[z])
  15476. ] = [data.name]);
  15477. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  15478. ? this.checkJson[i][z].checkCount[
  15479. parseInt(checkL[z])
  15480. ]++
  15481. : (this.checkJson[i][z].checkCount[
  15482. parseInt(checkL[z])
  15483. ] = 1);
  15484. }
  15485. }
  15486. }
  15487. } else if (data.type == 9 && a[i].tool[0] == 47) {
  15488. var checkL = JSON.parse(data.content);
  15489. for (var z = 0; z < checkL.length; z++) {
  15490. if (!this.checkJson[i][z]) {
  15491. this.checkJson[i].push({
  15492. checkCount: [],
  15493. checkPerson: [],
  15494. rightPerson: [],
  15495. });
  15496. }
  15497. this.checkJson[i][z].checkPerson.push(data.name);
  15498. if (
  15499. checkL[z].chooseSenList.toString() ==
  15500. checkL[z].rightAnswer.toString()
  15501. ) {
  15502. this.checkJson[i][z].rightPerson.push(data.name);
  15503. }
  15504. }
  15505. }
  15506. for (var k = 0; k < d.length; k++) {
  15507. //点赞
  15508. if (d[k].workId == b[j].id) {
  15509. likesCount++;
  15510. likeJson.push(d[k])
  15511. if (d[k].likesId == this.userid) {
  15512. isLikes = true;
  15513. }
  15514. }
  15515. }
  15516. for (var l = 0; l < e.length; l++) {
  15517. //评论
  15518. if (e[l].workId == b[j].id) {
  15519. if (e[l].comment != "") {
  15520. commentCount++;
  15521. commentJson.push({
  15522. commentText: e[l].comment,
  15523. commentTime: e[l].commentTime,
  15524. commentPeople: e[l].commentPeople,
  15525. userid: e[l].userid,
  15526. wid: e[l].id,
  15527. });
  15528. }
  15529. }
  15530. }
  15531. if (
  15532. (b[j].type == 1 ||
  15533. b[j].type == 4 ||
  15534. b[j].type == 5 ||
  15535. b[j].type == 6 ||
  15536. b[j].type == 12 ||
  15537. b[j].type == 7) &&
  15538. a[i].tool[0] != 15 &&
  15539. a[i].tool[0] != 4 &&
  15540. a[i].tool[0] != 45 &&
  15541. a[i].tool[0] != 50 &&
  15542. a[i].tool[0] != 32 &&
  15543. a[i].tool[0] != 57 &&
  15544. a[i].tool[0] != 52
  15545. ) {
  15546. if (
  15547. c.indexOf(
  15548. b[j].content
  15549. .split(".")
  15550. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15551. ) != -1 &&
  15552. a[i].tool[0] == 16 &&
  15553. b[j].atool != 50
  15554. ) {
  15555. let _works = {
  15556. userid: b[j].userid,
  15557. ateacher: b[j].ateacher,
  15558. wid: b[j].id,
  15559. works: b[j].content,
  15560. sName: b[j].name,
  15561. type: 1,
  15562. ttype:b[j].ttype,
  15563. time: b[j].time,
  15564. score: b[j].score,
  15565. img: b[j].img,
  15566. likesCount: likesCount,
  15567. commentCount: commentCount,
  15568. isLikes: isLikes,
  15569. commentJson: commentJson,
  15570. likeJson:likeJson
  15571. };
  15572. if (this.isGroup) {
  15573. let isGw = 1;
  15574. for (
  15575. var groupI = 0;
  15576. groupI < this.courseGroup.group.length;
  15577. groupI++
  15578. ) {
  15579. let gid = this.courseGroup.group[groupI].id;
  15580. if (
  15581. this.courseGroupStudentUid[gid].indexOf(
  15582. b[j].userid
  15583. ) != -1
  15584. ) {
  15585. isGw = 2;
  15586. this.courseGroup.group[groupI].works[i].push(_works);
  15587. break;
  15588. }
  15589. }
  15590. if (isGw == 1) {
  15591. _worksStudent[i].push(_works);
  15592. }
  15593. } else {
  15594. _worksStudent[i].push(_works);
  15595. }
  15596. _worksStudent2[i].push(_works);
  15597. this.isWorksS[i].push({
  15598. uid: b[j].userid,
  15599. sName: b[j].name,
  15600. });
  15601. } else if (
  15602. y.indexOf(
  15603. b[j].content
  15604. .split(".")
  15605. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15606. ) != -1 &&
  15607. a[i].tool[0] == 16 &&
  15608. b[j].atool != 50
  15609. ) {
  15610. let _works = {
  15611. userid: b[j].userid,
  15612. ateacher: b[j].ateacher,
  15613. wid: b[j].id,
  15614. works: b[j].content,
  15615. sName: b[j].name,
  15616. type: 3,
  15617. ttype:b[j].ttype,
  15618. time: b[j].time,
  15619. score: b[j].score,
  15620. img: b[j].img,
  15621. likesCount: likesCount,
  15622. commentCount: commentCount,
  15623. isLikes: isLikes,
  15624. commentJson: commentJson,
  15625. likeJson:likeJson
  15626. };
  15627. if (this.isGroup) {
  15628. let isGw = 1;
  15629. for (
  15630. var groupI = 0;
  15631. groupI < this.courseGroup.group.length;
  15632. groupI++
  15633. ) {
  15634. let gid = this.courseGroup.group[groupI].id;
  15635. if (
  15636. this.courseGroupStudentUid[gid].indexOf(
  15637. b[j].userid
  15638. ) != -1
  15639. ) {
  15640. isGw = 2;
  15641. this.courseGroup.group[groupI].works[i].push(_works);
  15642. break;
  15643. }
  15644. }
  15645. if (isGw == 1) {
  15646. _worksStudent[i].push(_works);
  15647. }
  15648. } else {
  15649. _worksStudent[i].push(_works);
  15650. }
  15651. _worksStudent2[i].push(_works);
  15652. this.isWorksS[i].push({
  15653. uid: b[j].userid,
  15654. sName: b[j].name,
  15655. });
  15656. } else if (b[j].type == 6 && b[j].atool != 50) {
  15657. let _works = {
  15658. userid: b[j].userid,
  15659. ateacher: b[j].ateacher,
  15660. wid: b[j].id,
  15661. works: b[j].content,
  15662. sName: b[j].name,
  15663. type: 4,
  15664. ttype:b[j].ttype,
  15665. time: b[j].time,
  15666. score: b[j].score,
  15667. img: b[j].img,
  15668. likesCount: likesCount,
  15669. commentCount: commentCount,
  15670. isLikes: isLikes,
  15671. commentJson: commentJson,
  15672. likeJson:likeJson
  15673. };
  15674. _worksStudent[i].push(_works);
  15675. _worksStudent2[i].push(_works);
  15676. this.isWorksS[i].push({
  15677. uid: b[j].userid,
  15678. sName: b[j].name,
  15679. });
  15680. } else if (b[j].type == 7 && b[j].atool != 50) {
  15681. let _work = {
  15682. userid: b[j].userid,
  15683. ateacher: b[j].ateacher,
  15684. wid: b[j].id,
  15685. works: b[j].content,
  15686. sName: b[j].name,
  15687. type: 5,
  15688. ttype:b[j].ttype,
  15689. time: b[j].time,
  15690. score: b[j].score,
  15691. img: b[j].img,
  15692. likesCount: likesCount,
  15693. commentCount: commentCount,
  15694. isLikes: isLikes,
  15695. commentJson: commentJson,
  15696. likeJson:likeJson
  15697. };
  15698. _worksStudent[i].push(_work);
  15699. _worksStudent2[i].push(_work);
  15700. this.isWorksS[i].push({
  15701. uid: b[j].userid,
  15702. sName: b[j].name,
  15703. });
  15704. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  15705. let _works = {
  15706. userid: b[j].userid,
  15707. ateacher: b[j].ateacher,
  15708. wid: b[j].id,
  15709. works: b[j].content,
  15710. sName: b[j].name,
  15711. type: 12,
  15712. ttype:b[j].ttype,
  15713. time: b[j].time,
  15714. score: b[j].score,
  15715. img: b[j].img,
  15716. likesCount: likesCount,
  15717. commentCount: commentCount,
  15718. isLikes: isLikes,
  15719. commentJson: commentJson,
  15720. likeJson:likeJson
  15721. };
  15722. if (this.isGroup) {
  15723. let isGw = 1;
  15724. for (
  15725. var groupI = 0;
  15726. groupI < this.courseGroup.group.length;
  15727. groupI++
  15728. ) {
  15729. let gid = this.courseGroup.group[groupI].id;
  15730. if (
  15731. this.courseGroupStudentUid[gid].indexOf(
  15732. b[j].userid
  15733. ) != -1
  15734. ) {
  15735. isGw = 2;
  15736. this.courseGroup.group[groupI].works[i].push(_works);
  15737. break;
  15738. }
  15739. }
  15740. if (isGw == 1) {
  15741. _worksStudent[i].push(_works);
  15742. }
  15743. } else {
  15744. _worksStudent[i].push(_works);
  15745. }
  15746. _worksStudent2[i].push(_works);
  15747. this.isWorksS[i].push({
  15748. uid: b[j].userid,
  15749. sName: b[j].name,
  15750. });
  15751. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  15752. let _works = {
  15753. userid: b[j].userid,
  15754. ateacher: b[j].ateacher,
  15755. wid: b[j].id,
  15756. works: b[j].content,
  15757. sName: b[j].name,
  15758. type: 0,
  15759. ttype:b[j].ttype,
  15760. time: b[j].time,
  15761. score: b[j].score,
  15762. img: b[j].img,
  15763. likesCount: likesCount,
  15764. commentCount: commentCount,
  15765. isLikes: isLikes,
  15766. commentJson: commentJson,
  15767. likeJson:likeJson
  15768. };
  15769. if (this.isGroup) {
  15770. let isGw = 1;
  15771. for (
  15772. var groupI = 0;
  15773. groupI < this.courseGroup.group.length;
  15774. groupI++
  15775. ) {
  15776. let gid = this.courseGroup.group[groupI].id;
  15777. if (
  15778. this.courseGroupStudentUid[gid].indexOf(
  15779. b[j].userid
  15780. ) != -1
  15781. ) {
  15782. isGw = 2;
  15783. this.courseGroup.group[groupI].works[i].push(_works);
  15784. break;
  15785. }
  15786. }
  15787. if (isGw == 1) {
  15788. _worksStudent[i].push(_works);
  15789. }
  15790. } else {
  15791. _worksStudent[i].push(_works);
  15792. }
  15793. _worksStudent2[i].push(_works);
  15794. this.isWorksS[i].push({
  15795. uid: b[j].userid,
  15796. sName: b[j].name,
  15797. });
  15798. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  15799. let _works = {
  15800. userid: b[j].userid,
  15801. ateacher: b[j].ateacher,
  15802. wid: b[j].id,
  15803. works: b[j].content,
  15804. sName: b[j].name,
  15805. type: 0,
  15806. ttype:b[j].ttype,
  15807. time: b[j].time,
  15808. score: b[j].score,
  15809. img: b[j].img,
  15810. likesCount: likesCount,
  15811. commentCount: commentCount,
  15812. isLikes: isLikes,
  15813. commentJson: commentJson,
  15814. likeJson:likeJson
  15815. };
  15816. if (this.isGroup) {
  15817. let isGw = 1;
  15818. for (
  15819. var groupI = 0;
  15820. groupI < this.courseGroup.group.length;
  15821. groupI++
  15822. ) {
  15823. let gid = this.courseGroup.group[groupI].id;
  15824. if (
  15825. this.courseGroupStudentUid[gid].indexOf(
  15826. b[j].userid
  15827. ) != -1
  15828. ) {
  15829. isGw = 2;
  15830. this.courseGroup.group[groupI].works[i].push(_works);
  15831. break;
  15832. }
  15833. }
  15834. if (isGw == 1) {
  15835. _worksStudent[i].push(_works);
  15836. }
  15837. } else {
  15838. _worksStudent[i].push(_works);
  15839. }
  15840. _worksStudent2[i].push(_works);
  15841. this.isWorksS[i].push({
  15842. uid: b[j].userid,
  15843. sName: b[j].name,
  15844. });
  15845. }
  15846. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15847. let _works = {
  15848. userid: b[j].userid,
  15849. ateacher: b[j].ateacher,
  15850. wid: b[j].id,
  15851. works: b[j].content,
  15852. sName: b[j].name,
  15853. type: 2,
  15854. ttype:b[j].ttype,
  15855. time: b[j].time,
  15856. score: b[j].score,
  15857. img: b[j].img,
  15858. likesCount: likesCount,
  15859. commentCount: commentCount,
  15860. isLikes: isLikes,
  15861. commentJson: commentJson,
  15862. likeJson:likeJson
  15863. };
  15864. if (this.isGroup) {
  15865. let isGw = 1;
  15866. for (
  15867. var groupI = 0;
  15868. groupI < this.courseGroup.group.length;
  15869. groupI++
  15870. ) {
  15871. let gid = this.courseGroup.group[groupI].id;
  15872. if (
  15873. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15874. -1
  15875. ) {
  15876. isGw = 2;
  15877. this.courseGroup.group[groupI].works[i].push(_works);
  15878. break;
  15879. }
  15880. }
  15881. if (isGw == 1) {
  15882. _worksStudent[i].push(_works);
  15883. }
  15884. } else {
  15885. _worksStudent[i].push(_works);
  15886. }
  15887. _worksStudent2[i].push(_works);
  15888. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15889. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  15890. let _works = {
  15891. userid: b[j].userid,
  15892. ateacher: b[j].ateacher,
  15893. wid: b[j].id,
  15894. works: b[j].content,
  15895. sName: b[j].name,
  15896. type: 20,
  15897. ttype:b[j].ttype,
  15898. time: b[j].time,
  15899. score: b[j].score,
  15900. img: b[j].img,
  15901. likesCount: likesCount,
  15902. commentCount: commentCount,
  15903. isLikes: isLikes,
  15904. commentJson: commentJson,
  15905. likeJson:likeJson
  15906. };
  15907. if (this.isGroup) {
  15908. let isGw = 1;
  15909. for (
  15910. var groupI = 0;
  15911. groupI < this.courseGroup.group.length;
  15912. groupI++
  15913. ) {
  15914. let gid = this.courseGroup.group[groupI].id;
  15915. if (
  15916. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15917. -1
  15918. ) {
  15919. isGw = 2;
  15920. this.courseGroup.group[groupI].works[i].push(_works);
  15921. break;
  15922. }
  15923. }
  15924. if (isGw == 1) {
  15925. _worksStudent[i].push(_works);
  15926. }
  15927. } else {
  15928. _worksStudent[i].push(_works);
  15929. }
  15930. _worksStudent2[i].push(_works);
  15931. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15932. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15933. //问卷
  15934. let _work = {
  15935. userid: b[j].userid,
  15936. ateacher: b[j].ateacher,
  15937. wid: b[j].id,
  15938. works: b[j].content,
  15939. sName: b[j].name,
  15940. type: 2,
  15941. ttype:b[j].ttype,
  15942. time: b[j].time,
  15943. score: b[j].score,
  15944. img: b[j].img,
  15945. likesCount: likesCount,
  15946. commentCount: commentCount,
  15947. isLikes: isLikes,
  15948. commentJson: commentJson,
  15949. likeJson:likeJson
  15950. };
  15951. _worksStudent[i].push(_work);
  15952. _worksStudent2[i].push(_work);
  15953. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15954. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15955. //选择题
  15956. let _work = {
  15957. userid: b[j].userid,
  15958. ateacher: b[j].ateacher,
  15959. wid: b[j].id,
  15960. works: b[j].content,
  15961. sName: b[j].name,
  15962. type: 8,
  15963. ttype:b[j].ttype,
  15964. time: b[j].time,
  15965. score: b[j].score,
  15966. img: b[j].img,
  15967. likesCount: likesCount,
  15968. commentCount: commentCount,
  15969. isLikes: isLikes,
  15970. commentJson: commentJson,
  15971. likeJson:likeJson
  15972. };
  15973. _worksStudent[i].push(_work);
  15974. _worksStudent2[i].push(_work);
  15975. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15976. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15977. //选择题
  15978. let _work = {
  15979. userid: b[j].userid,
  15980. ateacher: b[j].ateacher,
  15981. wid: b[j].id,
  15982. works: b[j].content,
  15983. sName: b[j].name,
  15984. type: 9,
  15985. ttype:b[j].ttype,
  15986. time: b[j].time,
  15987. score: b[j].score,
  15988. img: b[j].img,
  15989. likesCount: likesCount,
  15990. commentCount: commentCount,
  15991. isLikes: isLikes,
  15992. commentJson: commentJson,
  15993. likeJson:likeJson
  15994. };
  15995. _worksStudent[i].push(_work);
  15996. _worksStudent2[i].push(_work);
  15997. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15998. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15999. //选择题
  16000. let _work = {
  16001. userid: b[j].userid,
  16002. ateacher: b[j].ateacher,
  16003. wid: b[j].id,
  16004. works: b[j].content,
  16005. sName: b[j].name,
  16006. type: 10,
  16007. ttype:b[j].ttype,
  16008. time: b[j].time,
  16009. score: b[j].score,
  16010. img: b[j].img,
  16011. likesCount: likesCount,
  16012. commentCount: commentCount,
  16013. isLikes: isLikes,
  16014. commentJson: commentJson,
  16015. likeJson:likeJson
  16016. };
  16017. _worksStudent[i].push(_work);
  16018. _worksStudent2[i].push(_work);
  16019. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16020. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  16021. //选择题
  16022. let _work = {
  16023. userid: b[j].userid,
  16024. ateacher: b[j].ateacher,
  16025. wid: b[j].id,
  16026. works: b[j].content,
  16027. sName: b[j].name,
  16028. type: 13,
  16029. ttype:b[j].ttype,
  16030. time: b[j].time,
  16031. score: b[j].score,
  16032. img: b[j].img,
  16033. likesCount: likesCount,
  16034. commentCount: commentCount,
  16035. isLikes: isLikes,
  16036. commentJson: commentJson,
  16037. likeJson:likeJson
  16038. };
  16039. _worksStudent[i].push(_work);
  16040. _worksStudent2[i].push(_work);
  16041. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16042. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  16043. //选择题
  16044. let _work = {
  16045. userid: b[j].userid,
  16046. ateacher: b[j].ateacher,
  16047. wid: b[j].id,
  16048. works: b[j].content,
  16049. sName: b[j].name,
  16050. type: 16,
  16051. ttype:b[j].ttype,
  16052. time: b[j].time,
  16053. score: b[j].score,
  16054. img: b[j].img,
  16055. likesCount: likesCount,
  16056. commentCount: commentCount,
  16057. isLikes: isLikes,
  16058. commentJson: commentJson,
  16059. aiCode: b[j].aiCode,
  16060. teacherCode: b[j].teacherCode,
  16061. likeJson:likeJson
  16062. };
  16063. _worksStudent[i].push(_work);
  16064. _worksStudent2[i].push(_work);
  16065. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16066. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  16067. //英语口语
  16068. let _work = {
  16069. userid: b[j].userid,
  16070. ateacher: b[j].ateacher,
  16071. wid: b[j].id,
  16072. works: b[j].content,
  16073. sName: b[j].name,
  16074. type: 17,
  16075. ttype:b[j].ttype,
  16076. time: b[j].time,
  16077. score: b[j].score,
  16078. img: b[j].img,
  16079. likesCount: likesCount,
  16080. commentCount: commentCount,
  16081. isLikes: isLikes,
  16082. commentJson: commentJson,
  16083. likeJson:likeJson
  16084. };
  16085. _worksStudent[i].push(_work);
  16086. _worksStudent2[i].push(_work);
  16087. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16088. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  16089. //交互视频
  16090. let _work = {
  16091. userid: b[j].userid,
  16092. ateacher: b[j].ateacher,
  16093. wid: b[j].id,
  16094. works: b[j].content,
  16095. sName: b[j].name,
  16096. type: 14,
  16097. ttype:b[j].ttype,
  16098. time: b[j].time,
  16099. score: b[j].score,
  16100. img: b[j].img,
  16101. likesCount: likesCount,
  16102. commentCount: commentCount,
  16103. isLikes: isLikes,
  16104. commentJson: commentJson,
  16105. likeJson:likeJson
  16106. };
  16107. _worksStudent[i].push(_work);
  16108. _worksStudent2[i].push(_work);
  16109. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16110. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  16111. let _gindex = JSON.parse(b[j].content);
  16112. if (
  16113. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  16114. b[j].userid
  16115. ) != -1
  16116. ) {
  16117. let _work = {
  16118. userid: b[j].userid,
  16119. ateacher: b[j].ateacher,
  16120. wid: b[j].id,
  16121. works: _gindex.url,
  16122. sName: b[j].name,
  16123. type: _gindex.type,
  16124. ttype:b[j].ttype,
  16125. time: b[j].time,
  16126. score: b[j].score,
  16127. img: b[j].img,
  16128. likesCount: likesCount,
  16129. commentCount: commentCount,
  16130. isLikes: isLikes,
  16131. commentJson: commentJson,
  16132. likeJson:likeJson
  16133. };
  16134. _worksStudent[i][_gindex.groupIndex].push(_work);
  16135. _worksStudent2[i][_gindex.groupIndex].push(_work);
  16136. }
  16137. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16138. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  16139. let _work = {
  16140. userid: b[j].userid,
  16141. ateacher: b[j].ateacher,
  16142. wid: b[j].id,
  16143. works: b[j].content,
  16144. sName: b[j].name ? b[j].name : b[j].userid,
  16145. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  16146. ttype:b[j].ttype,
  16147. time: b[j].time,
  16148. score: b[j].score,
  16149. img: b[j].img,
  16150. likesCount: likesCount,
  16151. commentCount: commentCount,
  16152. isLikes: isLikes,
  16153. commentJson: commentJson,
  16154. likeJson:likeJson
  16155. };
  16156. _worksStudent[i].push(_work);
  16157. _worksStudent2[i].push(_work);
  16158. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16159. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  16160. let _work = {
  16161. userid: b[j].userid,
  16162. ateacher: b[j].ateacher,
  16163. wid: b[j].id,
  16164. works: b[j].content,
  16165. sName: b[j].name ? b[j].name : b[j].userid,
  16166. type: 12,
  16167. ttype:b[j].ttype,
  16168. time: b[j].time,
  16169. score: b[j].score,
  16170. img: b[j].img,
  16171. likesCount: likesCount,
  16172. commentCount: commentCount,
  16173. isLikes: isLikes,
  16174. commentJson: commentJson,
  16175. likeJson:likeJson
  16176. };
  16177. _worksStudent[i].push(_work);
  16178. _worksStudent2[i].push(_work);
  16179. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16180. } else if (
  16181. a[i].tool[0] == 57 &&
  16182. b[j].atool == 57 &&
  16183. b[j].type == 12
  16184. ) {
  16185. let _work = {
  16186. userid: b[j].userid,
  16187. ateacher: b[j].ateacher,
  16188. wid: b[j].id,
  16189. works: b[j].content,
  16190. sName: b[j].name ? b[j].name : b[j].userid,
  16191. type: 12,
  16192. ttype:b[j].ttype,
  16193. time: b[j].time,
  16194. score: b[j].score,
  16195. img: b[j].img,
  16196. likesCount: likesCount,
  16197. commentCount: commentCount,
  16198. isLikes: isLikes,
  16199. commentJson: commentJson,
  16200. likeJson:likeJson
  16201. };
  16202. _worksStudent[i].push(_work);
  16203. _worksStudent2[i].push(_work);
  16204. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16205. } else if (
  16206. a[i].tool[0] == 57 &&
  16207. b[j].atool == 57 &&
  16208. b[j].type == 15
  16209. ) {
  16210. let _work = {
  16211. userid: b[j].userid,
  16212. ateacher: b[j].ateacher,
  16213. wid: b[j].id,
  16214. works: b[j].content,
  16215. sName: b[j].name ? b[j].name : b[j].userid,
  16216. type: 15,
  16217. ttype:b[j].ttype,
  16218. time: b[j].time,
  16219. score: b[j].score,
  16220. img: b[j].img,
  16221. likesCount: likesCount,
  16222. commentCount: commentCount,
  16223. isLikes: isLikes,
  16224. commentJson: commentJson,
  16225. likeJson:likeJson
  16226. };
  16227. _worksStudent[i].push(_work);
  16228. _worksStudent2[i].push(_work);
  16229. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16230. }
  16231. }
  16232. }
  16233. if (_worksStudent[i] && _worksStudent[i].length) {
  16234. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  16235. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  16236. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  16237. var scoreA = parseFloat(jscoreA);
  16238. var scoreB = parseFloat(jscoreB);
  16239. if (scoreA == scoreB) {
  16240. return b.likesCount - a.likesCount;
  16241. }
  16242. return scoreB - scoreA;
  16243. });
  16244. if (this.isGroup) {
  16245. for (
  16246. var groupI = 0;
  16247. groupI < this.courseGroup.group.length;
  16248. groupI++
  16249. ) {
  16250. this.courseGroup.group[groupI].works[i] =
  16251. this.courseGroup.group[groupI].works[i].sort(function (
  16252. a,
  16253. b
  16254. ) {
  16255. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  16256. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  16257. var scoreA = parseFloat(jscoreA);
  16258. var scoreB = parseFloat(jscoreB);
  16259. if (scoreA == scoreB) {
  16260. return b.likesCount - a.likesCount;
  16261. }
  16262. return scoreB - scoreA;
  16263. });
  16264. }
  16265. }
  16266. }
  16267. }
  16268. this.timeWorkList = _worksStudent2;
  16269. for (var i = 0; i < a.length; i++) {
  16270. for (var j = 0; j < b.length; j++) {
  16271. var data = b[j];
  16272. if (i == b[j].tool) {
  16273. if (data.type == 2 || data.type == 8) {
  16274. for (var z = 0; z < this.checkJson[i].length; z++) {
  16275. this.checkJson[i][z].checkPerent = [];
  16276. this.checkJson[i][z].right = Math.round(
  16277. (this.checkJson[i][z].rightPerson.length /
  16278. parseInt(_worksStudent[i].length)) *
  16279. 100
  16280. );
  16281. let aaaa = this.checkJson[i][z];
  16282. for (
  16283. var k = 0;
  16284. k < this.checkJson[i][z].checkCount.length;
  16285. k++
  16286. ) {
  16287. this.checkJson[i][z].checkPerent.push(
  16288. Math.round(
  16289. (this.checkJson[i][z].checkCount[k] /
  16290. parseInt(_worksStudent[i].length)) *
  16291. 100
  16292. )
  16293. );
  16294. }
  16295. }
  16296. } else if (data.type == 9) {
  16297. for (var z = 0; z < this.checkJson[i].length; z++) {
  16298. this.checkJson[i][z].checkPerent = [];
  16299. this.checkJson[i][z].right = Math.round(
  16300. (this.checkJson[i][z].rightPerson.length /
  16301. this.checkJson[i][z].checkPerson.length) *
  16302. 100
  16303. );
  16304. }
  16305. }
  16306. }
  16307. }
  16308. }
  16309. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  16310. this.joinGroup(gindex);
  16311. }
  16312. this.worksStudent = _worksStudent;
  16313. this.selectWorksStudent();
  16314. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  16315. this.$nextTick(()=>{
  16316. setTimeout(()=>{
  16317. setTimeout(()=>{
  16318. this.panToolHeight('tool-'+ci);
  16319. }, 500)
  16320. }, 0)
  16321. })
  16322. }
  16323. this.selectSWorksLoading = false
  16324. })
  16325. .catch((err) => {
  16326. this.selectSWorksLoading = false
  16327. console.error(err);
  16328. });
  16329. },
  16330. pngToWhiteBg(file) {
  16331. const _file = file;
  16332. let read = new FileReader();
  16333. read.readAsDataURL(file); // 文件转base64
  16334. return new Promise((resolve, reject) => {
  16335. read.onload = (e) => {
  16336. let img = new Image();
  16337. img.src = e.target.result;
  16338. img.onload = async () => {
  16339. // 生成canvas
  16340. let canvas = document.createElement("canvas");
  16341. let context = canvas.getContext("2d");
  16342. // 绘制图片到canvas上
  16343. canvas.width = img.width;
  16344. canvas.height = img.height;
  16345. // 在canvas绘制前填充白色背景
  16346. context.fillStyle = "#fff";
  16347. context.fillRect(0, 0, canvas.width, canvas.height);
  16348. context.drawImage(img, 0, 0);
  16349. let base64 = canvas.toDataURL(file["type"], 1);
  16350. let newFile = this.dataUrlToFile(base64, _file);
  16351. resolve(newFile);
  16352. };
  16353. };
  16354. });
  16355. },
  16356. dataUrlToFile(dataurl, file) {
  16357. let arr = dataurl.split(","),
  16358. mime = arr[0].match(/:(.*?);/)[1],
  16359. bstr = atob(arr[1]),
  16360. n = bstr.length,
  16361. u8arr = new Uint8Array(n);
  16362. while (n--) {
  16363. u8arr[n] = bstr.charCodeAt(n);
  16364. }
  16365. // return new Blob([u8arr], { type: mime });
  16366. return new File([new Blob([u8arr], { type: mime })], file.name, {
  16367. type: mime,
  16368. });
  16369. },
  16370. async beforeUpload1(event, type, i) {
  16371. // this.$message.success('进入上传')
  16372. var file = "";
  16373. if (type == 5) {
  16374. file = event;
  16375. } else {
  16376. file = event.target.files[0];
  16377. }
  16378. var credentials = {
  16379. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16380. secretAccessKey: "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",
  16381. }; //秘钥形式的登录上传
  16382. window.AWS.config.update(credentials);
  16383. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16384. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16385. var _this = this;
  16386. _this.progress = 0;
  16387. _this.proVisible = true;
  16388. _this.isFinishSize = 0;
  16389. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  16390. var b = [
  16391. "DOC",
  16392. "DOCX",
  16393. "DOCM",
  16394. "DOTM",
  16395. "DOTX",
  16396. "PPTX",
  16397. "PPSX",
  16398. "PPT",
  16399. "PPS",
  16400. "PPTM",
  16401. "POTM",
  16402. "PPAM",
  16403. "POTX",
  16404. "PPSM",
  16405. ];
  16406. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16407. var photoA = [
  16408. "BMP",
  16409. "GIF",
  16410. "PNG",
  16411. "JPEG",
  16412. "JPEG",
  16413. "JPG",
  16414. "TIF",
  16415. "PCX",
  16416. "TGA",
  16417. "EXIF",
  16418. "FPX",
  16419. "SVG",
  16420. "APNG",
  16421. ];
  16422. // if (
  16423. // b.indexOf(
  16424. // file.name
  16425. // .split(".")
  16426. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16427. // ) != -1
  16428. // ) {
  16429. // if (file.size / 1024 / 1024 > 10) {
  16430. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  16431. // return;
  16432. // }
  16433. // } else if (
  16434. // excelA.indexOf(
  16435. // file.name
  16436. // .split(".")
  16437. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16438. // ) != "-1"
  16439. // ) {
  16440. // if (file.size / 1024 / 1024 > 5) {
  16441. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  16442. // return;
  16443. // }
  16444. // }
  16445. if (
  16446. photoA.indexOf(
  16447. file.name
  16448. .split(".")
  16449. [file.name.split(".").length - 1].toLocaleUpperCase()
  16450. ) != -1 &&
  16451. type != 4
  16452. ) {
  16453. // const blob = await imageConversion.compress(file, 0.8)
  16454. file = await this.pngToWhiteBg(file);
  16455. const blob = await imageConversion.compressAccurately(file, 256);
  16456. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16457. file = new File([blob], file.name, { type: file.type });
  16458. }
  16459. if (file) {
  16460. var params = {
  16461. Key:
  16462. file.name.split(".")[0] +
  16463. new Date().getTime() +
  16464. "." +
  16465. file.name.split(".")[file.name.split(".").length - 1],
  16466. ContentType: file.type,
  16467. Body: file,
  16468. "Access-Control-Allow-Credentials": "*",
  16469. ACL: "public-read",
  16470. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16471. var options = {
  16472. // partSize: 2048 * 1024 * 1024,
  16473. partSize: 1024 * 1024 * 1024,
  16474. queueSize: 2,
  16475. leavePartsOnError: true,
  16476. };
  16477. bucket
  16478. .upload(params, options)
  16479. .on("httpUploadProgress", function (evt) {
  16480. //这里可以写进度条
  16481. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16482. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  16483. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  16484. })
  16485. .send(function (err, data) {
  16486. _this.progress = 100;
  16487. _this.isFinishSize = _this.isAllSize;
  16488. setTimeout(() => {
  16489. _this.proVisible = false;
  16490. }, 1000);
  16491. if (err) {
  16492. var a = _this.$refs.upload1.uploadFiles;
  16493. a.splice(a.length - 1, a.length);
  16494. _this.$message.error("上传失败");
  16495. } else {
  16496. // _this.$message.success('上传成功')
  16497. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16498. var c = [
  16499. "AVI",
  16500. "NAVI",
  16501. "MPEG",
  16502. "ASF",
  16503. "MOV",
  16504. "WMV",
  16505. "3GP",
  16506. "RM",
  16507. "RMVB",
  16508. "FLV",
  16509. "F4V",
  16510. "H.264",
  16511. "H.265",
  16512. "REAL VIDEO",
  16513. "MKV",
  16514. "WebM",
  16515. "HDDVD",
  16516. "MP4",
  16517. "MPG",
  16518. "M4V",
  16519. "MGV",
  16520. "OGV",
  16521. "QTM",
  16522. "STR",
  16523. "AMC",
  16524. "DVX",
  16525. "EVO",
  16526. "DAT",
  16527. "OGG",
  16528. "OGM",
  16529. ];
  16530. if (type == 1) {
  16531. _this.studyJuri[0].cover.push({
  16532. name: file.name,
  16533. url: data.Location,
  16534. uid: file.uid,
  16535. });
  16536. if (
  16537. c.indexOf(
  16538. _this.studyJuri[0].cover[0].url
  16539. .split(".")
  16540. [
  16541. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16542. ].toLocaleUpperCase()
  16543. ) != -1
  16544. ) {
  16545. _this.fileType = 2;
  16546. } else if (
  16547. b.indexOf(
  16548. _this.studyJuri[0].cover[0].url
  16549. .split(".")
  16550. [
  16551. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16552. ].toLocaleUpperCase()
  16553. ) != -1
  16554. ) {
  16555. _this.fileType = 1;
  16556. } else if (
  16557. photoA.indexOf(
  16558. _this.studyJuri[0].cover[0].url
  16559. .split(".")
  16560. [
  16561. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16562. ].toLocaleUpperCase()
  16563. ) != -1
  16564. ) {
  16565. _this.fileType = 0;
  16566. } else {
  16567. _this.fileType = 3;
  16568. }
  16569. _this.imgChange(null, null, type);
  16570. } else if (type == 2) {
  16571. _this.upToolImg = data.Location;
  16572. _this.imgChange(null, null, type);
  16573. _this.addCourseWorks(i);
  16574. } else if (type == 4) {
  16575. _this.addPz("3", data.Location);
  16576. } else if (type == 5) {
  16577. _this.addImgDrawImG(data.Location);
  16578. } else if (type == 6) {
  16579. var _ftype = 1;
  16580. if (
  16581. c.indexOf(
  16582. data.Location.split(".")[
  16583. data.Location.split(".").length - 1
  16584. ].toLocaleUpperCase()
  16585. ) != -1
  16586. ) {
  16587. _ftype = 5;
  16588. } else if (
  16589. b.indexOf(
  16590. data.Location.split(".")[
  16591. data.Location.split(".").length - 1
  16592. ].toLocaleUpperCase()
  16593. ) != -1
  16594. ) {
  16595. _ftype = 4;
  16596. } else {
  16597. _ftype = 1;
  16598. }
  16599. _this.plworkFile.push({
  16600. name: file.name,
  16601. url: data.Location,
  16602. uid: file.uid,
  16603. fileType: _ftype,
  16604. username:
  16605. _this.plworkFile.length > 10
  16606. ? _this.plworkFile.length + 1
  16607. : "0" + (_this.plworkFile.length + 1),
  16608. });
  16609. } else if (type == 7) {
  16610. _this.addCourseWorksGong(i, data.Location, 32);
  16611. } else if (type == 8) {
  16612. _this.addCourseWorksGong(i, data.Location, 57);
  16613. }
  16614. _this.imgChange(null, null, type);
  16615. console.log(data.Location);
  16616. // _this.$message.success('上传成功'+data.Location)
  16617. }
  16618. });
  16619. }
  16620. },
  16621. async beforeUpload3(event, type, i) {
  16622. // this.$message.success('进入上传')
  16623. let file = "";
  16624. let cfindex2 = 0;
  16625. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  16626. file = event.target.files[cfindex];
  16627. var credentials = {
  16628. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16629. secretAccessKey: "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",
  16630. }; //秘钥形式的登录上传
  16631. window.AWS.config.update(credentials);
  16632. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16633. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16634. var _this = this;
  16635. // _this.progress = 0;
  16636. _this.proVisible2 = true;
  16637. var b = [
  16638. "DOC",
  16639. "DOCX",
  16640. "DOCM",
  16641. "DOTM",
  16642. "DOTX",
  16643. "PPTX",
  16644. "PPSX",
  16645. "PPT",
  16646. "PPS",
  16647. "PPTM",
  16648. "POTM",
  16649. "PPAM",
  16650. "POTX",
  16651. "PPSM",
  16652. ];
  16653. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16654. var photoA = [
  16655. "BMP",
  16656. "GIF",
  16657. "PNG",
  16658. "JPEG",
  16659. "JPG",
  16660. "TIF",
  16661. "PCX",
  16662. "TGA",
  16663. "EXIF",
  16664. "FPX",
  16665. "SVG",
  16666. "APNG",
  16667. ];
  16668. if (
  16669. photoA.indexOf(
  16670. file.name
  16671. .split(".")
  16672. [file.name.split(".").length - 1].toLocaleUpperCase()
  16673. ) != -1 &&
  16674. type != 4
  16675. ) {
  16676. // const blob = await imageConversion.compress(file, 0.8)
  16677. file = await this.pngToWhiteBg(file);
  16678. const blob = await imageConversion.compressAccurately(file, 256);
  16679. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16680. file = new File([blob], file.name, { type: file.type });
  16681. }
  16682. if (file) {
  16683. var params = {
  16684. Key:
  16685. file.name.split(".")[0] +
  16686. new Date().getTime() +
  16687. "." +
  16688. file.name.split(".")[file.name.split(".").length - 1],
  16689. ContentType: file.type,
  16690. Body: file,
  16691. "Access-Control-Allow-Credentials": "*",
  16692. ACL: "public-read",
  16693. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16694. var options = {
  16695. // partSize: 2048 * 1024 * 1024,
  16696. partSize: 1024 * 1024 * 1024,
  16697. queueSize: 2,
  16698. leavePartsOnError: true,
  16699. };
  16700. bucket
  16701. .upload(params, options)
  16702. .on("httpUploadProgress", function (evt) {
  16703. //这里可以写进度条
  16704. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16705. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16706. })
  16707. .send(function (err, data) {
  16708. // _this.progress = 100;
  16709. cfindex2++;
  16710. setTimeout(() => {
  16711. if (
  16712. cfindex2 == event.target.files.length - 1 ||
  16713. cfindex2 > event.target.files.length - 1
  16714. ) {
  16715. _this.proVisible2 = false;
  16716. }
  16717. }, 1000);
  16718. if (err) {
  16719. var a = _this.$refs.upload1.uploadFiles;
  16720. a.splice(a.length - 1, a.length);
  16721. _this.$message.error("上传失败");
  16722. } else {
  16723. // _this.$message.success('上传成功')
  16724. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16725. var c = [
  16726. "AVI",
  16727. "NAVI",
  16728. "MPEG",
  16729. "ASF",
  16730. "MOV",
  16731. "WMV",
  16732. "3GP",
  16733. "RM",
  16734. "RMVB",
  16735. "FLV",
  16736. "F4V",
  16737. "H.264",
  16738. "H.265",
  16739. "REAL VIDEO",
  16740. "MKV",
  16741. "WebM",
  16742. "HDDVD",
  16743. "MP4",
  16744. "MPG",
  16745. "M4V",
  16746. "MGV",
  16747. "OGV",
  16748. "QTM",
  16749. "STR",
  16750. "AMC",
  16751. "DVX",
  16752. "EVO",
  16753. "DAT",
  16754. "OGG",
  16755. "OGM",
  16756. ];
  16757. if (type == 1) {
  16758. _this.studyJuri[0].cover.push({
  16759. name: file.name,
  16760. url: data.Location,
  16761. uid: file.uid,
  16762. });
  16763. if (
  16764. c.indexOf(
  16765. _this.studyJuri[0].cover[0].url
  16766. .split(".")
  16767. [
  16768. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16769. ].toLocaleUpperCase()
  16770. ) != -1
  16771. ) {
  16772. _this.fileType = 2;
  16773. } else if (
  16774. b.indexOf(
  16775. _this.studyJuri[0].cover[0].url
  16776. .split(".")
  16777. [
  16778. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16779. ].toLocaleUpperCase()
  16780. ) != -1
  16781. ) {
  16782. _this.fileType = 1;
  16783. } else {
  16784. _this.fileType = 0;
  16785. }
  16786. _this.imgChange(null, null, type);
  16787. } else if (type == 2) {
  16788. _this.upToolImg = data.Location;
  16789. _this.imgChange(null, null, type);
  16790. _this.addCourseWorks(i);
  16791. } else if (type == 4) {
  16792. _this.addPz("3", data.Location);
  16793. } else if (type == 5) {
  16794. _this.addImgDrawImG(data.Location);
  16795. } else if (type == 6) {
  16796. var _ftype = 1;
  16797. if (
  16798. c.indexOf(
  16799. data.Location.split(".")[
  16800. data.Location.split(".").length - 1
  16801. ].toLocaleUpperCase()
  16802. ) != -1
  16803. ) {
  16804. _ftype = 5;
  16805. } else if (
  16806. b.indexOf(
  16807. data.Location.split(".")[
  16808. data.Location.split(".").length - 1
  16809. ].toLocaleUpperCase()
  16810. ) != -1
  16811. ) {
  16812. _ftype = 4;
  16813. } else {
  16814. _ftype = 1;
  16815. }
  16816. _this.plworkFile.push({
  16817. name: file.name,
  16818. url: data.Location,
  16819. uid: file.uid,
  16820. fileType: _ftype,
  16821. username:
  16822. _this.plworkFile.length + 1 > 9
  16823. ? _this.plworkFile.length + 1
  16824. : "0" + (_this.plworkFile.length + 1),
  16825. });
  16826. }
  16827. _this.imgChange(null, null, type);
  16828. console.log(data.Location);
  16829. // _this.$message.success('上传成功'+data.Location)
  16830. }
  16831. });
  16832. }
  16833. }
  16834. },
  16835. beforeUpload2(event, type) {
  16836. var file = event.target.files[0];
  16837. var credentials = {
  16838. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16839. secretAccessKey: "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",
  16840. }; //秘钥形式的登录上传
  16841. window.AWS.config.update(credentials);
  16842. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16843. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16844. var _this = this;
  16845. _this.progress = 0;
  16846. _this.proVisible = true;
  16847. if (file) {
  16848. var params = {
  16849. Key:
  16850. file.name.split(".")[0] +
  16851. new Date().getTime() +
  16852. "." +
  16853. file.name.split(".")[file.name.split(".").length - 1],
  16854. ContentType: file.type,
  16855. Body: file,
  16856. "Access-Control-Allow-Credentials": "*",
  16857. ACL: "public-read",
  16858. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16859. var options = {
  16860. partSize: 2048 * 1024 * 1024,
  16861. queueSize: 2,
  16862. leavePartsOnError: true,
  16863. };
  16864. bucket
  16865. .upload(params, options)
  16866. .on("httpUploadProgress", function (evt) {
  16867. //这里可以写进度条
  16868. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16869. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16870. })
  16871. .send(function (err, data) {
  16872. _this.progress = 100;
  16873. setTimeout(() => {
  16874. _this.proVisible = false;
  16875. }, 1000);
  16876. if (err) {
  16877. var a = _this.$refs.upload1.uploadFiles;
  16878. a.splice(a.length - 1, a.length);
  16879. _this.$message.error("上传失败");
  16880. } else {
  16881. if (type == 2) {
  16882. _this.studyJuri[0].upVedio.push({
  16883. name: file.name,
  16884. url: data.Location,
  16885. uid: file.uid,
  16886. });
  16887. _this.imgChange(null, null, type);
  16888. } else if (type == 3) {
  16889. _this.studyJuri[0].upFile.push({
  16890. name: file.name,
  16891. url: data.Location,
  16892. uid: file.uid,
  16893. });
  16894. _this.imgChange(null, null, type);
  16895. }
  16896. console.log(data.Location);
  16897. }
  16898. });
  16899. }
  16900. },
  16901. allScrell() {
  16902. window.topU.postMessage({ allScreen: this.screenType }, "*");
  16903. },
  16904. nextOrpreSteps(t) {
  16905. if (this.IsFollow && this.tType == 2) {
  16906. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16907. return;
  16908. }
  16909. var b = this.chapInfoList.length - 1;
  16910. if (t == 0) {
  16911. if (this.courseType == 0) {
  16912. if (this.taskCount == 0) {
  16913. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16914. if (this.IsLookOpen) {
  16915. if (
  16916. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16917. ) {
  16918. if (
  16919. this.courseDetail.userid != this.userid &&
  16920. (!this.courseDetail.course_teacher ||
  16921. (this.courseDetail.course_teacher &&
  16922. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16923. ) {
  16924. this.$message.error("任务未解锁");
  16925. } else {
  16926. this.$message.error("上一任务未解锁");
  16927. }
  16928. return;
  16929. }
  16930. }
  16931. this.navList[this.courseType].isOpen = false;
  16932. this.courseType = b;
  16933. this.taskCount =
  16934. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16935. .length - 1;
  16936. this.navList[this.courseType].isOpen = true;
  16937. } else {
  16938. this.taskCount--;
  16939. }
  16940. } else {
  16941. if (this.taskCount == 0) {
  16942. this.navList[this.courseType].isOpen = false;
  16943. this.courseType--;
  16944. this.taskCount =
  16945. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16946. .length - 1;
  16947. this.navList[this.courseType].isOpen = true;
  16948. } else {
  16949. this.taskCount--;
  16950. }
  16951. }
  16952. } else {
  16953. if (this.courseType == b) {
  16954. if (
  16955. this.taskCount ==
  16956. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16957. 1
  16958. ) {
  16959. this.navList[this.courseType].isOpen = false;
  16960. this.courseType = 0;
  16961. this.taskCount = 0;
  16962. this.navList[this.courseType].isOpen = true;
  16963. } else {
  16964. var bbb = parseInt(this.taskCount) + 1;
  16965. if (
  16966. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16967. .isLook &&
  16968. this.courseDetail.userid != this.userid &&
  16969. (!this.courseDetail.course_teacher ||
  16970. (this.courseDetail.course_teacher &&
  16971. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16972. this.IsLookOpen
  16973. ) {
  16974. this.$message.error("任务未解锁");
  16975. return;
  16976. }
  16977. this.taskCount++;
  16978. if (this.IsLookOpen) {
  16979. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16980. this.taskCount
  16981. ].isLook = true;
  16982. this.addCourseState(3);
  16983. }
  16984. }
  16985. } else {
  16986. if (
  16987. this.taskCount ==
  16988. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16989. 1
  16990. ) {
  16991. var bbb = parseInt(this.courseType) + 1;
  16992. if (
  16993. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16994. this.courseDetail.userid != this.userid &&
  16995. (!this.courseDetail.course_teacher ||
  16996. (this.courseDetail.course_teacher &&
  16997. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16998. this.IsLookOpen
  16999. ) {
  17000. this.$message.error("任务未解锁");
  17001. return;
  17002. }
  17003. this.navList[this.courseType].isOpen = false;
  17004. this.courseType++;
  17005. this.taskCount = 0;
  17006. this.navList[this.courseType].isOpen = true;
  17007. } else {
  17008. var bbb = parseInt(this.taskCount) + 1;
  17009. if (
  17010. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  17011. .isLook &&
  17012. this.courseDetail.userid != this.userid &&
  17013. (!this.courseDetail.course_teacher ||
  17014. (this.courseDetail.course_teacher &&
  17015. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  17016. this.IsLookOpen
  17017. ) {
  17018. this.$message.error("任务未解锁");
  17019. return;
  17020. }
  17021. this.taskCount++;
  17022. }
  17023. if (this.IsLookOpen) {
  17024. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17025. this.taskCount
  17026. ].isLook = true;
  17027. this.addCourseState(3);
  17028. }
  17029. }
  17030. // if (
  17031. // this.taskCount ==
  17032. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  17033. // ) {
  17034. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  17035. // } else {
  17036. // this.taskCount++;
  17037. // }
  17038. }
  17039. document.scrollingElement.scrollTop = 0;
  17040. // this.showType = 7;
  17041. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17042. // if (this.vedio[this.taskCount].length > 0) {
  17043. // var a =
  17044. // document.getElementsByClassName("box_course")[this.taskCount]
  17045. // .offsetHeight;
  17046. // document.getElementsByClassName("vedioList")[
  17047. // this.taskCount
  17048. // ].style.height = a + "px";
  17049. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  17050. // a - 40 + "px";
  17051. // }
  17052. this.isNoHomeWork = false;
  17053. (this.studyJuri = [
  17054. {
  17055. content: "",
  17056. cover: [],
  17057. upVedio: [],
  17058. upFile: [],
  17059. },
  17060. ]),
  17061. (this.radio = []);
  17062. this.isClickNav = "";
  17063. this.selectPz();
  17064. this.getHomeWork();
  17065. this.getCourseDetail(2);
  17066. this.$forceUpdate();
  17067. if ((this.courseDetail.userid == this.userid ||
  17068. (this.courseDetail.course_teacher &&
  17069. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  17070. this.setCTask();
  17071. }
  17072. },
  17073. openTask(s, n, i) {
  17074. if (this.IsFollow && this.tType == 2) {
  17075. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  17076. return;
  17077. }
  17078. if (this.IsLookOpen &&
  17079. this.courseDetail.userid != this.userid &&
  17080. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  17081. if (
  17082. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  17083. this.courseDetail.userid != this.userid &&
  17084. (!this.courseDetail.course_teacher ||
  17085. (this.courseDetail.course_teacher &&
  17086. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  17087. ) {
  17088. this.$message.error("任务未解锁");
  17089. return;
  17090. }
  17091. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  17092. if (
  17093. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  17094. .isLook
  17095. ) {
  17096. this.$message.error("上一任务未解锁");
  17097. return;
  17098. }
  17099. } else if (s > this.courseType) {
  17100. if (n > 0) {
  17101. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  17102. this.$message.error("上一任务未解锁");
  17103. return;
  17104. }
  17105. } else {
  17106. if (
  17107. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  17108. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  17109. ].isLook
  17110. ) {
  17111. this.$message.error("上一任务未解锁");
  17112. return;
  17113. }
  17114. }
  17115. }
  17116. }
  17117. if (this.navList[s].task[n].isOpen == true) {
  17118. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  17119. return;
  17120. }
  17121. let flag = this.courseType==s;
  17122. this.courseType = s;
  17123. this.navId = i;
  17124. this.taskCount = n;
  17125. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  17126. this.navList[this.courseType].task[this.taskCount].isOpen =
  17127. !this.navList[this.courseType].task[this.taskCount].isOpen;
  17128. if (this.IsLookOpen) {
  17129. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17130. this.taskCount
  17131. ].isLook = true;
  17132. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  17133. this.addCourseState(3,yym);
  17134. }
  17135. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  17136. this.isCloseList[ci].isClose = 0;
  17137. this.isCloseList[ci].isCloseBoolean = false;
  17138. this.$nextTick(()=>{
  17139. setTimeout(()=>{
  17140. setTimeout(()=>{
  17141. this.panToolHeight('tool-'+ci);
  17142. }, 0)
  17143. }, 0)
  17144. })
  17145. }
  17146. // this.showType = 7;
  17147. this.isNoHomeWork = false;
  17148. (this.studyJuri = [
  17149. {
  17150. content: "",
  17151. cover: [],
  17152. upVedio: [],
  17153. upFile: [],
  17154. },
  17155. ]),
  17156. (this.radio = []);
  17157. document.scrollingElement.scrollTop = 0;
  17158. // setTimeout(() => {
  17159. // let a = document.getElementById(i);
  17160. // if (a.offsetTop - 110 == 0) {
  17161. // window.scrollTo(0, 0);
  17162. // } else {
  17163. // window.scrollTo(0, a.offsetTop);
  17164. // }
  17165. // }, 0);
  17166. for (var z = 0; z < this.navList.length; z++) {
  17167. for (var q = 0; q < this.navList[z].task.length; q++) {
  17168. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  17169. this.navList[z].task[q].tool[w].isTool = false;
  17170. }
  17171. }
  17172. }
  17173. this.selectPz();
  17174. this.getHomeWork();
  17175. this.getCourseDetail(2);
  17176. if ((this.courseDetail.userid == this.userid ||
  17177. (this.courseDetail.course_teacher &&
  17178. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  17179. this.setCTask();
  17180. }
  17181. if(flag){
  17182. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  17183. }else{
  17184. this.insertMemorandum(`进入<span class="variable">阶段${s+1}${this.navList[s].dyName?':'+this.navList[s].dyName:''}</span>→<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  17185. }
  17186. },
  17187. get(i) {
  17188. if (this.IsFollow && this.tType == 2) {
  17189. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  17190. return;
  17191. }
  17192. // for(var k=0;k<this.navList.length;k++){
  17193. // this.navList[k].isOpen = false;
  17194. // }
  17195. // this.navList[i].isOpen = true;
  17196. this.navList[i].isOpen = !this.navList[i].isOpen;
  17197. if (this.navList[i].isOpen) {
  17198. this.openTask(i, 0, i + "-0");
  17199. }
  17200. },
  17201. addQuestion() {
  17202. this.answerList.push({
  17203. answerTitle: this.answerQ,
  17204. answer: this.questionAnswer,
  17205. });
  17206. let params = [
  17207. {
  17208. uid: this.userid,
  17209. cid: this.id,
  17210. stage: this.courseType,
  17211. task: this.taskCount,
  17212. tool: this.toolindex,
  17213. content: JSON.stringify(this.answerList),
  17214. type: 3,
  17215. },
  17216. ];
  17217. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17218. this.homeWorkLoading = true
  17219. this.ajax
  17220. .post(this.$store.state.api + "addCourseWorks", params)
  17221. .then((res) => {
  17222. this.$message({
  17223. message: "提交成功",
  17224. type: "success",
  17225. });
  17226. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, "success")
  17227. setTimeout(() => {
  17228. this.homeWorkLoading = false
  17229. }, 500);
  17230. this.answerList = [];
  17231. this.answerDialogVisible = false;
  17232. this.selectStudent();
  17233. this.selectSWorks();
  17234. this.selectSLook();
  17235. })
  17236. .catch((err) => {
  17237. this.$message.error("提交失败");
  17238. console.error(err);
  17239. setTimeout(() => {
  17240. this.homeWorkLoading = false
  17241. }, 500);
  17242. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
  17243. });
  17244. },
  17245. addQuestionTeacher() {
  17246. this.answerList.push({
  17247. answerTitle: this.answerQ,
  17248. answer: this.questionAnswer,
  17249. });
  17250. let params = [
  17251. {
  17252. uid: this.sStudent.userid,
  17253. cid: this.id,
  17254. stage: this.courseType,
  17255. task: this.taskCount,
  17256. tool: this.toolindex,
  17257. content: JSON.stringify(this.answerList),
  17258. type: 3,
  17259. ateacher: this.userid,
  17260. },
  17261. ];
  17262. this.ajax
  17263. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  17264. .then((res) => {
  17265. this.$message({
  17266. message: "提交成功",
  17267. type: "success",
  17268. });
  17269. this.answerList = [];
  17270. this.questionAnswer = "";
  17271. this.answerDialogVisibleTeacher = false;
  17272. this.selectStudent();
  17273. this.selectSWorks();
  17274. this.selectSLook();
  17275. })
  17276. .catch((err) => {
  17277. this.$message.error("提交失败");
  17278. console.error(err);
  17279. });
  17280. },
  17281. refreshCourse() {
  17282. // window.location.reload();
  17283. this.navList = [];
  17284. this.getCourseDetail(1);
  17285. },
  17286. getCourseDetail(type, gindex) {
  17287. let loading;
  17288. if (type != 2) {
  17289. loading = this.$loading.service({
  17290. background: "rgba(255, 255, 255, 0.7)",
  17291. target: document.querySelector(".student_table"),
  17292. });
  17293. }
  17294. this.downLoading = false
  17295. // this.navList[0].isOpen = false;
  17296. // this.navList[this.courseType].isOpen = true;
  17297. // this.courseType = this.courseTypeLine;
  17298. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17299. let params = {
  17300. courseId: this.id,
  17301. };
  17302. this.ajax
  17303. .get(this.$store.state.api + "selectCourseDetail3", params)
  17304. .then((res) => {
  17305. if ((this.courseDetail.userid == this.userid ||
  17306. (this.courseDetail.course_teacher &&
  17307. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  17308. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  17309. }
  17310. if (type != 2) {
  17311. loading.close();
  17312. if (
  17313. this.courseType >
  17314. JSON.parse(res.data[0][0].chapters).length - 1
  17315. ) {
  17316. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  17317. }
  17318. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17319. .chapterInfo[0].taskJson;
  17320. var b = [
  17321. "AVI",
  17322. "NAVI",
  17323. "MPEG",
  17324. "ASF",
  17325. "MOV",
  17326. "WMV",
  17327. "3GP",
  17328. "RM",
  17329. "RMVB",
  17330. "FLV",
  17331. "F4V",
  17332. "H.264",
  17333. "H.265",
  17334. "REAL VIDEO",
  17335. "MKV",
  17336. "WebM",
  17337. "HDDVD",
  17338. "MP4",
  17339. "MPG",
  17340. "M4V",
  17341. "MGV",
  17342. "OGV",
  17343. "QTM",
  17344. "STR",
  17345. "AMC",
  17346. "DVX",
  17347. "EVO",
  17348. "DAT",
  17349. "OGG",
  17350. "OGM",
  17351. "MP3",
  17352. ];
  17353. let _chapterData = [];
  17354. for (var i = 0; i < a.length; i++) {
  17355. var c = a[i].chapterData;
  17356. this.vedio[i] = [];
  17357. this.textList[i] = [];
  17358. this.lineList[i] = [];
  17359. this.chapToolList[i] = [];
  17360. this.file[i] = [];
  17361. this.fileC[i] = [];
  17362. _chapterData[i] = c.filter((el) => {
  17363. return el.type != 12;
  17364. });
  17365. this.fileC[i] = c.filter((el) => {
  17366. return el.type == 12;
  17367. });
  17368. if (this.tType == 2) {
  17369. if (this.fileC[i].length) {
  17370. let yym1 = this.fileC[i].filter(e=>{
  17371. if(!converter(e.name).includes(converter("教案"))){
  17372. return e
  17373. }
  17374. })
  17375. this.fileC[i] = yym1
  17376. }
  17377. }
  17378. // else if (c[j].type == 12) {
  17379. // this.fileC[i].push(c[j]);
  17380. // }
  17381. for (var j = 0; j < c.length; j++) {
  17382. if (c[j].type == 7) {
  17383. this.chapToolList[i].push(c[j]);
  17384. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  17385. this.lineList[i].push(c[j]);
  17386. } else if (c[j].type == 6) {
  17387. this.textList[i].push(c[j]);
  17388. } else {
  17389. if (
  17390. b.indexOf(
  17391. c[j].url
  17392. .split(".")
  17393. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17394. ) != -1
  17395. ) {
  17396. this.vedio[i].push(c[j]);
  17397. } else {
  17398. this.file[i].push(c[j]);
  17399. }
  17400. }
  17401. }
  17402. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17403. d.sources[0].src =
  17404. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17405. this.playerO[i] = d;
  17406. }
  17407. this.courseDetail = res.data[0][0];
  17408. if(this.tType == 2){
  17409. this.tcid = this.arrayToArray(
  17410. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17411. this.classId ? this.classId.split(",") : []
  17412. ).join(",");
  17413. }else{
  17414. this.tcid = this.arrayToArray(
  17415. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17416. this.tcid2 ? this.tcid2.split(",") : []
  17417. ).join(",");
  17418. }
  17419. this.evalua = res.data[0][0].evaId;
  17420. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  17421. this.courseType
  17422. ];
  17423. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17424. if (this.tcid && res.data[1].length) {
  17425. let _inviteA = [];
  17426. for (var ik = 0; ik < res.data[1].length; ik++) {
  17427. _inviteA.push({
  17428. cid: res.data[1][ik].classid,
  17429. ic: res.data[1][ik].code,
  17430. });
  17431. }
  17432. for (var ik = 0; ik < _inviteA.length; ik++) {
  17433. if (
  17434. this.arrayToArray(
  17435. _inviteA[ik].cid.split(","),
  17436. this.tcid.split(",")
  17437. ).length
  17438. ) {
  17439. this.inviteCode = _inviteA[ik].ic;
  17440. break;
  17441. }
  17442. }
  17443. }
  17444. for (var l = 0; l < this.chapInfoList.length; l++) {
  17445. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17446. for (var m = 0; m < w.length; m++) {
  17447. w[m].id = l + "-" + m;
  17448. }
  17449. }
  17450. let taskCount = 0;
  17451. if (
  17452. _chapterData[taskCount].length &&
  17453. _chapterData[taskCount][0].type == 2
  17454. ) {
  17455. this.showType = 0;
  17456. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  17457. } else {
  17458. if (_chapterData[taskCount].length > 0) {
  17459. let _url = _chapterData[taskCount][0].url;
  17460. if (
  17461. _chapterData[taskCount][0].type == 8 ||
  17462. _chapterData[taskCount][0].type == 14 ||
  17463. _chapterData[taskCount][0].type == 15
  17464. ) {
  17465. this.showType = 2;
  17466. if (
  17467. _url.indexOf("https://") == -1 &&
  17468. _url.indexOf("http://") == -1
  17469. ) {
  17470. _url = "https://" + _url;
  17471. }
  17472. this.pptImgUrl1 = _url;
  17473. } else if (_chapterData[taskCount][0].type == 3) {
  17474. if (
  17475. _url
  17476. .split(".")
  17477. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17478. ) {
  17479. this.showType = 3;
  17480. this.pptImgUrl1 = _url;
  17481. } else if (
  17482. this.isAssetTypeAnImage(
  17483. _url
  17484. .split(".")
  17485. [_url.split(".").length - 1].toLocaleLowerCase()
  17486. )
  17487. ) {
  17488. this.showType = 4;
  17489. this.pptImgUrl1 = _url;
  17490. } else {
  17491. this.showType = 2;
  17492. this.pptImgUrl1 =
  17493. "https://view.officeapps.live.com/op/view.aspx?src=" +
  17494. encodeURIComponent(_url);
  17495. }
  17496. } else if (_chapterData[taskCount][0].type == 13) {
  17497. this.showType = 4;
  17498. this.pptImgUrl1 = _url;
  17499. } else if (_chapterData[taskCount][0].type == 6) {
  17500. this.showType = 1;
  17501. this.text = this.textList[taskCount][0];
  17502. } else if (_chapterData[taskCount][0].type == 16) {
  17503. this.showType = 16;
  17504. this.pptImgUrl1 = _url;
  17505. } else if (_chapterData[taskCount][0].type == 17) {
  17506. this.showType = 16;
  17507. this.pptImgUrl1 = _url;
  17508. }
  17509. }
  17510. }
  17511. this.isClickNav = 0;
  17512. if (
  17513. !_chapterData[taskCount].length ||
  17514. _chapterData[taskCount][0].type == 12
  17515. ) {
  17516. this.isClickNav = "";
  17517. this.showType = "";
  17518. }
  17519. if (this.tType == 2) {
  17520. _chapterData.forEach((e,i)=>{
  17521. if (e.length) {
  17522. let yym = e.filter(k=>{
  17523. if(!converter(k.name).includes(converter("教案"))){
  17524. return k
  17525. }
  17526. })
  17527. _chapterData[i] = yym
  17528. }
  17529. })
  17530. }
  17531. this.vChapterData = _chapterData;
  17532. } else {
  17533. // this.showType = 0;
  17534. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17535. .chapterInfo[0].taskJson;
  17536. var b = [
  17537. "AVI",
  17538. "NAVI",
  17539. "MPEG",
  17540. "ASF",
  17541. "MOV",
  17542. "WMV",
  17543. "3GP",
  17544. "RM",
  17545. "RMVB",
  17546. "FLV",
  17547. "F4V",
  17548. "H.264",
  17549. "H.265",
  17550. "REAL VIDEO",
  17551. "MKV",
  17552. "WebM",
  17553. "HDDVD",
  17554. "MP4",
  17555. "MPG",
  17556. "M4V",
  17557. "MGV",
  17558. "OGV",
  17559. "QTM",
  17560. "STR",
  17561. "AMC",
  17562. "DVX",
  17563. "EVO",
  17564. "DAT",
  17565. "OGG",
  17566. "OGM",
  17567. "MP3",
  17568. ];
  17569. let _chapterData = [];
  17570. for (var i = 0; i < a.length; i++) {
  17571. var c = a[i].chapterData;
  17572. this.vedio[i] = [];
  17573. this.textList[i] = [];
  17574. this.lineList[i] = [];
  17575. this.chapToolList[i] = [];
  17576. this.file[i] = [];
  17577. this.fileC[i] = [];
  17578. _chapterData[i] = c.filter((el) => {
  17579. return el.type != 12;
  17580. });
  17581. this.fileC[i] = c.filter((el) => {
  17582. return el.type == 12;
  17583. });
  17584. if (this.tType == 2) {
  17585. if (this.fileC[i].length) {
  17586. let yym1 = this.fileC[i].filter(e=>{
  17587. if(!converter(e.name).includes(converter("教案"))){
  17588. return e
  17589. }
  17590. })
  17591. this.fileC[i] = yym1
  17592. }
  17593. }
  17594. for (var j = 0; j < c.length; j++) {
  17595. if (c[j].type == 7) {
  17596. this.chapToolList[i].push(c[j]);
  17597. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  17598. this.lineList[i].push(c[j]);
  17599. } else if (c[j].type == 6) {
  17600. this.textList[i].push(c[j]);
  17601. } else {
  17602. if (
  17603. b.indexOf(
  17604. c[j].url
  17605. .split(".")
  17606. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17607. ) != -1
  17608. ) {
  17609. this.vedio[i].push(c[j]);
  17610. } else {
  17611. this.file[i].push(c[j]);
  17612. }
  17613. }
  17614. }
  17615. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17616. d.sources[0].src =
  17617. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17618. this.playerO[i] = d;
  17619. }
  17620. let taskCount = 0;
  17621. if (
  17622. _chapterData[taskCount].length &&
  17623. _chapterData[taskCount][0].type == 2
  17624. ) {
  17625. // this.showType = 0;
  17626. // this.pptImgUrl1 = _chapterData[taskCount][0].url;
  17627. } else {
  17628. if (_chapterData[taskCount].length > 0) {
  17629. let _url = _chapterData[taskCount][0].url;
  17630. if (
  17631. _chapterData[taskCount][0].type == 8 ||
  17632. _chapterData[taskCount][0].type == 14||
  17633. _chapterData[taskCount][0].type == 15
  17634. ) {
  17635. // this.showType = 2;
  17636. if (
  17637. _url.indexOf("https://") == -1 &&
  17638. _url.indexOf("http://") == -1
  17639. ) {
  17640. _url = "https://" + _url;
  17641. }
  17642. // this.pptImgUrl1 = _url;
  17643. } else if (_chapterData[taskCount][0].type == 3) {
  17644. if (
  17645. _url
  17646. .split(".")
  17647. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17648. ) {
  17649. // this.showType = 3;
  17650. // this.pptImgUrl1 = _url;
  17651. } else if (
  17652. this.isAssetTypeAnImage(
  17653. _url
  17654. .split(".")
  17655. [_url.split(".").length - 1].toLocaleLowerCase()
  17656. )
  17657. ) {
  17658. // this.showType = 4;
  17659. // this.pptImgUrl1 = _url;
  17660. } else {
  17661. // this.showType = 2;
  17662. // this.pptImgUrl1 =
  17663. // "https://view.officeapps.live.com/op/view.aspx?src=" +
  17664. // encodeURIComponent(_url);
  17665. }
  17666. } else if (_chapterData[taskCount][0].type == 13) {
  17667. // this.showType = 4;
  17668. // this.pptImgUrl1 = _url;
  17669. } else if (_chapterData[taskCount][0].type == 6) {
  17670. this.showType = 1;
  17671. this.text = this.textList[taskCount][0];
  17672. } else if (_chapterData[taskCount][0].type == 16) {
  17673. this.showType = 16;
  17674. this.pptImgUrl1 = _url;
  17675. } else if (_chapterData[taskCount][0].type == 17) {
  17676. this.showType = 16;
  17677. this.pptImgUrl1 = _url;
  17678. }
  17679. }
  17680. }
  17681. this.isClickNav = 0;
  17682. if (
  17683. !_chapterData[taskCount].length ||
  17684. _chapterData[taskCount][0].type == 12
  17685. ) {
  17686. this.isClickNav = "";
  17687. // this.showType = "";
  17688. }
  17689. if (this.tType == 2) {
  17690. _chapterData.forEach((e,i)=>{
  17691. if (e.length) {
  17692. let yym = e.filter(k=>{
  17693. if(!converter(k.name).includes(converter("教案"))){
  17694. return k
  17695. }
  17696. })
  17697. _chapterData[i] = yym
  17698. }
  17699. })
  17700. }
  17701. this.vChapterData = _chapterData;
  17702. this.$forceUpdate();
  17703. }
  17704. // else {
  17705. // this.courseDetail = res.data[0][0];
  17706. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17707. // }
  17708. // 判断进入课程是否是创建老师,如果去创建老师,就自动开启下面两个按钮
  17709. if (type == 10) {
  17710. console.log('this.courseDetail.userid',this.courseDetail.userid);
  17711. console.log('this.userid',this.userid);
  17712. if (this.courseDetail.userid == this.userid) {
  17713. // 开局关闭学生查看内容
  17714. this.StulookMode(true)
  17715. // 开局打开跟随模式
  17716. this.followingMode(true)
  17717. }
  17718. }
  17719. let _this = this;
  17720. if (_this.timer) {
  17721. clearInterval(_this.timer);
  17722. _this.timer = null;
  17723. }
  17724. if (_this.tcid) {
  17725. _this.getCourseGroup(gindex);
  17726. } else {
  17727. _this.selectSWorks(gindex);
  17728. }
  17729. _this.selectStudent();
  17730. _this.selectSLook();
  17731. _this.getPick();
  17732. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17733. // _this.setCTask();
  17734. // }
  17735. if (_this.dialogVisibleGroup) {
  17736. _this.groupJson =
  17737. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17738. _this.taskCount
  17739. ].toolChoose[_this.toolindex].groupJson;
  17740. }
  17741. _this.$nextTick(() => {
  17742. setTimeout(() => {
  17743. _this.checkEva();
  17744. }, 1000);
  17745. });
  17746. _this.timer = setInterval(function () {
  17747. // _this.getCourseDetail(2);
  17748. if (_this.tcid) {
  17749. _this.getCourseGroup();
  17750. } else {
  17751. _this.selectSWorks();
  17752. }
  17753. _this.selectStudent();
  17754. _this.selectSLook();
  17755. _this.getPick();
  17756. // _this.getSplitScreenData();//获取分屏数据
  17757. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17758. // _this.setCTask();
  17759. // }
  17760. if (_this.dialogVisibleGroup) {
  17761. _this.groupJson =
  17762. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17763. _this.taskCount
  17764. ].toolChoose[_this.toolindex].groupJson;
  17765. }
  17766. if (_this.tType == 4 || _this.ispzType == 4) {
  17767. _this.selectPz();
  17768. }
  17769. }, 5000);
  17770. if (_this.timer2 == null) {
  17771. _this.timer2 = setInterval(()=> {
  17772. _this.getSplitScreenData();//获取分屏数据
  17773. }, 5000);
  17774. }
  17775. _this.$nextTick(function () {
  17776. setTimeout(() => {
  17777. // var a =
  17778. // document.getElementsByClassName("box_course")[0].offsetHeight;
  17779. // document.getElementsByClassName("vedioList")[0].style.height =
  17780. // a + "px";
  17781. // document.getElementsByClassName("navBox")[0].style.height =
  17782. // a - 40 + "px";
  17783. // if (_this.vedio[_this.taskCount].length > 0) {
  17784. // _this.vedioTime = [];
  17785. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17786. // _this.vedioTime[i] = document.getElementsByClassName(
  17787. // "vjs-duration-display"
  17788. // )[i].textContent;
  17789. // }
  17790. // }
  17791. }, 1000);
  17792. });
  17793. })
  17794. .catch((err) => {
  17795. loading.close();
  17796. console.error(err);
  17797. });
  17798. },
  17799. getCourseGroup(gindex) {
  17800. if(this.getCourseGroupLoading) return
  17801. this.getCourseGroupLoading = true
  17802. let params = {
  17803. cid: this.id,
  17804. classid: this.tcid ? this.tcid : "1",
  17805. };
  17806. this.ajax
  17807. .get(this.$store.state.api + "getCourseGroup", params)
  17808. .then((res) => {
  17809. if (res.data && res.data[0].length) {
  17810. if (!this.isGroup) {
  17811. let courseGroup = JSON.parse(res.data[0][0].group);
  17812. courseGroup.group = courseGroup.group.filter((el) => {
  17813. el.works = [];
  17814. return el;
  17815. });
  17816. if (courseGroup.isopen == 2) {
  17817. this.isGroup = false;
  17818. this.selectSWorks(gindex);
  17819. return;
  17820. }
  17821. this.courseGroup = courseGroup;
  17822. let groupPerson = res.data[1];
  17823. let group = JSON.parse(res.data[0][0].group).group;
  17824. let courseGroupStudent = {};
  17825. let courseGroupStudentUid = {};
  17826. for (var i = 0; i < group.length; i++) {
  17827. courseGroupStudent[group[i].id] = [];
  17828. courseGroupStudentUid[group[i].id] = [];
  17829. for (var j = 0; j < groupPerson.length; j++) {
  17830. if (groupPerson[j].groupCid == group[i].id) {
  17831. courseGroupStudent[group[i].id].push(groupPerson[j]);
  17832. courseGroupStudentUid[group[i].id].push(
  17833. groupPerson[j].userid
  17834. );
  17835. }
  17836. }
  17837. }
  17838. this.courseGroupStudent = courseGroupStudent;
  17839. this.courseGroupStudentUid = courseGroupStudentUid;
  17840. }
  17841. if (this.courseGroup.isopen == 2) {
  17842. this.isGroup = false;
  17843. } else {
  17844. this.isGroup = true;
  17845. }
  17846. this.selectSWorks(gindex);
  17847. } else {
  17848. this.selectSWorks(gindex);
  17849. this.isGroup = false;
  17850. }
  17851. this.getCourseGroupLoading = false
  17852. })
  17853. .catch((err) => {
  17854. this.getCourseGroupLoading = false
  17855. // this.$message.error("网络不佳");
  17856. console.error(err);
  17857. });
  17858. },
  17859. setOperationTime() {
  17860. let _this = this;
  17861. if (_this.opertimer) {
  17862. clearInterval(_this.opertimer);
  17863. _this.opertimer = null;
  17864. }
  17865. _this.opertimer = setInterval(() => {
  17866. _this.setoTime("600");
  17867. }, 600000);
  17868. },
  17869. setoTime(time) {
  17870. let params = [
  17871. {
  17872. uid: this.userid,
  17873. cid: this.id,
  17874. type: "2",
  17875. time: time,
  17876. },
  17877. ];
  17878. this.ajax
  17879. .post(this.$store.state.api + "addOperationTimeT2", params)
  17880. .then((res) => {})
  17881. .catch((err) => {
  17882. console.error(err);
  17883. });
  17884. },
  17885. addPz(type, content) {
  17886. if (type == "1" && this.pzConText == "") {
  17887. this.$message.error("评论不能为空!");
  17888. return;
  17889. }
  17890. let params = [
  17891. {
  17892. cid: this.id,
  17893. uid: this.userid,
  17894. s: this.courseType,
  17895. t: this.taskCount,
  17896. c: type == "1" ? this.pzConText : content,
  17897. type: type,
  17898. },
  17899. ];
  17900. this.ajax
  17901. .post(this.$store.state.api + "addPz2", params)
  17902. .then((res) => {
  17903. this.$message({
  17904. message: "添加成功",
  17905. type: "success",
  17906. });
  17907. this.pzConText = "";
  17908. this.addPzDialog = false;
  17909. this.selectPz();
  17910. if(this.tType!=2){
  17911. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  17912. }
  17913. })
  17914. .catch((err) => {
  17915. this.$message.error("添加失败");
  17916. console.error(err);
  17917. });
  17918. },
  17919. setReplyIndex(id, i) {
  17920. this.replyIndex = i;
  17921. this.replyPid = id;
  17922. this.replyDialogVisible = true;
  17923. },
  17924. addHf() {
  17925. if (this.reply == "") {
  17926. this.$message.error("回复不能为空!");
  17927. return;
  17928. }
  17929. let params = [
  17930. {
  17931. cid: this.id,
  17932. uid: this.userid,
  17933. s: this.courseType,
  17934. t: this.taskCount,
  17935. type: "1",
  17936. ct: 2,
  17937. pid: this.replyPid,
  17938. c: this.reply,
  17939. },
  17940. ];
  17941. this.ajax
  17942. .post(this.$store.state.api + "addHf", params)
  17943. .then((res) => {
  17944. this.reply = "";
  17945. this.$message({
  17946. message: "回复成功",
  17947. type: "success",
  17948. });
  17949. this.replyDialogVisible = false;
  17950. this.selectPz();
  17951. })
  17952. .catch((err) => {
  17953. this.$message.error("回复失败");
  17954. console.error(err);
  17955. });
  17956. },
  17957. deletePz(id) {
  17958. this.$confirm("确定删除此评论吗?", "提示", {
  17959. confirmButtonText: "确定",
  17960. cancelButtonText: "取消",
  17961. type: "warning",
  17962. })
  17963. .then(() => {
  17964. let params = [
  17965. {
  17966. id: id,
  17967. },
  17968. ];
  17969. this.ajax
  17970. .post(this.$store.state.api + "deletePz", params)
  17971. .then((res) => {
  17972. this.$message({
  17973. message: "删除成功",
  17974. type: "success",
  17975. });
  17976. this.selectPz();
  17977. })
  17978. .catch((err) => {
  17979. this.$message.error("网络异常");
  17980. console.error(err);
  17981. });
  17982. })
  17983. .catch(() => {});
  17984. },
  17985. deleteReply(id) {
  17986. this.$confirm("确定删除此回复吗?", "提示", {
  17987. confirmButtonText: "确定",
  17988. cancelButtonText: "取消",
  17989. type: "warning",
  17990. })
  17991. .then(() => {
  17992. let params = [
  17993. {
  17994. id: id,
  17995. },
  17996. ];
  17997. this.ajax
  17998. .post(this.$store.state.api + "deleteReply", params)
  17999. .then((res) => {
  18000. this.$message({
  18001. message: "删除成功",
  18002. type: "success",
  18003. });
  18004. this.selectPz();
  18005. })
  18006. .catch((err) => {
  18007. this.$message.error("网络异常");
  18008. console.error(err);
  18009. });
  18010. })
  18011. .catch(() => {});
  18012. },
  18013. setPz() {
  18014. if (this.ispzType == 4) {
  18015. this.ispzType = 0;
  18016. this.pzDialog = false;
  18017. return;
  18018. }
  18019. this.ispzType = 4;
  18020. this.pzDialog = true;
  18021. this.selectPz();
  18022. },
  18023. selectPz() {
  18024. if(this.selectPzLoading) return
  18025. this.selectPzLoading = true
  18026. let params = {
  18027. cid: this.id,
  18028. s: this.courseType,
  18029. t: this.taskCount,
  18030. type: this.pzStype,
  18031. uid: this.userid,
  18032. };
  18033. this.ajax
  18034. .get(this.$store.state.api + "selectPzListType", params)
  18035. .then((res) => {
  18036. this.pzList = res.data[0];
  18037. var a = res.data[1];
  18038. for (var i = 0; i < a.length; i++) {
  18039. for (var j = 0; j < this.pzList.length; j++) {
  18040. if (!this.pzList[j].hfList) {
  18041. this.pzList[j].hfList = [];
  18042. }
  18043. if (a[i].pid == this.pzList[j].id) {
  18044. this.pzList[j].hfList.push(a[i]);
  18045. }
  18046. }
  18047. }
  18048. this.selectPzLoading = false
  18049. })
  18050. .catch((err) => {
  18051. this.selectPzLoading = false
  18052. console.error(err);
  18053. });
  18054. },
  18055. // selectHf() {
  18056. // let params = {
  18057. // cid: this.id,
  18058. // s: this.courseType,
  18059. // t: this.taskCount,
  18060. // };
  18061. // this.ajax
  18062. // .get(this.$store.state.api + "selectHfList", params)
  18063. // .then((res) => {
  18064. // var a = res.data[0];
  18065. // for (var i = 0; i < a.length; i++) {
  18066. // for (var j = 0; j < this.pzList.length; j++) {
  18067. // if (!this.pzList[i].hfList) {
  18068. // this.pzList[i].hfList = [];
  18069. // }
  18070. // if (a[i].pid == this.pzList[j].id) {
  18071. // this.pzList[i].hfList.push(a[i]);
  18072. // }
  18073. // }
  18074. // }
  18075. // })
  18076. // .catch((err) => {
  18077. // console.error(err);
  18078. // });
  18079. // },
  18080. updateSLook() {
  18081. let params = {
  18082. sopen: this.sIsOpen == false ? 1 : 2,
  18083. cid: this.id,
  18084. };
  18085. this.ajax
  18086. .get(this.$store.state.api + "updateCourseSLook", params)
  18087. .then((res) => {
  18088. if (this.sIsOpen == true) {
  18089. this.$message({
  18090. message: "权限设置成功",
  18091. type: "success",
  18092. });
  18093. } else {
  18094. this.$message({
  18095. message: "权限关闭成功",
  18096. type: "success",
  18097. });
  18098. }
  18099. })
  18100. .catch((err) => {
  18101. console.error(err);
  18102. });
  18103. },
  18104. updateIsStulook(){
  18105. let params = [
  18106. {
  18107. sopen: this.IsStulook == false ? 2 : 1,
  18108. cid: this.id
  18109. }
  18110. ];
  18111. this.ajax
  18112. .post(this.$store.state.api + "updateCourseStulook", params)
  18113. .then(res => {
  18114. if (this.IsStulook == true) {
  18115. this.$message({
  18116. message: "学生查看内容资料权限已开启",
  18117. type: "success"
  18118. });
  18119. } else {
  18120. this.$message({
  18121. message: "关闭学生查看内容资料权限",
  18122. type: "success"
  18123. });
  18124. }
  18125. // this.setCTask();
  18126. })
  18127. .catch(err => {
  18128. console.error(err);
  18129. });
  18130. },
  18131. updateFollow() {
  18132. let params = [
  18133. {
  18134. sopen: this.IsFollow == false ? 1 : 2,
  18135. cid: this.id,
  18136. },
  18137. ];
  18138. this.ajax
  18139. .post(this.$store.state.api + "updateCourseFollow", params)
  18140. .then((res) => {
  18141. if (this.IsFollow == true) {
  18142. this.$message({
  18143. message: "跟随模式已开启",
  18144. type: "success",
  18145. });
  18146. } else {
  18147. this.$message({
  18148. message: "跟随模式已关闭",
  18149. type: "success",
  18150. });
  18151. }
  18152. this.setCTask();
  18153. })
  18154. .catch((err) => {
  18155. console.error(err);
  18156. });
  18157. },
  18158. setCTask() {
  18159. let params = [
  18160. {
  18161. sopen: this.courseType + "-" + this.taskCount,
  18162. cid: this.id,
  18163. },
  18164. ];
  18165. this.ajax
  18166. .post(this.$store.state.api + "updateCourseFollowC", params)
  18167. .then((res) => {})
  18168. .catch((err) => {
  18169. console.error(err);
  18170. });
  18171. },
  18172. updateLookOpen() {
  18173. let params = [
  18174. {
  18175. sopen: this.IsLookOpen == false ? 1 : 2,
  18176. cid: this.id,
  18177. },
  18178. ];
  18179. this.ajax
  18180. .post(this.$store.state.api + "updateCourseLookOpen", params)
  18181. .then((res) => {
  18182. if (this.IsLookOpen == true) {
  18183. // if (this.courseType != 0 && this.taskCount != 0) {
  18184. // this.openTask(0, 0, "0-0");
  18185. // }
  18186. this.$message({
  18187. message: "权限设置成功",
  18188. type: "success",
  18189. });
  18190. } else {
  18191. this.$message({
  18192. message: "权限关闭成功",
  18193. type: "success",
  18194. });
  18195. }
  18196. this.getCourseState(2);
  18197. })
  18198. .catch((err) => {
  18199. console.error(err);
  18200. });
  18201. },
  18202. selectSLook() {
  18203. if(this.selectSLookLoading) return
  18204. this.selectSLookLoading = true
  18205. let params = {
  18206. cid: this.id,
  18207. };
  18208. this.ajax
  18209. .get(this.$store.state.api + "selectCourseSLook", params)
  18210. .then((res) => {
  18211. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  18212. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  18213. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  18214. this.IsStulook = res.data[0][0].isStulook == 2 ? false : true;
  18215. if (!this.IsLookOpen) {
  18216. this.setNavList();
  18217. }else {
  18218. this.getCourseState(1);
  18219. }
  18220. if ((this.IsFollow && this.tType == 2)) {
  18221. this.setContent2(false);
  18222. let _followC = res.data[0][0].followC.split("-");
  18223. if (
  18224. this.courseType != _followC[0] ||
  18225. this.taskCount != _followC[1]
  18226. ) {
  18227. this.navList[this.courseType].isOpen = false;
  18228. this.courseType = _followC[0];
  18229. this.navList[this.courseType].isOpen = true;
  18230. this.taskCount = parseInt(_followC[1]);
  18231. this.navId = res.data[0][0].followC;
  18232. document.scrollingElement.scrollTop = 0;
  18233. this.getCourseDetail(2);
  18234. }
  18235. }
  18236. this.selectSLookLoading = false
  18237. })
  18238. .catch((err) => {
  18239. this.selectSLookLoading = false
  18240. console.error(err);
  18241. });
  18242. },
  18243. setNavList() {
  18244. if (this.navList.length == 0) {
  18245. this.navList = [];
  18246. var copyList = [];
  18247. for (var l = 0; l < this.chapInfoList.length; l++) {
  18248. var q = this.chapInfoList[l].dyName;
  18249. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18250. var e;
  18251. copyList.push({
  18252. dyName: q,
  18253. isOpen: l === 0 ? true : false,
  18254. task: [],
  18255. });
  18256. for (var r = 0; r < w.length; r++) {
  18257. e = w[r].task;
  18258. if (this.chapInfoList[l].easy == 1) {
  18259. copyList[l].task.push({
  18260. taskName: q,
  18261. id: l + "-" + r,
  18262. isLook: w[r].isLook,
  18263. isOpen: r === 0 ? true : false,
  18264. tool: [],
  18265. });
  18266. } else {
  18267. copyList[l].task.push({
  18268. taskName: e,
  18269. id: l + "-" + r,
  18270. isLook: w[r].isLook,
  18271. isOpen: r === 0 ? true : false,
  18272. tool: [],
  18273. });
  18274. }
  18275. var t = w[r].toolChoose;
  18276. for (var k = 0; k < t.length; k++) {
  18277. var tool = t[k].tool[0];
  18278. copyList[l].task[r].tool.push({
  18279. tool: tool,
  18280. isTool: false,
  18281. });
  18282. }
  18283. // this.navId = this.navId ? this.navId : l + "-" + r;
  18284. // this.navId = l + "-" + r;
  18285. }
  18286. }
  18287. this.navList = copyList;
  18288. this.navList[0].isOpen = false;
  18289. this.navList[this.courseType].isOpen = true;
  18290. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  18291. } else {
  18292. this.setNavList2();
  18293. }
  18294. },
  18295. setNavList2() {
  18296. for (var l = 0; l < this.chapInfoList.length; l++) {
  18297. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18298. for (var r = 0; r < w.length; r++) {
  18299. this.navList[l].task[r].isLook = w[r].isLook;
  18300. }
  18301. }
  18302. if (
  18303. this.IsLookOpen &&
  18304. !this.navList[this.courseType].task[this.taskCount].isLook
  18305. ) {
  18306. this.openTask(0, 0, "0-0");
  18307. }
  18308. this.$forceUpdate();
  18309. },
  18310. getCourseState(type) {
  18311. let params = {
  18312. cid: this.id,
  18313. };
  18314. this.ajax
  18315. .get(this.$store.state.api + "getCourseState", params)
  18316. .then((res) => {
  18317. // if (res.data[0].length > 0) {
  18318. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  18319. // }
  18320. if (res.data[0].length > 0 && type == 1) {
  18321. this.chapInfoList = JSON.parse(res.data[0][0].state);
  18322. this.setNavList();
  18323. this.$forceUpdate();
  18324. } else if (res.data[0].length > 0 && type == 2) {
  18325. this.addCourseState(2);
  18326. } else {
  18327. // this.addCourseState(1);
  18328. }
  18329. })
  18330. .catch((err) => {
  18331. console.error(err);
  18332. });
  18333. },
  18334. addCourseState(type,val = '') {
  18335. let _state = val ? val : this.chapInfoList;
  18336. // this.courseType this.taskCount
  18337. if (type == 1 || type == 2) {
  18338. for (var i = 0; i < _state.length; i++) {
  18339. let el = _state[i].chapterInfo[0].taskJson;
  18340. for (var j = 0; j < el.length; j++) {
  18341. // if (i == 0 && j == 0) {
  18342. // el[j].isLook = true;
  18343. // } else {
  18344. // el[j].isLook = false;
  18345. // }
  18346. if (
  18347. this.courseType > i ||
  18348. (this.courseType == i && this.taskCount + 1 > j)
  18349. ) {
  18350. el[j].isLook = true;
  18351. } else {
  18352. el[j].isLook = false;
  18353. }
  18354. }
  18355. }
  18356. }
  18357. let params = [
  18358. {
  18359. cid: this.id,
  18360. state: JSON.stringify(_state),
  18361. },
  18362. ];
  18363. this.ajax
  18364. .post(
  18365. this.$store.state.api +
  18366. (type == 1 ? "addCourseState" : "updateCourseSate"),
  18367. params
  18368. )
  18369. .then((res) => {
  18370. if (this.IsLookOpen) {
  18371. this.setNavList();
  18372. }
  18373. if (type == 3 && type == 2) {
  18374. this.getCourseState(1);
  18375. }
  18376. })
  18377. .catch((err) => {
  18378. console.error(err);
  18379. });
  18380. },
  18381. getHomeWork() {
  18382. let params = {
  18383. cid: this.id,
  18384. stage: this.courseType,
  18385. task: this.taskCount,
  18386. uid: this.userid,
  18387. };
  18388. this.ajax
  18389. .get(this.$store.state.api + "selectWork", params)
  18390. .then((res) => {
  18391. if (res.data[0].length > 0) {
  18392. this.studyJuri = JSON.parse(res.data[0][0].content);
  18393. this.isNoHomeWork = true;
  18394. }
  18395. })
  18396. .catch((err) => {
  18397. console.error(err);
  18398. });
  18399. },
  18400. isAssetTypeAnImage(ext) {
  18401. return (
  18402. [
  18403. "png",
  18404. "jpg",
  18405. "jpeg",
  18406. "bmp",
  18407. "gif",
  18408. "webp",
  18409. "psd",
  18410. "svg",
  18411. "tiff",
  18412. ].indexOf(ext) !== -1
  18413. );
  18414. },
  18415. switchVideo(media) {
  18416. this.playerO = {};
  18417. this.playerOptions.poster = "";
  18418. this.playerOptions.sources[0].src = media;
  18419. this.playerO = this.playerOptions;
  18420. },
  18421. onPlayerPlay() {},
  18422. onPlayerTimeupdate(player) {
  18423. let gklog = player.cache_.currentTime; //当前播放的秒数
  18424. let a = player.cache_.duration; //视频的总时长
  18425. let gklog2 = parseInt(gklog);
  18426. // if(gklog2 == '3'){
  18427. // player.pause()
  18428. // setTimeout(()=>{
  18429. // player.currentTime(gklog2+1)
  18430. // player.play()
  18431. // },1000)
  18432. // }
  18433. console.log(" onPlayerTimeupdate!", gklog);
  18434. console.log(" onPlayerTimeupdate!", gklog2);
  18435. },
  18436. lookVedio(u, i) {
  18437. this.isClickNav = "";
  18438. // this.playerOptions.sources[0].src = u;
  18439. var d = JSON.parse(JSON.stringify(this.playerOptions));
  18440. d.sources[0].src = u;
  18441. this.playerO[0] = d;
  18442. this.showType = 0;
  18443. // this.isClickNav = "video" + i;
  18444. this.isClickNav = i;
  18445. this.$forceUpdate();
  18446. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  18447. },
  18448. lookText(i, t) {
  18449. this.isClickNav = "";
  18450. // this.text = this.textList[i][t];
  18451. this.text = this.vChapterData[i][t];
  18452. // this.dialogVisible1 = true;
  18453. this.showType = 1;
  18454. // this.isClickNav = "text" + t;
  18455. this.isClickNav = t;
  18456. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  18457. },
  18458. lookTools(i, t) {
  18459. this.chapTools = this.chapToolList[i][t];
  18460. this.dialogVisible2 = true;
  18461. },
  18462. async openFile(f) {
  18463. this.pptImgUrl = "";
  18464. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18465. if (
  18466. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  18467. -1
  18468. ) {
  18469. let _uuurl = await this.checkLink(f);
  18470. console.log(_uuurl)
  18471. this.pptImgUrl =
  18472. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18473. this.showPDF = false;
  18474. this.dialogVisible3 = true;
  18475. } else if (
  18476. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18477. ) {
  18478. this.pptImgUrl = f;
  18479. this.showPDF = true;
  18480. this.dialogVisible3 = true;
  18481. }
  18482. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  18483. },
  18484. openTable(f) {
  18485. this.tableJson = JSON.parse(f.works);
  18486. this.dialogVisibleTable2 = true;
  18487. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18488. },
  18489. openWord(f) {
  18490. this.tableJson = JSON.parse(f.works);
  18491. this.dialogVisibleTable3 = true;
  18492. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18493. },
  18494. doUrl(url, i) {
  18495. this.isClickNav = "";
  18496. this.pptImgUrl1 = "";
  18497. this.showType = 2;
  18498. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  18499. url = "https://" + url;
  18500. }
  18501. this.pptImgUrl1 = "";
  18502. this.diffKey = new Date().getTime();
  18503. setTimeout(() => {
  18504. this.pptImgUrl1 = url;
  18505. }, 500);
  18506. // this.isClickNav = "line" + i;
  18507. this.isClickNav = i;
  18508. this.$forceUpdate();
  18509. },
  18510. checkPhoto(f, i) {
  18511. this.showType = 4;
  18512. this.pptImgUrl1 = f.url;
  18513. this.isClickNav = i;
  18514. this.$forceUpdate();
  18515. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18516. },
  18517. checkHtml(f, i){
  18518. this.showType = 16;
  18519. this.pptImgUrl1 = f.url;
  18520. this.isClickNav = i;
  18521. this.$forceUpdate();
  18522. },
  18523. async downFile(f, i) {
  18524. this.isClickNav = "";
  18525. this.pptImgUrl1 = "";
  18526. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  18527. if (
  18528. a.indexOf(
  18529. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  18530. ) != -1
  18531. ) {
  18532. let _uuurl = await this.checkLink(f.url);
  18533. console.log(_uuurl)
  18534. this.pptImgUrl1 =
  18535. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18536. // this.dialogVisible3 = true;
  18537. this.showType = 2;
  18538. } else if (
  18539. this.isAssetTypeAnImage(
  18540. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  18541. )
  18542. ) {
  18543. this.showType = 4;
  18544. this.pptImgUrl1 = f.url;
  18545. } else if (
  18546. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18547. "PDF"
  18548. ) {
  18549. this.pptImgUrl1 = f.url;
  18550. // this.dialogVisible3 = true;
  18551. this.showType = 3;
  18552. } else {
  18553. window.open(this.file[i].url);
  18554. }
  18555. // this.isClickNav = "word" + i;
  18556. this.isClickNav = i;
  18557. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18558. },
  18559. downFileList(i) {
  18560. window.open(this.noImgList[i].url);
  18561. },
  18562. openAddWork() {
  18563. this.dialogVisible = true;
  18564. },
  18565. addBzWorks() {
  18566. let params = [
  18567. {
  18568. uid: this.userid,
  18569. cid: this.id,
  18570. stage: this.courseType,
  18571. task: this.taskCount,
  18572. tool: this.toolindex,
  18573. content: JSON.stringify(this.eScore),
  18574. type: 6,
  18575. },
  18576. ];
  18577. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18578. this.homeWorkLoading = true
  18579. this.ajax
  18580. .post(this.$store.state.api + "addCourseWorks", params)
  18581. .then((res) => {
  18582. this.$message({
  18583. message: "提交成功",
  18584. type: "success",
  18585. });
  18586. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
  18587. setTimeout(() => {
  18588. this.homeWorkLoading = false
  18589. }, 500);
  18590. this.eScore = { eBzText: "", eStar: [] };
  18591. this.studentEvalDialogVisible = false;
  18592. this.selectSWorks();
  18593. })
  18594. .catch((err) => {
  18595. this.$message.error("提交失败");
  18596. console.error(err);
  18597. setTimeout(() => {
  18598. this.homeWorkLoading = false
  18599. }, 500);
  18600. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
  18601. });
  18602. },
  18603. addBzWorksTeacher() {
  18604. let params = [
  18605. {
  18606. uid: this.sStudent.userid,
  18607. cid: this.id,
  18608. stage: this.courseType,
  18609. task: this.taskCount,
  18610. tool: this.toolindex,
  18611. content: JSON.stringify(this.eScore),
  18612. type: 6,
  18613. },
  18614. ];
  18615. this.ajax
  18616. .post(this.$store.state.api + "addCourseWorks", params)
  18617. .then((res) => {
  18618. this.$message({
  18619. message: "提交成功",
  18620. type: "success",
  18621. });
  18622. this.eScore = { eBzText: "", eStar: [] };
  18623. this.studentEvalDialogVisibleTeacher = false;
  18624. this.selectSWorks();
  18625. })
  18626. .catch((err) => {
  18627. this.$message.error("提交失败");
  18628. console.error(err);
  18629. });
  18630. },
  18631. addStudentAsk() {
  18632. if (!this.radio.length) {
  18633. this.$message.error("请选择选项");
  18634. return;
  18635. }
  18636. for (var i = 0; i < this.askJson.askCount; i++) {
  18637. if (
  18638. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18639. (this.radio[i] !== 0 && !this.radio[i])
  18640. ) {
  18641. this.$message.error("请选择选项");
  18642. return;
  18643. }
  18644. }
  18645. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18646. let params = [
  18647. {
  18648. uid: this.userid,
  18649. cid: this.id,
  18650. stage: this.courseType,
  18651. task: this.taskCount,
  18652. tool: this.toolindex,
  18653. content: JSON.stringify(this.askList),
  18654. type: 2,
  18655. },
  18656. ];
  18657. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18658. this.homeWorkLoading = true
  18659. this.ajax
  18660. .post(this.$store.state.api + "addCourseWorks", params)
  18661. .then((res) => {
  18662. this.$message({
  18663. message: "提交成功",
  18664. type: "success",
  18665. });
  18666. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18667. setTimeout(() => {
  18668. this.homeWorkLoading = false
  18669. }, 500);
  18670. this.askList = [];
  18671. this.dialogVisible5 = false;
  18672. this.selectStudent();
  18673. this.selectSWorks();
  18674. this.selectSLook();
  18675. })
  18676. .catch((err) => {
  18677. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18678. setTimeout(() => {
  18679. this.homeWorkLoading = false
  18680. }, 500);
  18681. this.$message.error("提交失败");
  18682. console.error(err);
  18683. });
  18684. },
  18685. addStudentAskTeacher() {
  18686. if (!this.radio.length) {
  18687. this.$message.error("请选择选项");
  18688. return;
  18689. }
  18690. for (var i = 0; i < this.askJson.askCount; i++) {
  18691. if (
  18692. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18693. (this.radio[i] !== 0 && !this.radio[i])
  18694. ) {
  18695. this.$message.error("请选择选项");
  18696. return;
  18697. }
  18698. }
  18699. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18700. let params = [
  18701. {
  18702. uid: this.sStudent.userid,
  18703. cid: this.id,
  18704. stage: this.courseType,
  18705. task: this.taskCount,
  18706. tool: this.toolindex,
  18707. content: JSON.stringify(this.askList),
  18708. type: 2,
  18709. },
  18710. ];
  18711. this.ajax
  18712. .post(this.$store.state.api + "addCourseWorks", params)
  18713. .then((res) => {
  18714. this.$message({
  18715. message: "提交成功",
  18716. type: "success",
  18717. });
  18718. this.askList = [];
  18719. this.dialogVisible5Teacher = false;
  18720. this.selectStudent();
  18721. this.selectSWorks();
  18722. this.selectSLook();
  18723. })
  18724. .catch((err) => {
  18725. this.$message.error("提交失败");
  18726. console.error(err);
  18727. });
  18728. },
  18729. addStudentTest() {
  18730. if (!this.radio.length) {
  18731. this.$message.error("请选择选项");
  18732. return;
  18733. }
  18734. for (var i = 0; i < this.testJson.testCount; i++) {
  18735. if (
  18736. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18737. (this.radio[i] !== 0 && !this.radio[i])
  18738. ) {
  18739. this.$message.error("请选择选项");
  18740. return;
  18741. }
  18742. }
  18743. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18744. let params = [
  18745. {
  18746. uid: this.userid,
  18747. cid: this.id,
  18748. stage: this.courseType,
  18749. task: this.taskCount,
  18750. tool: this.toolindex,
  18751. content: JSON.stringify(this.askList),
  18752. type: 8,
  18753. },
  18754. ];
  18755. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18756. this.homeWorkLoading = true
  18757. this.ajax
  18758. .post(this.$store.state.api + "addCourseWorks", params)
  18759. .then((res) => {
  18760. this.$message({
  18761. message: "提交成功",
  18762. type: "success",
  18763. });
  18764. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18765. setTimeout(() => {
  18766. this.homeWorkLoading = false
  18767. }, 500);
  18768. this.askList = [];
  18769. this.dialogVisibleChoice = false;
  18770. this.selectStudent();
  18771. this.selectSWorks();
  18772. this.selectSLook();
  18773. })
  18774. .catch((err) => {
  18775. this.$message.error("提交失败");
  18776. console.error(err);
  18777. setTimeout(() => {
  18778. this.homeWorkLoading = false
  18779. }, 500);
  18780. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18781. });
  18782. },
  18783. addStudentTestTeacher() {
  18784. if (!this.radio.length) {
  18785. this.$message.error("请选择选项");
  18786. return;
  18787. }
  18788. for (var i = 0; i < this.testJson.testCount; i++) {
  18789. if (
  18790. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18791. (this.radio[i] !== 0 && !this.radio[i])
  18792. ) {
  18793. this.$message.error("请选择选项");
  18794. return;
  18795. }
  18796. }
  18797. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18798. let params = [
  18799. {
  18800. uid: this.sStudent.userid,
  18801. cid: this.id,
  18802. stage: this.courseType,
  18803. task: this.taskCount,
  18804. tool: this.toolindex,
  18805. content: JSON.stringify(this.askList),
  18806. type: 8,
  18807. },
  18808. ];
  18809. this.ajax
  18810. .post(this.$store.state.api + "addCourseWorks", params)
  18811. .then((res) => {
  18812. this.$message({
  18813. message: "提交成功",
  18814. type: "success",
  18815. });
  18816. this.askList = [];
  18817. this.dialogVisibleChoiceTeacher = false;
  18818. this.selectStudent();
  18819. this.selectSWorks();
  18820. this.selectSLook();
  18821. })
  18822. .catch((err) => {
  18823. this.$message.error("提交失败");
  18824. console.error(err);
  18825. });
  18826. },
  18827. addWork() {
  18828. if (this.studyJuri[0].content == "") {
  18829. this.$message.error("请将信息填写完整");
  18830. return;
  18831. } else if (this.studyJuri[0].cover.length == 0) {
  18832. this.$message.error("请将信息填写完整");
  18833. return;
  18834. } else if (this.studyJuri[0].upVedio.length == 0) {
  18835. this.$message.error("请将信息填写完整");
  18836. return;
  18837. }
  18838. if (this.isNoHomeWork) {
  18839. this.$confirm(
  18840. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  18841. "提示",
  18842. {
  18843. confirmButtonText: "确定",
  18844. cancelButtonText: "取消",
  18845. type: "warning",
  18846. }
  18847. )
  18848. .then(() => {
  18849. let params = [
  18850. {
  18851. uid: this.userid,
  18852. cid: this.id,
  18853. stage: this.courseType,
  18854. task: this.taskCount,
  18855. content: JSON.stringify(this.studyJuri),
  18856. },
  18857. ];
  18858. this.ajax
  18859. .post(this.$store.state.api + "addWorks", params)
  18860. .then((res) => {
  18861. this.$message({
  18862. message: "提交成功",
  18863. type: "success",
  18864. });
  18865. this.isNoHomeWork = true;
  18866. this.dialogVisible = false;
  18867. })
  18868. .catch((err) => {
  18869. this.$message.error("提交失败");
  18870. console.error(err);
  18871. });
  18872. })
  18873. .catch(() => {});
  18874. } else {
  18875. let params = [
  18876. {
  18877. uid: this.userid,
  18878. cid: this.id,
  18879. stage: this.courseType,
  18880. task: this.taskCount,
  18881. content: JSON.stringify(this.studyJuri),
  18882. },
  18883. ];
  18884. this.ajax
  18885. .post(this.$store.state.api + "addWorks", params)
  18886. .then((res) => {
  18887. this.$message({
  18888. message: "提交成功",
  18889. type: "success",
  18890. });
  18891. this.isNoHomeWork = true;
  18892. this.dialogVisible = false;
  18893. })
  18894. .catch((err) => {
  18895. this.$message.error("提交失败");
  18896. console.error(err);
  18897. });
  18898. }
  18899. },
  18900. selectCount() {
  18901. let params = {
  18902. cid: this.id,
  18903. chid: this.courseType,
  18904. uid: this.userid,
  18905. };
  18906. this.ajax
  18907. .get(this.$store.state.api + "selectToolsCount", params)
  18908. .then((res) => {
  18909. for (var i = 0; i < res.data[0].length; i++) {
  18910. if (res.data[0][i].tools == 1) {
  18911. this.wbCount = res.data[0][i].count;
  18912. } else if (res.data[0][i].tools == 2) {
  18913. this.wordCount = res.data[0][i].count;
  18914. } else if (res.data[0][i].tools == 3) {
  18915. this.mindCount = res.data[0][i].count;
  18916. } else if (res.data[0][i].tools == 4) {
  18917. this.askCount = res.data[0][i].count;
  18918. } else if (res.data[0][i].tools == 6) {
  18919. this.noteCount = res.data[0][i].count;
  18920. } else if (res.data[0][i].tools == 7) {
  18921. this.mindNetWorkCount = res.data[0][i].count;
  18922. } else if (res.data[0][i].tools == 8) {
  18923. this.libraryCount = res.data[0][i].count;
  18924. } else if (res.data[0][i].tools == 16) {
  18925. this.workCount = res.data[0][i].count;
  18926. } else if (res.data[0][i].tools == 10) {
  18927. this.timeCount = res.data[0][i].count;
  18928. } else if (res.data[0][i].tools == 15) {
  18929. this.answerCount = res.data[0][i].count;
  18930. } else if (res.data[0][i].tools == 18) {
  18931. this.trainCount = res.data[0][i].count;
  18932. }
  18933. }
  18934. })
  18935. .catch((err) => {
  18936. console.error(err);
  18937. });
  18938. },
  18939. openTools(t, i, index, c, sName,id) {
  18940. var z = JSON.parse(c);
  18941. this.noteName = sName;
  18942. if (t == 4) {
  18943. this.radio = [];
  18944. this.isAnswer = false;
  18945. let b = z[0].anwer;
  18946. this.radio = b;
  18947. this.askJson = z[0].askJson;
  18948. this.isAnswer = true;
  18949. this.dialogVisible5 = true;
  18950. } else if (t == 45) {
  18951. this.radio = [];
  18952. this.isAnswer = false;
  18953. let b = z[0].anwer;
  18954. this.radio = b;
  18955. this.testJson = z[0].testJson;
  18956. this.isAnswer = true;
  18957. this.dialogVisibleChoice = true;
  18958. }else if(t == 69){
  18959. this.oldEnglishJson1 = {}
  18960. this.oldEnglishJson = {}
  18961. this.englishList1 = {}
  18962. this.newEngIndex = -1;
  18963. this.isNoUserid = false;
  18964. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18965. .toolChoose[i].englishList;
  18966. this.oldEnglishJson = z;
  18967. this.engWid = id;
  18968. this.newEnglishList = { engTitle:"",engText:"" }
  18969. this.newEnglishList1 = []
  18970. this.selectEngC(id,z);
  18971. }else if(t == 62){
  18972. this.videoType = 1;
  18973. this.videoJson = {};
  18974. this.videoJson = JSON.parse(c);
  18975. // this.videoJson =
  18976. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18977. // index
  18978. // ].toolChoose[i].videoJson;
  18979. this.dialogVisibleVideo = true;
  18980. }
  18981. // else if (t == 15) {
  18982. // this.answerQ = "";
  18983. // this.questionAnswer = "";
  18984. // this.answerQ = z[0].answerTitle;
  18985. // this.questionAnswer = z[0].answer;
  18986. // this.answerDialogVisible = true;
  18987. // }
  18988. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  18989. },
  18990. fastText(p, t) {
  18991. if (t == 1) {
  18992. this.commentText += p;
  18993. } else {
  18994. this.eScore.eBzText += p;
  18995. }
  18996. },
  18997. addTools(t, i, index) {
  18998. var a = 0;
  18999. // this.taskCount = index;
  19000. this.toolindex = i;
  19001. if (t == 1) {
  19002. if (this.wbCount > 0) {
  19003. this.updateCount(this.wbCount, t);
  19004. } else {
  19005. this.wbCount++;
  19006. a = this.wbCount;
  19007. this.toolsCount(a, t);
  19008. }
  19009. window.topU.postMessage(
  19010. {
  19011. tools: "1",
  19012. cid: this.id,
  19013. stage: this.courseType,
  19014. task: this.taskCount,
  19015. tool: i,
  19016. },
  19017. "*"
  19018. );
  19019. } else if (t == 2) {
  19020. if (this.wordCount > 0) {
  19021. this.updateCount(this.wordCount, t);
  19022. } else {
  19023. this.wordCount++;
  19024. a = this.wordCount;
  19025. this.toolsCount(a, t);
  19026. }
  19027. window.topU.postMessage({ tools: "2" }, "*");
  19028. } else if (t == 3) {
  19029. if (this.mindCount > 0) {
  19030. this.updateCount(this.mindCount, t);
  19031. } else {
  19032. this.mindCount++;
  19033. a = this.mindCount;
  19034. this.toolsCount(a, t);
  19035. }
  19036. window.topU.postMessage(
  19037. {
  19038. tools: "3",
  19039. cid: this.id,
  19040. stage: this.courseType,
  19041. task: this.taskCount,
  19042. tool: i,
  19043. },
  19044. "*"
  19045. );
  19046. } else if (t == 4) {
  19047. this.radio = [];
  19048. this.noteName = "";
  19049. this.isAnswer = false;
  19050. if (this.askCount > 0) {
  19051. this.updateCount(this.askCount, t);
  19052. } else {
  19053. this.askCount++;
  19054. a = this.askCount;
  19055. this.toolsCount(a, t);
  19056. }
  19057. if (!this.dialogVisible2) {
  19058. this.askJson.askJson =
  19059. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19060. index
  19061. ].toolChoose[i].askJson;
  19062. this.askJson.askTitle =
  19063. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19064. index
  19065. ].toolChoose[i].askTitle;
  19066. this.askJson.askCount =
  19067. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19068. index
  19069. ].toolChoose[i].askCount;
  19070. } else {
  19071. this.askJson.askJson = this.chapTools.askJson.askJson;
  19072. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  19073. this.askJson.askCount = this.chapTools.askJson.askCount;
  19074. }
  19075. for (var k = 0; k < this.askJson.askJson.length; k++) {
  19076. if (this.askJson.askJson[k].type == "2") {
  19077. this.radio.push([]);
  19078. } else {
  19079. this.radio.push("");
  19080. }
  19081. }
  19082. this.dialogVisible5 = true;
  19083. // window.topU.postMessage({ tools: "4" }, "*");
  19084. } else if (t == 45) {
  19085. this.noteName = "";
  19086. this.radio = [];
  19087. this.isAnswer = false;
  19088. if (this.askCount > 0) {
  19089. this.updateCount(this.askCount, t);
  19090. } else {
  19091. this.askCount++;
  19092. a = this.askCount;
  19093. this.toolsCount(a, t);
  19094. }
  19095. this.testJson =
  19096. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19097. index
  19098. ].toolChoose[i].testJson;
  19099. for (var k = 0; k < this.testJson.testJson.length; k++) {
  19100. if (this.testJson.testJson[k].type == "2") {
  19101. this.radio.push([]);
  19102. } else {
  19103. this.radio.push("");
  19104. }
  19105. }
  19106. this.dialogVisibleChoice = true;
  19107. // window.topU.postMessage({ tools: "4" }, "*");
  19108. } else if (t == 5) {
  19109. if (this.scoreCount > 0) {
  19110. this.updateCount(this.scoreCount, t);
  19111. } else {
  19112. this.scoreCount++;
  19113. a = this.scoreCount;
  19114. this.toolsCount(a, t);
  19115. }
  19116. this.dialogVisible4 = true;
  19117. // window.topU.postMessage({ tools: "5" }, "*");
  19118. } else if (t == 6) {
  19119. if (this.noteCount > 0) {
  19120. this.updateCount(this.noteCount, t);
  19121. } else {
  19122. this.noteCount++;
  19123. a = this.noteCount;
  19124. this.toolsCount(a, t);
  19125. }
  19126. window.topU.postMessage(
  19127. {
  19128. tools: "6",
  19129. cid: this.id,
  19130. stage: this.courseType,
  19131. task: this.taskCount,
  19132. tool: i,
  19133. },
  19134. "*"
  19135. );
  19136. } else if (t == 7) {
  19137. if (this.mindNetWorkCount > 0) {
  19138. this.updateCount(this.mindNetWorkCount, t);
  19139. } else {
  19140. this.mindNetWorkCount++;
  19141. a = this.mindNetWorkCount;
  19142. this.toolsCount(a, t);
  19143. }
  19144. window.topU.postMessage(
  19145. {
  19146. tools: "7",
  19147. cid: this.id,
  19148. stage: this.courseType,
  19149. task: this.taskCount,
  19150. tool: i,
  19151. },
  19152. "*"
  19153. );
  19154. } else if (t == 16) {
  19155. if (this.workCount > 0) {
  19156. this.updateCount(this.workCount, t);
  19157. } else {
  19158. this.workCount++;
  19159. a = this.workCount;
  19160. this.toolsCount(a, t);
  19161. }
  19162. this.dialogVisible = true;
  19163. } else if (t == 50) {
  19164. if (this.tType == 2) {
  19165. this.$message.error("不支持学生使用");
  19166. return;
  19167. }
  19168. this.plworkFile = [];
  19169. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19170. if (!this.uploadCid) {
  19171. this.$message.error(
  19172. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19173. );
  19174. return;
  19175. }
  19176. // this.uploadCid =
  19177. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19178. // index
  19179. // ].toolChoose[i].uploadJson[0];
  19180. this.selectUploadStudent(2);
  19181. } else if (t == 8) {
  19182. if (this.libraryCount > 0) {
  19183. this.updateCount(this.libraryCount, t);
  19184. } else {
  19185. this.libraryCount++;
  19186. a = this.libraryCount;
  19187. this.toolsCount(a, t);
  19188. }
  19189. window.topU.postMessage({ tools: "8" }, "*");
  19190. } else if (t == 17) {
  19191. if (this.libraryCount > 0) {
  19192. this.updateCount(this.libraryCount, t);
  19193. } else {
  19194. this.libraryCount++;
  19195. a = this.libraryCount;
  19196. this.toolsCount(a, t);
  19197. }
  19198. window.topU.postMessage({ tools: "17" }, "*");
  19199. } else if (t == 18) {
  19200. if (this.trainCount > 0) {
  19201. this.updateCount(this.trainCount, t);
  19202. } else {
  19203. this.trainCount++;
  19204. a = this.trainCount;
  19205. this.toolsCount(a, t);
  19206. }
  19207. window.topU.postMessage({ tools: "18" }, "*");
  19208. } else if (t == 10) {
  19209. if (this.timeCount > 0) {
  19210. this.updateCount(this.timeCount, t);
  19211. } else {
  19212. this.timeCount++;
  19213. a = this.timeCount;
  19214. this.toolsCount(a, t);
  19215. }
  19216. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  19217. .taskJson[index].toolChoose[i].preTime
  19218. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19219. .toolChoose[i].preTime
  19220. : "";
  19221. this.timeDialogVisible = true;
  19222. } else if (t == 15) {
  19223. this.answerQ = "";
  19224. this.questionAnswer = "";
  19225. if (this.answerCount > 0) {
  19226. this.updateCount(this.answerCount, t);
  19227. } else {
  19228. this.answerCount++;
  19229. a = this.answerCount;
  19230. this.toolsCount(a, t);
  19231. }
  19232. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19233. .taskJson[index].toolChoose[i].answerQ
  19234. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19235. .toolChoose[i].answerQ
  19236. : "";
  19237. this.answerDialogVisible = true;
  19238. } else if (t == 21) {
  19239. window.topU.postMessage({ tools: "21" }, "*");
  19240. } else if (t == 22) {
  19241. window.topU.postMessage({ tools: "22" }, "*");
  19242. } else if (t == 23) {
  19243. window.topU.postMessage({ tools: "23" }, "*");
  19244. } else if (t == 24) {
  19245. window.topU.postMessage({ tools: "24" }, "*");
  19246. } else if (t == 25) {
  19247. window.topU.postMessage({ tools: "25" }, "*");
  19248. } else if (t == 31) {
  19249. window.topU.postMessage({ tools: "31" }, "*");
  19250. } else if (t == 28) {
  19251. window.topU.postMessage({ tools: "28" }, "*");
  19252. } else if (t == 37) {
  19253. window.topU.postMessage({ tools: "37" }, "*");
  19254. } else if (t == 38) {
  19255. window.topU.postMessage({ tools: "38" }, "*");
  19256. } else if (t == 39) {
  19257. window.topU.postMessage({ tools: "39" }, "*");
  19258. } else if (t == 32) {
  19259. window.topU.postMessage({ tools: "32" }, "*");
  19260. } else if (t == 66) {
  19261. window.topU.postMessage({ tools: "66" }, "*");
  19262. } else if (t == 67) {
  19263. window.topU.postMessage({ tools: "67" }, "*");
  19264. } else if (t == 68) {
  19265. window.topU.postMessage({ tools: "68" }, "*");
  19266. } else if (t == 57) {
  19267. // window.topU.postMessage({ tools: "57" }, "*");
  19268. window.topU.postMessage(
  19269. {
  19270. tools: "57u",
  19271. cid: this.id,
  19272. stage: this.courseType,
  19273. task: this.taskCount,
  19274. tool: i,
  19275. },
  19276. "*"
  19277. );
  19278. } else if (t == 58) {
  19279. window.topU.postMessage({ tools: "58" }, "*");
  19280. } else if (t == 59) {
  19281. window.topU.postMessage({ tools: "59" }, "*");
  19282. } else if (t == 60) {
  19283. window.topU.postMessage({ tools: "60" }, "*");
  19284. } else if (t == 61) {
  19285. window.topU.postMessage({ tools: "61" }, "*");
  19286. } else if (t == 63) {
  19287. window.topU.postMessage({ tools: "63" }, "*");
  19288. } else if (t == 71) {
  19289. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  19290. // this.$message.error("该工具不可使用");
  19291. // return
  19292. // }
  19293. window.topU.postMessage({ tools: "71" }, "*");
  19294. } else if (t == 72) {
  19295. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  19296. .taskJson[index].toolChoose[i].appJson
  19297. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19298. .toolChoose[i].appJson
  19299. : "";
  19300. if(!item || !item.url){
  19301. this.$message.error("应用连接为空, 请到课程管理中添加");
  19302. return;
  19303. }
  19304. if (!document.fullscreenElement) {
  19305. this.enterFullScreen();
  19306. }
  19307. this.$refs.appStoreC.getData(item.url,this.userid)
  19308. // window.topU.postMessage({ tools: "72", data: item }, "*");
  19309. // window.open(item.url, "_blank");
  19310. } else if (t == 69) {
  19311. if (this.worksStudent[i].length) {
  19312. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19313. if (this.userid == this.worksStudent[i][k].userid) {
  19314. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  19315. break;
  19316. } else {
  19317. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  19318. }
  19319. }
  19320. } else {
  19321. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  19322. }
  19323. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  19324. .taskJson[index].toolChoose[i].englishList
  19325. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19326. .toolChoose[i].englishList
  19327. : {};
  19328. this.englishToolIndex = i;
  19329. this.myAnList = this.myAnswerList1;
  19330. this.engDialogVisible = true;
  19331. } else if (t == 70) {
  19332. if (this.worksStudent[i].length) {
  19333. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19334. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  19335. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  19336. break;
  19337. } else {
  19338. this.englishVoiceJsonWork = [];
  19339. }
  19340. }
  19341. } else {
  19342. this.englishVoiceJsonWork = [];
  19343. }
  19344. let englishVoiceJson = {}
  19345. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19346. .taskJson[index].toolChoose[i].englishVoiceJson
  19347. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19348. .toolChoose[i].englishVoiceJson
  19349. : {};
  19350. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  19351. this.EnglishVoiceDialog = true;
  19352. } else if (t == 65) {
  19353. if (this.tType == 2) {
  19354. this.$message.error("不支持学生使用");
  19355. return;
  19356. }
  19357. this.uploadCid = this.tcid;
  19358. if (!this.uploadCid) {
  19359. this.$message.error(
  19360. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  19361. );
  19362. return;
  19363. }
  19364. this.selectPickStudent();
  19365. } else if (t == 26) {
  19366. window.topU.postMessage(
  19367. {
  19368. tools: "26",
  19369. cid: this.id,
  19370. stage: this.courseType,
  19371. task: this.taskCount,
  19372. tool: i,
  19373. },
  19374. "*"
  19375. );
  19376. } else if (t == 40) {
  19377. if (this.evalCount > 0) {
  19378. this.updateCount(this.evalCount, t);
  19379. } else {
  19380. this.evalCount++;
  19381. a = this.evalCount;
  19382. this.toolsCount(a, t);
  19383. }
  19384. this.eScore = { eBzText: "", eStar: [] };
  19385. if (this.worksStudent[i].length) {
  19386. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19387. if (this.userid == this.worksStudent[i][k].userid) {
  19388. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19389. this.rateJson =
  19390. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19391. index
  19392. ].toolChoose[i].rateJson;
  19393. break;
  19394. } else {
  19395. this.rateJson =
  19396. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19397. index
  19398. ].toolChoose[i].rateJson;
  19399. }
  19400. }
  19401. } else {
  19402. this.rateJson =
  19403. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19404. index
  19405. ].toolChoose[i].rateJson;
  19406. }
  19407. this.isStar = false;
  19408. this.studentEvalDialogVisible = true;
  19409. } else if (t == 41) {
  19410. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19411. .taskJson[index].toolChoose[i].selectJson
  19412. ? JSON.parse(
  19413. JSON.stringify(
  19414. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19415. index
  19416. ].toolChoose[i].selectJson
  19417. )
  19418. )
  19419. : { url: "", select: [], answer: [] };
  19420. if (this.worksStudent[i].length) {
  19421. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19422. if (this.userid == this.worksStudent[i][k].userid) {
  19423. var a = this.worksStudent[i][k].works.split(",");
  19424. for (var ki = 0; ki < a.length; ki++) {
  19425. a[ki] = parseInt(a[ki]);
  19426. }
  19427. this.selectAnswer = {
  19428. answer: a,
  19429. stu: this.worksStudent[i][k].sName,
  19430. };
  19431. break;
  19432. } else {
  19433. this.selectAnswer = { answer: [], stu: "" };
  19434. }
  19435. }
  19436. } else {
  19437. this.selectAnswer = { answer: [], stu: "" };
  19438. }
  19439. this.isSelect = false;
  19440. this.dialogVisibleSelect = true;
  19441. } else if (t == 44) {
  19442. window.topU.postMessage({ tools: "44" }, "*");
  19443. } else if (t == 47) {
  19444. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19445. .taskJson[index].toolChoose[i].sentenceList
  19446. ? JSON.parse(
  19447. JSON.stringify(
  19448. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19449. index
  19450. ].toolChoose[i].sentenceList
  19451. )
  19452. )
  19453. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19454. for (var q = 0; q < this.sentenceList.length; q++) {
  19455. this.sentenceList[q].chooseSenList = [];
  19456. this.sentenceList[q].addChangeSen = [];
  19457. this.sentenceList[q].addChangeSen = JSON.parse(
  19458. JSON.stringify(this.sentenceList[q].addSentence)
  19459. );
  19460. this.sentenceList[q].chooseSenList.length =
  19461. this.sentenceList[q].rightAnswer.length;
  19462. }
  19463. this.dialogVisibleSentence = true;
  19464. } else if (t == 48) {
  19465. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19466. .taskJson[index].toolChoose[i].tableJson
  19467. ? JSON.parse(
  19468. JSON.stringify(
  19469. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19470. index
  19471. ].toolChoose[i].tableJson
  19472. )
  19473. )
  19474. : { text: "" };
  19475. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  19476. if (this.worksStudent[i].length) {
  19477. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19478. if (this.userid == this.worksStudent[i][k].userid) {
  19479. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19480. break;
  19481. }
  19482. }
  19483. }
  19484. this.dialogVisibleTable = true;
  19485. } else if (t == 52) {
  19486. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19487. .taskJson[index].toolChoose[i].wordJson
  19488. ? JSON.parse(
  19489. JSON.stringify(
  19490. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19491. index
  19492. ].toolChoose[i].wordJson
  19493. )
  19494. )
  19495. : { text: "" };
  19496. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  19497. if (this.worksStudent[i].length) {
  19498. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19499. if (this.userid == this.worksStudent[i][k].userid) {
  19500. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19501. break;
  19502. }
  19503. }
  19504. }
  19505. this.dialogVisibleWord = true;
  19506. } else if (t == 49) {
  19507. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  19508. return
  19509. }
  19510. this.groupJson =
  19511. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19512. index
  19513. ].toolChoose[i].groupJson;
  19514. this.islock = this.groupJson.islock == 1 ? true : false;
  19515. this.dialogVisibleGroup = true;
  19516. } else if (t == 62) {
  19517. this.videoType = 0;
  19518. this.videoJson = {};
  19519. this.videoJson =
  19520. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19521. index
  19522. ].toolChoose[i].videoJson;
  19523. this.dialogVisibleVideo = true;
  19524. }
  19525. this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
  19526. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  19527. },
  19528. teacherWorkSubmit(t, i, index, s) {
  19529. console.log('t',t);
  19530. if(t == 72) return
  19531. this.sStudent = s;
  19532. this.toolindex = i;
  19533. this.sTool = t;
  19534. if (this.tType !== "1" && this.tType !== "4") {
  19535. return;
  19536. }
  19537. if (t == 16 || t == 32 || t == 50) {
  19538. this.dialogVisibleWorks = true;
  19539. } else if (t == 15) {
  19540. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19541. .taskJson[index].toolChoose[i].answerQ
  19542. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19543. .toolChoose[i].answerQ
  19544. : "";
  19545. this.questionAnswer = "";
  19546. this.answerDialogVisibleTeacher = true; //问答
  19547. } else if (t == 52) {
  19548. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19549. .taskJson[index].toolChoose[i].wordJson
  19550. ? JSON.parse(
  19551. JSON.stringify(
  19552. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19553. index
  19554. ].toolChoose[i].wordJson
  19555. )
  19556. )
  19557. : { text: "" };
  19558. if (this.worksStudent[i].length) {
  19559. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19560. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19561. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19562. break;
  19563. }
  19564. }
  19565. }
  19566. this.dialogVisibleWordTeacher = true; //文档
  19567. } else if (t == 4) {
  19568. this.radio = [];
  19569. this.noteName = "";
  19570. this.isAnswer = false;
  19571. if (this.askCount > 0) {
  19572. this.updateCount(this.askCount, t);
  19573. } else {
  19574. this.askCount++;
  19575. a = this.askCount;
  19576. this.toolsCount(a, t);
  19577. }
  19578. if (!this.dialogVisible2) {
  19579. this.askJson.askJson =
  19580. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19581. index
  19582. ].toolChoose[i].askJson;
  19583. this.askJson.askTitle =
  19584. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19585. index
  19586. ].toolChoose[i].askTitle;
  19587. this.askJson.askCount =
  19588. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19589. index
  19590. ].toolChoose[i].askCount;
  19591. } else {
  19592. this.askJson.askJson = this.chapTools.askJson.askJson;
  19593. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  19594. this.askJson.askCount = this.chapTools.askJson.askCount;
  19595. }
  19596. for (var k = 0; k < this.askJson.askJson.length; k++) {
  19597. if (this.askJson.askJson[k].type == "2") {
  19598. this.radio.push([]);
  19599. } else {
  19600. this.radio.push("");
  19601. }
  19602. }
  19603. this.dialogVisible5Teacher = true;
  19604. } else if (t == 45) {
  19605. this.noteName = "";
  19606. this.radio = [];
  19607. this.isAnswer = false;
  19608. if (this.askCount > 0) {
  19609. this.updateCount(this.askCount, t);
  19610. } else {
  19611. this.askCount++;
  19612. a = this.askCount;
  19613. this.toolsCount(a, t);
  19614. }
  19615. this.testJson =
  19616. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19617. index
  19618. ].toolChoose[i].testJson;
  19619. for (var k = 0; k < this.testJson.testJson.length; k++) {
  19620. if (this.testJson.testJson[k].type == "2") {
  19621. this.radio.push([]);
  19622. } else {
  19623. this.radio.push("");
  19624. }
  19625. }
  19626. this.dialogVisibleChoiceTeacher = true;
  19627. } else if (t == 41) {
  19628. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19629. .taskJson[index].toolChoose[i].selectJson
  19630. ? JSON.parse(
  19631. JSON.stringify(
  19632. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19633. index
  19634. ].toolChoose[i].selectJson
  19635. )
  19636. )
  19637. : { url: "", select: [], answer: [] };
  19638. if (this.worksStudent[i].length) {
  19639. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19640. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19641. var a = this.worksStudent[i][k].works.split(",");
  19642. for (var ki = 0; ki < a.length; ki++) {
  19643. a[ki] = parseInt(a[ki]);
  19644. }
  19645. this.selectAnswer = {
  19646. answer: a,
  19647. stu: this.worksStudent[i][k].sName,
  19648. };
  19649. break;
  19650. } else {
  19651. this.selectAnswer = { answer: [], stu: "" };
  19652. }
  19653. }
  19654. } else {
  19655. this.selectAnswer = { answer: [], stu: "" };
  19656. }
  19657. this.isSelect = false;
  19658. this.dialogVisibleSelectTeacher = true;
  19659. } else if (t == 47) {
  19660. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19661. .taskJson[index].toolChoose[i].sentenceList
  19662. ? JSON.parse(
  19663. JSON.stringify(
  19664. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19665. index
  19666. ].toolChoose[i].sentenceList
  19667. )
  19668. )
  19669. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19670. for (var q = 0; q < this.sentenceList.length; q++) {
  19671. this.sentenceList[q].chooseSenList = [];
  19672. this.sentenceList[q].addChangeSen = [];
  19673. this.sentenceList[q].addChangeSen = JSON.parse(
  19674. JSON.stringify(this.sentenceList[q].addSentence)
  19675. );
  19676. this.sentenceList[q].chooseSenList.length =
  19677. this.sentenceList[q].rightAnswer.length;
  19678. }
  19679. this.dialogVisibleSentenceTeacher = true;
  19680. } else if (t == 48) {
  19681. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19682. .taskJson[index].toolChoose[i].tableJson
  19683. ? JSON.parse(
  19684. JSON.stringify(
  19685. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19686. index
  19687. ].toolChoose[i].tableJson
  19688. )
  19689. )
  19690. : { text: "" };
  19691. if (this.worksStudent[i].length) {
  19692. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19693. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19694. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19695. break;
  19696. }
  19697. }
  19698. }
  19699. this.dialogVisibleTableTeacher = true;
  19700. } else if (t == 40) {
  19701. if (this.evalCount > 0) {
  19702. this.updateCount(this.evalCount, t);
  19703. } else {
  19704. this.evalCount++;
  19705. a = this.evalCount;
  19706. this.toolsCount(a, t);
  19707. }
  19708. this.eScore = { eBzText: "", eStar: [] };
  19709. if (this.worksStudent[i].length) {
  19710. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19711. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19712. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19713. this.rateJson =
  19714. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19715. index
  19716. ].toolChoose[i].rateJson;
  19717. break;
  19718. } else {
  19719. this.rateJson =
  19720. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19721. index
  19722. ].toolChoose[i].rateJson;
  19723. }
  19724. }
  19725. } else {
  19726. this.rateJson =
  19727. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19728. index
  19729. ].toolChoose[i].rateJson;
  19730. }
  19731. this.isStar = false;
  19732. this.studentEvalDialogVisibleTeacher = true;
  19733. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  19734. window.topU.postMessage(
  19735. {
  19736. tools: t + "teacher",
  19737. cid: this.id,
  19738. stage: this.courseType,
  19739. task: this.taskCount,
  19740. tool: i,
  19741. student: this.sStudent,
  19742. },
  19743. "*"
  19744. );
  19745. }else if (t == 72) {
  19746. if (!document.fullscreenElement) {
  19747. this.enterFullScreen();
  19748. }
  19749. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  19750. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  19751. }
  19752. },
  19753. openCocoPi(tool, i, uid, uname) {
  19754. let student = {
  19755. userid: uid,
  19756. student: uname,
  19757. };
  19758. if (tool == 57) {
  19759. window.topU.postMessage(
  19760. {
  19761. tools: tool + "teacher",
  19762. cid: this.id,
  19763. stage: this.courseType,
  19764. task: this.taskCount,
  19765. tool: i,
  19766. student: student,
  19767. },
  19768. "*"
  19769. );
  19770. }
  19771. },
  19772. setRightAnswer(s, i, j) {
  19773. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  19774. if (
  19775. this.sentenceList[i].chooseSenList[q] == undefined ||
  19776. this.sentenceList[i].chooseSenList[q] == ""
  19777. ) {
  19778. this.sentenceList[i].chooseSenList[q] = s;
  19779. this.sentenceList[i].addChangeSen[j] = "";
  19780. break;
  19781. }
  19782. }
  19783. this.$forceUpdate();
  19784. },
  19785. returnCard(r, i, j) {
  19786. var a = this.sentenceList[i].addSentence.indexOf(r);
  19787. this.sentenceList[i].chooseSenList[j] = "";
  19788. this.sentenceList[i].addChangeSen[a] = r;
  19789. this.$forceUpdate();
  19790. },
  19791. // addSentenceTool() {
  19792. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19793. // this.taskCount
  19794. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  19795. // this.sentenceList = [
  19796. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  19797. // ];
  19798. // this.dialogVisibleSentence = false;
  19799. // },
  19800. toolsCount(a, t) {
  19801. let params = {
  19802. cid: this.id,
  19803. chid: this.courseType,
  19804. uid: this.userid,
  19805. tid: t,
  19806. count: a,
  19807. };
  19808. this.ajax
  19809. .get(this.$store.state.api + "insertToolsCount", params)
  19810. .then((res) => {
  19811. this.selectCount();
  19812. })
  19813. .catch((err) => {
  19814. console.error(err);
  19815. });
  19816. },
  19817. updateCount(c, t) {
  19818. c++;
  19819. let params = {
  19820. cid: this.id,
  19821. chid: this.courseType,
  19822. uid: this.userid,
  19823. tid: t,
  19824. count: c,
  19825. };
  19826. this.ajax
  19827. .get(this.$store.state.api + "updateToolsCount", params)
  19828. .then((res) => {
  19829. this.selectCount();
  19830. })
  19831. .catch((err) => {
  19832. console.error(err);
  19833. });
  19834. },
  19835. checkEva() {
  19836. if (this.evalua != "") {
  19837. for (var i = 0; i < this.evaJuri.length; i++) {
  19838. if (this.evalua == this.evaJuri[i].id) {
  19839. this.eTitle = this.evaJuri[i].title;
  19840. this.eJson = JSON.parse(this.evaJuri[i].content);
  19841. }
  19842. }
  19843. this.$forceUpdate();
  19844. setTimeout(() => {
  19845. this.setMindData();
  19846. }, 0);
  19847. }
  19848. },
  19849. selectEva() {
  19850. let params = {
  19851. oid: this.oid,
  19852. };
  19853. this.ajax
  19854. .get(this.$store.state.api + "selectAllEvaluation", params)
  19855. .then((res) => {
  19856. this.evaJuri = res.data[0];
  19857. })
  19858. .catch((err) => {
  19859. console.error(err);
  19860. });
  19861. },
  19862. setMindData() {
  19863. this.data.data = [];
  19864. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  19865. let _eJson = Object.keys(this.eJson);
  19866. let _e = this.eJson;
  19867. for (let i = 0; i < _eJson.length; i++) {
  19868. let element = _e[_eJson[i]];
  19869. this.data.data.push({
  19870. id: element.id,
  19871. parentid: "root",
  19872. topic: element.name,
  19873. });
  19874. let _eJsonc = Object.keys(element.child);
  19875. let _e2 = element.child;
  19876. for (let j = 0; j < _eJsonc.length; j++) {
  19877. let _ec = _e2[_eJsonc[j]];
  19878. this.data.data.push({
  19879. id: _ec.id,
  19880. parentid: element.id,
  19881. topic: _ec.name,
  19882. });
  19883. let _eJsonz = Object.keys(_ec.child);
  19884. let _e3 = _ec.child;
  19885. for (let z = 0; z < _eJsonz.length; z++) {
  19886. let _ez = _e3[_eJsonz[z]];
  19887. this.data.data.push({
  19888. id: _ez.id,
  19889. parentid: _ec.id,
  19890. topic: _ez.name,
  19891. });
  19892. }
  19893. }
  19894. }
  19895. this.$forceUpdate();
  19896. },
  19897. checkFileFull(type, url) {
  19898. this.fullDialogVisible = true;
  19899. this.fulltype = type;
  19900. this.fullUrl = url;
  19901. },
  19902. async checkFileFull1(t, f) {
  19903. this.fullDialogVisible = true;
  19904. if (t == 6) {
  19905. this.fulltype = 1;
  19906. console.log('checkFileFull1',f);
  19907. this.fullUrl = JSON.parse(JSON.stringify(f));
  19908. } else if (t == 8) {
  19909. this.fulltype = 2;
  19910. this.fullUrl = f.url;
  19911. } else if (t == 16) {
  19912. this.fulltype = 16;
  19913. this.fullUrl = f.url;
  19914. } else if (t == 15) {
  19915. this.fulltype = 4;
  19916. this.fullUrl = f.url;
  19917. } else if (
  19918. t == 3 &&
  19919. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  19920. "PDF"
  19921. ) {
  19922. this.fulltype = 3;
  19923. this.fullUrl = f.url;
  19924. } else if (t == 3) {
  19925. this.fulltype = 2;
  19926. let _uuurl = await this.checkLink(f.url);
  19927. console.log(_uuurl)
  19928. this.fullUrl =
  19929. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  19930. }
  19931. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  19932. },
  19933. openSname(n, id, i, uid) {
  19934. this.snameWid = id;
  19935. this.worksSName = n;
  19936. this.worksSid = uid == n ? "" : uid;
  19937. this.toolindex = i;
  19938. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19939. if (!this.uploadCid) {
  19940. this.$message.error(
  19941. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19942. );
  19943. return;
  19944. }
  19945. this.selectUploadStudent(1);
  19946. },
  19947. updateName() {
  19948. let params = {
  19949. n: this.worksSName,
  19950. cid: this.snameWid,
  19951. };
  19952. this.ajax
  19953. .get(this.$store.state.api + "updateCourseWorksName", params)
  19954. .then((res) => {
  19955. this.$message({
  19956. message: "修改成功",
  19957. type: "success",
  19958. });
  19959. this.dialogVisibleSname = false;
  19960. this.getCourseDetail(2);
  19961. this.snameWid = "";
  19962. this.worksSName = "";
  19963. })
  19964. .catch((err) => {
  19965. console.error(err);
  19966. });
  19967. },
  19968. downloadFile2(f) {
  19969. // const loading = this.$loading.service({
  19970. // background: "rgba(255, 255, 255, 0.7)",
  19971. // target: document.body,
  19972. // text: "文件加载中...",
  19973. // });
  19974. // let url2 = f.url;
  19975. // let _url2 = "";
  19976. // if (
  19977. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19978. // ) {
  19979. // _url2 = url2.split(
  19980. // "https://view.officeapps.live.com/op/view.aspx?src="
  19981. // )[1];
  19982. // } else {
  19983. // _url2 = url2;
  19984. // }
  19985. // let params = {
  19986. // url: _url2,
  19987. // name: f.name,
  19988. // };
  19989. // this.ajax
  19990. // .get(this.$store.state.api + "download", params)
  19991. // .then((res) => {
  19992. // loading.close();
  19993. // let content = res.data.data.data;
  19994. // let ab = new ArrayBuffer(content.length);
  19995. // let view = new Uint8Array(ab);
  19996. // for (var i = 0; i < content.length; ++i) {
  19997. // view[i] = content[i];
  19998. // }
  19999. // let elink = document.createElement("a");
  20000. // elink.download = f.name;
  20001. // elink.style.display = "none";
  20002. // let blob = new Blob([ab], {
  20003. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  20004. // });
  20005. // elink.href = URL.createObjectURL(blob);
  20006. // document.body.appendChild(elink);
  20007. // elink.click();
  20008. // document.body.removeChild(elink);
  20009. // })
  20010. // .catch((err) => {
  20011. // loading.close();
  20012. // console.error(err);
  20013. // });
  20014. var credentials = {
  20015. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20016. secretAccessKey: "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",
  20017. }; //秘钥形式的登录上传
  20018. window.AWS.config.update(credentials);
  20019. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20020. let url2 = f.url;
  20021. let _url2 = "";
  20022. if (
  20023. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20024. ) {
  20025. _url2 = url2.split(
  20026. "https://view.officeapps.live.com/op/view.aspx?src="
  20027. )[1];
  20028. } else {
  20029. _url2 = url2;
  20030. }
  20031. let _this = this;
  20032. _this.downLoading = true
  20033. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  20034. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  20035. var params = {
  20036. Bucket: "ccrb",
  20037. Key: name
  20038. };
  20039. s3.getObject(params, function (err, data) {
  20040. _this.downLoading = false
  20041. if (err) console.log(err, err.stack); // an error occurred
  20042. else {
  20043. let url = window.URL.createObjectURL(new Blob([data.Body]));
  20044. let a = document.createElement("a");
  20045. a.name = f.name;
  20046. a.href = url;
  20047. a.download = f.name;
  20048. a.click();
  20049. console.log(data);
  20050. } // sxuccessful response
  20051. });
  20052. return;
  20053. let url = f.url;
  20054. let _url = "";
  20055. if (
  20056. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20057. ) {
  20058. _url = url.split(
  20059. "https://view.officeapps.live.com/op/view.aspx?src="
  20060. )[1];
  20061. } else {
  20062. _url = url;
  20063. }
  20064. _this.downLoading = true
  20065. // const loading = _this.$loading.service({
  20066. // background: "rgba(255, 255, 255, 0.7)",
  20067. // target: document.body,
  20068. // text: "文件加载中...",
  20069. // });
  20070. let x = new XMLHttpRequest();
  20071. x.open("GET", _url, true);
  20072. x.responseType = "blob";
  20073. x.onload = function () {
  20074. _this.downLoading = false
  20075. // loading.close();
  20076. let url = window.URL.createObjectURL(new Blob([x.response]));
  20077. let a = document.createElement("a");
  20078. a.name = f.name;
  20079. a.href = url;
  20080. a.download = f.name;
  20081. a.click();
  20082. };
  20083. x.send();
  20084. },
  20085. downloadFile(url,uid) {
  20086. if (this.tType == 1 || this.userid == uid) {
  20087. var credentials = {
  20088. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20089. secretAccessKey: "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",
  20090. }; //秘钥形式的登录上传
  20091. window.AWS.config.update(credentials);
  20092. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20093. let url2 = url;
  20094. let _url2 = "";
  20095. if (
  20096. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20097. ) {
  20098. _url2 = url2.split(
  20099. "https://view.officeapps.live.com/op/view.aspx?src="
  20100. )[1];
  20101. } else {
  20102. _url2 = url2;
  20103. }
  20104. const loading2 = this.$loading.service({
  20105. background: "rgba(255, 255, 255, 0.7)",
  20106. target: document.body,
  20107. text: "文件加载中...",
  20108. });
  20109. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  20110. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  20111. var params = {
  20112. Bucket: "ccrb",
  20113. Key: name
  20114. };
  20115. s3.getObject(params, function (err, data) {
  20116. loading2.close();
  20117. if (err) console.log(err, err.stack); // an error occurred
  20118. else {
  20119. let url = window.URL.createObjectURL(new Blob([data.Body]));
  20120. let a = document.createElement("a");
  20121. a.name = name;
  20122. a.href = url;
  20123. a.download = name;
  20124. a.click();
  20125. console.log(data);
  20126. } // sxuccessful response
  20127. });
  20128. }
  20129. return;
  20130. let _this = this;
  20131. let _url = "";
  20132. if (
  20133. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20134. ) {
  20135. _url = url.split(
  20136. "https://view.officeapps.live.com/op/view.aspx?src="
  20137. )[1];
  20138. } else {
  20139. _url = url;
  20140. }
  20141. const x = new XMLHttpRequest();
  20142. x.open("GET", _url, true);
  20143. x.responseType = "blob";
  20144. // this.downLoading = true
  20145. const loading = _this.$loading.service({
  20146. background: "rgba(255, 255, 255, 0.7)",
  20147. target: document.body,
  20148. text: "文件加载中...",
  20149. });
  20150. // _this.$message.success("文件下载中...");
  20151. x.onload = function (e) {
  20152. this.downLoading = false
  20153. loading.close();
  20154. let content = x.response;
  20155. let elink = document.createElement("a");
  20156. elink.download = decodeURI(
  20157. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  20158. );
  20159. elink.style.display = "none";
  20160. let blob = new Blob([content]);
  20161. elink.href = URL.createObjectURL(blob);
  20162. document.body.appendChild(elink);
  20163. elink.click();
  20164. document.body.removeChild(elink);
  20165. };
  20166. x.send();
  20167. },
  20168. openLine(url) {
  20169. window.open(url);
  20170. },
  20171. resize() {
  20172. if (document.getElementsByClassName("box_course").length) {
  20173. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20174. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20175. if (this.showType == 2 || this.showType == 3) {
  20176. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  20177. document.getElementsByClassName("navBox")[0].style.height =
  20178. a - 40 + 0+ "px";
  20179. }
  20180. } else {
  20181. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  20182. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  20183. }
  20184. }
  20185. }
  20186. this.Stbodywidth =
  20187. document.getElementsByClassName("student_body").length &&
  20188. document.getElementsByClassName("student_body")[0].offsetWidth;
  20189. },
  20190. closeDraw() {
  20191. this.bg = null;
  20192. this.drawShow = false;
  20193. },
  20194. showPicturePaint(url) {
  20195. let params = {
  20196. img: url,
  20197. };
  20198. this.ajax
  20199. .get(this.$store.state.api + "imgToBase64", params)
  20200. .then((res) => {
  20201. this.drawShow = true;
  20202. this.bg = res.data[0].img;
  20203. })
  20204. .catch((err) => {
  20205. console.error(err);
  20206. });
  20207. },
  20208. addImgDraw(base64) {
  20209. let file = { name: "批注图.png" };
  20210. let img = this.dataUrlToFile(base64, file);
  20211. this.beforeUpload1(img, 5);
  20212. },
  20213. addImgDrawImG(url) {
  20214. // console.log(url);
  20215. let params = [
  20216. {
  20217. wid: this.commentDetail.wid,
  20218. img: url,
  20219. },
  20220. ];
  20221. this.ajax
  20222. .post(this.$store.state.api + "updateCourseWorks", params)
  20223. .then((res) => {
  20224. this.$message({
  20225. message: "提交成功",
  20226. type: "success",
  20227. });
  20228. this.drawShow = false;
  20229. this.bg = "";
  20230. this.selectSWorks();
  20231. this.selectStudent();
  20232. })
  20233. .catch((err) => {
  20234. this.$message.error("提交失败");
  20235. console.error(err);
  20236. });
  20237. },
  20238. deletePicturePaint() {
  20239. this.$confirm("确定删除此批注吗?", "提示", {
  20240. confirmButtonText: "确定",
  20241. cancelButtonText: "取消",
  20242. type: "warning",
  20243. })
  20244. .then(() => {
  20245. let params = [
  20246. {
  20247. wid: this.commentDetail.wid,
  20248. img: "",
  20249. },
  20250. ];
  20251. this.ajax
  20252. .post(this.$store.state.api + "updateCourseWorks", params)
  20253. .then((res) => {
  20254. this.$message({
  20255. message: "删除成功",
  20256. type: "success",
  20257. });
  20258. this.selectSWorks();
  20259. this.selectStudent();
  20260. })
  20261. .catch((err) => {
  20262. this.$message.error("删除失败");
  20263. console.error(err);
  20264. });
  20265. })
  20266. .catch(() => {});
  20267. },
  20268. getAudioVideo(constraintsData) {
  20269. if (navigator.mediaDevices === undefined) {
  20270. navigator.mediaDevices = {};
  20271. }
  20272. if (navigator.mediaDevices.getUserMedia === undefined) {
  20273. navigator.mediaDevices.getUserMedia = function (constraints) {
  20274. // 首先,如果有getUserMedia的话,就获得它
  20275. var getUserMedia =
  20276. navigator.getUserMedia ||
  20277. navigator.webkitGetUserMedia ||
  20278. navigator.mozGetUserMedia ||
  20279. navigator.msGetUserMedia;
  20280. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  20281. if (!getUserMedia) {
  20282. return Promise.reject({ code: 404 });
  20283. }
  20284. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  20285. return new Promise(function (resolve, reject) {
  20286. getUserMedia.call(navigator, constraints, resolve, reject);
  20287. });
  20288. };
  20289. }
  20290. return navigator.mediaDevices.getUserMedia(constraintsData);
  20291. },
  20292. /**
  20293. * 开始录制
  20294. */
  20295. startRecording(callback) {
  20296. let _function = (screenStream) => {
  20297. this.addStreamStopListener(screenStream, () => {
  20298. console.log("流停止监听");
  20299. this.stopRecording();
  20300. this.$emit("streamStop", {});
  20301. // this.stopRecording();
  20302. });
  20303. var options = {
  20304. type: "video",
  20305. mimeType: "video/webm",
  20306. disableLogs: false,
  20307. getNativeBlob: false, // enable it for longer recordings
  20308. ignoreMutedMedia: false,
  20309. };
  20310. // this.video.srcObject = screenStream;
  20311. this.recorder = RecordRTC(screenStream, options);
  20312. this.recorder.startRecording();
  20313. this.recorder.screen = screenStream;
  20314. this.videoStart = true;
  20315. // callback(true);
  20316. };
  20317. this.getAudioVideo({ audio: true })
  20318. .then((res) => {
  20319. this.captureScreen(_function, true);
  20320. console.log("已点击允许,开启成功");
  20321. })
  20322. .catch((err) => {
  20323. // console.log('浏览器不支持,请更换浏览器')
  20324. // } else {
  20325. this.captureScreen(_function, false);
  20326. console.log("请检查是否存在麦克风");
  20327. });
  20328. },
  20329. /**
  20330. * 停止录制
  20331. */
  20332. stopRecording(callback) {
  20333. this.recorder.stopRecording(() => {
  20334. // this.video.src = this.video.srcObject = null;
  20335. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  20336. const url = URL.createObjectURL(this.recorder.getBlob());
  20337. const a = document.createElement("a"); //this.fileName+
  20338. let videoFile = new File(
  20339. [this.recorder.getBlob()],
  20340. this.courseDetail.title + "录屏.mp4",
  20341. {
  20342. type: "video/mp4",
  20343. }
  20344. );
  20345. let downloadUrl = URL.createObjectURL(videoFile);
  20346. if(this.$refs.classRoomHelperRef){
  20347. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  20348. }
  20349. document.body.appendChild(a);
  20350. a.style.display = "none";
  20351. a.href = url;
  20352. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  20353. a.click();
  20354. this.recorder.screen.stop();
  20355. this.recorder.destroy();
  20356. this.recorder = null;
  20357. this.videoStart = false;
  20358. // callback(false);
  20359. });
  20360. },
  20361. //初始化
  20362. captureScreen(callback, type) {
  20363. if (navigator.getDisplayMedia) {
  20364. //录制结束,文件下载
  20365. navigator
  20366. .getDisplayMedia({
  20367. video: true,
  20368. })
  20369. .then((screenStream) => {
  20370. if (type) {
  20371. navigator.mediaDevices
  20372. .getUserMedia({ audio: true })
  20373. .then((mic) => {
  20374. screenStream.addTrack(mic.getTracks()[0]);
  20375. callback(screenStream);
  20376. });
  20377. } else {
  20378. callback(screenStream);
  20379. }
  20380. })
  20381. .catch(function (error) {
  20382. console.log("error", error);
  20383. });
  20384. } else if (navigator.mediaDevices.getDisplayMedia) {
  20385. navigator.mediaDevices
  20386. .getDisplayMedia({
  20387. video: true,
  20388. })
  20389. .then((screenStream) => {
  20390. if (type) {
  20391. navigator.mediaDevices
  20392. .getUserMedia({ audio: true })
  20393. .then((mic) => {
  20394. screenStream.addTrack(mic.getTracks()[0]);
  20395. callback(screenStream);
  20396. });
  20397. } else {
  20398. callback(screenStream);
  20399. }
  20400. })
  20401. .catch(function (error) {
  20402. console.log("error", error);
  20403. });
  20404. } else {
  20405. var error = "getDisplayMedia API are not supported in this browser.";
  20406. console.log("error", error);
  20407. alert(error);
  20408. }
  20409. },
  20410. //流监听
  20411. addStreamStopListener(stream, callback) {
  20412. stream.addEventListener(
  20413. "ended",
  20414. function () {
  20415. callback();
  20416. callback = function () {};
  20417. },
  20418. false
  20419. );
  20420. stream.addEventListener(
  20421. "inactive",
  20422. function () {
  20423. callback();
  20424. callback = function () {};
  20425. },
  20426. false
  20427. );
  20428. stream.getTracks().forEach(function (track) {
  20429. track.addEventListener(
  20430. "ended",
  20431. function () {
  20432. callback();
  20433. callback = function () {};
  20434. },
  20435. false
  20436. );
  20437. track.addEventListener(
  20438. "inactive",
  20439. function () {
  20440. callback();
  20441. callback = function () {};
  20442. },
  20443. false
  20444. );
  20445. });
  20446. },
  20447. updateGroup() {
  20448. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20449. this.dialogVisibleGroup2 = true;
  20450. },
  20451. numberPan() {
  20452. if (
  20453. /[^\d]/.test(this.groupJson.number) ||
  20454. this.groupJson.number < 2 ||
  20455. this.groupJson.number > 10
  20456. ) {
  20457. this.$message.error("请输入2-10的数字");
  20458. this.groupJson.number = "";
  20459. }
  20460. },
  20461. updateGroupJson() {
  20462. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  20463. if (
  20464. this.groupStudentUid[this.toolindex][i].length >
  20465. this.groupJson2.number
  20466. ) {
  20467. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  20468. return;
  20469. }
  20470. }
  20471. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  20472. this.islock = this.groupJson.islock == 1 ? true : false;
  20473. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20474. this.taskCount
  20475. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  20476. let params = [
  20477. {
  20478. cid: this.id,
  20479. chapters: JSON.stringify(this.chapInfoList),
  20480. uid: this.userid,
  20481. unitIndex: this.courseType,
  20482. },
  20483. ];
  20484. this.ajax
  20485. .post(this.$store.state.api + "updateWorkNew4", params)
  20486. .then((res) => {
  20487. this.$message.success("设置成功");
  20488. this.getCourseDetail(2);
  20489. this.dialogVisibleGroup2 = false;
  20490. this.groupJson2 = {};
  20491. this.$forceUpdate();
  20492. })
  20493. .catch((err) => {
  20494. this.$message.error("网络不佳");
  20495. console.error(err);
  20496. });
  20497. },
  20498. lockChair() {
  20499. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20500. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  20501. this.updateGroupJson();
  20502. },
  20503. selectGroup(index) {
  20504. this.getCourseDetail(2, index);
  20505. },
  20506. joinGroup(index) {
  20507. if (this.groupJson.islock == 2) {
  20508. this.$message.error("位置已被锁定,无法加入");
  20509. return;
  20510. }
  20511. if (
  20512. this.groupStudent[this.toolindex][index].length >
  20513. this.groupJson.number ||
  20514. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  20515. ) {
  20516. this.$message.error("位置已满,无法加入");
  20517. return;
  20518. }
  20519. let params = [
  20520. {
  20521. cid: this.id,
  20522. stage: this.courseType,
  20523. task: this.taskCount,
  20524. tool: this.toolindex,
  20525. g: index,
  20526. uid: this.userid,
  20527. },
  20528. ];
  20529. this.ajax
  20530. .post(this.$store.state.api + "joinGroup", params)
  20531. .then((res) => {
  20532. this.$message.success("加入成功");
  20533. this.getCourseDetail(2);
  20534. })
  20535. .catch((err) => {
  20536. this.$message.error("网络不佳");
  20537. console.error(err);
  20538. });
  20539. },
  20540. exitGroup(id) {
  20541. if (this.groupJson.islock == 2) {
  20542. this.$message.error("位置已被锁定,无法退出");
  20543. return;
  20544. }
  20545. let params = [
  20546. {
  20547. gid: id,
  20548. },
  20549. ];
  20550. this.ajax
  20551. .post(this.$store.state.api + "exitGroup", params)
  20552. .then((res) => {
  20553. this.$message.success("退出成功");
  20554. this.getCourseDetail(2);
  20555. })
  20556. .catch((err) => {
  20557. this.$message.error("网络不佳");
  20558. console.error(err);
  20559. });
  20560. },
  20561. groupUpload(index, task, gindex) {
  20562. this.taskCount = task;
  20563. this.toolindex = index;
  20564. this.groupIndex = gindex;
  20565. this.dialogVisibleGroupWork = true;
  20566. },
  20567. updateGroupChair(user) {
  20568. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  20569. el.label = index;
  20570. return index != user.group;
  20571. });
  20572. this.updateGroupUser = user;
  20573. this.dialogVisibleUpdateGroup = true;
  20574. },
  20575. updateChair() {
  20576. if (
  20577. this.groupStudent[this.toolindex][this.checkChair].length >
  20578. this.groupJson.number ||
  20579. this.groupStudent[this.toolindex][this.checkChair].length ==
  20580. this.groupJson.number
  20581. ) {
  20582. this.$message.error("位置已满,无法加入");
  20583. return;
  20584. }
  20585. let params = [
  20586. {
  20587. cid: this.id,
  20588. stage: this.courseType,
  20589. task: this.taskCount,
  20590. tool: this.toolindex,
  20591. g: this.checkChair,
  20592. uid: this.updateGroupUser.userid,
  20593. },
  20594. ];
  20595. this.ajax
  20596. .post(this.$store.state.api + "joinGroup", params)
  20597. .then((res) => {
  20598. this.$message.success("修改成功");
  20599. this.updateGroupUser = {};
  20600. this.checkChair = "";
  20601. this.updateGroupArray = {};
  20602. this.dialogVisibleUpdateGroup = false;
  20603. this.getCourseDetail(2);
  20604. })
  20605. .catch((err) => {
  20606. this.$message.error("网络不佳");
  20607. console.error(err);
  20608. });
  20609. },
  20610. deleteGroupChair(gindex) {
  20611. this.checkDeleteGroup = [];
  20612. this.deleteGroupUser = JSON.parse(
  20613. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  20614. );
  20615. this.deleteGroupArray = this.groupJson.group[gindex];
  20616. this.groupIndex = gindex;
  20617. this.dialogVisibleDeleteGroup = true;
  20618. },
  20619. async deleteChair() {
  20620. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  20621. const gid =
  20622. this.groupStudent[this.toolindex][this.groupIndex][
  20623. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  20624. this.checkDeleteGroup[i]
  20625. )
  20626. ];
  20627. let params = [
  20628. {
  20629. gid: gid.id,
  20630. },
  20631. ];
  20632. var a = await this.deleteChairA(params);
  20633. if (i == this.checkDeleteGroup.length - 1) {
  20634. this.$message.success("退出成功");
  20635. this.dialogVisibleDeleteGroup = false;
  20636. this.deleteGroupUser = [];
  20637. this.deleteGroupArray = {};
  20638. this.groupIndex = "";
  20639. this.checkDeleteGroup = [];
  20640. this.getCourseDetail(2);
  20641. }
  20642. }
  20643. },
  20644. deleteChairA(params) {
  20645. return new Promise((resolve, reject) => {
  20646. this.ajax
  20647. .post(this.$store.state.api + "exitGroup", params)
  20648. .then((res) => {
  20649. resolve(1);
  20650. })
  20651. .catch((err) => {
  20652. this.$message.error("网络不佳");
  20653. console.error(err);
  20654. });
  20655. });
  20656. },
  20657. contract(i) {
  20658. if (this.isCloseList[i].isClose == 0) {
  20659. this.isCloseList[i].isClose = 1;
  20660. } else {
  20661. this.isCloseList[i].isClose = 0;
  20662. }
  20663. this.$forceUpdate();
  20664. },
  20665. openWordCloud(toolindex) {
  20666. this.wordCloudData = '';
  20667. let array = [];
  20668. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  20669. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  20670. array.push({ name: works });
  20671. }
  20672. if (this.isGroup) {
  20673. for (var i = 0; i < this.courseGroup.group.length; i++) {
  20674. let works = this.courseGroup.group[i].works[toolindex];
  20675. for (var j = 0; j < works.length; j++) {
  20676. let answer = JSON.parse(works[j].works)[0].answer;
  20677. array.push({ name: answer });
  20678. }
  20679. }
  20680. }
  20681. let _result = ''
  20682. array.forEach(e=>{
  20683. _result +=e.name+','
  20684. })
  20685. this.wordCloudData = _result;
  20686. this.dialogVisibleWordCloud = true;
  20687. this.wordCloudKey += 1;
  20688. },
  20689. uploadWorks(i) {
  20690. this.$confirm("确定导出作业吗?", "提示", {
  20691. confirmButtonText: "确定",
  20692. cancelButtonText: "取消",
  20693. type: "warning",
  20694. })
  20695. .then(() => {
  20696. const loading = this.$loading.service({
  20697. background: "rgba(255, 255, 255, 0.7)",
  20698. target: document.body,
  20699. text: "文件加载中...",
  20700. });
  20701. const _worksStudent = this.worksStudent;
  20702. let url = [];
  20703. var counts = {};
  20704. for (var l = 0; l < _worksStudent[i].length; l++) {
  20705. var item = _worksStudent[i][l];
  20706. var name = item.sName;
  20707. if (!counts.hasOwnProperty(name)) {
  20708. counts[name] = 0;
  20709. } else {
  20710. counts[name]++;
  20711. }
  20712. if (counts[name] > 0) {
  20713. item.sName += " (" + counts[name] + ")";
  20714. }
  20715. }
  20716. for (var l = 0; l < _worksStudent[i].length; l++) {
  20717. var item = _worksStudent[i][l];
  20718. if (
  20719. item.works.indexOf(
  20720. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  20721. ) !== -1 &&
  20722. item.works.indexOf("img") === -1
  20723. ) {
  20724. url.push({ name: item.sName, url: item.works });
  20725. }
  20726. }
  20727. // var toolList = [
  20728. // { name: "电子白板", tool: 1 },
  20729. // { name: "思维导图", tool: 3 },
  20730. // { name: "协同文档", tool: 6 },
  20731. // { name: "思维网格", tool: 7 },
  20732. // { name: "素材库", tool: 8 },
  20733. // { name: "学习资料", tool: 17 },
  20734. // { name: "便签", tool: 2 },
  20735. // { name: "问卷调查", tool: 4 },
  20736. // { name: "选择题", tool: 45 },
  20737. // { name: "倒计时", tool: 10 },
  20738. // { name: "问答", tool: 15 },
  20739. // { name: "课程设计", tool: 26 },
  20740. // { name: "训练服务器", tool: 18 },
  20741. // { name: "作业提交", tool: 16 },
  20742. // { name: "批量上传", tool: 50 },
  20743. // { name: "AIoT Blockly", tool: 21 },
  20744. // { name: "AI Python", tool: 23 },
  20745. // { name: "AI Blockly", tool: 24 },
  20746. // { name: "目标管理", tool: 25 },
  20747. // { name: "数学画板", tool: 31 },
  20748. // { name: "翻译", tool: 28 },
  20749. // { name: "魔盒识字", tool: 37 },
  20750. // { name: "数学画板", tool: 31 },
  20751. // { name: "24点", tool: 38 },
  20752. // { name: "GeoGebra", tool: 39 },
  20753. // { name: "源码编辑", tool: 32 },
  20754. // { name: "个人评价", tool: 40 },
  20755. // { name: "选择匹配", tool: 41 },
  20756. // { name: "汉字宫", tool: 44 },
  20757. // { name: "排序", tool: 47 },
  20758. // { name: "表格", tool: 48 },
  20759. // { name: "文档", tool: 52 },
  20760. // { name: "学生分组", tool: 49 },
  20761. // { name: "CocoPi", tool: 57 },
  20762. // { name: "模拟驾驶", tool: 58 },
  20763. // { name: "路径搜索", tool: 59 },
  20764. // { name: "深度学习", tool: 60 },
  20765. // { name: "全历史", tool: 61 },
  20766. // { name: "交互视频", tool: 62 },
  20767. // { name: "海龟编程", tool: 63 },
  20768. // { name: "挑人", tool: 65 },
  20769. // { name: "公式编辑", tool: 66 },
  20770. // { name: "分子结构", tool: 67 },
  20771. // { name: "时间轴", tool: 68 },
  20772. // ];
  20773. // var toolName = "";
  20774. // for(var w = 0;w<toolList.length;w++){
  20775. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  20776. // toolName = toolList[w].name;
  20777. // }
  20778. // }
  20779. console.log(url);
  20780. this.downLoadAll(url, loading);
  20781. })
  20782. .catch(() => {});
  20783. },
  20784. downLoadAll(url, loading) {
  20785. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  20786. const zip = new JSZip();
  20787. const cache = {};
  20788. const promises = [];
  20789. data.forEach((item) => {
  20790. const promise = getFile(item.url).then((data) => {
  20791. if (data.data != 1) {
  20792. // 下载文件, 并存成ArrayBuffer对象
  20793. const file_name =
  20794. item.name +
  20795. "." +
  20796. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  20797. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  20798. cache[file_name] = data.data;
  20799. }
  20800. });
  20801. promises.push(promise);
  20802. });
  20803. Promise.all(promises).then(() => {
  20804. zip.generateAsync({ type: "blob" }).then((content) => {
  20805. // 生成二进制流
  20806. FileSaver.saveAs(
  20807. content,
  20808. this.courseDetail.title + "-" + "作业提交工具.zip"
  20809. ); // 利用file-saver保存文件 自定义文件名
  20810. setTimeout(() => {
  20811. loading.close();
  20812. }, 2000);
  20813. });
  20814. });
  20815. },
  20816. pickStudent(stu) {
  20817. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  20818. return;
  20819. }
  20820. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  20821. confirmButtonText: "确定",
  20822. cancelButtonText: "取消",
  20823. type: "warning",
  20824. })
  20825. .then(() => {
  20826. let params = [
  20827. {
  20828. uid: stu.userid,
  20829. cid: this.id,
  20830. stage: this.courseType,
  20831. task: this.taskCount,
  20832. tool: this.toolindex,
  20833. },
  20834. ];
  20835. this.ajax
  20836. .post(this.$store.state.api + "updateCoursePick", params)
  20837. .then((res) => {
  20838. this.$message.success("操作成功");
  20839. this.getPick();
  20840. })
  20841. .catch((err) => {
  20842. this.$message.error("网络不佳");
  20843. console.error(err);
  20844. });
  20845. })
  20846. .catch(() => {});
  20847. },
  20848. selectUser(){
  20849. let params = {
  20850. userid: this.userid,
  20851. };
  20852. this.ajax
  20853. .get(this.$store.state.api + "selectUser", params)
  20854. .then((res) => {
  20855. this.userMes = res.data[0];
  20856. })
  20857. .catch((err) => {
  20858. console.error(err);
  20859. });
  20860. },
  20861. setEngText(i){
  20862. this.newEngIndex = i;
  20863. this.$forceUpdate();
  20864. },
  20865. addCorrect(){
  20866. this.$confirm("你确定提交批改嘛?", "提示", {
  20867. confirmButtonText: "确定",
  20868. showCancelButton: false,
  20869. closeOnClickModal: false,
  20870. type: "warning",
  20871. })
  20872. .then(() => {
  20873. let params = {
  20874. cid: this.id,
  20875. s: parseInt(this.courseType),
  20876. t: this.taskCount,
  20877. tool: this.toolindex,
  20878. wid: this.engWid,
  20879. c: this.userid,
  20880. 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) : "",
  20881. };
  20882. this.ajax
  20883. .get(this.$store.state.api + "addEngC", params)
  20884. .then((res) => {
  20885. this.$message.success("提交成功");
  20886. this.engUpdateDialogVisible = false;
  20887. })
  20888. .catch((err) => {
  20889. console.error(err);
  20890. });
  20891. })
  20892. .catch(() => {});
  20893. },
  20894. selectEngC(id,z){
  20895. let params = {
  20896. workid: id,
  20897. };
  20898. this.ajax
  20899. .get(this.$store.state.api + "selectEngC", params)
  20900. .then((res) => {
  20901. if(res.data[0].length == 0){
  20902. this.newEnglishList.engTitle = z.engTitle;
  20903. this.newEnglishList.engText = z.engText;
  20904. }else{
  20905. var a = res.data[0];
  20906. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  20907. if(this.userMes[0].type == 2){
  20908. var snum = 0;
  20909. for(var i = 0;i<a.length;i++){
  20910. if(this.userMes[0].userid == a[i].correct){
  20911. this.newEnglishList = JSON.parse(a[i].cWork);
  20912. snum = 1;
  20913. }
  20914. }
  20915. if(snum == 0){
  20916. this.newEnglishList = { engTitle:"",engText:"" };
  20917. this.newEnglishList.engTitle = z.engTitle;
  20918. this.newEnglishList.engText = z.engText;
  20919. }
  20920. }else if(this.userMes[0].type == 1){
  20921. var num = 0;
  20922. for(var w= 0;w<a.length;w++){
  20923. if(this.userMes[0].userid == a[w].correct){
  20924. num = 1;
  20925. }
  20926. }
  20927. if(num == 0){
  20928. this.isNoUserid = true;
  20929. var c = JSON.parse(JSON.stringify(z));
  20930. this.oldEnglishJson1 = c;
  20931. }else{
  20932. this.isNoUserid = false;
  20933. }
  20934. var b = a.sort((item, index) => {
  20935. console.log(item)
  20936. if (item.correct === this.userMes[0].userid) {
  20937. return -1; // 将a移到前面
  20938. } else if (index.correct === this.userMes[0].userid) {
  20939. return 1; // 将b移到前面
  20940. } else {
  20941. return 0; // 保持默认顺序
  20942. }
  20943. });
  20944. for(var p = 0;p<b.length;p++){
  20945. for(var y = 0;y<ppp.length;y++){
  20946. if(b[p].id == ppp[y].id){
  20947. b[p].cWork = JSON.parse(ppp[y].cWork);
  20948. break
  20949. }
  20950. }
  20951. }
  20952. this.newEnglishList1 = b;
  20953. }
  20954. }
  20955. this.greyType = false;
  20956. setTimeout(() => {
  20957. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20958. if(this.newEnglishList1.length > 0){
  20959. if(this.isNoUserid == true){
  20960. this.engListLength = this.newEnglishList1.length + 1;
  20961. this.newEngIndex = -1;
  20962. }else{
  20963. this.engListLength = this.newEnglishList1.length;
  20964. this.newEngIndex = 0;
  20965. }
  20966. }
  20967. if(this.userMes[0].type == 2){
  20968. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20969. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  20970. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  20971. }else if(this.newEngIndex == -1){
  20972. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20973. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  20974. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  20975. }
  20976. }, 500);
  20977. this.engUpdateDialogVisible = true;
  20978. this.$forceUpdate();
  20979. })
  20980. .catch((err) => {
  20981. console.error(err);
  20982. });
  20983. },
  20984. getPick() {
  20985. if(this.getPickLoading) return
  20986. this.getPickLoading = true
  20987. let params = {
  20988. cid: this.id,
  20989. };
  20990. this.ajax
  20991. .get(this.$store.state.api + "getPick", params)
  20992. .then((res) => {
  20993. let array = [];
  20994. for (var i = 0; i < res.data[0].length; i++) {
  20995. array.push(res.data[0][i].userid);
  20996. }
  20997. this.isPickStudent = array;
  20998. if (array.indexOf(this.userid) !== -1) {
  20999. this.$confirm("你被老师选到啦!", "提示", {
  21000. confirmButtonText: "确定",
  21001. showCancelButton: false,
  21002. closeOnClickModal: false,
  21003. type: "warning",
  21004. })
  21005. .then(() => {
  21006. let pa = [
  21007. {
  21008. uid: this.userid,
  21009. cid: this.id,
  21010. },
  21011. ];
  21012. this.ajax
  21013. .post(this.$store.state.api + "deletePick", pa)
  21014. .then((res) => {
  21015. this.getPick();
  21016. })
  21017. .catch((err) => {
  21018. this.$message.error("网络不佳");
  21019. console.error(err);
  21020. });
  21021. })
  21022. .catch(() => {});
  21023. }
  21024. this.getPickLoading = false
  21025. })
  21026. .catch((err) => {
  21027. this.getPickLoading = false
  21028. this.$message.error("网络不佳");
  21029. console.error(err);
  21030. });
  21031. },
  21032. foldEva() {
  21033. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  21034. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  21035. } else {
  21036. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  21037. setTimeout(() => {
  21038. this.checkEva();
  21039. setTimeout(() => {
  21040. this.checkEva();
  21041. }, 500);
  21042. }, 0);
  21043. }
  21044. this.$forceUpdate();
  21045. },
  21046. panToolHeight(tool) {
  21047. var _tool = document.querySelectorAll('#'+tool)[0]
  21048. var _toolA = _tool ? _tool.offsetHeight : 0
  21049. var _toolC = 0
  21050. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  21051. let boolean2 = (_toolA > _toolC) ? true : false
  21052. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  21053. this.$forceUpdate();
  21054. },
  21055. async checkLink(url) {
  21056. // console.log(url)
  21057. let _url = url
  21058. try {
  21059. const response = await fetch(url);
  21060. if(!response.ok){
  21061. _url = await this.checkLink("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/" + encodeURIComponent(_url.split('https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/')[1]))
  21062. }
  21063. // console.log(response.ok)
  21064. } catch (error) {
  21065. console.error('Error checking link:', error);
  21066. // console.log(false)
  21067. _url = await this.checkLink("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/" + encodeURIComponent(_url.split('https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/')[1]))
  21068. }
  21069. // console.log(_url)
  21070. return _url
  21071. },
  21072. getScoreList(){
  21073. let params = {
  21074. cid: this.id,
  21075. };
  21076. this.ajax
  21077. .get(this.$store.state.api + "selectTestCourseByCid", params)
  21078. .then((res) => {
  21079. let result = res.data;
  21080. this.scoreList.datalist = result[0];
  21081. this.scoreList.isScoreList = result[1];
  21082. })
  21083. .catch((err) => {
  21084. console.error(err);
  21085. });
  21086. },
  21087. setClassRoomHelperWidth(width){
  21088. this.classRoomHelperWidth = width
  21089. },
  21090. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  21091. this.$refs.choseWorksDetailDialogRef.open({
  21092. toolType:tooc,
  21093. tType: this.tType,
  21094. toolIndex: toolIndex
  21095. });
  21096. this.changeSplitScreenBehavior({
  21097. code: 1,
  21098. form: {
  21099. toolType:tooc,
  21100. toolIndex: toolIndex,
  21101. courseType: this.courseType,
  21102. taskCount: this.taskCount,
  21103. type: 0
  21104. }
  21105. });
  21106. },
  21107. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  21108. this.$refs.statisticalAnalysisRef.open({
  21109. worksStudent: this.worksStudent[toolIndex],
  21110. tType: this.tType,
  21111. toolIndex: toolIndex
  21112. });
  21113. this.changeSplitScreenBehavior({
  21114. code: 2,
  21115. form: {
  21116. toolType:4,
  21117. courseType: this.courseType,
  21118. taskCount: this.taskCount,
  21119. toolIndex: toolIndex,
  21120. type: 0
  21121. }
  21122. });
  21123. },
  21124. statisticalAnalysisRefresh(toolIndex) {
  21125. this.$refs.statisticalAnalysisRef.refreshData({
  21126. worksStudent: this.worksStudent[toolIndex],
  21127. tType: this.tType,
  21128. toolIndex: toolIndex
  21129. });
  21130. },
  21131. async splitScreenBehavior(type = 0) {
  21132. // return;
  21133. if (this.splitScreenData.loading)
  21134. return this.$message.info("操作过快,请稍等");
  21135. if (type == 0) {
  21136. //关闭分屏
  21137. this.splitScreenData.isOpen = false;
  21138. // this.splitScreenData.userId = "";
  21139. // this.splitScreenData.uid = "";
  21140. this.splitScreenData.behavior = null;
  21141. await this.updateSplitScreenData(1);
  21142. this.$message.success("已关闭分屏模式");
  21143. this.studentFreePreview(false);
  21144. this.OpenJobPreview(false);
  21145. // this.followingMode(false);
  21146. } else if (type == 1) {
  21147. //开启分屏
  21148. this.splitScreenData.isOpen = true;
  21149. this.splitScreenData.userId = this.userid;
  21150. this.splitScreenData.uid = this.splitScreenData.myUid;
  21151. this.splitScreenData.behavior = null;
  21152. let status = await this.updateSplitScreenData(0);
  21153. this.changeSplitScreenBehavior({form:{}})
  21154. if (status == 1) {
  21155. this.$message.success("已开启分屏");
  21156. this.studentFreePreview(false);
  21157. this.OpenJobPreview(true);
  21158. // this.followingMode(true);
  21159. } else {
  21160. this.splitScreenData.isOpen = false;
  21161. this.splitScreenData.userId = "";
  21162. this.splitScreenData.uid = "";
  21163. this.splitScreenData.behavior = null;
  21164. this.$message.success("分屏开启失败");
  21165. }
  21166. }
  21167. },
  21168. enterFullScreen() {
  21169. let element = document.documentElement;
  21170. if (element.requestFullscreen) {
  21171. element.requestFullscreen();
  21172. } else if (element.mozRequestFullScreen) { /* Firefox */
  21173. element.mozRequestFullScreen();
  21174. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  21175. element.webkitRequestFullscreen();
  21176. } else if (element.msRequestFullscreen) { /* IE/Edge */
  21177. element.msRequestFullscreen();
  21178. }
  21179. },
  21180. exitFullScreen() {
  21181. if (document.exitFullscreen) {
  21182. document.exitFullscreen();
  21183. } else if (document.mozCancelFullScreen) { /* Firefox */
  21184. document.mozCancelFullScreen();
  21185. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  21186. document.webkitExitFullscreen();
  21187. } else if (document.msExitFullscreen) { /* IE/Edge */
  21188. document.msExitFullscreen();
  21189. }
  21190. },
  21191. confirmOpen(){
  21192. this.splitScreenData.isOpen = true;
  21193. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  21194. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  21195. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  21196. this.confirmOpenDig = false
  21197. if (!document.fullscreenElement) {
  21198. this.enterFullScreen();
  21199. }
  21200. // if (this.timer2) {
  21201. // clearInterval(this.timer2);
  21202. // this.timer2 = null;
  21203. // }
  21204. // this.timer2 = setInterval(()=> {
  21205. // this.getSplitScreenData();//获取分屏数据
  21206. // }, 1000);
  21207. this.$message.success("分屏模式已开启");
  21208. },
  21209. getSplitScreenData() {
  21210. // return;
  21211. // if (this.tType != 1) return;
  21212. if(this.getSplitScreenDataLoading) return
  21213. this.getSplitScreenDataLoading = true
  21214. let params = {
  21215. cid: this.id
  21216. };
  21217. this.ajax
  21218. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  21219. .then(async res => {
  21220. let data = res.data[0][0]["splitScreenData"];
  21221. console.log("获取了分屏数:", data);
  21222. if (data) {
  21223. data = JSON.parse(data);
  21224. if (
  21225. !this.splitScreenData.isOpen &&
  21226. data.isOpen &&
  21227. this.splitScreenData.myUid == data.uid
  21228. ) {
  21229. this.splitScreenData.isOpen = false;
  21230. this.splitScreenData.userId = "";
  21231. this.splitScreenData.uid = "";
  21232. this.splitScreenData.behavior = null;
  21233. await this.updateSplitScreenData(1);
  21234. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  21235. this.confirmOpenDig = true
  21236. this.confirmOpenDigData = data
  21237. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  21238. this.splitScreenData.isOpen = false;
  21239. this.splitScreenData.userId = "";
  21240. this.splitScreenData.uid = "";
  21241. this.splitScreenData.behavior = null;
  21242. this.$message.error("已结束分屏模式");
  21243. } else if (this.splitScreenData.isOpen && data.isOpen) {
  21244. this.splitScreenData.isOpen = true;
  21245. this.splitScreenData.uid = data.uid;
  21246. this.splitScreenData.userId = data.userId;
  21247. this.splitScreenData.behavior = data.behavior;
  21248. }
  21249. this.doSplitScreenBehavior();
  21250. } else {
  21251. if (this.splitScreenData.isOpen) {
  21252. this.splitScreenData.isOpen = false;
  21253. this.splitScreenData.userId = "";
  21254. this.splitScreenData.uid = "";
  21255. this.splitScreenData.behavior = null;
  21256. this.$message.error("已结束分屏模式");
  21257. // if (this.timer2) {
  21258. // clearInterval(this.timer2);
  21259. // this.timer2 = null;
  21260. // }
  21261. // this.timer2 = setInterval(()=> {
  21262. // this.getSplitScreenData();//获取分屏数据
  21263. // }, 5000);
  21264. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  21265. confirmButtonText: '确定', //确认按钮的文字
  21266. showCancelButton: false, //是否显示取消按钮
  21267. showClose: false, //是否显示关闭按钮
  21268. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  21269. type: "warning",
  21270. })
  21271. .then(() => {
  21272. if (document.fullscreenElement) {
  21273. this.exitFullScreen();
  21274. }
  21275. })
  21276. .catch(() => {});
  21277. }
  21278. }
  21279. this.getSplitScreenDataLoading = false
  21280. })
  21281. .catch(e => {
  21282. this.getSplitScreenDataLoading = false
  21283. console.log("获取分屏数出错:", e);
  21284. });
  21285. },
  21286. doSplitScreenBehavior() {
  21287. if (
  21288. this.splitScreenData.isOpen &&
  21289. this.splitScreenData.uid != this.splitScreenData.myUid
  21290. ) {
  21291. let behavior = this.splitScreenData.behavior;
  21292. if (behavior) {
  21293. if (behavior.code === 99) {
  21294. //初始化
  21295. this.fullDialogVisible = false;
  21296. if(this.$refs.choseWorksDetailDialogRef.show){
  21297. this.$refs.choseWorksDetailDialogRef.close();
  21298. }
  21299. if(this.$refs.statisticalAnalysisRef.show){
  21300. this.$refs.statisticalAnalysisRef.close();
  21301. }
  21302. }
  21303. if (behavior.code === 0) {
  21304. //开启内容列表弹窗
  21305. this.checkFileFull1(behavior.form.t, behavior.form.f);
  21306. }else{
  21307. this.fullDialogVisible = false;
  21308. }
  21309. if (behavior.code === 1) {
  21310. //关于选择题的作业详细的操作
  21311. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  21312. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  21313. this.courseType = behavior.form.courseType;
  21314. this.taskCount = behavior.form.taskCount;
  21315. }
  21316. this.$nextTick(() => {
  21317. if (this.$refs.choseWorksDetailDialogRef.show) {
  21318. //已经打开了
  21319. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  21320. } else {
  21321. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  21322. }
  21323. });
  21324. }else{
  21325. this.$refs.choseWorksDetailDialogRef.close()
  21326. }
  21327. if(behavior.code === 2){
  21328. if(this.$refs.statisticalAnalysisRef.show){
  21329. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  21330. }else{
  21331. this.$refs.statisticalAnalysisRef.open({
  21332. worksStudent: this.worksStudent[behavior.form.toolIndex],
  21333. tType: this.tType,
  21334. toolIndex: behavior.form.toolIndex
  21335. });
  21336. }
  21337. }else{
  21338. this.$refs.statisticalAnalysisRef.close();
  21339. }
  21340. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  21341. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  21342. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  21343. if (behavior.form.courseType != this.courseType ||
  21344. behavior.form.taskCount != this.taskCount ||
  21345. behavior.form.toolType != this.toolindex
  21346. ) {
  21347. var a = document.scrollingElement;
  21348. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  21349. if (target) {
  21350. target.scrollIntoView(true);
  21351. setTimeout(()=>{
  21352. let scrollBody = document.querySelector('.body_student').parentElement
  21353. scrollBody.scrollTop = scrollBody.scrollTop - 100
  21354. }, 0);
  21355. // setTimeout(() => {
  21356. // a.scrollTop = 0
  21357. // }, 0);
  21358. }
  21359. }
  21360. if(this.courseType !=behavior.form.courseType){
  21361. this.courseType = behavior.form.courseType;
  21362. }
  21363. if(this.taskCount !=behavior.form.taskCount){
  21364. this.taskCount = behavior.form.taskCount;
  21365. }
  21366. if((behavior.form.toolType || behavior.form.toolType == 0) && (this.toolindex != behavior.form.toolType)){
  21367. this.toolindex = behavior.form.toolType;
  21368. }
  21369. // if(behavior.form.navId){
  21370. // this.navId = behavior.form.navId
  21371. // }
  21372. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  21373. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  21374. console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  21375. this.getCourseDetail()
  21376. }
  21377. this.setContent2(false)
  21378. }
  21379. } else {
  21380. }
  21381. }
  21382. },
  21383. updateSplitScreenData(empty = 0) {
  21384. return new Promise(resolve => {
  21385. if(this.userid!==this.courseDetail.userid){
  21386. if(!this.courseDetail.userid){
  21387. return setTimeout(()=>{
  21388. this.updateSplitScreenData(empty)
  21389. },2000)
  21390. }
  21391. return;
  21392. };
  21393. if (
  21394. this.splitScreenData.uid == this.splitScreenData.myUid &&
  21395. this.splitScreenData.userId == this.userid
  21396. ) {
  21397. this.splitScreenData.loading = true;
  21398. let params = [
  21399. {
  21400. cid: this.id,
  21401. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  21402. }
  21403. ];
  21404. this.ajax
  21405. .post(
  21406. this.$store.state.api + "update_courseSplitScreenData",
  21407. params
  21408. )
  21409. .then(res => {
  21410. this.splitScreenData.loading = false;
  21411. if (res.data == 1) {
  21412. resolve(1);
  21413. console.log("修改分屏数据成功");
  21414. }
  21415. })
  21416. .catch(e => {
  21417. this.splitScreenData.loading = false;
  21418. console.log("修改分屏数据失败", e);
  21419. resoleve(0);
  21420. });
  21421. } else if (empty == 2 && this.tType == 1) {
  21422. let params = [
  21423. {
  21424. cid: this.id,
  21425. nData: ""
  21426. }
  21427. ];
  21428. return this.ajax
  21429. .post(
  21430. this.$store.state.api + "update_courseSplitScreenData",
  21431. params
  21432. )
  21433. .then(_ => resolve(1))
  21434. .catch(_ => resolve(0));
  21435. } else {
  21436. return resolve(0);
  21437. }
  21438. });
  21439. },
  21440. changeSplitScreenBehavior(newValue) {
  21441. if (
  21442. this.splitScreenData.isOpen &&
  21443. this.splitScreenData.uid == this.splitScreenData.myUid
  21444. ) {
  21445. let _behavior = null;
  21446. if(!newValue){
  21447. _behavior = {}
  21448. }else{
  21449. _behavior = newValue
  21450. }
  21451. if(_behavior.form){
  21452. _behavior.form.taskCount = this.taskCount;
  21453. _behavior.form.courseType = this.courseType
  21454. }else{
  21455. _behavior.form = {
  21456. taskCount:this.taskCount,
  21457. courseType:this.courseType
  21458. }
  21459. }
  21460. this.splitScreenData.behavior = _behavior;
  21461. this.updateSplitScreenData(0);
  21462. }
  21463. },
  21464. studentFreePreview(flag) {
  21465. this.IsLookOpen = flag;
  21466. this.followingMode(flag)
  21467. this.updateLookOpen();
  21468. },
  21469. OpenJobPreview(flag) {
  21470. this.sIsOpen = flag;
  21471. this.updateSLook();
  21472. },
  21473. followingMode(flag) {
  21474. this.IsFollow = flag;
  21475. this.updateFollow();
  21476. },
  21477. StulookMode(flag) {
  21478. this.IsStulook = flag;
  21479. this.updateIsStulook();
  21480. }
  21481. },
  21482. directives: {
  21483. // 使用局部注册指令的方式
  21484. resize: {
  21485. // 指令的名称
  21486. bind(el, binding) {
  21487. // el为绑定的元素,binding为绑定给指令的对象
  21488. let width = "",
  21489. height = "";
  21490. function isReize() {
  21491. const style = document.defaultView.getComputedStyle(el);
  21492. if (width !== style.width || height !== style.height) {
  21493. binding.value(); // 关键
  21494. }
  21495. width = style.width;
  21496. height = style.height;
  21497. }
  21498. el.__vueSetInterval__ = setInterval(isReize, 300);
  21499. },
  21500. unbind(el) {
  21501. clearInterval(el.__vueSetInterval__);
  21502. },
  21503. },
  21504. autoHeight: {
  21505. update(el, binding) {
  21506. const { value } = binding
  21507. if (value && typeof value === 'number') {
  21508. el.style.height = `${value}px`
  21509. } else {
  21510. el.style.height = 'auto'
  21511. }
  21512. },
  21513. componentUpdated(el) {
  21514. el.style.height = `${el.scrollHeight + 5}px`
  21515. },
  21516. },
  21517. },
  21518. beforeDestroy() {
  21519. window.onresize = null;
  21520. clearInterval(this.timer);
  21521. this.timer = null;
  21522. clearInterval(this.timer2);
  21523. this.timer2 = null;
  21524. clearInterval(this.opertimer);
  21525. this.opertimer = null;
  21526. this.updateSplitScreenData(1);
  21527. if(this.courseDetail.userid == this.userid && this.tcid2 && this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  21528. let endTime = new Date().toLocaleString("zh-CN", {
  21529. hour12: false,
  21530. timeZone: "Asia/Shanghai"
  21531. }).replace(/\//g, "-")
  21532. let courseTime = Math.floor((new Date(endTime) - new Date(this.startTime)) / (1000 * 60))
  21533. this.syncClassData({
  21534. courseId: this.id,
  21535. title: this.courseDetail.title,
  21536. courseGrade: this.tcid2,
  21537. courseTime: courseTime,
  21538. startTime: this.startTime,
  21539. endTime: endTime,
  21540. })
  21541. console.log('同步数据')
  21542. }
  21543. },
  21544. computed: {
  21545. renderedFormula2() {
  21546. return function(val){
  21547. // 处理换行符和HTML实体
  21548. const normalized = val
  21549. .replace(/&amp;/g, '&')
  21550. .replace(/<br\/?>/g, '\n');
  21551. // 匹配行内公式($...$)和块级公式($$...$$)
  21552. return normalized.replace(/(\${1,2})([^$]+)(\${1,2})/g, (_, delim, expr) => {
  21553. try {
  21554. return katex.renderToString(expr.trim(), {
  21555. displayMode: false,
  21556. throwOnError: false,
  21557. macros: {
  21558. '\\aligned': '\\begin{aligned}#1\\end{aligned}'
  21559. }
  21560. });
  21561. } catch (e) {
  21562. console.warn('KaTeX渲染失败:', e);
  21563. return `<span style="color:red">${expr}</span>`;
  21564. }
  21565. })
  21566. }
  21567. },
  21568. renderedFormula() {
  21569. return function(val){
  21570. try {
  21571. // 判断是否含有HTML标签,<tag ...>...</tag>
  21572. const hasTag = /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g.test(val);
  21573. if (!hasTag) {
  21574. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  21575. // 纯文本,整体渲染
  21576. try {
  21577. return katex.renderToString(val.trim(), {
  21578. throwOnError: false,
  21579. strict: false,
  21580. output: "htmlAndMathml"
  21581. });
  21582. } catch (e) {
  21583. return val; // 渲染失败原样输出
  21584. }
  21585. } else {
  21586. // 有标签,对每个标签内容渲染
  21587. return val.replace(
  21588. /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g,
  21589. (match, tag, attrs, inner) => {
  21590. let html;
  21591. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  21592. try {
  21593. html = katex.renderToString(inner.trim(), {
  21594. throwOnError: false,
  21595. strict: false,
  21596. output: "htmlAndMathml"
  21597. });
  21598. } catch (e) {
  21599. html = inner;
  21600. }
  21601. return `<${tag}${attrs}>${html}</${tag}>`;
  21602. }
  21603. );
  21604. }
  21605. } catch (e) {
  21606. console.error('KaTeX渲染错误:', e);
  21607. return val;
  21608. }
  21609. }
  21610. },
  21611. isAndroid() {
  21612. return /Android/i.test(navigator.userAgent);
  21613. },
  21614. getHeight(){
  21615. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  21616. },
  21617. contentConvent() {
  21618. return function (c) {
  21619. return c
  21620. ? c
  21621. .replaceAll(/\r\n/g, "<br/>")
  21622. .replaceAll(/\n/g, "<br/>")
  21623. .replaceAll(/\s/g, "&nbsp")
  21624. : "";
  21625. };
  21626. },
  21627. MarkdownT() {
  21628. return function (c) {
  21629. let md = new MarkdownIt();
  21630. return c
  21631. ? md.render(c) : "";
  21632. };
  21633. },
  21634. commentRight(){
  21635. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  21636. return "35px";
  21637. }
  21638. return `calc(${this.classRoomHelperWidth} + 5px)`
  21639. // if(this.$refs["classRoomHelperRef"].type==0){
  21640. // return "100px";
  21641. // }else if(this.$refs["classRoomHelperRef"].type==1){
  21642. // return "502px"
  21643. // }else{
  21644. // return "0px"
  21645. // }
  21646. },
  21647. checkUpload() {
  21648. return function () {
  21649. var studentK = [];
  21650. if (this.plworkFile.length > 0) {
  21651. for (var z = 0; z < this.plworkFile.length; z++) {
  21652. studentK.push(this.plworkFile[z].username);
  21653. }
  21654. studentK = studentK.join(",");
  21655. }
  21656. var a = this.uploadStudentJuri.filter((el) => {
  21657. return studentK.indexOf(el.userid) == -1;
  21658. });
  21659. return a;
  21660. };
  21661. },
  21662. getSName() {
  21663. return function (name) {
  21664. var check = name;
  21665. this.uploadStudentJuri.forEach((el) => {
  21666. if (el.userid == check) {
  21667. check = el.name ? el.name : el.username;
  21668. }
  21669. });
  21670. return check;
  21671. };
  21672. },
  21673. getImgList() {
  21674. return function (val) {
  21675. let srcList = []; // 定义一个数组用来接收后面的img地址
  21676. val.replace(
  21677. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  21678. function (match, capture) {
  21679. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  21680. srcList.push(capture);
  21681. }
  21682. );
  21683. return srcList;
  21684. };
  21685. },
  21686. retrnToolHeight(){
  21687. return function (tool) {
  21688. var _tool = document.querySelectorAll('#'+tool)[0]
  21689. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  21690. };
  21691. },
  21692. Correct() {
  21693. return function (c,d) {
  21694. let w = "";
  21695. let a = this.correctWord;
  21696. for(var k = 0;k<a.length;k++){
  21697. //diffWordsWithSpace
  21698. if(a.length > 1){
  21699. if(a[k].added == true){
  21700. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21701. }else if(a[k].removed == true){
  21702. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21703. }else{
  21704. w += '<span>' + a[k].value + '</span>';
  21705. }
  21706. }else{
  21707. w = c
  21708. }
  21709. console.log("👇👇!+++==")
  21710. console.log(w)
  21711. //diffChars方法
  21712. // if(w == ""){
  21713. // if(a.length > 1){
  21714. // if(a[k].added == true){
  21715. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21716. // }else if(a[k].removed == true){
  21717. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21718. // }
  21719. // }else{
  21720. // w = c
  21721. // }
  21722. // }else{
  21723. // if(k == a.length - 1){
  21724. // if(a[k].added == true){
  21725. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21726. // }else if(a[k].removed == true){
  21727. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21728. // }
  21729. // }else{
  21730. // if(a[k].added == true){
  21731. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21732. // }else if(a[k].removed == true){
  21733. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21734. // }
  21735. // }
  21736. // }
  21737. }
  21738. c = w;
  21739. return c;
  21740. };
  21741. },
  21742. },
  21743. mounted() {
  21744. this.startTime = new Date().toLocaleString("zh-CN", {
  21745. hour12: false,
  21746. timeZone: "Asia/Shanghai"
  21747. }).replace(/\//g, "-")
  21748. // if (this.tType == 1) {
  21749. // // 开局关闭学生查看内容
  21750. // this.StulookMode(false)
  21751. // // 开局打开跟随模式
  21752. // this.followingMode(true)
  21753. // }
  21754. document.body.addEventListener("click", (e) => {
  21755. if (this.isUpdateToolDetail1) {
  21756. this.updateToolDetail(this.toolDetailIndex);
  21757. }
  21758. });
  21759. try {
  21760. if (this.screenType == 2) {
  21761. window.topU.postMessage({ allScreen: 4 }, "*");
  21762. } else if (this.screenType == 3) {
  21763. window.topU.postMessage({ allScreen: 5 }, "*");
  21764. } else if (this.screenType == 1) {
  21765. window.topU.postMessage({ allScreen: 6 }, "*");
  21766. }
  21767. } catch (error) {
  21768. console.log(error)
  21769. }
  21770. this.setOperationTime();
  21771. this.selectEva();
  21772. this.getCourseDetail(10);
  21773. this.selectCount();
  21774. this.getHomeWork();
  21775. this.selectUser();
  21776. this.getAIJ();
  21777. this.contentDialog = false;
  21778. this.setContent2(true);
  21779. if (this.tType == 4) {
  21780. this.pzDialog = true;
  21781. this.selectPz();
  21782. }
  21783. // 获取评分列表
  21784. this.getScoreList()
  21785. this.updateSplitScreenData(2);
  21786. this.splitScreenData.myUid = uuidv4();
  21787. document.scrollingElement.scrollTop = 0;
  21788. window.addEventListener("resize", () => {
  21789. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  21790. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  21791. if (this.showType == 2 || this.showType == 3) {
  21792. document.getElementsByClassName("navBox")[0].style.height =
  21793. a - 40 + 0+ "px";
  21794. } else {
  21795. document.getElementsByClassName("navBox")[0].style.height =
  21796. a - 40 + "px";
  21797. }
  21798. });
  21799. let _this = this;
  21800. setTimeout(() => {
  21801. // _this.vedioTime = [];
  21802. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21803. // _this.vedioTime[i] = document.getElementsByClassName(
  21804. // "vjs-duration-display"
  21805. // )[i].textContent;
  21806. // }
  21807. }, 1000);
  21808. },
  21809. };
  21810. </script>
  21811. <style scoped>
  21812. @media screen and (max-width: 1280px) {
  21813. /* .courseIndex > div:first-child(2) {
  21814. width: 15% !important;
  21815. } */
  21816. /* .navText {
  21817. width: 120px !important;
  21818. } */
  21819. .evaCss {
  21820. flex-direction: column !important;
  21821. align-items: center !important;
  21822. }
  21823. .elist_input {
  21824. width: 90% !important;
  21825. }
  21826. .dialog_diy1 >>> .el-dialog {
  21827. width: 100% !important;
  21828. }
  21829. .rightWidthCss {
  21830. width: 100% !important;
  21831. }
  21832. .dialog_diy3 >>> .el-dialog {
  21833. width: 100% !important;
  21834. }
  21835. .addToolCss {
  21836. right: 0 !important;
  21837. width: 100% !important;
  21838. min-width: unset !important;
  21839. }
  21840. }
  21841. .evaCssMax {
  21842. flex-direction: column !important;
  21843. align-items: center !important;
  21844. }
  21845. .dialog_diy >>> .el-dialog {
  21846. margin-top: 10vh !important;
  21847. }
  21848. .body_student {
  21849. width: 77%;
  21850. height: 100%;
  21851. position: absolute;
  21852. left: 22%;
  21853. top: 0;
  21854. }
  21855. .student_head {
  21856. width: 100%;
  21857. margin: 20px auto 0;
  21858. padding-bottom: 20px;
  21859. display: flex;
  21860. flex-direction: column;
  21861. flex-wrap: nowrap;
  21862. align-items: flex-start;
  21863. justify-content: flex-start;
  21864. }
  21865. .pb_left {
  21866. width: 15%;
  21867. margin-right: 10px;
  21868. background: rgb(255, 255, 255);
  21869. position: fixed;
  21870. height: calc(100% - 40px);
  21871. border-radius: 20px;
  21872. padding-bottom: 15px;
  21873. box-sizing: border-box;
  21874. }
  21875. .wheel > img,
  21876. .project > img,
  21877. .star > img,
  21878. .evaluate > img,
  21879. .up_photo > img,
  21880. .chapter_add > img,
  21881. .deleteWord > img,
  21882. .question > img,
  21883. .homework > img {
  21884. width: 100%;
  21885. height: 100%;
  21886. }
  21887. .upCover > img {
  21888. width: 131px;
  21889. height: 69px;
  21890. object-fit: cover;
  21891. }
  21892. .upCover {
  21893. width: calc(100% / 3.5);
  21894. position: relative;
  21895. margin: 0 15px 10px 0;
  21896. display: flex;
  21897. flex-direction: column;
  21898. flex-wrap: nowrap;
  21899. justify-content: center;
  21900. align-content: center;
  21901. align-items: center;
  21902. height: fit-content;
  21903. }
  21904. .upCover2 {
  21905. width: 100%;
  21906. position: relative;
  21907. margin: 0 15px 10px 0;
  21908. display: flex;
  21909. flex-direction: column;
  21910. flex-wrap: nowrap;
  21911. justify-content: center;
  21912. align-content: center;
  21913. align-items: center;
  21914. }
  21915. .upCover2 > img {
  21916. width: 100%;
  21917. height: 90px;
  21918. object-fit: contain;
  21919. }
  21920. .chapter_add {
  21921. width: 120px;
  21922. position: relative;
  21923. text-align: center;
  21924. }
  21925. .isAddThings {
  21926. margin-top: 20px;
  21927. position: relative;
  21928. text-align: center;
  21929. background: #f7f8fa;
  21930. height: 90px;
  21931. width: 90px;
  21932. display: flex;
  21933. flex-direction: column;
  21934. justify-content: center;
  21935. }
  21936. .deleteWord {
  21937. width: 22px;
  21938. height: 22px;
  21939. position: absolute;
  21940. right: -5px;
  21941. top: -5px;
  21942. cursor: pointer;
  21943. }
  21944. .box_course {
  21945. /* width: 60%; */
  21946. width: calc(100% - 300px);
  21947. }
  21948. .wheel {
  21949. width: 100%;
  21950. /* height: 100%; */
  21951. height: 650px;
  21952. }
  21953. .right_box {
  21954. display: flex;
  21955. flex-direction: column;
  21956. margin-left: 30px;
  21957. justify-content: space-around;
  21958. }
  21959. .right_box_title {
  21960. font-size: 23px;
  21961. }
  21962. .people {
  21963. display: flex;
  21964. }
  21965. .student_body {
  21966. width: 100%;
  21967. margin: 0 auto;
  21968. margin-top: 10px;
  21969. padding: 0 0 20px;
  21970. }
  21971. .study_top {
  21972. margin-top: 100px;
  21973. width: 100%;
  21974. height: auto;
  21975. padding-bottom: 20px;
  21976. margin-left: 2px;
  21977. min-height: 90%;
  21978. }
  21979. .study_top .checkbox {
  21980. display: flex;
  21981. align-items: center;
  21982. padding: 15px 0 15px 30px;
  21983. flex: 0 0 auto;
  21984. font-weight: bold;
  21985. border-bottom: 1px solid #eee;
  21986. }
  21987. .study_top .check {
  21988. padding-bottom: 5px;
  21989. text-align: center;
  21990. cursor: pointer;
  21991. height: 30px;
  21992. box-sizing: border-box;
  21993. display: flex;
  21994. }
  21995. .study_top .checked {
  21996. border-bottom: 4px solid #3fc6a0;
  21997. padding-bottom: 5px;
  21998. color: #3fc6a0;
  21999. display: flex;
  22000. height: 35px;
  22001. }
  22002. .study_top .checked > div,
  22003. .study_top .check > div {
  22004. margin-right: 5px;
  22005. }
  22006. .videoTop {
  22007. display: flex;
  22008. flex-direction: row;
  22009. justify-content: space-between;
  22010. background: #fff;
  22011. align-items: center;
  22012. width: 95%;
  22013. padding: 20px;
  22014. }
  22015. .filebox {
  22016. display: flex;
  22017. flex-wrap: wrap;
  22018. flex-direction: column;
  22019. padding: 0 0 5px;
  22020. position: relative;
  22021. }
  22022. .filebox:before {
  22023. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  22024. position: absolute;
  22025. top: 20px;
  22026. left: 13px;
  22027. border-left: 2px dotted #cad1dc;
  22028. height: calc(100% - 15px);
  22029. }
  22030. .toolHeng2 > div:last-child::before {
  22031. height: calc(100% - 43px);
  22032. }
  22033. .filebox .tooldetail {
  22034. width: calc(100%);
  22035. margin: 0px 12px;
  22036. padding: 12px;
  22037. line-height: 30px;
  22038. word-break: break-word;
  22039. background: #ffffff;
  22040. border-radius: 8px 8px 8px 8px;
  22041. opacity: 1;
  22042. border: 1px solid #cad1dc;
  22043. overflow:hidden;
  22044. box-sizing:border-box;
  22045. }
  22046. .pb_content >>> .katex {
  22047. font-size: 16px;
  22048. width: 100%;
  22049. white-space: normal;
  22050. }
  22051. .pb_content >>> .katex .base{
  22052. display: inline !important;
  22053. display: contents !important;
  22054. }
  22055. .pb_content >>> .katex .base .cjk_fallback{
  22056. white-space: normal !important;
  22057. display: inline !important;
  22058. }
  22059. .file {
  22060. display: flex;
  22061. flex-direction: column;
  22062. align-items: center;
  22063. justify-content: center;
  22064. cursor: pointer;
  22065. width: 200px;
  22066. }
  22067. .file div {
  22068. margin-top: 10px;
  22069. width: 150px;
  22070. text-align: center;
  22071. overflow: hidden;
  22072. white-space: nowrap;
  22073. text-overflow: ellipsis;
  22074. }
  22075. .media {
  22076. display: flex;
  22077. flex-direction: column;
  22078. align-items: center;
  22079. justify-content: center;
  22080. margin: 0 20px 20px 0;
  22081. cursor: pointer;
  22082. margin: 12px 0 5px 15px;
  22083. overflow: hidden;
  22084. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  22085. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  22086. box-sizing: border-box;
  22087. }
  22088. .media img {
  22089. height: 90px;
  22090. width: 160px;
  22091. object-fit: cover;
  22092. }
  22093. .media .title {
  22094. padding: 5px;
  22095. text-align: left;
  22096. width: 100%;
  22097. box-sizing: border-box;
  22098. }
  22099. .media .btn {
  22100. width: 100%;
  22101. height: 35px;
  22102. line-height: 35px;
  22103. color: #fff;
  22104. background: #606060;
  22105. text-align: center;
  22106. overflow: hidden;
  22107. white-space: nowrap;
  22108. text-overflow: ellipsis;
  22109. }
  22110. .detail_content_top {
  22111. width: 100%;
  22112. padding: 25px 0 25px 0;
  22113. }
  22114. .detail_title {
  22115. text-align: center;
  22116. font-size: 24px;
  22117. }
  22118. .detail_time {
  22119. font-size: 13px;
  22120. padding: 15px 0 0 40px;
  22121. }
  22122. .detail_content {
  22123. line-height: 2pc;
  22124. width: 90%;
  22125. margin: 0 auto;
  22126. padding-top: 30px;
  22127. text-indent: 30px;
  22128. overflow: auto;
  22129. height: 200px;
  22130. }
  22131. .score_box >>> .el-rate {
  22132. margin-left: 10px;
  22133. }
  22134. .dialog_change >>> .el-dialog {
  22135. border-radius: 5px;
  22136. }
  22137. .dialog_change >>> .el-dialog__header {
  22138. background: #f2f2f2;
  22139. text-align: center;
  22140. }
  22141. .dialog_change >>> .el-dialog__title {
  22142. line-height: 5px;
  22143. }
  22144. .dialog_change >>> .el-dialog__body {
  22145. background: #fff;
  22146. padding: 10px 20px;
  22147. }
  22148. .score_box {
  22149. display: flex;
  22150. align-items: center;
  22151. margin-bottom: 18px;
  22152. margin-top: 20px;
  22153. }
  22154. .up_photo {
  22155. width: 120px;
  22156. cursor: pointer;
  22157. margin-top: 10px;
  22158. }
  22159. .up_photo2 {
  22160. width: 180px;
  22161. box-sizing: border-box;
  22162. min-width: 180px;
  22163. height: 180px;
  22164. max-height: 180px;
  22165. min-height: 180px;
  22166. cursor: pointer;
  22167. display: flex;
  22168. flex-direction: column;
  22169. align-items: center;
  22170. justify-content: center;
  22171. background: rgb(242, 246, 255);
  22172. /* padding: 25px; */
  22173. margin-bottom: 10px;
  22174. }
  22175. .up_photo2 img {
  22176. width: 50%;
  22177. height: auto;
  22178. }
  22179. .up_photo2 span {
  22180. color: #898989;
  22181. }
  22182. .plworkBox {
  22183. display: flex;
  22184. align-items: center;
  22185. margin-top: 10px;
  22186. flex-wrap: wrap;
  22187. }
  22188. .upload_send {
  22189. margin: 30px auto 30px;
  22190. width: 60%;
  22191. background: #3681fc;
  22192. text-align: center;
  22193. height: 35px;
  22194. line-height: 35px;
  22195. color: #fff;
  22196. border-radius: 5px;
  22197. cursor: pointer;
  22198. }
  22199. .marginT {
  22200. margin-top: 20px;
  22201. }
  22202. .cd_content_steps {
  22203. display: flex;
  22204. width: 90%;
  22205. justify-content: space-around;
  22206. border-top: 1px solid #eeeeee;
  22207. }
  22208. .cd_steps_box {
  22209. display: flex;
  22210. justify-content: center;
  22211. align-items: center;
  22212. flex-direction: column;
  22213. cursor: pointer;
  22214. }
  22215. .first {
  22216. display: flex;
  22217. align-items: center;
  22218. margin: 15px 0 20px 0;
  22219. font-size: 20px;
  22220. }
  22221. .first > div:nth-child(2) {
  22222. font-size: 16px !important;
  22223. padding-left: 10px;
  22224. line-height: 26px;
  22225. box-sizing: border-box;
  22226. }
  22227. .blue_box_one {
  22228. text-align: center;
  22229. color: #fff;
  22230. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  22231. border-radius: 7px;
  22232. margin: 10px;
  22233. cursor: pointer;
  22234. width: 95%;
  22235. height: 45px;
  22236. display: flex;
  22237. flex-direction: row;
  22238. justify-content: flex-start;
  22239. align-items: center;
  22240. }
  22241. .blue_box_one > div:nth-child(1) {
  22242. line-height: 30px;
  22243. margin: 0 5px 0 10px;
  22244. width: 30%;
  22245. min-width: 70px;
  22246. border-radius: 4px;
  22247. }
  22248. .blue_box_one > div:nth-child(2) {
  22249. white-space: nowrap;
  22250. text-overflow: ellipsis;
  22251. overflow: hidden;
  22252. word-break: break-all;
  22253. width: 70%;
  22254. text-align: left;
  22255. margin-right: 10px;
  22256. max-width: calc(100% - 85px);
  22257. }
  22258. .blue_box_one > div:nth-child(2):hover {
  22259. overflow: hidden;
  22260. text-overflow: ellipsis;
  22261. white-space: nowrap;
  22262. cursor: pointer;
  22263. }
  22264. .upFile {
  22265. margin: 0 auto;
  22266. width: 120px;
  22267. background: #3681fc;
  22268. color: #fff;
  22269. height: 30px;
  22270. text-align: center;
  22271. line-height: 30px;
  22272. border-radius: 5px;
  22273. font-size: 14px;
  22274. cursor: pointer;
  22275. }
  22276. .courseTitle {
  22277. width: 85%;
  22278. margin: 10px auto 26px auto;
  22279. display: flex;
  22280. flex-direction: row;
  22281. align-items: center;
  22282. justify-content: space-between;
  22283. text-align: center;
  22284. }
  22285. .courseTitle .ctitle {
  22286. font-size: 20px;
  22287. font-weight: bold;
  22288. color: #0e1e33;
  22289. white-space: nowrap;
  22290. overflow: hidden;
  22291. text-overflow: ellipsis;
  22292. }
  22293. .inviteBox {
  22294. font-size: 14px;
  22295. /* margin-top: 5px; */
  22296. color: #00000099;
  22297. text-align: center;
  22298. }
  22299. .courseTitle >>> .el-tooltip {
  22300. width: 100%;
  22301. white-space: nowrap;
  22302. overflow: hidden;
  22303. text-overflow: ellipsis;
  22304. word-break: break-word;
  22305. }
  22306. .ml {
  22307. margin-left: 20px;
  22308. color: #5b7dba;
  22309. border-left: 3px solid #5b7dba;
  22310. padding-left: 5px;
  22311. font-weight: bold;
  22312. }
  22313. .return {
  22314. width: 2rem;
  22315. height: 2rem;
  22316. cursor: pointer;
  22317. }
  22318. .return > img {
  22319. width: 100%;
  22320. height: 100%;
  22321. }
  22322. .returnBtn {
  22323. width: 86px;
  22324. height: 36px;
  22325. background: #3681fc;
  22326. border-radius: 4px;
  22327. color: #fff;
  22328. text-align: center;
  22329. line-height: 36px;
  22330. margin-right: 20px;
  22331. cursor: pointer;
  22332. font-size: 14px;
  22333. font-weight: 400;
  22334. display: flex;
  22335. flex-direction: row;
  22336. flex-wrap: nowrap;
  22337. align-items: center;
  22338. justify-content: center;
  22339. }
  22340. .reBtnIcon,
  22341. .commentIcon,
  22342. .vedioIcon,
  22343. .vedioIcon1 {
  22344. /* width: 36px; */
  22345. height: 36px;
  22346. border-radius: 4px;
  22347. position: relative;
  22348. /* background: #e0eafb; */
  22349. background: #0061ff;
  22350. cursor: pointer;
  22351. margin-right: 12px;
  22352. display: flex;
  22353. align-items: center;
  22354. padding: 0 10px;
  22355. box-sizing: border-box;
  22356. font-size: 14px;
  22357. color: #fff;
  22358. }
  22359. .reBtnIcon::before,
  22360. .commentIcon::before,
  22361. .vedioIcon::before,
  22362. .vedioIcon1::before {
  22363. content: "";
  22364. display: block;
  22365. background-size: 100% 100%;
  22366. background-repeat: no-repeat;
  22367. width: 20px;
  22368. height: 20px;
  22369. margin-right: 5px;
  22370. /* position: absolute; */
  22371. /* top: 8px;
  22372. left: 8px; */
  22373. }
  22374. .vedioIcon1 {
  22375. background: #f63564;
  22376. }
  22377. .reBtnIcon::before {
  22378. background-image: url("../../assets/icon/newIcons/refresh.png");
  22379. }
  22380. .commentIcon::before {
  22381. background-image: url("../../assets/icon/newIcons/comment.png");
  22382. }
  22383. .vedioIcon::before {
  22384. background-image: url("../../assets/icon/newIcons/transcribe.png");
  22385. }
  22386. .vedioIcon1::before {
  22387. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  22388. background-image: url("../../assets/icon/newIcons/transcribe.png");
  22389. }
  22390. .tool {
  22391. display: flex;
  22392. flex-direction: column;
  22393. flex-wrap: nowrap;
  22394. width: 13%;
  22395. margin: 0 30px;
  22396. align-items: center;
  22397. position: relative;
  22398. padding: 10px 25px;
  22399. cursor: pointer;
  22400. }
  22401. .whiteBIcon {
  22402. width: 150px;
  22403. }
  22404. .whiteBIcon > img {
  22405. width: 100%;
  22406. height: 100%;
  22407. }
  22408. .mask {
  22409. background-color: rgba(0, 0, 0, 0);
  22410. position: fixed;
  22411. top: 0;
  22412. left: 0;
  22413. width: 100%;
  22414. height: 100%;
  22415. z-index: 20000;
  22416. display: flex;
  22417. align-items: center;
  22418. justify-content: center;
  22419. }
  22420. .progressBox {
  22421. width: 500px;
  22422. height: 180px;
  22423. background: #fff;
  22424. border-radius: 10px;
  22425. box-shadow: 0 0 6px 1px #bfbfbf;
  22426. display: flex;
  22427. align-items: center;
  22428. justify-content: center;
  22429. flex-direction: column;
  22430. position: relative;
  22431. color: #6c6c6c;
  22432. }
  22433. .progressBox >>> .el-progress-bar__outer {
  22434. background-color: #d1dfff !important;
  22435. }
  22436. .progressBox .lbox {
  22437. height: 50px;
  22438. font-size: 19px;
  22439. display: flex;
  22440. align-items: center;
  22441. color: #747474;
  22442. }
  22443. .progressBox .lbox img {
  22444. width: 40px;
  22445. margin-right: 20px;
  22446. }
  22447. .closeCss {
  22448. position: absolute;
  22449. top: 8px;
  22450. right: 8px;
  22451. cursor: pointer;
  22452. width: 20px;
  22453. height: 20px;
  22454. }
  22455. .closeCss > img {
  22456. width: 100%;
  22457. height: 100%;
  22458. }
  22459. .uploadVedio {
  22460. display: flex;
  22461. flex-direction: column;
  22462. flex-wrap: nowrap;
  22463. justify-content: center;
  22464. align-items: center;
  22465. margin: 0 15px 10px 0;
  22466. }
  22467. .uploadVedio > img {
  22468. width: 30px;
  22469. height: 30px;
  22470. }
  22471. .uploadVedio > span {
  22472. white-space: nowrap;
  22473. overflow: hidden;
  22474. text-overflow: ellipsis;
  22475. width: 75px;
  22476. margin-top: 7px;
  22477. }
  22478. .picName {
  22479. white-space: nowrap;
  22480. overflow: hidden;
  22481. text-overflow: ellipsis;
  22482. width: 75px;
  22483. margin-top: 7px;
  22484. }
  22485. .new_top {
  22486. display: flex;
  22487. background: #fff;
  22488. flex-direction: row;
  22489. justify-content: flex-start;
  22490. align-items: center;
  22491. height: 60px;
  22492. position: fixed;
  22493. top: 20px;
  22494. left: 22%;
  22495. width: 77%;
  22496. z-index: 999;
  22497. border-radius: 12px 12px 0 0;
  22498. border-bottom: 1px solid #cad1dc;
  22499. padding: 10px 0;
  22500. }
  22501. .new_topFixed {
  22502. width: 100%;
  22503. height: 40px;
  22504. position: fixed;
  22505. top: 0px;
  22506. display: block;
  22507. background: #f2f2f2;
  22508. z-index: 998;
  22509. }
  22510. .before {
  22511. position: absolute;
  22512. background: #c3dad4;
  22513. width: 6px;
  22514. height: 100%;
  22515. }
  22516. .courseIndex {
  22517. display: flex;
  22518. flex-direction: row;
  22519. align-items: center;
  22520. width: calc(100% - 745px);
  22521. }
  22522. .courseIndex > div:nth-child(1) {
  22523. margin: 0 0 0 10px;
  22524. font-size: 20px;
  22525. min-width: 100px;
  22526. font-weight: bold;
  22527. border-left: 4px solid #3363b9;
  22528. height: 32px;
  22529. text-align: center;
  22530. line-height: 35px;
  22531. }
  22532. .courseIndex > div:nth-child(2) {
  22533. font-size: 20px;
  22534. /* width: 300px; */
  22535. max-width: calc(100% - 105px);
  22536. white-space: nowrap;
  22537. overflow: hidden;
  22538. text-overflow: ellipsis;
  22539. }
  22540. .courseIndex > div:nth-child(3) {
  22541. border-bottom: 1px solid #d7d7d7;
  22542. padding-bottom: 5px;
  22543. background: #3681fc;
  22544. width: 55px;
  22545. min-width: 55px;
  22546. border-radius: 5px;
  22547. color: #fff;
  22548. text-align: center;
  22549. height: 20px;
  22550. line-height: 26px;
  22551. font-size: 14px;
  22552. margin: 0 0 0 10px;
  22553. }
  22554. .course_text {
  22555. padding: 20px 0 0 15px;
  22556. text-indent: 30px;
  22557. width: 80%;
  22558. min-height: 20px;
  22559. }
  22560. .vedioList {
  22561. background: #f2f2f2;
  22562. border: 1px solid #ececec;
  22563. /* width: 38.8%; */
  22564. /* width: 300px; */
  22565. width: 100%;
  22566. height: 445px;
  22567. border-radius: 10px;
  22568. overflow: hidden;
  22569. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  22570. }
  22571. .vedioNav {
  22572. margin: 10px 0 0 15px;
  22573. border-bottom: 1px solid #d7d7d7;
  22574. padding-bottom: 5px;
  22575. background: #3681fc;
  22576. width: 55px;
  22577. min-width: 55px;
  22578. border-radius: 5px;
  22579. color: #fff;
  22580. text-align: center;
  22581. height: 20px;
  22582. line-height: 26px;
  22583. font-size: 14px;
  22584. }
  22585. .queTop {
  22586. display: flex;
  22587. padding: 20px 0 20px 30px;
  22588. width: 100%;
  22589. flex-direction: row;
  22590. justify-content: flex-start;
  22591. align-items: center;
  22592. box-sizing: border-box;
  22593. }
  22594. .queTopTitle {
  22595. display: flex;
  22596. flex-direction: row;
  22597. flex-wrap: nowrap;
  22598. align-items: center;
  22599. font-weight: bold;
  22600. font-size: 20px;
  22601. color: rgb(14, 30, 51);
  22602. }
  22603. .queTopTitle::before {
  22604. content: "";
  22605. width: 2px;
  22606. height: 22px;
  22607. background: #3681fc;
  22608. border-radius: 3px;
  22609. display: block;
  22610. margin: 2px 6px 0 0;
  22611. }
  22612. .queTopRight {
  22613. display: flex;
  22614. flex-direction: row;
  22615. flex-wrap: nowrap;
  22616. align-items: center;
  22617. }
  22618. .queTopClose {
  22619. margin-right: 20px;
  22620. cursor: pointer;
  22621. position: relative;
  22622. display: flex;
  22623. }
  22624. .closeImg,
  22625. .openImg {
  22626. width: 25px;
  22627. height: 25px;
  22628. position: absolute;
  22629. left: -20px;
  22630. top: -1px;
  22631. }
  22632. .closeImg > img,
  22633. .openImg > img {
  22634. width: 100%;
  22635. height: 100%;
  22636. }
  22637. .question {
  22638. width: 40px;
  22639. margin-right: 10px;
  22640. margin-top: 7px;
  22641. }
  22642. .queTitle {
  22643. margin-left: 5px;
  22644. font-size: 25px;
  22645. display: flex;
  22646. align-items: center;
  22647. }
  22648. .addEditor {
  22649. width: 100px;
  22650. height: 30px;
  22651. background: #42cda6;
  22652. color: #fff;
  22653. border-radius: 5px;
  22654. text-align: center;
  22655. line-height: 30px;
  22656. box-shadow: 1px 3px 6px 1px #bfbfbf;
  22657. cursor: pointer;
  22658. }
  22659. /* .vedioName {
  22660. cursor: pointer;
  22661. margin: 0px 0px 10px 5px;
  22662. white-space: nowrap;
  22663. overflow: hidden;
  22664. text-overflow: ellipsis;
  22665. width: 100%;
  22666. } */
  22667. .vedioTime {
  22668. width: 35px;
  22669. position: absolute;
  22670. color: #fff;
  22671. bottom: 0px;
  22672. right: 0px;
  22673. text-align: center;
  22674. background: #46411f;
  22675. height: 20px;
  22676. font-size: 14px;
  22677. line-height: 20px;
  22678. }
  22679. .homework {
  22680. width: 200px;
  22681. display: flex;
  22682. flex-direction: column;
  22683. flex-wrap: nowrap;
  22684. align-items: center;
  22685. cursor: pointer;
  22686. }
  22687. .homebox {
  22688. display: flex;
  22689. flex-wrap: wrap;
  22690. flex-direction: row;
  22691. justify-content: flex-start;
  22692. align-items: center;
  22693. padding: 15px 0;
  22694. }
  22695. .isChooseActive {
  22696. color: #3681fc !important;
  22697. font-weight: bold !important;
  22698. }
  22699. .chooseWho {
  22700. display: flex;
  22701. width: 100%;
  22702. flex-direction: row;
  22703. flex-wrap: nowrap;
  22704. justify-content: flex-start;
  22705. padding-bottom: 10px;
  22706. }
  22707. .chooseWho > div {
  22708. cursor: pointer;
  22709. padding-bottom: 10px;
  22710. margin: 0 30px 0 0;
  22711. font-weight: 400;
  22712. color: #0e1e33;
  22713. }
  22714. .addPoint > div > img {
  22715. cursor: pointer;
  22716. width: 85px;
  22717. border-radius: 15px;
  22718. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  22719. }
  22720. .addPoint > div {
  22721. display: flex;
  22722. flex-direction: column;
  22723. flex-wrap: nowrap;
  22724. align-items: center;
  22725. }
  22726. .isBorder > div {
  22727. margin: 0 0 10px 0;
  22728. align-items: flex-start !important;
  22729. }
  22730. .noiframeBox {
  22731. display: flex;
  22732. flex-wrap: wrap;
  22733. }
  22734. .iframeBox iframe {
  22735. width: 100%;
  22736. height: 800px;
  22737. border: none;
  22738. margin-bottom: 20px;
  22739. border: 1px solid #ccc;
  22740. }
  22741. .upload_toolBtn {
  22742. background: #3681fc;
  22743. color: #fff;
  22744. width: 110px;
  22745. text-align: center;
  22746. height: 35px;
  22747. line-height: 35px;
  22748. font-size: 14px;
  22749. border-radius: 5px;
  22750. cursor: pointer;
  22751. position: absolute;
  22752. right: 10px;
  22753. bottom: 0;
  22754. }
  22755. .binfo_input,
  22756. .pj {
  22757. font: inherit;
  22758. color: currentColor;
  22759. width: 100%;
  22760. margin: 0;
  22761. padding: 15px 14px;
  22762. display: block;
  22763. min-width: 0;
  22764. outline: none;
  22765. box-sizing: content-box;
  22766. background: none;
  22767. -webkit-tap-highlight-color: transparent;
  22768. border: 1px solid rgba(0, 0, 0, 0.23);
  22769. border-radius: 4px;
  22770. box-sizing: border-box;
  22771. resize: none;
  22772. }
  22773. .binfo_input:focus-visible {
  22774. border: 1px solid rgba(61, 103, 188);
  22775. }
  22776. .dialog_diy >>> .el-dialog__header,
  22777. .dialog_diy1 >>> .el-dialog__header {
  22778. background: #454545 !important;
  22779. padding: 15px 20px;
  22780. }
  22781. .dialog_diy >>> .el-dialog__title,
  22782. .dialog_diy1 >>> .el-dialog__title {
  22783. color: #fff;
  22784. }
  22785. .dialog_diy >>> .el-dialog__headerbtn,
  22786. .dialog_diy1 >>> .el-dialog__headerbtn {
  22787. top: 19px;
  22788. }
  22789. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  22790. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  22791. color: #fff;
  22792. }
  22793. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  22794. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  22795. color: #fff;
  22796. }
  22797. .dialog_diy1 >>> .el-dialog__body {
  22798. padding: 0;
  22799. }
  22800. .dialog_diy >>> .el-dialog__body,
  22801. .dialog_diy >>> .el-dialog__footer,
  22802. .dialog_diy1 >>> .el-dialog__footer {
  22803. background: #fafafa;
  22804. }
  22805. .a_addBox {
  22806. padding: 0 0 0 15px;
  22807. }
  22808. .a_add_box {
  22809. padding: 10px;
  22810. background: #fff;
  22811. margin-bottom: 10px;
  22812. border-radius: 5px;
  22813. box-shadow: 0 0 5px 0 #d5d5d5;
  22814. }
  22815. .a_add_head {
  22816. display: flex;
  22817. align-items: flex-start;
  22818. /* justify-content: space-between; */
  22819. flex-direction: column;
  22820. /* flex-direction: row; */
  22821. margin: 10px 0 20px 0;
  22822. font-size: 18px;
  22823. width: 100%;
  22824. }
  22825. .askIndex {
  22826. background: #3681fc;
  22827. border-radius: 50%;
  22828. color: #fff;
  22829. width: 25px;
  22830. height: 25px;
  22831. min-width: 25px;
  22832. min-height: 25px;
  22833. text-align: center;
  22834. line-height: 25px;
  22835. margin-right: 5px;
  22836. }
  22837. .a_add_head .a_add_head_input {
  22838. width: 300px;
  22839. }
  22840. .a_add_head .a_add_head_div {
  22841. display: flex;
  22842. align-items: center;
  22843. justify-content: space-between;
  22844. }
  22845. .a_add_body {
  22846. display: flex;
  22847. align-items: center;
  22848. }
  22849. .a_add_input {
  22850. display: flex;
  22851. align-items: center;
  22852. flex-wrap: wrap;
  22853. width: 100%;
  22854. }
  22855. .a_add_input >>> .el-radio-group,
  22856. .a_add_input >>> .el-checkbox-group {
  22857. width: 100%;
  22858. }
  22859. .a_add_input >>> .el-radio,
  22860. .a_add_input >>> .el-checkbox {
  22861. display: flex;
  22862. flex-direction: row;
  22863. flex-wrap: nowrap;
  22864. align-items: center;
  22865. padding: 15px 0;
  22866. }
  22867. .a_add_input >>> .el-radio:not(:last-child),
  22868. .a_add_input >>> .el-checkbox:not(:last-child) {
  22869. width: 100%;
  22870. border-bottom: 1px solid #efefef;
  22871. }
  22872. .redioStyle >>> .el-radio__label {
  22873. font-size: 18px;
  22874. }
  22875. .redioStyle >>> .el-radio__label > span,
  22876. .redioStyle >>> .el-checkbox__label > span {
  22877. word-break: break-all;
  22878. white-space: normal;
  22879. }
  22880. .redioStyle >>> .el-checkbox__label {
  22881. font-size: 18px;
  22882. }
  22883. .toolHeng2 {
  22884. width: 100%;
  22885. padding-left: 15px;
  22886. box-sizing: border-box;
  22887. }
  22888. .workNav {
  22889. font-size: 20px;
  22890. font-weight: bold;
  22891. color: #0e1e33;
  22892. display: flex;
  22893. flex-direction: row;
  22894. flex-wrap: nowrap;
  22895. align-items: center;
  22896. padding: 15px 0 15px 0;
  22897. }
  22898. .workNav::before {
  22899. content: "";
  22900. width: 2px;
  22901. height: 22px;
  22902. background: #3681fc;
  22903. border-radius: 3px;
  22904. display: block;
  22905. margin: 2px 6px 0 0;
  22906. }
  22907. .toolHeng {
  22908. display: flex;
  22909. flex-direction: row;
  22910. flex-wrap: wrap;
  22911. justify-content: flex-start;
  22912. align-items: center;
  22913. width: 100%;
  22914. }
  22915. .toolHeng > div {
  22916. padding-left: 20px;
  22917. }
  22918. .isWidth {
  22919. width: 20%;
  22920. }
  22921. .textTitle {
  22922. display: flex;
  22923. flex-direction: row;
  22924. flex-wrap: nowrap;
  22925. align-items: center;
  22926. width: 95%;
  22927. }
  22928. .textTitle >>> .el-form-item__label {
  22929. font-size: 22px;
  22930. color: #918f8f;
  22931. width: 100px;
  22932. }
  22933. .textTitle >>> .el-form-item__content {
  22934. width: calc(100% - 100px);
  22935. }
  22936. .textCss >>> .el-dialog {
  22937. width: 800px !important;
  22938. height: 400px;
  22939. background: #fafafa;
  22940. }
  22941. .textCss >>> .el-dialog__body {
  22942. margin: 55px 8% 0 8%;
  22943. padding: 0 !important;
  22944. }
  22945. .textCss >>> .el-dialog__footer {
  22946. padding-top: 38px;
  22947. }
  22948. .toolsCss >>> .el-dialog__body {
  22949. padding: 20px;
  22950. }
  22951. .lineCss >>> .el-dialog__body {
  22952. display: flex;
  22953. flex-direction: row;
  22954. align-items: center;
  22955. justify-content: center;
  22956. }
  22957. .newNav {
  22958. display: flex;
  22959. flex-direction: row;
  22960. align-items: baseline;
  22961. justify-content: flex-start;
  22962. }
  22963. .navListItem {
  22964. width: calc(100% - 20px);
  22965. height: 50px;
  22966. margin: 0px auto 10px;
  22967. display: flex;
  22968. flex-direction: row;
  22969. flex-wrap: nowrap;
  22970. align-items: center;
  22971. justify-content: space-between;
  22972. background: #f0f4fa;
  22973. border-radius: 6px 6px 6px 6px;
  22974. }
  22975. .navText {
  22976. cursor: pointer;
  22977. white-space: nowrap;
  22978. overflow: hidden;
  22979. text-overflow: ellipsis;
  22980. width: 220px;
  22981. padding: 0 10px;
  22982. font-weight: 400;
  22983. color: #0e1e33;
  22984. }
  22985. .downIcon {
  22986. width: 20px;
  22987. min-width: 20px;
  22988. height: 20px;
  22989. margin-right: 15px;
  22990. cursor: pointer;
  22991. }
  22992. .downIcon > img {
  22993. width: 100%;
  22994. height: 100%;
  22995. }
  22996. .noVedio {
  22997. display: flex;
  22998. flex-direction: row;
  22999. justify-content: center;
  23000. align-content: center;
  23001. }
  23002. .noNavText {
  23003. cursor: pointer;
  23004. margin: 0px 0px 10px 5px;
  23005. width: 112px;
  23006. }
  23007. .listNoVedio {
  23008. margin: 0 0 0 30px;
  23009. width: 97%;
  23010. }
  23011. .video-player >>> .video-js {
  23012. height: 100%;
  23013. }
  23014. .hangVedioList {
  23015. width: 90% !important;
  23016. height: 150px !important;
  23017. margin: 20px 0 0 30px;
  23018. }
  23019. .hangVedio {
  23020. width: 100%;
  23021. height: 170px !important;
  23022. align-items: flex-start !important;
  23023. }
  23024. .hangHand {
  23025. height: 150px !important;
  23026. }
  23027. .twoChild {
  23028. width: 95%;
  23029. margin: 10px;
  23030. border-radius: 5px;
  23031. background: #f2f2f2;
  23032. display: flex;
  23033. flex-direction: column;
  23034. flex-wrap: nowrap;
  23035. justify-content: flex-start;
  23036. align-items: flex-start;
  23037. transition: all 0.5s;
  23038. overflow: hidden;
  23039. height: 0;
  23040. background: #e7f3ff;
  23041. }
  23042. .twoChild > div:nth-child(1) {
  23043. margin-top: 5px;
  23044. }
  23045. .navChild {
  23046. width: 100%;
  23047. cursor: pointer;
  23048. margin-bottom: 10px;
  23049. position: relative;
  23050. }
  23051. .navChild img {
  23052. position: absolute;
  23053. right: 11px;
  23054. width: 15px;
  23055. top: 50%;
  23056. transform: translateY(-50%);
  23057. }
  23058. .navActive,
  23059. .toolActive {
  23060. height: auto !important;
  23061. overflow: auto !important;
  23062. /* padding-bottom: 16px; */
  23063. }
  23064. .toolActive {
  23065. padding: 0;
  23066. }
  23067. .navTask {
  23068. display: flex;
  23069. flex-direction: row;
  23070. flex-wrap: nowrap;
  23071. align-items: center;
  23072. align-content: flex-start;
  23073. height: 40px;
  23074. justify-content: flex-start;
  23075. padding: 0 10px;
  23076. width: 100%;
  23077. box-sizing: border-box;
  23078. }
  23079. .navTaskname {
  23080. white-space: nowrap;
  23081. text-overflow: ellipsis;
  23082. overflow: hidden;
  23083. word-break: break-all;
  23084. padding-left: 5px;
  23085. }
  23086. .openTaskActive {
  23087. /* background-color: #e0eafb !important;
  23088. color: #0061ff; */
  23089. color:#fff;
  23090. background: rgb(55, 129, 252) !important;
  23091. }
  23092. .iframeName {
  23093. margin: 5px 0;
  23094. border-left: 4px solid #41c4a4;
  23095. padding-left: 4px;
  23096. }
  23097. .toolTitle {
  23098. margin: 0px 0px 20px;
  23099. font-size: 20px;
  23100. font-weight: 500;
  23101. border-left: 4px solid #41c4a4;
  23102. padding-left: 4px;
  23103. }
  23104. .cru_selectBox {
  23105. overflow: auto;
  23106. width: 95%;
  23107. margin: 17px auto 0;
  23108. height: calc(100% - 40px - 21px - 20px - 17px);
  23109. background: #fff;
  23110. border-radius: 8px;
  23111. }
  23112. .cru_selectBox::-webkit-scrollbar,
  23113. .study_top::-webkit-scrollbar,
  23114. .textContent::-webkit-scrollbar {
  23115. /*滚动条整体样式*/
  23116. width: 6px;
  23117. /*高宽分别对应横竖滚动条的尺寸*/
  23118. height: 6px;
  23119. }
  23120. /*定义滚动条轨道 内阴影+圆角*/
  23121. .cru_selectBox::-webkit-scrollbar-track,
  23122. .study_top::-webkit-scrollbar-track,
  23123. .textContent::-webkit-scrollbar {
  23124. border-radius: 10px;
  23125. background-color: #b8bdc9;
  23126. }
  23127. /*定义滑块 内阴影+圆角*/
  23128. .cru_selectBox::-webkit-scrollbar-thumb,
  23129. .study_top::-webkit-scrollbar-thumb,
  23130. .textContent::-webkit-scrollbar-thumb {
  23131. border-radius: 10px;
  23132. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  23133. background-color: #2c5ab3;
  23134. }
  23135. .vedioBox {
  23136. border-radius: 0 0 20px 20px;
  23137. background: #fff;
  23138. overflow: auto;
  23139. }
  23140. .taskBox {
  23141. width: 98%;
  23142. background: #f0f4fa;
  23143. margin: 10px auto;
  23144. padding: 0 10px;
  23145. border-radius: 4px;
  23146. box-sizing: border-box;
  23147. }
  23148. .vedioTaskBox {
  23149. width: 100%;
  23150. display: flex;
  23151. flex-direction: row;
  23152. flex-wrap: nowrap;
  23153. align-items: flex-start;
  23154. position: relative;
  23155. }
  23156. .toolBox {
  23157. margin: 15px 0 0 25px;
  23158. display: flex;
  23159. position: relative;
  23160. padding: 18px 20px;
  23161. border-top-left-radius: 5px;
  23162. border-top-right-radius: 5px;
  23163. width: 90%;
  23164. }
  23165. .btnAll {
  23166. position: absolute;
  23167. right: 0;
  23168. display: flex;
  23169. flex-direction: row;
  23170. flex-wrap: nowrap;
  23171. align-items: center;
  23172. }
  23173. .btnLeft,
  23174. .btnRight {
  23175. display: flex;
  23176. flex-direction: row;
  23177. flex-wrap: nowrap;
  23178. align-items: center;
  23179. padding: 5px 0;
  23180. }
  23181. .btnLeft {
  23182. border-right: 1px solid #cad1dc;
  23183. }
  23184. .btnLeft > .custom-tooltip {
  23185. background: #3681fc;
  23186. color: #fff;
  23187. }
  23188. .last:hover {
  23189. background: #3383fa !important;
  23190. color: #fff;
  23191. border: 1px solid #3383fa !important;
  23192. }
  23193. .last,
  23194. .returnBtn1 {
  23195. width: 90px;
  23196. height: 36px;
  23197. background: #ffffff;
  23198. border-radius: 4px;
  23199. border: 1px solid #0061ff;
  23200. color: #0061ff;
  23201. cursor: pointer;
  23202. display: flex;
  23203. flex-direction: row;
  23204. flex-wrap: nowrap;
  23205. align-items: center;
  23206. justify-content: center;
  23207. margin-left: 12px;
  23208. }
  23209. .returnBtn1 {
  23210. background: #f0f4fa;
  23211. border-radius: 4px;
  23212. border: 1px solid #cad1dc;
  23213. margin: 0 12px;
  23214. }
  23215. .lastImg {
  23216. min-width: 15px;
  23217. width: 15px;
  23218. height: 15px;
  23219. display: flex;
  23220. }
  23221. .lastText {
  23222. padding: 0 5px 0 5px;
  23223. box-sizing: border-box;
  23224. font-size: 14px;
  23225. }
  23226. .lastImg > img {
  23227. width: 100%;
  23228. height: 100%;
  23229. }
  23230. /* .vedioTimeBox {
  23231. display: flex;
  23232. flex-direction: row;
  23233. align-items: center;
  23234. flex-wrap: nowrap;
  23235. position: relative;
  23236. } */
  23237. .navBox {
  23238. background: #fff;
  23239. height: calc(100% - 40px);
  23240. overflow-y: auto;
  23241. overflow-x: hidden;
  23242. }
  23243. .worksBox {
  23244. margin: 0 0 10px 25px;
  23245. border-bottom: 1px solid #eeeeee;
  23246. padding: 18px 20px;
  23247. border-radius: 4px;
  23248. width: 90%;
  23249. }
  23250. .worksBTitle {
  23251. font-size: 20px;
  23252. padding-bottom: 15px;
  23253. border-bottom: 1px solid #eeeeee;
  23254. display: flex;
  23255. align-items: center;
  23256. }
  23257. .greenBox {
  23258. width: 5px;
  23259. height: 30px;
  23260. background: #63b6fa;
  23261. margin-right: 5px;
  23262. }
  23263. .worksDetailBox {
  23264. display: flex;
  23265. width: 100%;
  23266. flex-direction: row;
  23267. flex-wrap: wrap;
  23268. align-items: flex-end;
  23269. justify-content: flex-start;
  23270. padding: 15px 5px;
  23271. box-sizing: border-box;
  23272. }
  23273. .works {
  23274. display: flex;
  23275. flex-direction: column;
  23276. flex-wrap: nowrap;
  23277. align-items: flex-start;
  23278. justify-content: flex-start;
  23279. align-content: center;
  23280. max-width: 240px;
  23281. width: calc(100% / 3 - 10px);
  23282. height: auto;
  23283. margin-right: 10px;
  23284. margin-bottom: 10px;
  23285. overflow: hidden;
  23286. height: 140px;
  23287. box-shadow: 0 0 6px 1px #dfdada;
  23288. border-radius: 15px;
  23289. }
  23290. .workImg {
  23291. width: 100%;
  23292. /* height: calc(100% - 40px); */
  23293. height: 105px;
  23294. position: relative;
  23295. }
  23296. .workImg > img {
  23297. width: 100%;
  23298. height: 100%;
  23299. object-fit: contain;
  23300. cursor: pointer;
  23301. }
  23302. .worksName {
  23303. height: 40px;
  23304. line-height: 40px;
  23305. display: flex;
  23306. width: 100%;
  23307. flex-direction: row;
  23308. flex-wrap: nowrap;
  23309. justify-content: space-between;
  23310. align-items: center;
  23311. margin: 0 0 0 10px;
  23312. }
  23313. .worksName > div:nth-child(1) {
  23314. width: 110px;
  23315. white-space: nowrap;
  23316. overflow: hidden;
  23317. text-overflow: ellipsis;
  23318. }
  23319. .worksName > div:nth-child(2) {
  23320. color: #b7b4b5;
  23321. }
  23322. .noWorksS {
  23323. padding: 15px 0;
  23324. display: flex;
  23325. flex-direction: row;
  23326. flex-wrap: wrap;
  23327. align-items: center;
  23328. justify-content: flex-start;
  23329. }
  23330. .noWorksName,
  23331. .isWorksName,
  23332. .isWorksName2 {
  23333. background: #ddebf8;
  23334. color: #000;
  23335. width: 90px;
  23336. height: 25px;
  23337. text-align: center;
  23338. line-height: 25px;
  23339. border-radius: 4px;
  23340. margin: 10px 15px 10px 0;
  23341. white-space: nowrap;
  23342. overflow: hidden;
  23343. padding: 5px;
  23344. text-overflow: ellipsis;
  23345. cursor: pointer;
  23346. border: 1px solid #ddebf8;
  23347. }
  23348. .noWorksName {
  23349. background: #fff;
  23350. color: #0061ff;
  23351. border: 1px solid #0061ff;
  23352. }
  23353. .noWorksName > span{
  23354. max-width: 100%;
  23355. display: block;
  23356. overflow: hidden;
  23357. text-overflow: ellipsis;
  23358. white-space: nowrap;
  23359. }
  23360. .noWorksName2 {
  23361. background: #fff;
  23362. color: #0061ff;
  23363. width: 90px;
  23364. height: 25px;
  23365. text-align: center;
  23366. line-height: 25px;
  23367. border-radius: 4px;
  23368. margin: 10px 15px 10px 0;
  23369. white-space: nowrap;
  23370. overflow: hidden;
  23371. padding: 5px;
  23372. text-overflow: ellipsis;
  23373. cursor: pointer;
  23374. border: 1px solid #0061ff;
  23375. }
  23376. .noWorksName2 > span {
  23377. max-width: 100%;
  23378. display: block;
  23379. overflow: hidden;
  23380. text-overflow: ellipsis;
  23381. white-space: nowrap;
  23382. }
  23383. .isWorksName2 {
  23384. width: 100px;
  23385. height: 40px;
  23386. line-height: 40px;
  23387. position: relative;
  23388. background: #dae6f9;
  23389. }
  23390. .isWorksName {
  23391. background: #e7ebf1 !important;
  23392. width: 100px;
  23393. height: 40px;
  23394. line-height: 40px;
  23395. position: relative;
  23396. color: #acb4bf;
  23397. border: 1px solid #cad1dc !important;
  23398. }
  23399. .isSelectName,
  23400. .noWorksName:hover {
  23401. background: #3383fa !important;
  23402. color: #fff !important;
  23403. border: 1px solid #3383fa !important;
  23404. }
  23405. .title {
  23406. background: #1e5cc9;
  23407. /* width: 98%; */
  23408. height: 45px;
  23409. color: #fff;
  23410. line-height: 45px;
  23411. padding-left: 20px;
  23412. box-sizing: border-box;
  23413. }
  23414. .textBox {
  23415. font-size: 20px;
  23416. width: 90%;
  23417. display: flex;
  23418. flex-direction: column;
  23419. align-items: center;
  23420. margin: 20px auto 0;
  23421. max-height: calc(100% - 75px);
  23422. overflow: auto;
  23423. }
  23424. .textContent {
  23425. font-size: 18px;
  23426. width: 95%;
  23427. max-width: 95%;
  23428. }
  23429. .answerBg {
  23430. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  23431. background-size: 100% 100%;
  23432. width: 100%;
  23433. height: 100%;
  23434. color: #fff;
  23435. text-align: center;
  23436. display: flex;
  23437. flex-direction: column;
  23438. flex-wrap: nowrap;
  23439. align-items: center;
  23440. position: relative;
  23441. justify-content: center;
  23442. }
  23443. /* .answerBg > div:nth-child(1) {
  23444. font-size: 22px;
  23445. padding: 25px 0 10px;
  23446. } */
  23447. .answerContent {
  23448. width: 215px;
  23449. max-height: 60px;
  23450. word-break: break-all;
  23451. text-align: center;
  23452. /* white-space: nowrap; */
  23453. overflow: hidden;
  23454. text-overflow: ellipsis;
  23455. /* padding: 23px 0 0; */
  23456. -webkit-line-clamp: 3;
  23457. -webkit-box-orient: vertical;
  23458. display: -webkit-box;
  23459. font-size: 15px;
  23460. cursor: pointer;
  23461. }
  23462. .elist_input_box {
  23463. display: flex;
  23464. align-items: flex-start;
  23465. flex-wrap: nowrap;
  23466. padding: 10px 0 15px 30px;
  23467. flex-direction: column;
  23468. }
  23469. .elist_input {
  23470. /* width: 40%; */
  23471. width: 45%;
  23472. margin: 20px;
  23473. }
  23474. .elist_input .elist_input_box input {
  23475. font: inherit;
  23476. color: currentColor;
  23477. width: 200px;
  23478. padding: 8px 14px;
  23479. display: block;
  23480. min-width: 0;
  23481. outline: none;
  23482. border: 1px solid rgba(0, 0, 0, 0.23);
  23483. border-radius: 4px;
  23484. box-sizing: border-box;
  23485. background: #fff;
  23486. margin: 0 20px 0 0;
  23487. }
  23488. .elist_input .elist_input_box span {
  23489. height: 36px;
  23490. line-height: 36px;
  23491. color: rgb(82, 82, 82);
  23492. }
  23493. .elist_input .elist_input_box .remove {
  23494. height: 20px;
  23495. width: 20px;
  23496. background-size: 100% 100%;
  23497. background-position: unset;
  23498. margin-left: 5px;
  23499. }
  23500. .elist_input_box >>> .el-rate {
  23501. display: flex;
  23502. height: 36px;
  23503. align-items: center;
  23504. }
  23505. .elist_input_box .elist_inptu_text {
  23506. min-height: 50px;
  23507. /* width: 500px;
  23508. max-height: 150px; */
  23509. width: 100%;
  23510. line-height: 50px;
  23511. color: rgb(82, 82, 82);
  23512. overflow: auto;
  23513. text-indent: 5px;
  23514. background: #f7f6f9;
  23515. border-radius: 10px;
  23516. }
  23517. .elist_input_box .elist_inptu_text input {
  23518. width: 500px;
  23519. }
  23520. .elist_input_box >>> .el-rate__icon {
  23521. font-size: 24px;
  23522. }
  23523. .isClick {
  23524. background: #4d9def;
  23525. }
  23526. .bzBox {
  23527. display: flex;
  23528. flex-direction: row;
  23529. align-items: center;
  23530. }
  23531. .bzBox .yCss {
  23532. width: 7px;
  23533. height: 7px;
  23534. background: #fff;
  23535. margin: 0 16px 0 6px;
  23536. border-radius: 50%;
  23537. border: 5px solid #3681fc;
  23538. z-index: 99;
  23539. }
  23540. .bzBox > div:nth-child(2) {
  23541. font-size: 18px;
  23542. font-weight: bold;
  23543. color: #0e1e33;
  23544. }
  23545. .navTitile {
  23546. padding: 0 0px 0 15px;
  23547. font-size: 16px;
  23548. font-weight: bold;
  23549. color: #0e1e33;
  23550. height: 40px;
  23551. line-height: 40px;
  23552. }
  23553. .isTypeOne {
  23554. width: 240px;
  23555. height: 170px;
  23556. /* border: 1px solid #f8f8f8; */
  23557. border-radius: 10px;
  23558. box-shadow: 0 0 6px 1px #dfdada;
  23559. }
  23560. .e_add_top {
  23561. display: flex;
  23562. justify-content: space-between;
  23563. padding: 10px 20px;
  23564. border-radius: 3px;
  23565. background: #fff;
  23566. }
  23567. .e_add_title2 {
  23568. display: flex;
  23569. align-items: center;
  23570. }
  23571. .e_add_title2 span {
  23572. width: 40px;
  23573. }
  23574. .e_add_title {
  23575. display: flex;
  23576. align-items: center;
  23577. color: #b8b8b8;
  23578. font-size: 18px;
  23579. position: relative;
  23580. height: 40px;
  23581. }
  23582. .e_add_title span {
  23583. margin-right: 10px;
  23584. }
  23585. .e_add_title .el_input {
  23586. width: 300px;
  23587. }
  23588. .e_add_title >>> .el-input__inner {
  23589. width: 400px;
  23590. }
  23591. /* .e_add_btn {
  23592. } */
  23593. .e_add_content {
  23594. display: flex;
  23595. width: 100%;
  23596. max-width: 650px;
  23597. height: 550px;
  23598. }
  23599. .e_add_list {
  23600. background: #fff;
  23601. height: 500px;
  23602. width: 210px;
  23603. position: relative;
  23604. margin: 15px 5px 0 0;
  23605. flex-shrink: 0;
  23606. display: flex;
  23607. flex-direction: column;
  23608. }
  23609. .e_add_list_title {
  23610. font-size: 20px;
  23611. width: 100%;
  23612. box-sizing: border-box;
  23613. padding: 15px 40px;
  23614. text-align: center;
  23615. border-bottom: 1px solid #eaeaea;
  23616. position: relative;
  23617. display: flex;
  23618. align-items: center;
  23619. justify-content: center;
  23620. height: 57px;
  23621. background: #f6f6f6;
  23622. }
  23623. .e_add_list_title span {
  23624. overflow: hidden;
  23625. white-space: nowrap;
  23626. text-overflow: ellipsis;
  23627. }
  23628. .e_add_list_title img {
  23629. position: absolute;
  23630. right: 15px;
  23631. width: 25px;
  23632. cursor: pointer;
  23633. top: 50%;
  23634. transform: translateY(-50%);
  23635. }
  23636. .e_add_list_body {
  23637. height: calc(100% - 187px);
  23638. overflow: auto;
  23639. }
  23640. .e_add_list_child {
  23641. width: 100%;
  23642. display: flex;
  23643. align-items: center;
  23644. justify-content: center;
  23645. position: relative;
  23646. box-sizing: border-box;
  23647. padding: 15px 40px;
  23648. text-align: center;
  23649. }
  23650. .e_add_list_child span {
  23651. overflow: hidden;
  23652. white-space: nowrap;
  23653. text-overflow: ellipsis;
  23654. cursor: pointer;
  23655. }
  23656. .e_add_list_child img {
  23657. position: absolute;
  23658. right: 10px;
  23659. width: 21px;
  23660. cursor: pointer;
  23661. top: 50%;
  23662. transform: translateY(-50%);
  23663. }
  23664. .e_add_list_child + .e_add_list_child {
  23665. border-top: 1px solid #eaeaea;
  23666. }
  23667. .e_add_list_child .active {
  23668. color: #409eff;
  23669. }
  23670. .e_add_list_btn {
  23671. position: absolute;
  23672. bottom: 0;
  23673. height: 50px;
  23674. background: rgb(120, 120, 254);
  23675. width: 100%;
  23676. color: #fff;
  23677. font-size: 16px;
  23678. text-align: center;
  23679. line-height: 50px;
  23680. cursor: pointer;
  23681. }
  23682. .e_add_list_detail {
  23683. position: absolute;
  23684. bottom: 0;
  23685. height: 130px;
  23686. background: rgb(120, 120, 254);
  23687. width: 100%;
  23688. color: #fff;
  23689. font-size: 16px;
  23690. display: flex;
  23691. align-items: center;
  23692. justify-content: center;
  23693. }
  23694. .e_add_list_detail textarea {
  23695. height: 90%;
  23696. width: 95%;
  23697. border: none;
  23698. resize: none;
  23699. outline: none;
  23700. padding: 5px;
  23701. box-sizing: border-box;
  23702. }
  23703. .e_add_list_pbox {
  23704. width: 100%;
  23705. max-width: 650px;
  23706. /* height: 600px; */
  23707. }
  23708. .e_add_list_pbox_title {
  23709. height: 50px;
  23710. background: #fff;
  23711. display: flex;
  23712. align-items: center;
  23713. width: 100%;
  23714. box-sizing: border-box;
  23715. padding: 0 20px;
  23716. }
  23717. .type_title {
  23718. font-size: 18px;
  23719. font-weight: 700;
  23720. }
  23721. .type_content {
  23722. font-size: 16px;
  23723. /* margin-left: 30px; */
  23724. }
  23725. .type_content span + span {
  23726. margin-left: 20px;
  23727. }
  23728. .type_content span {
  23729. cursor: pointer;
  23730. padding-bottom: 5px;
  23731. box-sizing: border-box;
  23732. }
  23733. .type_content .active {
  23734. color: #409eff;
  23735. border-bottom: 2px solid #409eff;
  23736. }
  23737. .e_add_list_pbox_content {
  23738. height: calc(100% - 50px);
  23739. display: flex;
  23740. align-items: center;
  23741. width: 100%;
  23742. background: #fff;
  23743. }
  23744. .evaCss {
  23745. display: flex;
  23746. flex-direction: row;
  23747. flex-wrap: nowrap;
  23748. align-items: flex-start;
  23749. padding: 0 0 20px;
  23750. }
  23751. .cru_line {
  23752. position: absolute;
  23753. bottom: 0px;
  23754. transition: all 0.5s;
  23755. left: 0px;
  23756. width: 125px;
  23757. margin-left: -25px;
  23758. }
  23759. .isNoMessage {
  23760. width: 20%;
  23761. margin: 25% auto 0;
  23762. }
  23763. .isNoMessage > img {
  23764. width: 100%;
  23765. height: 100%;
  23766. }
  23767. .fullStyle >>> .el-dialog__body {
  23768. height: 100% !important;
  23769. }
  23770. .fullStyle >>> .el-dialog,
  23771. .fullStyle {
  23772. width: 100% !important;
  23773. max-width: 100% !important;
  23774. height: 100% !important;
  23775. margin: 0 !important;
  23776. }
  23777. .full_diy >>> .el-dialog {
  23778. margin: 0 !important;
  23779. height: 100%;
  23780. padding: 4px;
  23781. }
  23782. .full_diy >>> .el-dialog__body {
  23783. height: calc(100% - 100px);
  23784. }
  23785. .full_diy2 >>> .el-dialog__body {
  23786. height: calc(100% - 50px);
  23787. padding: 0;
  23788. }
  23789. .switchCss {
  23790. /* width: 100%; */
  23791. display: flex;
  23792. flex-direction: row;
  23793. flex-wrap: nowrap;
  23794. align-items: center;
  23795. /* justify-content: center; */
  23796. }
  23797. .isClickNav {
  23798. /* color: #499eef; */
  23799. color: #000;
  23800. }
  23801. .commentImg {
  23802. width: 25px;
  23803. height: 25px;
  23804. cursor: pointer;
  23805. }
  23806. .commentImg > img {
  23807. width: 100%;
  23808. height: 100%;
  23809. }
  23810. .comment {
  23811. background: #f9f9f9;
  23812. border-radius: 0 0 4px 4px;
  23813. display: flex;
  23814. flex-direction: row;
  23815. flex-wrap: nowrap;
  23816. align-items: center;
  23817. justify-content: flex-end;
  23818. height: 35px;
  23819. }
  23820. .commentList {
  23821. display: flex;
  23822. flex-direction: row;
  23823. flex-wrap: nowrap;
  23824. align-items: center;
  23825. justify-content: center;
  23826. align-content: center;
  23827. /* margin-left: 15px; */
  23828. /* margin-left: 8px; */
  23829. }
  23830. .scoreImg {
  23831. width: 17px;
  23832. height: 17px;
  23833. }
  23834. .studentDetail {
  23835. display: flex;
  23836. flex-direction: row;
  23837. flex-wrap: nowrap;
  23838. /* align-items: center; */
  23839. align-items: flex-start;
  23840. }
  23841. .tx {
  23842. width: 50px;
  23843. }
  23844. .tx > img {
  23845. width: 100%;
  23846. height: 100%;
  23847. }
  23848. .nameAndTime {
  23849. display: flex;
  23850. flex-direction: column;
  23851. flex-wrap: nowrap;
  23852. align-items: flex-start;
  23853. margin-left: 10px;
  23854. }
  23855. .worksAnswer {
  23856. color: #4078dd;
  23857. margin: 10px 0;
  23858. font-size: 16px;
  23859. position: relative;
  23860. }
  23861. .worksAnswer > img {
  23862. width: 500px;
  23863. height: 300px;
  23864. object-fit: contain;
  23865. margin: 0 auto;
  23866. display: block;
  23867. }
  23868. .commentTop {
  23869. border-bottom: 1px solid #eaeaea;
  23870. padding-bottom: 10px;
  23871. }
  23872. .commentBox {
  23873. padding-top: 15px;
  23874. }
  23875. .pl {
  23876. font-size: 18px;
  23877. }
  23878. .plPerson {
  23879. width: 100%;
  23880. }
  23881. .plName {
  23882. display: flex;
  23883. flex-direction: row;
  23884. flex-wrap: nowrap;
  23885. align-items: baseline;
  23886. color: #78787a;
  23887. width: 100%;
  23888. }
  23889. .deleteComment {
  23890. cursor: pointer;
  23891. margin-left: auto;
  23892. color: #237ade;
  23893. }
  23894. .plContent {
  23895. margin-top: 5px;
  23896. }
  23897. .evalCss {
  23898. background: #fff;
  23899. font-size: 18px;
  23900. }
  23901. .nav {
  23902. color: #9d9d9d;
  23903. padding: 5px 0 15px 20px;
  23904. }
  23905. .middleBox {
  23906. padding: 5px 0 15px 20px;
  23907. }
  23908. .pfBox {
  23909. padding-bottom: 30px;
  23910. }
  23911. .nameAndrate {
  23912. display: flex;
  23913. flex-direction: row;
  23914. flex-wrap: nowrap;
  23915. align-items: center;
  23916. padding-bottom: 10px;
  23917. height: 30px;
  23918. line-height: 30px;
  23919. }
  23920. .nameAndrate > div {
  23921. margin-left: 10px;
  23922. color: #000;
  23923. height: 30px;
  23924. }
  23925. .nameAndrate >>> .el-rate__icon {
  23926. font-size: 28px !important;
  23927. }
  23928. .pfBox > div:nth-child(2) {
  23929. background: #f7f6f9;
  23930. width: 400px;
  23931. min-height: 45px;
  23932. border-radius: 10px;
  23933. font-size: 16px;
  23934. display: flex;
  23935. flex-wrap: wrap;
  23936. align-items: center;
  23937. padding: 10px 20px;
  23938. box-sizing: border-box;
  23939. color: #000;
  23940. }
  23941. .bz {
  23942. display: flex;
  23943. flex-direction: row;
  23944. flex-wrap: nowrap;
  23945. align-items: flex-start;
  23946. }
  23947. .bz > div {
  23948. padding: 0 10px;
  23949. }
  23950. .select_box2_title {
  23951. background: #fff;
  23952. border-radius: 5px;
  23953. padding: 15px 10px;
  23954. box-sizing: border-box;
  23955. margin-bottom: 10px;
  23956. display: flex;
  23957. flex-direction: row;
  23958. flex-wrap: nowrap;
  23959. align-items: center;
  23960. }
  23961. .select_box2_title > div:nth-child(2) {
  23962. margin-left: 10px;
  23963. color: #c4c4c4;
  23964. }
  23965. .select_box2_box {
  23966. display: flex;
  23967. height: 500px;
  23968. }
  23969. .select_box2_img {
  23970. width: calc(100% - 310px);
  23971. height: 100%;
  23972. overflow: auto;
  23973. background: #fff;
  23974. border-radius: 5px;
  23975. }
  23976. .select_box2_img img {
  23977. width: 100%;
  23978. }
  23979. .select_box2_answer {
  23980. background: #fff;
  23981. margin-left: 10px;
  23982. border-radius: 5px;
  23983. width: 300px;
  23984. overflow: auto;
  23985. height: 90%;
  23986. display: flex;
  23987. flex-direction: column;
  23988. align-items: flex-start;
  23989. padding-top: 10px;
  23990. box-sizing: border-box;
  23991. position: relative;
  23992. }
  23993. .select_answer_title {
  23994. padding: 0 0 15px 20px;
  23995. color: #c4c4c4;
  23996. }
  23997. .select_box2_answer_box {
  23998. margin: 0 0 10px 20px;
  23999. width: 85%;
  24000. display: flex;
  24001. flex-direction: row;
  24002. flex-wrap: nowrap;
  24003. align-items: center;
  24004. }
  24005. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  24006. color: #000;
  24007. }
  24008. .upAnswerCss {
  24009. position: absolute;
  24010. bottom: 15px;
  24011. right: 15px;
  24012. }
  24013. .upAnswerCss >>> .el-button {
  24014. width: 95px;
  24015. height: 35px;
  24016. line-height: 35px;
  24017. padding: 0;
  24018. }
  24019. .rightWidthCss {
  24020. width: 60%;
  24021. display: flex;
  24022. flex-direction: row;
  24023. align-items: flex-start;
  24024. }
  24025. .rightAnswer {
  24026. display: flex;
  24027. flex-direction: row;
  24028. flex-wrap: nowrap;
  24029. align-items: center;
  24030. color: red;
  24031. margin-bottom: 31px;
  24032. }
  24033. .rightAnswerCss {
  24034. display: flex;
  24035. flex-direction: column;
  24036. flex-wrap: nowrap;
  24037. padding-top: 60px;
  24038. }
  24039. .blueCss {
  24040. color: #767de1;
  24041. margin-left: 10px;
  24042. }
  24043. .redCss {
  24044. color: red;
  24045. }
  24046. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  24047. color: rgb(0 123 255) !important;
  24048. }
  24049. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  24050. color: rgb(0 123 255) !important;
  24051. }
  24052. .zuoyeYulan {
  24053. padding-top: 0;
  24054. font-size: 18px;
  24055. display: flex;
  24056. align-items: flex-end;
  24057. }
  24058. .buttonA {
  24059. margin-left: 10px;
  24060. padding: 0;
  24061. }
  24062. .displayBox {
  24063. margin-bottom: 10px;
  24064. display: block;
  24065. border-bottom: 3px solid #eee;
  24066. display: flex;
  24067. align-items: center;
  24068. }
  24069. .easy_comment {
  24070. width: calc(100% - 90px);
  24071. margin-left: 10px;
  24072. display: flex;
  24073. flex-wrap: wrap;
  24074. }
  24075. .easy_comment > div {
  24076. border: 1px solid #4a4a4a;
  24077. color: #666;
  24078. border-radius: 15px;
  24079. padding: 5px 10px;
  24080. font-size: 16px;
  24081. margin-bottom: 10px;
  24082. margin-right: 5px;
  24083. cursor: pointer;
  24084. }
  24085. .easy_comment div:hover {
  24086. border: 1px solid #f7ba2a;
  24087. color: #c69217;
  24088. }
  24089. .xuan_right_box {
  24090. padding: 10px 0;
  24091. background: #f0f4fa;
  24092. margin: 0 15px 0 25px;
  24093. border-bottom-left-radius: 5px;
  24094. border-bottom-right-radius: 5px;
  24095. width: 91.5%;
  24096. }
  24097. .tool_right_box {
  24098. display: flex;
  24099. align-items: center;
  24100. }
  24101. .tool_right_box + .tool_right_box {
  24102. margin-top: 10px;
  24103. }
  24104. .right_box_xuan {
  24105. border-radius: 5px;
  24106. padding: 5px;
  24107. margin-left: 10px;
  24108. min-width: 85px;
  24109. background: #fff;
  24110. color: #0061ff;
  24111. border: 1px solid #0061ff;
  24112. font-size: 14px;
  24113. }
  24114. .pButton:hover {
  24115. opacity: 1 !important;
  24116. }
  24117. .pButton {
  24118. position: fixed;
  24119. text-align: center;
  24120. cursor: pointer;
  24121. z-index: 999;
  24122. right: 20px;
  24123. top: 110px;
  24124. width: 50px;
  24125. height: 50px;
  24126. display: flex;
  24127. align-items: center;
  24128. justify-content: center;
  24129. border-radius: 5px;
  24130. }
  24131. .pzClass {
  24132. width: calc(100% - 340px);
  24133. }
  24134. .newDialogCss {
  24135. /* position: fixed;
  24136. right: 5%;
  24137. top: 50%;
  24138. width: 340px;
  24139. transform: translateY(-50%);
  24140. height: 60%;
  24141. box-shadow: 0px 0 8px 0px #555555;
  24142. border-radius: 15px;
  24143. z-index: 999; */
  24144. position: fixed;
  24145. right: 20px;
  24146. top: 101px;
  24147. width: 330px;
  24148. height: calc(100% - 80px);
  24149. z-index: 999;
  24150. background: #fff;
  24151. border-top-right-radius: 0px;
  24152. border-bottom-right-radius: 0px;
  24153. overflow: hidden;
  24154. }
  24155. .newDialogCss>.scoreList{
  24156. width:100%;
  24157. height:100%;
  24158. box-sizing:border-box;
  24159. padding:10px 15px;
  24160. overflow:auto;
  24161. padding-bottom:80px;
  24162. }
  24163. .pzTop {
  24164. color: #fff;
  24165. background: #000;
  24166. display: flex;
  24167. flex-direction: row;
  24168. flex-wrap: nowrap;
  24169. align-items: center;
  24170. justify-content: space-between;
  24171. height: 40px;
  24172. border-radius: 15px 15px 0 0;
  24173. user-select: none;
  24174. }
  24175. .pzTop2 .checkbox {
  24176. display: flex;
  24177. align-items: center;
  24178. padding: 5px 10px;
  24179. flex: 0 0 auto;
  24180. font-weight: bold;
  24181. border-bottom: 1px solid #eee;
  24182. justify-content: space-between;
  24183. }
  24184. .checkbox>.cb-tabList{
  24185. display:flex;
  24186. align-items:center;
  24187. }
  24188. .cb-tabList>div{
  24189. margin-right:20px;
  24190. font-weight:400;
  24191. cursor:pointer;
  24192. }
  24193. .cb-tabList>.cb-tabItem{
  24194. color:#1684FC;
  24195. position:relative;
  24196. }
  24197. .cb-tabItem::after{
  24198. content:"";
  24199. width:100%;
  24200. height:2px;
  24201. background:#1684FC;
  24202. position:absolute;
  24203. bottom:-5px;
  24204. left:0
  24205. }
  24206. .pzTop2 .check {
  24207. text-align: center;
  24208. cursor: pointer;
  24209. box-sizing: border-box;
  24210. display: flex;
  24211. }
  24212. .pzTop2 img {
  24213. width: 25px;
  24214. cursor: pointer;
  24215. }
  24216. .pzTop > div:nth-child(1) {
  24217. padding-left: 10px;
  24218. }
  24219. .pzTop > div:nth-child(2) {
  24220. width: 15px;
  24221. height: 15px;
  24222. padding-right: 10px;
  24223. cursor: pointer;
  24224. }
  24225. .pzTop > div:nth-child(2) > img {
  24226. width: 100%;
  24227. height: 100%;
  24228. }
  24229. .pzBox,
  24230. .noPzBox {
  24231. height: calc(100% - 60px);
  24232. /* background: #ededed; */
  24233. background: #fff;
  24234. /* border-radius: 0 0 15px 15px; */
  24235. }
  24236. .noPzBox {
  24237. display: flex;
  24238. flex-direction: column;
  24239. flex-wrap: nowrap;
  24240. justify-content: center;
  24241. align-items: center;
  24242. }
  24243. .pzList {
  24244. background: #f7f7f7;
  24245. width: 90%;
  24246. margin: 0 auto 15px;
  24247. border-radius: 5px;
  24248. }
  24249. .pzNavTop {
  24250. display: flex;
  24251. flex-direction: row;
  24252. flex-wrap: nowrap;
  24253. padding: 10px 10px 0 10px;
  24254. align-items: center;
  24255. }
  24256. .pzDelete {
  24257. cursor: pointer;
  24258. margin-left: auto;
  24259. font-size: 14px;
  24260. color: #afafaf;
  24261. }
  24262. .pzNavTop > div:nth-child(1) {
  24263. background: #3760af;
  24264. width: 35px;
  24265. height: 35px;
  24266. color: #fff;
  24267. text-align: center;
  24268. line-height: 35px;
  24269. border-radius: 50%;
  24270. font-size: 14px;
  24271. }
  24272. .pzNavTop > div:nth-child(2) {
  24273. font-size: 18px;
  24274. color: #959595;
  24275. margin-left: 5px;
  24276. }
  24277. .pzContent {
  24278. padding: 10px;
  24279. word-break: break-word;
  24280. }
  24281. .pzContent audio {
  24282. width: 100%;
  24283. }
  24284. .pzContent audio::-webkit-media-controls-panel {
  24285. background: #fff;
  24286. }
  24287. .pzContent >>> img {
  24288. max-width: 100%;
  24289. }
  24290. .pzListBox {
  24291. padding-top: 15px;
  24292. height: calc(100% - 110px);
  24293. overflow: auto;
  24294. }
  24295. .addPzButton {
  24296. position: relative;
  24297. margin-top: 3px;
  24298. width: 100%;
  24299. }
  24300. .addPzButton .img1 {
  24301. position: absolute;
  24302. top: 50%;
  24303. right: 25px;
  24304. transform: translateY(-50%);
  24305. height: 100%;
  24306. display: flex;
  24307. align-items: center;
  24308. }
  24309. .addPzButton .img1 div {
  24310. display: flex;
  24311. }
  24312. .addPzButton .img1 div img {
  24313. width: 28px;
  24314. margin-left: 10px;
  24315. cursor: pointer;
  24316. }
  24317. .addPzButton .img1 div span {
  24318. font-size: 14px;
  24319. margin: 4px 0 0 3px;
  24320. color: #afafaf;
  24321. }
  24322. .addPz {
  24323. background: #4b79ce;
  24324. width: 100px;
  24325. color: #fff;
  24326. font-size: 12px;
  24327. height: 30px;
  24328. margin: 0 auto;
  24329. text-align: center;
  24330. line-height: 30px;
  24331. border-radius: 10px;
  24332. cursor: pointer;
  24333. }
  24334. .addDialogCss {
  24335. position: fixed;
  24336. width: 600px;
  24337. height: 70%;
  24338. min-height: 450px;
  24339. box-shadow: 0px 0 8px 0px #555555;
  24340. border-radius: 15px;
  24341. z-index: 999;
  24342. left: 50%;
  24343. top: 50%;
  24344. margin: -18% 0 0 -300px;
  24345. }
  24346. .teacherPz {
  24347. display: flex;
  24348. flex-direction: row;
  24349. align-items: center;
  24350. flex-wrap: nowrap;
  24351. }
  24352. .teacherPzImg {
  24353. width: 30px;
  24354. height: 30px;
  24355. }
  24356. .teacherPzImg > img {
  24357. width: 100%;
  24358. height: 100%;
  24359. }
  24360. .addPzBox {
  24361. height: calc(100% - 40px);
  24362. background: #ededed;
  24363. border-bottom-left-radius: 15px;
  24364. border-bottom-right-radius: 15px;
  24365. }
  24366. .pzAudioClass {
  24367. margin: 15px 14px;
  24368. background: #fff;
  24369. height: 100%;
  24370. display: flex;
  24371. justify-content: center;
  24372. align-items: center;
  24373. }
  24374. .pzConText {
  24375. width: 95%;
  24376. height: 100%;
  24377. margin: 10px auto 0;
  24378. border: none;
  24379. background: #fff;
  24380. border-radius: 0px;
  24381. }
  24382. .pzConText >>> .text {
  24383. height: calc(100% - 82px);
  24384. }
  24385. .addTextCss {
  24386. background: #4b79ce;
  24387. width: 80px;
  24388. height: 30px;
  24389. text-align: center;
  24390. color: #fff;
  24391. line-height: 30px;
  24392. border-radius: 10px;
  24393. margin: 10px auto 0;
  24394. cursor: pointer;
  24395. }
  24396. .pzConText:focus-visible {
  24397. border: none !important;
  24398. }
  24399. .maxWidth {
  24400. width: 1000px;
  24401. }
  24402. .noPz {
  24403. width: 150px;
  24404. margin: 0 auto 20%;
  24405. }
  24406. .noPz > img {
  24407. width: 100%;
  24408. height: 100%;
  24409. }
  24410. .timeAndReply {
  24411. display: flex;
  24412. flex-direction: row;
  24413. flex-wrap: nowrap;
  24414. justify-content: space-between;
  24415. align-items: center;
  24416. font-size: 14px;
  24417. box-sizing: border-box;
  24418. padding: 0 10px 10px 0px;
  24419. }
  24420. .timeAndReply .time {
  24421. color: #bfbfbf;
  24422. padding: 0 0 0 10px;
  24423. box-sizing: border-box;
  24424. }
  24425. .timeAndReply > div:last-child {
  24426. cursor: pointer;
  24427. color: #777;
  24428. }
  24429. /* table 样式 */
  24430. .cont >>> table {
  24431. border-top: 1px solid #ccc;
  24432. border-left: 1px solid #ccc;
  24433. }
  24434. .cont >>> table td,
  24435. .cont >>> table th {
  24436. border-bottom: 1px solid #ccc;
  24437. border-right: 1px solid #ccc;
  24438. /* padding: 20px 5px; */
  24439. padding: 5px 10px;
  24440. max-width: 0px;
  24441. height: 30px;
  24442. vertical-align: baseline;
  24443. box-sizing: border-box;
  24444. }
  24445. .cont >>> table th {
  24446. border-bottom: 2px solid #ccc;
  24447. text-align: center;
  24448. }
  24449. /* blockquote 样式 */
  24450. .cont >>> blockquote {
  24451. display: block;
  24452. border-left: 8px solid #d0e5f2;
  24453. padding: 5px 10px;
  24454. margin: 10px 0;
  24455. line-height: 1.4;
  24456. font-size: 100%;
  24457. background-color: #f1f1f1;
  24458. }
  24459. /* code 样式 */
  24460. .cont >>> code {
  24461. display: inline-block;
  24462. /* *display: inline; */
  24463. zoom: 1;
  24464. background-color: #f1f1f1;
  24465. border-radius: 3px;
  24466. padding: 3px 5px;
  24467. margin: 0 3px;
  24468. }
  24469. .cont >>> pre code {
  24470. display: block;
  24471. }
  24472. /* ul ol 样式 */
  24473. .cont >>> ul,
  24474. ol {
  24475. margin: 10px 0 10px 20px;
  24476. }
  24477. .addPzCheck {
  24478. display: flex;
  24479. flex-direction: row;
  24480. flex-wrap: nowrap;
  24481. padding: 10px 15px 0;
  24482. }
  24483. .addPzCheck span {
  24484. cursor: pointer;
  24485. padding-bottom: 5px;
  24486. font-weight: bold;
  24487. }
  24488. .addPzCheck span + span {
  24489. margin-left: 10px;
  24490. }
  24491. .addPzCheck .isChooseActive {
  24492. color: #3e88f4;
  24493. border-bottom: 2px solid #2f80f3;
  24494. }
  24495. /* code 样式 */
  24496. .cont {
  24497. /* -webkit-user-modify: read-write; */
  24498. overflow-wrap: break-word;
  24499. -webkit-line-break: after-white-space;
  24500. word-break: break-word;
  24501. white-space: pre-line;
  24502. }
  24503. .scoreBox,
  24504. .scoreDetailBox {
  24505. display: flex;
  24506. align-items: center;
  24507. justify-content: flex-start;
  24508. margin-top: 20px;
  24509. font-size: 18px;
  24510. width: 100%;
  24511. }
  24512. .scoreBox .t,
  24513. .scoreDetailBox .t {
  24514. margin-right: 10px;
  24515. width: 100px;
  24516. text-align: right;
  24517. }
  24518. .scoreDetailBox {
  24519. align-items: flex-start;
  24520. }
  24521. .scoreDetailBox >>> .el-textarea {
  24522. width: calc(100% - 200px);
  24523. }
  24524. .scoreBox >>> .el-input {
  24525. width: 130px;
  24526. font-size: 38px;
  24527. }
  24528. .scoreBox >>> .el-input__inner {
  24529. height: 60px;
  24530. }
  24531. .answerScore {
  24532. position: absolute;
  24533. top: 10px;
  24534. right: 10px;
  24535. background: #0000008f;
  24536. border-radius: 5px;
  24537. padding: 3px 5px;
  24538. font-size: 14px;
  24539. color: #fff;
  24540. cursor: pointer;
  24541. }
  24542. .open_box .switch_box {
  24543. width: 100%;
  24544. margin: 0 auto;
  24545. display: flex;
  24546. justify-content: space-between;
  24547. }
  24548. .open_box .switch_box + .switch_box {
  24549. margin-top: 10px;
  24550. }
  24551. .deleteImg,.deleteImg1 {
  24552. width: 25px !important;
  24553. height: 25px !important;
  24554. cursor: pointer;
  24555. position: absolute;
  24556. top: 10px;
  24557. right: 10px;
  24558. }
  24559. .deleteImg2 {
  24560. width: 23px !important;
  24561. height: 23px !important;
  24562. top: 5px;
  24563. right: 5px;
  24564. }
  24565. .deleteImg1{
  24566. width: 23px !important;
  24567. height: 23px !important;
  24568. top: 5px !important;
  24569. right: 30px !important;
  24570. }
  24571. .rightW {
  24572. right: 40px;
  24573. }
  24574. .drawPBox {
  24575. display: flex;
  24576. flex-direction: column;
  24577. position: relative;
  24578. }
  24579. .drawPBox span {
  24580. font-size: 18px;
  24581. color: #606266;
  24582. padding-bottom: 10px;
  24583. margin: 10px 0;
  24584. border-bottom: 1px solid #eaeaea;
  24585. }
  24586. .drawPBox img {
  24587. width: 500px;
  24588. height: 300px;
  24589. object-fit: contain;
  24590. cursor: pointer;
  24591. margin: 0 auto;
  24592. }
  24593. .sentenBox {
  24594. background: #fff;
  24595. height: 450px;
  24596. overflow: auto;
  24597. background-image: url("../../assets/icon/conSentences/stuBg.png");
  24598. background-position: 102%;
  24599. background-repeat: no-repeat;
  24600. background-size: 60%;
  24601. }
  24602. .addSen {
  24603. background: #409efe;
  24604. width: 90px;
  24605. color: #fff;
  24606. height: 35px;
  24607. text-align: center;
  24608. line-height: 35px;
  24609. border-radius: 5px;
  24610. float: right;
  24611. margin: 10px 20px 0 0;
  24612. cursor: pointer;
  24613. }
  24614. .sentenTop {
  24615. display: flex;
  24616. flex-direction: row;
  24617. flex-wrap: nowrap;
  24618. align-items: center;
  24619. padding: 55px 0 0 20px;
  24620. box-sizing: border-box;
  24621. }
  24622. .sentenTop > div:nth-child(2) {
  24623. width: 300px;
  24624. margin: 0 15px;
  24625. }
  24626. .sentenTop > div:nth-child(3) {
  24627. background: #409efe;
  24628. color: #fff;
  24629. width: 65px;
  24630. height: 35px;
  24631. text-align: center;
  24632. line-height: 35px;
  24633. border-radius: 5px;
  24634. cursor: pointer;
  24635. }
  24636. .cardList,
  24637. .cardList1 {
  24638. padding: 10px 0 10px 0;
  24639. display: flex;
  24640. flex-direction: row;
  24641. flex-wrap: wrap;
  24642. align-items: center;
  24643. box-sizing: border-box;
  24644. border-bottom: 1px solid #f4f4f4;
  24645. width: 98%;
  24646. margin: 0 auto;
  24647. min-width: 60%;
  24648. max-width: 85%;
  24649. }
  24650. .cardList1 {
  24651. padding: 10px 0 10px 10px !important;
  24652. margin: 0 !important;
  24653. }
  24654. .cardBox {
  24655. display: flex;
  24656. flex-direction: row;
  24657. flex-wrap: wrap;
  24658. align-items: center;
  24659. align-content: center;
  24660. }
  24661. .cardBox > div {
  24662. margin-bottom: 10px;
  24663. }
  24664. .isCard,
  24665. .isChooseCard,
  24666. .noCard,
  24667. .isCard1 {
  24668. min-width: 130px;
  24669. width: auto;
  24670. height: 60px;
  24671. text-align: center;
  24672. line-height: 60px;
  24673. font-size: 20px;
  24674. cursor: pointer;
  24675. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  24676. background-size: cover;
  24677. transition: all 2s;
  24678. margin-right: 20px;
  24679. background-size: 100% 100%;
  24680. padding: 0 20px;
  24681. box-sizing: border-box;
  24682. }
  24683. .isCard > div,
  24684. .noCard > div,
  24685. .isCard1 > div {
  24686. white-space: nowrap;
  24687. overflow: hidden;
  24688. text-overflow: ellipsis;
  24689. width: 100%;
  24690. margin: 0 auto;
  24691. }
  24692. .noCard {
  24693. background-image: none;
  24694. }
  24695. .isCard1 {
  24696. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  24697. }
  24698. .isChooseCard {
  24699. background-image: none;
  24700. border: 1px dashed #b9b9b9;
  24701. border-radius: 10px;
  24702. }
  24703. .card {
  24704. width: 130px;
  24705. height: 60px;
  24706. }
  24707. .card > img {
  24708. width: 100%;
  24709. height: 100%;
  24710. }
  24711. .rightCardBox {
  24712. margin: 10px 0 0 10px;
  24713. }
  24714. .rightCardBox > div:nth-child(1) {
  24715. margin-bottom: 10px;
  24716. }
  24717. .cardCss {
  24718. display: flex;
  24719. flex-direction: column;
  24720. flex-wrap: nowrap;
  24721. align-items: center;
  24722. border-bottom: 3px solid #b4c3d3;
  24723. padding: 0 0 5px 0;
  24724. margin-right: 10px;
  24725. }
  24726. .cardCss > div:nth-child(2) {
  24727. background: #5b7b9d;
  24728. color: #fff;
  24729. width: 20px;
  24730. height: 20px;
  24731. border-radius: 50%;
  24732. text-align: center;
  24733. line-height: 20px;
  24734. }
  24735. .isWrong {
  24736. display: flex;
  24737. flex-direction: row;
  24738. flex-wrap: nowrap;
  24739. align-content: center;
  24740. align-items: center;
  24741. }
  24742. .answerRight {
  24743. width: 25%;
  24744. }
  24745. .isTj {
  24746. display: flex;
  24747. flex-direction: row;
  24748. flex-wrap: nowrap;
  24749. align-items: center;
  24750. }
  24751. .isTj > div:nth-child(2) {
  24752. color: #727070;
  24753. margin-left: 10px;
  24754. }
  24755. .isTjImg {
  24756. width: 30px;
  24757. height: 30px;
  24758. }
  24759. .isTjImg > img {
  24760. width: 100%;
  24761. height: 100%;
  24762. }
  24763. .cardAnswerBox {
  24764. font-size: 18px;
  24765. width: 97%;
  24766. border: 5px;
  24767. padding: 0;
  24768. border-radius: 5px;
  24769. margin: 10px auto;
  24770. word-break: break-word;
  24771. }
  24772. .w_name {
  24773. margin-bottom: 10px;
  24774. }
  24775. .w_name span {
  24776. font-size: 16px;
  24777. }
  24778. .w_teachert {
  24779. width: 50px !important;
  24780. position: absolute;
  24781. height: auto !important;
  24782. z-index: 10;
  24783. right: 25px;
  24784. top: -25px;
  24785. }
  24786. /* .group_workBox {
  24787. } */
  24788. .group_workBox + .group_workBox {
  24789. margin-top: 20px;
  24790. }
  24791. .group_box {
  24792. padding-bottom: 20px;
  24793. border-bottom: 2px solid #f0f0f0;
  24794. margin-top: 10px;
  24795. }
  24796. .group_title {
  24797. display: flex;
  24798. align-items: center;
  24799. justify-content: space-between;
  24800. width: 95%;
  24801. }
  24802. .group_name {
  24803. background-image: url(../../assets/icon/groupN.png);
  24804. width: 220px;
  24805. background-size: 100% 100%;
  24806. height: 67px;
  24807. padding: 0 20px 0 43px;
  24808. box-sizing: border-box;
  24809. line-height: 63px;
  24810. color: #fff;
  24811. overflow: hidden;
  24812. white-space: nowrap;
  24813. text-overflow: ellipsis;
  24814. }
  24815. .group_work {
  24816. width: 100%;
  24817. padding: 0 10px;
  24818. box-sizing: border-box;
  24819. display: flex;
  24820. flex-wrap: wrap;
  24821. }
  24822. .g_d_box {
  24823. display: flex;
  24824. flex-flow: wrap;
  24825. justify-content: space-around;
  24826. }
  24827. .g_d_box .isChair {
  24828. background-image: url(../../assets/avatar.png) !important;
  24829. }
  24830. .g_d_group {
  24831. width: 500px;
  24832. margin-bottom: 80px;
  24833. }
  24834. .g_d_group_chair {
  24835. display: flex;
  24836. align-items: center;
  24837. justify-content: center;
  24838. }
  24839. .g_d_group_chair > div + div {
  24840. margin-left: 30px;
  24841. }
  24842. .g_d_group_chair > div,
  24843. .g_d_group_chair2 > div {
  24844. display: flex;
  24845. flex-direction: column;
  24846. align-items: center;
  24847. }
  24848. .g_d_group_chair > div > span:nth-child(1),
  24849. .g_d_group_chair2 > div > span:nth-child(1) {
  24850. background-image: url(../../assets/icon/chair.png);
  24851. width: 50px;
  24852. height: 50px;
  24853. display: block;
  24854. background-size: 100% 100%;
  24855. }
  24856. .g_d_group_tableBox {
  24857. display: flex;
  24858. align-items: center;
  24859. justify-content: center;
  24860. }
  24861. .g_d_group_chair2 {
  24862. display: flex;
  24863. flex-direction: column;
  24864. align-items: center;
  24865. justify-content: center;
  24866. }
  24867. .g_d_group_chair2 > div + div {
  24868. margin-top: 10px;
  24869. }
  24870. .g_d_group_table {
  24871. background-image: url(../../assets/icon/groupBg.png);
  24872. width: 354px;
  24873. height: 196px;
  24874. background-size: 100% 100%;
  24875. display: flex;
  24876. align-items: center;
  24877. justify-content: center;
  24878. flex-direction: column;
  24879. color: #fff;
  24880. }
  24881. .g_d_group_table > div:nth-child(1) {
  24882. font-size: 24px;
  24883. margin-bottom: 5px;
  24884. }
  24885. .g_d_group_table > div:nth-child(2) div {
  24886. cursor: pointer;
  24887. background: #2e77bf;
  24888. padding: 4px 10px;
  24889. border-radius: 5px;
  24890. }
  24891. /* .groupBox {
  24892. } */
  24893. .groupContent + .groupContent {
  24894. margin-top: 30px;
  24895. }
  24896. .groupTitle {
  24897. font-size: 24px;
  24898. color: rgb(80, 80, 80);
  24899. margin-bottom: 20px;
  24900. }
  24901. .groupName {
  24902. display: flex;
  24903. align-items: center;
  24904. }
  24905. .groupn {
  24906. font-size: 15px;
  24907. margin-right: 10px;
  24908. }
  24909. .groupName + .groupName {
  24910. margin-top: 15px;
  24911. }
  24912. .groupBtn {
  24913. margin-left: 10px;
  24914. }
  24915. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  24916. text-align: left;
  24917. }
  24918. .g_d_btnBox {
  24919. display: flex;
  24920. justify-content: flex-end;
  24921. align-items: center;
  24922. margin-bottom: 20px;
  24923. }
  24924. .updateChair {
  24925. position: relative;
  24926. }
  24927. .updateChairBtn {
  24928. position: absolute;
  24929. width: 50px;
  24930. height: 50px;
  24931. overflow: hidden;
  24932. /* display: flex; */
  24933. align-items: center;
  24934. justify-content: center;
  24935. background: #00000087;
  24936. color: #fff;
  24937. border-radius: 50px;
  24938. display: none;
  24939. cursor: pointer;
  24940. }
  24941. .updateChair:hover .updateChairBtn {
  24942. display: flex;
  24943. }
  24944. .group_staic_box {
  24945. display: flex;
  24946. padding: 30px 40px 10px;
  24947. flex-wrap: wrap;
  24948. }
  24949. .group_staic {
  24950. /* width: 50%; */
  24951. margin-bottom: 20px;
  24952. display: flex;
  24953. align-items: center;
  24954. }
  24955. .group_staic span:nth-child(1) {
  24956. width: 150px;
  24957. text-align: right;
  24958. margin-right: 15px;
  24959. }
  24960. .group_staic span:nth-child(2) {
  24961. background: rgb(0 123 255);
  24962. color: #fff;
  24963. border-radius: 5px;
  24964. padding: 5px;
  24965. }
  24966. .codeFileBox {
  24967. height: 300px;
  24968. background: #fff;
  24969. display: flex;
  24970. align-items: center;
  24971. justify-content: center;
  24972. }
  24973. .codeFileBox img {
  24974. width: 200px;
  24975. margin: 0;
  24976. height: auto;
  24977. }
  24978. .codeFileBox div {
  24979. background: rgb(80, 142, 226);
  24980. color: #fff;
  24981. padding: 10px 20px;
  24982. border-radius: 25px;
  24983. cursor: pointer;
  24984. margin-left: 15px;
  24985. }
  24986. .radioBox {
  24987. display: flex;
  24988. flex-direction: column;
  24989. flex-wrap: nowrap;
  24990. align-items: flex-start;
  24991. }
  24992. .radioBox > div {
  24993. margin: 10px 0 0 10px;
  24994. }
  24995. /* .radioBox >>> .el-radio__input,
  24996. .radioBox >>> .el-checkbox__inner {
  24997. margin-left: 10px;
  24998. } */
  24999. .radioBox >>> .el-radio__label,
  25000. .radioBox >>> .el-checkbox__label {
  25001. display: flex;
  25002. align-items: center;
  25003. width: 100%;
  25004. }
  25005. .radioBox >>> .el-radio__label > span {
  25006. width: 100%;
  25007. display: -webkit-box;
  25008. overflow: hidden;
  25009. white-space: normal !important;
  25010. text-overflow: ellipsis;
  25011. word-wrap: break-word;
  25012. }
  25013. .inImg {
  25014. width: 100px;
  25015. cursor: pointer;
  25016. }
  25017. .inImg > img {
  25018. width: 100%;
  25019. height: 100%;
  25020. object-fit: cover;
  25021. }
  25022. .timuImgBox {
  25023. margin: 10px 0;
  25024. display: flex;
  25025. flex-direction: column;
  25026. flex-wrap: wrap;
  25027. align-items: flex-start;
  25028. }
  25029. .timuImg {
  25030. width: 150px;
  25031. margin: 5px 0;
  25032. cursor: pointer;
  25033. }
  25034. .timuImg > img {
  25035. width: 100%;
  25036. height: 100%;
  25037. object-fit: cover;
  25038. }
  25039. .worksTop {
  25040. display: flex;
  25041. flex-direction: row;
  25042. align-items: flex-end;
  25043. }
  25044. .worksTitle {
  25045. display: flex;
  25046. flex-direction: row;
  25047. flex-wrap: nowrap;
  25048. align-items: center;
  25049. }
  25050. .worksTitle::before,
  25051. .worksTop::before {
  25052. content: "";
  25053. display: block;
  25054. width: 3px;
  25055. height: 20px;
  25056. background: #0061ff;
  25057. border-radius: 3px;
  25058. margin: 0 5px 0 0;
  25059. }
  25060. .corOpen {
  25061. margin: 0 0 0 10px;
  25062. font-size: 14px;
  25063. cursor: pointer;
  25064. color: #505050;
  25065. }
  25066. .corOpen:hover {
  25067. color: #499eef;
  25068. }
  25069. .navCorOpenBox {
  25070. display: flex;
  25071. flex-direction: row;
  25072. align-items: center;
  25073. justify-content: space-between;
  25074. height: 55px;
  25075. background: #ffffff;
  25076. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  25077. border-radius: 8px 8px 0px 0px;
  25078. z-index: 9;
  25079. position: relative;
  25080. }
  25081. .navCorOpen {
  25082. padding-right: 15px;
  25083. cursor: pointer;
  25084. width: 45px;
  25085. display: flex;
  25086. }
  25087. .navCorOpen > img {
  25088. width: 100%;
  25089. height: 100%;
  25090. }
  25091. .mlImg {
  25092. width: 40px !important;
  25093. min-width: 40px;
  25094. cursor: pointer;
  25095. transform: rotate(180deg);
  25096. }
  25097. .mlImg > img {
  25098. width: 100%;
  25099. height: 100%;
  25100. }
  25101. .navLeftCss {
  25102. width: 100% !important;
  25103. left: 0 !important;
  25104. }
  25105. .isContentCss {
  25106. width: 100% !important;
  25107. }
  25108. .isAllWidth {
  25109. width: 100% !important;
  25110. }
  25111. .group_switch {
  25112. margin-right: 10px;
  25113. height: 30px;
  25114. display: flex;
  25115. align-items: center;
  25116. }
  25117. .group_switch > span {
  25118. margin-right: 5px;
  25119. }
  25120. .fileC_box {
  25121. padding-top: 15px;
  25122. }
  25123. .fileC_box > .fileC_title {
  25124. padding: 10px 5px 14px 10px;
  25125. border-top: 1px solid #cad1dc;
  25126. font-size: 14px;
  25127. font-weight: 400;
  25128. color: #cad1dc;
  25129. width: calc(100% - 20px);
  25130. margin: 0 auto;
  25131. box-sizing: border-box;
  25132. }
  25133. .pl_select_box {
  25134. height: 40px;
  25135. line-height: 40px;
  25136. width: 100%;
  25137. cursor: pointer;
  25138. padding: 0 20px;
  25139. box-sizing: border-box;
  25140. border-radius: 5px;
  25141. border: 1px solid #d6d6d6;
  25142. white-space: nowrap;
  25143. overflow: hidden;
  25144. text-overflow: ellipsis;
  25145. background: #fff;
  25146. text-align: left;
  25147. }
  25148. .newButton {
  25149. width: 102px;
  25150. height: 36px;
  25151. background: #e7ebf1;
  25152. border-radius: 4px;
  25153. color: #0e1e33;
  25154. font-weight: 400;
  25155. font-size: 14px;
  25156. border: none;
  25157. float: right;
  25158. margin-left: 10px;
  25159. }
  25160. .el-table >>> .even_row {
  25161. background-color: #f0f4fa;
  25162. }
  25163. .stageBoxCss,
  25164. .stageBoxIsCss {
  25165. display: flex;
  25166. flex-direction: row;
  25167. flex-wrap: nowrap;
  25168. align-items: center;
  25169. height: 50px;
  25170. border-bottom: 1px solid #e2f5fc;
  25171. cursor: pointer;
  25172. width: 100%;
  25173. }
  25174. .stageBoxIsCss {
  25175. background: #0061ff;
  25176. color: #fff;
  25177. border-radius: 8px;
  25178. }
  25179. .closeTri,
  25180. .closeTri1 {
  25181. min-width: 15px;
  25182. width: 15px;
  25183. height: 15px;
  25184. }
  25185. .closeTri1 {
  25186. padding-left: 10px;
  25187. cursor: pointer;
  25188. }
  25189. .closeTri > img,
  25190. .closeTri1 > img {
  25191. width: 100%;
  25192. height: 100%;
  25193. /* transition: all .5s; */
  25194. }
  25195. .noToolBlue {
  25196. min-width: 10px;
  25197. width: 10px;
  25198. height: 10px;
  25199. background: #0061ff;
  25200. border-radius: 50%;
  25201. margin-left: 13px;
  25202. }
  25203. .stageChild,
  25204. .toolChild {
  25205. height: 0;
  25206. overflow: hidden;
  25207. transition: all 0.5s;
  25208. }
  25209. /* .toolChild { */
  25210. /* margin: 0 0 0 17px;
  25211. padding: 0 0 0 20px;
  25212. border-left: 1px solid #d7d7d7; */
  25213. /* } */
  25214. .toolChild > div + div{
  25215. margin-top:5px;
  25216. }
  25217. .gjCss {
  25218. display: flex;
  25219. flex-direction: row;
  25220. flex-wrap: nowrap;
  25221. align-items: center;
  25222. padding: 10px 0 10px 40px;
  25223. box-sizing: border-box;
  25224. font-size: 14px;
  25225. cursor: pointer;
  25226. border-radius:5px;
  25227. }
  25228. .toolChild > div {
  25229. position: relative;
  25230. width: 100%;
  25231. }
  25232. /* .toolChild > div::before { */
  25233. /* content: "";
  25234. width: 15px;
  25235. height: 1px;
  25236. background: #cad1dc;
  25237. position: absolute;
  25238. top: 24px;
  25239. left: -20px;
  25240. display: block; */
  25241. /* } */
  25242. .isGjCss {
  25243. /* color: #0061ff; */
  25244. color:#fff;
  25245. background: rgb(55, 129, 252);
  25246. /* background-color: #e0eafb !important;
  25247. color: #0061ff !important; */
  25248. }
  25249. .navItem {
  25250. background: #ffffff;
  25251. border-radius: 4px;
  25252. width: 100%;
  25253. margin: 10px auto;
  25254. position: relative;
  25255. height: 40px;
  25256. display: flex;
  25257. flex-direction: row;
  25258. flex-wrap: nowrap;
  25259. align-items: center;
  25260. }
  25261. .navItemList {
  25262. display: flex;
  25263. flex-direction: row;
  25264. flex-wrap: nowrap;
  25265. align-items: center;
  25266. padding: 0 13px;
  25267. cursor: pointer;
  25268. width: calc(100% - 60px);
  25269. height: 100%;
  25270. }
  25271. .navItemList > div:first-child {
  25272. min-width: 60px;
  25273. }
  25274. .navItemList > div:last-child {
  25275. width: calc(100% - 80px);
  25276. white-space: nowrap;
  25277. overflow: hidden;
  25278. text-overflow: ellipsis;
  25279. word-break: break-word;
  25280. }
  25281. /* .isItemList > div {
  25282. color: #fff !important;
  25283. } */
  25284. .tool_work_box {
  25285. width: 100%;
  25286. padding: 0 37px 0;
  25287. box-sizing: border-box;
  25288. }
  25289. .tool_box {
  25290. width: 100%;
  25291. padding: 0 0 0 20px;
  25292. }
  25293. .tool_type_box {
  25294. display: flex;
  25295. flex-direction: row;
  25296. align-items: baseline;
  25297. flex-wrap: nowrap;
  25298. justify-content: flex-start;
  25299. position: relative;
  25300. }
  25301. .toolSort {
  25302. display: flex;
  25303. flex-direction: row;
  25304. flex-wrap: wrap;
  25305. justify-content: flex-start;
  25306. align-items: flex-start;
  25307. padding: 0 0 15px 0;
  25308. }
  25309. .toolSort > div {
  25310. margin: 0 10px 0 0;
  25311. width: 135px;
  25312. box-sizing: border-box;
  25313. border: 2px solid transparent;
  25314. }
  25315. .tools {
  25316. width: 100%;
  25317. display: flex;
  25318. flex-direction: column;
  25319. flex-wrap: nowrap;
  25320. align-items: flex-start;
  25321. }
  25322. .whiteBIcon {
  25323. width: fit-content;
  25324. cursor: pointer;
  25325. display: flex;
  25326. flex-direction: column;
  25327. flex-wrap: nowrap;
  25328. align-items: center;
  25329. font-size: 14px;
  25330. }
  25331. .tool:hover {
  25332. border: 2px solid #a5c7ff;
  25333. border-radius: 5px;
  25334. }
  25335. .whiteBIcon > img {
  25336. width: 65px;
  25337. height: 100%;
  25338. }
  25339. .whiteBIcon > img {
  25340. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  25341. border-radius: 15px;
  25342. }
  25343. .check {
  25344. /* width: 20px;
  25345. height: 20px; */
  25346. cursor: pointer;
  25347. margin: 10px 0;
  25348. position: absolute;
  25349. right: 2px;
  25350. top: -5px;
  25351. }
  25352. .noChoose,
  25353. .isChoose {
  25354. width: 15px;
  25355. height: 15px;
  25356. border-radius: 50%;
  25357. border: 1px solid #adadad;
  25358. }
  25359. .isChoose {
  25360. border: 4px solid #0363ff !important;
  25361. width: 10px;
  25362. height: 10px;
  25363. }
  25364. .isToolChoose {
  25365. border: 2px solid #5394ff !important;
  25366. border-radius: 5px;
  25367. box-shadow: 0 0 6px 0px #5394ff;
  25368. }
  25369. .checkDiv {
  25370. display: flex;
  25371. align-items: center;
  25372. }
  25373. .checkDiv span {
  25374. margin-left: 5px;
  25375. color: #858585;
  25376. }
  25377. .check img {
  25378. width: 20px;
  25379. height: 20px;
  25380. }
  25381. .lockTaskIcon {
  25382. width: 20px;
  25383. height: 20px;
  25384. position: absolute;
  25385. right: 10px;
  25386. top: 10px;
  25387. }
  25388. .lockTaskIcon > img {
  25389. width: 100%;
  25390. height: 100%;
  25391. }
  25392. .pick_box {
  25393. display: flex;
  25394. align-items: flex-start;
  25395. flex-wrap: wrap;
  25396. }
  25397. .selectBox {
  25398. width: 110px;
  25399. margin-left: 10px;
  25400. margin: 0 10px 0 auto;
  25401. }
  25402. .selectBox >>> .el-input__inner {
  25403. height: 30px;
  25404. line-height: 30px;
  25405. }
  25406. .selectBox >>> .el-input__icon {
  25407. line-height: 30px;
  25408. }
  25409. .sentenceTitle {
  25410. display: flex;
  25411. flex-direction: row;
  25412. flex-wrap: nowrap;
  25413. align-items: center;
  25414. }
  25415. .sentenceTitle::before {
  25416. content: attr(index);
  25417. background: #3681fc;
  25418. border-radius: 50%;
  25419. color: #fff;
  25420. width: 25px;
  25421. height: 25px;
  25422. min-width: 25px;
  25423. min-height: 25px;
  25424. text-align: center;
  25425. line-height: 25px;
  25426. margin-right: 5px;
  25427. }
  25428. .hfBox {
  25429. padding: 10px;
  25430. box-sizing: border-box;
  25431. }
  25432. .whoReplyWho {
  25433. display: flex;
  25434. flex-direction: row;
  25435. flex-wrap: nowrap;
  25436. align-items: baseline;
  25437. justify-content: flex-start;
  25438. }
  25439. .hfBottom {
  25440. display: flex;
  25441. flex-direction: row;
  25442. flex-wrap: nowrap;
  25443. align-items: center;
  25444. justify-content: space-between;
  25445. font-size: 14px;
  25446. }
  25447. .deleteHfItem {
  25448. cursor: pointer;
  25449. width: 20px;
  25450. height: 20px;
  25451. }
  25452. .deleteHfItem > img {
  25453. width: 100%;
  25454. height: 100%;
  25455. }
  25456. .whoReplyWho > .hfImg {
  25457. width: 12px;
  25458. height: 12px;
  25459. margin: 0 5px;
  25460. }
  25461. .whoReplyWho > .hfImg > img {
  25462. width: 100%;
  25463. height: 100%;
  25464. }
  25465. .hfContent {
  25466. padding-top: 10px;
  25467. box-sizing: border-box;
  25468. display: -webkit-box;
  25469. overflow: hidden;
  25470. white-space: normal !important;
  25471. text-overflow: ellipsis;
  25472. word-wrap: break-word;
  25473. -webkit-box-orient: vertical;
  25474. }
  25475. .hfTime {
  25476. text-align: left;
  25477. box-sizing: border-box;
  25478. padding: 10px 0 10px 0px;
  25479. color: #bfbfbf;
  25480. font-size: 14px;
  25481. }
  25482. .btnAllNT {
  25483. position: fixed;
  25484. bottom: 100px;
  25485. right: 40px;
  25486. z-index: 999;
  25487. display: flex;
  25488. flex-direction: row;
  25489. }
  25490. .btnAllNT > img {
  25491. cursor: pointer;
  25492. width: 80px;
  25493. }
  25494. .toolMask {
  25495. position: fixed;
  25496. width: 100%;
  25497. height: 100%;
  25498. background: #3f3c3c;
  25499. opacity: 0.5;
  25500. top: 0;
  25501. left: 0;
  25502. z-index: 999;
  25503. }
  25504. .addToolCss {
  25505. position: fixed;
  25506. z-index: 999;
  25507. background: #fff;
  25508. right: 5%;
  25509. bottom: 18%;
  25510. min-width: 1035px;
  25511. min-height: 300px;
  25512. border-radius: 10px;
  25513. box-shadow: 0 0 8px 1px #b2b2b2;
  25514. }
  25515. .toolTop {
  25516. display: flex;
  25517. flex-direction: row;
  25518. flex-wrap: nowrap;
  25519. justify-content: space-between;
  25520. align-items: center;
  25521. padding: 20px;
  25522. }
  25523. .toolTop > div:nth-child(2) {
  25524. width: 15px;
  25525. height: 15px;
  25526. padding-right: 10px;
  25527. cursor: pointer;
  25528. }
  25529. .toolTop > div:nth-child(2) > img {
  25530. width: 100%;
  25531. height: 100%;
  25532. }
  25533. .fullStyle>>>.el-dialog__body {
  25534. height: calc(100% - 125px) !important;
  25535. box-sizing: border-box;
  25536. padding: 30px 0 !important;
  25537. background: #fff !important;
  25538. }
  25539. .fullStyle>>>.el-dialog {
  25540. width: 100% !important;
  25541. max-width: 100% !important;
  25542. height: 100% !important;
  25543. margin: 0 !important;
  25544. }
  25545. .fullStyle {
  25546. width: 100% !important;
  25547. max-width: 100% !important;
  25548. height: 100% !important;
  25549. margin: 0 auto !important;
  25550. }
  25551. .fullStyle>>>.el-dialog__footer{
  25552. background: #fff !important;
  25553. }
  25554. .engUpBox {
  25555. width: 100%;
  25556. height: 100%;
  25557. }
  25558. .engTitle,
  25559. .engText {
  25560. display: flex;
  25561. flex-direction: row;
  25562. flex-wrap: nowrap;
  25563. align-items: flex-start;
  25564. padding: 0 20px 20px 20px;
  25565. box-sizing: border-box;
  25566. }
  25567. .engTitle > .div:first-child,
  25568. .engText > div:first-child {
  25569. min-width: 75px;
  25570. }
  25571. .correctBox{
  25572. width: 100%;
  25573. display: flex;
  25574. flex-direction: row;
  25575. flex-wrap: nowrap;
  25576. align-items: flex-start;
  25577. }
  25578. .oldBox{
  25579. width: 50%;
  25580. height: 100%;
  25581. display: flex;
  25582. flex-direction: column;
  25583. flex-wrap: nowrap;
  25584. align-items: center;
  25585. border-top: 1px solid #d9d9d9;
  25586. border-left: 1px solid #d9d9d9;
  25587. border-right: 1px solid #d9d9d9;
  25588. }
  25589. .oldBox>div:first-child{
  25590. width: 100%;
  25591. text-align: center;
  25592. background: #d9d9d9;
  25593. height: 35px;
  25594. line-height: 35px;
  25595. font-weight: bold;
  25596. }
  25597. .oldText{
  25598. width: 100%;
  25599. height: calc(100% - 35px);
  25600. overflow: auto;
  25601. margin: 10px 0;
  25602. display: flex;
  25603. flex-direction: column;
  25604. flex-wrap: nowrap;
  25605. align-content: center;
  25606. align-items: center;
  25607. }
  25608. .detailBox{
  25609. width: 50%;
  25610. padding: 10px;
  25611. background: #f6f6f6;
  25612. border-radius: 5px;
  25613. }
  25614. .oldDetail,.oldDetail1{
  25615. padding-bottom: 30px;
  25616. }
  25617. .oldImg{
  25618. width:30px;
  25619. height: 30px;
  25620. }
  25621. .oldImg>img{
  25622. width: 100%;
  25623. height: 100%;
  25624. }
  25625. .allName{
  25626. min-width: 200px;
  25627. white-space: nowrap;
  25628. overflow: hidden;
  25629. text-overflow: ellipsis;
  25630. word-break: break-word;
  25631. cursor: pointer;
  25632. text-align: center;
  25633. border: 1px solid #bcc2cc;
  25634. box-sizing: border-box;
  25635. }
  25636. .engUpTop{
  25637. max-height: 300px;
  25638. overflow: auto;
  25639. }
  25640. .isUpdateToolDetailClass{
  25641. padding: 0 !important;
  25642. }
  25643. .isUpdateToolDetailClass textarea{
  25644. padding:12px;
  25645. font-size: 16px;
  25646. min-height:100%;
  25647. width: 100%;
  25648. box-sizing:border-box;
  25649. outline: none;
  25650. border:none;
  25651. line-height: 30px;
  25652. resize: none;
  25653. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  25654. color: #838383;
  25655. }
  25656. .show_taskD {
  25657. min-width: fit-content;
  25658. margin-left: 10px;
  25659. display: flex;
  25660. align-items: center;
  25661. font-size: 14px;
  25662. cursor: pointer;
  25663. color: #717c8d;
  25664. }
  25665. .show_taskD > img {
  25666. width: 15px;
  25667. margin-right: 5px;
  25668. transition: 0.2s all;
  25669. transform: rotate(-90deg);
  25670. }
  25671. .show_taskD.show > img {
  25672. transform: rotate(0deg);
  25673. }
  25674. .dialog_diyCopy >>> .el-dialog__header {
  25675. display: none !important;
  25676. }
  25677. .dialog_diyCopy >>> .el-dialog__body {
  25678. padding: 0 !important;
  25679. height: 100% !important;
  25680. }
  25681. .confirmOpenDigCss > div{
  25682. font-size: 14px;
  25683. color: rgba(0, 0, 0, 0.6);
  25684. }
  25685. .confirmOpenDigCss >>> .el-dialog{
  25686. border-radius: 6px;
  25687. }
  25688. .confirmOpenDigCss >>> .el-dialog__body{
  25689. padding: 25px !important;
  25690. }
  25691. .confirmOpenDigCss > span{
  25692. font-size: 16px;
  25693. font-weight: 600;
  25694. color: rgba(0, 0, 0, 0.8);
  25695. }
  25696. .correctCss{
  25697. position: absolute;
  25698. bottom: -70px;
  25699. background: #409eff;
  25700. color: #fff;
  25701. }
  25702. div::-webkit-scrollbar {
  25703. width: 10px;
  25704. height: 6px;
  25705. }
  25706. .Ovh{
  25707. margin: 5px 0;
  25708. width: 4em;
  25709. -webkit-line-clamp: 2;
  25710. display: -webkit-box;
  25711. -webkit-box-orient: vertical;
  25712. overflow: hidden;
  25713. text-overflow: ellipsis;
  25714. }
  25715. .renderedFor >>> .katex {
  25716. font-size: 18px;
  25717. width: 100%;
  25718. white-space: normal;
  25719. font-family: '黑体' !important;
  25720. }
  25721. .renderedFor >>> .katex .base{
  25722. display: inline !important;
  25723. display: contents !important;
  25724. }
  25725. .renderedFor >>> .katex .base .cjk_fallback{
  25726. white-space: normal !important;
  25727. display: inline !important;
  25728. }
  25729. .notop >>> .vjs-fluid{
  25730. padding-top: 0 !important;
  25731. }
  25732. </style>