studyStudent.vue 892 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521
  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>识别码:{{ Code2 ? Code2 + inviteCode : inviteCode }}</span>
  107. <!-- <span>识别码:{{ inviteCode }}</span> -->
  108. </div>
  109. </div>
  110. </div>
  111. <div class="cru_selectBox">
  112. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  113. <div class="stageChild" :class="{ navActive: item.isOpen }">
  114. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  115. <div
  116. class="navItem"
  117. :class="{
  118. openTaskActive:
  119. navIndex == taskCount &&
  120. nav.id == navId &&
  121. stageIndex == courseType,
  122. }"
  123. >
  124. <div v-if="nav.tool[0].tool != undefined">
  125. <div
  126. class="closeTri1"
  127. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  128. @click="openTask(stageIndex, navIndex, nav.id)"
  129. >
  130. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../../assets/icon/newIcons/bDown2.png" alt />
  131. </div>
  132. <div
  133. class="closeTri1"
  134. v-else
  135. @click="openTask(stageIndex, navIndex, nav.id)"
  136. >
  137. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../../assets/icon/newIcons/right.png" alt />
  138. </div>
  139. </div>
  140. <div v-else class="noToolBlue"></div>
  141. <div
  142. @click="openTask(stageIndex, navIndex, nav.id)"
  143. class="navItemList"
  144. :class="{
  145. isItemList:
  146. navIndex == taskCount &&
  147. nav.id == navId &&
  148. stageIndex == courseType,
  149. }"
  150. >
  151. <div>任务{{ navIndex + 1 }}:</div>
  152. <el-tooltip
  153. effect="light"
  154. :content="nav.taskName"
  155. placement="top"
  156. >
  157. <div
  158. :style="{
  159. width:
  160. IsLookOpen && !nav.isLook
  161. ? 'calc(100% - 75px)'
  162. : 'auto',
  163. }"
  164. >
  165. {{ nav.taskName }}
  166. </div>
  167. </el-tooltip>
  168. </div>
  169. <div class="lockTaskIcon">
  170. <img
  171. src="../../assets/lock.png"
  172. v-if="IsLookOpen && !nav.isLook && courseDetail.userid != userid &&
  173. courseDetail.course_teacher.indexOf(userid) ==-1"
  174. alt=""
  175. />
  176. </div>
  177. </div>
  178. <div
  179. v-if="nav.tool[0].tool != undefined"
  180. class="toolChild"
  181. :class="{ toolActive: nav.isOpen }"
  182. >
  183. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  184. <div
  185. class="gjCss"
  186. :class="{
  187. isGjCss: t.isTool,
  188. }"
  189. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  190. >
  191. <div>工具{{ toolIndex2 + 1 }}:</div>
  192. <div v-if="t.tool == 58">模拟驾驶</div>
  193. <div v-if="t.tool == 59">路径搜索</div>
  194. <div v-if="t.tool == 60">深度学习</div>
  195. <div v-if="t.tool == 10">倒计时</div>
  196. <div v-if="t.tool == 65">挑人</div>
  197. <div v-if="t.tool == 7">思维网格</div>
  198. <div v-if="t.tool == 1">电子白板</div>
  199. <div v-if="t.tool == 52">文档</div>
  200. <div v-if="t.tool == 3">思维导图</div>
  201. <div v-if="t.tool == 48">表格</div>
  202. <div v-if="t.tool == 49">学生分组</div>
  203. <div v-if="t.tool == 4">问卷调查</div>
  204. <div v-if="t.tool == 45">选择题</div>
  205. <div v-if="t.tool == 15">问答</div>
  206. <div v-if="t.tool == 16">作业提交</div>
  207. <div v-if="t.tool == 50">批量上传</div>
  208. <div v-if="t.tool == 41">选择匹配</div>
  209. <div v-if="t.tool == 47">排序</div>
  210. <div v-if="t.tool == 40">个人评价</div>
  211. <div v-if="t.tool == 18">训练平台</div>
  212. <div v-if="t.tool == 21">AIoT Blockly</div>
  213. <div v-if="t.tool == 23">AI Python</div>
  214. <div v-if="t.tool == 24">AI Blockly</div>
  215. <div v-if="t.tool == 32">源码编辑</div>
  216. <div v-if="t.tool == 57">CocoPi</div>
  217. <div v-if="t.tool == 63">海龟编程</div>
  218. <div v-if="t.tool == 28">翻译</div>
  219. <div v-if="t.tool == 31">数字画板</div>
  220. <div v-if="t.tool == 39">GeoGebra</div>
  221. <div v-if="t.tool == 66">公式编辑</div>
  222. <div v-if="t.tool == 67">分子结构</div>
  223. <div v-if="t.tool == 68">时间轴</div>
  224. <div v-if="t.tool == 69">英语写作</div>
  225. <div v-if="t.tool == 70">英语口语</div>
  226. <div v-if="t.tool == 25">目标管理</div>
  227. <div v-if="t.tool == 26">课程设计</div>
  228. <div v-if="t.tool == 62">交互视频</div>
  229. <div v-if="t.tool == 71">AI智能体</div>
  230. <div v-if="t.tool == 72">应用中心</div>
  231. <div v-if="t.tool == 73">PPT</div>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. </div>
  239. </div>
  240. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  241. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }"></div>
  242. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 47px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 18px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  243. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid))? '100%' : 'calc(100% - 745px)'}">
  244. <div>任务{{ taskCount + 1 }}</div>
  245. <el-tooltip
  246. effect="light"
  247. :content="
  248. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  249. "
  250. placement="top"
  251. >
  252. <div>
  253. {{
  254. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  255. .task
  256. }}
  257. </div>
  258. </el-tooltip>
  259. </div>
  260. <!-- v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'" -->
  261. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid)">
  262. <div class="btnLeft">
  263. <el-tooltip effect="light" content="刷新" placement="top">
  264. <div class="reBtnIcon" @click="refreshCourse">
  265. <span>刷新</span>
  266. </div>
  267. </el-tooltip>
  268. <el-tooltip effect="light" content="评论" placement="top">
  269. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  270. <span>评论</span>
  271. </div>
  272. </el-tooltip>
  273. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  274. <el-tooltip effect="light" content="录制" placement="top">
  275. <div class="vedioIcon" @click="startRecording">
  276. <span>录制</span>
  277. </div>
  278. </el-tooltip>
  279. </div>
  280. <div v-else-if="tType == 1 || tType == 4">
  281. <el-tooltip effect="light" content="下载" placement="top">
  282. <div class="vedioIcon1" @click="stopRecording">
  283. <span>下载</span>
  284. </div>
  285. </el-tooltip>
  286. </div>
  287. </div>
  288. <div class="btnRight">
  289. <div
  290. class="last"
  291. @click="nextOrpreSteps(0)"
  292. v-if="!(IsFollow && tType == 2)"
  293. @mouseover="isHovered = true"
  294. @mouseout="isHovered = false"
  295. >
  296. <div class="lastImg">
  297. <img
  298. :src="
  299. isHovered
  300. ? require('../../assets/icon/newIcons/whiteLast.png')
  301. : require('../../assets/icon/newIcons/last.png')
  302. "
  303. alt=""
  304. />
  305. </div>
  306. <div class="lastText">上一步</div>
  307. </div>
  308. <div
  309. class="last"
  310. @click="nextOrpreSteps(1)"
  311. v-if="!(IsFollow && tType == 2)"
  312. @mouseover="isHovered1 = true"
  313. @mouseout="isHovered1 = false"
  314. >
  315. <div class="lastText">下一步</div>
  316. <div class="lastImg">
  317. <img
  318. :src="
  319. isHovered1
  320. ? require('../../assets/icon/newIcons/whiteNext.png')
  321. : require('../../assets/icon/newIcons/next.png')
  322. "
  323. alt=""
  324. />
  325. </div>
  326. </div>
  327. <div
  328. class="last"
  329. @click="juriVisible = true"
  330. v-if="tType == 1"
  331. @mouseover="isHovered2 = true"
  332. @mouseout="isHovered2 = false"
  333. >
  334. <div class="lastImg">
  335. <img
  336. :src="
  337. isHovered2
  338. ? require('../../assets/icon/newIcons/whiteLock.png')
  339. : require('../../assets/icon/newIcons/lock.png')
  340. "
  341. alt=""
  342. />
  343. </div>
  344. <div class="lastText">权限</div>
  345. </div>
  346. <div
  347. class="returnBtn1 returnIcon"
  348. @click.stop="
  349. goTo(
  350. '/courseDetail?userid=' +
  351. userid +
  352. '&oid=' +
  353. oid +
  354. '&org=' +
  355. org +
  356. '&cid=' +
  357. classId +
  358. '&courseId=' +
  359. id +
  360. '&tType=' +
  361. tType +
  362. '&screenType=' +
  363. screenType
  364. )
  365. "
  366. >
  367. <div class="lastImg">
  368. <img src="../../assets/icon/newIcon/return.png" alt="" />
  369. </div>
  370. <div class="lastText" style="color: #000">返回</div>
  371. </div>
  372. </div>
  373. <!-- <div
  374. class="returnBtn lockIcon"
  375. @click="juriVisible = true"
  376. v-if="tType == 1"
  377. >
  378. 权限
  379. </div>
  380. <div
  381. class="returnBtn vedioIcon"
  382. @click="startRecording"
  383. v-if="!videoStart && (tType == 1 || tType == 4)"
  384. >
  385. 录制
  386. </div>
  387. <div
  388. class="returnBtn"
  389. @click="stopRecording"
  390. v-else-if="tType == 1 || tType == 4"
  391. style="background: #ee5255"
  392. >
  393. 下载
  394. </div>
  395. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  396. 评论
  397. </div>
  398. <div
  399. class="returnBtn"
  400. @click="nextOrpreSteps(0)"
  401. v-if="!(IsFollow && tType == 2)"
  402. >
  403. 上一步
  404. </div>
  405. <div
  406. class="returnBtn"
  407. @click="nextOrpreSteps(1)"
  408. v-if="!(IsFollow && tType == 2)"
  409. >
  410. 下一步
  411. </div>
  412. <div class="returnBtn" @click="refreshCourse">刷新</div>
  413. <div
  414. class="returnBtn returnIcon"
  415. @click.stop="
  416. goTo(
  417. '/courseDetail?userid=' +
  418. userid +
  419. '&oid=' +
  420. oid +
  421. '&org=' +
  422. org +
  423. '&cid=' +
  424. classId +
  425. '&courseId=' +
  426. id +
  427. '&tType=' +
  428. tType +
  429. '&screenType=' +
  430. screenType
  431. )
  432. "
  433. >
  434. 返回
  435. </div> -->
  436. </div>
  437. </div>
  438. <!-- !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  439. .taskDetail3 && -->
  440. <div
  441. class="isNoMessage"
  442. v-if="
  443. chapInfoList[courseType].chapterInfo[0].taskJson[0]
  444. .chapterData.length == 0 &&
  445. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  446. .toolChoose[0].tool.length == 0 &&
  447. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  448. .taskDetail == '' &&
  449. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  450. .eList &&
  451. !(
  452. courseDetail.userid == userid ||
  453. (courseDetail.course_teacher &&
  454. courseDetail.course_teacher.indexOf(userid) != -1)
  455. )
  456. "
  457. >
  458. <img src="../../assets/icon/isNoMessage.png" alt />
  459. </div>
  460. <div class="study_top" :class="{ pzClass: pzDialog }">
  461. <!-- chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  462. .taskDetail3 || -->
  463. <div
  464. class="vedioBox"
  465. v-if="
  466. (chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  467. .taskDetail != '' ||
  468. vChapterData[0].length > 0 ||
  469. fileC[0].length > 0) && (tType == 1 || (tType == 2 && IsStulook))
  470. "
  471. style="border-radius: 0 0 20px 20px"
  472. >
  473. <!-- <div
  474. class="taskBox"
  475. v-if="
  476. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  477. .taskDetail3
  478. "
  479. >
  480. <div
  481. style="
  482. display: flex;
  483. flex-wrap: nowrap;
  484. flex-direction: column;
  485. position: relative;
  486. "
  487. >
  488. <div
  489. style="
  490. padding: 15px 0;
  491. line-height: 29px;
  492. font-size: 18px;
  493. color: #0e1e33;
  494. "
  495. class="cont"
  496. v-if="
  497. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  498. .taskDetail3 != ''
  499. "
  500. v-html="
  501. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  502. .taskDetail3
  503. ? MarkdownT(chapInfoList[courseType].chapterInfo[0].taskJson[
  504. taskCount
  505. ].taskDetail3)
  506. : '暂无描述'
  507. "
  508. ></div>
  509. </div>
  510. </div> -->
  511. <div
  512. class="taskBox"
  513. v-if="
  514. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  515. .taskDetail != ''
  516. "
  517. >
  518. <div
  519. style="
  520. display: flex;
  521. flex-wrap: nowrap;
  522. flex-direction: column;
  523. position: relative;
  524. "
  525. class="renderedFor"
  526. >
  527. <div
  528. style="
  529. padding: 15px 0;
  530. line-height: 29px;
  531. font-size: 18px;
  532. color: #0e1e33;
  533. "
  534. class="cont"
  535. v-if="
  536. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  537. .taskDetail != ''
  538. "
  539. v-html="
  540. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  541. .taskDetail
  542. ? renderedFormula2(chapInfoList[courseType].chapterInfo[0].taskJson[
  543. taskCount
  544. ].taskDetail)
  545. : '暂无描述'
  546. "
  547. ></div>
  548. </div>
  549. </div>
  550. <div
  551. class="student_head"
  552. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  553. >
  554. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  555. <div
  556. :class="
  557. contentDialog == false
  558. ? 'box_course isContentCss'
  559. : 'box_course'
  560. "
  561. v-if="
  562. vChapterData.length > 0 &&
  563. vChapterData[0] &&
  564. showType !== ''
  565. "
  566. >
  567. <div class="wheel" style="height: auto" v-if="showType === 0">
  568. <div
  569. class="workd_media"
  570. style="height: 650px; width: calc(100% - 50px)"
  571. >
  572. <video-player
  573. class="video-player vjs-custom-skin notop"
  574. :class="contentDialog == false ? 'isAllWidth' : ''"
  575. :playsinline="true"
  576. :options="playerO[0]"
  577. @play="onPlayerPlay($event)"
  578. style="width: 100%; height: 650px; margin: 0 0 0 30px"
  579. ></video-player>
  580. </div>
  581. </div>
  582. <div
  583. class="wheel"
  584. v-if="showType == 1"
  585. style="
  586. box-shadow: 0 0 6px 1px #f2f2f2;
  587. width: 95%;
  588. margin: 0 auto;
  589. background: #f1f1f1;
  590. "
  591. >
  592. <div class="title">查看文档</div>
  593. <el-form class="textBox">
  594. <el-form-item class="textTitle">
  595. <div style="font-size: 22px">
  596. {{ text.name }}
  597. </div>
  598. </el-form-item>
  599. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  600. <div v-html="text.url" class="textContent cont"></div>
  601. </el-form>
  602. </div>
  603. <div
  604. class="wheel"
  605. v-if="
  606. pptImgUrl1.indexOf(
  607. 'https://view.officeapps.live.com/op/view.aspx?src='
  608. ) != -1 && showType == 2
  609. "
  610. style="width: 95%; margin: 0 auto"
  611. >
  612. <iframe
  613. style="width: 100%; height: 100%; border: none"
  614. :src="pptImgUrl1"
  615. ></iframe>
  616. </div>
  617. <div
  618. class="wheel"
  619. v-else-if="showType == 2"
  620. style="width: 95%; margin: 0 auto"
  621. >
  622. <iframe
  623. style="width: 100%; height: 100%; border: none"
  624. :key="diffKey"
  625. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  626. v-if="pptImgUrl1.indexOf('cocorobo')!=-1"
  627. :src="pptImgUrl1"
  628. ></iframe>
  629. <iframe
  630. style="width: 100%; height: 100%; border: none"
  631. security="restricted"
  632. v-else
  633. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  634. :src="pptImgUrl1"
  635. ></iframe>
  636. </div>
  637. <div
  638. class="wheel"
  639. v-if="showType === 16"
  640. style="width: 95%; margin: 0 auto"
  641. >
  642. <iframe
  643. style="width: 100%; height: 100%; border: none"
  644. :src="pptImgUrl1"
  645. ></iframe>
  646. </div>
  647. <div
  648. class="wheel"
  649. v-if="showType == 3"
  650. style="width: 95%; margin: 0 auto"
  651. >
  652. <pdf
  653. :pdfUrl="pptImgUrl1"
  654. style="width: 100%; height: 100%; overflow: auto"
  655. ></pdf>
  656. </div>
  657. <div
  658. class="wheel"
  659. v-if="showType == 4"
  660. style="width: 95%; margin: 0 auto"
  661. >
  662. <el-image
  663. :src="pptImgUrl1"
  664. fit="contain"
  665. style="width: 100%; height: 100%; cursor: pointer"
  666. @click="previewImg(pptImgUrl1)"
  667. ></el-image>
  668. </div>
  669. </div>
  670. <div
  671. class="pButton"
  672. style="position: absolute; right: 20px; top: 0; z-index: 998"
  673. v-if="!contentDialog"
  674. @click="setContent(true)"
  675. >
  676. <!-- 批 -->
  677. <img
  678. src="../../assets/icon/newIcons/isLeft.png"
  679. style="width: 45px"
  680. alt=""
  681. />
  682. </div>
  683. <div
  684. v-if="contentDialog == true"
  685. :style="{
  686. width:
  687. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  688. showType === ''
  689. ? 'calc(100%)'
  690. : '300px',
  691. margin:
  692. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  693. showType === ''
  694. ? '0 15px'
  695. : '0 15px 0 0',
  696. }"
  697. >
  698. <div
  699. class="vedioList"
  700. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  701. style="height: 650px"
  702. >
  703. <div class="navCorOpenBox">
  704. <div class="navTitile">内容列表:</div>
  705. <div class="navCorOpen" @click="setContent(false)">
  706. <img
  707. src="../../assets/icon/newIcons/isRight.png"
  708. alt=""
  709. />
  710. </div>
  711. </div>
  712. <div class="navBox">
  713. <div
  714. v-show="
  715. vChapterData[0].length > 0 || fileC[0].length > 0
  716. "
  717. style="padding: 10px 0 25px 0"
  718. >
  719. <div
  720. class="vedioTimeBox"
  721. v-for="(vitem, vindex) in vChapterData[0]"
  722. :key="vindex + '1'"
  723. >
  724. <div class="navListItem" v-if="vitem.type == 2">
  725. <div
  726. @click="lookVedio(vitem.url, vindex)"
  727. class="navText"
  728. :class="isClickNav == vindex ? 'isClickNav' : ''"
  729. >
  730. <span v-if="vitem.text">{{ vitem.text }}-</span
  731. >{{ vitem.name }}
  732. </div>
  733. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  734. <img
  735. src="../../assets/icon/newIcon/down.png"
  736. alt
  737. />
  738. </div> -->
  739. </div>
  740. <div class="navListItem" v-if="vitem.type == 6">
  741. <div
  742. @click="lookText(0, vindex)"
  743. class="navText"
  744. :class="isClickNav == vindex ? 'isClickNav' : ''"
  745. >
  746. {{ vitem.name }}.doc
  747. </div>
  748. <div
  749. class="downIcon"
  750. @click="checkFileFull1(vitem.type, vitem)"
  751. >
  752. <img
  753. src="../../assets/icon/newIcon/allScreen.png"
  754. alt
  755. />
  756. </div>
  757. </div>
  758. <div
  759. class="navListItem"
  760. v-if="vitem.type == 8 || vitem.type == 14 || vitem.type == 15"
  761. >
  762. <div
  763. @click="doUrl(vitem.url, vindex)"
  764. class="navText"
  765. :class="isClickNav == vindex ? 'isClickNav' : ''"
  766. >
  767. {{ vitem.title ? vitem.title : vitem.url }}
  768. </div>
  769. <div
  770. class="downIcon"
  771. @click="checkFileFull1(vitem.type, vitem)"
  772. >
  773. <img
  774. src="../../assets/icon/newIcon/allScreen.png"
  775. alt
  776. />
  777. </div>
  778. </div>
  779. <div class="navListItem" v-if="vitem.type == 3">
  780. <div
  781. @click="downFile(vitem, vindex)"
  782. class="navText"
  783. :class="isClickNav == vindex ? 'isClickNav' : ''"
  784. >
  785. <span v-if="vitem.text">{{ vitem.text }}-</span
  786. >{{ vitem.name }}
  787. </div>
  788. <div
  789. class="downIcon"
  790. @click="checkFileFull1(vitem.type, vitem)"
  791. >
  792. <img
  793. src="../../assets/icon/newIcon/allScreen.png"
  794. alt
  795. />
  796. </div>
  797. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  798. <img
  799. src="../../assets/icon/newIcon/down.png"
  800. alt
  801. />
  802. </div> -->
  803. </div>
  804. <div class="navListItem" v-if="vitem.type == 12">
  805. <div class="navText" @click="downloadFile2(vitem)">
  806. <span v-if="vitem.text">{{ vitem.text }}-</span
  807. >{{ vitem.name }}
  808. </div>
  809. <div
  810. class="downIcon"
  811. @click="checkFileFull1(vitem.type, vitem)"
  812. >
  813. <img
  814. src="../../assets/icon/newIcon/allScreen.png"
  815. alt
  816. />
  817. </div>
  818. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  819. <img
  820. src="../../assets/icon/newIcon/down.png"
  821. alt
  822. />
  823. </div> -->
  824. </div>
  825. <div class="navListItem" v-if="vitem.type == 13">
  826. <div
  827. class="navText"
  828. @click="checkPhoto(vitem, vindex)"
  829. :class="isClickNav == vindex ? 'isClickNav' : ''"
  830. >
  831. {{ vitem.name }}
  832. </div>
  833. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  834. <img
  835. src="../../assets/icon/newIcon/down.png"
  836. alt
  837. />
  838. </div> -->
  839. </div>
  840. <div class="navListItem" v-if="vitem.type == 16">
  841. <div
  842. class="navText"
  843. @click="checkHtml(vitem, vindex)"
  844. :class="isClickNav == vindex ? 'isClickNav' : ''"
  845. >
  846. {{ vitem.name }}
  847. </div>
  848. <div
  849. class="downIcon"
  850. @click="checkFileFull1(vitem.type, vitem)"
  851. >
  852. <img
  853. src="../../assets/icon/newIcon/allScreen.png"
  854. alt
  855. />
  856. </div>
  857. </div>
  858. <div class="navListItem" v-if="vitem.type == 17">
  859. <div
  860. class="navText"
  861. @click="checkHtml(vitem, vindex)"
  862. :class="isClickNav == vindex ? 'isClickNav' : ''"
  863. >
  864. {{ vitem.name }}
  865. </div>
  866. <div
  867. class="downIcon"
  868. @click="checkFileFull1(vitem.type, vitem)"
  869. >
  870. <img
  871. src="../../assets/icon/newIcon/allScreen.png"
  872. alt
  873. />
  874. </div>
  875. </div>
  876. </div>
  877. <div class="fileC_box" v-if="fileC[0].length > 0">
  878. <div class="fileC_title">以下文件不支持预览</div>
  879. <div
  880. class="vedioTimeBox"
  881. v-for="(vitem, vindex) in fileC[0]"
  882. :key="vindex + '1'"
  883. >
  884. <div class="navListItem" v-if="vitem.type == 12">
  885. <div class="navText" style="color: #acb4bf">
  886. <span v-if="vitem.text">{{ vitem.text }}-</span
  887. >{{ vitem.name }}
  888. </div>
  889. <!-- <div
  890. class="downIcon"
  891. @click="downloadFile2(vitem)"
  892. >
  893. <img
  894. src="../../assets/icon/newIcon/down.png"
  895. alt
  896. />
  897. </div> -->
  898. </div>
  899. </div>
  900. </div>
  901. </div>
  902. </div>
  903. </div>
  904. </div>
  905. </div>
  906. <div style="width: calc(100% - 315px)">
  907. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  908. <!-- <el-button
  909. type="primary"
  910. class="newButton"
  911. @click="checkFileFull(showType, pptImgUrl1)"
  912. >全屏查看</el-button
  913. >
  914. <el-button
  915. type="primary"
  916. class="newButton"
  917. @click="downloadFile(pptImgUrl1)"
  918. v-if="showType != 2"
  919. >文件下载</el-button
  920. > -->
  921. <el-button
  922. v-if="
  923. showType == 2 &&
  924. pptImgUrl1.indexOf(
  925. 'https://view.officeapps.live.com/op/view.aspx?src='
  926. ) == -1
  927. "
  928. type="primary"
  929. class="newButton"
  930. @click="openLine(pptImgUrl1)"
  931. >打开链接
  932. </el-button>
  933. </div>
  934. <!-- <div
  935. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  936. v-if="showType == 1"
  937. >
  938. <el-button
  939. type="primary"
  940. class="newButton"
  941. @click="checkFileFull(showType, text)"
  942. >全屏查看</el-button
  943. >
  944. </div> -->
  945. </div>
  946. </div>
  947. </div>
  948. <div class="student_body" v-resize="resize">
  949. <div
  950. class="vedioBox"
  951. :style="{
  952. borderRadius:
  953. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  954. .taskDetail == '' &&
  955. vChapterData[taskCount].length == 0 &&
  956. fileC[taskCount].length == 0
  957. ? '0 0 20px 20px'
  958. : '20px',
  959. }"
  960. v-if="
  961. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  962. .toolChoose[0].tool &&
  963. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  964. .toolChoose[0].tool.length > 0
  965. "
  966. >
  967. <div
  968. class="toolHeng2"
  969. style="position: relative"
  970. v-if="
  971. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  972. .toolChoose[0].tool &&
  973. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  974. .toolChoose[0].tool.length &&
  975. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  976. .toolChoose[0].tool.length > 0
  977. "
  978. >
  979. <div class="workNav">工作区</div>
  980. <div
  981. class="filebox"
  982. style="flex-wrap: nowrap"
  983. v-for="(tool, toolIndex) in chapInfoList[courseType]
  984. .chapterInfo[0].taskJson[taskCount].toolChoose"
  985. :key="toolIndex"
  986. >
  987. <div class="bzBox">
  988. <div class="yCss"></div>
  989. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  990. 工具{{ toolIndex + 1 }}
  991. </div>
  992. <div
  993. v-if="timeWorkList[toolIndex].length > 0"
  994. style="margin: 0 0 0 10px"
  995. >
  996. {{
  997. timeWorkList[toolIndex][0].time
  998. ? "时间:" + timeWorkList[toolIndex][0].time
  999. : ""
  1000. }}
  1001. </div>
  1002. </div>
  1003. <div class="toolBox">
  1004. <div>
  1005. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  1006. :key="indexTool"-->
  1007. <!-- <div class="iframeBox">
  1008. <div
  1009. class="addPoint isBorder"
  1010. v-for="(tooC, toolCIndex) in tool.tool"
  1011. :key="toolCIndex"
  1012. >
  1013. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  1014. <div
  1015. class="iframeName"
  1016. >
  1017. 电子白板
  1018. </div>
  1019. <iframe
  1020. src="https://iwb.cocorobo.cn/"
  1021. ref="whiteBoard"
  1022. ></iframe>
  1023. </div>
  1024. </div>
  1025. </div>-->
  1026. <div class="noiframeBox">
  1027. <div
  1028. class="addPoint"
  1029. v-for="(tooC, toolCIndex) in tool.tool"
  1030. :key="toolCIndex"
  1031. >
  1032. <div v-if="tooC == 1">
  1033. <img
  1034. src="../../assets/icon/secondToolList/whiteBoard.png"
  1035. alt
  1036. @click="addTools(tooC, toolIndex, taskCount)"
  1037. />
  1038. <div style="margin: 5px 0">电子白板</div>
  1039. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  1040. style="position: absolute;right: 33px;top: -30px;">
  1041. 分析
  1042. </div>
  1043. </div>
  1044. <div v-if="tooC == 3">
  1045. <img
  1046. src="../../assets/icon/secondToolList/mindMapping.png"
  1047. alt
  1048. @click="addTools(tooC, toolIndex, taskCount)"
  1049. />
  1050. <div style="margin: 5px 0">思维导图</div>
  1051. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  1052. style="position: absolute;right: 33px;top: -30px;">
  1053. 分析
  1054. </div>
  1055. </div>
  1056. <div v-if="tooC == 6">
  1057. <img
  1058. src="../../assets/icon/secondToolList/doc.png"
  1059. alt
  1060. @click="addTools(tooC, toolIndex, taskCount)"
  1061. />
  1062. <div style="margin: 5px 0">协同文档</div>
  1063. </div>
  1064. <div v-if="tooC == 7">
  1065. <img
  1066. src="../../assets/icon/secondToolList/mindNetwork.png"
  1067. alt
  1068. @click="addTools(tooC, toolIndex, taskCount)"
  1069. />
  1070. <div style="margin: 5px 0">思维网格</div>
  1071. <!-- && worksStudent[toolIndex].length>0 -->
  1072. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1073. style="position: absolute;right: 33px;top: -30px;">
  1074. 分析
  1075. </div>
  1076. </div>
  1077. <div v-if="tooC == 8">
  1078. <img
  1079. src="../../assets/icon/secondToolList/library.png"
  1080. alt
  1081. @click="addTools(tooC, toolIndex, taskCount)"
  1082. />
  1083. <div style="margin: 5px 0">素材库</div>
  1084. </div>
  1085. <div v-if="tooC == 17">
  1086. <img
  1087. src="../../assets/icon/secondToolList/library.png"
  1088. alt
  1089. @click="addTools(tooC, toolIndex, taskCount)"
  1090. />
  1091. <div style="margin: 5px 0">学习资料</div>
  1092. </div>
  1093. <div v-if="tooC == 2">
  1094. <img
  1095. @click="addTools(tooC, toolIndex, taskCount)"
  1096. src="../../assets/icon/secondToolList/note.png"
  1097. alt
  1098. />
  1099. <div style="margin: 5px 0">便签</div>
  1100. </div>
  1101. <div v-if="tooC == 4">
  1102. <img
  1103. @click="addTools(tooC, toolIndex, taskCount)"
  1104. src="../../assets/icon/thirdToolList/ask.png"
  1105. alt
  1106. />
  1107. <div style="margin: 5px 0">问卷调查</div>
  1108. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1109. style="position: absolute;right: 153px;top: -30px;">
  1110. 分析
  1111. </div>
  1112. <div class="upload_toolBtn" v-if="tType==='1'" @click="openStatisticalAnalysis(tooC,toolIndex,taskCount)"
  1113. style="position: absolute;right: 33px;top: -30px;">
  1114. 统计分析
  1115. </div>
  1116. </div>
  1117. <div v-if="tooC == 45">
  1118. <img
  1119. @click="addTools(tooC, toolIndex, taskCount)"
  1120. src="../../assets/icon/thirdToolList/choose.png"
  1121. alt
  1122. />
  1123. <div style="margin: 5px 0">选择题</div>
  1124. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,45)"
  1125. style="position: absolute;right: 33px;top: -30px;">
  1126. 分析
  1127. </div>
  1128. </div>
  1129. <!-- <div v-if="tooC == 5">
  1130. <img
  1131. @click="addTools(tooC, toolIndex, taskCount)"
  1132. src="../../assets/icon/thirdToolList/score.png"
  1133. alt
  1134. />
  1135. <div style="margin: 5px 0">量规评分</div>
  1136. </div> -->
  1137. <div v-if="tooC == 10">
  1138. <img
  1139. @click="addTools(tooC, toolIndex, taskCount)"
  1140. src="../../assets/icon/thirdToolList/time.png"
  1141. alt
  1142. />
  1143. <div style="margin: 5px 0">倒计时</div>
  1144. </div>
  1145. <div v-if="tooC == 15">
  1146. <img
  1147. @click="addTools(tooC, toolIndex, taskCount)"
  1148. src="../../assets/icon/thirdToolList/answer.png"
  1149. alt
  1150. />
  1151. <div style="margin: 5px 0">问答</div>
  1152. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1153. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1154. 分析
  1155. </div>
  1156. </div>
  1157. <div v-if="tooC == 26">
  1158. <img
  1159. @click="addTools(tooC, toolIndex, taskCount)"
  1160. src="../../assets/icon/thirdToolList/courseDesign.png"
  1161. alt
  1162. />
  1163. <div style="margin: 5px 0">课程设计</div>
  1164. </div>
  1165. <div v-if="tooC == 18">
  1166. <img
  1167. @click="addTools(tooC, toolIndex, taskCount)"
  1168. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1169. alt
  1170. />
  1171. <div style="margin: 5px 0">训练服务器</div>
  1172. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,18)"
  1173. style="position: absolute;right: 33px;top: -30px;">
  1174. 分析
  1175. </div>
  1176. </div>
  1177. <div v-if="tooC == 16">
  1178. <img
  1179. @click="addTools(tooC, toolIndex, taskCount)"
  1180. src="../../assets/icon/thirdToolList/work.png"
  1181. alt
  1182. />
  1183. <div style="margin: 5px 0">作业提交</div>
  1184. </div>
  1185. <div v-if="tooC == 50">
  1186. <img
  1187. @click="addTools(tooC, toolIndex, taskCount)"
  1188. src="../../assets/icon/thirdToolList/plwork.png"
  1189. alt
  1190. />
  1191. <div style="margin: 5px 0">批量上传</div>
  1192. </div>
  1193. <div v-if="tooC == 21">
  1194. <img
  1195. @click="addTools(tooC, toolIndex, taskCount)"
  1196. src="../../assets/icon/fourthToolList/program.png"
  1197. alt
  1198. />
  1199. <div style="margin: 5px 0">AIoT Blockly</div>
  1200. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,21)"
  1201. style="position: absolute;right: 33px;top: -30px;">
  1202. 分析
  1203. </div>
  1204. </div>
  1205. <!-- <div v-if="tooC == 22">
  1206. <img
  1207. @click="addTools(tooC, toolIndex, taskCount)"
  1208. src="../../assets/icon/fourthToolList/program.png"
  1209. alt
  1210. />
  1211. <div style="margin: 5px 0">AI体验</div>
  1212. </div> -->
  1213. <div v-if="tooC == 23">
  1214. <img
  1215. @click="addTools(tooC, toolIndex, taskCount)"
  1216. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1217. alt
  1218. />
  1219. <div style="margin: 5px 0">AI Python</div>
  1220. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,23)"
  1221. style="position: absolute;right: 33px;top: -30px;">
  1222. 分析
  1223. </div>
  1224. </div>
  1225. <div v-if="tooC == 24">
  1226. <img
  1227. @click="addTools(tooC, toolIndex, taskCount)"
  1228. src="../../assets/icon/fourthToolList/AIprogram.png"
  1229. alt
  1230. />
  1231. <div style="margin: 5px 0">AI Blockly</div>
  1232. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,24)"
  1233. style="position: absolute;right: 33px;top: -30px;">
  1234. 分析
  1235. </div>
  1236. </div>
  1237. <div v-if="tooC == 25">
  1238. <img
  1239. @click="addTools(tooC, toolIndex, taskCount)"
  1240. src="../../assets/icon/thirdToolList/evalua.png"
  1241. alt
  1242. />
  1243. <div style="margin: 5px 0">目标管理</div>
  1244. </div>
  1245. <div v-if="tooC == 31">
  1246. <img
  1247. @click="addTools(tooC, toolIndex, taskCount)"
  1248. src="../../assets/icon/secondToolList/networkPanel.png"
  1249. alt
  1250. />
  1251. <div style="margin: 5px 0">数学画板</div>
  1252. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,31)"
  1253. style="position: absolute;right: 33px;top: -30px;">
  1254. 分析
  1255. </div>
  1256. </div>
  1257. <div v-if="tooC == 28">
  1258. <img
  1259. @click="addTools(tooC, toolIndex, taskCount)"
  1260. src="../../assets/icon/secondToolList/translation.png"
  1261. alt
  1262. />
  1263. <div style="margin: 5px 0">翻译</div>
  1264. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,28)"
  1265. style="position: absolute;right: 33px;top: -30px;">
  1266. 分析
  1267. </div>
  1268. </div>
  1269. <div v-if="tooC == 37">
  1270. <img
  1271. @click="addTools(tooC, toolIndex, taskCount)"
  1272. src="../../assets/icon/secondToolList/mohe.png"
  1273. alt
  1274. />
  1275. <div style="margin: 5px 0">魔盒识字</div>
  1276. </div>
  1277. <div v-if="tooC == 38">
  1278. <img
  1279. @click="addTools(tooC, toolIndex, taskCount)"
  1280. src="../../assets/icon/secondToolList/24game.png"
  1281. alt
  1282. />
  1283. <div style="margin: 5px 0">24点</div>
  1284. </div>
  1285. <div v-if="tooC == 39">
  1286. <img
  1287. @click="addTools(tooC, toolIndex, taskCount)"
  1288. src="../../assets/icon/secondToolList/GeoGebra.png"
  1289. alt
  1290. />
  1291. <div style="margin: 5px 0">GeoGebra</div>
  1292. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,39)"
  1293. style="position: absolute;right: 33px;top: -30px;">
  1294. 分析
  1295. </div>
  1296. </div>
  1297. <div v-if="tooC == 32">
  1298. <img
  1299. @click="addTools(tooC, toolIndex, taskCount)"
  1300. src="../../assets/icon/thirdToolList/code.png"
  1301. alt
  1302. />
  1303. <div style="margin: 5px 0">源码编辑</div>
  1304. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,32)"
  1305. style="position: absolute;right: 153px;top: -42px;">
  1306. 分析
  1307. </div>
  1308. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1309. style="position: absolute;left: 110px;bottom: 30px;">
  1310. 上传文件
  1311. <input type="file" accept="*" style="display: none"
  1312. @change="beforeUpload1($event, 7, toolIndex)" />
  1313. </div> -->
  1314. </div>
  1315. <div v-if="tooC == 40">
  1316. <img
  1317. @click="addTools(tooC, toolIndex, taskCount)"
  1318. src="../../assets/icon/secondToolList/eval.png"
  1319. alt
  1320. />
  1321. <div style="margin: 5px 0">个人评价</div>
  1322. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1323. style="position: absolute;right: 33px;top: -30px;">
  1324. 分析
  1325. </div>
  1326. </div>
  1327. <div v-if="tooC == 41">
  1328. <img
  1329. @click="addTools(tooC, toolIndex, taskCount)"
  1330. src="../../assets/icon/thirdToolList/select.png"
  1331. alt
  1332. />
  1333. <div style="margin: 5px 0">选择匹配</div>
  1334. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1335. style="position: absolute;right: 33px;top: -30px;">
  1336. 分析
  1337. </div>
  1338. </div>
  1339. <div v-if="tooC == 44">
  1340. <img
  1341. @click="addTools(tooC, toolIndex, taskCount)"
  1342. src="../../assets/icon/thirdToolList/hanClass.png"
  1343. alt
  1344. />
  1345. <div style="margin: 5px 0">汉字宫</div>
  1346. </div>
  1347. <div v-if="tooC == 47">
  1348. <img
  1349. @click="addTools(tooC, toolIndex, taskCount)"
  1350. src="../../assets/icon/fourthToolList/conSentences.png"
  1351. alt
  1352. />
  1353. <div style="margin: 5px 0">排序</div>
  1354. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1355. style="position: absolute;right: 33px;top: -30px;">
  1356. 分析
  1357. </div>
  1358. </div>
  1359. <div v-if="tooC == 48">
  1360. <img
  1361. @click="addTools(tooC, toolIndex, taskCount)"
  1362. src="../../assets/icon/fourthToolList/table.png"
  1363. alt
  1364. />
  1365. <div style="margin: 5px 0">表格</div>
  1366. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1367. style="position: absolute;right: 33px;top: -30px;">
  1368. 分析
  1369. </div>
  1370. </div>
  1371. <div v-if="tooC == 52">
  1372. <img
  1373. @click="addTools(tooC, toolIndex, taskCount)"
  1374. src="../../assets/icon/fourthToolList/text.png"
  1375. alt
  1376. />
  1377. <div style="margin: 5px 0">文档</div>
  1378. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1379. style="position: absolute;right: 33px;top: -30px;">
  1380. 分析
  1381. </div>
  1382. </div>
  1383. <div v-if="tooC == 49">
  1384. <img
  1385. @click="addTools(tooC, toolIndex, taskCount)"
  1386. src="../../assets/icon/fourthToolList/group.png"
  1387. alt
  1388. />
  1389. <div style="margin: 5px 0">学生分组</div>
  1390. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1391. style="position: absolute;right: 33px;top: -30px;">
  1392. 分析
  1393. </div>
  1394. </div>
  1395. <div v-if="tooC == 57">
  1396. <img
  1397. @click="addTools(tooC, toolIndex, taskCount)"
  1398. src="../../assets/icon/fourthToolList/cocopi.png"
  1399. alt
  1400. />
  1401. <div style="margin: 5px 0">CocoPi</div>
  1402. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1403. style="position: absolute;right: 33px;top: -30px;">
  1404. 分析
  1405. </div>
  1406. </div>
  1407. <div v-if="tooC == 58">
  1408. <img
  1409. @click="addTools(tooC, toolIndex, taskCount)"
  1410. src="../../assets/icon/fourthToolList/car.png"
  1411. alt
  1412. />
  1413. <div style="margin: 5px 0">模拟驾驶</div>
  1414. </div>
  1415. <div v-if="tooC == 59">
  1416. <img
  1417. @click="addTools(tooC, toolIndex, taskCount)"
  1418. src="../../assets/icon/fourthToolList/lineSearch.png"
  1419. alt
  1420. />
  1421. <div style="margin: 5px 0">路径搜索</div>
  1422. </div>
  1423. <div v-if="tooC == 60">
  1424. <img
  1425. @click="addTools(tooC, toolIndex, taskCount)"
  1426. src="../../assets/icon/fourthToolList/deepLearning.png"
  1427. alt
  1428. />
  1429. <div style="margin: 5px 0">深度学习</div>
  1430. </div>
  1431. <div v-if="tooC == 61">
  1432. <img
  1433. @click="addTools(tooC, toolIndex, taskCount)"
  1434. src="../../assets/icon/fourthToolList/allHistory.png"
  1435. alt
  1436. />
  1437. <div style="margin: 5px 0">全历史</div>
  1438. </div>
  1439. <div v-if="tooC == 62">
  1440. <img
  1441. @click="addTools(tooC, toolIndex, taskCount)"
  1442. src="../../assets/icon/fourthToolList/interVideo.png"
  1443. alt
  1444. />
  1445. <div style="margin: 5px 0">交互视频</div>
  1446. </div>
  1447. <div v-if="tooC == 63">
  1448. <img
  1449. @click="addTools(tooC, toolIndex, taskCount)"
  1450. src="../../assets/icon/fourthToolList/Wood.png"
  1451. alt
  1452. />
  1453. <div style="margin: 5px 0">海龟编程</div>
  1454. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,63)"
  1455. style="position: absolute;right: 33px;top: -30px;">
  1456. 分析
  1457. </div>
  1458. </div>
  1459. <div v-if="tooC == 71">
  1460. <img
  1461. @click="addTools(tooC, toolIndex, taskCount)"
  1462. src="../../assets/icon/fourthToolList/chatgpt.png"
  1463. alt
  1464. />
  1465. <div style="margin: 5px 0">AI智能体</div>
  1466. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,71)"
  1467. style="position: absolute;right: 33px;top: -30px;">
  1468. 分析
  1469. </div>
  1470. </div>
  1471. <div v-if="tooC == 72">
  1472. <img
  1473. style="height: 85px;object-fit: cover;"
  1474. v-if="tool.appJson && tool.appJson.json && tool.appJson.json.icon"
  1475. @click="addTools(tooC, toolIndex, taskCount)"
  1476. :src="tool.appJson.json.icon"
  1477. alt
  1478. />
  1479. <img
  1480. v-else
  1481. @click="addTools(tooC, toolIndex, taskCount)"
  1482. src="../../assets/icon/firstToolList/appStore.png"
  1483. alt
  1484. />
  1485. <el-tooltip :content="tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'" placement="top" effect="dark">
  1486. <!-- content to trigger tooltip here -->
  1487. <div class="Ovh">
  1488. {{tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'}}
  1489. </div>
  1490. </el-tooltip>
  1491. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,72)"
  1492. style="position: absolute;right: 33px;top: -30px;">
  1493. 分析
  1494. </div>
  1495. </div>
  1496. <div v-if="tooC == 73">
  1497. <img
  1498. src="../../assets/icon/secondToolList/ppt.png"
  1499. alt
  1500. @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,73)"
  1501. />
  1502. <div style="margin: 5px 0">PPT</div>
  1503. </div>
  1504. <div v-if="tooC == 65">
  1505. <img
  1506. @click="addTools(tooC, toolIndex, taskCount)"
  1507. src="../../assets/icon/firstToolList/pickPeople.png"
  1508. alt
  1509. />
  1510. <div style="margin: 5px 0">挑人</div>
  1511. </div>
  1512. <div v-if="tooC == 66">
  1513. <img
  1514. @click="addTools(tooC, toolIndex, taskCount)"
  1515. src="../../assets/icon/secondToolList/formulaEdi.png"
  1516. alt
  1517. />
  1518. <div style="margin: 5px 0">公式编辑</div>
  1519. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,66)"
  1520. style="position: absolute;right: 33px;top: -30px;">
  1521. 分析
  1522. </div>
  1523. </div>
  1524. <div v-if="tooC == 67">
  1525. <img
  1526. @click="addTools(tooC, toolIndex, taskCount)"
  1527. src="../../assets/icon/secondToolList/molStr.png"
  1528. alt
  1529. />
  1530. <div style="margin: 5px 0">分子结构</div>
  1531. </div>
  1532. <div v-if="tooC == 68">
  1533. <img
  1534. @click="addTools(tooC, toolIndex, taskCount)"
  1535. src="../../assets/icon/secondToolList/timeAxis.png"
  1536. alt
  1537. />
  1538. <div style="margin: 5px 0">时间轴</div>
  1539. <!-- <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,68)"
  1540. style="position: absolute;right: 33px;top: -30px;">
  1541. 分析
  1542. </div> -->
  1543. </div>
  1544. <div v-if="tooC == 69">
  1545. <img
  1546. @click="addTools(tooC, toolIndex, taskCount)"
  1547. src="../../assets/icon/secondToolList/english.png"
  1548. alt
  1549. />
  1550. <div style="margin: 5px 0">英语写作</div>
  1551. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1552. style="position: absolute;right: 33px;top: -30px;">
  1553. 分析
  1554. </div>
  1555. </div>
  1556. <div v-if="tooC == 70">
  1557. <img
  1558. @click="addTools(tooC, toolIndex, taskCount)"
  1559. src="../../assets/icon/thirdToolList/englishVoice.png"
  1560. alt
  1561. />
  1562. <div style="margin: 5px 0">英语口语</div>
  1563. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1564. style="position: absolute;right: 33px;top: -30px;">
  1565. 分析
  1566. </div>
  1567. </div>
  1568. </div>
  1569. </div>
  1570. </div>
  1571. <div class="tooldetail renderedFor" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1572. <!-- <div class="toolTitle">工具描述</div> -->
  1573. <!-- @click.stop="updateToolDetail(toolIndex, 2)" 点击开启修改-->
  1574. <div style="height:100%;"
  1575. v-html="renderedFormula(tool.toolDetail)"
  1576. v-if="toolDetailIndex != toolIndex"
  1577. ></div>
  1578. <div v-else @click.stop="" style="height:100%;">
  1579. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1580. </div>
  1581. </div>
  1582. <el-button
  1583. type="primary"
  1584. v-if="tool.tool[0] == 32"
  1585. style="position: absolute; right: 30px; top: -45px"
  1586. @click="addImg($event)"
  1587. >上传作业<input
  1588. type="file"
  1589. accept="*"
  1590. style="display: none"
  1591. @change="beforeUpload1($event, 7, toolIndex)"
  1592. /></el-button>
  1593. <el-button
  1594. type="primary"
  1595. v-if="tool.tool[0] == 15"
  1596. style="position: absolute; right: 30px; top: -45px"
  1597. @click="openWordCloud(toolIndex)"
  1598. >生成词云</el-button
  1599. >
  1600. <el-button
  1601. type="primary"
  1602. v-if="
  1603. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0 && tType==1 && tType==1
  1604. "
  1605. style="position: absolute; right: 30px; top: -45px"
  1606. @click="uploadWorks(toolIndex)"
  1607. >导出作业</el-button
  1608. >
  1609. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1610. position: absolute;
  1611. right: 30px;
  1612. transform: translateY(-130%);
  1613. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1614. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1615. </div>
  1616. <div
  1617. v-if="
  1618. tType &&
  1619. tType == 2 &&
  1620. !sIsOpen &&
  1621. tool.tool.indexOf(16) != -1
  1622. "
  1623. class="worksBox"
  1624. >
  1625. <div
  1626. class="zuoyeYulan"
  1627. v-if="workStudent[toolIndex].length > 0"
  1628. >
  1629. <span class="worksTitle">作业预览</span>
  1630. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1631. </div>
  1632. <div
  1633. class="worksDetailBox"
  1634. v-if="workStudent[toolIndex].length > 0"
  1635. >
  1636. <div
  1637. class="works"
  1638. style="
  1639. width: 200px;
  1640. height: 140px;
  1641. margin: 10px 10px 10px 0;
  1642. box-shadow: 0 0 6px 1px #dfdada;
  1643. "
  1644. v-for="(w, wIndex) in workStudent[toolIndex]"
  1645. :key="wIndex"
  1646. >
  1647. <div class="workImg" v-if="w.type == 0">
  1648. <img
  1649. :src="w.works"
  1650. @click="previewImg(w.works,w)"
  1651. alt
  1652. />
  1653. <div
  1654. class="answerScore"
  1655. v-if="w.score"
  1656. @click.stop="openScore(w)"
  1657. :class="{
  1658. rightW:
  1659. w.userid == userid || tType == 1 || tType == 4,
  1660. }"
  1661. >
  1662. {{ JSON.parse(w.score).wScore }}分
  1663. </div>
  1664. <div
  1665. class="answerScore"
  1666. @click.stop="openScore(w)"
  1667. v-else-if="courseDetail.userid == userid"
  1668. :class="{
  1669. rightW:
  1670. w.userid == userid || tType == 1 || tType == 4,
  1671. }"
  1672. >
  1673. 评分
  1674. </div>
  1675. <img
  1676. class="deleteImg"
  1677. src="../../assets/deleteworks.png"
  1678. v-if="
  1679. w.userid == userid || tType == 1 || tType == 4
  1680. "
  1681. @click.stop="deleteWorks(w.wid)"
  1682. alt
  1683. />
  1684. </div>
  1685. <div class="workImg" v-if="w.type == 1">
  1686. <img :src="word" @click="openFile(w.works)" alt />
  1687. <div
  1688. class="answerScore"
  1689. v-if="w.score"
  1690. @click.stop="openScore(w)"
  1691. :class="{
  1692. rightW:
  1693. w.userid == userid || tType == 1 || tType == 4,
  1694. }"
  1695. >
  1696. {{ JSON.parse(w.score).wScore }}分
  1697. </div>
  1698. <div
  1699. class="answerScore"
  1700. @click.stop="openScore(w)"
  1701. v-else-if="courseDetail.userid == userid"
  1702. :class="{
  1703. rightW:
  1704. w.userid == userid || tType == 1 || tType == 4,
  1705. }"
  1706. >
  1707. 评分
  1708. </div>
  1709. <img
  1710. class="deleteImg"
  1711. src="../../assets/deleteworks.png"
  1712. v-if="
  1713. w.userid == userid || tType == 1 || tType == 4
  1714. "
  1715. @click.stop="deleteWorks(w.wid)"
  1716. alt
  1717. />
  1718. </div>
  1719. <div class="workImg" v-if="w.type == 3">
  1720. <img
  1721. style="cursor: pointer"
  1722. :src="video"
  1723. @click="openVideo(w)"
  1724. alt
  1725. />
  1726. <div
  1727. class="answerScore"
  1728. v-if="w.score"
  1729. @click.stop="openScore(w)"
  1730. :class="{
  1731. rightW:
  1732. w.userid == userid || tType == 1 || tType == 4,
  1733. }"
  1734. >
  1735. {{ JSON.parse(w.score).wScore }}分
  1736. </div>
  1737. <div
  1738. class="answerScore"
  1739. @click.stop="openScore(w)"
  1740. v-else-if="courseDetail.userid == userid"
  1741. :class="{
  1742. rightW:
  1743. w.userid == userid || tType == 1 || tType == 4,
  1744. }"
  1745. >
  1746. 评分
  1747. </div>
  1748. <img
  1749. class="deleteImg"
  1750. src="../../assets/deleteworks.png"
  1751. v-if="
  1752. w.userid == userid || tType == 1 || tType == 4
  1753. "
  1754. @click.stop="deleteWorks(w.wid)"
  1755. alt
  1756. />
  1757. </div>
  1758. <div class="workImg" v-if="w.type == 12">
  1759. <img
  1760. style="cursor: pointer"
  1761. :src="word2"
  1762. @click="downloadFile(w.works,w.userid)"
  1763. alt
  1764. />
  1765. <div
  1766. class="answerScore"
  1767. v-if="w.score"
  1768. @click.stop="openScore(w)"
  1769. :class="{
  1770. rightW:
  1771. w.userid == userid || tType == 1 || tType == 4,
  1772. }"
  1773. >
  1774. {{ JSON.parse(w.score).wScore }}分
  1775. </div>
  1776. <div
  1777. class="answerScore"
  1778. @click.stop="openScore(w)"
  1779. v-else-if="courseDetail.userid == userid"
  1780. :class="{
  1781. rightW:
  1782. w.userid == userid || tType == 1 || tType == 4,
  1783. }"
  1784. >
  1785. 评分
  1786. </div>
  1787. <img
  1788. class="deleteImg"
  1789. src="../../assets/deleteworks.png"
  1790. v-if="
  1791. w.userid == userid || tType == 1 || tType == 4
  1792. "
  1793. @click.stop="deleteWorks(w.wid)"
  1794. alt
  1795. />
  1796. </div>
  1797. <div class="worksName">
  1798. <div>{{ w.sName }}</div>
  1799. </div>
  1800. </div>
  1801. </div>
  1802. </div>
  1803. <div
  1804. v-if="
  1805. tType &&
  1806. tType == 2 &&
  1807. !sIsOpen &&
  1808. tool.tool.indexOf(32) != -1
  1809. "
  1810. class="worksBox"
  1811. >
  1812. <div
  1813. class="zuoyeYulan"
  1814. v-if="workStudent[toolIndex].length > 0"
  1815. >
  1816. <span class="worksTitle">作业预览</span>
  1817. </div>
  1818. <div
  1819. class="worksDetailBox"
  1820. v-if="workStudent[toolIndex].length > 0"
  1821. >
  1822. <div
  1823. class="works"
  1824. style="
  1825. width: 200px;
  1826. height: 140px;
  1827. margin: 10px 10px 10px 0;
  1828. box-shadow: 0 0 6px 1px #dfdada;
  1829. "
  1830. v-for="(w, wIndex) in workStudent[toolIndex]"
  1831. :key="wIndex"
  1832. >
  1833. <div class="workImg">
  1834. <img
  1835. :src="word2"
  1836. @click="downloadFile(w.works,w.userid)"
  1837. alt
  1838. />
  1839. <div
  1840. class="answerScore"
  1841. v-if="w.score"
  1842. @click.stop="openScore(w)"
  1843. :class="{
  1844. rightW:
  1845. w.userid == userid || tType == 1 || tType == 4,
  1846. }"
  1847. >
  1848. {{ JSON.parse(w.score).wScore }}分
  1849. </div>
  1850. <div
  1851. class="answerScore"
  1852. @click.stop="openScore(w)"
  1853. v-else-if="courseDetail.userid == userid"
  1854. :class="{
  1855. rightW:
  1856. w.userid == userid || tType == 1 || tType == 4,
  1857. }"
  1858. >
  1859. 评分
  1860. </div>
  1861. <img
  1862. class="deleteImg"
  1863. src="../../assets/deleteworks.png"
  1864. v-if="
  1865. w.userid == userid || tType == 1 || tType == 4
  1866. "
  1867. @click.stop="deleteWorks(w.wid)"
  1868. alt
  1869. />
  1870. </div>
  1871. <div class="worksName">
  1872. <div>{{ w.sName }}</div>
  1873. </div>
  1874. </div>
  1875. </div>
  1876. </div>
  1877. <div
  1878. v-if="
  1879. tType &&
  1880. tType == 2 &&
  1881. !sIsOpen &&
  1882. tool.tool.indexOf(57) != -1
  1883. "
  1884. class="worksBox"
  1885. >
  1886. <div
  1887. class="zuoyeYulan"
  1888. v-if="workStudent[toolIndex].length > 0"
  1889. >
  1890. <span class="worksTitle">作业预览</span>
  1891. </div>
  1892. <div
  1893. class="worksDetailBox"
  1894. v-if="workStudent[toolIndex].length > 0"
  1895. >
  1896. <div
  1897. class="works"
  1898. style="
  1899. width: 200px;
  1900. height: 140px;
  1901. margin: 10px 10px 10px 0;
  1902. box-shadow: 0 0 6px 1px #dfdada;
  1903. "
  1904. v-for="(w, wIndex) in workStudent[toolIndex]"
  1905. :key="wIndex"
  1906. >
  1907. <div class="workImg">
  1908. <img
  1909. :src="word2"
  1910. @click="downloadFile(w.works,w.userid)"
  1911. v-if="w.type == 12"
  1912. alt
  1913. />
  1914. <img
  1915. :src="word2"
  1916. @click="
  1917. openCocoPi(57, toolIndex, w.userid, w.sName)
  1918. "
  1919. v-else-if="w.type == 15"
  1920. alt
  1921. />
  1922. <div
  1923. class="answerScore"
  1924. v-if="w.score"
  1925. @click.stop="openScore(w)"
  1926. :class="{
  1927. rightW:
  1928. w.userid == userid || tType == 1 || tType == 4,
  1929. }"
  1930. >
  1931. {{ JSON.parse(w.score).wScore }}分
  1932. </div>
  1933. <div
  1934. class="answerScore"
  1935. @click.stop="openScore(w)"
  1936. v-else-if="courseDetail.userid == userid"
  1937. :class="{
  1938. rightW:
  1939. w.userid == userid || tType == 1 || tType == 4,
  1940. }"
  1941. >
  1942. 评分
  1943. </div>
  1944. <img
  1945. class="deleteImg"
  1946. src="../../assets/deleteworks.png"
  1947. v-if="
  1948. w.userid == userid || tType == 1 || tType == 4
  1949. "
  1950. @click.stop="deleteWorks(w.wid)"
  1951. alt
  1952. />
  1953. </div>
  1954. <div class="worksName">
  1955. <div>{{ w.sName }}</div>
  1956. </div>
  1957. </div>
  1958. </div>
  1959. </div>
  1960. <div
  1961. v-if="
  1962. tType &&
  1963. tType == 2 &&
  1964. !sIsOpen &&
  1965. tool.tool.indexOf(4) != -1
  1966. "
  1967. class="worksBox"
  1968. >
  1969. <div
  1970. class="zuoyeYulan"
  1971. v-if="workStudent[toolIndex].length > 0"
  1972. >
  1973. <span class="worksTitle">作业预览</span>
  1974. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1975. </div>
  1976. <div
  1977. class="worksDetailBox"
  1978. v-if="workStudent[toolIndex].length > 0"
  1979. >
  1980. <div
  1981. class="isWorksName2"
  1982. v-for="(w, wIndex) in workStudent[toolIndex]"
  1983. :key="wIndex"
  1984. @click="
  1985. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1986. "
  1987. >
  1988. {{ w.sName }}
  1989. <img
  1990. class="deleteImg deleteImg2"
  1991. src="../../assets/deleteworks.png"
  1992. v-if="w.userid == userid || tType == 1 || tType == 4"
  1993. @click.stop="deleteWorks(w.wid)"
  1994. alt
  1995. />
  1996. </div>
  1997. <!-- <div
  1998. class="works"
  1999. style="
  2000. width: 200px;
  2001. height: 140px;
  2002. border-radius: 10px;
  2003. box-shadow: 0 0 6px 1px #dfdada;
  2004. overflow: hidden;
  2005. "
  2006. v-for="(w, wIndex) in workStudent[toolIndex]"
  2007. :key="wIndex"
  2008. >
  2009. <div class="workImg">
  2010. <img
  2011. src="../../assets/icon/works/noImg.png"
  2012. @click="
  2013. openTools(
  2014. 4,
  2015. toolIndex,
  2016. taskCount,
  2017. w.works,
  2018. w.sName
  2019. )
  2020. "
  2021. alt
  2022. />
  2023. </div>
  2024. <div class="worksName">
  2025. <div>{{ w.sName }}</div>
  2026. <div>{{ w.time }}</div>
  2027. </div>
  2028. </div> -->
  2029. </div>
  2030. </div>
  2031. <div
  2032. v-if="
  2033. tType &&
  2034. ((tType == 2 && sIsOpen == true) ||
  2035. tType == 1 ||
  2036. tType == 4) &&
  2037. tool.tool.indexOf(62) != -1
  2038. "
  2039. class="worksBox"
  2040. >
  2041. <div
  2042. class="zuoyeYulan"
  2043. v-if="
  2044. worksStudent.length &&
  2045. worksStudent[toolIndex].length > 0
  2046. "
  2047. >
  2048. <div class="worksTop">
  2049. <div>作业预览</div>
  2050. <div
  2051. class="corOpen"
  2052. @click="contract(toolIndex)"
  2053. v-if="
  2054. (isCloseList[toolIndex].isCloseBoolean) &&
  2055. isCloseList[toolIndex].isClose == 0
  2056. "
  2057. >
  2058. 折叠
  2059. </div>
  2060. <div
  2061. class="corOpen"
  2062. @click="contract(toolIndex)"
  2063. v-if="isCloseList[toolIndex].isClose == 1"
  2064. >
  2065. 展开
  2066. </div>
  2067. </div>
  2068. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2069. </div>
  2070. <div>
  2071. <div
  2072. :id="'tool-' + toolIndex"
  2073. :style="{
  2074. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2075. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2076. }"
  2077. class="worksDetailBox"
  2078. v-if="
  2079. worksStudent.length &&
  2080. worksStudent[toolIndex].length > 0
  2081. "
  2082. >
  2083. <div
  2084. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2085. :key="wIndex"
  2086. class="isWorksName2"
  2087. @click="
  2088. openTools(
  2089. 62,
  2090. toolIndex,
  2091. taskCount,
  2092. w.works,
  2093. w.sName
  2094. )
  2095. "
  2096. >
  2097. {{ w.sName }}
  2098. <img
  2099. class="deleteImg deleteImg2"
  2100. src="../../assets/deleteworks.png"
  2101. v-if="
  2102. w.userid == userid || tType == 1 || tType == 4
  2103. "
  2104. @click.stop="deleteWorks(w.wid)"
  2105. alt
  2106. />
  2107. </div>
  2108. </div>
  2109. </div>
  2110. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2111. 未提交
  2112. </div>
  2113. <div
  2114. class="noWorksS"
  2115. v-if="noWorksS && noWorksS[toolIndex].length"
  2116. >
  2117. <div
  2118. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2119. :key="sIndex"
  2120. class="noWorksName"
  2121. >
  2122. <el-tooltip effect="dark" :content="s.student" placement="top">
  2123. <span>{{ s.student }}</span>
  2124. </el-tooltip>
  2125. </div>
  2126. </div>
  2127. </div>
  2128. <div
  2129. v-if="
  2130. tType &&
  2131. tType == 2 &&
  2132. !sIsOpen &&
  2133. tool.tool.indexOf(62) != -1
  2134. "
  2135. class="worksBox"
  2136. >
  2137. <div
  2138. class="zuoyeYulan"
  2139. v-if="workStudent[toolIndex].length > 0"
  2140. >
  2141. <span class="worksTitle">作业预览</span>
  2142. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2143. </div>
  2144. <div
  2145. class="worksDetailBox"
  2146. v-if="workStudent[toolIndex].length > 0"
  2147. >
  2148. <div
  2149. class="isWorksName2"
  2150. v-for="(w, wIndex) in workStudent[toolIndex]"
  2151. :key="wIndex"
  2152. @click="
  2153. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2154. "
  2155. >
  2156. {{ w.sName }}
  2157. <img
  2158. class="deleteImg deleteImg2"
  2159. src="../../assets/deleteworks.png"
  2160. v-if="w.userid == userid || tType == 1 || tType == 4"
  2161. @click.stop="deleteWorks(w.wid)"
  2162. alt
  2163. />
  2164. </div>
  2165. </div>
  2166. </div>
  2167. <div
  2168. v-if="
  2169. tType &&
  2170. tType == 2 &&
  2171. !sIsOpen &&
  2172. tool.tool.indexOf(45) != -1
  2173. "
  2174. class="worksBox"
  2175. >
  2176. <div
  2177. class="zuoyeYulan"
  2178. v-if="workStudent[toolIndex].length > 0"
  2179. >
  2180. <span class="worksTitle">作业预览</span>
  2181. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2182. </div>
  2183. <div
  2184. class="worksDetailBox"
  2185. v-if="workStudent[toolIndex].length > 0"
  2186. >
  2187. <div
  2188. class="isWorksName2"
  2189. v-for="(w, wIndex) in workStudent[toolIndex]"
  2190. :key="wIndex"
  2191. @click="
  2192. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2193. "
  2194. >
  2195. {{ w.sName }}
  2196. <img
  2197. class="deleteImg deleteImg2"
  2198. src="../../assets/deleteworks.png"
  2199. v-if="w.userid == userid || tType == 1 || tType == 4"
  2200. @click.stop="deleteWorks(w.wid)"
  2201. alt
  2202. />
  2203. </div>
  2204. </div>
  2205. </div>
  2206. <div
  2207. v-if="
  2208. tType &&
  2209. tType == 2 &&
  2210. !sIsOpen &&
  2211. tool.tool.indexOf(69) != -1
  2212. "
  2213. class="worksBox"
  2214. >
  2215. <div
  2216. class="zuoyeYulan"
  2217. v-if="workStudent[toolIndex].length > 0"
  2218. >
  2219. <span class="worksTitle">作业预览</span>
  2220. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2221. </div>
  2222. <div
  2223. class="worksDetailBox"
  2224. v-if="workStudent[toolIndex].length > 0"
  2225. >
  2226. <div
  2227. class="isWorksName2"
  2228. v-for="(w, wIndex) in workStudent[toolIndex]"
  2229. :key="wIndex"
  2230. @click="
  2231. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2232. "
  2233. >
  2234. {{ w.sName }}
  2235. <img
  2236. class="deleteImg deleteImg2"
  2237. src="../../assets/deleteworks.png"
  2238. v-if="w.userid == userid || tType == 1 || tType == 4"
  2239. @click.stop="deleteWorks(w.wid)"
  2240. alt
  2241. />
  2242. </div>
  2243. </div>
  2244. </div>
  2245. <div
  2246. v-if="
  2247. tType &&
  2248. tType == 2 &&
  2249. !sIsOpen &&
  2250. tool.tool.indexOf(15) != -1
  2251. "
  2252. class="worksBox"
  2253. >
  2254. <div
  2255. class="zuoyeYulan"
  2256. v-if="workStudent[toolIndex].length > 0"
  2257. >
  2258. <span class="worksTitle">作业预览</span>
  2259. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2260. </div>
  2261. <div
  2262. class="worksDetailBox"
  2263. v-if="workStudent[toolIndex].length > 0"
  2264. >
  2265. <div
  2266. class="works"
  2267. v-for="(w, wIndex) in workStudent[toolIndex]"
  2268. :key="wIndex"
  2269. >
  2270. <div class="workImg">
  2271. <!-- <img
  2272. src="../../assets/icon/works/noImg.png"
  2273. @click="openTools(15, toolIndex, taskCount, w.works)"
  2274. alt=""
  2275. />-->
  2276. <div class="answerBg">
  2277. <!-- <div>{{ w.sName }}</div> -->
  2278. <el-tooltip
  2279. class="item"
  2280. effect="light"
  2281. :content="JSON.parse(w.works)[0].answer"
  2282. placement="top"
  2283. >
  2284. <div class="answerContent">
  2285. {{ JSON.parse(w.works)[0].answer }}
  2286. </div>
  2287. </el-tooltip>
  2288. <div
  2289. class="answerScore"
  2290. v-if="w.score"
  2291. @click.stop="openScore(w)"
  2292. :class="{
  2293. rightW:
  2294. w.userid == userid ||
  2295. tType == 1 ||
  2296. tType == 4,
  2297. }"
  2298. >
  2299. {{ JSON.parse(w.score).wScore }}分
  2300. </div>
  2301. <div
  2302. class="answerScore"
  2303. @click.stop="openScore(w)"
  2304. v-else-if="courseDetail.userid == userid"
  2305. :class="{
  2306. rightW:
  2307. w.userid == userid ||
  2308. tType == 1 ||
  2309. tType == 4,
  2310. }"
  2311. >
  2312. 评分
  2313. </div>
  2314. <img
  2315. class="deleteImg"
  2316. src="../../assets/deleteworks.png"
  2317. v-if="
  2318. w.userid == userid || tType == 1 || tType == 4
  2319. "
  2320. @click.stop="deleteWorks(w.wid)"
  2321. alt
  2322. />
  2323. </div>
  2324. <div class="comment">
  2325. <div class="worksName">
  2326. <div>{{ w.sName }}</div>
  2327. </div>
  2328. </div>
  2329. </div>
  2330. </div>
  2331. </div>
  2332. </div>
  2333. <div
  2334. v-if="
  2335. tType &&
  2336. tType == 2 &&
  2337. !sIsOpen &&
  2338. tool.tool.indexOf(1) != -1
  2339. "
  2340. class="worksBox"
  2341. >
  2342. <div
  2343. class="zuoyeYulan"
  2344. v-if="workStudent[toolIndex].length > 0"
  2345. >
  2346. <span class="worksTitle">作业预览</span>
  2347. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2348. </div>
  2349. <div
  2350. class="worksDetailBox"
  2351. v-if="workStudent[toolIndex].length > 0"
  2352. >
  2353. <div
  2354. class="works"
  2355. style="
  2356. width: 200px;
  2357. height: 140px;
  2358. margin: 10px 10px 10px 0;
  2359. box-shadow: 0 0 6px 1px #dfdada;
  2360. "
  2361. v-for="(w, wIndex) in workStudent[toolIndex]"
  2362. :key="wIndex"
  2363. >
  2364. <div class="workImg">
  2365. <img
  2366. :src="w.works"
  2367. @click="previewImg(w.works,w)"
  2368. alt
  2369. />
  2370. <div
  2371. class="answerScore"
  2372. v-if="w.score"
  2373. @click.stop="openScore(w)"
  2374. :class="{
  2375. rightW:
  2376. w.userid == userid || tType == 1 || tType == 4,
  2377. }"
  2378. >
  2379. {{ JSON.parse(w.score).wScore }}分
  2380. </div>
  2381. <div
  2382. class="answerScore"
  2383. @click.stop="openScore(w)"
  2384. v-else-if="courseDetail.userid == userid"
  2385. :class="{
  2386. rightW:
  2387. w.userid == userid || tType == 1 || tType == 4,
  2388. }"
  2389. >
  2390. 评分
  2391. </div>
  2392. <img
  2393. class="deleteImg"
  2394. src="../../assets/deleteworks.png"
  2395. v-if="
  2396. w.userid == userid || tType == 1 || tType == 4
  2397. "
  2398. @click.stop="deleteWorks(w.wid)"
  2399. alt
  2400. />
  2401. </div>
  2402. <div class="worksName">
  2403. <div>{{ w.sName }}</div>
  2404. </div>
  2405. </div>
  2406. </div>
  2407. </div>
  2408. <div
  2409. v-if="
  2410. tType &&
  2411. tType == 2 &&
  2412. !sIsOpen &&
  2413. tool.tool.indexOf(3) != -1
  2414. "
  2415. class="worksBox"
  2416. >
  2417. <div
  2418. class="zuoyeYulan"
  2419. v-if="workStudent[toolIndex].length > 0"
  2420. >
  2421. <span class="worksTitle">作业预览</span>
  2422. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2423. </div>
  2424. <div
  2425. class="worksDetailBox"
  2426. v-if="workStudent[toolIndex].length > 0"
  2427. >
  2428. <div
  2429. class="works"
  2430. style="
  2431. width: 200px;
  2432. height: 140px;
  2433. margin: 10px 10px 10px 0;
  2434. box-shadow: 0 0 6px 1px #dfdada;
  2435. "
  2436. v-for="(w, wIndex) in workStudent[toolIndex]"
  2437. :key="wIndex"
  2438. >
  2439. <div class="workImg">
  2440. <img
  2441. :src="w.works"
  2442. @click="previewImg(w.works,w)"
  2443. alt
  2444. />
  2445. <div
  2446. class="answerScore"
  2447. v-if="w.score"
  2448. @click.stop="openScore(w)"
  2449. :class="{
  2450. rightW:
  2451. w.userid == userid || tType == 1 || tType == 4,
  2452. }"
  2453. >
  2454. {{ JSON.parse(w.score).wScore }}分
  2455. </div>
  2456. <div
  2457. class="answerScore"
  2458. @click.stop="openScore(w)"
  2459. v-else-if="courseDetail.userid == userid"
  2460. :class="{
  2461. rightW:
  2462. w.userid == userid || tType == 1 || tType == 4,
  2463. }"
  2464. >
  2465. 评分
  2466. </div>
  2467. <img
  2468. class="deleteImg"
  2469. src="../../assets/deleteworks.png"
  2470. v-if="
  2471. w.userid == userid || tType == 1 || tType == 4
  2472. "
  2473. @click.stop="deleteWorks(w.wid)"
  2474. alt
  2475. />
  2476. </div>
  2477. <div class="worksName">
  2478. <div>{{ w.sName }}</div>
  2479. </div>
  2480. </div>
  2481. </div>
  2482. </div>
  2483. <div
  2484. v-if="
  2485. tType &&
  2486. tType == 2 &&
  2487. !sIsOpen &&
  2488. tool.tool.indexOf(6) != -1
  2489. "
  2490. class="worksBox"
  2491. >
  2492. <div
  2493. class="zuoyeYulan"
  2494. v-if="workStudent[toolIndex].length > 0"
  2495. >
  2496. <span class="worksTitle">作业预览</span>
  2497. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2498. </div>
  2499. <div
  2500. class="worksDetailBox"
  2501. v-if="workStudent[toolIndex].length > 0"
  2502. >
  2503. <div
  2504. class="works"
  2505. style="
  2506. width: 200px;
  2507. height: 140px;
  2508. margin: 10px 10px 10px 0;
  2509. box-shadow: 0 0 6px 1px #dfdada;
  2510. "
  2511. v-for="(w, wIndex) in workStudent[toolIndex]"
  2512. :key="wIndex"
  2513. >
  2514. <div class="workImg">
  2515. <img
  2516. :src="w.works"
  2517. @click="previewImg(w.works,w)"
  2518. alt
  2519. />
  2520. <div
  2521. class="answerScore"
  2522. v-if="w.score"
  2523. @click.stop="openScore(w)"
  2524. :class="{
  2525. rightW:
  2526. w.userid == userid || tType == 1 || tType == 4,
  2527. }"
  2528. >
  2529. {{ JSON.parse(w.score).wScore }}分
  2530. </div>
  2531. <div
  2532. class="answerScore"
  2533. @click.stop="openScore(w)"
  2534. v-else-if="courseDetail.userid == userid"
  2535. :class="{
  2536. rightW:
  2537. w.userid == userid || tType == 1 || tType == 4,
  2538. }"
  2539. >
  2540. 评分
  2541. </div>
  2542. <img
  2543. class="deleteImg"
  2544. src="../../assets/deleteworks.png"
  2545. v-if="
  2546. w.userid == userid || tType == 1 || tType == 4
  2547. "
  2548. @click.stop="deleteWorks(w.wid)"
  2549. alt
  2550. />
  2551. </div>
  2552. <div class="worksName">
  2553. <div>{{ w.sName }}</div>
  2554. </div>
  2555. </div>
  2556. </div>
  2557. </div>
  2558. <div
  2559. v-if="
  2560. tType &&
  2561. tType == 2 &&
  2562. !sIsOpen &&
  2563. tool.tool.indexOf(7) != -1
  2564. "
  2565. class="worksBox"
  2566. >
  2567. <div
  2568. class="zuoyeYulan"
  2569. v-if="workStudent[toolIndex].length > 0"
  2570. >
  2571. <span class="worksTitle">作业预览</span>
  2572. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2573. </div>
  2574. <div
  2575. class="worksDetailBox"
  2576. v-if="workStudent[toolIndex].length > 0"
  2577. >
  2578. <div
  2579. class="works"
  2580. style="
  2581. width: 200px;
  2582. height: 140px;
  2583. margin: 10px 10px 10px 0;
  2584. box-shadow: 0 0 6px 1px #dfdada;
  2585. "
  2586. v-for="(w, wIndex) in workStudent[toolIndex]"
  2587. :key="wIndex"
  2588. >
  2589. <div class="workImg">
  2590. <img
  2591. :src="w.works"
  2592. @click="previewImg(w.works,w)"
  2593. alt
  2594. />
  2595. <div
  2596. class="answerScore"
  2597. v-if="w.score"
  2598. @click.stop="openScore(w)"
  2599. :class="{
  2600. rightW:
  2601. w.userid == userid || tType == 1 || tType == 4,
  2602. }"
  2603. >
  2604. {{ JSON.parse(w.score).wScore }}分
  2605. </div>
  2606. <div
  2607. class="answerScore"
  2608. @click.stop="openScore(w)"
  2609. v-else-if="courseDetail.userid == userid"
  2610. :class="{
  2611. rightW:
  2612. w.userid == userid || tType == 1 || tType == 4,
  2613. }"
  2614. >
  2615. 评分
  2616. </div>
  2617. <img
  2618. class="deleteImg"
  2619. src="../../assets/deleteworks.png"
  2620. v-if="
  2621. w.userid == userid || tType == 1 || tType == 4
  2622. "
  2623. @click.stop="deleteWorks(w.wid)"
  2624. alt
  2625. />
  2626. </div>
  2627. <div class="worksName">
  2628. <div>{{ w.sName }}</div>
  2629. </div>
  2630. </div>
  2631. </div>
  2632. </div>
  2633. <div
  2634. v-if="
  2635. tType &&
  2636. tType == 2 &&
  2637. !sIsOpen &&
  2638. tool.tool.indexOf(26) != -1
  2639. "
  2640. class="worksBox"
  2641. >
  2642. <div
  2643. class="zuoyeYulan"
  2644. v-if="workStudent[toolIndex].length > 0"
  2645. >
  2646. <span class="worksTitle">作业预览</span>
  2647. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2648. </div>
  2649. <div
  2650. class="worksDetailBox"
  2651. v-if="workStudent[toolIndex].length > 0"
  2652. >
  2653. <div
  2654. class="works"
  2655. style="
  2656. width: 200px;
  2657. height: 140px;
  2658. margin: 10px 10px 10px 0;
  2659. box-shadow: 0 0 6px 1px #dfdada;
  2660. "
  2661. v-for="(w, wIndex) in workStudent[toolIndex]"
  2662. :key="wIndex"
  2663. >
  2664. <div class="workImg">
  2665. <img
  2666. :src="w.works"
  2667. @click="previewImg(w.works,w)"
  2668. alt
  2669. />
  2670. <img
  2671. class="deleteImg"
  2672. src="../../assets/deleteworks.png"
  2673. v-if="
  2674. w.userid == userid || tType == 1 || tType == 4
  2675. "
  2676. @click.stop="deleteWorks(w.wid)"
  2677. alt
  2678. />
  2679. </div>
  2680. <div class="worksName">
  2681. <div>{{ w.sName }}</div>
  2682. </div>
  2683. </div>
  2684. </div>
  2685. </div>
  2686. <div
  2687. v-if="
  2688. tType &&
  2689. ((tType == 2 && sIsOpen == true) ||
  2690. tType == 1 ||
  2691. tType == 4) &&
  2692. tool.tool.indexOf(16) != -1
  2693. "
  2694. class="worksBox"
  2695. >
  2696. <div
  2697. class="zuoyeYulan"
  2698. v-if="
  2699. (worksStudent.length &&
  2700. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2701. "
  2702. >
  2703. <div class="worksTop">
  2704. <div>作业预览</div>
  2705. <div
  2706. class="corOpen"
  2707. @click="contract(toolIndex)"
  2708. v-if="
  2709. (isCloseList[toolIndex].isCloseBoolean) &&
  2710. isCloseList[toolIndex].isClose == 0
  2711. "
  2712. >
  2713. 折叠
  2714. </div>
  2715. <div
  2716. class="corOpen"
  2717. @click="contract(toolIndex)"
  2718. v-if="isCloseList[toolIndex].isClose == 1"
  2719. >
  2720. 展开
  2721. </div>
  2722. </div>
  2723. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2724. </div>
  2725. <div
  2726. class="group_workBox"
  2727. v-for="(g, gindex) in courseGroup.group"
  2728. :key="gindex"
  2729. >
  2730. <div class="group_box">
  2731. <div class="group_title">
  2732. <el-tooltip
  2733. class="item"
  2734. effect="light"
  2735. :content="g.name"
  2736. placement="top"
  2737. >
  2738. <div class="group_name">{{ g.name }}</div>
  2739. </el-tooltip>
  2740. </div>
  2741. <div
  2742. class="group_work"
  2743. v-if="
  2744. g.works &&
  2745. g.works.length &&
  2746. g.works[toolIndex].length
  2747. "
  2748. >
  2749. <div
  2750. class="works"
  2751. style="
  2752. width: 200px;
  2753. height: 140px;
  2754. margin: 10px 10px 10px 0;
  2755. border-radius: 15px;
  2756. box-shadow: 0 0 6px 1px #dfdada;
  2757. "
  2758. v-for="(w, wIndex) in g.works[toolIndex]"
  2759. :key="wIndex"
  2760. :class="w.type == 1 ? 'isTypeOne' : ''"
  2761. >
  2762. <div class="workImg" v-if="w.type == 0">
  2763. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2764. <img
  2765. :src="w.works"
  2766. @click="previewImg(w.works,w)"
  2767. alt
  2768. />
  2769. <div
  2770. class="answerScore"
  2771. v-if="w.score"
  2772. @click.stop="openScore(w)"
  2773. :class="{
  2774. rightW:
  2775. w.userid == userid ||
  2776. tType == 1 ||
  2777. tType == 4 ||
  2778. w.ateacher == userid,
  2779. }"
  2780. >
  2781. {{ JSON.parse(w.score).wScore }}分
  2782. </div>
  2783. <div
  2784. class="answerScore"
  2785. @click.stop="openScore(w)"
  2786. v-else-if="courseDetail.userid == userid"
  2787. :class="{
  2788. rightW:
  2789. w.userid == userid ||
  2790. tType == 1 ||
  2791. tType == 4 ||
  2792. w.ateacher == userid,
  2793. }"
  2794. >
  2795. 评分
  2796. </div>
  2797. <img
  2798. class="deleteImg"
  2799. src="../../assets/deleteworks.png"
  2800. v-if="
  2801. w.userid == userid || tType == 1 || tType == 4
  2802. "
  2803. @click.stop="deleteWorks(w.wid)"
  2804. alt
  2805. />
  2806. </div>
  2807. <div class="workImg" v-if="w.type == 1">
  2808. <img :src="word" @click="openFile(w.works)" alt />
  2809. <!-- @click="openFile(w.works)" -->
  2810. <div
  2811. class="answerScore"
  2812. v-if="w.score"
  2813. @click.stop="openScore(w)"
  2814. :class="{
  2815. rightW:
  2816. w.userid == userid ||
  2817. tType == 1 ||
  2818. tType == 4 ||
  2819. w.ateacher == userid,
  2820. }"
  2821. >
  2822. {{ JSON.parse(w.score).wScore }}分
  2823. </div>
  2824. <div
  2825. class="answerScore"
  2826. @click.stop="openScore(w)"
  2827. v-else-if="courseDetail.userid == userid"
  2828. :class="{
  2829. rightW:
  2830. w.userid == userid ||
  2831. tType == 1 ||
  2832. tType == 4 ||
  2833. w.ateacher == userid,
  2834. }"
  2835. >
  2836. 评分
  2837. </div>
  2838. <img
  2839. class="deleteImg"
  2840. src="../../assets/deleteworks.png"
  2841. v-if="
  2842. w.userid == userid || tType == 1 || tType == 4
  2843. "
  2844. @click.stop="deleteWorks(w.wid)"
  2845. alt
  2846. />
  2847. </div>
  2848. <div class="workImg" v-if="w.type == 3">
  2849. <img
  2850. style="cursor: pointer"
  2851. :src="video"
  2852. @click="openVideo(w)"
  2853. alt
  2854. />
  2855. <!-- @click="openVideo(w.works)" -->
  2856. <div
  2857. class="answerScore"
  2858. v-if="w.score"
  2859. @click.stop="openScore(w)"
  2860. :class="{
  2861. rightW:
  2862. w.userid == userid ||
  2863. tType == 1 ||
  2864. tType == 4 ||
  2865. w.ateacher == userid,
  2866. }"
  2867. >
  2868. {{ JSON.parse(w.score).wScore }}分
  2869. </div>
  2870. <div
  2871. class="answerScore"
  2872. @click.stop="openScore(w)"
  2873. v-else-if="courseDetail.userid == userid"
  2874. :class="{
  2875. rightW:
  2876. w.userid == userid ||
  2877. tType == 1 ||
  2878. tType == 4 ||
  2879. w.ateacher == userid,
  2880. }"
  2881. >
  2882. 评分
  2883. </div>
  2884. <img
  2885. class="deleteImg"
  2886. src="../../assets/deleteworks.png"
  2887. v-if="
  2888. w.userid == userid || tType == 1 || tType == 4
  2889. "
  2890. @click.stop="deleteWorks(w.wid)"
  2891. alt
  2892. />
  2893. </div>
  2894. <div class="workImg" v-if="w.type == 12">
  2895. <img
  2896. style="cursor: pointer"
  2897. :src="word2"
  2898. @click="downloadFile(w.works,w.userid)"
  2899. alt
  2900. />
  2901. <!-- @click="openVideo(w.works)" -->
  2902. <div
  2903. class="answerScore"
  2904. v-if="w.score"
  2905. @click.stop="openScore(w)"
  2906. :class="{
  2907. rightW:
  2908. w.userid == userid ||
  2909. tType == 1 ||
  2910. tType == 4 ||
  2911. w.ateacher == userid,
  2912. }"
  2913. >
  2914. {{ JSON.parse(w.score).wScore }}分
  2915. </div>
  2916. <div
  2917. class="answerScore"
  2918. @click.stop="openScore(w)"
  2919. v-else-if="courseDetail.userid == userid"
  2920. :class="{
  2921. rightW:
  2922. w.userid == userid ||
  2923. tType == 1 ||
  2924. tType == 4 ||
  2925. w.ateacher == userid,
  2926. }"
  2927. >
  2928. 评分
  2929. </div>
  2930. <img
  2931. class="deleteImg"
  2932. src="../../assets/deleteworks.png"
  2933. v-if="
  2934. w.userid == userid || tType == 1 || tType == 4
  2935. "
  2936. @click.stop="deleteWorks(w.wid)"
  2937. alt
  2938. />
  2939. </div>
  2940. <div class="comment" style="min-width: 200px">
  2941. <div class="worksName">
  2942. <div>{{ w.sName }}</div>
  2943. </div>
  2944. <div class="commentList">
  2945. <div class="commentList">
  2946. <div
  2947. class="commentImg"
  2948. @click="
  2949. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2950. "
  2951. >
  2952. <img
  2953. :src="w.isLikes == true ? likes : noLikes"
  2954. alt=""
  2955. />
  2956. </div>
  2957. <div>{{ w.likesCount }}</div>
  2958. </div>
  2959. <div
  2960. class="commentList"
  2961. style="margin-right: 15px"
  2962. >
  2963. <div
  2964. class="commentImg"
  2965. @click="
  2966. commentOther(
  2967. w,
  2968. toolIndex,
  2969. wIndex,
  2970. null,
  2971. g.id
  2972. )
  2973. "
  2974. >
  2975. <img
  2976. src="../../assets/icon/comment/comment.png"
  2977. alt=""
  2978. />
  2979. </div>
  2980. <div>{{ w.commentCount }}</div>
  2981. </div>
  2982. </div>
  2983. </div>
  2984. </div>
  2985. </div>
  2986. <div class="group_work" v-else>暂无提交作业</div>
  2987. </div>
  2988. </div>
  2989. <div
  2990. :id="'tool-' + toolIndex"
  2991. :style="{
  2992. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2993. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2994. }"
  2995. class="worksDetailBox"
  2996. v-if="
  2997. worksStudent.length &&
  2998. worksStudent[toolIndex].length > 0
  2999. "
  3000. >
  3001. <div
  3002. class="works"
  3003. style="
  3004. width: 200px;
  3005. height: 140px;
  3006. margin: 10px 10px 10px 0;
  3007. border-radius: 15px;
  3008. box-shadow: 0 0 6px 1px #dfdada;
  3009. "
  3010. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3011. :key="wIndex"
  3012. :class="w.type == 1 ? 'isTypeOne' : ''"
  3013. >
  3014. <div class="workImg" v-if="w.type == 0">
  3015. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3016. <img
  3017. :src="w.works"
  3018. @click="previewImg(w.works,w)"
  3019. alt
  3020. />
  3021. <div
  3022. class="answerScore"
  3023. v-if="w.score"
  3024. @click.stop="openScore(w)"
  3025. :class="{
  3026. rightW:
  3027. w.userid == userid ||
  3028. tType == 1 ||
  3029. tType == 4 ||
  3030. w.ateacher == userid,
  3031. }"
  3032. >
  3033. {{ JSON.parse(w.score).wScore }}分
  3034. </div>
  3035. <div
  3036. class="answerScore"
  3037. @click.stop="openScore(w)"
  3038. v-else-if="courseDetail.userid == userid"
  3039. :class="{
  3040. rightW:
  3041. w.userid == userid ||
  3042. tType == 1 ||
  3043. tType == 4 ||
  3044. w.ateacher == userid,
  3045. }"
  3046. >
  3047. 评分
  3048. </div>
  3049. <img
  3050. class="deleteImg"
  3051. src="../../assets/deleteworks.png"
  3052. v-if="
  3053. w.userid == userid || tType == 1 || tType == 4
  3054. "
  3055. @click.stop="deleteWorks(w.wid)"
  3056. alt
  3057. />
  3058. </div>
  3059. <div class="workImg" v-if="w.type == 1">
  3060. <img :src="word" @click="openFile(w.works)" alt />
  3061. <!-- @click="openFile(w.works)" -->
  3062. <div
  3063. class="answerScore"
  3064. v-if="w.score"
  3065. @click.stop="openScore(w)"
  3066. :class="{
  3067. rightW:
  3068. w.userid == userid ||
  3069. tType == 1 ||
  3070. tType == 4 ||
  3071. w.ateacher == userid,
  3072. }"
  3073. >
  3074. {{ JSON.parse(w.score).wScore }}分
  3075. </div>
  3076. <div
  3077. class="answerScore"
  3078. @click.stop="openScore(w)"
  3079. v-else-if="courseDetail.userid == userid"
  3080. :class="{
  3081. rightW:
  3082. w.userid == userid ||
  3083. tType == 1 ||
  3084. tType == 4 ||
  3085. w.ateacher == userid,
  3086. }"
  3087. >
  3088. 评分
  3089. </div>
  3090. <img
  3091. class="deleteImg"
  3092. src="../../assets/deleteworks.png"
  3093. v-if="
  3094. w.userid == userid || tType == 1 || tType == 4
  3095. "
  3096. @click.stop="deleteWorks(w.wid)"
  3097. alt
  3098. />
  3099. </div>
  3100. <div class="workImg" v-if="w.type == 3">
  3101. <img
  3102. style="cursor: pointer"
  3103. :src="video"
  3104. @click="openVideo(w)"
  3105. alt
  3106. />
  3107. <!-- @click="openVideo(w.works)" -->
  3108. <div
  3109. class="answerScore"
  3110. v-if="w.score"
  3111. @click.stop="openScore(w)"
  3112. :class="{
  3113. rightW:
  3114. w.userid == userid ||
  3115. tType == 1 ||
  3116. tType == 4 ||
  3117. w.ateacher == userid,
  3118. }"
  3119. >
  3120. {{ JSON.parse(w.score).wScore }}分
  3121. </div>
  3122. <div
  3123. class="answerScore"
  3124. @click.stop="openScore(w)"
  3125. v-else-if="courseDetail.userid == userid"
  3126. :class="{
  3127. rightW:
  3128. w.userid == userid ||
  3129. tType == 1 ||
  3130. tType == 4 ||
  3131. w.ateacher == userid,
  3132. }"
  3133. >
  3134. 评分
  3135. </div>
  3136. <img
  3137. class="deleteImg"
  3138. src="../../assets/deleteworks.png"
  3139. v-if="
  3140. w.userid == userid || tType == 1 || tType == 4
  3141. "
  3142. @click.stop="deleteWorks(w.wid)"
  3143. alt
  3144. />
  3145. </div>
  3146. <div class="workImg" v-if="w.type == 12">
  3147. <img
  3148. style="cursor: pointer"
  3149. :src="word2"
  3150. @click="downloadFile(w.works,w.userid)"
  3151. alt
  3152. />
  3153. <!-- @click="openVideo(w.works)" -->
  3154. <div
  3155. class="answerScore"
  3156. v-if="w.score"
  3157. @click.stop="openScore(w)"
  3158. :class="{
  3159. rightW:
  3160. w.userid == userid ||
  3161. tType == 1 ||
  3162. tType == 4 ||
  3163. w.ateacher == userid,
  3164. }"
  3165. >
  3166. {{ JSON.parse(w.score).wScore }}分
  3167. </div>
  3168. <div
  3169. class="answerScore"
  3170. @click.stop="openScore(w)"
  3171. v-else-if="courseDetail.userid == userid"
  3172. :class="{
  3173. rightW:
  3174. w.userid == userid ||
  3175. tType == 1 ||
  3176. tType == 4 ||
  3177. w.ateacher == userid,
  3178. }"
  3179. >
  3180. 评分
  3181. </div>
  3182. <img
  3183. class="deleteImg"
  3184. src="../../assets/deleteworks.png"
  3185. v-if="
  3186. w.userid == userid || tType == 1 || tType == 4
  3187. "
  3188. @click.stop="deleteWorks(w.wid)"
  3189. alt
  3190. />
  3191. </div>
  3192. <div class="comment" style="min-width: 200px">
  3193. <div class="worksName">
  3194. <div>{{ w.sName }}</div>
  3195. </div>
  3196. <div class="commentList">
  3197. <div class="commentList">
  3198. <div
  3199. class="commentImg"
  3200. @click="
  3201. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3202. "
  3203. >
  3204. <img
  3205. :src="w.isLikes == true ? likes : noLikes"
  3206. alt=""
  3207. />
  3208. </div>
  3209. <div>{{ w.likesCount }}</div>
  3210. </div>
  3211. <div class="commentList" style="margin-right: 15px">
  3212. <div
  3213. class="commentImg"
  3214. @click="commentOther(w, toolIndex, wIndex)"
  3215. >
  3216. <img
  3217. src="../../assets/icon/comment/comment.png"
  3218. alt=""
  3219. />
  3220. </div>
  3221. <div>{{ w.commentCount }}</div>
  3222. </div>
  3223. </div>
  3224. </div>
  3225. </div>
  3226. </div>
  3227. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3228. 未提交
  3229. </div>
  3230. <div
  3231. class="noWorksS"
  3232. v-if="noWorksS && noWorksS[toolIndex].length"
  3233. >
  3234. <div
  3235. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3236. :key="sIndex"
  3237. class="noWorksName"
  3238. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3239. >
  3240. <el-tooltip effect="dark" :content="s.student" placement="top">
  3241. <span>{{ s.student }}</span>
  3242. </el-tooltip>
  3243. </div>
  3244. </div>
  3245. </div>
  3246. <div
  3247. v-if="
  3248. tType &&
  3249. ((tType == 2 && sIsOpen == true) ||
  3250. tType == 1 ||
  3251. tType == 4) &&
  3252. tool.tool.indexOf(70) != -1
  3253. "
  3254. class="worksBox"
  3255. >
  3256. <div
  3257. class="zuoyeYulan"
  3258. v-if="
  3259. (worksStudent.length &&
  3260. worksStudent[toolIndex].length > 0)
  3261. "
  3262. >
  3263. <div class="worksTop">
  3264. <div>作业预览</div>
  3265. <div
  3266. class="corOpen"
  3267. @click="contract(toolIndex)"
  3268. v-if="
  3269. (isCloseList[toolIndex].isCloseBoolean) &&
  3270. isCloseList[toolIndex].isClose == 0
  3271. "
  3272. >
  3273. 折叠
  3274. </div>
  3275. <div
  3276. class="corOpen"
  3277. @click="contract(toolIndex)"
  3278. v-if="isCloseList[toolIndex].isClose == 1"
  3279. >
  3280. 展开
  3281. </div>
  3282. </div>
  3283. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3284. </div>
  3285. <div
  3286. :id="'tool-' + toolIndex"
  3287. :style="{
  3288. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3289. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3290. }"
  3291. class="worksDetailBox"
  3292. v-if="
  3293. worksStudent.length &&
  3294. worksStudent[toolIndex].length > 0
  3295. "
  3296. >
  3297. <div
  3298. class="works"
  3299. style="
  3300. width: 200px;
  3301. height: 140px;
  3302. margin: 10px 10px 10px 0;
  3303. border-radius: 15px;
  3304. box-shadow: 0 0 6px 1px #dfdada;
  3305. "
  3306. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3307. :key="wIndex"
  3308. :class="w.type == 1 ? 'isTypeOne' : ''"
  3309. >
  3310. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3311. <img :src="word" alt />
  3312. <img
  3313. class="deleteImg"
  3314. src="../../assets/deleteworks.png"
  3315. v-if="
  3316. w.userid == userid || tType == 1 || tType == 4
  3317. "
  3318. @click.stop="deleteWorks(w.wid)"
  3319. alt
  3320. />
  3321. </div>
  3322. <div class="comment" style="min-width: 200px">
  3323. <div class="worksName">
  3324. <div>{{ w.sName }}</div>
  3325. </div>
  3326. </div>
  3327. </div>
  3328. </div>
  3329. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3330. 未提交
  3331. </div>
  3332. <div
  3333. class="noWorksS"
  3334. v-if="noWorksS && noWorksS[toolIndex].length"
  3335. >
  3336. <div
  3337. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3338. :key="sIndex"
  3339. class="noWorksName"
  3340. >
  3341. <el-tooltip effect="dark" :content="s.student" placement="top">
  3342. <span>{{ s.student }}</span>
  3343. </el-tooltip>
  3344. </div>
  3345. </div>
  3346. </div>
  3347. <div
  3348. v-if="
  3349. tType &&
  3350. tType == 2 &&
  3351. !sIsOpen &&
  3352. tool.tool.indexOf(70) != -1
  3353. "
  3354. class="worksBox"
  3355. >
  3356. <div
  3357. class="zuoyeYulan"
  3358. v-if="workStudent[toolIndex].length > 0"
  3359. >
  3360. <span class="worksTitle">作业预览</span>
  3361. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3362. </div>
  3363. <div
  3364. class="worksDetailBox"
  3365. v-if="workStudent[toolIndex].length > 0"
  3366. >
  3367. <div
  3368. class="works"
  3369. style="
  3370. width: 200px;
  3371. height: 140px;
  3372. margin: 10px 10px 10px 0;
  3373. box-shadow: 0 0 6px 1px #dfdada;
  3374. "
  3375. v-for="(w, wIndex) in workStudent[toolIndex]"
  3376. :key="wIndex"
  3377. >
  3378. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3379. <img :src="word" alt />
  3380. <img
  3381. class="deleteImg"
  3382. src="../../assets/deleteworks.png"
  3383. v-if="
  3384. w.userid == userid || tType == 1 || tType == 4
  3385. "
  3386. @click.stop="deleteWorks(w.wid)"
  3387. alt
  3388. />
  3389. </div>
  3390. <div class="worksName">
  3391. <div>{{ w.sName }}</div>
  3392. </div>
  3393. </div>
  3394. </div>
  3395. </div>
  3396. <div
  3397. v-if="
  3398. tType &&
  3399. ((tType == 2 && sIsOpen == true) ||
  3400. tType == 1 ||
  3401. tType == 4) &&
  3402. tool.tool.indexOf(32) != -1
  3403. "
  3404. class="worksBox"
  3405. >
  3406. <div
  3407. class="zuoyeYulan"
  3408. v-if="
  3409. worksStudent.length &&
  3410. worksStudent[toolIndex].length > 0
  3411. "
  3412. >
  3413. <div class="worksTop">
  3414. <div>作业预览</div>
  3415. <div
  3416. class="corOpen"
  3417. @click="contract(toolIndex)"
  3418. v-if="
  3419. (isCloseList[toolIndex].isCloseBoolean) &&
  3420. isCloseList[toolIndex].isClose == 0
  3421. "
  3422. >
  3423. 折叠
  3424. </div>
  3425. <div
  3426. class="corOpen"
  3427. @click="contract(toolIndex)"
  3428. v-if="isCloseList[toolIndex].isClose == 1"
  3429. >
  3430. 展开
  3431. </div>
  3432. </div>
  3433. </div>
  3434. <div
  3435. :id="'tool-' + toolIndex"
  3436. :style="{
  3437. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3438. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3439. }"
  3440. class="worksDetailBox"
  3441. v-if="
  3442. worksStudent.length &&
  3443. worksStudent[toolIndex].length > 0
  3444. "
  3445. >
  3446. <div
  3447. class="works"
  3448. style="
  3449. width: 200px;
  3450. height: 140px;
  3451. margin: 10px 10px 10px 0;
  3452. border-radius: 15px;
  3453. box-shadow: 0 0 6px 1px #dfdada;
  3454. "
  3455. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3456. :key="wIndex"
  3457. :class="w.type == 1 ? 'isTypeOne' : ''"
  3458. >
  3459. <div class="workImg">
  3460. <img
  3461. :src="word2"
  3462. @click="downloadFile(w.works,w.userid)"
  3463. alt
  3464. />
  3465. <div
  3466. class="answerScore"
  3467. v-if="w.score"
  3468. @click.stop="openScore(w)"
  3469. :class="{
  3470. rightW:
  3471. w.userid == userid ||
  3472. tType == 1 ||
  3473. tType == 4 ||
  3474. w.ateacher == userid,
  3475. }"
  3476. >
  3477. {{ JSON.parse(w.score).wScore }}分
  3478. </div>
  3479. <div
  3480. class="answerScore"
  3481. @click.stop="openScore(w)"
  3482. v-else-if="courseDetail.userid == userid"
  3483. :class="{
  3484. rightW:
  3485. w.userid == userid ||
  3486. tType == 1 ||
  3487. tType == 4 ||
  3488. w.ateacher == userid,
  3489. }"
  3490. >
  3491. 评分
  3492. </div>
  3493. <img
  3494. class="deleteImg"
  3495. src="../../assets/deleteworks.png"
  3496. v-if="
  3497. w.userid == userid || tType == 1 || tType == 4
  3498. "
  3499. @click.stop="deleteWorks(w.wid)"
  3500. alt
  3501. />
  3502. </div>
  3503. <div class="comment" style="min-width: 200px">
  3504. <div class="worksName">
  3505. <div>{{ w.sName }}</div>
  3506. </div>
  3507. <div class="commentList">
  3508. <div class="commentList">
  3509. <div
  3510. class="commentImg"
  3511. @click="
  3512. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3513. "
  3514. >
  3515. <img
  3516. :src="w.isLikes == true ? likes : noLikes"
  3517. alt=""
  3518. />
  3519. </div>
  3520. <div>{{ w.likesCount }}</div>
  3521. </div>
  3522. <div class="commentList" style="margin-right: 15px">
  3523. <div
  3524. class="commentImg"
  3525. @click="commentOther(w, toolIndex, wIndex)"
  3526. >
  3527. <img
  3528. src="../../assets/icon/comment/comment.png"
  3529. alt=""
  3530. />
  3531. </div>
  3532. <div>{{ w.commentCount }}</div>
  3533. </div>
  3534. </div>
  3535. </div>
  3536. </div>
  3537. </div>
  3538. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3539. 未提交
  3540. </div>
  3541. <div
  3542. class="noWorksS"
  3543. v-if="noWorksS && noWorksS[toolIndex].length"
  3544. >
  3545. <div
  3546. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3547. :key="sIndex"
  3548. class="noWorksName"
  3549. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3550. >
  3551. <el-tooltip effect="dark" :content="s.student" placement="top">
  3552. <span>{{ s.student }}</span>
  3553. </el-tooltip>
  3554. </div>
  3555. </div>
  3556. </div>
  3557. <div
  3558. v-if="
  3559. tType &&
  3560. ((tType == 2 && sIsOpen == true) ||
  3561. tType == 1 ||
  3562. tType == 4) &&
  3563. tool.tool.indexOf(57) != -1
  3564. "
  3565. class="worksBox"
  3566. >
  3567. <div
  3568. class="zuoyeYulan"
  3569. v-if="
  3570. worksStudent.length &&
  3571. worksStudent[toolIndex].length > 0
  3572. "
  3573. >
  3574. <div class="worksTop">
  3575. <div>作业预览</div>
  3576. <div
  3577. class="corOpen"
  3578. @click="contract(toolIndex)"
  3579. v-if="
  3580. (isCloseList[toolIndex].isCloseBoolean) &&
  3581. isCloseList[toolIndex].isClose == 0
  3582. "
  3583. >
  3584. 折叠
  3585. </div>
  3586. <div
  3587. class="corOpen"
  3588. @click="contract(toolIndex)"
  3589. v-if="isCloseList[toolIndex].isClose == 1"
  3590. >
  3591. 展开
  3592. </div>
  3593. </div>
  3594. </div>
  3595. <div
  3596. :id="'tool-' + toolIndex"
  3597. :style="{
  3598. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3599. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3600. }"
  3601. class="worksDetailBox"
  3602. v-if="
  3603. worksStudent.length &&
  3604. worksStudent[toolIndex].length > 0
  3605. "
  3606. >
  3607. <div
  3608. class="works"
  3609. style="
  3610. width: 200px;
  3611. height: 140px;
  3612. margin: 10px 10px 10px 0;
  3613. border-radius: 15px;
  3614. box-shadow: 0 0 6px 1px #dfdada;
  3615. "
  3616. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3617. :key="wIndex"
  3618. :class="w.type == 1 ? 'isTypeOne' : ''"
  3619. >
  3620. <div class="workImg">
  3621. <img
  3622. :src="word2"
  3623. @click="downloadFile(w.works,w.userid)"
  3624. v-if="w.type == 12"
  3625. alt
  3626. />
  3627. <img
  3628. :src="word2"
  3629. @click="
  3630. openCocoPi(57, toolIndex, w.userid, w.sName)
  3631. "
  3632. v-else-if="w.type == 15"
  3633. alt
  3634. />
  3635. <div
  3636. class="answerScore"
  3637. v-if="w.score"
  3638. @click.stop="openScore(w)"
  3639. :class="{
  3640. rightW:
  3641. w.userid == userid ||
  3642. tType == 1 ||
  3643. tType == 4 ||
  3644. w.ateacher == userid,
  3645. }"
  3646. >
  3647. {{ JSON.parse(w.score).wScore }}分
  3648. </div>
  3649. <div
  3650. class="answerScore"
  3651. @click.stop="openScore(w)"
  3652. v-else-if="courseDetail.userid == userid"
  3653. :class="{
  3654. rightW:
  3655. w.userid == userid ||
  3656. tType == 1 ||
  3657. tType == 4 ||
  3658. w.ateacher == userid,
  3659. }"
  3660. >
  3661. 评分
  3662. </div>
  3663. <img
  3664. class="deleteImg"
  3665. src="../../assets/deleteworks.png"
  3666. v-if="
  3667. w.userid == userid || tType == 1 || tType == 4
  3668. "
  3669. @click.stop="deleteWorks(w.wid)"
  3670. alt
  3671. />
  3672. </div>
  3673. <div class="comment" style="min-width: 200px">
  3674. <div class="worksName">
  3675. <div>{{ w.sName }}</div>
  3676. </div>
  3677. <div class="commentList">
  3678. <div class="commentList">
  3679. <div
  3680. class="commentImg"
  3681. @click="
  3682. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3683. "
  3684. >
  3685. <img
  3686. :src="w.isLikes == true ? likes : noLikes"
  3687. alt=""
  3688. />
  3689. </div>
  3690. <div>{{ w.likesCount }}</div>
  3691. </div>
  3692. <div class="commentList" style="margin-right: 15px">
  3693. <div
  3694. class="commentImg"
  3695. @click="commentOther(w, toolIndex, wIndex)"
  3696. >
  3697. <img
  3698. src="../../assets/icon/comment/comment.png"
  3699. alt=""
  3700. />
  3701. </div>
  3702. <div>{{ w.commentCount }}</div>
  3703. </div>
  3704. </div>
  3705. </div>
  3706. </div>
  3707. </div>
  3708. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3709. 未提交
  3710. </div>
  3711. <div
  3712. class="noWorksS"
  3713. v-if="noWorksS && noWorksS[toolIndex].length"
  3714. >
  3715. <div
  3716. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3717. :key="sIndex"
  3718. class="noWorksName"
  3719. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3720. >
  3721. <el-tooltip effect="dark" :content="s.student" placement="top">
  3722. <span>{{ s.student }}</span>
  3723. </el-tooltip>
  3724. </div>
  3725. </div>
  3726. </div>
  3727. <div
  3728. v-if="
  3729. tType &&
  3730. ((tType == 2 && sIsOpen == true) ||
  3731. tType == 1 ||
  3732. tType == 4) &&
  3733. tool.tool.indexOf(72) != -1
  3734. "
  3735. class="worksBox"
  3736. >
  3737. <div
  3738. class="zuoyeYulan"
  3739. v-if="
  3740. worksStudent.length &&
  3741. worksStudent[toolIndex].length > 0
  3742. "
  3743. >
  3744. <div class="worksTop">
  3745. <div>作业预览</div>
  3746. <div
  3747. class="corOpen"
  3748. @click="contract(toolIndex)"
  3749. v-if="
  3750. isCloseList[toolIndex].isCloseBoolean &&
  3751. isCloseList[toolIndex].isClose == 0
  3752. "
  3753. >
  3754. 折叠
  3755. </div>
  3756. <div
  3757. class="corOpen"
  3758. @click="contract(toolIndex)"
  3759. v-if="isCloseList[toolIndex].isClose == 1"
  3760. >
  3761. 展开
  3762. </div>
  3763. </div>
  3764. </div>
  3765. <div
  3766. :id="'tool-' + toolIndex"
  3767. :style="{
  3768. height:
  3769. isCloseList[toolIndex].isClose == 1
  3770. ? retrnToolHeight('tool-' + toolIndex)
  3771. : 'auto',
  3772. overflow:
  3773. isCloseList[toolIndex].isClose == 1
  3774. ? 'hidden'
  3775. : 'unset'
  3776. }"
  3777. class="worksDetailBox"
  3778. v-if="
  3779. worksStudent.length &&
  3780. worksStudent[toolIndex].length > 0
  3781. "
  3782. >
  3783. <div
  3784. class="works"
  3785. style="
  3786. width: 200px;
  3787. height: 140px;
  3788. margin: 10px 10px 10px 0;
  3789. border-radius: 15px;
  3790. box-shadow: 0 0 6px 1px #dfdada;
  3791. "
  3792. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3793. :key="wIndex"
  3794. :class="w.type == 1 ? 'isTypeOne' : ''"
  3795. >
  3796. <div class="workImg">
  3797. <!-- <img
  3798. :src="word2"
  3799. @click="downloadFile(w.works)"
  3800. v-if="w.type == 12"
  3801. alt
  3802. /> -->
  3803. <img
  3804. :src="word2"
  3805. @click="
  3806. openCocoFlow(w)
  3807. "
  3808. alt
  3809. />
  3810. <div
  3811. class="answerScore"
  3812. v-if="w.score"
  3813. @click.stop="openScore(w)"
  3814. :class="{
  3815. rightW:
  3816. w.userid == userid ||
  3817. tType == 1 ||
  3818. tType == 4 ||
  3819. w.ateacher == userid
  3820. }"
  3821. >
  3822. {{ JSON.parse(w.score).wScore }}分
  3823. </div>
  3824. <div
  3825. class="answerScore"
  3826. @click.stop="openScore(w)"
  3827. v-else-if="
  3828. courseDetail.userid == userid &&
  3829. courseDetail.state != 5 &&
  3830. chapInfoList[courseType].chapterInfo[0]
  3831. .taskJson[taskCount].eList &&
  3832. chapInfoList[courseType].chapterInfo[0]
  3833. .taskJson[taskCount].eList.length
  3834. "
  3835. :class="{
  3836. rightW:
  3837. w.userid == userid ||
  3838. tType == 1 ||
  3839. tType == 4 ||
  3840. w.ateacher == userid
  3841. }"
  3842. >
  3843. 评分
  3844. </div>
  3845. <img
  3846. class="deleteImg"
  3847. src="../../assets/deleteworks.png"
  3848. v-if="
  3849. w.userid == userid || tType == 1 || tType == 4
  3850. "
  3851. @click.stop="deleteWorks(w.wid)"
  3852. alt
  3853. />
  3854. </div>
  3855. <div class="comment" style="min-width: 200px">
  3856. <div class="worksName">
  3857. <div>{{ w.sName }}</div>
  3858. </div>
  3859. <div class="commentList">
  3860. <div class="commentList">
  3861. <div
  3862. class="commentImg"
  3863. @click="
  3864. isLikes(
  3865. w.wid,
  3866. userid,
  3867. 1,
  3868. null,
  3869. w.isLikes,
  3870. w.sName
  3871. )
  3872. "
  3873. >
  3874. <img
  3875. :src="w.isLikes == true ? likes : noLikes"
  3876. alt=""
  3877. />
  3878. </div>
  3879. <div>{{ w.likesCount }}</div>
  3880. </div>
  3881. <div class="commentList" style="margin-right: 15px">
  3882. <div
  3883. class="commentImg"
  3884. @click="commentOther(w, toolIndex, wIndex)"
  3885. >
  3886. <img
  3887. src="../../assets/icon/comment/comment.png"
  3888. alt=""
  3889. />
  3890. </div>
  3891. <div>{{ w.commentCount }}</div>
  3892. </div>
  3893. </div>
  3894. </div>
  3895. </div>
  3896. </div>
  3897. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3898. 未提交
  3899. </div>
  3900. <div
  3901. class="noWorksS"
  3902. v-if="noWorksS && noWorksS[toolIndex].length"
  3903. >
  3904. <div
  3905. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3906. :key="sIndex"
  3907. class="noWorksName2"
  3908. @click="teacherWorkSubmit(72, toolIndex, taskCount, s)"
  3909. >
  3910. <el-tooltip
  3911. effect="dark"
  3912. :content="s.student"
  3913. placement="top"
  3914. >
  3915. <span>{{ s.student }}</span>
  3916. </el-tooltip>
  3917. </div>
  3918. </div>
  3919. </div>
  3920. <div
  3921. v-if="
  3922. tType &&
  3923. tType == 2 &&
  3924. !sIsOpen &&
  3925. tool.tool.indexOf(72) != -1
  3926. "
  3927. class="worksBox"
  3928. >
  3929. <div
  3930. class="zuoyeYulan"
  3931. v-if="workStudent[toolIndex].length > 0"
  3932. >
  3933. <span class="worksTitle">作业预览</span>
  3934. </div>
  3935. <div
  3936. class="worksDetailBox"
  3937. v-if="workStudent[toolIndex].length > 0"
  3938. >
  3939. <div
  3940. class="works"
  3941. style="
  3942. width: 200px;
  3943. height: 140px;
  3944. margin: 10px 10px 10px 0;
  3945. box-shadow: 0 0 6px 1px #dfdada;
  3946. "
  3947. v-for="(w, wIndex) in workStudent[toolIndex]"
  3948. :key="wIndex"
  3949. >
  3950. <div class="workImg">
  3951. <!-- <img
  3952. :src="word2"
  3953. @click="downloadFile(w.works)"
  3954. v-if="w.type == 12"
  3955. alt
  3956. /> -->
  3957. <img
  3958. :src="word2"
  3959. @click="
  3960. openCocoFlow(w)
  3961. "
  3962. alt
  3963. />
  3964. <div
  3965. class="answerScore"
  3966. v-if="w.score"
  3967. @click.stop="openScore(w)"
  3968. :class="{
  3969. rightW:
  3970. w.userid == userid || tType == 1 || tType == 4
  3971. }"
  3972. >
  3973. {{ JSON.parse(w.score).wScore }}分
  3974. </div>
  3975. <div
  3976. class="answerScore"
  3977. @click.stop="openScore(w)"
  3978. v-else-if="courseDetail.userid == userid"
  3979. :class="{
  3980. rightW:
  3981. w.userid == userid || tType == 1 || tType == 4
  3982. }"
  3983. >
  3984. 评分
  3985. </div>
  3986. <img
  3987. class="deleteImg"
  3988. src="../../assets/deleteworks.png"
  3989. v-if="
  3990. w.userid == userid || tType == 1 || tType == 4
  3991. "
  3992. @click.stop="deleteWorks(w.wid)"
  3993. alt
  3994. />
  3995. </div>
  3996. <div class="worksName">
  3997. <div>{{ w.sName }}</div>
  3998. </div>
  3999. </div>
  4000. </div>
  4001. </div>
  4002. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  4003. <div
  4004. class="zuoyeYulan"
  4005. v-if="
  4006. worksStudent.length &&
  4007. worksStudent[toolIndex].length > 0
  4008. "
  4009. >
  4010. <span class="worksTitle">作业预览</span>
  4011. <div
  4012. class="corOpen"
  4013. @click="contract(toolIndex)"
  4014. v-if="
  4015. (isCloseList[toolIndex].isCloseBoolean) &&
  4016. isCloseList[toolIndex].isClose == 0
  4017. "
  4018. >
  4019. 折叠
  4020. </div>
  4021. <div
  4022. class="corOpen"
  4023. @click="contract(toolIndex)"
  4024. v-if="isCloseList[toolIndex].isClose == 1"
  4025. >
  4026. 展开
  4027. </div>
  4028. </div>
  4029. <div
  4030. :id="'tool-' + toolIndex"
  4031. :style="{
  4032. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4033. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4034. }"
  4035. class="worksDetailBox"
  4036. v-if="
  4037. worksStudent.length &&
  4038. worksStudent[toolIndex].length > 0
  4039. "
  4040. >
  4041. <div
  4042. class="works"
  4043. style="
  4044. width: 200px;
  4045. height: 140px;
  4046. margin: 10px 10px 10px 0;
  4047. border-radius: 15px;
  4048. box-shadow: 0 0 6px 1px #dfdada;
  4049. "
  4050. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4051. :key="wIndex"
  4052. :class="w.type == 1 ? 'isTypeOne' : ''"
  4053. >
  4054. <div class="workImg" v-if="w.type == 0">
  4055. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  4056. <img
  4057. :src="w.works"
  4058. @click="previewImg(w.works,w)"
  4059. alt
  4060. />
  4061. <div
  4062. class="answerScore"
  4063. v-if="w.score"
  4064. @click.stop="openScore(w)"
  4065. :class="{
  4066. rightW:
  4067. w.userid == userid ||
  4068. tType == 1 ||
  4069. tType == 4 ||
  4070. w.ateacher == userid,
  4071. }"
  4072. >
  4073. {{ JSON.parse(w.score).wScore }}分
  4074. </div>
  4075. <div
  4076. class="answerScore"
  4077. @click.stop="openScore(w)"
  4078. v-else-if="courseDetail.userid == userid"
  4079. :class="{
  4080. rightW:
  4081. w.userid == userid ||
  4082. tType == 1 ||
  4083. tType == 4 ||
  4084. w.ateacher == userid,
  4085. }"
  4086. >
  4087. 评分
  4088. </div>
  4089. <img
  4090. class="deleteImg"
  4091. src="../../assets/deleteworks.png"
  4092. v-if="
  4093. w.userid == userid || tType == 1 || tType == 4
  4094. "
  4095. @click.stop="deleteWorks(w.wid)"
  4096. alt
  4097. />
  4098. </div>
  4099. <div
  4100. class="workImg"
  4101. style="cursor: pointer"
  4102. v-if="w.type == 1"
  4103. >
  4104. <img :src="word" @click="openFile(w.works)" alt />
  4105. <!-- @click="openFile(w.works)" -->
  4106. <div
  4107. class="answerScore"
  4108. v-if="w.score"
  4109. @click.stop="openScore(w)"
  4110. :class="{
  4111. rightW:
  4112. w.userid == userid ||
  4113. tType == 1 ||
  4114. tType == 4 ||
  4115. w.ateacher == userid,
  4116. }"
  4117. >
  4118. {{ JSON.parse(w.score).wScore }}分
  4119. </div>
  4120. <div
  4121. class="answerScore"
  4122. @click.stop="openScore(w)"
  4123. v-else-if="courseDetail.userid == userid"
  4124. :class="{
  4125. rightW:
  4126. w.userid == userid ||
  4127. tType == 1 ||
  4128. tType == 4 ||
  4129. w.ateacher == userid,
  4130. }"
  4131. >
  4132. 评分
  4133. </div>
  4134. <img
  4135. class="deleteImg"
  4136. src="../../assets/deleteworks.png"
  4137. v-if="
  4138. w.userid == userid || tType == 1 || tType == 4
  4139. "
  4140. @click.stop="deleteWorks(w.wid)"
  4141. alt
  4142. />
  4143. </div>
  4144. <div class="workImg" v-if="w.type == 3">
  4145. <img
  4146. style="cursor: pointer"
  4147. :src="video"
  4148. @click="openVideo(w)"
  4149. alt
  4150. />
  4151. <!-- @click="openVideo(w.works)" -->
  4152. <div
  4153. class="answerScore"
  4154. v-if="w.score"
  4155. @click.stop="openScore(w)"
  4156. :class="{
  4157. rightW:
  4158. w.userid == userid ||
  4159. tType == 1 ||
  4160. tType == 4 ||
  4161. w.ateacher == userid,
  4162. }"
  4163. >
  4164. {{ JSON.parse(w.score).wScore }}分
  4165. </div>
  4166. <div
  4167. class="answerScore"
  4168. @click.stop="openScore(w)"
  4169. v-else-if="courseDetail.userid == userid"
  4170. :class="{
  4171. rightW:
  4172. w.userid == userid ||
  4173. tType == 1 ||
  4174. tType == 4 ||
  4175. w.ateacher == userid,
  4176. }"
  4177. >
  4178. 评分
  4179. </div>
  4180. <img
  4181. class="deleteImg"
  4182. src="../../assets/deleteworks.png"
  4183. v-if="
  4184. w.userid == userid || tType == 1 || tType == 4
  4185. "
  4186. @click.stop="deleteWorks(w.wid)"
  4187. alt
  4188. />
  4189. </div>
  4190. <div class="comment" style="min-width: 200px">
  4191. <div class="worksName">
  4192. <div
  4193. style="cursor: pointer"
  4194. @click="
  4195. openSname(w.sName, w.wid, toolIndex, w.userid)
  4196. "
  4197. >
  4198. {{ w.sName }}
  4199. </div>
  4200. </div>
  4201. <div class="commentList">
  4202. <div class="commentList">
  4203. <div
  4204. class="commentImg"
  4205. @click="
  4206. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4207. "
  4208. >
  4209. <img
  4210. :src="w.isLikes == true ? likes : noLikes"
  4211. alt=""
  4212. />
  4213. </div>
  4214. <div>{{ w.likesCount }}</div>
  4215. </div>
  4216. <div class="commentList" style="margin-right: 15px">
  4217. <div
  4218. class="commentImg"
  4219. @click="commentOther(w, toolIndex, wIndex)"
  4220. >
  4221. <img
  4222. src="../../assets/icon/comment/comment.png"
  4223. alt=""
  4224. />
  4225. </div>
  4226. <div>{{ w.commentCount }}</div>
  4227. </div>
  4228. </div>
  4229. </div>
  4230. </div>
  4231. </div>
  4232. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4233. 未提交
  4234. </div>
  4235. <div
  4236. class="noWorksS"
  4237. v-if="noWorksS && noWorksS[toolIndex].length"
  4238. >
  4239. <div
  4240. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4241. :key="sIndex"
  4242. class="noWorksName"
  4243. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  4244. >
  4245. <el-tooltip effect="dark" :content="s.student" placement="top">
  4246. <span>{{ s.student }}</span>
  4247. </el-tooltip>
  4248. </div>
  4249. </div>
  4250. </div>
  4251. <div
  4252. v-if="
  4253. tType &&
  4254. ((tType == 2 && sIsOpen == true) ||
  4255. tType == 1 ||
  4256. tType == 4) &&
  4257. tool.tool.indexOf(4) != -1 &&
  4258. (tool.askJson[0].answer ||
  4259. tool.askJson[0].answer === 0) &&
  4260. checkJson[toolIndex].length
  4261. "
  4262. class="xuan_right_box"
  4263. >
  4264. <div
  4265. class="tool_right_box"
  4266. v-for="(item, index) in tool.askJson"
  4267. :key="index"
  4268. >
  4269. <div style="width: calc(100% - 30px);">
  4270. <el-tooltip
  4271. effect="light"
  4272. :content="index + 1 + '、' + item.askstitle"
  4273. placement="top"
  4274. popper-class="text_tooltip"
  4275. >
  4276. <div
  4277. style="
  4278. width: calc(100% - 130px);
  4279. display: block;
  4280. white-space: nowrap;
  4281. overflow: hidden;
  4282. text-overflow: ellipsis;
  4283. word-break: break-word;
  4284. cursor: pointer;
  4285. "
  4286. >
  4287. {{ index + 1 + "、" + item.askstitle }}
  4288. </div>
  4289. </el-tooltip>
  4290. </div>
  4291. <div class="right_box_xuan">
  4292. <span>正确率</span>
  4293. <span>{{
  4294. (checkJson[toolIndex][index].right
  4295. ? checkJson[toolIndex][index].right
  4296. : 0) + "%"
  4297. }}</span>
  4298. </div>
  4299. </div>
  4300. </div>
  4301. <div
  4302. class="xuan_right_box"
  4303. style="background: unset; padding: 0 10px"
  4304. v-if="
  4305. tType &&
  4306. ((tType == 2 && sIsOpen == true) ||
  4307. tType == 1 ||
  4308. tType == 4) &&
  4309. tool.tool.indexOf(4) != -1
  4310. "
  4311. >
  4312. <AskStatic
  4313. v-if="
  4314. worksStudent.length &&
  4315. worksStudent[toolIndex].length > 0
  4316. "
  4317. :askJSON="tool"
  4318. :checkJson="checkJson[toolIndex]"
  4319. ></AskStatic>
  4320. </div>
  4321. <div
  4322. v-if="
  4323. tType &&
  4324. ((tType == 2 && sIsOpen == true) ||
  4325. tType == 1 ||
  4326. tType == 4) &&
  4327. tool.tool.indexOf(4) != -1
  4328. "
  4329. class="worksBox"
  4330. >
  4331. <div
  4332. class="zuoyeYulan"
  4333. v-if="
  4334. worksStudent.length &&
  4335. worksStudent[toolIndex].length > 0
  4336. "
  4337. >
  4338. <div class="worksTop">
  4339. <div>作业预览</div>
  4340. <div
  4341. class="corOpen"
  4342. @click="contract(toolIndex)"
  4343. v-if="
  4344. (isCloseList[toolIndex].isCloseBoolean) &&
  4345. isCloseList[toolIndex].isClose == 0
  4346. "
  4347. >
  4348. 折叠
  4349. </div>
  4350. <div
  4351. class="corOpen"
  4352. @click="contract(toolIndex)"
  4353. v-if="isCloseList[toolIndex].isClose == 1"
  4354. >
  4355. 展开
  4356. </div>
  4357. </div>
  4358. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4359. </div>
  4360. <div>
  4361. <div
  4362. :id="'tool-' + toolIndex"
  4363. :style="{
  4364. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4365. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4366. }"
  4367. class="worksDetailBox"
  4368. v-if="
  4369. worksStudent.length &&
  4370. worksStudent[toolIndex].length > 0
  4371. "
  4372. >
  4373. <div
  4374. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4375. :key="wIndex"
  4376. class="isWorksName2"
  4377. @click="
  4378. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4379. "
  4380. >
  4381. {{ w.sName }}
  4382. <img
  4383. class="deleteImg deleteImg2"
  4384. src="../../assets/deleteworks.png"
  4385. v-if="
  4386. w.userid == userid || tType == 1 || tType == 4
  4387. "
  4388. @click.stop="deleteWorks(w.wid)"
  4389. alt
  4390. />
  4391. </div>
  4392. <!-- <div class="works" style="
  4393. width: 200px;
  4394. height: 140px;
  4395. border-radius: 10px;
  4396. box-shadow: 0 0 6px 1px #dfdada;
  4397. overflow: hidden;
  4398. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  4399. <div class="workImg">
  4400. <img src="../../assets/icon/works/noImg.png" @click="
  4401. openTools(
  4402. 4,
  4403. toolIndex,
  4404. taskCount,
  4405. w.works,
  4406. w.sName
  4407. )
  4408. " alt />
  4409. </div>
  4410. <div class="worksName">
  4411. <div>{{ w.sName }}</div>
  4412. <div>{{ w.time }}</div>
  4413. </div>
  4414. </div> -->
  4415. </div>
  4416. </div>
  4417. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4418. 未提交
  4419. </div>
  4420. <div
  4421. class="noWorksS"
  4422. v-if="noWorksS && noWorksS[toolIndex].length"
  4423. >
  4424. <div
  4425. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4426. :key="sIndex"
  4427. class="noWorksName"
  4428. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4429. >
  4430. <el-tooltip effect="dark" :content="s.student" placement="top">
  4431. <span>{{ s.student }}</span>
  4432. </el-tooltip>
  4433. </div>
  4434. </div>
  4435. </div>
  4436. <div
  4437. v-if="
  4438. tType &&
  4439. ((tType == 2 && sIsOpen == true) ||
  4440. tType == 1 ||
  4441. tType == 4) &&
  4442. tool.tool.indexOf(45) != -1 &&
  4443. (tool.testJson.testJson[0].answer ||
  4444. tool.testJson.testJson[0].answer === 0) &&
  4445. checkJson[toolIndex].length
  4446. "
  4447. class="xuan_right_box"
  4448. >
  4449. <div
  4450. class="tool_right_box"
  4451. v-for="(item, index) in tool.testJson.testJson"
  4452. :key="index"
  4453. >
  4454. <div class="right_box_xuan" style="margin-right: 10px">
  4455. <span>正确率</span>
  4456. <span>{{
  4457. (checkJson[toolIndex][index].right
  4458. ? checkJson[toolIndex][index].right
  4459. : 0) + "%"
  4460. }}</span>
  4461. </div>
  4462. <div style="width: calc(100% - 30px);">
  4463. <el-tooltip
  4464. effect="light"
  4465. :content="index + 1 + '、' + item.teststitle"
  4466. placement="top"
  4467. popper-class="text_tooltip"
  4468. >
  4469. <div
  4470. style="
  4471. width: calc(100% - 130px);
  4472. display: flex;
  4473. white-space: nowrap;
  4474. overflow: hidden;
  4475. text-overflow: ellipsis;
  4476. word-break: break-word;
  4477. cursor: pointer;
  4478. "
  4479. class="renderedFor"
  4480. >
  4481. {{ index + 1 + "、" }} <span v-html="renderedFormula(item.teststitle)"></span>
  4482. </div>
  4483. </el-tooltip>
  4484. </div>
  4485. </div>
  4486. </div>
  4487. <div
  4488. class="xuan_right_box"
  4489. style="background: unset; padding: 0 10px; width: 91.5%"
  4490. v-if="
  4491. tType &&
  4492. ((tType == 2 && sIsOpen == true) ||
  4493. tType == 1 ||
  4494. tType == 4) &&
  4495. tool.tool.indexOf(45) != -1
  4496. "
  4497. >
  4498. <AskStatic2
  4499. v-if="
  4500. worksStudent.length &&
  4501. worksStudent[toolIndex].length > 0
  4502. "
  4503. :askJSON="tool"
  4504. :checkJson="checkJson[toolIndex]"
  4505. ></AskStatic2>
  4506. </div>
  4507. <div
  4508. v-if="
  4509. tType &&
  4510. ((tType == 2 && sIsOpen == true) ||
  4511. tType == 1 ||
  4512. tType == 4) &&
  4513. tool.tool.indexOf(45) != -1
  4514. "
  4515. class="worksBox"
  4516. >
  4517. <div
  4518. class="zuoyeYulan"
  4519. v-if="
  4520. worksStudent.length &&
  4521. worksStudent[toolIndex].length > 0
  4522. "
  4523. >
  4524. <div class="worksTop">
  4525. <div>作业预览</div>
  4526. <div
  4527. class="corOpen"
  4528. @click="contract(toolIndex)"
  4529. v-if="
  4530. (isCloseList[toolIndex].isCloseBoolean) &&
  4531. isCloseList[toolIndex].isClose == 0
  4532. "
  4533. >
  4534. 折叠
  4535. </div>
  4536. <div
  4537. class="corOpen"
  4538. @click="contract(toolIndex)"
  4539. v-if="isCloseList[toolIndex].isClose == 1"
  4540. >
  4541. 展开
  4542. </div>
  4543. </div>
  4544. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4545. </div>
  4546. <div>
  4547. <div
  4548. :id="'tool-' + toolIndex"
  4549. :style="{
  4550. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4551. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4552. }"
  4553. class="worksDetailBox"
  4554. v-if="
  4555. worksStudent.length &&
  4556. worksStudent[toolIndex].length > 0
  4557. "
  4558. >
  4559. <div
  4560. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4561. :key="wIndex"
  4562. class="isWorksName2"
  4563. @click="
  4564. openTools(
  4565. 45,
  4566. toolIndex,
  4567. taskCount,
  4568. w.works,
  4569. w.sName
  4570. )
  4571. "
  4572. >
  4573. {{ w.sName }}
  4574. <img
  4575. class="deleteImg deleteImg2"
  4576. src="../../assets/deleteworks.png"
  4577. v-if="
  4578. w.userid == userid || tType == 1 || tType == 4
  4579. "
  4580. @click.stop="deleteWorks(w.wid)"
  4581. alt
  4582. />
  4583. </div>
  4584. </div>
  4585. </div>
  4586. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4587. 未提交
  4588. </div>
  4589. <div
  4590. class="noWorksS"
  4591. v-if="noWorksS && noWorksS[toolIndex].length"
  4592. >
  4593. <div
  4594. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4595. :key="sIndex"
  4596. class="noWorksName"
  4597. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4598. >
  4599. <el-tooltip effect="dark" :content="s.student" placement="top">
  4600. <span>{{ s.student }}</span>
  4601. </el-tooltip>
  4602. </div>
  4603. </div>
  4604. </div>
  4605. <div
  4606. v-if="
  4607. tType &&
  4608. ((tType == 2 && sIsOpen == true) ||
  4609. tType == 1 ||
  4610. tType == 4) &&
  4611. tool.tool.indexOf(69) != -1
  4612. "
  4613. class="worksBox"
  4614. >
  4615. <div
  4616. class="zuoyeYulan"
  4617. v-if="
  4618. worksStudent.length &&
  4619. worksStudent[toolIndex].length > 0
  4620. "
  4621. >
  4622. <div class="worksTop">
  4623. <div>作业预览</div>
  4624. <div
  4625. class="corOpen"
  4626. @click="contract(toolIndex)"
  4627. v-if="
  4628. (isCloseList[toolIndex].isCloseBoolean) &&
  4629. isCloseList[toolIndex].isClose == 0
  4630. "
  4631. >
  4632. 折叠
  4633. </div>
  4634. <div
  4635. class="corOpen"
  4636. @click="contract(toolIndex)"
  4637. v-if="isCloseList[toolIndex].isClose == 1"
  4638. >
  4639. 展开
  4640. </div>
  4641. </div>
  4642. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4643. </div>
  4644. <div>
  4645. <div
  4646. :id="'tool-' + toolIndex"
  4647. :style="{
  4648. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4649. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4650. }"
  4651. class="worksDetailBox"
  4652. v-if="
  4653. worksStudent.length &&
  4654. worksStudent[toolIndex].length > 0
  4655. "
  4656. >
  4657. <div
  4658. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4659. :key="wIndex"
  4660. class="isWorksName2"
  4661. style="width: 160px;height: 65px;line-height: 65px;"
  4662. @click="
  4663. openTools(
  4664. 69,
  4665. toolIndex,
  4666. taskCount,
  4667. w.works,
  4668. w.sName,
  4669. w.wid
  4670. )
  4671. "
  4672. >
  4673. {{ w.sName }}
  4674. <img
  4675. class="deleteImg1"
  4676. src="../../assets/evaEnglish.png"
  4677. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4678. alt
  4679. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4680. />
  4681. <img
  4682. class="deleteImg deleteImg2"
  4683. src="../../assets/deleteworks.png"
  4684. v-if="
  4685. w.userid == userid || tType == 1 || tType == 4
  4686. "
  4687. @click.stop="deleteWorks(w.wid)"
  4688. alt
  4689. />
  4690. </div>
  4691. </div>
  4692. </div>
  4693. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4694. 未提交
  4695. </div>
  4696. <div
  4697. class="noWorksS"
  4698. v-if="noWorksS && noWorksS[toolIndex].length"
  4699. >
  4700. <div
  4701. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4702. :key="sIndex"
  4703. class="noWorksName"
  4704. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4705. >
  4706. <el-tooltip effect="dark" :content="s.student" placement="top">
  4707. <span>{{ s.student }}</span>
  4708. </el-tooltip>
  4709. </div>
  4710. </div>
  4711. </div>
  4712. <div
  4713. v-if="
  4714. tType &&
  4715. ((tType == 2 && sIsOpen == true) ||
  4716. tType == 1 ||
  4717. tType == 4) &&
  4718. tool.tool.indexOf(15) != -1
  4719. "
  4720. class="worksBox"
  4721. >
  4722. <div
  4723. class="zuoyeYulan"
  4724. v-if="
  4725. (worksStudent.length &&
  4726. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4727. "
  4728. >
  4729. <div class="worksTop">
  4730. <div>作业预览</div>
  4731. <div
  4732. class="corOpen"
  4733. @click="contract(toolIndex)"
  4734. v-if="
  4735. (isCloseList[toolIndex].isCloseBoolean) &&
  4736. isCloseList[toolIndex].isClose == 0
  4737. "
  4738. >
  4739. 折叠
  4740. </div>
  4741. <div
  4742. class="corOpen"
  4743. @click="contract(toolIndex)"
  4744. v-if="isCloseList[toolIndex].isClose == 1"
  4745. >
  4746. 展开
  4747. </div>
  4748. </div>
  4749. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4750. </div>
  4751. <div
  4752. class="group_workBox"
  4753. v-for="(g, gindex) in courseGroup.group"
  4754. :key="gindex"
  4755. >
  4756. <div class="group_box">
  4757. <div class="group_title">
  4758. <el-tooltip
  4759. class="item"
  4760. effect="light"
  4761. :content="g.name"
  4762. placement="top"
  4763. >
  4764. <div class="group_name">{{ g.name }}</div>
  4765. </el-tooltip>
  4766. </div>
  4767. <div
  4768. class="group_work"
  4769. v-if="
  4770. g.works &&
  4771. g.works.length &&
  4772. g.works[toolIndex].length
  4773. "
  4774. >
  4775. <div
  4776. class="works"
  4777. v-for="(w, wIndex) in g.works[toolIndex]"
  4778. :key="wIndex"
  4779. >
  4780. <div
  4781. class="workImg"
  4782. style="
  4783. border-radius: 15px;
  4784. box-shadow: 0px 0px 5px 5px #eee;
  4785. "
  4786. >
  4787. <div
  4788. class="answerBg"
  4789. style="border-radius: 15px 15px 0 0"
  4790. @click="
  4791. commentOther(w, toolIndex, wIndex, null, g.id)
  4792. "
  4793. >
  4794. <div class="answerContent">
  4795. {{ JSON.parse(w.works)[0].answer }}
  4796. </div>
  4797. <div
  4798. class="answerScore"
  4799. v-if="w.score"
  4800. @click.stop="openScore(w)"
  4801. :class="{
  4802. rightW:
  4803. w.userid == userid ||
  4804. tType == 1 ||
  4805. tType == 4,
  4806. }"
  4807. >
  4808. {{ JSON.parse(w.score).wScore }}分
  4809. </div>
  4810. <div
  4811. class="answerScore"
  4812. @click.stop="openScore(w)"
  4813. v-else-if="courseDetail.userid == userid"
  4814. :class="{
  4815. rightW:
  4816. w.userid == userid ||
  4817. tType == 1 ||
  4818. tType == 4,
  4819. }"
  4820. >
  4821. 评分
  4822. </div>
  4823. <img
  4824. class="deleteImg"
  4825. src="../../assets/deleteworks.png"
  4826. v-if="
  4827. w.userid == userid ||
  4828. tType == 1 ||
  4829. tType == 4
  4830. "
  4831. @click.stop="deleteWorks(w.wid)"
  4832. alt
  4833. />
  4834. </div>
  4835. <div class="comment">
  4836. <div class="worksName">
  4837. <div>{{ w.sName }}</div>
  4838. </div>
  4839. <div class="commentList">
  4840. <div
  4841. class="commentImg"
  4842. @click="
  4843. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4844. "
  4845. >
  4846. <img
  4847. :src="w.isLikes == true ? likes : noLikes"
  4848. alt=""
  4849. />
  4850. </div>
  4851. <div>{{ w.likesCount }}</div>
  4852. </div>
  4853. <div
  4854. class="commentList"
  4855. style="margin-right: 15px"
  4856. >
  4857. <div
  4858. class="commentImg"
  4859. @click="
  4860. commentOther(
  4861. w,
  4862. toolIndex,
  4863. wIndex,
  4864. null,
  4865. g.id
  4866. )
  4867. "
  4868. >
  4869. <img
  4870. src="../../assets/icon/comment/comment.png"
  4871. alt=""
  4872. />
  4873. </div>
  4874. <div>{{ w.commentCount }}</div>
  4875. </div>
  4876. </div>
  4877. </div>
  4878. </div>
  4879. </div>
  4880. <div class="group_work" v-else>暂无提交作业</div>
  4881. </div>
  4882. </div>
  4883. <div
  4884. :id="'tool-' + toolIndex"
  4885. :style="{
  4886. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4887. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4888. }"
  4889. class="worksDetailBox"
  4890. v-if="
  4891. worksStudent.length &&
  4892. worksStudent[toolIndex].length > 0
  4893. "
  4894. >
  4895. <div
  4896. class="works"
  4897. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4898. :key="wIndex"
  4899. >
  4900. <div
  4901. class="workImg"
  4902. style="
  4903. border-radius: 15px;
  4904. box-shadow: 0px 0px 5px 5px #eee;
  4905. "
  4906. >
  4907. <!-- <img
  4908. src="../../assets/icon/works/noImg.png"
  4909. @click="openTools(15, toolIndex, taskCount, w.works)"
  4910. alt=""
  4911. />-->
  4912. <div
  4913. class="answerBg"
  4914. style="border-radius: 15px 15px 0 0"
  4915. @click="commentOther(w, toolIndex, wIndex)"
  4916. >
  4917. <!-- <div>{{ w.sName }}</div> -->
  4918. <div class="answerContent">
  4919. {{ JSON.parse(w.works)[0].answer }}
  4920. </div>
  4921. <div
  4922. class="answerScore"
  4923. v-if="w.score"
  4924. @click.stop="openScore(w)"
  4925. :class="{
  4926. rightW:
  4927. w.userid == userid ||
  4928. tType == 1 ||
  4929. tType == 4,
  4930. }"
  4931. >
  4932. {{ JSON.parse(w.score).wScore }}分
  4933. </div>
  4934. <div
  4935. class="answerScore"
  4936. @click.stop="openScore(w)"
  4937. v-else-if="courseDetail.userid == userid"
  4938. :class="{
  4939. rightW:
  4940. w.userid == userid ||
  4941. tType == 1 ||
  4942. tType == 4,
  4943. }"
  4944. >
  4945. 评分
  4946. </div>
  4947. <img
  4948. class="deleteImg"
  4949. src="../../assets/deleteworks.png"
  4950. v-if="
  4951. w.userid == userid || tType == 1 || tType == 4
  4952. "
  4953. @click.stop="deleteWorks(w.wid)"
  4954. alt
  4955. />
  4956. </div>
  4957. <div class="comment">
  4958. <div class="worksName">
  4959. <div>{{ w.sName }}</div>
  4960. </div>
  4961. <div class="commentList">
  4962. <div
  4963. class="commentImg"
  4964. @click="
  4965. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4966. "
  4967. >
  4968. <img
  4969. :src="w.isLikes == true ? likes : noLikes"
  4970. alt=""
  4971. />
  4972. </div>
  4973. <div>{{ w.likesCount }}</div>
  4974. </div>
  4975. <div class="commentList" style="margin-right: 15px">
  4976. <div
  4977. class="commentImg"
  4978. @click="commentOther(w, toolIndex, wIndex)"
  4979. >
  4980. <img
  4981. src="../../assets/icon/comment/comment.png"
  4982. alt=""
  4983. />
  4984. </div>
  4985. <div>{{ w.commentCount }}</div>
  4986. </div>
  4987. </div>
  4988. </div>
  4989. </div>
  4990. </div>
  4991. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4992. 未提交
  4993. </div>
  4994. <div
  4995. class="noWorksS"
  4996. v-if="noWorksS && noWorksS[toolIndex].length"
  4997. >
  4998. <div
  4999. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5000. :key="sIndex"
  5001. class="noWorksName"
  5002. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  5003. >
  5004. <el-tooltip effect="dark" :content="s.student" placement="top">
  5005. <span>{{ s.student }}</span>
  5006. </el-tooltip>
  5007. </div>
  5008. </div>
  5009. </div>
  5010. <div
  5011. v-if="
  5012. tType &&
  5013. ((tType == 2 && sIsOpen == true) ||
  5014. tType == 1 ||
  5015. tType == 4) &&
  5016. tool.tool.indexOf(1) != -1
  5017. "
  5018. class="worksBox"
  5019. >
  5020. <div
  5021. class="zuoyeYulan"
  5022. v-if="
  5023. (worksStudent.length &&
  5024. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5025. "
  5026. >
  5027. <div class="worksTop">
  5028. <div>作业预览</div>
  5029. <div
  5030. class="corOpen"
  5031. @click="contract(toolIndex)"
  5032. v-if="
  5033. (isCloseList[toolIndex].isCloseBoolean) &&
  5034. isCloseList[toolIndex].isClose == 0
  5035. "
  5036. >
  5037. 折叠
  5038. </div>
  5039. <div
  5040. class="corOpen"
  5041. @click="contract(toolIndex)"
  5042. v-if="isCloseList[toolIndex].isClose == 1"
  5043. >
  5044. 展开
  5045. </div>
  5046. </div>
  5047. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5048. </div>
  5049. <div
  5050. class="group_workBox"
  5051. v-for="(g, gindex) in courseGroup.group"
  5052. :key="gindex"
  5053. >
  5054. <div class="group_box">
  5055. <div class="group_title">
  5056. <el-tooltip
  5057. class="item"
  5058. effect="light"
  5059. :content="g.name"
  5060. placement="top"
  5061. >
  5062. <div class="group_name">{{ g.name }}</div>
  5063. </el-tooltip>
  5064. </div>
  5065. <div
  5066. class="group_work"
  5067. v-if="
  5068. g.works &&
  5069. g.works.length &&
  5070. g.works[toolIndex].length
  5071. "
  5072. >
  5073. <div
  5074. class="works"
  5075. style="
  5076. width: 200px;
  5077. height: 140px;
  5078. margin: 10px 10px 10px 0;
  5079. border-radius: 15px;
  5080. box-shadow: 0 0 6px 1px #dfdada;
  5081. "
  5082. v-for="(w, wIndex) in g.works[toolIndex]"
  5083. :key="wIndex"
  5084. :class="w.type == 1 ? 'isTypeOne' : ''"
  5085. >
  5086. <div class="workImg">
  5087. <img
  5088. :src="w.works"
  5089. @click="previewImg(w.works,w)"
  5090. alt
  5091. />
  5092. <div
  5093. class="answerScore"
  5094. v-if="w.score"
  5095. @click.stop="openScore(w)"
  5096. :class="{
  5097. rightW:
  5098. w.userid == userid ||
  5099. tType == 1 ||
  5100. tType == 4,
  5101. }"
  5102. >
  5103. {{ JSON.parse(w.score).wScore }}分
  5104. </div>
  5105. <div
  5106. class="answerScore"
  5107. @click.stop="openScore(w)"
  5108. v-else-if="courseDetail.userid == userid"
  5109. :class="{
  5110. rightW:
  5111. w.userid == userid ||
  5112. tType == 1 ||
  5113. tType == 4,
  5114. }"
  5115. >
  5116. 评分
  5117. </div>
  5118. <img
  5119. class="deleteImg"
  5120. src="../../assets/deleteworks.png"
  5121. v-if="
  5122. w.userid == userid || tType == 1 || tType == 4
  5123. "
  5124. @click.stop="deleteWorks(w.wid)"
  5125. alt
  5126. />
  5127. </div>
  5128. <div class="comment" style="min-width: 200px">
  5129. <div class="worksName">
  5130. <div>{{ w.sName }}</div>
  5131. </div>
  5132. <div class="commentList">
  5133. <div class="commentList">
  5134. <div
  5135. class="commentImg"
  5136. @click="
  5137. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5138. "
  5139. >
  5140. <img
  5141. :src="w.isLikes == true ? likes : noLikes"
  5142. alt=""
  5143. />
  5144. </div>
  5145. <div>{{ w.likesCount }}</div>
  5146. </div>
  5147. <div
  5148. class="commentList"
  5149. style="margin-right: 15px"
  5150. >
  5151. <div
  5152. class="commentImg"
  5153. @click="
  5154. commentOther(
  5155. w,
  5156. toolIndex,
  5157. wIndex,
  5158. null,
  5159. g.id
  5160. )
  5161. "
  5162. >
  5163. <img
  5164. src="../../assets/icon/comment/comment.png"
  5165. alt=""
  5166. />
  5167. </div>
  5168. <div>{{ w.commentCount }}</div>
  5169. </div>
  5170. </div>
  5171. </div>
  5172. </div>
  5173. </div>
  5174. <div class="group_work" v-else>暂无提交作业</div>
  5175. </div>
  5176. </div>
  5177. <div
  5178. :id="'tool-' + toolIndex"
  5179. :style="{
  5180. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5181. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5182. }"
  5183. class="worksDetailBox"
  5184. v-if="
  5185. worksStudent.length &&
  5186. worksStudent[toolIndex].length > 0
  5187. "
  5188. >
  5189. <div
  5190. class="works"
  5191. style="
  5192. width: 200px;
  5193. height: 140px;
  5194. margin: 10px 10px 10px 0;
  5195. border-radius: 15px;
  5196. box-shadow: 0 0 6px 1px #dfdada;
  5197. "
  5198. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5199. :key="wIndex"
  5200. >
  5201. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  5202. <div class="workImg">
  5203. <img
  5204. :src="w.works"
  5205. @click="previewImg(w.works,w)"
  5206. alt
  5207. />
  5208. <div
  5209. class="answerScore"
  5210. v-if="w.score"
  5211. @click.stop="openScore(w)"
  5212. :class="{
  5213. rightW:
  5214. w.userid == userid || tType == 1 || tType == 4,
  5215. }"
  5216. >
  5217. {{ JSON.parse(w.score).wScore }}分
  5218. </div>
  5219. <div
  5220. class="answerScore"
  5221. @click.stop="openScore(w)"
  5222. v-else-if="courseDetail.userid == userid"
  5223. :class="{
  5224. rightW:
  5225. w.userid == userid || tType == 1 || tType == 4,
  5226. }"
  5227. >
  5228. 评分
  5229. </div>
  5230. <img
  5231. class="deleteImg"
  5232. src="../../assets/deleteworks.png"
  5233. v-if="
  5234. w.userid == userid || tType == 1 || tType == 4
  5235. "
  5236. @click.stop="deleteWorks(w.wid)"
  5237. alt
  5238. />
  5239. </div>
  5240. <div class="comment" style="min-width: 200px">
  5241. <div class="worksName">
  5242. <div>{{ w.sName }}</div>
  5243. </div>
  5244. <div class="commentList">
  5245. <div class="commentList">
  5246. <div
  5247. class="commentImg"
  5248. @click="
  5249. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5250. "
  5251. >
  5252. <img
  5253. :src="w.isLikes == true ? likes : noLikes"
  5254. alt=""
  5255. />
  5256. </div>
  5257. <div>{{ w.likesCount }}</div>
  5258. </div>
  5259. <div class="commentList" style="margin-right: 15px">
  5260. <div
  5261. class="commentImg"
  5262. @click="commentOther(w, toolIndex, wIndex)"
  5263. >
  5264. <img
  5265. src="../../assets/icon/comment/comment.png"
  5266. alt=""
  5267. />
  5268. </div>
  5269. <div>{{ w.commentCount }}</div>
  5270. </div>
  5271. </div>
  5272. </div>
  5273. </div>
  5274. </div>
  5275. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5276. 未提交
  5277. </div>
  5278. <div
  5279. class="noWorksS"
  5280. v-if="noWorksS && noWorksS[toolIndex].length"
  5281. >
  5282. <div
  5283. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5284. :key="sIndex"
  5285. class="noWorksName"
  5286. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  5287. >
  5288. <el-tooltip effect="dark" :content="s.student" placement="top">
  5289. <span>{{ s.student }}</span>
  5290. </el-tooltip>
  5291. </div>
  5292. </div>
  5293. </div>
  5294. <div
  5295. v-if="
  5296. tType &&
  5297. ((tType == 2 && sIsOpen == true) ||
  5298. tType == 1 ||
  5299. tType == 4) &&
  5300. tool.tool.indexOf(3) != -1
  5301. "
  5302. class="worksBox"
  5303. >
  5304. <div
  5305. class="zuoyeYulan"
  5306. v-if="
  5307. (worksStudent.length &&
  5308. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5309. "
  5310. >
  5311. <div class="worksTop">
  5312. <div>作业预览</div>
  5313. <div
  5314. class="corOpen"
  5315. @click="contract(toolIndex)"
  5316. v-if="
  5317. (isCloseList[toolIndex].isCloseBoolean) &&
  5318. isCloseList[toolIndex].isClose == 0
  5319. "
  5320. >
  5321. 折叠
  5322. </div>
  5323. <div
  5324. class="corOpen"
  5325. @click="contract(toolIndex)"
  5326. v-if="isCloseList[toolIndex].isClose == 1"
  5327. >
  5328. 展开
  5329. </div>
  5330. </div>
  5331. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5332. </div>
  5333. <div
  5334. class="group_workBox"
  5335. v-for="(g, gindex) in courseGroup.group"
  5336. :key="gindex"
  5337. >
  5338. <div class="group_box">
  5339. <div class="group_title">
  5340. <el-tooltip
  5341. class="item"
  5342. effect="light"
  5343. :content="g.name"
  5344. placement="top"
  5345. >
  5346. <div class="group_name">{{ g.name }}</div>
  5347. </el-tooltip>
  5348. </div>
  5349. <div
  5350. class="group_work"
  5351. v-if="
  5352. g.works &&
  5353. g.works.length &&
  5354. g.works[toolIndex].length
  5355. "
  5356. >
  5357. <div
  5358. class="works"
  5359. style="
  5360. width: 200px;
  5361. height: 140px;
  5362. margin: 10px 10px 10px 0;
  5363. border-radius: 15px;
  5364. box-shadow: 0 0 6px 1px #dfdada;
  5365. "
  5366. v-for="(w, wIndex) in g.works[toolIndex]"
  5367. :key="wIndex"
  5368. :class="w.type == 1 ? 'isTypeOne' : ''"
  5369. >
  5370. <div class="workImg">
  5371. <img
  5372. :src="w.works"
  5373. @click="previewImg(w.works,w)"
  5374. alt
  5375. />
  5376. <div
  5377. class="answerScore"
  5378. v-if="w.score"
  5379. @click.stop="openScore(w)"
  5380. :class="{
  5381. rightW:
  5382. w.userid == userid ||
  5383. tType == 1 ||
  5384. tType == 4,
  5385. }"
  5386. >
  5387. {{ JSON.parse(w.score).wScore }}分
  5388. </div>
  5389. <div
  5390. class="answerScore"
  5391. @click.stop="openScore(w)"
  5392. v-else-if="courseDetail.userid == userid"
  5393. :class="{
  5394. rightW:
  5395. w.userid == userid ||
  5396. tType == 1 ||
  5397. tType == 4,
  5398. }"
  5399. >
  5400. 评分
  5401. </div>
  5402. <img
  5403. class="deleteImg"
  5404. src="../../assets/deleteworks.png"
  5405. v-if="
  5406. w.userid == userid || tType == 1 || tType == 4
  5407. "
  5408. @click.stop="deleteWorks(w.wid)"
  5409. alt
  5410. />
  5411. </div>
  5412. <div class="comment" style="min-width: 200px">
  5413. <div class="worksName">
  5414. <div>{{ w.sName }}</div>
  5415. </div>
  5416. <div class="commentList">
  5417. <div class="commentList">
  5418. <div
  5419. class="commentImg"
  5420. @click="
  5421. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5422. "
  5423. >
  5424. <img
  5425. :src="w.isLikes == true ? likes : noLikes"
  5426. alt=""
  5427. />
  5428. </div>
  5429. <div>{{ w.likesCount }}</div>
  5430. </div>
  5431. <div
  5432. class="commentList"
  5433. style="margin-right: 15px"
  5434. >
  5435. <div
  5436. class="commentImg"
  5437. @click="
  5438. commentOther(
  5439. w,
  5440. toolIndex,
  5441. wIndex,
  5442. null,
  5443. g.id
  5444. )
  5445. "
  5446. >
  5447. <img
  5448. src="../../assets/icon/comment/comment.png"
  5449. alt=""
  5450. />
  5451. </div>
  5452. <div>{{ w.commentCount }}</div>
  5453. </div>
  5454. </div>
  5455. </div>
  5456. </div>
  5457. </div>
  5458. <div class="group_work" v-else>暂无提交作业</div>
  5459. </div>
  5460. </div>
  5461. <div
  5462. :id="'tool-' + toolIndex"
  5463. :style="{
  5464. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5465. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5466. }"
  5467. class="worksDetailBox"
  5468. v-if="
  5469. worksStudent.length &&
  5470. worksStudent[toolIndex].length > 0
  5471. "
  5472. >
  5473. <div
  5474. class="works"
  5475. style="
  5476. width: 200px;
  5477. height: 140px;
  5478. margin: 10px 10px 10px 0;
  5479. border-radius: 15px;
  5480. box-shadow: 0 0 6px 1px #dfdada;
  5481. "
  5482. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5483. :key="wIndex"
  5484. >
  5485. <!-- @click="previewImg(w.works)" -->
  5486. <div class="workImg">
  5487. <img
  5488. :src="w.works"
  5489. @click="previewImg(w.works,w)"
  5490. alt
  5491. />
  5492. <div
  5493. class="answerScore"
  5494. v-if="w.score"
  5495. @click.stop="openScore(w)"
  5496. :class="{
  5497. rightW:
  5498. w.userid == userid || tType == 1 || tType == 4,
  5499. }"
  5500. >
  5501. {{ JSON.parse(w.score).wScore }}分
  5502. </div>
  5503. <div
  5504. class="answerScore"
  5505. @click.stop="openScore(w)"
  5506. v-else-if="courseDetail.userid == userid"
  5507. :class="{
  5508. rightW:
  5509. w.userid == userid || tType == 1 || tType == 4,
  5510. }"
  5511. >
  5512. 评分
  5513. </div>
  5514. <img
  5515. class="deleteImg"
  5516. src="../../assets/deleteworks.png"
  5517. v-if="
  5518. w.userid == userid || tType == 1 || tType == 4
  5519. "
  5520. @click.stop="deleteWorks(w.wid)"
  5521. alt
  5522. />
  5523. </div>
  5524. <div class="comment" style="min-width: 200px">
  5525. <div class="worksName">
  5526. <div>{{ w.sName }}</div>
  5527. </div>
  5528. <div class="commentList">
  5529. <div class="commentList">
  5530. <div
  5531. class="commentImg"
  5532. @click="
  5533. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5534. "
  5535. >
  5536. <img
  5537. :src="w.isLikes == true ? likes : noLikes"
  5538. alt=""
  5539. />
  5540. </div>
  5541. <div>{{ w.likesCount }}</div>
  5542. </div>
  5543. <div class="commentList" style="margin-right: 15px">
  5544. <div
  5545. class="commentImg"
  5546. @click="commentOther(w, toolIndex, wIndex)"
  5547. >
  5548. <img
  5549. src="../../assets/icon/comment/comment.png"
  5550. alt=""
  5551. />
  5552. </div>
  5553. <div>{{ w.commentCount }}</div>
  5554. </div>
  5555. </div>
  5556. </div>
  5557. </div>
  5558. </div>
  5559. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5560. 未提交
  5561. </div>
  5562. <div
  5563. class="noWorksS"
  5564. v-if="noWorksS && noWorksS[toolIndex].length"
  5565. >
  5566. <div
  5567. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5568. :key="sIndex"
  5569. class="noWorksName"
  5570. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5571. >
  5572. <el-tooltip effect="dark" :content="s.student" placement="top">
  5573. <span>{{ s.student }}</span>
  5574. </el-tooltip>
  5575. </div>
  5576. </div>
  5577. </div>
  5578. <div
  5579. v-if="
  5580. tType &&
  5581. ((tType == 2 && sIsOpen == true) ||
  5582. tType == 1 ||
  5583. tType == 4) &&
  5584. tool.tool.indexOf(6) != -1
  5585. "
  5586. class="worksBox"
  5587. >
  5588. <div
  5589. class="zuoyeYulan"
  5590. v-if="
  5591. (worksStudent.length &&
  5592. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5593. "
  5594. >
  5595. <div class="worksTop">
  5596. <div>作业预览</div>
  5597. <div
  5598. class="corOpen"
  5599. @click="contract(toolIndex)"
  5600. v-if="
  5601. (isCloseList[toolIndex].isCloseBoolean) &&
  5602. isCloseList[toolIndex].isClose == 0
  5603. "
  5604. >
  5605. 折叠
  5606. </div>
  5607. <div
  5608. class="corOpen"
  5609. @click="contract(toolIndex)"
  5610. v-if="isCloseList[toolIndex].isClose == 1"
  5611. >
  5612. 展开
  5613. </div>
  5614. </div>
  5615. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5616. </div>
  5617. <div
  5618. class="group_workBox"
  5619. v-for="(g, gindex) in courseGroup.group"
  5620. :key="gindex"
  5621. >
  5622. <div class="group_box">
  5623. <div class="group_title">
  5624. <el-tooltip
  5625. class="item"
  5626. effect="light"
  5627. :content="g.name"
  5628. placement="top"
  5629. >
  5630. <div class="group_name">{{ g.name }}</div>
  5631. </el-tooltip>
  5632. </div>
  5633. <div
  5634. class="group_work"
  5635. v-if="
  5636. g.works &&
  5637. g.works.length &&
  5638. g.works[toolIndex].length
  5639. "
  5640. >
  5641. <div
  5642. class="works"
  5643. style="
  5644. width: 200px;
  5645. height: 140px;
  5646. margin: 10px 10px 10px 0;
  5647. border-radius: 15px;
  5648. box-shadow: 0 0 6px 1px #dfdada;
  5649. "
  5650. v-for="(w, wIndex) in g.works[toolIndex]"
  5651. :key="wIndex"
  5652. :class="w.type == 1 ? 'isTypeOne' : ''"
  5653. >
  5654. <div class="workImg">
  5655. <img
  5656. :src="w.works"
  5657. @click="previewImg(w.works,w)"
  5658. alt
  5659. />
  5660. <div
  5661. class="answerScore"
  5662. v-if="w.score"
  5663. @click.stop="openScore(w)"
  5664. :class="{
  5665. rightW:
  5666. w.userid == userid ||
  5667. tType == 1 ||
  5668. tType == 4,
  5669. }"
  5670. >
  5671. {{ JSON.parse(w.score).wScore }}分
  5672. </div>
  5673. <div
  5674. class="answerScore"
  5675. @click.stop="openScore(w)"
  5676. v-else-if="courseDetail.userid == userid"
  5677. :class="{
  5678. rightW:
  5679. w.userid == userid ||
  5680. tType == 1 ||
  5681. tType == 4,
  5682. }"
  5683. >
  5684. 评分
  5685. </div>
  5686. <img
  5687. class="deleteImg"
  5688. src="../../assets/deleteworks.png"
  5689. v-if="
  5690. w.userid == userid || tType == 1 || tType == 4
  5691. "
  5692. @click.stop="deleteWorks(w.wid)"
  5693. alt
  5694. />
  5695. </div>
  5696. <div class="comment" style="min-width: 200px">
  5697. <div class="worksName">
  5698. <div>{{ w.sName }}</div>
  5699. </div>
  5700. <div class="commentList">
  5701. <div class="commentList">
  5702. <div
  5703. class="commentImg"
  5704. @click="
  5705. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5706. "
  5707. >
  5708. <img
  5709. :src="w.isLikes == true ? likes : noLikes"
  5710. alt=""
  5711. />
  5712. </div>
  5713. <div>{{ w.likesCount }}</div>
  5714. </div>
  5715. <div
  5716. class="commentList"
  5717. style="margin-right: 15px"
  5718. >
  5719. <div
  5720. class="commentImg"
  5721. @click="
  5722. commentOther(
  5723. w,
  5724. toolIndex,
  5725. wIndex,
  5726. null,
  5727. g.id
  5728. )
  5729. "
  5730. >
  5731. <img
  5732. src="../../assets/icon/comment/comment.png"
  5733. alt=""
  5734. />
  5735. </div>
  5736. <div>{{ w.commentCount }}</div>
  5737. </div>
  5738. </div>
  5739. </div>
  5740. </div>
  5741. </div>
  5742. <div class="group_work" v-else>暂无提交作业</div>
  5743. </div>
  5744. </div>
  5745. <div
  5746. :id="'tool-' + toolIndex"
  5747. :style="{
  5748. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5749. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5750. }"
  5751. class="worksDetailBox"
  5752. v-if="
  5753. worksStudent.length &&
  5754. worksStudent[toolIndex].length > 0
  5755. "
  5756. >
  5757. <div
  5758. class="works"
  5759. style="
  5760. width: 200px;
  5761. height: 140px;
  5762. margin: 10px 10px 10px 0;
  5763. border-radius: 15px;
  5764. box-shadow: 0 0 6px 1px #dfdada;
  5765. "
  5766. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5767. :key="wIndex"
  5768. >
  5769. <!-- @click="previewImg(w.works)" -->
  5770. <div class="workImg">
  5771. <img
  5772. :src="w.works"
  5773. @click="previewImg(w.works,w)"
  5774. alt
  5775. />
  5776. <div
  5777. class="answerScore"
  5778. v-if="w.score"
  5779. @click.stop="openScore(w)"
  5780. :class="{
  5781. rightW:
  5782. w.userid == userid || tType == 1 || tType == 4,
  5783. }"
  5784. >
  5785. {{ JSON.parse(w.score).wScore }}分
  5786. </div>
  5787. <div
  5788. class="answerScore"
  5789. @click.stop="openScore(w)"
  5790. v-else-if="courseDetail.userid == userid"
  5791. :class="{
  5792. rightW:
  5793. w.userid == userid || tType == 1 || tType == 4,
  5794. }"
  5795. >
  5796. 评分
  5797. </div>
  5798. <img
  5799. class="deleteImg"
  5800. src="../../assets/deleteworks.png"
  5801. v-if="
  5802. w.userid == userid || tType == 1 || tType == 4
  5803. "
  5804. @click.stop="deleteWorks(w.wid)"
  5805. alt
  5806. />
  5807. </div>
  5808. <div class="comment" style="min-width: 200px">
  5809. <div class="worksName">
  5810. <div>{{ w.sName }}</div>
  5811. </div>
  5812. <div class="commentList">
  5813. <div class="commentList">
  5814. <div
  5815. class="commentImg"
  5816. @click="
  5817. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5818. "
  5819. >
  5820. <img
  5821. :src="w.isLikes == true ? likes : noLikes"
  5822. alt=""
  5823. />
  5824. </div>
  5825. <div>{{ w.likesCount }}</div>
  5826. </div>
  5827. <div class="commentList" style="margin-right: 15px">
  5828. <div
  5829. class="commentImg"
  5830. @click="commentOther(w, toolIndex, wIndex)"
  5831. >
  5832. <img
  5833. src="../../assets/icon/comment/comment.png"
  5834. alt=""
  5835. />
  5836. </div>
  5837. <div>{{ w.commentCount }}</div>
  5838. </div>
  5839. </div>
  5840. </div>
  5841. </div>
  5842. </div>
  5843. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5844. 未提交
  5845. </div>
  5846. <div
  5847. class="noWorksS"
  5848. v-if="noWorksS && noWorksS[toolIndex].length"
  5849. >
  5850. <div
  5851. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5852. :key="sIndex"
  5853. class="noWorksName"
  5854. >
  5855. <el-tooltip effect="dark" :content="s.student" placement="top">
  5856. <span>{{ s.student }}</span>
  5857. </el-tooltip>
  5858. </div>
  5859. </div>
  5860. </div>
  5861. <div
  5862. v-if="
  5863. tType &&
  5864. ((tType == 2 && sIsOpen == true) ||
  5865. tType == 1 ||
  5866. tType == 4) &&
  5867. tool.tool.indexOf(7) != -1
  5868. "
  5869. class="worksBox"
  5870. >
  5871. <div
  5872. class="zuoyeYulan"
  5873. v-if="
  5874. (worksStudent.length &&
  5875. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5876. "
  5877. >
  5878. <div class="worksTop">
  5879. <div>作业预览</div>
  5880. <div
  5881. class="corOpen"
  5882. @click="contract(toolIndex)"
  5883. v-if="
  5884. (isCloseList[toolIndex].isCloseBoolean) &&
  5885. isCloseList[toolIndex].isClose == 0
  5886. "
  5887. >
  5888. 折叠
  5889. </div>
  5890. <div
  5891. class="corOpen"
  5892. @click="contract(toolIndex)"
  5893. v-if="isCloseList[toolIndex].isClose == 1"
  5894. >
  5895. 展开
  5896. </div>
  5897. </div>
  5898. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5899. </div>
  5900. <div
  5901. class="group_workBox"
  5902. v-for="(g, gindex) in courseGroup.group"
  5903. :key="gindex"
  5904. >
  5905. <div class="group_box">
  5906. <div class="group_title">
  5907. <el-tooltip
  5908. class="item"
  5909. effect="light"
  5910. :content="g.name"
  5911. placement="top"
  5912. >
  5913. <div class="group_name">{{ g.name }}</div>
  5914. </el-tooltip>
  5915. </div>
  5916. <div
  5917. class="group_work"
  5918. v-if="
  5919. g.works &&
  5920. g.works.length &&
  5921. g.works[toolIndex].length
  5922. "
  5923. >
  5924. <div
  5925. class="works"
  5926. style="
  5927. width: 200px;
  5928. height: 140px;
  5929. margin: 10px 10px 10px 0;
  5930. border-radius: 15px;
  5931. box-shadow: 0 0 6px 1px #dfdada;
  5932. "
  5933. v-for="(w, wIndex) in g.works[toolIndex]"
  5934. :key="wIndex"
  5935. :class="w.type == 1 ? 'isTypeOne' : ''"
  5936. >
  5937. <div class="workImg">
  5938. <img
  5939. :src="w.works"
  5940. @click="previewImg(w.works,w)"
  5941. alt
  5942. />
  5943. <div
  5944. class="answerScore"
  5945. v-if="w.score"
  5946. @click.stop="openScore(w)"
  5947. :class="{
  5948. rightW:
  5949. w.userid == userid ||
  5950. tType == 1 ||
  5951. tType == 4,
  5952. }"
  5953. >
  5954. {{ JSON.parse(w.score).wScore }}分
  5955. </div>
  5956. <div
  5957. class="answerScore"
  5958. @click.stop="openScore(w)"
  5959. v-else-if="courseDetail.userid == userid"
  5960. :class="{
  5961. rightW:
  5962. w.userid == userid ||
  5963. tType == 1 ||
  5964. tType == 4,
  5965. }"
  5966. >
  5967. 评分
  5968. </div>
  5969. <img
  5970. class="deleteImg"
  5971. src="../../assets/deleteworks.png"
  5972. v-if="
  5973. w.userid == userid || tType == 1 || tType == 4
  5974. "
  5975. @click.stop="deleteWorks(w.wid)"
  5976. alt
  5977. />
  5978. </div>
  5979. <div class="comment" style="min-width: 200px">
  5980. <div class="worksName">
  5981. <div>{{ w.sName }}</div>
  5982. </div>
  5983. <div class="commentList">
  5984. <div class="commentList">
  5985. <div
  5986. class="commentImg"
  5987. @click="
  5988. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5989. "
  5990. >
  5991. <img
  5992. :src="w.isLikes == true ? likes : noLikes"
  5993. alt=""
  5994. />
  5995. </div>
  5996. <div>{{ w.likesCount }}</div>
  5997. </div>
  5998. <div
  5999. class="commentList"
  6000. style="margin-right: 15px"
  6001. >
  6002. <div
  6003. class="commentImg"
  6004. @click="
  6005. commentOther(
  6006. w,
  6007. toolIndex,
  6008. wIndex,
  6009. null,
  6010. g.id
  6011. )
  6012. "
  6013. >
  6014. <img
  6015. src="../../assets/icon/comment/comment.png"
  6016. alt=""
  6017. />
  6018. </div>
  6019. <div>{{ w.commentCount }}</div>
  6020. </div>
  6021. </div>
  6022. </div>
  6023. </div>
  6024. </div>
  6025. <div class="group_work" v-else>暂无提交作业</div>
  6026. </div>
  6027. </div>
  6028. <div
  6029. :id="'tool-' + toolIndex"
  6030. :style="{
  6031. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6032. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6033. }"
  6034. class="worksDetailBox"
  6035. v-if="
  6036. worksStudent.length &&
  6037. worksStudent[toolIndex].length > 0
  6038. "
  6039. >
  6040. <div
  6041. class="works"
  6042. style="
  6043. width: 200px;
  6044. height: 140px;
  6045. margin: 10px 10px 10px 0;
  6046. border-radius: 15px;
  6047. box-shadow: 0 0 6px 1px #dfdada;
  6048. "
  6049. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6050. :key="wIndex"
  6051. >
  6052. <!-- @click="previewImg(w.works)" -->
  6053. <div class="workImg">
  6054. <img
  6055. :src="w.works"
  6056. @click="previewImg(w.works,w)"
  6057. alt
  6058. />
  6059. <div
  6060. class="answerScore"
  6061. v-if="w.score"
  6062. @click.stop="openScore(w)"
  6063. :class="{
  6064. rightW:
  6065. w.userid == userid || tType == 1 || tType == 4,
  6066. }"
  6067. >
  6068. {{ JSON.parse(w.score).wScore }}分
  6069. </div>
  6070. <div
  6071. class="answerScore"
  6072. @click.stop="openScore(w)"
  6073. v-else-if="courseDetail.userid == userid"
  6074. :class="{
  6075. rightW:
  6076. w.userid == userid || tType == 1 || tType == 4,
  6077. }"
  6078. >
  6079. 评分
  6080. </div>
  6081. <img
  6082. class="deleteImg"
  6083. src="../../assets/deleteworks.png"
  6084. v-if="
  6085. w.userid == userid || tType == 1 || tType == 4
  6086. "
  6087. @click.stop="deleteWorks(w.wid)"
  6088. alt
  6089. />
  6090. </div>
  6091. <div class="comment" style="min-width: 200px">
  6092. <div class="worksName">
  6093. <div>{{ w.sName }}</div>
  6094. </div>
  6095. <div class="commentList">
  6096. <div class="commentList">
  6097. <div
  6098. class="commentImg"
  6099. @click="
  6100. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6101. "
  6102. >
  6103. <img
  6104. :src="w.isLikes == true ? likes : noLikes"
  6105. alt=""
  6106. />
  6107. </div>
  6108. <div>{{ w.likesCount }}</div>
  6109. </div>
  6110. <div class="commentList" style="margin-right: 15px">
  6111. <div
  6112. class="commentImg"
  6113. @click="commentOther(w, toolIndex, wIndex)"
  6114. >
  6115. <img
  6116. src="../../assets/icon/comment/comment.png"
  6117. alt=""
  6118. />
  6119. </div>
  6120. <div>{{ w.commentCount }}</div>
  6121. </div>
  6122. </div>
  6123. </div>
  6124. </div>
  6125. </div>
  6126. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6127. 未提交
  6128. </div>
  6129. <div
  6130. class="noWorksS"
  6131. v-if="noWorksS && noWorksS[toolIndex].length"
  6132. >
  6133. <div
  6134. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6135. :key="sIndex"
  6136. class="noWorksName"
  6137. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  6138. >
  6139. <el-tooltip effect="dark" :content="s.student" placement="top">
  6140. <span>{{ s.student }}</span>
  6141. </el-tooltip>
  6142. </div>
  6143. </div>
  6144. </div>
  6145. <div
  6146. v-if="
  6147. tType &&
  6148. ((tType == 2 && sIsOpen == true) ||
  6149. tType == 1 ||
  6150. tType == 4) &&
  6151. tool.tool.indexOf(26) != -1
  6152. "
  6153. class="worksBox"
  6154. >
  6155. <div
  6156. class="zuoyeYulan"
  6157. v-if="
  6158. worksStudent.length &&
  6159. worksStudent[toolIndex].length > 0
  6160. "
  6161. >
  6162. <div class="worksTop">
  6163. <div>作业预览</div>
  6164. <div
  6165. class="corOpen"
  6166. @click="contract(toolIndex)"
  6167. v-if="
  6168. (isCloseList[toolIndex].isCloseBoolean) &&
  6169. isCloseList[toolIndex].isClose == 0
  6170. "
  6171. >
  6172. 折叠
  6173. </div>
  6174. <div
  6175. class="corOpen"
  6176. @click="contract(toolIndex)"
  6177. v-if="isCloseList[toolIndex].isClose == 1"
  6178. >
  6179. 展开
  6180. </div>
  6181. </div>
  6182. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6183. </div>
  6184. <div
  6185. :id="'tool-' + toolIndex"
  6186. :style="{
  6187. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6188. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6189. }"
  6190. class="worksDetailBox"
  6191. v-if="
  6192. worksStudent.length &&
  6193. worksStudent[toolIndex].length > 0
  6194. "
  6195. >
  6196. <div
  6197. class="works"
  6198. style="width: 240px; height: 140px; overflow: hidden"
  6199. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6200. :key="wIndex"
  6201. :class="w.type == 1 ? 'isTypeOne' : ''"
  6202. >
  6203. <div class="workImg" v-if="w.type == 0">
  6204. <img
  6205. :src="w.works"
  6206. @click="previewImg(w.works,w)"
  6207. alt
  6208. />
  6209. <img
  6210. class="deleteImg"
  6211. src="../../assets/deleteworks.png"
  6212. v-if="
  6213. w.userid == userid || tType == 1 || tType == 4
  6214. "
  6215. @click.stop="deleteWorks(w.wid)"
  6216. alt
  6217. />
  6218. </div>
  6219. <div class="workImg" v-if="w.type == 1">
  6220. <img :src="word" @click="openFile(w.works)" alt />
  6221. <img
  6222. class="deleteImg"
  6223. src="../../assets/deleteworks.png"
  6224. v-if="
  6225. w.userid == userid || tType == 1 || tType == 4
  6226. "
  6227. @click.stop="deleteWorks(w.wid)"
  6228. alt
  6229. />
  6230. </div>
  6231. <div class="worksName">
  6232. <div>{{ w.sName }}</div>
  6233. </div>
  6234. </div>
  6235. </div>
  6236. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6237. 未提交
  6238. </div>
  6239. <div
  6240. class="noWorksS"
  6241. v-if="noWorksS && noWorksS[toolIndex].length"
  6242. >
  6243. <div
  6244. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6245. :key="sIndex"
  6246. class="noWorksName"
  6247. >
  6248. <el-tooltip effect="dark" :content="s.student" placement="top">
  6249. <span>{{ s.student }}</span>
  6250. </el-tooltip>
  6251. </div>
  6252. </div>
  6253. </div>
  6254. <div
  6255. v-if="
  6256. tType &&
  6257. ((tType == 2 && sIsOpen == true) ||
  6258. tType == 1 ||
  6259. tType == 4) &&
  6260. tool.tool.indexOf(40) != -1
  6261. "
  6262. class="worksBox"
  6263. >
  6264. <div
  6265. class="zuoyeYulan"
  6266. v-if="
  6267. worksStudent.length &&
  6268. worksStudent[toolIndex].length > 0
  6269. "
  6270. >
  6271. <div class="worksTop">
  6272. <div>作业预览</div>
  6273. <div
  6274. class="corOpen"
  6275. @click="contract(toolIndex)"
  6276. v-if="
  6277. (isCloseList[toolIndex].isCloseBoolean) &&
  6278. isCloseList[toolIndex].isClose == 0
  6279. "
  6280. >
  6281. 折叠
  6282. </div>
  6283. <div
  6284. class="corOpen"
  6285. @click="contract(toolIndex)"
  6286. v-if="isCloseList[toolIndex].isClose == 1"
  6287. >
  6288. 展开
  6289. </div>
  6290. </div>
  6291. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6292. </div>
  6293. <div
  6294. :id="'tool-' + toolIndex"
  6295. :style="{
  6296. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6297. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6298. }"
  6299. class="worksDetailBox"
  6300. v-if="
  6301. worksStudent.length &&
  6302. worksStudent[toolIndex].length > 0
  6303. "
  6304. >
  6305. <div
  6306. class="works"
  6307. style="
  6308. width: 200px;
  6309. height: 140px;
  6310. margin: 10px 10px 10px 0;
  6311. border-radius: 15px;
  6312. box-shadow: 0 0 6px 1px #dfdada;
  6313. "
  6314. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6315. :key="wIndex"
  6316. :class="w.type == 1 ? 'isTypeOne' : ''"
  6317. >
  6318. <div class="workImg">
  6319. <img
  6320. src="../../assets/icon/works/noImg.png"
  6321. @click="openPj(w.works, toolIndex)"
  6322. alt
  6323. />
  6324. <img
  6325. class="deleteImg"
  6326. src="../../assets/deleteworks.png"
  6327. v-if="
  6328. w.userid == userid || tType == 1 || tType == 4
  6329. "
  6330. @click.stop="deleteWorks(w.wid)"
  6331. alt
  6332. />
  6333. </div>
  6334. <div class="comment" style="min-width: 200px">
  6335. <div class="worksName">
  6336. <div>{{ w.sName }}</div>
  6337. </div>
  6338. <div class="commentList">
  6339. <div class="commentList">
  6340. <div
  6341. class="commentImg"
  6342. @click="
  6343. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6344. "
  6345. >
  6346. <img
  6347. :src="w.isLikes == true ? likes : noLikes"
  6348. alt=""
  6349. />
  6350. </div>
  6351. <div>{{ w.likesCount }}</div>
  6352. </div>
  6353. <div class="commentList" style="margin-right: 15px">
  6354. <div
  6355. class="commentImg"
  6356. @click="commentOther(w, toolIndex, wIndex)"
  6357. >
  6358. <img
  6359. src="../../assets/icon/comment/comment.png"
  6360. alt=""
  6361. />
  6362. </div>
  6363. <div>{{ w.commentCount }}</div>
  6364. </div>
  6365. </div>
  6366. </div>
  6367. </div>
  6368. </div>
  6369. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6370. 未提交
  6371. </div>
  6372. <div
  6373. class="noWorksS"
  6374. v-if="noWorksS && noWorksS[toolIndex].length"
  6375. >
  6376. <div
  6377. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6378. :key="sIndex"
  6379. class="noWorksName"
  6380. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  6381. >
  6382. <el-tooltip effect="dark" :content="s.student" placement="top">
  6383. <span>{{ s.student }}</span>
  6384. </el-tooltip>
  6385. </div>
  6386. </div>
  6387. </div>
  6388. <div
  6389. v-if="
  6390. tType &&
  6391. tType == 2 &&
  6392. !sIsOpen &&
  6393. tool.tool.indexOf(40) != -1
  6394. "
  6395. class="worksBox"
  6396. >
  6397. <div
  6398. class="zuoyeYulan"
  6399. v-if="workStudent[toolIndex].length > 0"
  6400. >
  6401. <span class="worksTitle">作业预览</span>
  6402. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6403. </div>
  6404. <div
  6405. class="worksDetailBox"
  6406. v-if="workStudent[toolIndex].length > 0"
  6407. >
  6408. <div
  6409. class="works"
  6410. style="
  6411. width: 200px;
  6412. height: 140px;
  6413. margin: 10px 10px 10px 0;
  6414. "
  6415. v-for="(w, wIndex) in workStudent[toolIndex]"
  6416. :key="wIndex"
  6417. >
  6418. <div class="workImg">
  6419. <img
  6420. src="../../assets/icon/works/noImg.png"
  6421. @click="openPj(w.works, toolIndex)"
  6422. alt
  6423. />
  6424. <img
  6425. class="deleteImg"
  6426. src="../../assets/deleteworks.png"
  6427. v-if="
  6428. w.userid == userid || tType == 1 || tType == 4
  6429. "
  6430. @click.stop="deleteWorks(w.wid)"
  6431. alt
  6432. />
  6433. </div>
  6434. <div class="worksName">
  6435. <div>{{ w.sName }}</div>
  6436. </div>
  6437. </div>
  6438. </div>
  6439. </div>
  6440. <div
  6441. v-if="
  6442. tType &&
  6443. ((tType == 2 && sIsOpen == true) ||
  6444. tType == 1 ||
  6445. tType == 4) &&
  6446. tool.tool.indexOf(41) != -1
  6447. "
  6448. >
  6449. <AnswerData2
  6450. v-if="
  6451. worksStudent.length &&
  6452. worksStudent[toolIndex].length > 0
  6453. "
  6454. :problemJson="tool.selectJson.answer"
  6455. :people="worksStudent[toolIndex]"
  6456. ></AnswerData2>
  6457. </div>
  6458. <div
  6459. v-if="
  6460. tType &&
  6461. ((tType == 2 && sIsOpen == true) ||
  6462. tType == 1 ||
  6463. tType == 4) &&
  6464. tool.tool.indexOf(41) != -1
  6465. "
  6466. class="worksBox"
  6467. >
  6468. <div
  6469. class="zuoyeYulan"
  6470. v-if="
  6471. worksStudent.length &&
  6472. worksStudent[toolIndex].length > 0
  6473. "
  6474. >
  6475. <div class="worksTop">
  6476. <div>作业预览</div>
  6477. <div
  6478. class="corOpen"
  6479. @click="contract(toolIndex)"
  6480. v-if="
  6481. (isCloseList[toolIndex].isCloseBoolean) &&
  6482. isCloseList[toolIndex].isClose == 0
  6483. "
  6484. >
  6485. 折叠
  6486. </div>
  6487. <div
  6488. class="corOpen"
  6489. @click="contract(toolIndex)"
  6490. v-if="isCloseList[toolIndex].isClose == 1"
  6491. >
  6492. 展开
  6493. </div>
  6494. </div>
  6495. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6496. </div>
  6497. <div
  6498. :id="'tool-' + toolIndex"
  6499. :style="{
  6500. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6501. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6502. }"
  6503. class="worksDetailBox"
  6504. v-if="
  6505. worksStudent.length &&
  6506. worksStudent[toolIndex].length > 0
  6507. "
  6508. >
  6509. <div
  6510. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6511. :key="wIndex"
  6512. class="isWorksName2"
  6513. @click="openXz(w, toolIndex)"
  6514. >
  6515. {{ w.sName }}
  6516. <img
  6517. class="deleteImg deleteImg2"
  6518. src="../../assets/deleteworks.png"
  6519. v-if="w.userid == userid || tType == 1 || tType == 4"
  6520. @click.stop="deleteWorks(w.wid)"
  6521. alt
  6522. />
  6523. </div>
  6524. <!-- <div
  6525. class="works"
  6526. style="
  6527. width: 200px;
  6528. height: 140px;
  6529. margin: 10px 10px 10px 0;
  6530. border-radius: 15px;
  6531. box-shadow: 0 0 6px 1px #dfdada;
  6532. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6533. :class="w.type == 5 ? 'isTypeOne' : ''">
  6534. <div class="workImg">
  6535. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6536. </div>
  6537. <div class="worksName">
  6538. <div>{{ w.sName }}</div>
  6539. </div>
  6540. </div> -->
  6541. </div>
  6542. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6543. 未提交
  6544. </div>
  6545. <div
  6546. class="noWorksS"
  6547. v-if="noWorksS && noWorksS[toolIndex].length"
  6548. >
  6549. <div
  6550. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6551. :key="sIndex"
  6552. class="noWorksName"
  6553. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6554. >
  6555. <el-tooltip effect="dark" :content="s.student" placement="top">
  6556. <span>{{ s.student }}</span>
  6557. </el-tooltip>
  6558. </div>
  6559. </div>
  6560. </div>
  6561. <div
  6562. v-if="
  6563. tType &&
  6564. tType == 2 &&
  6565. !sIsOpen &&
  6566. tool.tool.indexOf(41) != -1
  6567. "
  6568. class="worksBox"
  6569. >
  6570. <div
  6571. class="zuoyeYulan"
  6572. v-if="workStudent[toolIndex].length > 0"
  6573. >
  6574. <span class="worksTitle">作业预览</span>
  6575. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6576. </div>
  6577. <div
  6578. class="worksDetailBox"
  6579. v-if="workStudent[toolIndex].length > 0"
  6580. >
  6581. <div
  6582. class="works"
  6583. style="
  6584. width: 200px;
  6585. height: 140px;
  6586. margin: 10px 10px 10px 0;
  6587. "
  6588. v-for="(w, wIndex) in workStudent[toolIndex]"
  6589. :key="wIndex"
  6590. >
  6591. <div class="workImg">
  6592. <img
  6593. src="../../assets/icon/works/noImg.png"
  6594. @click="openXz(w, toolIndex)"
  6595. alt
  6596. />
  6597. <img
  6598. class="deleteImg"
  6599. src="../../assets/deleteworks.png"
  6600. v-if="
  6601. w.userid == userid || tType == 1 || tType == 4
  6602. "
  6603. @click.stop="deleteWorks(w.wid)"
  6604. alt
  6605. />
  6606. </div>
  6607. <div class="worksName">
  6608. <div>{{ w.sName }}</div>
  6609. </div>
  6610. </div>
  6611. </div>
  6612. </div>
  6613. <div v-if="false" class="xuan_right_box">
  6614. <div
  6615. class="tool_right_box"
  6616. v-for="(item, index) in tool.sentenceList"
  6617. :key="index"
  6618. >
  6619. <div>
  6620. <span
  6621. style="word-break: break-all; white-space: normal"
  6622. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6623. >
  6624. </div>
  6625. <div class="right_box_xuan">
  6626. <span>正确率</span>
  6627. <span>{{
  6628. (checkJson[toolIndex][index].right
  6629. ? checkJson[toolIndex][index].right
  6630. : 0) + "%"
  6631. }}</span>
  6632. </div>
  6633. <div class="right_box_xuan">
  6634. <span>答对人数</span>
  6635. <span>{{
  6636. checkJson[toolIndex][index].rightPerson.length
  6637. }}</span>
  6638. </div>
  6639. </div>
  6640. </div>
  6641. <div
  6642. v-if="
  6643. tType &&
  6644. ((tType == 2 && sIsOpen == true) ||
  6645. tType == 1 ||
  6646. tType == 4) &&
  6647. tool.tool.indexOf(47) != -1
  6648. "
  6649. >
  6650. <!-- <AnswerData
  6651. v-if="
  6652. checkJson[toolIndex].length &&
  6653. (tool.sentenceList || tool.sentenceList.length > 0)
  6654. "
  6655. :people="checkJson[toolIndex]"
  6656. ></AnswerData> -->
  6657. <sortToolWorkShow v-if="
  6658. worksStudent[toolIndex].length
  6659. "
  6660. :people="worksStudent[toolIndex]"></sortToolWorkShow>
  6661. </div>
  6662. <div
  6663. v-if="
  6664. tType &&
  6665. tType == 2 &&
  6666. !sIsOpen &&
  6667. tool.tool.indexOf(47) != -1
  6668. "
  6669. class="worksBox"
  6670. >
  6671. <div
  6672. class="zuoyeYulan"
  6673. v-if="workStudent[toolIndex].length > 0"
  6674. >
  6675. <span class="worksTitle">作业预览</span>
  6676. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6677. </div>
  6678. <div
  6679. class="worksDetailBox"
  6680. v-if="workStudent[toolIndex].length > 0"
  6681. >
  6682. <div
  6683. class="works"
  6684. style="
  6685. width: 200px;
  6686. height: 140px;
  6687. margin: 10px 10px 10px 0;
  6688. "
  6689. v-for="(w, wIndex) in workStudent[toolIndex]"
  6690. :key="wIndex"
  6691. >
  6692. <!-- @click="openXz(w, toolIndex)" -->
  6693. <div class="workImg" @click="openSen(w, toolIndex)">
  6694. <img src="../../assets/icon/works/noImg.png" alt />
  6695. <img
  6696. class="deleteImg"
  6697. src="../../assets/deleteworks.png"
  6698. v-if="
  6699. w.userid == userid || tType == 1 || tType == 4
  6700. "
  6701. @click.stop="deleteWorks(w.wid)"
  6702. alt
  6703. />
  6704. </div>
  6705. <div class="worksName">
  6706. <div>
  6707. {{ w.sName }}
  6708. </div>
  6709. </div>
  6710. </div>
  6711. </div>
  6712. </div>
  6713. <div
  6714. v-if="
  6715. tType &&
  6716. ((tType == 2 && sIsOpen == true) ||
  6717. tType == 1 ||
  6718. tType == 4) &&
  6719. tool.tool.indexOf(47) != -1
  6720. "
  6721. class="worksBox"
  6722. >
  6723. <div
  6724. class="zuoyeYulan"
  6725. v-if="
  6726. worksStudent.length &&
  6727. worksStudent[toolIndex].length > 0
  6728. "
  6729. >
  6730. <div class="worksTop">
  6731. <div>作业预览</div>
  6732. <div
  6733. class="corOpen"
  6734. @click="contract(toolIndex)"
  6735. v-if="
  6736. (isCloseList[toolIndex].isCloseBoolean) &&
  6737. isCloseList[toolIndex].isClose == 0
  6738. "
  6739. >
  6740. 折叠
  6741. </div>
  6742. <div
  6743. class="corOpen"
  6744. @click="contract(toolIndex)"
  6745. v-if="isCloseList[toolIndex].isClose == 1"
  6746. >
  6747. 展开
  6748. </div>
  6749. </div>
  6750. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6751. </div>
  6752. <div
  6753. :id="'tool-' + toolIndex"
  6754. :style="{
  6755. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6756. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6757. }"
  6758. class="worksDetailBox"
  6759. v-if="
  6760. worksStudent.length &&
  6761. worksStudent[toolIndex].length > 0
  6762. "
  6763. >
  6764. <!-- @click="openXz(w, toolIndex)" -->
  6765. <div
  6766. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6767. :key="wIndex"
  6768. class="isWorksName2"
  6769. @click="openSen(w, toolIndex)"
  6770. >
  6771. {{ w.sName }}
  6772. <img
  6773. class="deleteImg deleteImg2"
  6774. src="../../assets/deleteworks.png"
  6775. v-if="w.userid == userid || tType == 1 || tType == 4"
  6776. @click.stop="deleteWorks(w.wid)"
  6777. alt
  6778. />
  6779. </div>
  6780. </div>
  6781. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6782. 未提交
  6783. </div>
  6784. <div
  6785. class="noWorksS"
  6786. v-if="noWorksS && noWorksS[toolIndex].length"
  6787. >
  6788. <div
  6789. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6790. :key="sIndex"
  6791. class="noWorksName"
  6792. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6793. >
  6794. <el-tooltip effect="dark" :content="s.student" placement="top">
  6795. <span>{{ s.student }}</span>
  6796. </el-tooltip>
  6797. </div>
  6798. </div>
  6799. </div>
  6800. <div
  6801. v-if="
  6802. tType &&
  6803. ((tType == 2 && sIsOpen == true) ||
  6804. tType == 1 ||
  6805. tType == 4) &&
  6806. tool.tool.indexOf(48) != -1
  6807. "
  6808. class="worksBox"
  6809. >
  6810. <div
  6811. class="zuoyeYulan"
  6812. v-if="
  6813. worksStudent.length &&
  6814. worksStudent[toolIndex].length > 0
  6815. "
  6816. >
  6817. <div class="worksTop">
  6818. <div>作业预览</div>
  6819. <div
  6820. class="corOpen"
  6821. @click="contract(toolIndex)"
  6822. v-if="
  6823. (isCloseList[toolIndex].isCloseBoolean) &&
  6824. isCloseList[toolIndex].isClose == 0
  6825. "
  6826. >
  6827. 折叠
  6828. </div>
  6829. <div
  6830. class="corOpen"
  6831. @click="contract(toolIndex)"
  6832. v-if="isCloseList[toolIndex].isClose == 1"
  6833. >
  6834. 展开
  6835. </div>
  6836. </div>
  6837. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6838. </div>
  6839. <div
  6840. :id="'tool-' + toolIndex"
  6841. :style="{
  6842. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6843. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6844. }"
  6845. class="worksDetailBox"
  6846. v-if="
  6847. worksStudent.length &&
  6848. worksStudent[toolIndex].length > 0
  6849. "
  6850. >
  6851. <div
  6852. class="works"
  6853. style="
  6854. width: 200px;
  6855. height: 140px;
  6856. margin: 10px 10px 10px 0;
  6857. border-radius: 15px;
  6858. box-shadow: 0 0 6px 1px #dfdada;
  6859. "
  6860. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6861. :key="wIndex"
  6862. :class="w.type == 1 ? 'isTypeOne' : ''"
  6863. >
  6864. <div class="workImg">
  6865. <img :src="word" @click="openTable(w)" alt />
  6866. <!-- @click="openFile(w.works)" -->
  6867. <div
  6868. class="answerScore"
  6869. v-if="w.score"
  6870. @click.stop="openScore(w)"
  6871. :class="{
  6872. rightW:
  6873. w.userid == userid ||
  6874. tType == 1 ||
  6875. tType == 4 ||
  6876. w.ateacher == userid,
  6877. }"
  6878. >
  6879. {{ JSON.parse(w.score).wScore }}分
  6880. </div>
  6881. <div
  6882. class="answerScore"
  6883. @click.stop="openScore(w)"
  6884. v-else-if="courseDetail.userid == userid"
  6885. :class="{
  6886. rightW:
  6887. w.userid == userid ||
  6888. tType == 1 ||
  6889. tType == 4 ||
  6890. w.ateacher == userid,
  6891. }"
  6892. >
  6893. 评分
  6894. </div>
  6895. <img
  6896. class="deleteImg"
  6897. src="../../assets/deleteworks.png"
  6898. v-if="
  6899. w.userid == userid || tType == 1 || tType == 4
  6900. "
  6901. @click.stop="deleteWorks(w.wid)"
  6902. alt
  6903. />
  6904. </div>
  6905. <div class="comment" style="min-width: 200px">
  6906. <div class="worksName">
  6907. <div>{{ w.sName }}</div>
  6908. </div>
  6909. <div class="commentList">
  6910. <div class="commentList">
  6911. <div
  6912. class="commentImg"
  6913. @click="
  6914. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6915. "
  6916. >
  6917. <img
  6918. :src="w.isLikes == true ? likes : noLikes"
  6919. alt=""
  6920. />
  6921. </div>
  6922. <div>{{ w.likesCount }}</div>
  6923. </div>
  6924. <div class="commentList" style="margin-right: 15px">
  6925. <div
  6926. class="commentImg"
  6927. @click="commentOther(w, toolIndex, wIndex)"
  6928. >
  6929. <img
  6930. src="../../assets/icon/comment/comment.png"
  6931. alt=""
  6932. />
  6933. </div>
  6934. <div>{{ w.commentCount }}</div>
  6935. </div>
  6936. </div>
  6937. </div>
  6938. </div>
  6939. </div>
  6940. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6941. 未提交
  6942. </div>
  6943. <div
  6944. class="noWorksS"
  6945. v-if="noWorksS && noWorksS[toolIndex].length"
  6946. >
  6947. <div
  6948. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6949. :key="sIndex"
  6950. class="noWorksName"
  6951. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6952. >
  6953. <el-tooltip effect="dark" :content="s.student" placement="top">
  6954. <span>{{ s.student }}</span>
  6955. </el-tooltip>
  6956. </div>
  6957. </div>
  6958. </div>
  6959. <div
  6960. v-if="
  6961. tType &&
  6962. tType == 2 &&
  6963. !sIsOpen &&
  6964. tool.tool.indexOf(48) != -1
  6965. "
  6966. class="worksBox"
  6967. >
  6968. <div
  6969. class="zuoyeYulan"
  6970. v-if="workStudent[toolIndex].length > 0"
  6971. >
  6972. <span class="worksTitle">作业预览</span>
  6973. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6974. </div>
  6975. <div
  6976. class="worksDetailBox"
  6977. v-if="workStudent[toolIndex].length > 0"
  6978. >
  6979. <div
  6980. class="works"
  6981. style="
  6982. width: 200px;
  6983. height: 140px;
  6984. margin: 10px 10px 10px 0;
  6985. box-shadow: 0 0 6px 1px #dfdada;
  6986. "
  6987. v-for="(w, wIndex) in workStudent[toolIndex]"
  6988. :key="wIndex"
  6989. >
  6990. <div class="workImg">
  6991. <img :src="word" @click="openTable(w)" alt />
  6992. <div
  6993. class="answerScore"
  6994. v-if="w.score"
  6995. @click.stop="openScore(w)"
  6996. :class="{
  6997. rightW:
  6998. w.userid == userid || tType == 1 || tType == 4,
  6999. }"
  7000. >
  7001. {{ JSON.parse(w.score).wScore }}分
  7002. </div>
  7003. <div
  7004. class="answerScore"
  7005. @click.stop="openScore(w)"
  7006. v-else-if="courseDetail.userid == userid"
  7007. :class="{
  7008. rightW:
  7009. w.userid == userid || tType == 1 || tType == 4,
  7010. }"
  7011. >
  7012. 评分
  7013. </div>
  7014. <img
  7015. class="deleteImg"
  7016. src="../../assets/deleteworks.png"
  7017. v-if="
  7018. w.userid == userid || tType == 1 || tType == 4
  7019. "
  7020. @click.stop="deleteWorks(w.wid)"
  7021. alt
  7022. />
  7023. </div>
  7024. <div class="worksName">
  7025. <div>{{ w.sName }}</div>
  7026. </div>
  7027. </div>
  7028. </div>
  7029. </div>
  7030. <div
  7031. v-if="
  7032. tType &&
  7033. ((tType == 2 && sIsOpen == true) ||
  7034. tType == 1 ||
  7035. tType == 4) &&
  7036. tool.tool.indexOf(52) != -1
  7037. "
  7038. class="worksBox"
  7039. >
  7040. <div
  7041. class="zuoyeYulan"
  7042. v-if="
  7043. worksStudent.length &&
  7044. worksStudent[toolIndex].length > 0
  7045. "
  7046. >
  7047. <div class="worksTop">
  7048. <div>作业预览</div>
  7049. <div
  7050. class="corOpen"
  7051. @click="contract(toolIndex)"
  7052. v-if="
  7053. (isCloseList[toolIndex].isCloseBoolean) &&
  7054. isCloseList[toolIndex].isClose == 0
  7055. "
  7056. >
  7057. 折叠
  7058. </div>
  7059. <div
  7060. class="corOpen"
  7061. @click="contract(toolIndex)"
  7062. v-if="isCloseList[toolIndex].isClose == 1"
  7063. >
  7064. 展开
  7065. </div>
  7066. </div>
  7067. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7068. </div>
  7069. <div
  7070. :id="'tool-' + toolIndex"
  7071. :style="{
  7072. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  7073. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  7074. }"
  7075. class="worksDetailBox"
  7076. v-if="
  7077. worksStudent.length &&
  7078. worksStudent[toolIndex].length > 0
  7079. "
  7080. >
  7081. <div
  7082. class="works"
  7083. style="
  7084. width: 200px;
  7085. height: 140px;
  7086. margin: 10px 10px 10px 0;
  7087. border-radius: 15px;
  7088. box-shadow: 0 0 6px 1px #dfdada;
  7089. "
  7090. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7091. :key="wIndex"
  7092. :class="w.type == 1 ? 'isTypeOne' : ''"
  7093. >
  7094. <div class="workImg">
  7095. <img :src="word" @click="openWord(w)" alt />
  7096. <!-- @click="openFile(w.works)" -->
  7097. <div
  7098. class="answerScore"
  7099. v-if="w.score"
  7100. @click.stop="openScore(w)"
  7101. :class="{
  7102. rightW:
  7103. w.userid == userid ||
  7104. tType == 1 ||
  7105. tType == 4 ||
  7106. w.ateacher == userid,
  7107. }"
  7108. >
  7109. {{ JSON.parse(w.score).wScore }}分
  7110. </div>
  7111. <div
  7112. class="answerScore"
  7113. @click.stop="openScore(w)"
  7114. v-else-if="courseDetail.userid == userid"
  7115. :class="{
  7116. rightW:
  7117. w.userid == userid ||
  7118. tType == 1 ||
  7119. tType == 4 ||
  7120. w.ateacher == userid,
  7121. }"
  7122. >
  7123. 评分
  7124. </div>
  7125. <img
  7126. class="deleteImg"
  7127. src="../../assets/deleteworks.png"
  7128. v-if="
  7129. w.userid == userid || tType == 1 || tType == 4
  7130. "
  7131. @click.stop="deleteWorks(w.wid)"
  7132. alt
  7133. />
  7134. </div>
  7135. <div class="comment" style="min-width: 200px">
  7136. <div class="worksName">
  7137. <div>{{ w.sName }}</div>
  7138. </div>
  7139. <div class="commentList">
  7140. <div class="commentList">
  7141. <div
  7142. class="commentImg"
  7143. @click="
  7144. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  7145. "
  7146. >
  7147. <img
  7148. :src="w.isLikes == true ? likes : noLikes"
  7149. alt=""
  7150. />
  7151. </div>
  7152. <div>{{ w.likesCount }}</div>
  7153. </div>
  7154. <div class="commentList" style="margin-right: 15px">
  7155. <div
  7156. class="commentImg"
  7157. @click="commentOther(w, toolIndex, wIndex)"
  7158. >
  7159. <img
  7160. src="../../assets/icon/comment/comment.png"
  7161. alt=""
  7162. />
  7163. </div>
  7164. <div>{{ w.commentCount }}</div>
  7165. </div>
  7166. </div>
  7167. </div>
  7168. </div>
  7169. </div>
  7170. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7171. 未提交
  7172. </div>
  7173. <div
  7174. class="noWorksS"
  7175. v-if="noWorksS && noWorksS[toolIndex].length"
  7176. >
  7177. <div
  7178. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7179. :key="sIndex"
  7180. class="noWorksName"
  7181. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  7182. >
  7183. <el-tooltip effect="dark" :content="s.student" placement="top">
  7184. <span>{{ s.student }}</span>
  7185. </el-tooltip>
  7186. </div>
  7187. </div>
  7188. </div>
  7189. <div
  7190. v-if="
  7191. tType &&
  7192. tType == 2 &&
  7193. !sIsOpen &&
  7194. tool.tool.indexOf(52) != -1
  7195. "
  7196. class="worksBox"
  7197. >
  7198. <div
  7199. class="zuoyeYulan"
  7200. v-if="workStudent[toolIndex].length > 0"
  7201. >
  7202. <span class="worksTitle">作业预览</span>
  7203. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7204. </div>
  7205. <div
  7206. class="worksDetailBox"
  7207. v-if="workStudent[toolIndex].length > 0"
  7208. >
  7209. <div
  7210. class="works"
  7211. style="
  7212. width: 200px;
  7213. height: 140px;
  7214. margin: 10px 10px 10px 0;
  7215. box-shadow: 0 0 6px 1px #dfdada;
  7216. "
  7217. v-for="(w, wIndex) in workStudent[toolIndex]"
  7218. :key="wIndex"
  7219. >
  7220. <div class="workImg">
  7221. <img :src="word" @click="openWord(w)" alt />
  7222. <div
  7223. class="answerScore"
  7224. v-if="w.score"
  7225. @click.stop="openScore(w)"
  7226. :class="{
  7227. rightW:
  7228. w.userid == userid || tType == 1 || tType == 4,
  7229. }"
  7230. >
  7231. {{ JSON.parse(w.score).wScore }}分
  7232. </div>
  7233. <div
  7234. class="answerScore"
  7235. @click.stop="openScore(w)"
  7236. v-else-if="courseDetail.userid == userid"
  7237. :class="{
  7238. rightW:
  7239. w.userid == userid || tType == 1 || tType == 4,
  7240. }"
  7241. >
  7242. 评分
  7243. </div>
  7244. <img
  7245. class="deleteImg"
  7246. src="../../assets/deleteworks.png"
  7247. v-if="
  7248. w.userid == userid || tType == 1 || tType == 4
  7249. "
  7250. @click.stop="deleteWorks(w.wid)"
  7251. alt
  7252. />
  7253. </div>
  7254. <div class="worksName">
  7255. <div>{{ w.sName }}</div>
  7256. </div>
  7257. </div>
  7258. </div>
  7259. </div>
  7260. <div
  7261. v-if="tool.tool.indexOf(49) != -1"
  7262. class="xuan_right_box"
  7263. style="margin: 0 15px 0 25px; width: 93%"
  7264. >
  7265. <div
  7266. v-if="courseDetail.userid == userid"
  7267. style="
  7268. display: flex;
  7269. justify-content: flex-end;
  7270. margin-right: 10px;
  7271. "
  7272. >
  7273. <el-button
  7274. type="primary"
  7275. size="small"
  7276. @click="addTools(49, toolIndex, taskCount)"
  7277. >分组设置</el-button
  7278. >
  7279. </div>
  7280. <div
  7281. v-if="groupStudentUid[toolIndex]"
  7282. class="group_staic_box"
  7283. >
  7284. <div
  7285. v-for="(gp, gd) in tool.groupJson.group"
  7286. :key="gd"
  7287. class="group_staic"
  7288. >
  7289. <span> {{ gp.name }}</span>
  7290. <span>
  7291. 目前人数{{
  7292. groupStudentUid[toolIndex][gd].length
  7293. }}人</span
  7294. >
  7295. </div>
  7296. </div>
  7297. </div>
  7298. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  7299. <div
  7300. class="zuoyeYulan"
  7301. v-if="
  7302. worksStudent.length &&
  7303. worksStudent[toolIndex].length > 0
  7304. "
  7305. >
  7306. <span class="worksTitle">作业预览</span>
  7307. </div>
  7308. <div>
  7309. <div
  7310. class="group_workBox"
  7311. v-for="(g, gindex) in tool.groupJson.group"
  7312. :key="gindex"
  7313. >
  7314. <div
  7315. class="group_box"
  7316. v-if="
  7317. groupStudentUid[toolIndex] &&
  7318. worksStudent[toolIndex] &&
  7319. (worksStudent[toolIndex][gindex].length ||
  7320. groupStudentUid[toolIndex][gindex].indexOf(
  7321. userid
  7322. ) != -1)
  7323. "
  7324. >
  7325. <div class="group_title">
  7326. <el-tooltip
  7327. class="item"
  7328. effect="light"
  7329. :content="g.name"
  7330. placement="top"
  7331. >
  7332. <div class="group_name">{{ g.name }}</div>
  7333. </el-tooltip>
  7334. <el-button
  7335. type="primary"
  7336. v-if="
  7337. groupStudentUid[toolIndex][gindex].indexOf(
  7338. userid
  7339. ) != -1
  7340. "
  7341. @click="groupUpload(toolIndex, taskCount, gindex)"
  7342. >上传作业</el-button
  7343. >
  7344. </div>
  7345. <div class="group_work">
  7346. <div
  7347. class="works"
  7348. style="
  7349. width: 200px;
  7350. height: 140px;
  7351. margin: 10px 10px 10px 0;
  7352. border-radius: 15px;
  7353. box-shadow: 0 0 6px 1px #dfdada;
  7354. "
  7355. v-for="(w, wIndex) in worksStudent[toolIndex][
  7356. gindex
  7357. ]"
  7358. :key="wIndex"
  7359. :class="w.type == 1 ? 'isTypeOne' : ''"
  7360. >
  7361. <div class="workImg" v-if="w.type == 0">
  7362. <img
  7363. :src="w.works"
  7364. @click="previewImg(w.works,w)"
  7365. alt
  7366. />
  7367. <div
  7368. class="answerScore"
  7369. v-if="w.score"
  7370. @click.stop="openScore(w)"
  7371. :class="{
  7372. rightW:
  7373. w.userid == userid ||
  7374. tType == 1 ||
  7375. tType == 4 ||
  7376. w.ateacher == userid,
  7377. }"
  7378. >
  7379. {{ JSON.parse(w.score).wScore }}分
  7380. </div>
  7381. <div
  7382. class="answerScore"
  7383. @click.stop="openScore(w)"
  7384. v-else-if="courseDetail.userid == userid"
  7385. :class="{
  7386. rightW:
  7387. w.userid == userid ||
  7388. tType == 1 ||
  7389. tType == 4 ||
  7390. w.ateacher == userid,
  7391. }"
  7392. >
  7393. 评分
  7394. </div>
  7395. <img
  7396. class="deleteImg"
  7397. src="../../assets/deleteworks.png"
  7398. v-if="
  7399. w.userid == userid ||
  7400. tType == 1 ||
  7401. tType == 4
  7402. "
  7403. @click.stop="deleteWorks(w.wid)"
  7404. alt
  7405. />
  7406. </div>
  7407. <div class="workImg" v-if="w.type == 1">
  7408. <img
  7409. :src="word"
  7410. @click="openFile(w.works)"
  7411. alt
  7412. />
  7413. <!-- @click="openFile(w.works)" -->
  7414. <div
  7415. class="answerScore"
  7416. v-if="w.score"
  7417. @click.stop="openScore(w)"
  7418. :class="{
  7419. rightW:
  7420. w.userid == userid ||
  7421. tType == 1 ||
  7422. tType == 4 ||
  7423. w.ateacher == userid,
  7424. }"
  7425. >
  7426. {{ JSON.parse(w.score).wScore }}分
  7427. </div>
  7428. <div
  7429. class="answerScore"
  7430. @click.stop="openScore(w)"
  7431. v-else-if="courseDetail.userid == userid"
  7432. :class="{
  7433. rightW:
  7434. w.userid == userid ||
  7435. tType == 1 ||
  7436. tType == 4 ||
  7437. w.ateacher == userid,
  7438. }"
  7439. >
  7440. 评分
  7441. </div>
  7442. <img
  7443. class="deleteImg"
  7444. src="../../assets/deleteworks.png"
  7445. v-if="
  7446. w.userid == userid ||
  7447. tType == 1 ||
  7448. tType == 4
  7449. "
  7450. @click.stop="deleteWorks(w.wid)"
  7451. alt
  7452. />
  7453. </div>
  7454. <div class="workImg" v-if="w.type == 3">
  7455. <img
  7456. style="cursor: pointer"
  7457. :src="video"
  7458. @click="openVideo(w)"
  7459. alt
  7460. />
  7461. <!-- @click="openVideo(w.works)" -->
  7462. <div
  7463. class="answerScore"
  7464. v-if="w.score"
  7465. @click.stop="openScore(w)"
  7466. :class="{
  7467. rightW:
  7468. w.userid == userid ||
  7469. tType == 1 ||
  7470. tType == 4 ||
  7471. w.ateacher == userid,
  7472. }"
  7473. >
  7474. {{ JSON.parse(w.score).wScore }}分
  7475. </div>
  7476. <div
  7477. class="answerScore"
  7478. @click.stop="openScore(w)"
  7479. v-else-if="courseDetail.userid == userid"
  7480. :class="{
  7481. rightW:
  7482. w.userid == userid ||
  7483. tType == 1 ||
  7484. tType == 4 ||
  7485. w.ateacher == userid,
  7486. }"
  7487. >
  7488. 评分
  7489. </div>
  7490. <img
  7491. class="deleteImg"
  7492. src="../../assets/deleteworks.png"
  7493. v-if="
  7494. w.userid == userid ||
  7495. tType == 1 ||
  7496. tType == 4
  7497. "
  7498. @click.stop="deleteWorks(w.wid)"
  7499. alt
  7500. />
  7501. </div>
  7502. <div class="workImg" v-if="w.type == 12">
  7503. <img
  7504. style="cursor: pointer"
  7505. :src="word2"
  7506. @click="downloadFile(w.works,w.userid)"
  7507. alt
  7508. />
  7509. <!-- @click="openVideo(w.works)" -->
  7510. <div
  7511. class="answerScore"
  7512. v-if="w.score"
  7513. @click.stop="openScore(w)"
  7514. :class="{
  7515. rightW:
  7516. w.userid == userid ||
  7517. tType == 1 ||
  7518. tType == 4 ||
  7519. w.ateacher == userid,
  7520. }"
  7521. >
  7522. {{ JSON.parse(w.score).wScore }}分
  7523. </div>
  7524. <div
  7525. class="answerScore"
  7526. @click.stop="openScore(w)"
  7527. v-else-if="courseDetail.userid == userid"
  7528. :class="{
  7529. rightW:
  7530. w.userid == userid ||
  7531. tType == 1 ||
  7532. tType == 4 ||
  7533. w.ateacher == userid,
  7534. }"
  7535. >
  7536. 评分
  7537. </div>
  7538. <img
  7539. class="deleteImg"
  7540. src="../../assets/deleteworks.png"
  7541. v-if="
  7542. w.userid == userid ||
  7543. tType == 1 ||
  7544. tType == 4
  7545. "
  7546. @click.stop="deleteWorks(w.wid)"
  7547. alt
  7548. />
  7549. </div>
  7550. <div class="comment" style="min-width: 200px">
  7551. <div class="worksName">
  7552. <div>{{ w.sName }}</div>
  7553. </div>
  7554. <div class="commentList">
  7555. <div class="commentList">
  7556. <div
  7557. class="commentImg"
  7558. @click="
  7559. isLikes(
  7560. w.wid,
  7561. userid,
  7562. 1,
  7563. null,
  7564. w.isLikes,
  7565. w.sName
  7566. )
  7567. "
  7568. >
  7569. <img
  7570. :src="
  7571. w.isLikes == true ? likes : noLikes
  7572. "
  7573. alt=""
  7574. />
  7575. </div>
  7576. <div>{{ w.likesCount }}</div>
  7577. </div>
  7578. <div
  7579. class="commentList"
  7580. style="margin-right: 15px"
  7581. >
  7582. <div
  7583. class="commentImg"
  7584. @click="
  7585. commentOther(
  7586. w,
  7587. toolIndex,
  7588. wIndex,
  7589. gindex
  7590. )
  7591. "
  7592. >
  7593. <img
  7594. src="../../assets/icon/comment/comment.png"
  7595. alt=""
  7596. />
  7597. </div>
  7598. <div>{{ w.commentCount }}</div>
  7599. </div>
  7600. </div>
  7601. </div>
  7602. </div>
  7603. </div>
  7604. </div>
  7605. </div>
  7606. </div>
  7607. </div>
  7608. </div>
  7609. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7610. 上传文件
  7611. <input
  7612. type="file"
  7613. accept="image/png, image/gif, image/jpeg"
  7614. style="display: none"
  7615. @change="beforeUpload1($event, 2, index)"
  7616. />
  7617. </div>-->
  7618. </div>
  7619. </div>
  7620. <!-- <div
  7621. class="vedioBox"
  7622. style="margin-top: 10px"
  7623. v-if="
  7624. courseDetail.userid == userid ||
  7625. (courseDetail.course_teacher &&
  7626. courseDetail.course_teacher.indexOf(userid) != -1)
  7627. "
  7628. :style="{
  7629. borderRadius:
  7630. !(
  7631. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7632. .toolChoose[0].tool &&
  7633. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7634. .toolChoose[0].tool.length > 0
  7635. ) &&
  7636. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7637. .taskDetail == '' &&
  7638. vChapterData[taskCount].length == 0 &&
  7639. fileC[taskCount].length == 0
  7640. ? '0 0 20px 20px'
  7641. : '20px',
  7642. }"
  7643. >
  7644. <div
  7645. class="queTop"
  7646. @click="isClose = !isClose"
  7647. style="
  7648. padding: 15px 0 15px 37px;
  7649. justify-content: space-between;
  7650. "
  7651. >
  7652. <div class="queTopTitle">新增工具</div>
  7653. <div class="queTopRight">
  7654. <div class="queTopClose" v-if="isClose == 0">
  7655. 展开
  7656. <div class="closeImg">
  7657. <img src="../../assets/icon/newIcon/close.png" alt="" />
  7658. </div>
  7659. </div>
  7660. <div class="queTopClose" v-if="isClose == 1">
  7661. 折叠
  7662. <div class="openImg">
  7663. <img src="../../assets/icon/newIcon/open.png" alt="" />
  7664. </div>
  7665. </div>
  7666. <el-button
  7667. style="margin: 0 30px 0 auto"
  7668. type="primary"
  7669. size="small"
  7670. v-if="isClose == 1 && checktoolArray.length > 0"
  7671. @click.stop="addToolChoose"
  7672. >确定</el-button
  7673. >
  7674. </div>
  7675. </div>
  7676. <div
  7677. class="tool_work_box"
  7678. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7679. >
  7680. <div class="tool_box">
  7681. <div class="tool_type_box">
  7682. <div class="chooseWho">
  7683. <div
  7684. :class="toolType == 0 ? 'isChooseActive' : ''"
  7685. @click="(toolType = 0), $forceUpdate()"
  7686. >
  7687. 互动类
  7688. </div>
  7689. <div
  7690. :class="toolType == 1 ? 'isChooseActive' : ''"
  7691. @click="(toolType = 1), $forceUpdate()"
  7692. >
  7693. 思维类
  7694. </div>
  7695. <div
  7696. :class="toolType == 2 ? 'isChooseActive' : ''"
  7697. @click="(toolType = 2), $forceUpdate()"
  7698. >
  7699. 测评类
  7700. </div>
  7701. <div
  7702. :class="toolType == 3 ? 'isChooseActive' : ''"
  7703. @click="(toolType = 3), $forceUpdate()"
  7704. >
  7705. 编程类
  7706. </div>
  7707. <div
  7708. :class="toolType == 5 ? 'isChooseActive' : ''"
  7709. @click="(toolType = 5), $forceUpdate()"
  7710. >
  7711. 学科类
  7712. </div>
  7713. </div>
  7714. </div>
  7715. <div>
  7716. <div class="toolSort" v-if="toolType == 0">
  7717. <div class="tool">
  7718. <div class="whiteBIcon" @click="addTools2(10)">
  7719. <img
  7720. src="../../assets/icon/thirdToolList/time.png"
  7721. alt
  7722. />
  7723. <div style="margin: 5px 0">倒计时</div>
  7724. </div>
  7725. <div class="check" @click="addTools2(10)">
  7726. <img
  7727. src="../../assets/icon/checkNo.png"
  7728. alt
  7729. v-if="checktoolArray.indexOf(10) == -1"
  7730. />
  7731. <div class="checkDiv" v-else>
  7732. <img src="../../assets/icon/checkedIs.png" alt /><span
  7733. >已选择</span
  7734. >
  7735. </div>
  7736. </div>
  7737. </div>
  7738. <div class="tool">
  7739. <div class="whiteBIcon" @click="addTools2(65)">
  7740. <img
  7741. src="../../assets/icon/firstToolList/pickPeople.png"
  7742. alt
  7743. />
  7744. <div style="margin: 5px 0">挑人</div>
  7745. </div>
  7746. <div class="check" @click="addTools2(65)">
  7747. <img
  7748. src="../../assets/icon/checkNo.png"
  7749. alt
  7750. v-if="checktoolArray.indexOf(65) == -1"
  7751. />
  7752. <div class="checkDiv" v-else>
  7753. <img src="../../assets/icon/checkedIs.png" alt /><span
  7754. >已选择</span
  7755. >
  7756. </div>
  7757. </div>
  7758. </div>
  7759. </div>
  7760. <div class="toolSort" v-if="toolType == 1">
  7761. <div class="tool">
  7762. <div class="whiteBIcon" @click="addTools2(7)">
  7763. <img
  7764. src="../../assets/icon/secondToolList/mindNetwork.png"
  7765. alt
  7766. />
  7767. <div style="margin: 5px 0">思维网格</div>
  7768. </div>
  7769. <div class="check" @click="addTools2(7)">
  7770. <img
  7771. src="../../assets/icon/checkNo.png"
  7772. alt
  7773. v-if="checktoolArray.indexOf(7) == -1"
  7774. />
  7775. <div class="checkDiv" v-else>
  7776. <img src="../../assets/icon/checkedIs.png" alt /><span
  7777. >已选择</span
  7778. >
  7779. </div>
  7780. </div>
  7781. </div>
  7782. <div class="tool">
  7783. <div class="whiteBIcon" @click="addTools2(1)">
  7784. <img
  7785. src="../../assets/icon/secondToolList/whiteBoard.png"
  7786. alt
  7787. />
  7788. <div style="margin: 5px 0">电子白板</div>
  7789. </div>
  7790. <div class="check" @click="addTools2(1)">
  7791. <img
  7792. src="../../assets/icon/checkNo.png"
  7793. alt
  7794. v-if="checktoolArray.indexOf(1) == -1"
  7795. />
  7796. <div class="checkDiv" v-else>
  7797. <img src="../../assets/icon/checkedIs.png" alt /><span
  7798. >已选择</span
  7799. >
  7800. </div>
  7801. </div>
  7802. </div>
  7803. <div class="tool">
  7804. <div class="whiteBIcon" @click="addTools2(52)">
  7805. <img
  7806. src="../../assets/icon/fourthToolList/text.png"
  7807. alt
  7808. />
  7809. <div style="margin: 5px 0">文档</div>
  7810. </div>
  7811. <div class="check" @click="addTools2(52)">
  7812. <img
  7813. src="../../assets/icon/checkNo.png"
  7814. alt
  7815. v-if="checktoolArray.indexOf(52) == -1"
  7816. />
  7817. <div class="checkDiv" v-else>
  7818. <img src="../../assets/icon/checkedIs.png" alt /><span
  7819. >已选择</span
  7820. >
  7821. </div>
  7822. </div>
  7823. </div>
  7824. <div class="tool">
  7825. <div class="whiteBIcon" @click="addTools2(3)">
  7826. <img
  7827. src="../../assets/icon/secondToolList/mindMapping.png"
  7828. alt
  7829. />
  7830. <div style="margin: 5px 0">思维导图</div>
  7831. </div>
  7832. <div class="check" @click="addTools2(3)">
  7833. <img
  7834. src="../../assets/icon/checkNo.png"
  7835. alt
  7836. v-if="checktoolArray.indexOf(3) == -1"
  7837. />
  7838. <div class="checkDiv" v-else>
  7839. <img src="../../assets/icon/checkedIs.png" alt /><span
  7840. >已选择</span
  7841. >
  7842. </div>
  7843. </div>
  7844. </div>
  7845. <div class="tool">
  7846. <div class="whiteBIcon" @click="addTools2(48)">
  7847. <img
  7848. src="../../assets/icon/fourthToolList/table.png"
  7849. alt
  7850. />
  7851. <div style="margin: 5px 0">表格</div>
  7852. </div>
  7853. <div class="check" @click="addTools2(48)">
  7854. <img
  7855. src="../../assets/icon/checkNo.png"
  7856. alt
  7857. v-if="checktoolArray.indexOf(48) == -1"
  7858. />
  7859. <div class="checkDiv" v-else>
  7860. <img src="../../assets/icon/checkedIs.png" alt /><span
  7861. >已选择</span
  7862. >
  7863. </div>
  7864. </div>
  7865. </div>
  7866. </div>
  7867. <div class="toolSort" v-if="toolType == 6">
  7868. <div v-show="tooC == 49">
  7869. <img
  7870. @click="addTools(tooC, toolIndex, taskCount)"
  7871. src="../../assets/icon/fourthToolList/group.png"
  7872. alt
  7873. />
  7874. <div style="margin: 5px 0">学生分组</div>
  7875. </div>
  7876. </div>
  7877. <div class="toolSort" v-if="toolType == 2">
  7878. <div class="tool">
  7879. <div class="whiteBIcon" @click="addTools2(16)">
  7880. <img
  7881. src="../../assets/icon/thirdToolList/work.png"
  7882. alt
  7883. />
  7884. <div style="margin: 5px 0">作业提交</div>
  7885. </div>
  7886. <div class="check" @click="addTools2(16)">
  7887. <img
  7888. src="../../assets/icon/checkNo.png"
  7889. alt
  7890. v-if="checktoolArray.indexOf(16) == -1"
  7891. />
  7892. <div class="checkDiv" v-else>
  7893. <img src="../../assets/icon/checkedIs.png" alt /><span
  7894. >已选择</span
  7895. >
  7896. </div>
  7897. </div>
  7898. </div>
  7899. <div class="tool">
  7900. <div class="whiteBIcon" @click="addTools2(50)">
  7901. <img
  7902. src="../../assets/icon/thirdToolList/plwork.png"
  7903. alt
  7904. />
  7905. <div style="margin: 5px 0">批量上传</div>
  7906. </div>
  7907. <div class="check" @click="addTools2(50)">
  7908. <img
  7909. src="../../assets/icon/checkNo.png"
  7910. alt
  7911. v-if="checktoolArray.indexOf(50) == -1"
  7912. />
  7913. <div class="checkDiv" v-else>
  7914. <img src="../../assets/icon/checkedIs.png" alt /><span
  7915. >已选择</span
  7916. >
  7917. </div>
  7918. </div>
  7919. </div>
  7920. </div>
  7921. <div class="toolSort" v-if="toolType == 3">
  7922. <div class="tool">
  7923. <div class="whiteBIcon" @click="addTools2(18)">
  7924. <img
  7925. src="../../assets/icon/thirdToolList/trainPlatform.png"
  7926. alt
  7927. />
  7928. <div style="margin: 5px 0">训练平台</div>
  7929. </div>
  7930. <div class="check" @click="addTools2(18)">
  7931. <img
  7932. src="../../assets/icon/checkNo.png"
  7933. alt
  7934. v-if="checktoolArray.indexOf(18) == -1"
  7935. />
  7936. <div class="checkDiv" v-else>
  7937. <img src="../../assets/icon/checkedIs.png" alt /><span
  7938. >已选择</span
  7939. >
  7940. </div>
  7941. </div>
  7942. </div>
  7943. <div class="tool">
  7944. <div class="whiteBIcon" @click="addTools2(21)">
  7945. <img
  7946. src="../../assets/icon/fourthToolList/program.png"
  7947. alt
  7948. />
  7949. <div style="margin: 5px 0">AIoT Blockly</div>
  7950. </div>
  7951. <div class="check" @click="addTools2(21)">
  7952. <img
  7953. src="../../assets/icon/checkNo.png"
  7954. alt
  7955. v-if="checktoolArray.indexOf(21) == -1"
  7956. />
  7957. <div class="checkDiv" v-else>
  7958. <img src="../../assets/icon/checkedIs.png" alt /><span
  7959. >已选择</span
  7960. >
  7961. </div>
  7962. </div>
  7963. </div>
  7964. <div class="tool">
  7965. <div class="whiteBIcon" @click="addTools2(23)">
  7966. <img
  7967. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  7968. alt
  7969. />
  7970. <div style="margin: 5px 0">AI Python</div>
  7971. </div>
  7972. <div class="check" @click="addTools2(23)">
  7973. <img
  7974. src="../../assets/icon/checkNo.png"
  7975. alt
  7976. v-if="checktoolArray.indexOf(23) == -1"
  7977. />
  7978. <div class="checkDiv" v-else>
  7979. <img src="../../assets/icon/checkedIs.png" alt /><span
  7980. >已选择</span
  7981. >
  7982. </div>
  7983. </div>
  7984. </div>
  7985. <div class="tool">
  7986. <div class="whiteBIcon" @click="addTools2(24)">
  7987. <img
  7988. src="../../assets/icon/fourthToolList/AIprogram.png"
  7989. alt
  7990. />
  7991. <div style="margin: 5px 0">AI Blockly</div>
  7992. </div>
  7993. <div class="check" @click="addTools2(24)">
  7994. <img
  7995. src="../../assets/icon/checkNo.png"
  7996. alt
  7997. v-if="checktoolArray.indexOf(24) == -1"
  7998. />
  7999. <div class="checkDiv" v-else>
  8000. <img src="../../assets/icon/checkedIs.png" alt /><span
  8001. >已选择</span
  8002. >
  8003. </div>
  8004. </div>
  8005. </div>
  8006. <div class="tool">
  8007. <div class="whiteBIcon" @click="addTools2(32)">
  8008. <img
  8009. src="../../assets/icon/thirdToolList/code.png"
  8010. alt
  8011. />
  8012. <div style="margin: 5px 0">源码编辑</div>
  8013. </div>
  8014. <div class="check" @click="addTools2(32)">
  8015. <img
  8016. src="../../assets/icon/checkNo.png"
  8017. alt
  8018. v-if="checktoolArray.indexOf(32) == -1"
  8019. />
  8020. <div class="checkDiv" v-else>
  8021. <img src="../../assets/icon/checkedIs.png" alt /><span
  8022. >已选择</span
  8023. >
  8024. </div>
  8025. </div>
  8026. </div>
  8027. <div class="tool">
  8028. <div class="whiteBIcon" @click="addTools2(57)">
  8029. <img
  8030. src="../../assets/icon/fourthToolList/cocopi.png"
  8031. alt
  8032. />
  8033. <div style="margin: 5px 0">CocoPi</div>
  8034. </div>
  8035. <div class="check" @click="addTools2(57)">
  8036. <img
  8037. src="../../assets/icon/checkNo.png"
  8038. alt
  8039. v-if="checktoolArray.indexOf(57) == -1"
  8040. />
  8041. <div class="checkDiv" v-else>
  8042. <img src="../../assets/icon/checkedIs.png" alt /><span
  8043. >已选择</span
  8044. >
  8045. </div>
  8046. </div>
  8047. </div>
  8048. <div class="tool">
  8049. <div class="whiteBIcon" @click="addTools2(63)">
  8050. <img
  8051. src="../../assets/icon/fourthToolList/Wood.png"
  8052. alt
  8053. />
  8054. <div style="margin: 5px 0">海龟编程</div>
  8055. </div>
  8056. <div class="check" @click="addTools2(63)">
  8057. <img
  8058. src="../../assets/icon/checkNo.png"
  8059. alt
  8060. v-if="checktoolArray.indexOf(63) == -1"
  8061. />
  8062. <div class="checkDiv" v-else>
  8063. <img src="../../assets/icon/checkedIs.png" alt /><span
  8064. >已选择</span
  8065. >
  8066. </div>
  8067. </div>
  8068. </div>
  8069. </div>
  8070. <div class="toolSort" v-if="toolType == 5">
  8071. <div class="tool">
  8072. <div class="whiteBIcon" @click="addTools2(28)">
  8073. <img
  8074. src="../../assets/icon/secondToolList/translation.png"
  8075. alt
  8076. />
  8077. <div style="margin: 5px 0">翻译</div>
  8078. </div>
  8079. <div class="check" @click="addTools2(28)">
  8080. <img
  8081. src="../../assets/icon/checkNo.png"
  8082. alt
  8083. v-if="checktoolArray.indexOf(28) == -1"
  8084. />
  8085. <div class="checkDiv" v-else>
  8086. <img src="../../assets/icon/checkedIs.png" alt /><span
  8087. >已选择</span
  8088. >
  8089. </div>
  8090. </div>
  8091. </div>
  8092. <div class="tool">
  8093. <div class="whiteBIcon" @click="addTools2(31)">
  8094. <img
  8095. src="../../assets/icon/secondToolList/networkPanel.png"
  8096. alt
  8097. />
  8098. <div style="margin: 5px 0">数字画板</div>
  8099. </div>
  8100. <div class="check" @click="addTools2(31)">
  8101. <img
  8102. src="../../assets/icon/checkNo.png"
  8103. alt
  8104. v-if="checktoolArray.indexOf(31) == -1"
  8105. />
  8106. <div class="checkDiv" v-else>
  8107. <img src="../../assets/icon/checkedIs.png" alt /><span
  8108. >已选择</span
  8109. >
  8110. </div>
  8111. </div>
  8112. </div>
  8113. <div class="tool">
  8114. <div class="whiteBIcon" @click="addTools2(39)">
  8115. <img
  8116. src="../../assets/icon/secondToolList/GeoGebra.png"
  8117. alt
  8118. />
  8119. <div style="margin: 5px 0">GeoGebra</div>
  8120. </div>
  8121. <div class="check" @click="addTools2(39)">
  8122. <img
  8123. src="../../assets/icon/checkNo.png"
  8124. alt
  8125. v-if="checktoolArray.indexOf(39) == -1"
  8126. />
  8127. <div class="checkDiv" v-else>
  8128. <img src="../../assets/icon/checkedIs.png" alt /><span
  8129. >已选择</span
  8130. >
  8131. </div>
  8132. </div>
  8133. </div>
  8134. <div class="tool">
  8135. <div class="whiteBIcon" @click="addTools2(66)">
  8136. <img
  8137. src="../../assets/icon/secondToolList/formulaEdi.png"
  8138. alt
  8139. />
  8140. <div style="margin: 5px 0">公式编辑</div>
  8141. </div>
  8142. <div class="check" @click="addTools2(66)">
  8143. <img
  8144. src="../../assets/icon/checkNo.png"
  8145. alt
  8146. v-if="checktoolArray.indexOf(66) == -1"
  8147. />
  8148. <div class="checkDiv" v-else>
  8149. <img src="../../assets/icon/checkedIs.png" alt /><span
  8150. >已选择</span
  8151. >
  8152. </div>
  8153. </div>
  8154. </div>
  8155. <div class="tool">
  8156. <div class="whiteBIcon" @click="addTools2(67)">
  8157. <img
  8158. src="../../assets/icon/secondToolList/molStr.png"
  8159. alt
  8160. />
  8161. <div style="margin: 5px 0">分子结构</div>
  8162. </div>
  8163. <div class="check" @click="addTools2(67)">
  8164. <img
  8165. src="../../assets/icon/checkNo.png"
  8166. alt
  8167. v-if="checktoolArray.indexOf(67) == -1"
  8168. />
  8169. <div class="checkDiv" v-else>
  8170. <img src="../../assets/icon/checkedIs.png" alt /><span
  8171. >已选择</span
  8172. >
  8173. </div>
  8174. </div>
  8175. </div>
  8176. <div class="tool">
  8177. <div class="whiteBIcon" @click="addTools2(68)">
  8178. <img
  8179. src="../../assets/icon/secondToolList/timeAxis.png"
  8180. alt
  8181. />
  8182. <div style="margin: 5px 0">时间轴</div>
  8183. </div>
  8184. <div class="check" @click="addTools2(68)">
  8185. <img
  8186. src="../../assets/icon/checkNo.png"
  8187. alt
  8188. v-if="checktoolArray.indexOf(68) == -1"
  8189. />
  8190. <div class="checkDiv" v-else>
  8191. <img src="../../assets/icon/checkedIs.png" alt /><span
  8192. >已选择</span
  8193. >
  8194. </div>
  8195. </div>
  8196. </div>
  8197. </div>
  8198. <div class="toolSort" v-if="toolType == 7">
  8199. <div class="tool">
  8200. <div class="whiteBIcon" @click="addTools2(40)">
  8201. <img
  8202. src="../../assets/icon/secondToolList/eval.png"
  8203. alt
  8204. />
  8205. <div style="margin: 5px 0">个人评价</div>
  8206. </div>
  8207. <div class="check" @click="addTools2(40)">
  8208. <img
  8209. src="../../assets/icon/checkNo.png"
  8210. alt
  8211. v-if="checktoolArray.indexOf(40) == -1"
  8212. />
  8213. <div class="checkDiv" v-else>
  8214. <img src="../../assets/icon/checkedIs.png" alt /><span
  8215. >已选择</span
  8216. >
  8217. </div>
  8218. </div>
  8219. </div>
  8220. </div>
  8221. <div class="toolSort" v-if="toolType == 4">
  8222. <div class="tool">
  8223. <div class="whiteBIcon" @click="addTools2(26)">
  8224. <img
  8225. src="../../assets/icon/thirdToolList/courseDesign.png"
  8226. alt
  8227. />
  8228. <div style="margin: 5px 0">课程设计</div>
  8229. </div>
  8230. <div class="check" @click="addTools2(26)">
  8231. <img
  8232. src="../../assets/icon/checkNo.png"
  8233. alt
  8234. v-if="checktoolArray.indexOf(26) == -1"
  8235. />
  8236. <div class="checkDiv" v-else>
  8237. <img src="../../assets/icon/checkedIs.png" alt /><span
  8238. >已选择</span
  8239. >
  8240. </div>
  8241. </div>
  8242. </div>
  8243. <div class="tool">
  8244. <div class="whiteBIcon" @click="addTools2(25)">
  8245. <img
  8246. src="../../assets/icon/thirdToolList/evalua.png"
  8247. alt
  8248. />
  8249. <div style="margin: 5px 0">目标管理</div>
  8250. </div>
  8251. <div class="check" @click="addTools2(25)">
  8252. <img
  8253. src="../../assets/icon/checkNo.png"
  8254. alt
  8255. v-if="checktoolArray.indexOf(25) == -1"
  8256. />
  8257. <div class="checkDiv" v-else>
  8258. <img src="../../assets/icon/checkedIs.png" alt /><span
  8259. >已选择</span
  8260. >
  8261. </div>
  8262. </div>
  8263. </div>
  8264. </div>
  8265. </div>
  8266. </div>
  8267. </div>
  8268. </div> -->
  8269. <div
  8270. class="vedioBox"
  8271. style="margin-top: 10px; border-radius: 20px"
  8272. v-if="
  8273. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8274. .eList &&
  8275. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8276. .eList.length &&
  8277. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8278. .eList.length > 0 &&
  8279. tType != 2
  8280. "
  8281. >
  8282. <div
  8283. class="queTop"
  8284. style="
  8285. font-size: 20px;
  8286. padding: 15px 0 15px 37px;
  8287. font-weight: bold;
  8288. "
  8289. >
  8290. <!-- <div class="question" style="width: 30px">
  8291. <img src="../assets/icon/toolIcon.png" alt />
  8292. </div>
  8293. <div class="queTitle">
  8294. <div>工具</div>
  8295. </div>-->
  8296. 评一评
  8297. </div>
  8298. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  8299. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  8300. <el-table
  8301. :data="
  8302. chapInfoList[courseType].chapterInfo[0].taskJson[
  8303. taskCount
  8304. ].eList
  8305. "
  8306. :header-cell-style="{ background: '#F0F4FA' }"
  8307. :row-class-name="tableRowClassName"
  8308. border
  8309. stripe
  8310. style="width: 100%"
  8311. >
  8312. <el-table-column
  8313. label="评价名称"
  8314. align="center"
  8315. >
  8316. <template slot-scope="scope"
  8317. ><div>{{ scope.row.value }}</div></template
  8318. >
  8319. </el-table-column>
  8320. <el-table-column
  8321. label="评价描述"
  8322. align="center"
  8323. >
  8324. <template slot-scope="scope"
  8325. ><div>
  8326. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  8327. </div></template
  8328. >
  8329. </el-table-column>
  8330. <el-table-column label="目标" align="center">
  8331. <template slot-scope="scope"
  8332. ><div>
  8333. {{
  8334. scope.row.target
  8335. ? scope.row.target[scope.row.target.length - 1]
  8336. : "-"
  8337. }}
  8338. </div></template
  8339. ></el-table-column
  8340. >
  8341. </el-table>
  8342. <!-- <div
  8343. v-for="(eItem, eIndex) in chapInfoList[courseType]
  8344. .chapterInfo[0].taskJson[taskCount].eList"
  8345. :key="eIndex"
  8346. class="elist_input_box"
  8347. >
  8348. <div style="width: 95%">
  8349. <div
  8350. style="
  8351. display: flex;
  8352. flex-direction: row;
  8353. flex-wrap: nowrap;
  8354. align-items: center;
  8355. "
  8356. >
  8357. <div style="max-width: calc(100% - 285px)">
  8358. <span>{{ eItem.value }}</span>
  8359. </div>
  8360. <div
  8361. style="
  8362. padding-left: 25px;
  8363. display: flex;
  8364. flex-direction: row;
  8365. align-items: center;
  8366. "
  8367. >
  8368. <el-rate
  8369. v-model="eItem.score"
  8370. :colors="colors"
  8371. disabled
  8372. ></el-rate>
  8373. </div>
  8374. </div>
  8375. <div class="elist_inptu_text" style="padding-left: 10px">
  8376. <span v-if="eItem.detail != ''">{{
  8377. eItem.detail
  8378. }}</span>
  8379. <span v-else style="color: #b2b1b3; font-size: 14px"
  8380. >暂无描述...</span
  8381. >
  8382. </div>
  8383. </div>
  8384. </div> -->
  8385. </div>
  8386. <div
  8387. v-if="evalua"
  8388. style="
  8389. border: 1px solid #e5e5e5;
  8390. max-width: 650px;
  8391. width: 100%;
  8392. margin-top: 20px;
  8393. box-shadow: 3px 1px 15px 3px #e0e0e0;
  8394. "
  8395. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  8396. >
  8397. <div class="e_add_top">
  8398. <div class="e_add_title" style="width: 100%">
  8399. <!-- <span>目标管理名称</span> -->
  8400. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  8401. <img
  8402. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  8403. src="../../assets/line.png"
  8404. class="cru_line"
  8405. style="
  8406. width: 125px;
  8407. height: 20px;
  8408. bottom: -10px;
  8409. left: 5px;
  8410. "
  8411. />
  8412. <!-- <el-input
  8413. v-model="eTitle"
  8414. placeholder="请输入名称"
  8415. @change="setMindData"
  8416. ></el-input>-->
  8417. <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>
  8418. <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>
  8419. </div>
  8420. </div>
  8421. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  8422. <div class="e_add_list_pbox">
  8423. <div class="e_add_list_pbox_title">
  8424. <!-- <span class="type_title">切换模式</span> -->
  8425. <div class="type_content">
  8426. <span
  8427. :class="{ active: typeMode == 1 }"
  8428. @click="typeMode = 1"
  8429. >目标树</span
  8430. >
  8431. <span
  8432. :class="{ active: typeMode == 2 }"
  8433. @click="typeMode = 2"
  8434. >目标罗盘</span
  8435. >
  8436. <!-- <span
  8437. :class="{ active: typeMode == 3 }"
  8438. @click="typeMode = 3"
  8439. >目标看板</span
  8440. > -->
  8441. </div>
  8442. </div>
  8443. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  8444. <Mind
  8445. :showBar="false"
  8446. :mindData="data"
  8447. style="width: 100%"
  8448. v-show="typeMode == 1"
  8449. ></Mind>
  8450. <Sunburst
  8451. :Josn="eJson"
  8452. :num="eJSONNum"
  8453. style="width: 100%"
  8454. v-if="typeMode == 2"
  8455. ></Sunburst>
  8456. <SeeBoard
  8457. :Josn="eJson"
  8458. :num="eJSONNum"
  8459. :ename="eTitle"
  8460. style="width: 100%"
  8461. v-if="typeMode == 3"
  8462. >
  8463. </SeeBoard>
  8464. </div>
  8465. </div>
  8466. </div>
  8467. </div>
  8468. </div>
  8469. </div>
  8470. <!-- <div
  8471. class="project_box"
  8472. style="margin-top: 15px; padding-bottom: 30px"
  8473. >
  8474. <div
  8475. style="
  8476. display: flex;
  8477. flex-wrap: nowrap;
  8478. flex-direction: column;
  8479. position: relative;
  8480. "
  8481. >
  8482. <div class="queTop">
  8483. <div class="question">
  8484. <img src="../../assets/icon/homeWork.png" alt="" />
  8485. </div>
  8486. <div class="queTitle">
  8487. <div>作业提交<span>(提交图文视频等)</span></div>
  8488. <div>:任务:{{ task.task }}</div>
  8489. </div>
  8490. </div>
  8491. <div class="ediBottom">
  8492. <div
  8493. class="addEditor"
  8494. style="margin-top: 23px"
  8495. @click="openAddWork"
  8496. v-if="!isNoHomeWork"
  8497. >
  8498. 选择文件
  8499. </div>
  8500. <div
  8501. class="addEditor"
  8502. style="margin-top: 23px"
  8503. @click="openAddWork"
  8504. v-else
  8505. >
  8506. 已提交
  8507. </div>
  8508. </div>
  8509. </div>
  8510. </div>-->
  8511. </div>
  8512. </div>
  8513. <el-dialog
  8514. title="作业提交"
  8515. :visible.sync="dialogVisible"
  8516. :append-to-body="true"
  8517. width="500px"
  8518. :before-close="handleClose"
  8519. class="dialog_change"
  8520. >
  8521. <div class="marginT">
  8522. <div>上传文件</div>
  8523. <div style="display: flex; gap: 10px">
  8524. <div
  8525. class="chapter_add"
  8526. @click="addImg($event)"
  8527. v-if="studyJuri[0].cover.length == 0"
  8528. >
  8529. <div class="up_photo">
  8530. <img src="../../assets/icon/uploadImg.png" alt />
  8531. </div>
  8532. <!-- <input
  8533. type="file"
  8534. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8535. style="display: none"
  8536. @change="beforeUpload1($event, 1)"
  8537. /> -->
  8538. <input
  8539. type="file"
  8540. accept="*"
  8541. style="display: none"
  8542. @change="beforeUpload1($event, 1)"
  8543. />
  8544. <!-- <input
  8545. type="file"
  8546. accept="image/*"
  8547. capture="camera"
  8548. style="display: none"
  8549. @change="beforeUpload1($event, 1)"
  8550. /> -->
  8551. </div>
  8552. <div
  8553. class="chapter_add"
  8554. @click="addImg($event)"
  8555. v-if="studyJuri[0].cover.length == 0"
  8556. >
  8557. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  8558. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  8559. </div>
  8560. <input
  8561. type="file"
  8562. accept="image/*"
  8563. capture="camera"
  8564. style="display: none"
  8565. @change="beforeUpload1($event, 1)"
  8566. />
  8567. </div>
  8568. </div>
  8569. <div
  8570. class="chapter_add"
  8571. style="
  8572. display: flex;
  8573. width: 100%;
  8574. flex-direction: row;
  8575. flex-wrap: wrap;
  8576. justify-content: flex-start;
  8577. padding: 15px 0;
  8578. "
  8579. v-if="studyJuri[0].cover.length > 0"
  8580. >
  8581. <div class="upCover">
  8582. <img
  8583. :src="studyJuri[0].cover[0].url"
  8584. alt
  8585. v-if="fileType == 0"
  8586. />
  8587. <img :src="word" alt v-else-if="fileType == 1" />
  8588. <img :src="video" alt v-else-if="fileType == 2" />
  8589. <img :src="word2" alt v-else-if="fileType == 3" />
  8590. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8591. <div class="deleteWord" @click="clean(1)">
  8592. <img src="../../assets/icon/deleteWorks.png" alt />
  8593. </div>
  8594. </div>
  8595. </div>
  8596. </div>
  8597. <div
  8598. class="upload_send"
  8599. @click="addCourseWorks(taskCount)"
  8600. v-if="!proVisible"
  8601. >
  8602. 提交
  8603. </div>
  8604. </el-dialog>
  8605. </div>
  8606. </div>
  8607. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  8608. <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(
  8609. '/courseDetail?userid=' +
  8610. userid +
  8611. '&oid=' +
  8612. oid +
  8613. '&org=' +
  8614. org +
  8615. '&cid=' +
  8616. classId +
  8617. '&courseId=' +
  8618. id +
  8619. '&tType=' +
  8620. tType +
  8621. '&screenType=' +
  8622. screenType+
  8623. '&role=' +
  8624. role
  8625. )"></classRoomHelper>
  8626. <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(
  8627. '/courseDetail?userid=' +
  8628. userid +
  8629. '&oid=' +
  8630. oid +
  8631. '&org=' +
  8632. org +
  8633. '&cid=' +
  8634. classId +
  8635. '&courseId=' +
  8636. id +
  8637. '&tType=' +
  8638. tType +
  8639. '&screenType=' +
  8640. screenType+
  8641. '&role=' +
  8642. role
  8643. )"></studentClassRoomHelper>
  8644. <div
  8645. class="pButton"
  8646. @click="(pzDialog = true), selectPz()"
  8647. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8648. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8649. >
  8650. <!-- 批 -->
  8651. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  8652. </div>
  8653. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8654. <div class="pzTop2">
  8655. <!-- <div>评论</div>
  8656. <div @click="pzDialog = false">
  8657. <img src="../../assets/close1.png" alt="" />
  8658. </div> -->
  8659. <div class="checkbox">
  8660. <!-- <div class="check" style="font-size: 25px; position: unset">
  8661. 评论
  8662. </div> -->
  8663. <div class="cb-tabList">
  8664. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8665. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8666. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8667. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  8668. </div>
  8669. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8670. <el-option label="时间降序" :value="1"></el-option>
  8671. <el-option label="时间升序" :value="2"></el-option>
  8672. <el-option label="我的评课" :value="3"></el-option>
  8673. </el-select>
  8674. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8675. </div>
  8676. </div>
  8677. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8678. <div class="pzListBox" v-if="pzList && pzList.length">
  8679. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8680. <div class="pzNavTop">
  8681. <div>评</div>
  8682. <div>
  8683. {{
  8684. pz.username && pz.username.length > 5
  8685. ? pz.username.substring(0, 5) + "..."
  8686. : pz.username
  8687. }}的评论
  8688. </div>
  8689. <div
  8690. class="pzDelete"
  8691. v-if="pz.userid == userid"
  8692. @click="deletePz(pz.id)"
  8693. >
  8694. 删除
  8695. </div>
  8696. </div>
  8697. <div
  8698. @click="checkImg(getImgList(pz.content))"
  8699. class="pzContent cont"
  8700. v-html="pz.content"
  8701. v-if="pz.type == '1'"
  8702. ></div>
  8703. <div class="pzContent" v-if="pz.type == '2'">
  8704. <audio :src="pz.content" controls="controls" ref="audio">
  8705. Your browser does not support the audio element.
  8706. </audio>
  8707. </div>
  8708. <div class="pzContent" v-if="pz.type == '3'">
  8709. <img
  8710. :src="pz.content"
  8711. style="width: 90%; margin: 0 auto; display: block"
  8712. @click="previewImg(pz.content)"
  8713. />
  8714. </div>
  8715. <div class="timeAndReply">
  8716. <div class="time">
  8717. {{ pz.time }}
  8718. </div>
  8719. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8720. </div>
  8721. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8722. <div
  8723. v-for="(h, hIndex) in pz.hfList"
  8724. :key="hIndex"
  8725. class="hfItem"
  8726. >
  8727. <div class="whoReplyWho">
  8728. <div class="hfName">{{ h.username }}</div>
  8729. <div class="hfImg">
  8730. <img src="../../assets/icon/newIcons/right.png" alt="" />
  8731. </div>
  8732. <div class="hfName">{{ pz.username }}</div>
  8733. </div>
  8734. <div class="hfContent" v-html="h.content"></div>
  8735. <div class="hfBottom">
  8736. <div class="hfTime">{{ h.time }}</div>
  8737. <div
  8738. class="deleteHfItem"
  8739. @click="deleteReply(h.id)"
  8740. v-if="userid == h.userid"
  8741. >
  8742. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  8743. </div>
  8744. </div>
  8745. </div>
  8746. </div>
  8747. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8748. <div class="replyInput">
  8749. <el-input v-model="reply[pzIndex]"></el-input>
  8750. </div>
  8751. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8752. </div> -->
  8753. </div>
  8754. </div>
  8755. <div class="noPz" v-else>
  8756. <img src="../../assets/icon/noPz.png" alt="" />
  8757. </div>
  8758. <div class="addPzButton">
  8759. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8760. 添加评论
  8761. </div>
  8762. <!-- <div class="img1">
  8763. <div @click="(addPzDialog = true), (pzType = 2)">
  8764. <img src="../../assets/audio.png" /><span>音频</span>
  8765. </div>
  8766. </div> -->
  8767. </div>
  8768. </div>
  8769. <div class="scoreList" v-if="commentTagShow==1">
  8770. <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"/>
  8771. </div>
  8772. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8773. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8774. </div>
  8775. </div>
  8776. <div
  8777. v-if="toolDialogVisible == true"
  8778. class="toolMask"
  8779. @click="toolDialogVisible = false"
  8780. ></div>
  8781. <div v-if="toolDialogVisible == true" class="addToolCss">
  8782. <div class="toolTop">
  8783. <div style="font-weight: bold">新增工具</div>
  8784. <div @click="toolDialogVisible = false">
  8785. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  8786. </div>
  8787. </div>
  8788. <div class="tool_box">
  8789. <div class="tool_type_box">
  8790. <div class="chooseWho">
  8791. <div
  8792. :class="toolType == 0 ? 'isChooseActive' : ''"
  8793. @click="(toolType = 0), $forceUpdate()"
  8794. >
  8795. 互动类
  8796. </div>
  8797. <div
  8798. :class="toolType == 1 ? 'isChooseActive' : ''"
  8799. @click="(toolType = 1), $forceUpdate()"
  8800. >
  8801. 思维类
  8802. </div>
  8803. <div
  8804. :class="toolType == 2 ? 'isChooseActive' : ''"
  8805. @click="(toolType = 2), $forceUpdate()"
  8806. >
  8807. 测评类
  8808. </div>
  8809. <div
  8810. :class="toolType == 3 ? 'isChooseActive' : ''"
  8811. @click="(toolType = 3), $forceUpdate()"
  8812. >
  8813. 编程类
  8814. </div>
  8815. <div
  8816. :class="toolType == 5 ? 'isChooseActive' : ''"
  8817. @click="(toolType = 5), $forceUpdate()"
  8818. >
  8819. 学科类
  8820. </div>
  8821. </div>
  8822. </div>
  8823. <div>
  8824. <div class="toolSort" v-if="toolType == 0">
  8825. <div
  8826. class="tool"
  8827. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8828. @click="addTools2(10)"
  8829. >
  8830. <div class="whiteBIcon">
  8831. <img src="../../assets/icon/thirdToolList/time.png" alt />
  8832. <div style="margin: 5px 0">倒计时</div>
  8833. </div>
  8834. <div class="check">
  8835. <div
  8836. v-if="checktoolArray.indexOf(10) == -1"
  8837. class="noChoose"
  8838. ></div>
  8839. <div v-else class="isChoose"></div>
  8840. </div>
  8841. </div>
  8842. <div
  8843. class="tool"
  8844. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8845. @click="addTools2(65)"
  8846. >
  8847. <div class="whiteBIcon">
  8848. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  8849. <div style="margin: 5px 0">挑人</div>
  8850. </div>
  8851. <div class="check">
  8852. <div
  8853. v-if="checktoolArray.indexOf(65) == -1"
  8854. class="noChoose"
  8855. ></div>
  8856. <div v-else class="isChoose"></div>
  8857. </div>
  8858. </div>
  8859. </div>
  8860. <div class="toolSort" v-if="toolType == 1">
  8861. <div
  8862. class="tool"
  8863. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8864. @click="addTools2(7)"
  8865. >
  8866. <div class="whiteBIcon">
  8867. <img
  8868. src="../../assets/icon/secondToolList/mindNetwork.png"
  8869. alt
  8870. />
  8871. <div style="margin: 5px 0">思维网格</div>
  8872. </div>
  8873. <div class="check">
  8874. <div
  8875. v-if="checktoolArray.indexOf(7) == -1"
  8876. class="noChoose"
  8877. ></div>
  8878. <div v-else class="isChoose"></div>
  8879. </div>
  8880. </div>
  8881. <div
  8882. class="tool"
  8883. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8884. @click="addTools2(1)"
  8885. >
  8886. <div class="whiteBIcon">
  8887. <img
  8888. src="../../assets/icon/secondToolList/whiteBoard.png"
  8889. alt
  8890. />
  8891. <div style="margin: 5px 0">电子白板</div>
  8892. </div>
  8893. <div class="check">
  8894. <div
  8895. v-if="checktoolArray.indexOf(1) == -1"
  8896. class="noChoose"
  8897. ></div>
  8898. <div v-else class="isChoose"></div>
  8899. </div>
  8900. </div>
  8901. <div
  8902. class="tool"
  8903. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8904. @click="addTools2(52)"
  8905. >
  8906. <div class="whiteBIcon">
  8907. <img src="../../assets/icon/fourthToolList/text.png" alt />
  8908. <div style="margin: 5px 0">文档</div>
  8909. </div>
  8910. <div class="check">
  8911. <div
  8912. v-if="checktoolArray.indexOf(52) == -1"
  8913. class="noChoose"
  8914. ></div>
  8915. <div v-else class="isChoose"></div>
  8916. </div>
  8917. </div>
  8918. <div
  8919. class="tool"
  8920. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8921. @click="addTools2(3)"
  8922. >
  8923. <div class="whiteBIcon">
  8924. <img
  8925. src="../../assets/icon/secondToolList/mindMapping.png"
  8926. alt
  8927. />
  8928. <div style="margin: 5px 0">思维导图</div>
  8929. </div>
  8930. <div class="check">
  8931. <div
  8932. v-if="checktoolArray.indexOf(3) == -1"
  8933. class="noChoose"
  8934. ></div>
  8935. <div v-else class="isChoose"></div>
  8936. </div>
  8937. </div>
  8938. <div
  8939. class="tool"
  8940. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8941. @click="addTools2(48)"
  8942. >
  8943. <div class="whiteBIcon">
  8944. <img src="../../assets/icon/fourthToolList/table.png" alt />
  8945. <div style="margin: 5px 0">表格</div>
  8946. </div>
  8947. <div class="check">
  8948. <div
  8949. v-if="checktoolArray.indexOf(48) == -1"
  8950. class="noChoose"
  8951. ></div>
  8952. <div v-else class="isChoose"></div>
  8953. </div>
  8954. </div>
  8955. </div>
  8956. <div class="toolSort" v-if="toolType == 6">
  8957. <div v-show="tooC == 49">
  8958. <img
  8959. @click="addTools(tooC, toolIndex, taskCount)"
  8960. src="../../assets/icon/fourthToolList/group.png"
  8961. alt
  8962. />
  8963. <div style="margin: 5px 0">学生分组</div>
  8964. </div>
  8965. </div>
  8966. <div class="toolSort" v-if="toolType == 2">
  8967. <div
  8968. class="tool"
  8969. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8970. @click="addTools2(16)"
  8971. >
  8972. <div class="whiteBIcon">
  8973. <img src="../../assets/icon/thirdToolList/work.png" alt />
  8974. <div style="margin: 5px 0">作业提交</div>
  8975. </div>
  8976. <div class="check">
  8977. <div
  8978. v-if="checktoolArray.indexOf(16) == -1"
  8979. class="noChoose"
  8980. ></div>
  8981. <div v-else class="isChoose"></div>
  8982. </div>
  8983. </div>
  8984. <div
  8985. class="tool"
  8986. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8987. @click="addTools2(50)"
  8988. >
  8989. <div class="whiteBIcon">
  8990. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  8991. <div style="margin: 5px 0">批量上传</div>
  8992. </div>
  8993. <div class="check">
  8994. <div
  8995. v-if="checktoolArray.indexOf(50) == -1"
  8996. class="noChoose"
  8997. ></div>
  8998. <div v-else class="isChoose"></div>
  8999. </div>
  9000. </div>
  9001. </div>
  9002. <div class="toolSort" v-if="toolType == 3">
  9003. <div
  9004. class="tool"
  9005. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  9006. @click="addTools2(18)"
  9007. >
  9008. <div class="whiteBIcon">
  9009. <img
  9010. src="../../assets/icon/thirdToolList/trainPlatform.png"
  9011. alt
  9012. />
  9013. <div style="margin: 5px 0">训练平台</div>
  9014. </div>
  9015. <div class="check">
  9016. <div
  9017. v-if="checktoolArray.indexOf(18) == -1"
  9018. class="noChoose"
  9019. ></div>
  9020. <div v-else class="isChoose"></div>
  9021. </div>
  9022. </div>
  9023. <div
  9024. class="tool"
  9025. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  9026. @click="addTools2(21)"
  9027. >
  9028. <div class="whiteBIcon">
  9029. <img src="../../assets/icon/fourthToolList/program.png" alt />
  9030. <div style="margin: 5px 0">AIoT Blockly</div>
  9031. </div>
  9032. <div class="check">
  9033. <div
  9034. v-if="checktoolArray.indexOf(21) == -1"
  9035. class="noChoose"
  9036. ></div>
  9037. <div v-else class="isChoose"></div>
  9038. </div>
  9039. </div>
  9040. <div
  9041. class="tool"
  9042. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  9043. @click="addTools2(23)"
  9044. >
  9045. <div class="whiteBIcon">
  9046. <img
  9047. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  9048. alt
  9049. />
  9050. <div style="margin: 5px 0">AI Python</div>
  9051. </div>
  9052. <div class="check">
  9053. <div
  9054. v-if="checktoolArray.indexOf(23) == -1"
  9055. class="noChoose"
  9056. ></div>
  9057. <div v-else class="isChoose"></div>
  9058. </div>
  9059. </div>
  9060. <div
  9061. class="tool"
  9062. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  9063. @click="addTools2(24)"
  9064. >
  9065. <div class="whiteBIcon">
  9066. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  9067. <div style="margin: 5px 0">AI Blockly</div>
  9068. </div>
  9069. <div class="check">
  9070. <div
  9071. v-if="checktoolArray.indexOf(24) == -1"
  9072. class="noChoose"
  9073. ></div>
  9074. <div v-else class="isChoose"></div>
  9075. </div>
  9076. </div>
  9077. <div
  9078. class="tool"
  9079. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  9080. @click="addTools2(32)"
  9081. >
  9082. <div class="whiteBIcon">
  9083. <img src="../../assets/icon/thirdToolList/code.png" alt />
  9084. <div style="margin: 5px 0">源码编辑</div>
  9085. </div>
  9086. <div class="check">
  9087. <div
  9088. v-if="checktoolArray.indexOf(32) == -1"
  9089. class="noChoose"
  9090. ></div>
  9091. <div v-else class="isChoose"></div>
  9092. </div>
  9093. </div>
  9094. <div
  9095. class="tool"
  9096. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  9097. @click="addTools2(57)"
  9098. >
  9099. <div class="whiteBIcon">
  9100. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  9101. <div style="margin: 5px 0">CocoPi</div>
  9102. </div>
  9103. <div class="check">
  9104. <div
  9105. v-if="checktoolArray.indexOf(57) == -1"
  9106. class="noChoose"
  9107. ></div>
  9108. <div v-else class="isChoose"></div>
  9109. </div>
  9110. </div>
  9111. <div
  9112. class="tool"
  9113. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  9114. @click="addTools2(63)"
  9115. >
  9116. <div class="whiteBIcon">
  9117. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  9118. <div style="margin: 5px 0">海龟编程</div>
  9119. </div>
  9120. <div class="check">
  9121. <div
  9122. v-if="checktoolArray.indexOf(63) == -1"
  9123. class="noChoose"
  9124. ></div>
  9125. <div v-else class="isChoose"></div>
  9126. </div>
  9127. </div>
  9128. <div
  9129. class="tool"
  9130. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  9131. @click="addTools2(71)"
  9132. >
  9133. <div class="whiteBIcon">
  9134. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  9135. <div style="margin: 5px 0">AI智能体</div>
  9136. </div>
  9137. <div class="check">
  9138. <div
  9139. v-if="checktoolArray.indexOf(71) == -1"
  9140. class="noChoose"
  9141. ></div>
  9142. <div v-else class="isChoose"></div>
  9143. </div>
  9144. </div>
  9145. </div>
  9146. <div class="toolSort" v-if="toolType == 7">
  9147. <div
  9148. class="tool"
  9149. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  9150. @click="addTools2(40)"
  9151. >
  9152. <div class="whiteBIcon">
  9153. <img src="../../assets/icon/secondToolList/eval.png" alt />
  9154. <div style="margin: 5px 0">个人评价</div>
  9155. </div>
  9156. <div class="check">
  9157. <div
  9158. v-if="checktoolArray.indexOf(40) == -1"
  9159. class="noChoose"
  9160. ></div>
  9161. <div v-else class="isChoose"></div>
  9162. </div>
  9163. </div>
  9164. </div>
  9165. <div class="toolSort" v-if="toolType == 5">
  9166. <div
  9167. class="tool"
  9168. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  9169. @click="addTools2(28)"
  9170. >
  9171. <div class="whiteBIcon">
  9172. <img
  9173. src="../../assets/icon/secondToolList/translation.png"
  9174. alt
  9175. />
  9176. <div style="margin: 5px 0">翻译</div>
  9177. </div>
  9178. <div class="check">
  9179. <div
  9180. v-if="checktoolArray.indexOf(28) == -1"
  9181. class="noChoose"
  9182. ></div>
  9183. <div v-else class="isChoose"></div>
  9184. </div>
  9185. </div>
  9186. <div
  9187. class="tool"
  9188. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  9189. @click="addTools2(31)"
  9190. >
  9191. <div class="whiteBIcon">
  9192. <img
  9193. src="../../assets/icon/secondToolList/networkPanel.png"
  9194. alt
  9195. />
  9196. <div style="margin: 5px 0">数字画板</div>
  9197. </div>
  9198. <div class="check">
  9199. <div
  9200. v-if="checktoolArray.indexOf(31) == -1"
  9201. class="noChoose"
  9202. ></div>
  9203. <div v-else class="isChoose"></div>
  9204. </div>
  9205. </div>
  9206. <div
  9207. class="tool"
  9208. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  9209. @click="addTools2(39)"
  9210. >
  9211. <div class="whiteBIcon">
  9212. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  9213. <div style="margin: 5px 0">GeoGebra</div>
  9214. </div>
  9215. <div class="check">
  9216. <div
  9217. v-if="checktoolArray.indexOf(39) == -1"
  9218. class="noChoose"
  9219. ></div>
  9220. <div v-else class="isChoose"></div>
  9221. </div>
  9222. </div>
  9223. <div
  9224. class="tool"
  9225. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  9226. @click="addTools2(66)"
  9227. >
  9228. <div class="whiteBIcon">
  9229. <img
  9230. src="../../assets/icon/secondToolList/formulaEdi.png"
  9231. alt
  9232. />
  9233. <div style="margin: 5px 0">公式编辑</div>
  9234. </div>
  9235. <div class="check">
  9236. <div
  9237. v-if="checktoolArray.indexOf(66) == -1"
  9238. class="noChoose"
  9239. ></div>
  9240. <div v-else class="isChoose"></div>
  9241. </div>
  9242. </div>
  9243. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  9244. <div class="whiteBIcon" @click="addTools2(67)">
  9245. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  9246. <div style="margin: 5px 0">分子结构</div>
  9247. </div>
  9248. <div class="check" @click="addTools2(67)">
  9249. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  9250. <div v-else class="isChoose"></div>
  9251. </div>
  9252. </div> -->
  9253. <div
  9254. class="tool"
  9255. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  9256. @click="addTools2(68)"
  9257. >
  9258. <div class="whiteBIcon">
  9259. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  9260. <div style="margin: 5px 0">时间轴</div>
  9261. </div>
  9262. <div class="check">
  9263. <div
  9264. v-if="checktoolArray.indexOf(68) == -1"
  9265. class="noChoose"
  9266. ></div>
  9267. <div v-else class="isChoose"></div>
  9268. </div>
  9269. </div>
  9270. <!-- <div
  9271. class="tool"
  9272. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  9273. @click="addTools2(69)"
  9274. >
  9275. <div class="whiteBIcon">
  9276. <img src="../../assets/icon/secondToolList/english.png" alt />
  9277. <div style="margin: 5px 0">英语写作</div>
  9278. </div>
  9279. <div class="check">
  9280. <div
  9281. v-if="checktoolArray.indexOf(69) == -1"
  9282. class="noChoose"
  9283. ></div>
  9284. <div v-else class="isChoose"></div>
  9285. </div>
  9286. </div> -->
  9287. </div>
  9288. <div class="toolSort" v-if="toolType == 4">
  9289. <div
  9290. class="tool"
  9291. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  9292. @click="addTools2(26)"
  9293. >
  9294. <div class="whiteBIcon">
  9295. <img
  9296. src="../../assets/icon/thirdToolList/courseDesign.png"
  9297. alt
  9298. />
  9299. <div style="margin: 5px 0">课程设计</div>
  9300. </div>
  9301. <div class="check">
  9302. <div
  9303. v-if="checktoolArray.indexOf(26) == -1"
  9304. class="noChoose"
  9305. ></div>
  9306. <div v-else class="isChoose"></div>
  9307. </div>
  9308. </div>
  9309. <div
  9310. class="tool"
  9311. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  9312. @click="addTools2(25)"
  9313. >
  9314. <div class="whiteBIcon">
  9315. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  9316. <div style="margin: 5px 0">目标管理</div>
  9317. </div>
  9318. <div class="check">
  9319. <div
  9320. v-if="checktoolArray.indexOf(25) == -1"
  9321. class="noChoose"
  9322. ></div>
  9323. <div v-else class="isChoose"></div>
  9324. </div>
  9325. </div>
  9326. </div>
  9327. </div>
  9328. </div>
  9329. <span
  9330. slot="footer"
  9331. class="dialog-footer"
  9332. style="display: block; text-align: center; padding: 0 0 10px 0"
  9333. >
  9334. <el-button @click="toolDialogVisible = false">取 消</el-button>
  9335. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  9336. </span>
  9337. </div>
  9338. <div
  9339. v-if="replyDialogVisible == true"
  9340. class="addDialogCss"
  9341. v-el-drag-dialog
  9342. >
  9343. <div class="pzTop">
  9344. <div class="teacherPz">
  9345. <div class="teacherPzImg">
  9346. <img src="../../assets/icon/teacherPz.png" alt="" />
  9347. </div>
  9348. <div style="margin-left: 10px; height: 25px">添加回复</div>
  9349. </div>
  9350. <div @click="replyDialogVisible = false">
  9351. <img src="../../assets/close1.png" class="pzClose" alt="" />
  9352. </div>
  9353. </div>
  9354. <div class="addPzBox">
  9355. <!-- <div class="addPzCheck">
  9356. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9357. >文本</span
  9358. >
  9359. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9360. >音频</span
  9361. >
  9362. </div> -->
  9363. <div style="height: calc(100% - 50px)">
  9364. <editor-bar
  9365. class="binfo_input pzConText"
  9366. style="width: 100% !important; margin: 0 auto"
  9367. placeholder="请输入回复描述"
  9368. v-model="reply"
  9369. @change="change"
  9370. ></editor-bar>
  9371. </div>
  9372. <div class="addTextCss" @click="addHf">确定</div>
  9373. </div>
  9374. </div>
  9375. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  9376. <div class="pzTop">
  9377. <div class="teacherPz">
  9378. <div class="teacherPzImg">
  9379. <img src="../../assets/icon/teacherPz.png" alt="" />
  9380. </div>
  9381. <div style="margin-left: 10px; height: 25px">教师评论</div>
  9382. </div>
  9383. <div @click="addPzDialog = false">
  9384. <img src="../../assets/close1.png" class="pzClose" alt="" />
  9385. </div>
  9386. </div>
  9387. <div class="addPzBox">
  9388. <div class="addPzCheck">
  9389. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9390. >文本</span
  9391. >
  9392. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  9393. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9394. >音频</span
  9395. >
  9396. </div>
  9397. <div style="height: calc(100% - 95px)">
  9398. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  9399. v-if="pzType == 1"></textarea> -->
  9400. <editor-bar
  9401. class="binfo_input pzConText"
  9402. style="width: 100% !important"
  9403. placeholder="请输入任务描述"
  9404. v-model="pzConText"
  9405. @change="change"
  9406. v-if="pzType == 1"
  9407. ></editor-bar>
  9408. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  9409. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  9410. <div @click="addImg($event)">
  9411. <el-button type="primary">上传图片</el-button>
  9412. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  9413. @change="beforeUpload1($event, 4)" />
  9414. </div>
  9415. </div> -->
  9416. </div>
  9417. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  9418. 确定
  9419. </div>
  9420. </div>
  9421. </div>
  9422. <div v-if="proVisible" class="mask">
  9423. <div class="progressBox">
  9424. <!-- <div id="closePro" class="closeCss">
  9425. <img src="../../assets/icon/close.png" alt />
  9426. </div> -->
  9427. <div class="lbox">
  9428. <img src="../../assets/loading.gif" />上传中,请稍后
  9429. </div>
  9430. <div style="margin-bottom: 10px">
  9431. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  9432. </div>
  9433. <el-progress
  9434. :text-inside="true"
  9435. :stroke-width="20"
  9436. :percentage="progress"
  9437. style="width: 80%"
  9438. ></el-progress>
  9439. </div>
  9440. </div>
  9441. <div v-if="proVisible2" class="mask">
  9442. <div class="progressBox">
  9443. <div class="lbox">
  9444. <img src="../../assets/loading.gif" />上传中,请稍后
  9445. </div>
  9446. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  9447. </div>
  9448. </div>
  9449. <el-dialog :visible.sync="pictureDialog" size="tiny">
  9450. <img width="100%" :src="dialogImageUrl" alt />
  9451. </el-dialog>
  9452. <el-dialog
  9453. :title="noteName != '' ? noteName : '查看问卷'"
  9454. :visible.sync="dialogVisible5"
  9455. :append-to-body="true"
  9456. width="1000px"
  9457. :before-close="handleClose"
  9458. class="dialog_diy dialog_diy3"
  9459. >
  9460. <div>
  9461. <div
  9462. class="a_add_title"
  9463. style="
  9464. display: flex;
  9465. flex-direction: row;
  9466. align-items: center;
  9467. justify-content: center;
  9468. "
  9469. >
  9470. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9471. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9472. </div>
  9473. <div class="a_addBox">
  9474. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9475. 题目内容
  9476. </div>
  9477. <div
  9478. class="a_add_box"
  9479. v-for="(item1, index1) in askJson.askCount"
  9480. :key="index1"
  9481. >
  9482. <div class="a_add_head">
  9483. <div style="display: flex">
  9484. <span class="askIndex"> {{ index1 + 1 }}</span>
  9485. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9486. </div>
  9487. <img
  9488. v-if="askJson.askJson[index1].img"
  9489. :src="askJson.askJson[index1].img"
  9490. style="height: 300px; margin-top: 10px; max-width: 100%"
  9491. />
  9492. </div>
  9493. <div class="a_add_body">
  9494. <div class="a_add_input">
  9495. <el-radio-group
  9496. v-model="radio[index1]"
  9497. v-if="
  9498. askJson.askJson[index1].type == '1' ||
  9499. !askJson.askJson[index1].type
  9500. "
  9501. >
  9502. <el-radio
  9503. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9504. .checkList"
  9505. :key="checkIndex"
  9506. :label="checkIndex"
  9507. :disabled="isAnswer"
  9508. class="redioStyle"
  9509. ><span v-html="item2"></span
  9510. ></el-radio>
  9511. </el-radio-group>
  9512. <el-checkbox-group
  9513. v-model="radio[index1]"
  9514. v-if="askJson.askJson[index1].type == '2'"
  9515. >
  9516. <el-checkbox
  9517. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9518. .checkList"
  9519. :key="checkIndex1"
  9520. :label="checkIndex1"
  9521. :disabled="isAnswer"
  9522. class="redioStyle"
  9523. ><span v-html="item2"></span>
  9524. </el-checkbox>
  9525. </el-checkbox-group>
  9526. </div>
  9527. </div>
  9528. </div>
  9529. </div>
  9530. </div>
  9531. <span slot="footer" class="dialog-footer">
  9532. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  9533. >取 消</el-button
  9534. >
  9535. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  9536. >确 定</el-button
  9537. >
  9538. </span>
  9539. </el-dialog>
  9540. <el-dialog
  9541. :title="noteName != '' ? noteName : '查看问卷'"
  9542. :visible.sync="dialogVisible5Teacher"
  9543. :append-to-body="true"
  9544. width="1000px"
  9545. :before-close="handleClose"
  9546. class="dialog_diy dialog_diy3"
  9547. >
  9548. <div>
  9549. <div class="w_name">
  9550. 学生姓名:<span>{{ sStudent.student }}</span>
  9551. </div>
  9552. <div
  9553. class="a_add_title"
  9554. style="
  9555. display: flex;
  9556. flex-direction: row;
  9557. align-items: center;
  9558. justify-content: center;
  9559. "
  9560. >
  9561. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9562. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9563. </div>
  9564. <div class="a_addBox">
  9565. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9566. 题目内容
  9567. </div>
  9568. <div
  9569. class="a_add_box"
  9570. v-for="(item1, index1) in askJson.askCount"
  9571. :key="index1"
  9572. >
  9573. <div class="a_add_head">
  9574. <div style="display: flex">
  9575. <span class="askIndex">{{ index1 + 1 }}</span>
  9576. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9577. </div>
  9578. <img
  9579. v-if="askJson.askJson[index1].img"
  9580. :src="askJson.askJson[index1].img"
  9581. style="height: 300px; margin-top: 10px; max-width: 100%"
  9582. />
  9583. </div>
  9584. <div class="a_add_body">
  9585. <div class="a_add_input">
  9586. <el-radio-group
  9587. v-model="radio[index1]"
  9588. v-if="
  9589. askJson.askJson[index1].type == '1' ||
  9590. !askJson.askJson[index1].type
  9591. "
  9592. >
  9593. <el-radio
  9594. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9595. .checkList"
  9596. :key="checkIndex"
  9597. :label="checkIndex"
  9598. :disabled="isAnswer"
  9599. class="redioStyle"
  9600. ><span v-html="item2"></span
  9601. ></el-radio>
  9602. </el-radio-group>
  9603. <el-checkbox-group
  9604. v-model="radio[index1]"
  9605. v-if="askJson.askJson[index1].type == '2'"
  9606. >
  9607. <el-checkbox
  9608. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9609. .checkList"
  9610. :key="checkIndex1"
  9611. :label="checkIndex1"
  9612. :disabled="isAnswer"
  9613. class="redioStyle"
  9614. ><span v-html="item2"></span>
  9615. </el-checkbox>
  9616. </el-checkbox-group>
  9617. </div>
  9618. </div>
  9619. </div>
  9620. </div>
  9621. </div>
  9622. <span slot="footer" class="dialog-footer">
  9623. <el-button
  9624. @click="dialogVisible5Teacher = false"
  9625. v-show="noteName == ''"
  9626. >取 消</el-button
  9627. >
  9628. <el-button
  9629. type="primary"
  9630. @click="addStudentAskTeacher"
  9631. v-show="noteName == ''"
  9632. >确 定</el-button
  9633. >
  9634. </span>
  9635. </el-dialog>
  9636. <el-dialog
  9637. :title="noteName != '' ? noteName : '查看选择题'"
  9638. :visible.sync="dialogVisibleChoice"
  9639. :append-to-body="true"
  9640. width="1000px"
  9641. :before-close="handleClose"
  9642. class="dialog_diy dialog_diy3"
  9643. >
  9644. <div>
  9645. <!-- <div class="a_add_title" style="
  9646. display: flex;
  9647. flex-direction: row;
  9648. align-items: center;
  9649. justify-content: center;
  9650. ">
  9651. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9652. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9653. </div> -->
  9654. <div class="a_addBox">
  9655. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9656. 题目内容
  9657. </div>
  9658. <div
  9659. class="a_add_box"
  9660. v-for="(item1, index1) in testJson.testCount"
  9661. :key="index1"
  9662. >
  9663. <div class="a_add_head">
  9664. <div style="display: flex;">
  9665. <span class="askIndex">{{ index1 + 1 }}</span>
  9666. <div
  9667. v-if="testJson.testJson[index1].type == '1'"
  9668. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9669. >
  9670. (单选题)
  9671. </div>
  9672. <div
  9673. v-if="testJson.testJson[index1].type == '2'"
  9674. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9675. >
  9676. (多选题)
  9677. </div>
  9678. <div class="renderedFor">题目:<span v-html="renderedFormula(testJson.testJson[index1].teststitle)"></span></div>
  9679. </div>
  9680. <img
  9681. v-if="testJson.testJson[index1].img"
  9682. :src="testJson.testJson[index1].img"
  9683. style="height: 300px; margin-top: 10px; max-width: 100%"
  9684. />
  9685. </div>
  9686. <div
  9687. class="timuImgBox"
  9688. v-if="
  9689. testJson.testJson[index1].timuList &&
  9690. testJson.testJson[index1].timuList.length
  9691. "
  9692. >
  9693. <div
  9694. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9695. :key="tIndex"
  9696. class="timuImg"
  9697. @click.stop="previewImg(timg.src)"
  9698. >
  9699. <img :src="timg.src" alt="" />
  9700. </div>
  9701. </div>
  9702. <div class="a_add_body">
  9703. <div class="a_add_input">
  9704. <el-radio-group
  9705. v-model="radio[index1]"
  9706. v-if="testJson.testJson[index1].type == '1'"
  9707. >
  9708. <div class="radioBox">
  9709. <el-radio
  9710. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9711. .checkList"
  9712. :key="checkIndex"
  9713. :label="checkIndex"
  9714. :disabled="isAnswer"
  9715. class="redioStyle"
  9716. >
  9717. <div
  9718. style="margin-right: 10px"
  9719. v-if="item2 && item2.imgType && item2.imgType == 1"
  9720. >
  9721. <div class="inImg" @click.stop="previewImg(item2.src)">
  9722. <img :src="item2.src" alt="" />
  9723. </div>
  9724. </div>
  9725. <span v-else v-html="item2"></span>
  9726. </el-radio>
  9727. </div>
  9728. </el-radio-group>
  9729. <el-checkbox-group
  9730. v-model="radio[index1]"
  9731. v-if="testJson.testJson[index1].type == '2'"
  9732. >
  9733. <div class="radioBox">
  9734. <el-checkbox
  9735. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9736. .checkList"
  9737. :key="checkIndex"
  9738. :label="checkIndex"
  9739. :disabled="isAnswer"
  9740. class="redioStyle"
  9741. >
  9742. <div
  9743. style="margin-right: 10px"
  9744. v-if="item2 && item2.imgType && item2.imgType == 1"
  9745. >
  9746. <div class="inImg" @click.stop="previewImg(item2.src)">
  9747. <img :src="item2.src" alt="" />
  9748. </div>
  9749. </div>
  9750. <span v-else v-html="item2"></span>
  9751. </el-checkbox>
  9752. </div>
  9753. </el-checkbox-group>
  9754. </div>
  9755. </div>
  9756. </div>
  9757. </div>
  9758. </div>
  9759. <span slot="footer" class="dialog-footer">
  9760. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9761. >取 消</el-button
  9762. >
  9763. <el-button
  9764. type="primary"
  9765. @click="addStudentTest"
  9766. v-show="noteName == ''"
  9767. >确 定</el-button
  9768. >
  9769. </span>
  9770. </el-dialog>
  9771. <el-dialog
  9772. :title="noteName != '' ? noteName : '查看选择题'"
  9773. :visible.sync="dialogVisibleChoiceTeacher"
  9774. :append-to-body="true"
  9775. width="1000px"
  9776. :before-close="handleClose"
  9777. class="dialog_diy dialog_diy3"
  9778. >
  9779. <div>
  9780. <div class="w_name">
  9781. 学生姓名:<span>{{ sStudent.student }}</span>
  9782. </div>
  9783. <div class="a_addBox">
  9784. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9785. 题目内容
  9786. </div>
  9787. <div
  9788. class="a_add_box"
  9789. v-for="(item1, index1) in testJson.testCount"
  9790. :key="index1"
  9791. >
  9792. <div class="a_add_head">
  9793. <div style="display: flex">
  9794. <span class="askIndex">{{ index1 + 1 }}</span>
  9795. <div
  9796. v-if="testJson.testJson[index1].type == '1'"
  9797. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9798. >
  9799. (单选题)
  9800. </div>
  9801. <div
  9802. v-if="testJson.testJson[index1].type == '2'"
  9803. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9804. >
  9805. (多选题)
  9806. </div>
  9807. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9808. </div>
  9809. <img
  9810. v-if="testJson.testJson[index1].img"
  9811. :src="testJson.testJson[index1].img"
  9812. style="height: 300px; margin-top: 10px; max-width: 100%"
  9813. />
  9814. </div>
  9815. <div
  9816. class="timuImgBox"
  9817. v-if="
  9818. testJson.testJson[index1].timuList &&
  9819. testJson.testJson[index1].timuList.length
  9820. "
  9821. >
  9822. <div
  9823. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9824. :key="tIndex"
  9825. class="timuImg"
  9826. @click.stop="previewImg(timg.src)"
  9827. >
  9828. <img :src="timg.src" alt="" />
  9829. </div>
  9830. </div>
  9831. <div class="a_add_body">
  9832. <div class="a_add_input">
  9833. <el-radio-group
  9834. v-model="radio[index1]"
  9835. v-if="testJson.testJson[index1].type == '1'"
  9836. >
  9837. <div class="radioBox">
  9838. <el-radio
  9839. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9840. .checkList"
  9841. :key="checkIndex"
  9842. :label="checkIndex"
  9843. :disabled="isAnswer"
  9844. class="redioStyle"
  9845. >
  9846. <div
  9847. style="margin-right: 10px"
  9848. v-if="item2 && item2.imgType && item2.imgType == 1"
  9849. >
  9850. <div class="inImg" @click.stop="previewImg(item2.src)">
  9851. <img :src="item2.src" alt="" />
  9852. </div>
  9853. </div>
  9854. <span v-else v-html="item2"></span>
  9855. </el-radio>
  9856. </div>
  9857. </el-radio-group>
  9858. <el-checkbox-group
  9859. v-model="radio[index1]"
  9860. v-if="testJson.testJson[index1].type == '2'"
  9861. >
  9862. <div class="radioBox">
  9863. <el-checkbox
  9864. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9865. .checkList"
  9866. :key="checkIndex"
  9867. :label="checkIndex"
  9868. :disabled="isAnswer"
  9869. class="redioStyle"
  9870. >
  9871. <div
  9872. style="margin-right: 10px"
  9873. v-if="item2 && item2.imgType && item2.imgType == 1"
  9874. >
  9875. <div class="inImg" @click.stop="previewImg(item2.src)">
  9876. <img :src="item2.src" alt="" />
  9877. </div>
  9878. </div>
  9879. <span v-else v-html="item2"></span>
  9880. </el-checkbox>
  9881. </div>
  9882. </el-checkbox-group>
  9883. </div>
  9884. </div>
  9885. </div>
  9886. </div>
  9887. </div>
  9888. <span slot="footer" class="dialog-footer">
  9889. <el-button
  9890. @click="dialogVisibleChoiceTeacher = false"
  9891. v-show="noteName == ''"
  9892. >取 消</el-button
  9893. >
  9894. <el-button
  9895. type="primary"
  9896. @click="addStudentTestTeacher"
  9897. v-show="noteName == ''"
  9898. >确 定</el-button
  9899. >
  9900. </span>
  9901. </el-dialog>
  9902. <el-dialog
  9903. title="查看富文本"
  9904. :visible.sync="dialogVisible1"
  9905. :append-to-body="true"
  9906. width="500px"
  9907. :before-close="handleClose"
  9908. class="dialog_diy textCss"
  9909. >
  9910. <el-form style="font-size: 20px">
  9911. <el-form-item label="文本标题" class="textTitle">
  9912. <div style="font-size: 20px">{{ text.name }}</div>
  9913. </el-form-item>
  9914. <div>富文本内容</div>
  9915. <div
  9916. v-html="text.url"
  9917. style="font-size: 18px; padding: 40px 0 0 0"
  9918. ></div>
  9919. </el-form>
  9920. <span slot="footer" class="dialog-footer">
  9921. <el-button type="primary" @click="dialogVisible1 = false"
  9922. >确定</el-button
  9923. >
  9924. </span>
  9925. </el-dialog>
  9926. <el-dialog
  9927. title="文件预览"
  9928. :visible.sync="dialogVisible3"
  9929. width="50%"
  9930. :before-close="handleClose"
  9931. class="dialog_diy"
  9932. :class="{ fullStyle: full }"
  9933. >
  9934. <div slot="title" class="header-title">
  9935. <div style="color: #fff">文件预览</div>
  9936. <div style="position: absolute; top: 19px; right: 50px">
  9937. <img
  9938. src="../../assets/full.png"
  9939. style="height: 16px; cursor: pointer"
  9940. alt=""
  9941. @click="fullTools"
  9942. />
  9943. </div>
  9944. </div>
  9945. <pdf
  9946. v-if="showPDF"
  9947. :pdfUrl="pptImgUrl"
  9948. style="width: 100%; height: 520px; overflow: auto"
  9949. :class="{ fullStyle: full }"
  9950. ></pdf>
  9951. <iframe
  9952. v-else
  9953. :src="pptImgUrl"
  9954. frameborder="0"
  9955. width="100%"
  9956. height="600"
  9957. :class="{ fullStyle: full }"
  9958. ></iframe>
  9959. </el-dialog>
  9960. <el-dialog
  9961. title="文件预览"
  9962. :visible.sync="dialogVisible6"
  9963. width="50%"
  9964. :before-close="handleClose"
  9965. class="dialog_diy"
  9966. >
  9967. <iframe
  9968. :src="pptImgUrl1"
  9969. frameborder="0"
  9970. width="100%"
  9971. height="600"
  9972. ></iframe>
  9973. </el-dialog>
  9974. <el-dialog
  9975. title="提示"
  9976. :visible.sync="dialogVisible4"
  9977. :append-to-body="true"
  9978. width="800px"
  9979. :before-close="handleClose"
  9980. class="dialog_diy notice"
  9981. >
  9982. <div>此功能暂未开放!</div>
  9983. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9984. </el-dialog>
  9985. <el-dialog
  9986. title="问答"
  9987. :visible.sync="answerDialogVisible"
  9988. :append-to-body="true"
  9989. width="800px"
  9990. :before-close="handleClose"
  9991. class="dialog_diy"
  9992. >
  9993. <div>
  9994. <div
  9995. style="
  9996. display: flex;
  9997. flex-wrap: nowrap;
  9998. flex-direction: column;
  9999. position: relative;
  10000. "
  10001. >
  10002. <div class="queTop" style="padding: 20px 0 20px 0">
  10003. <div class="question">
  10004. <img src="../../assets/icon/question.png" alt />
  10005. </div>
  10006. <div class="queTitle">
  10007. <div style="width: 90px; min-width: 90px">提问:</div>
  10008. <div>{{ answerQ }}</div>
  10009. </div>
  10010. </div>
  10011. <div class="ediBottom">
  10012. <textarea
  10013. rows="6"
  10014. class="binfo_input"
  10015. cols
  10016. style="width: 95%; height: 120px"
  10017. v-model="questionAnswer"
  10018. ></textarea>
  10019. </div>
  10020. </div>
  10021. </div>
  10022. <div slot="footer">
  10023. <el-button @click="answerDialogVisible = false">取 消</el-button>
  10024. <el-button type="primary" @click="addQuestion">提 交</el-button>
  10025. </div>
  10026. </el-dialog>
  10027. <el-dialog
  10028. title="问答"
  10029. :visible.sync="answerDialogVisibleTeacher"
  10030. :append-to-body="true"
  10031. width="800px"
  10032. :before-close="handleClose"
  10033. class="dialog_diy"
  10034. >
  10035. <div>
  10036. <div class="w_name">
  10037. 学生姓名:<span>{{ sStudent.student }}</span>
  10038. </div>
  10039. <div
  10040. style="
  10041. display: flex;
  10042. flex-wrap: nowrap;
  10043. flex-direction: column;
  10044. position: relative;
  10045. "
  10046. >
  10047. <div class="queTop" style="padding: 20px 0 20px 0">
  10048. <div class="question">
  10049. <img src="../../assets/icon/question.png" alt />
  10050. </div>
  10051. <div class="queTitle">
  10052. <div style="width: 90px; min-width: 90px">提问:</div>
  10053. <div>{{ answerQ }}</div>
  10054. </div>
  10055. </div>
  10056. <div class="ediBottom">
  10057. <textarea
  10058. rows="6"
  10059. class="binfo_input"
  10060. cols
  10061. style="width: 95%; height: 120px"
  10062. v-model="questionAnswer"
  10063. ></textarea>
  10064. </div>
  10065. </div>
  10066. </div>
  10067. <div slot="footer">
  10068. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  10069. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  10070. </div>
  10071. </el-dialog>
  10072. <el-dialog
  10073. title="倒计时"
  10074. :visible.sync="timeDialogVisible"
  10075. :append-to-body="true"
  10076. width="800px"
  10077. :before-close="handleClose"
  10078. class="dialog_diy"
  10079. >
  10080. <div>
  10081. <div style="margin-bottom: 20px; color: #999">
  10082. 提示:点击“+”或“-”修改倒计时时长。
  10083. </div>
  10084. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  10085. </div>
  10086. <div slot="footer">
  10087. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  10088. </div>
  10089. </el-dialog>
  10090. <el-dialog
  10091. title="权限设置"
  10092. :visible.sync="juriVisible"
  10093. :append-to-body="true"
  10094. width="400px"
  10095. :before-close="handleClose"
  10096. class="dialog_diy"
  10097. >
  10098. <div>
  10099. <div class="open_box">
  10100. <div class="switch_box">
  10101. <span>允许学生查看所有作业</span>
  10102. <el-switch
  10103. v-model="sIsOpen"
  10104. active-text=""
  10105. class="switchCss"
  10106. @change="updateSLook"
  10107. ></el-switch>
  10108. </div>
  10109. <div
  10110. class="switch_box"
  10111. v-if="
  10112. (courseDetail.userid == userid ||
  10113. (courseDetail.course_teacher &&
  10114. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen
  10115. "
  10116. >
  10117. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  10118. <span>禁止学生查看阶段</span>
  10119. <el-switch
  10120. v-model="IsLookOpen"
  10121. active-text=""
  10122. class="switchCss"
  10123. @change="updateLookOpen"
  10124. ></el-switch>
  10125. </div>
  10126. <div class="switch_box" v-if="(courseDetail.userid == userid ||
  10127. (courseDetail.course_teacher &&
  10128. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen">
  10129. <span>开启跟随模式</span>
  10130. <el-switch
  10131. v-model="IsFollow"
  10132. active-text=""
  10133. class="switchCss"
  10134. @change="updateFollow"
  10135. ></el-switch>
  10136. </div>
  10137. <div class="switch_box" v-if="courseDetail.userid == userid">
  10138. <span>允许学生查看内容资料</span>
  10139. <el-switch
  10140. v-model="IsStulook"
  10141. active-text=""
  10142. class="switchCss"
  10143. @change="updateIsStulook"
  10144. ></el-switch>
  10145. </div>
  10146. </div>
  10147. </div>
  10148. <div slot="footer">
  10149. <el-button
  10150. style="background: #409efe; color: #fff"
  10151. @click="juriVisible = false"
  10152. >关 闭</el-button
  10153. >
  10154. </div>
  10155. </el-dialog>
  10156. <el-dialog
  10157. title="查看视频"
  10158. :visible.sync="videoVisible"
  10159. :append-to-body="true"
  10160. width="1000px"
  10161. :before-close="handleClose"
  10162. class="dialog_diy1"
  10163. >
  10164. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  10165. <video-player
  10166. class="video-player vjs-custom-skin"
  10167. :playsinline="true"
  10168. :options="videoDetail"
  10169. @play="onPlayerPlay($event)"
  10170. style="width: 100%; height: 100%"
  10171. ></video-player>
  10172. </div>
  10173. <div slot="footer">
  10174. <el-button
  10175. style="background: #409efe; color: #fff"
  10176. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  10177. >
  10178. 关 闭</el-button
  10179. >
  10180. </div>
  10181. </el-dialog>
  10182. <el-dialog
  10183. title="查看详情"
  10184. :visible.sync="commentDialogVisible"
  10185. :append-to-body="true"
  10186. width="800px"
  10187. :before-close="handleClose"
  10188. class="dialog_diy"
  10189. >
  10190. <div class="commentTop">
  10191. <div class="studentDetail">
  10192. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10193. <div class="nameAndTime">
  10194. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10195. <div>{{ commentDetail.time }}</div>
  10196. </div>
  10197. <div
  10198. class="returnBtn"
  10199. style="margin-left: auto; width: 80px"
  10200. v-if="
  10201. commentDetail.works &&
  10202. commentDetail.type == 0 &&
  10203. (tType == 1 || tType == 4)
  10204. "
  10205. @click="
  10206. showPicturePaint(
  10207. commentDetail.img ? commentDetail.img : commentDetail.works
  10208. )
  10209. "
  10210. >
  10211. 教师批注
  10212. </div>
  10213. </div>
  10214. <div
  10215. class="worksAnswer"
  10216. v-if="commentDetail.works && commentDetail.type == 2"
  10217. >
  10218. {{ JSON.parse(commentDetail.works)[0].answer }}
  10219. </div>
  10220. <div
  10221. class="worksAnswer"
  10222. v-if="commentDetail.works && commentDetail.type == 1"
  10223. >
  10224. <img
  10225. src="../../assets/teacherWork.png"
  10226. v-if="commentDetail.ateacher"
  10227. class="w_teachert"
  10228. />
  10229. <pdf
  10230. v-if="showPDF"
  10231. :pdfUrl="pptImgUrl"
  10232. style="width: 100%; height: 520px; overflow: auto"
  10233. :class="{ fullStyle: full }"
  10234. ></pdf>
  10235. <iframe
  10236. v-else
  10237. :src="pptImgUrl"
  10238. frameborder="0"
  10239. width="100%"
  10240. height="600"
  10241. :class="{ fullStyle: full }"
  10242. ></iframe>
  10243. </div>
  10244. <div
  10245. class="worksAnswer"
  10246. v-if="commentDetail.works && commentDetail.type == 0"
  10247. >
  10248. <img
  10249. src="../../assets/teacherWork.png"
  10250. v-if="commentDetail.ateacher"
  10251. class="w_teachert"
  10252. style="right: 105px"
  10253. />
  10254. <img
  10255. :src="commentDetail.works"
  10256. alt=""
  10257. @click="previewImg(commentDetail.works)"
  10258. />
  10259. </div>
  10260. <div
  10261. class="worksAnswer"
  10262. v-if="commentDetail.works && commentDetail.type == 3"
  10263. >
  10264. <img
  10265. src="../../assets/teacherWork.png"
  10266. v-if="commentDetail.ateacher"
  10267. class="w_teachert"
  10268. />
  10269. <video-player
  10270. class="video-player vjs-custom-skin"
  10271. :playsinline="true"
  10272. :options="videoDetail"
  10273. @play="onPlayerPlay($event)"
  10274. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10275. ></video-player>
  10276. </div>
  10277. <div
  10278. class="worksAnswer"
  10279. v-if="commentDetail.works && commentDetail.type == 10"
  10280. >
  10281. <div class="cont" v-html="commentDetail.works.text"></div>
  10282. </div>
  10283. <div
  10284. class="worksAnswer codeFileBox"
  10285. v-if="commentDetail.works && commentDetail.type == 12"
  10286. @click="downloadFile(commentDetail.works)"
  10287. >
  10288. <img src="../../assets/icon/codeFile.png" />
  10289. <div>点击下载文件</div>
  10290. </div>
  10291. <div
  10292. class="worksAnswer codeFileBox"
  10293. v-if="commentDetail.works && commentDetail.type == 15"
  10294. @click="
  10295. openCocoPi(
  10296. 57,
  10297. commentIndexJson.toolIndex,
  10298. commentDetail.userid,
  10299. commentDetail.sName
  10300. )
  10301. "
  10302. >
  10303. <img src="../../assets/icon/codeFile.png" />
  10304. <div>点击打开CocoPi</div>
  10305. </div>
  10306. <div
  10307. class="worksAnswer"
  10308. v-if="commentDetail.works && commentDetail.type == 13"
  10309. >
  10310. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10311. </div>
  10312. <div
  10313. class="worksAnswer"
  10314. v-if="commentDetail.works && commentDetail.type == 4"
  10315. >
  10316. <div class="evalCss">
  10317. <div class="nav">请选择星星进行评分</div>
  10318. <div class="middleBox" v-if="eScore.eStar">
  10319. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10320. <div class="nameAndrate">
  10321. <div>{{ e.value }}</div>
  10322. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  10323. </div>
  10324. <div v-if="e.detail">{{ e.detail }}</div>
  10325. </div>
  10326. <div class="bz">
  10327. <textarea
  10328. disabled
  10329. rows="4"
  10330. class="pj"
  10331. style="
  10332. padding: 10px 5px;
  10333. width: 70%;
  10334. background: #f7f6f9;
  10335. font-size: 14px;
  10336. text-indent: 10px;
  10337. color: #000;
  10338. "
  10339. cols
  10340. v-model="eScore.eBzText"
  10341. placeholder="请输入评价内容..."
  10342. ></textarea>
  10343. </div>
  10344. </div>
  10345. </div>
  10346. </div>
  10347. <div class="comment">
  10348. <div class="commentList">
  10349. <div class="commentImg">
  10350. <img
  10351. @click="
  10352. isLikes(
  10353. commentDetail.wid,
  10354. userid,
  10355. 1,
  10356. null,
  10357. commentDetail.isLikes,
  10358. commentDetail.sName
  10359. )
  10360. "
  10361. :src="commentDetail.isLikes == true ? likes : noLikes"
  10362. alt=""
  10363. />
  10364. </div>
  10365. <div>{{ commentDetail.likesCount }}</div>
  10366. </div>
  10367. <div class="commentList">
  10368. <div class="commentImg">
  10369. <img src="../../assets/icon/comment/comment.png" alt="" />
  10370. </div>
  10371. <div>{{ commentDetail.commentCount }}</div>
  10372. </div>
  10373. </div>
  10374. <div class="drawPBox" v-if="commentDetail.img">
  10375. <span>教师批注</span>
  10376. <img
  10377. :src="commentDetail.img"
  10378. alt=""
  10379. @click="previewImg(commentDetail.img)"
  10380. />
  10381. <span
  10382. class="deleteImg"
  10383. v-if="tType == 1 || tType == 4"
  10384. @click.stop="deletePicturePaint(commentDetail.wid)"
  10385. style="
  10386. font-size: 14px;
  10387. width: auto !important;
  10388. color: #b4b4b4;
  10389. top: unset;
  10390. bottom: 0;
  10391. border: none;
  10392. padding: 0;
  10393. height: auto !important;
  10394. margin: 0;
  10395. "
  10396. >删除</span
  10397. >
  10398. </div>
  10399. </div>
  10400. <div class="commentBox">
  10401. <div class="pl">评论:</div>
  10402. <div style="max-height: 200px; overflow: auto">
  10403. <div
  10404. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  10405. style="padding: 10px 0 0 0"
  10406. >
  10407. <div
  10408. class="studentDetail"
  10409. style="padding-top: 10px"
  10410. v-for="(co, coIndex) in commentDetail.commentJson"
  10411. :key="coIndex"
  10412. >
  10413. <div class="tx" style="min-width: 50px">
  10414. <img src="../../assets/avatar.png" alt="" />
  10415. </div>
  10416. <div class="plPerson">
  10417. <div class="plName">
  10418. <div>{{ co.commentPeople }}</div>
  10419. <div style="margin-left: 5px">
  10420. {{ co.commentTime }}
  10421. </div>
  10422. <div
  10423. class="deleteComment"
  10424. v-if="userid == co.userid"
  10425. @click="deleteComment(co.wid)"
  10426. >
  10427. 删除
  10428. </div>
  10429. </div>
  10430. <div class="plContent">{{ co.commentText }}</div>
  10431. </div>
  10432. </div>
  10433. </div>
  10434. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  10435. </div>
  10436. </div>
  10437. <div style="margin-top: 10px">
  10438. <div class="displayBox">
  10439. <div
  10440. style="
  10441. color: #556db4;
  10442. font-size: 14px;
  10443. font-weight: bold;
  10444. padding-bottom: 10px;
  10445. "
  10446. >
  10447. 评价
  10448. </div>
  10449. <div class="easy_comment" v-if="false">
  10450. <div
  10451. v-for="(p, pIndex) in PlTextList"
  10452. :key="pIndex"
  10453. @click="fastText(p, 1)"
  10454. >
  10455. {{ p }}
  10456. </div>
  10457. </div>
  10458. </div>
  10459. <div>
  10460. <textarea
  10461. rows="3"
  10462. class="pj"
  10463. style="padding: 10px 5px"
  10464. cols
  10465. v-model="commentText"
  10466. placeholder="请输入评论"
  10467. ></textarea>
  10468. </div>
  10469. </div>
  10470. <div slot="footer">
  10471. <el-button
  10472. @click="
  10473. (commentDialogVisible = false),
  10474. (commentIndexJson = {}),
  10475. videoDetail.sources && videoDetail.sources[0]
  10476. ? (videoDetail.sources[0].src = '')
  10477. : ''
  10478. "
  10479. >取 消</el-button
  10480. >
  10481. <el-button
  10482. type="primary"
  10483. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  10484. >确 定</el-button
  10485. >
  10486. </div>
  10487. </el-dialog>
  10488. <el-dialog
  10489. title="查看文档"
  10490. :visible.sync="fullDialogVisible"
  10491. :append-to-body="true"
  10492. width="100%"
  10493. :before-close="handleClose"
  10494. :show-close="false"
  10495. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  10496. >
  10497. <div slot="title" class="header-title">
  10498. <div v-if="fulltype == 4" style="color: #fff">AI应用</div>
  10499. <div v-else style="color: #fff">查看文档</div>
  10500. <div
  10501. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  10502. style="
  10503. cursor: pointer;
  10504. position: absolute;
  10505. top: 20px;
  10506. right: 20px;
  10507. color: #fff;
  10508. "
  10509. >
  10510. 退出全屏
  10511. </div>
  10512. </div>
  10513. <div style="height: 100%;position: relative;">
  10514. <el-button
  10515. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  10516. size="medium"
  10517. type="primary"
  10518. @click="
  10519. () => {
  10520. (fullDialogVisible = false),
  10521. changeSplitScreenBehavior({ code: 99 });
  10522. }
  10523. "
  10524. style="
  10525. cursor: pointer;
  10526. position: absolute;
  10527. top: 10px;
  10528. right: 20px;
  10529. color: #fff;
  10530. "
  10531. >
  10532. 退出全屏
  10533. </el-button>
  10534. <div
  10535. class="wheel"
  10536. v-if="fulltype == 1"
  10537. style="
  10538. box-shadow: 0 0 6px 1px #f2f2f2;
  10539. height:100%;
  10540. width: 100%;
  10541. background: #f1f1f1;
  10542. "
  10543. >
  10544. <div class="title" style="width: 100%; box-sizing: border-box">
  10545. 查看文档
  10546. </div>
  10547. <el-form class="textBox" style="height: 90%">
  10548. <el-form-item class="textTitle">
  10549. <div style="font-size: 22px">
  10550. {{ fullUrl.name }}
  10551. </div>
  10552. </el-form-item>
  10553. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  10554. <div
  10555. v-html="fullUrl.url"
  10556. class="textContent"
  10557. style="height: auto"
  10558. ></div>
  10559. </el-form>
  10560. </div>
  10561. <div
  10562. class="wheel"
  10563. v-else-if="
  10564. (fulltype == 2 || fulltype == 4) &&
  10565. fullUrl.indexOf(
  10566. 'https://view.officeapps.live.com/op/view.aspx?src='
  10567. ) != -1
  10568. "
  10569. style="width: 100%;height:100%; margin: 0 auto"
  10570. >
  10571. <iframe
  10572. style="width: 100%; height: 100%; border: none"
  10573. :src="fullUrl"
  10574. ></iframe>
  10575. </div>
  10576. <iframe
  10577. style="width: 100%; height: 100%; border: none"
  10578. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  10579. 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"
  10580. :src="fullUrl"
  10581. ></iframe>
  10582. <iframe
  10583. style="width: 100%; height: 100%; border: none"
  10584. security="restricted"
  10585. v-else-if="(fulltype == 2 || fulltype == 4)"
  10586. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10587. :src="fullUrl"
  10588. ></iframe>
  10589. <pdf
  10590. v-else-if="fulltype == 3"
  10591. :pdfUrl="fullUrl"
  10592. style="width: 100%; height: 100%; overflow: auto"
  10593. ></pdf>
  10594. <iframe
  10595. style="width: 100%; height: 100%; border: none"
  10596. security="restricted"
  10597. v-if="(fulltype == 16)"
  10598. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10599. :src="fullUrl"
  10600. ></iframe>
  10601. </div>
  10602. <!-- <div slot="footer">
  10603. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  10604. </div> -->
  10605. </el-dialog>
  10606. <el-dialog
  10607. title="个人评价"
  10608. :visible.sync="studentEvalDialogVisible"
  10609. :append-to-body="true"
  10610. width="800px"
  10611. :before-close="handleClose"
  10612. class="dialog_diy"
  10613. >
  10614. <div class="evalCss">
  10615. <div class="nav">请选择星星进行评分</div>
  10616. <div class="middleBox" v-if="eScore.eStar">
  10617. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10618. <div class="nameAndrate">
  10619. <div>{{ e.value }}</div>
  10620. <el-rate
  10621. v-model="eScore.eStar[eIndex]"
  10622. :disabled="isStar"
  10623. ></el-rate>
  10624. </div>
  10625. <div v-if="e.detail">{{ e.detail }}</div>
  10626. </div>
  10627. <div class="easy_comment" v-if="false">
  10628. <div
  10629. v-for="(p, pIndex) in PlTextList"
  10630. :key="pIndex"
  10631. @click="fastText(p, 2)"
  10632. >
  10633. {{ p }}
  10634. </div>
  10635. </div>
  10636. <div class="bz">
  10637. <textarea
  10638. :disabled="isStar"
  10639. rows="4"
  10640. class="pj"
  10641. style="
  10642. padding: 10px 5px;
  10643. width: 70%;
  10644. background: #f7f6f9;
  10645. font-size: 14px;
  10646. text-indent: 10px;
  10647. "
  10648. cols
  10649. v-model="eScore.eBzText"
  10650. placeholder="请输入评价内容..."
  10651. ></textarea>
  10652. </div>
  10653. </div>
  10654. </div>
  10655. <div slot="footer">
  10656. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10657. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10658. >确 定</el-button
  10659. >
  10660. </div>
  10661. </el-dialog>
  10662. <el-dialog
  10663. title="个人评价"
  10664. :visible.sync="studentEvalDialogVisibleTeacher"
  10665. :append-to-body="true"
  10666. width="800px"
  10667. :before-close="handleClose"
  10668. class="dialog_diy"
  10669. >
  10670. <div class="w_name">
  10671. 学生姓名:<span>{{ sStudent.student }}</span>
  10672. </div>
  10673. <div class="evalCss">
  10674. <div class="nav">请选择星星进行评分</div>
  10675. <div class="middleBox" v-if="eScore.eStar">
  10676. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10677. <div class="nameAndrate">
  10678. <div>{{ e.value }}</div>
  10679. <el-rate
  10680. v-model="eScore.eStar[eIndex]"
  10681. :disabled="isStar"
  10682. ></el-rate>
  10683. </div>
  10684. <div v-if="e.detail">{{ e.detail }}</div>
  10685. </div>
  10686. <div class="easy_comment" v-if="false">
  10687. <div
  10688. v-for="(p, pIndex) in PlTextList"
  10689. :key="pIndex"
  10690. @click="fastText(p, 2)"
  10691. >
  10692. {{ p }}
  10693. </div>
  10694. </div>
  10695. <div class="bz">
  10696. <textarea
  10697. :disabled="isStar"
  10698. rows="4"
  10699. class="pj"
  10700. style="
  10701. padding: 10px 5px;
  10702. width: 70%;
  10703. background: #f7f6f9;
  10704. font-size: 14px;
  10705. text-indent: 10px;
  10706. "
  10707. cols
  10708. v-model="eScore.eBzText"
  10709. placeholder="请输入评价内容..."
  10710. ></textarea>
  10711. </div>
  10712. </div>
  10713. </div>
  10714. <div slot="footer">
  10715. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10716. >取 消</el-button
  10717. >
  10718. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10719. >确 定</el-button
  10720. >
  10721. </div>
  10722. </el-dialog>
  10723. <el-dialog
  10724. title="选择匹配"
  10725. :visible.sync="dialogVisibleSelect"
  10726. :append-to-body="true"
  10727. width="90%"
  10728. :before-close="handleClose"
  10729. class="dialog_diy dialog_diy3"
  10730. >
  10731. <div v-if="selectJson">
  10732. <div class="select_box2">
  10733. <div class="select_box2_title">
  10734. <div>选择匹配</div>
  10735. <div>请选择对应的答案进行答题!</div>
  10736. </div>
  10737. <div class="select_box2_box">
  10738. <div class="select_box2_img">
  10739. <img
  10740. :src="selectJson.url"
  10741. @click="previewImg(selectJson.url)"
  10742. alt=""
  10743. />
  10744. </div>
  10745. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10746. <div style="padding-top: 15px">
  10747. <div class="select_answer_title" v-if="isSelect">
  10748. {{ selectAnswer.stu }}
  10749. </div>
  10750. <div class="select_answer_title" v-else>
  10751. 根据题目选择对应答案
  10752. </div>
  10753. <div
  10754. class="select_box2_answer_box"
  10755. v-for="(item2, checkIndex) in selectJson.select"
  10756. :key="checkIndex"
  10757. >
  10758. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10759. <el-select
  10760. :disabled="isSelect"
  10761. v-model="selectAnswer.answer[checkIndex]"
  10762. placeholder="请选择正确答案"
  10763. >
  10764. <el-option
  10765. v-for="(e, eIndex) in selectJson.select"
  10766. :key="eIndex"
  10767. :label="e"
  10768. :value="eIndex"
  10769. >
  10770. </el-option>
  10771. </el-select>
  10772. </div>
  10773. </div>
  10774. <div
  10775. class="rightAnswerCss"
  10776. v-if="isSelect && (tType == 1 || tType == 4)"
  10777. >
  10778. <div
  10779. v-for="(a, aIndex) in selectJson.answer"
  10780. :key="aIndex"
  10781. class="rightAnswer"
  10782. >
  10783. <div
  10784. v-if="selectAnswer.answer[aIndex] === a"
  10785. style="color: #767de1"
  10786. >
  10787. 回答正确
  10788. </div>
  10789. <div v-else>回答错误</div>
  10790. <div
  10791. style="margin-left: 10px"
  10792. v-if="selectAnswer.answer[aIndex] !== a"
  10793. >
  10794. 正确答案:
  10795. </div>
  10796. <div
  10797. :class="
  10798. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10799. "
  10800. >
  10801. {{ selectJson.select[a] }}
  10802. </div>
  10803. </div>
  10804. </div>
  10805. </div>
  10806. <div class="upAnswerCss">
  10807. <el-button
  10808. type="primary"
  10809. @click="addSelectAnswer"
  10810. v-if="!isSelect"
  10811. >提交答案</el-button
  10812. >
  10813. </div>
  10814. </div>
  10815. </div>
  10816. </div>
  10817. </el-dialog>
  10818. <el-dialog
  10819. title="选择匹配"
  10820. :visible.sync="dialogVisibleSelectTeacher"
  10821. :append-to-body="true"
  10822. width="90%"
  10823. :before-close="handleClose"
  10824. class="dialog_diy dialog_diy3"
  10825. >
  10826. <div v-if="selectJson">
  10827. <div class="w_name">
  10828. 学生姓名:<span>{{ sStudent.student }}</span>
  10829. </div>
  10830. <div class="select_box2">
  10831. <div class="select_box2_title">
  10832. <div>选择匹配</div>
  10833. <div>请选择对应的答案进行答题!</div>
  10834. </div>
  10835. <div class="select_box2_box">
  10836. <div class="select_box2_img">
  10837. <img
  10838. :src="selectJson.url"
  10839. @click="previewImg(selectJson.url)"
  10840. alt=""
  10841. />
  10842. </div>
  10843. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10844. <div style="padding-top: 15px">
  10845. <div class="select_answer_title" v-if="isSelect">
  10846. {{ selectAnswer.stu }}
  10847. </div>
  10848. <div class="select_answer_title" v-else>
  10849. 根据题目选择对应答案
  10850. </div>
  10851. <div
  10852. class="select_box2_answer_box"
  10853. v-for="(item2, checkIndex) in selectJson.select"
  10854. :key="checkIndex"
  10855. >
  10856. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10857. <el-select
  10858. :disabled="isSelect"
  10859. v-model="selectAnswer.answer[checkIndex]"
  10860. placeholder="请选择正确答案"
  10861. >
  10862. <el-option
  10863. v-for="(e, eIndex) in selectJson.select"
  10864. :key="eIndex"
  10865. :label="e"
  10866. :value="eIndex"
  10867. >
  10868. </el-option>
  10869. </el-select>
  10870. </div>
  10871. </div>
  10872. <div
  10873. class="rightAnswerCss"
  10874. v-if="isSelect && (tType == 1 || tType == 4)"
  10875. >
  10876. <div
  10877. v-for="(a, aIndex) in selectJson.answer"
  10878. :key="aIndex"
  10879. class="rightAnswer"
  10880. >
  10881. <div
  10882. v-if="selectAnswer.answer[aIndex] === a"
  10883. style="color: #767de1"
  10884. >
  10885. 回答正确
  10886. </div>
  10887. <div v-else>回答错误</div>
  10888. <div
  10889. style="margin-left: 10px"
  10890. v-if="selectAnswer.answer[aIndex] !== a"
  10891. >
  10892. 正确答案:
  10893. </div>
  10894. <div
  10895. :class="
  10896. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10897. "
  10898. >
  10899. {{ selectJson.select[a] }}
  10900. </div>
  10901. </div>
  10902. </div>
  10903. </div>
  10904. <div class="upAnswerCss">
  10905. <el-button
  10906. type="primary"
  10907. @click="addSelectAnswerTeacher"
  10908. v-if="!isSelect"
  10909. >提交答案</el-button
  10910. >
  10911. </div>
  10912. </div>
  10913. </div>
  10914. </div>
  10915. </el-dialog>
  10916. <el-dialog
  10917. title="教师评分"
  10918. :visible.sync="dialogVisibleScore"
  10919. :append-to-body="true"
  10920. width="800px"
  10921. :before-close="handleClose"
  10922. class="dialog_diy"
  10923. >
  10924. <div>
  10925. <div class="studentDetail">
  10926. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10927. <div class="nameAndTime">
  10928. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10929. <div>{{ commentDetail.time }}</div>
  10930. </div>
  10931. </div>
  10932. <div
  10933. class="worksAnswer"
  10934. v-if="commentDetail.works && commentDetail.type == 2"
  10935. >
  10936. {{ JSON.parse(commentDetail.works)[0].answer }}
  10937. </div>
  10938. <div
  10939. class="worksAnswer"
  10940. v-if="commentDetail.works && commentDetail.type == 1"
  10941. >
  10942. <pdf
  10943. v-if="showPDF"
  10944. :pdfUrl="pptImgUrl"
  10945. style="width: 100%; height: 520px; overflow: auto"
  10946. :class="{ fullStyle: full }"
  10947. ></pdf>
  10948. <iframe
  10949. v-else
  10950. :src="pptImgUrl"
  10951. frameborder="0"
  10952. width="100%"
  10953. height="600"
  10954. :class="{ fullStyle: full }"
  10955. ></iframe>
  10956. </div>
  10957. <div
  10958. class="worksAnswer"
  10959. v-if="commentDetail.works && commentDetail.type == 0"
  10960. >
  10961. <img
  10962. :src="commentDetail.works"
  10963. alt=""
  10964. @click="previewImg(commentDetail.works)"
  10965. />
  10966. </div>
  10967. <div
  10968. class="worksAnswer"
  10969. v-if="commentDetail.works && commentDetail.type == 3"
  10970. >
  10971. <video-player
  10972. class="video-player vjs-custom-skin"
  10973. :playsinline="true"
  10974. :options="videoDetail"
  10975. @play="onPlayerPlay($event)"
  10976. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10977. ></video-player>
  10978. </div>
  10979. <div
  10980. class="worksAnswer codeFileBox"
  10981. v-if="commentDetail.works && commentDetail.type == 12"
  10982. @click="downloadFile(commentDetail.works)"
  10983. >
  10984. <img src="../../assets/icon/codeFile.png" />
  10985. <div>点击下载文件</div>
  10986. </div>
  10987. <div
  10988. class="worksAnswer codeFileBox"
  10989. v-if="commentDetail.works && commentDetail.type == 15"
  10990. @click="
  10991. openCocoPi(
  10992. 57,
  10993. commentIndexJson.toolIndex,
  10994. commentDetail.userid,
  10995. commentDetail.sName
  10996. )
  10997. "
  10998. >
  10999. <img src="../../assets/icon/codeFile.png" />
  11000. <div>点击打开CocoPi</div>
  11001. </div>
  11002. <div
  11003. class="worksAnswer"
  11004. v-if="commentDetail.works && commentDetail.type == 13"
  11005. >
  11006. <div v-html="JSON.parse(commentDetail.works).text"></div>
  11007. </div>
  11008. <div class="scoreBox">
  11009. <span class="t">请输入分数</span>
  11010. <el-input-number
  11011. :disabled="courseDetail.userid != userid"
  11012. v-model="wScore"
  11013. :controls="false"
  11014. :min="0"
  11015. :max="100"
  11016. ></el-input-number>
  11017. </div>
  11018. <div class="scoreDetailBox">
  11019. <span class="t">评分评论</span>
  11020. <el-input
  11021. type="textarea"
  11022. :rows="5"
  11023. :disabled="courseDetail.userid != userid"
  11024. resize="none"
  11025. v-model="scoreDetail"
  11026. placeholder="请输入对学生的评价"
  11027. >
  11028. </el-input>
  11029. </div>
  11030. </div>
  11031. <span slot="footer" class="dialog-footer">
  11032. <el-button
  11033. @click="
  11034. (dialogVisibleScore = false),
  11035. (commentIndexJson = {}),
  11036. videoDetail.sources && videoDetail.sources[0]
  11037. ? (videoDetail.sources[0].src = '')
  11038. : ''
  11039. "
  11040. >取 消</el-button
  11041. >
  11042. <el-button
  11043. type="primary"
  11044. v-if="courseDetail.userid == userid"
  11045. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  11046. >确 定
  11047. </el-button>
  11048. </span>
  11049. </el-dialog>
  11050. <el-dialog
  11051. title="排序"
  11052. :visible.sync="dialogVisibleSentence"
  11053. :append-to-body="true"
  11054. width="1000px"
  11055. :before-close="handleClose"
  11056. class="dialog_diy dialog_diy3"
  11057. >
  11058. <div>
  11059. <div class="sentenBox">
  11060. <div
  11061. v-for="(st, stIndex) in sentenceList"
  11062. :key="stIndex"
  11063. style="padding-bottom: 20px"
  11064. >
  11065. <div
  11066. style="padding: 15px 0 10px 20px"
  11067. class="sentenceTitle"
  11068. :index="stIndex + 1"
  11069. >
  11070. 题目{{ stIndex + 1 }}:请选择正确顺序
  11071. </div>
  11072. <div class="cardList" v-if="st.chooseSenList">
  11073. <div class="cardBox">
  11074. <div
  11075. v-for="(r, rIndex) in st.chooseSenList"
  11076. :key="rIndex"
  11077. @click="returnCard(r, stIndex, rIndex)"
  11078. >
  11079. <el-tooltip
  11080. class="item"
  11081. effect="light"
  11082. :content="r"
  11083. placement="top"
  11084. v-if="r != '' && r != undefined"
  11085. >
  11086. <div
  11087. :class="{
  11088. isCard: r,
  11089. isChooseCard: r == '' || r == undefined,
  11090. }"
  11091. >
  11092. <div>{{ r }}</div>
  11093. </div>
  11094. </el-tooltip>
  11095. <div
  11096. :class="{
  11097. isCard: r,
  11098. isChooseCard: r == '' || r == undefined,
  11099. }"
  11100. v-else
  11101. >
  11102. <div>{{ r }}</div>
  11103. </div>
  11104. </div>
  11105. </div>
  11106. </div>
  11107. <div class="cardList" v-if="st.addChangeSen">
  11108. <div class="cardBox">
  11109. <div
  11110. v-for="(s, sIndex) in st.addChangeSen"
  11111. :key="sIndex"
  11112. @click="setRightAnswer(s, stIndex, sIndex)"
  11113. >
  11114. <el-tooltip
  11115. class="item"
  11116. effect="light"
  11117. :content="s"
  11118. placement="top"
  11119. v-if="s != '' && s != undefined"
  11120. >
  11121. <div
  11122. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11123. >
  11124. <div>{{ s }}</div>
  11125. </div>
  11126. </el-tooltip>
  11127. <div
  11128. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11129. v-else
  11130. >
  11131. <div>{{ s }}</div>
  11132. </div>
  11133. </div>
  11134. </div>
  11135. </div>
  11136. </div>
  11137. </div>
  11138. </div>
  11139. <span slot="footer" class="dialog-footer">
  11140. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  11141. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  11142. </span>
  11143. </el-dialog>
  11144. <el-dialog
  11145. title="排序"
  11146. :visible.sync="dialogVisibleSentenceTeacher"
  11147. :append-to-body="true"
  11148. width="1000px"
  11149. :before-close="handleClose"
  11150. class="dialog_diy dialog_diy3"
  11151. >
  11152. <div>
  11153. <div class="w_name">
  11154. 学生姓名:<span>{{ sStudent.student }}</span>
  11155. </div>
  11156. <div class="sentenBox">
  11157. <div
  11158. v-for="(st, stIndex) in sentenceList"
  11159. :key="stIndex"
  11160. style="padding-bottom: 20px"
  11161. >
  11162. <div
  11163. style="padding: 15px 0 10px 20px"
  11164. class="sentenceTitle"
  11165. :index="stIndex + 1"
  11166. >
  11167. 题目{{ stIndex + 1 }}:请选择正确顺序
  11168. </div>
  11169. <div class="cardList" v-if="st.chooseSenList">
  11170. <div class="cardBox">
  11171. <div
  11172. v-for="(r, rIndex) in st.chooseSenList"
  11173. :key="rIndex"
  11174. @click="returnCard(r, stIndex, rIndex)"
  11175. >
  11176. <el-tooltip
  11177. class="item"
  11178. effect="light"
  11179. :content="r"
  11180. placement="top"
  11181. v-if="r != '' && r != undefined"
  11182. >
  11183. <div
  11184. :class="{
  11185. isCard: r,
  11186. isChooseCard: r == '' || r == undefined,
  11187. }"
  11188. >
  11189. <div>{{ r }}</div>
  11190. </div>
  11191. </el-tooltip>
  11192. <div
  11193. :class="{
  11194. isCard: r,
  11195. isChooseCard: r == '' || r == undefined,
  11196. }"
  11197. v-else
  11198. >
  11199. <div>{{ r }}</div>
  11200. </div>
  11201. </div>
  11202. </div>
  11203. </div>
  11204. <div class="cardList" v-if="st.addChangeSen">
  11205. <div class="cardBox">
  11206. <div
  11207. v-for="(s, sIndex) in st.addChangeSen"
  11208. :key="sIndex"
  11209. @click="setRightAnswer(s, stIndex, sIndex)"
  11210. >
  11211. <el-tooltip
  11212. class="item"
  11213. effect="light"
  11214. :content="s"
  11215. placement="top"
  11216. v-if="s != '' && s != undefined"
  11217. >
  11218. <div
  11219. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11220. >
  11221. <div>{{ s }}</div>
  11222. </div>
  11223. </el-tooltip>
  11224. <div
  11225. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11226. v-else
  11227. >
  11228. <div>{{ s }}</div>
  11229. </div>
  11230. </div>
  11231. </div>
  11232. </div>
  11233. </div>
  11234. </div>
  11235. </div>
  11236. <span slot="footer" class="dialog-footer">
  11237. <el-button @click="dialogVisibleSentenceTeacher = false"
  11238. >取 消</el-button
  11239. >
  11240. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  11241. </span>
  11242. </el-dialog>
  11243. <el-dialog
  11244. title="排序"
  11245. :visible.sync="dialogVisibleSentence1"
  11246. :append-to-body="true"
  11247. width="1000px"
  11248. :before-close="handleClose"
  11249. class="dialog_diy dialog_diy3"
  11250. >
  11251. <div>
  11252. <div class="sentenBox">
  11253. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11254. {{ sentenceList1.stuName }}的作业
  11255. </div>
  11256. <div
  11257. v-for="(st, stIndex) in sentenceList1"
  11258. :key="stIndex"
  11259. style="padding-bottom: 20px"
  11260. >
  11261. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11262. 第{{ stIndex + 1 }}题
  11263. </div>
  11264. <div class="isWrong">
  11265. <div class="cardList1" v-if="st.chooseSenList">
  11266. <div class="cardBox">
  11267. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  11268. <el-tooltip
  11269. class="item"
  11270. effect="light"
  11271. :content="s"
  11272. placement="top"
  11273. >
  11274. <div class="isCard">
  11275. <div>{{ s }}</div>
  11276. </div>
  11277. </el-tooltip>
  11278. </div>
  11279. </div>
  11280. <div class="cardAnswerBox">
  11281. 组成句子:{{ st.chooseSenList.join(" ") }}
  11282. </div>
  11283. </div>
  11284. <div v-if="tType == 2" class="isTj">
  11285. <div class="isTjImg">
  11286. <img src="../../assets/icon/conSentences/right.png" alt="" />
  11287. </div>
  11288. <div>已提交</div>
  11289. </div>
  11290. <div
  11291. class="answerRight isTj"
  11292. v-if="
  11293. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  11294. (tType == 1 || tType == 4)
  11295. "
  11296. >
  11297. <div class="isTjImg">
  11298. <img src="../../assets/icon/conSentences/right.png" alt="" />
  11299. </div>
  11300. <div>回答正确</div>
  11301. </div>
  11302. <div
  11303. class="answerRight isTj"
  11304. v-if="
  11305. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11306. (tType == 1 || tType == 4)
  11307. "
  11308. >
  11309. <div class="isTjImg">
  11310. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  11311. </div>
  11312. <div>回答错误</div>
  11313. </div>
  11314. </div>
  11315. <div
  11316. v-if="
  11317. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11318. (tType == 1 || tType == 4)
  11319. "
  11320. >
  11321. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  11322. <div
  11323. class="cardList"
  11324. v-if="st.rightAnswer"
  11325. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  11326. >
  11327. <div class="cardBox">
  11328. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  11329. <el-tooltip
  11330. class="item"
  11331. effect="light"
  11332. :content="r"
  11333. placement="top"
  11334. >
  11335. <div class="isCard1">
  11336. <div>{{ r }}</div>
  11337. </div>
  11338. </el-tooltip>
  11339. </div>
  11340. </div>
  11341. <div class="cardAnswerBox">
  11342. 组成句子:{{ st.rightAnswer.join(" ") }}
  11343. </div>
  11344. </div>
  11345. </div>
  11346. </div>
  11347. </div>
  11348. </div>
  11349. <span slot="footer" class="dialog-footer">
  11350. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  11351. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  11352. >确 定</el-button
  11353. >
  11354. </span>
  11355. </el-dialog>
  11356. <el-dialog
  11357. title="教师提交作业"
  11358. :visible.sync="dialogVisibleWorks"
  11359. :append-to-body="true"
  11360. width="500px"
  11361. :before-close="handleClose"
  11362. class="dialog_change"
  11363. >
  11364. <div class="marginT">
  11365. <div class="w_name">
  11366. 学生姓名:<span>{{ sStudent.student }}</span>
  11367. </div>
  11368. <div>上传文件</div>
  11369. <div style="display: flex; gap: 10px">
  11370. <div
  11371. class="chapter_add"
  11372. @click="addImg($event)"
  11373. v-if="studyJuri[0].cover.length == 0"
  11374. >
  11375. <div class="up_photo">
  11376. <img src="../../assets/icon/uploadImg.png" alt />
  11377. </div>
  11378. <!-- <input
  11379. type="file"
  11380. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11381. style="display: none"
  11382. @change="beforeUpload1($event, 1)"
  11383. /> -->
  11384. <input
  11385. type="file"
  11386. accept="*"
  11387. style="display: none"
  11388. @change="beforeUpload1($event, 1)"
  11389. />
  11390. <!-- <input
  11391. type="file"
  11392. accept="image/*"
  11393. capture="camera"
  11394. style="display: none"
  11395. @change="beforeUpload1($event, 1)"
  11396. /> -->
  11397. </div>
  11398. <div
  11399. class="chapter_add"
  11400. @click="addImg($event)"
  11401. v-if="studyJuri[0].cover.length == 0"
  11402. >
  11403. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  11404. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  11405. </div>
  11406. <input
  11407. type="file"
  11408. accept="image/*"
  11409. capture="camera"
  11410. style="display: none"
  11411. @change="beforeUpload1($event, 1)"
  11412. />
  11413. </div>
  11414. </div>
  11415. <!-- capture="camera" -->
  11416. <div
  11417. class="chapter_add"
  11418. style="
  11419. display: flex;
  11420. width: 100%;
  11421. flex-direction: row;
  11422. flex-wrap: wrap;
  11423. justify-content: flex-start;
  11424. padding: 15px 0;
  11425. "
  11426. v-if="studyJuri[0].cover.length > 0"
  11427. >
  11428. <div class="upCover">
  11429. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11430. <img :src="word" alt v-else-if="fileType == 1" />
  11431. <img :src="video" alt v-else-if="fileType == 2" />
  11432. <img :src="word2" alt v-else-if="fileType == 3" />
  11433. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11434. <div class="deleteWord" @click="clean(1)">
  11435. <img src="../../assets/icon/deleteWorks.png" alt />
  11436. </div>
  11437. </div>
  11438. </div>
  11439. </div>
  11440. <div
  11441. class="upload_send"
  11442. @click="addCourseWorksTeacher(taskCount)"
  11443. v-if="!proVisible"
  11444. >
  11445. 提交
  11446. </div>
  11447. </el-dialog>
  11448. <ImgDraw
  11449. :drawShow="drawShow"
  11450. @closeDraw="closeDraw"
  11451. @addImgDraw="addImgDraw"
  11452. :bg="bg"
  11453. ></ImgDraw>
  11454. <el-dialog
  11455. title="表格"
  11456. :visible.sync="dialogVisibleTable"
  11457. :append-to-body="true"
  11458. width="95%"
  11459. :before-close="handleClose"
  11460. class="dialog_diy"
  11461. >
  11462. <el-form>
  11463. <div
  11464. style="
  11465. display: flex;
  11466. align-items: center;
  11467. justify-content: space-between;
  11468. "
  11469. >
  11470. <span>表格内容</span>
  11471. <el-button type="primary" size="small" @click="returnTableText"
  11472. >还原模板</el-button
  11473. >
  11474. </div>
  11475. <Table
  11476. v-model="tableJson.text"
  11477. @change="change"
  11478. v-if="dialogVisibleTable"
  11479. ></Table>
  11480. </el-form>
  11481. <span slot="footer" class="dialog-footer">
  11482. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  11483. <el-button type="primary" @click="addTableWorks">确定</el-button>
  11484. </span>
  11485. </el-dialog>
  11486. <el-dialog
  11487. title="表格"
  11488. :visible.sync="dialogVisibleTableTeacher"
  11489. :append-to-body="true"
  11490. width="95%"
  11491. :before-close="handleClose"
  11492. class="dialog_diy"
  11493. >
  11494. <el-form>
  11495. <div class="w_name">
  11496. 学生姓名:<span>{{ sStudent.student }}</span>
  11497. </div>
  11498. <div>表格内容</div>
  11499. <Table
  11500. v-model="tableJson.text"
  11501. @change="change"
  11502. v-if="dialogVisibleTableTeacher"
  11503. ></Table>
  11504. </el-form>
  11505. <span slot="footer" class="dialog-footer">
  11506. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  11507. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  11508. </span>
  11509. </el-dialog>
  11510. <el-dialog
  11511. title="文档"
  11512. :visible.sync="dialogVisibleWord"
  11513. :append-to-body="true"
  11514. width="95%"
  11515. :before-close="handleClose"
  11516. class="dialog_diy"
  11517. >
  11518. <el-form>
  11519. <div
  11520. style="
  11521. display: flex;
  11522. align-items: center;
  11523. justify-content: space-between;
  11524. "
  11525. >
  11526. <span>文档内容</span>
  11527. <el-button type="primary" size="small" @click="returnWordText"
  11528. >还原模板</el-button
  11529. >
  11530. </div>
  11531. <editor-bar
  11532. v-model="wordJson.text"
  11533. v-if="dialogVisibleWord"
  11534. ></editor-bar>
  11535. </el-form>
  11536. <span slot="footer" class="dialog-footer">
  11537. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  11538. <el-button type="primary" @click="addWordWorks">确定</el-button>
  11539. </span>
  11540. </el-dialog>
  11541. <el-dialog
  11542. title="文档"
  11543. :visible.sync="dialogVisibleWordTeacher"
  11544. :append-to-body="true"
  11545. width="95%"
  11546. :before-close="handleClose"
  11547. class="dialog_diy"
  11548. >
  11549. <el-form>
  11550. <div class="w_name">
  11551. 学生姓名:<span>{{ sStudent.student }}</span>
  11552. </div>
  11553. <div>文档内容</div>
  11554. <editor-bar
  11555. v-model="wordJson.text"
  11556. v-if="dialogVisibleWordTeacher"
  11557. ></editor-bar>
  11558. </el-form>
  11559. <span slot="footer" class="dialog-footer">
  11560. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  11561. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  11562. </span>
  11563. </el-dialog>
  11564. <el-dialog
  11565. title="表格"
  11566. :visible.sync="dialogVisibleTable2"
  11567. :append-to-body="true"
  11568. width="95%"
  11569. :before-close="handleClose"
  11570. class="dialog_diy"
  11571. >
  11572. <el-form>
  11573. <div class="cont" v-html="tableJson.text"></div>
  11574. </el-form>
  11575. <span slot="footer" class="dialog-footer">
  11576. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  11577. </span>
  11578. </el-dialog>
  11579. <el-dialog
  11580. title="文档"
  11581. :visible.sync="dialogVisibleTable3"
  11582. :append-to-body="true"
  11583. width="95%"
  11584. :before-close="handleClose"
  11585. class="dialog_diy"
  11586. >
  11587. <el-form>
  11588. <div class="cont" v-html="tableJson.text"></div>
  11589. </el-form>
  11590. <span slot="footer" class="dialog-footer">
  11591. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  11592. </span>
  11593. </el-dialog>
  11594. <el-dialog
  11595. title="分组设置"
  11596. :visible.sync="dialogVisibleGroup"
  11597. :append-to-body="true"
  11598. width="95%"
  11599. :before-close="handleClose"
  11600. class="dialog_diy"
  11601. >
  11602. <div v-if="dialogVisibleGroup">
  11603. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  11604. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  11605. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  11606. </div>
  11607. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  11608. @click="lockChair">
  11609. 锁定位置
  11610. </div>
  11611. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  11612. 解锁位置
  11613. </div> -->
  11614. <div class="group_switch">
  11615. <span>开放选座</span>
  11616. <el-switch
  11617. v-model="islock"
  11618. active-text=""
  11619. class="switchCss"
  11620. @change="lockChair"
  11621. ></el-switch>
  11622. </div>
  11623. <div
  11624. type="primary"
  11625. @click="updateGroup"
  11626. class="returnBtn"
  11627. style="background-color: #225bc7"
  11628. >
  11629. 分组设置
  11630. </div>
  11631. </div>
  11632. <div>
  11633. <div
  11634. class="g_d_box"
  11635. v-if="groupJson.group && groupStudent[toolindex]"
  11636. >
  11637. <div
  11638. class="g_d_group"
  11639. v-for="(g, gindex) in groupJson.group"
  11640. :key="gindex"
  11641. >
  11642. <div class="g_d_group_chair">
  11643. <div v-if="groupJson.number > 1">
  11644. <span
  11645. :class="{
  11646. isChair:
  11647. groupStudent[toolindex][gindex] &&
  11648. groupStudent[toolindex][gindex][0],
  11649. updateChair:
  11650. courseDetail.userid == userid &&
  11651. groupStudent[toolindex][gindex] &&
  11652. groupStudent[toolindex][gindex][0] &&
  11653. groupJson.islock == 2,
  11654. }"
  11655. ><span
  11656. class="updateChairBtn"
  11657. @click="
  11658. updateGroupChair(
  11659. groupStudent[toolindex][gindex] &&
  11660. groupStudent[toolindex][gindex][0]
  11661. )
  11662. "
  11663. >修改</span
  11664. ></span
  11665. ><span>{{
  11666. groupStudent[toolindex][gindex] &&
  11667. groupStudent[toolindex][gindex][0]
  11668. ? groupStudent[toolindex][gindex] &&
  11669. groupStudent[toolindex][gindex][0].name
  11670. : "空位置"
  11671. }}</span>
  11672. </div>
  11673. <div v-if="groupJson.number > 4">
  11674. <span
  11675. :class="{
  11676. isChair:
  11677. groupStudent[toolindex][gindex] &&
  11678. groupStudent[toolindex][gindex][4],
  11679. updateChair:
  11680. courseDetail.userid == userid &&
  11681. groupStudent[toolindex][gindex] &&
  11682. groupStudent[toolindex][gindex][4] &&
  11683. groupJson.islock == 2,
  11684. }"
  11685. ><span
  11686. class="updateChairBtn"
  11687. @click="
  11688. updateGroupChair(
  11689. groupStudent[toolindex][gindex] &&
  11690. groupStudent[toolindex][gindex][4]
  11691. )
  11692. "
  11693. >修改</span
  11694. ></span
  11695. ><span>{{
  11696. groupStudent[toolindex][gindex] &&
  11697. groupStudent[toolindex][gindex][4]
  11698. ? groupStudent[toolindex][gindex] &&
  11699. groupStudent[toolindex][gindex][4].name
  11700. : "空位置"
  11701. }}</span>
  11702. </div>
  11703. <div v-if="groupJson.number > 8">
  11704. <span
  11705. :class="{
  11706. isChair:
  11707. groupStudent[toolindex][gindex] &&
  11708. groupStudent[toolindex][gindex][8],
  11709. updateChair:
  11710. courseDetail.userid == userid &&
  11711. groupStudent[toolindex][gindex] &&
  11712. groupStudent[toolindex][gindex][8] &&
  11713. groupJson.islock == 2,
  11714. }"
  11715. ><span
  11716. class="updateChairBtn"
  11717. @click="
  11718. updateGroupChair(
  11719. groupStudent[toolindex][gindex] &&
  11720. groupStudent[toolindex][gindex][8]
  11721. )
  11722. "
  11723. >修改</span
  11724. ></span
  11725. ><span>{{
  11726. groupStudent[toolindex][gindex] &&
  11727. groupStudent[toolindex][gindex][8]
  11728. ? groupStudent[toolindex][gindex] &&
  11729. groupStudent[toolindex][gindex][8].name
  11730. : "空位置"
  11731. }}</span>
  11732. </div>
  11733. </div>
  11734. <div class="g_d_group_tableBox">
  11735. <div class="g_d_group_chair2">
  11736. <div v-if="groupJson.number > 2">
  11737. <span
  11738. :class="{
  11739. isChair:
  11740. groupStudent[toolindex][gindex] &&
  11741. groupStudent[toolindex][gindex][2],
  11742. updateChair:
  11743. courseDetail.userid == userid &&
  11744. groupStudent[toolindex][gindex] &&
  11745. groupStudent[toolindex][gindex][2] &&
  11746. groupJson.islock == 2,
  11747. }"
  11748. ><span
  11749. class="updateChairBtn"
  11750. @click="
  11751. updateGroupChair(
  11752. groupStudent[toolindex][gindex] &&
  11753. groupStudent[toolindex][gindex][2]
  11754. )
  11755. "
  11756. >修改</span
  11757. ></span
  11758. ><span>{{
  11759. groupStudent[toolindex][gindex] &&
  11760. groupStudent[toolindex][gindex][2]
  11761. ? groupStudent[toolindex][gindex] &&
  11762. groupStudent[toolindex][gindex][2].name
  11763. : "空位置"
  11764. }}</span>
  11765. </div>
  11766. <div v-if="groupJson.number > 6">
  11767. <span
  11768. :class="{
  11769. isChair:
  11770. groupStudent[toolindex][gindex] &&
  11771. groupStudent[toolindex][gindex][6],
  11772. updateChair:
  11773. courseDetail.userid == userid &&
  11774. groupStudent[toolindex][gindex] &&
  11775. groupStudent[toolindex][gindex][6] &&
  11776. groupJson.islock == 2,
  11777. }"
  11778. ><span
  11779. class="updateChairBtn"
  11780. @click="
  11781. updateGroupChair(
  11782. groupStudent[toolindex][gindex] &&
  11783. groupStudent[toolindex][gindex][6]
  11784. )
  11785. "
  11786. >修改</span
  11787. ></span
  11788. ><span>{{
  11789. groupStudent[toolindex][gindex] &&
  11790. groupStudent[toolindex][gindex][6]
  11791. ? groupStudent[toolindex][gindex] &&
  11792. groupStudent[toolindex][gindex][6].name
  11793. : "空位置"
  11794. }}</span>
  11795. </div>
  11796. </div>
  11797. <div class="g_d_group_table">
  11798. <div>
  11799. {{ g.name }}
  11800. </div>
  11801. <div>
  11802. <div
  11803. v-if="
  11804. courseDetail.userid == userid && groupJson.islock == 2
  11805. "
  11806. @click="deleteGroupChair(gindex)"
  11807. >
  11808. 移除组员
  11809. </div>
  11810. <div
  11811. @click="selectGroup(gindex)"
  11812. v-else-if="
  11813. groupStudentUid[toolindex] &&
  11814. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11815. "
  11816. >
  11817. 加入分组
  11818. </div>
  11819. <div
  11820. @click="
  11821. exitGroup(
  11822. groupStudent[toolindex][gindex] &&
  11823. groupStudent[toolindex][gindex][
  11824. groupStudentUid[toolindex][gindex].indexOf(userid)
  11825. ].id
  11826. )
  11827. "
  11828. v-else-if="
  11829. groupStudentUid[toolindex] &&
  11830. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11831. "
  11832. >
  11833. 退出分组
  11834. </div>
  11835. </div>
  11836. </div>
  11837. <div class="g_d_group_chair2">
  11838. <div v-if="groupJson.number > 3">
  11839. <span
  11840. :class="{
  11841. isChair:
  11842. groupStudent[toolindex][gindex] &&
  11843. groupStudent[toolindex][gindex][3],
  11844. updateChair:
  11845. courseDetail.userid == userid &&
  11846. groupStudent[toolindex][gindex] &&
  11847. groupStudent[toolindex][gindex][3] &&
  11848. groupJson.islock == 2,
  11849. }"
  11850. ><span
  11851. class="updateChairBtn"
  11852. @click="
  11853. updateGroupChair(
  11854. groupStudent[toolindex][gindex] &&
  11855. groupStudent[toolindex][gindex][3]
  11856. )
  11857. "
  11858. >修改</span
  11859. ></span
  11860. ><span>{{
  11861. groupStudent[toolindex][gindex] &&
  11862. groupStudent[toolindex][gindex][3]
  11863. ? groupStudent[toolindex][gindex] &&
  11864. groupStudent[toolindex][gindex][3].name
  11865. : "空位置"
  11866. }}</span>
  11867. </div>
  11868. <div v-if="groupJson.number > 7">
  11869. <span
  11870. :class="{
  11871. isChair:
  11872. groupStudent[toolindex][gindex] &&
  11873. groupStudent[toolindex][gindex][7],
  11874. updateChair:
  11875. courseDetail.userid == userid &&
  11876. groupStudent[toolindex][gindex] &&
  11877. groupStudent[toolindex][gindex][7] &&
  11878. groupJson.islock == 2,
  11879. }"
  11880. ><span
  11881. class="updateChairBtn"
  11882. @click="
  11883. updateGroupChair(
  11884. groupStudent[toolindex][gindex] &&
  11885. groupStudent[toolindex][gindex][7]
  11886. )
  11887. "
  11888. >修改</span
  11889. ></span
  11890. ><span>{{
  11891. groupStudent[toolindex][gindex] &&
  11892. groupStudent[toolindex][gindex][7]
  11893. ? groupStudent[toolindex][gindex] &&
  11894. groupStudent[toolindex][gindex][7].name
  11895. : "空位置"
  11896. }}</span>
  11897. </div>
  11898. </div>
  11899. </div>
  11900. <div class="g_d_group_chair">
  11901. <div v-if="groupJson.number > 1">
  11902. <span
  11903. :class="{
  11904. isChair:
  11905. groupStudent[toolindex][gindex] &&
  11906. groupStudent[toolindex][gindex][1],
  11907. updateChair:
  11908. courseDetail.userid == userid &&
  11909. groupStudent[toolindex][gindex] &&
  11910. groupStudent[toolindex][gindex][1] &&
  11911. groupJson.islock == 2,
  11912. }"
  11913. ><span
  11914. class="updateChairBtn"
  11915. @click="
  11916. updateGroupChair(
  11917. groupStudent[toolindex][gindex] &&
  11918. groupStudent[toolindex][gindex][1]
  11919. )
  11920. "
  11921. >修改</span
  11922. ></span
  11923. ><span>{{
  11924. groupStudent[toolindex][gindex] &&
  11925. groupStudent[toolindex][gindex][1]
  11926. ? groupStudent[toolindex][gindex] &&
  11927. groupStudent[toolindex][gindex][1].name
  11928. : "空位置"
  11929. }}</span>
  11930. </div>
  11931. <div v-if="groupJson.number > 5">
  11932. <span
  11933. :class="{
  11934. isChair:
  11935. groupStudent[toolindex][gindex] &&
  11936. groupStudent[toolindex][gindex][5],
  11937. updateChair:
  11938. courseDetail.userid == userid &&
  11939. groupStudent[toolindex][gindex] &&
  11940. groupStudent[toolindex][gindex][5] &&
  11941. groupJson.islock == 2,
  11942. }"
  11943. ><span
  11944. class="updateChairBtn"
  11945. @click="
  11946. updateGroupChair(
  11947. groupStudent[toolindex][gindex] &&
  11948. groupStudent[toolindex][gindex][5]
  11949. )
  11950. "
  11951. >修改</span
  11952. ></span
  11953. ><span>{{
  11954. groupStudent[toolindex][gindex] &&
  11955. groupStudent[toolindex][gindex][5]
  11956. ? groupStudent[toolindex][gindex] &&
  11957. groupStudent[toolindex][gindex][5].name
  11958. : "空位置"
  11959. }}</span>
  11960. </div>
  11961. <div v-if="groupJson.number > 9">
  11962. <span
  11963. :class="{
  11964. isChair:
  11965. groupStudent[toolindex][gindex] &&
  11966. groupStudent[toolindex][gindex][9],
  11967. updateChair:
  11968. courseDetail.userid == userid &&
  11969. groupStudent[toolindex][gindex] &&
  11970. groupStudent[toolindex][gindex][9] &&
  11971. groupJson.islock == 2,
  11972. }"
  11973. ><span
  11974. class="updateChairBtn"
  11975. @click="
  11976. updateGroupChair(
  11977. groupStudent[toolindex][gindex] &&
  11978. groupStudent[toolindex][gindex][9]
  11979. )
  11980. "
  11981. >修改</span
  11982. ></span
  11983. ><span>{{
  11984. groupStudent[toolindex][gindex] &&
  11985. groupStudent[toolindex][gindex][9]
  11986. ? groupStudent[toolindex][gindex] &&
  11987. groupStudent[toolindex][gindex][9].name
  11988. : "空位置"
  11989. }}</span>
  11990. </div>
  11991. </div>
  11992. </div>
  11993. </div>
  11994. </div>
  11995. </div>
  11996. <span slot="footer" class="dialog-footer">
  11997. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11998. </span>
  11999. </el-dialog>
  12000. <el-dialog
  12001. title="分组设置"
  12002. :visible.sync="dialogVisibleGroup2"
  12003. :append-to-body="true"
  12004. width="650px"
  12005. :before-close="handleClose"
  12006. class="dialog_diy"
  12007. >
  12008. <div class="groupBox">
  12009. <div v-if="groupJson2.group" class="groupContent">
  12010. <div class="groupTitle">请设置小组数量及名称</div>
  12011. <div
  12012. v-for="(item, index) in groupJson2.group"
  12013. :key="index"
  12014. class="groupName"
  12015. >
  12016. <span class="groupn">第{{ index + 1 }}组名称:</span>
  12017. <el-input
  12018. v-model="item.name"
  12019. placeholder="请输入名称..."
  12020. style="width: 250px"
  12021. ></el-input>
  12022. <!-- <div class="groupBtn">
  12023. <el-button type="primary" size="small" @click="addGroup(index)">
  12024. 添加</el-button>
  12025. <el-button type="primary" size="small" @click="deleteGroup(index)"
  12026. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  12027. </div> -->
  12028. </div>
  12029. </div>
  12030. <div class="groupContent">
  12031. <div class="groupTitle">请设置每组人数</div>
  12032. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  12033. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  12034. <el-input
  12035. v-model="groupJson2.number"
  12036. style="width: 150px"
  12037. placeholder="请输入2-10的数字"
  12038. @change="numberPan"
  12039. ></el-input>
  12040. </div>
  12041. </div>
  12042. <span slot="footer" class="dialog-footer">
  12043. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  12044. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  12045. </span>
  12046. </el-dialog>
  12047. <el-dialog
  12048. title="作业提交"
  12049. :visible.sync="dialogVisibleGroupWork"
  12050. :append-to-body="true"
  12051. width="500px"
  12052. :before-close="handleClose"
  12053. class="dialog_change"
  12054. >
  12055. <div class="marginT">
  12056. <div>上传文件</div>
  12057. <div
  12058. class="chapter_add"
  12059. @click="addImg($event)"
  12060. v-if="studyJuri[0].cover.length == 0"
  12061. >
  12062. <div class="up_photo">
  12063. <img src="../../assets/icon/uploadImg.png" alt />
  12064. </div>
  12065. <!-- <input
  12066. type="file"
  12067. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12068. style="display: none"
  12069. @change="beforeUpload1($event, 1)"
  12070. /> -->
  12071. <input
  12072. type="file"
  12073. accept="*"
  12074. style="display: none"
  12075. @change="beforeUpload1($event, 1)"
  12076. />
  12077. </div>
  12078. <!-- capture="camera" -->
  12079. <div
  12080. class="chapter_add"
  12081. style="
  12082. display: flex;
  12083. width: 100%;
  12084. flex-direction: row;
  12085. flex-wrap: wrap;
  12086. justify-content: flex-start;
  12087. padding: 15px 0;
  12088. "
  12089. v-if="studyJuri[0].cover.length > 0"
  12090. >
  12091. <div class="upCover">
  12092. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  12093. <img :src="word" alt v-else-if="fileType == 1" />
  12094. <img :src="video" alt v-else-if="fileType == 2" />
  12095. <img :src="word2" alt v-else-if="fileType == 3" />
  12096. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  12097. <div class="deleteWord" @click="clean(1)">
  12098. <img src="../../assets/icon/deleteWorks.png" alt />
  12099. </div>
  12100. </div>
  12101. </div>
  12102. </div>
  12103. <div
  12104. class="upload_send"
  12105. @click="addCourseWorks2(taskCount)"
  12106. v-if="!proVisible"
  12107. >
  12108. 提交
  12109. </div>
  12110. </el-dialog>
  12111. <el-dialog
  12112. title="修改分组"
  12113. :visible.sync="dialogVisibleUpdateGroup"
  12114. :append-to-body="true"
  12115. width="350px"
  12116. :before-close="handleClose"
  12117. class="dialog_diy"
  12118. >
  12119. <div>
  12120. <h2>
  12121. {{ this.updateGroupUser.name }}
  12122. </h2>
  12123. <div style="color: rgb(171 171 171); margin-top: 10px">
  12124. 请选择要进入的分组
  12125. </div>
  12126. <el-radio-group v-model="checkChair">
  12127. <el-radio
  12128. style="display: block; margin-top: 20px"
  12129. v-for="(item, index) in updateGroupArray"
  12130. :label="item.label"
  12131. :key="index"
  12132. >{{ item.name }}</el-radio
  12133. >
  12134. </el-radio-group>
  12135. </div>
  12136. <span slot="footer" class="dialog-footer">
  12137. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  12138. <el-button type="primary" @click="updateChair">确定</el-button>
  12139. </span>
  12140. </el-dialog>
  12141. <el-dialog
  12142. title="移除组员"
  12143. :visible.sync="dialogVisibleDeleteGroup"
  12144. :append-to-body="true"
  12145. width="350px"
  12146. :before-close="handleClose"
  12147. class="dialog_diy"
  12148. >
  12149. <div>
  12150. <h2>
  12151. {{ this.deleteGroupArray.name }}
  12152. </h2>
  12153. <div style="color: rgb(171 171 171); margin-top: 10px">
  12154. 请选择要删除的组员
  12155. </div>
  12156. <el-checkbox-group v-model="checkDeleteGroup">
  12157. <el-checkbox
  12158. style="display: flex; margin-top: 20px"
  12159. v-for="(item, index) in deleteGroupUser"
  12160. :label="item.userid"
  12161. :key="index"
  12162. >{{ item.name }}</el-checkbox
  12163. >
  12164. </el-checkbox-group>
  12165. </div>
  12166. <span slot="footer" class="dialog-footer">
  12167. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  12168. <el-button type="primary" @click="deleteChair">确定</el-button>
  12169. </span>
  12170. </el-dialog>
  12171. <el-dialog
  12172. title="批量上传"
  12173. :visible.sync="dialogVisiblePl"
  12174. :append-to-body="true"
  12175. width="700px"
  12176. :before-close="handleClose"
  12177. class="dialog_change"
  12178. >
  12179. <div class="marginT">
  12180. <div class="plworkBox">
  12181. <div
  12182. class="chapter_add"
  12183. style="
  12184. display: flex;
  12185. width: 150px;
  12186. flex-direction: row;
  12187. flex-wrap: wrap;
  12188. justify-content: flex-start;
  12189. margin: 0 10px 10px 0;
  12190. "
  12191. v-for="(item, index) in plworkFile"
  12192. :key="index"
  12193. >
  12194. <div class="upCover2">
  12195. <img
  12196. :src="item.url"
  12197. alt
  12198. v-if="item.fileType == 1"
  12199. @click="previewImg(item.url)"
  12200. />
  12201. <img :src="word" alt v-else-if="item.fileType == 4" />
  12202. <img :src="video" alt v-else />
  12203. <!-- <span class="picName">{{ item.name }}</span> -->
  12204. <!-- <el-input
  12205. v-model="item.username"
  12206. placeholder="请输入学生名字"
  12207. style="margin-top: 10px"
  12208. ></el-input> -->
  12209. <div
  12210. class="pl_select_box"
  12211. @click="
  12212. getUpdateMore(true, checkUpload(), item.username, index)
  12213. "
  12214. >
  12215. {{ getSName(item.username) }}
  12216. </div>
  12217. <!-- <el-select
  12218. style="margin-top: 10px"
  12219. v-model="item.username"
  12220. filterable
  12221. allow-create
  12222. placeholder="请选择学生"
  12223. >
  12224. <el-option
  12225. v-for="item1 in checkUpload()"
  12226. :key="item1.userid"
  12227. :label="item1.name ? item1.name : item1.username"
  12228. :value="item1.userid"
  12229. >
  12230. </el-option>
  12231. </el-select> -->
  12232. <div class="deleteWord" @click="clean2(index)">
  12233. <img src="../../assets/icon/deleteWorks.png" alt />
  12234. </div>
  12235. </div>
  12236. </div>
  12237. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  12238. <div class="up_photo2">
  12239. <img src="../../assets/icon/plwork.png" alt />
  12240. <span>点击上传文件</span>
  12241. </div>
  12242. <input
  12243. type="file"
  12244. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12245. multiple="multiple"
  12246. style="display: none"
  12247. @change="beforeUpload3($event, 6)"
  12248. />
  12249. </div>
  12250. </div>
  12251. </div>
  12252. <!-- capture="camera" -->
  12253. <div
  12254. class="upload_send"
  12255. @click="addCourseWorksPl(taskCount)"
  12256. v-if="!proVisible2"
  12257. >
  12258. 提交
  12259. </div>
  12260. </el-dialog>
  12261. <el-dialog
  12262. title="修改名称"
  12263. :visible.sync="dialogVisibleSname"
  12264. width="500px"
  12265. :before-close="handleClose"
  12266. class="dialog_diy"
  12267. center
  12268. >
  12269. <div
  12270. style="
  12271. text-align: center;
  12272. display: flex;
  12273. align-items: center;
  12274. justify-content: center;
  12275. "
  12276. >
  12277. <span class="tian1">名称</span>
  12278. <div
  12279. class="pl_select_box"
  12280. style="margin-left: 10px; width: 200px"
  12281. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  12282. >
  12283. {{ getSName(worksSName) }}
  12284. </div>
  12285. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  12286. placeholder="请选择学生">
  12287. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  12288. :value="item.userid">
  12289. </el-option>
  12290. </el-select> -->
  12291. <!-- <el-input
  12292. v-model="worksSName"
  12293. style="width: 250px; margin: 15px 0px"
  12294. ></el-input> -->
  12295. </div>
  12296. <span slot="footer" class="dialog-footer">
  12297. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  12298. <el-button type="primary" @click="updateName">确 定</el-button>
  12299. </span>
  12300. </el-dialog>
  12301. <el-dialog
  12302. title="英语写作"
  12303. :visible.sync="engDialogVisible"
  12304. :append-to-body="true"
  12305. width="800px"
  12306. :before-close="handleClose"
  12307. class="dialog_diy"
  12308. >
  12309. <onlineWrite
  12310. v-if="engDialogVisible"
  12311. :englishList="englishList"
  12312. :myAnswerList1="myAnswerList1"
  12313. ref="engJson"
  12314. ></onlineWrite>
  12315. <span slot="footer" class="dialog-footer" style="text-align: center;">
  12316. <el-button @click="engDialogVisible = false">取 消</el-button>
  12317. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  12318. </span>
  12319. </el-dialog>
  12320. <el-dialog
  12321. title="英语写作"
  12322. :visible.sync="engUpdateDialogVisible"
  12323. :append-to-body="true"
  12324. width="800px"
  12325. :before-close="handleClose"
  12326. class="dialog_diy fullStyle"
  12327. >
  12328. <div class="engUpBox">
  12329. <div class="engUpTop">
  12330. <div class="engTitle">
  12331. <div>作文题目:</div>
  12332. <div>{{ englishList1.engTitle }}</div>
  12333. </div>
  12334. <div class="engText">
  12335. <div>作文内容:</div>
  12336. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  12337. </div>
  12338. </div>
  12339. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  12340. <div class="oldBox">
  12341. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  12342. <div class="oldText">
  12343. <div class="detailBox">
  12344. <div class="oldDetail">
  12345. <div>标题:</div>
  12346. <div>{{ oldEnglishJson.engTitle }} </div>
  12347. </div>
  12348. <div class="oldDetail1">
  12349. <div>正文:</div>
  12350. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  12351. </div>
  12352. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  12353. <div>图片:</div>
  12354. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  12355. </div>
  12356. </div>
  12357. </div>
  12358. </div>
  12359. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  12360. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  12361. <div class="oldText">
  12362. <div class="detailBox" style="position: relative;">
  12363. <div class="oldDetail">
  12364. <div>标题:</div>
  12365. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12366. <div v-else v-html="newEnglishList.engTitle"></div>
  12367. </div>
  12368. <div class="oldDetail">
  12369. <div>正文:</div>
  12370. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12371. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12372. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  12373. </div>
  12374. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12375. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12376. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12377. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12378. </div>
  12379. </div>
  12380. </div>
  12381. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  12382. <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">
  12383. <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>
  12384. <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>
  12385. </div>
  12386. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  12387. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  12388. <div class="detailBox" style="position: relative;">
  12389. <div class="oldDetail">
  12390. <div>标题:</div>
  12391. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  12392. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  12393. </div>
  12394. <div class="oldDetail">
  12395. <div>正文:</div>
  12396. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  12397. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  12398. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(oldEnglishJson1.engText,correctWord)"></div> -->
  12399. </div>
  12400. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12401. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12402. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12403. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12404. </div>
  12405. </div>
  12406. <div class="oldText" v-else-if="newEngIndex == -1">
  12407. <div class="detailBox" style="position: relative;">
  12408. <div class="oldDetail">
  12409. <div>标题:</div>
  12410. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12411. <div v-else v-html="newEnglishList.engTitle"></div>
  12412. </div>
  12413. <div class="oldDetail">
  12414. <div>正文:</div>
  12415. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12416. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12417. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  12418. </div>
  12419. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12420. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12421. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12422. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12423. </div>
  12424. </div>
  12425. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  12426. <div class="detailBox" style="position: relative;">
  12427. <div class="oldDetail">
  12428. <div>标题:</div>
  12429. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12430. <div v-else>
  12431. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  12432. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12433. </div>
  12434. </div>
  12435. <div class="oldDetail">
  12436. <div>正文:</div>
  12437. <!-- <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engText"></div> -->
  12438. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12439. <div v-else>
  12440. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  12441. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12442. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList1[newEngIndex].cWork.engText,correctWord)"></div> -->
  12443. </div>
  12444. </div>
  12445. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12446. <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>
  12447. <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>
  12448. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12449. </div>
  12450. </div>
  12451. </div>
  12452. </div>
  12453. </div>
  12454. <span slot="footer" class="dialog-footer">
  12455. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  12456. <el-button type="primary" @click="addCorrect">确 定</el-button>
  12457. </span>
  12458. </el-dialog>
  12459. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  12460. <interVideo
  12461. :dialogVisibleVideo.sync="dialogVisibleVideo"
  12462. :videoJson="videoJson"
  12463. :userid="userid"
  12464. :id="id"
  12465. :courseType="courseType"
  12466. :taskCount="taskCount"
  12467. :toolindex="toolindex"
  12468. :videoType="videoType"
  12469. ></interVideo>
  12470. <UpdateMore
  12471. :dialogVisibleMember.sync="dialogVisibleMember"
  12472. :cList="uploadStudentJuri"
  12473. :userid="userid"
  12474. :searchTN="worksSName2"
  12475. @setPlname="setPlname"
  12476. ></UpdateMore>
  12477. <!-- <wordCloud
  12478. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  12479. :data="wordCloudData"
  12480. ></wordCloud> -->
  12481. <el-dialog
  12482. title="词云"
  12483. :visible.sync="dialogVisibleWordCloud"
  12484. width="30%"
  12485. class="dialog_diy"
  12486. :before-close="handleClose">
  12487. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  12488. </el-dialog>
  12489. <el-dialog
  12490. title="挑人"
  12491. :visible.sync="dialogVisiblePickPeople"
  12492. width="650px"
  12493. :before-close="handleClose"
  12494. class="dialog_diy"
  12495. center
  12496. >
  12497. <div class="pick_box">
  12498. <div
  12499. class="noWorksName"
  12500. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  12501. v-for="(item, index) in uploadStudentJuri"
  12502. :key="index"
  12503. @click="pickStudent(item)"
  12504. >
  12505. {{ item.name }}
  12506. </div>
  12507. </div>
  12508. </el-dialog>
  12509. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  12510. :englishVoiceJson='englishVoiceJson'
  12511. :userid="userid"
  12512. :id="id"
  12513. :courseType="courseType"
  12514. :taskCount="taskCount"
  12515. :toolindex="toolindex"
  12516. @selectSWorks="selectSWorks"
  12517. @selectStudent="selectStudent"
  12518. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  12519. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  12520. :userid="userid"
  12521. :dialogVisibleENScore.sync='dialogVisibleENScore'
  12522. :commentDetail="commentDetail"
  12523. :courseDetail="courseDetail"
  12524. :wScore="wScore"
  12525. :scoreDetail="scoreDetail"
  12526. @selectSWorks="selectSWorks"
  12527. @selectStudent="selectStudent"></checkEnglishVoice>
  12528. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  12529. <choseWorksDetailDialog
  12530. ref="choseWorksDetailDialogRef"
  12531. :worksStudentData="worksStudent"
  12532. :noWorksSData="noWorksS"
  12533. :chapInfoListData="chapInfoList"
  12534. :courseType="courseType"
  12535. :taskCount="taskCount"
  12536. :tType="tType"
  12537. :sIsOpen="sIsOpen"
  12538. :courseDetail="courseDetail"
  12539. :groupStudent2="groupStudent"
  12540. :groupStudentUid2="groupStudentUid"
  12541. :oid="oid"
  12542. :org="org"
  12543. @getCourseDetail="getCourseDetail"
  12544. @selectSLook="selectSLook"
  12545. @selectSWorks="selectSWorks"
  12546. @selectStudent="selectStudent"
  12547. @deleteWorks="deleteWorks"
  12548. @openTools="openTools"
  12549. @openWord="openWord"
  12550. @openScore="openScore"
  12551. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  12552. />
  12553. <el-dialog
  12554. :visible.sync="confirmOpenDig"
  12555. width="500px"
  12556. :modal="false"
  12557. class="confirmOpenDigCss dialog_diyCopy"
  12558. :before-close="handleClose">
  12559. <div style="display: flex;align-items: center;">
  12560. <img src="../../assets/icon/course/confirmOpenDig.svg" alt="">
  12561. <span>“{{ courseDetail.title }}”开课啦</span>
  12562. </div>
  12563. <div style="margin: 20px 0 35px;">
  12564. <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
  12565. <div>要认真听讲哦~</div>
  12566. </div>
  12567. <div style="text-align: center;">
  12568. <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
  12569. </div>
  12570. </el-dialog>
  12571. <appStoreC ref="appStoreC"
  12572. :sStudent="sStudent"
  12573. :courseType="courseType"
  12574. :taskCount="taskCount"
  12575. :toolindex="toolindex"
  12576. @selectSWorks="selectSWorks"
  12577. @selectStudent="selectStudent"
  12578. ></appStoreC>
  12579. <cocoFlowDia ref="cocoFlowDiaRef"></cocoFlowDia>
  12580. </div>
  12581. </template>
  12582. <script>
  12583. import "../../common/aws-sdk-2.235.1.min.js";
  12584. // import pdf from "../components/pdf3";
  12585. import pdf from "../components/vpdf";
  12586. import AskStatic from "../components/askStatic";
  12587. import AskStatic2 from "../components/askStatic2";
  12588. import AnswerData2 from "../components/answerData2";
  12589. import AnswerData from "../components/answerData";
  12590. import sortToolWorkShow from "../components/sortToolWorkShow.vue";
  12591. import EditorBar from "../tools/wangEnduit.vue";
  12592. import Table from "../tools/table.vue";
  12593. import Time from "../tools/time.vue";
  12594. import Mind from "../tools/jsmind.vue";
  12595. import Sunburst from "../tools/sunburst";
  12596. import SeeBoard from "../tools/seeBoard";
  12597. import * as imageConversion from "image-conversion";
  12598. import Audio from "../components/audio.vue";
  12599. import ImgDraw from "../tools/imgDraw/imgDraw";
  12600. import { Empty } from "element-ui";
  12601. import RecordRTC from "recordrtc";
  12602. import interVideo from "../interVideo/index.vue";
  12603. import UpdateMore from "../updateMore/updateMore.vue";
  12604. import wordCloud from "../wordCloud/index.vue";
  12605. import axios from "axios";
  12606. import JSZip from "jszip";
  12607. import FileSaver from "file-saver";
  12608. import onlineWrite from "./commpont/onlineWrite";
  12609. import englishEva from "../components/englishEva";
  12610. import * as Diff from 'diff'
  12611. import EnglishVoice from '../EnglishVoice2/index.vue'
  12612. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  12613. import correctText from '../components/correctText.vue'
  12614. import scoreItem from '../scoreList/scoreItem.vue'
  12615. import scoreZong from '../scoreZong/index.vue'
  12616. import classRoomHelper from '../classRoomHelper/index.vue'
  12617. import studentClassRoomHelper from '../classRoomHelper/studentIndex.vue'
  12618. import MarkdownIt from "markdown-it";
  12619. import statisticalAnalysis from '../components/statisticalAnalysis.vue'
  12620. import choseWorksDetailDialog from '../components/choseWorksDetailDialog.vue'
  12621. import { v4 as uuidv4 } from "uuid";
  12622. var OpenCC = require("opencc-js");
  12623. import choseWordCloud from '../components/choseWordCloud.vue'
  12624. import appStoreC from "../components/appStoreC.vue";
  12625. import cocoFlowDia from "../components/cocoFlowDia.vue";
  12626. import { myMixin } from "@/mixins/mixin.js"
  12627. import { tools as toolsList } from "@/common/tools2.js";
  12628. import katex from 'katex'
  12629. import 'katex/dist/katex.min.css'
  12630. let converter = OpenCC.Converter({
  12631. from: "hk",
  12632. to: "cn"
  12633. });
  12634. const getFile = (url) => {
  12635. return new Promise((resolve, reject) => {
  12636. var credentials = {
  12637. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  12638. secretAccessKey: "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",
  12639. }; //秘钥形式的登录上传
  12640. window.AWS.config.update(credentials);
  12641. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12642. let url2 = url;
  12643. let _url2 = "";
  12644. if (
  12645. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  12646. ) {
  12647. _url2 = url2.split(
  12648. "https://view.officeapps.live.com/op/view.aspx?src="
  12649. )[1];
  12650. } else {
  12651. _url2 = url2;
  12652. }
  12653. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  12654. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  12655. var params = {
  12656. Bucket: "ccrb",
  12657. Key: name
  12658. };
  12659. s3.getObject(params, function (err, data) {
  12660. if (err) {
  12661. console.log(err, err.stack)
  12662. resolve({ data: 1 });
  12663. }else {
  12664. resolve({ data: data.Body });
  12665. console.log(data);
  12666. } // sxuccessful response
  12667. });
  12668. // axios({
  12669. // method: "get",
  12670. // url,
  12671. // responseType: "blob",
  12672. // })
  12673. // .then((data) => {
  12674. // resolve({ data: data.data });
  12675. // })
  12676. // .catch((error) => {
  12677. // resolve({ data: 1 });
  12678. // // reject(error.toString());
  12679. // });
  12680. });
  12681. };
  12682. export default {
  12683. mixins: [ myMixin ],
  12684. components: {
  12685. choseWordCloud,
  12686. EditorBar,
  12687. Time,
  12688. pdf,
  12689. AskStatic,
  12690. AskStatic2,
  12691. Mind,
  12692. Sunburst,
  12693. SeeBoard,
  12694. AnswerData2,
  12695. AnswerData,
  12696. sortToolWorkShow,
  12697. Audio,
  12698. ImgDraw,
  12699. Table,
  12700. interVideo,
  12701. UpdateMore,
  12702. wordCloud,
  12703. onlineWrite,
  12704. englishEva,
  12705. EnglishVoice,
  12706. checkEnglishVoice,
  12707. correctText,
  12708. scoreItem,
  12709. classRoomHelper,
  12710. scoreZong,
  12711. statisticalAnalysis,
  12712. choseWorksDetailDialog,
  12713. appStoreC,
  12714. cocoFlowDia,
  12715. studentClassRoomHelper
  12716. },
  12717. data() {
  12718. return {
  12719. // 学校或者组织随机码
  12720. Code2:'',
  12721. startTime: "",
  12722. // 是否允许学生查看内容资料 2不可以 1可以
  12723. IsStulook:false,
  12724. homeWorkLoading:false,
  12725. toolsList: toolsList,
  12726. wordCloudKey: 0,
  12727. bg: null,
  12728. drawShow: false,
  12729. dialogVisible: false,
  12730. dialogVisiblePl: false,
  12731. commentDialogVisible: false,
  12732. dialogVisibleMember: false,
  12733. dialogVisibleWordCloud: false,
  12734. videoVisible: false,
  12735. isStar: false,
  12736. studentEvalDialogVisible: false,
  12737. studentEvalDialogVisibleTeacher: false,
  12738. dialogVisibleSelect: false,
  12739. dialogVisibleSelectTeacher: false,
  12740. dialogVisibleScore: false,
  12741. dialogVisibleENScore: false,
  12742. dialogVisibleSentence: false,
  12743. dialogVisibleSentenceTeacher: false,
  12744. dialogVisibleSentence1: false,
  12745. dialogVisibleWorks: false,
  12746. dialogVisibleTable: false,
  12747. dialogVisibleTableTeacher: false,
  12748. dialogVisibleWord: false,
  12749. dialogVisibleWordTeacher: false,
  12750. dialogVisibleTable2: false,
  12751. dialogVisibleTable3: false,
  12752. dialogVisibleGroupWork: false,
  12753. dialogVisibleUpdateGroup: false,
  12754. dialogVisibleDeleteGroup: false,
  12755. dialogVisibleSname: false,
  12756. dialogVisibleVideo: false,
  12757. dialogVisiblePickPeople: false,
  12758. worksSName: "",
  12759. classJuri: [],
  12760. uploadStudentJuri: [],
  12761. uploadCid: "",
  12762. snameWid: "",
  12763. sStudent: {},
  12764. sTool: "",
  12765. bzText: "",
  12766. commentDetail: [],
  12767. selectAnswer: [],
  12768. videoDetail: {},
  12769. selectJson: {},
  12770. eScore: { eBzText: "", eStar: [] },
  12771. id: this.$route.query.courseId,
  12772. userid: this.$route.query.userid,
  12773. classId: this.$route.query.cid,
  12774. role: this.$route.query.role,
  12775. // courseTypeLine: this.$route.query.type,
  12776. oid: this.$route.query.oid,
  12777. org: this.$route.query.org,
  12778. tType: this.$route.query.tType,
  12779. courseType: this.$route.query.type,
  12780. screenType: this.$route.query.screenType,
  12781. tcid2: this.$route.query.tcid,
  12782. tcid: "",
  12783. pptImgUrl: "",
  12784. pptImgUrl1: "",
  12785. commentText: "",
  12786. full: false,
  12787. sIsOpen: false,
  12788. IsLookOpen: false,
  12789. IsFollow: false,
  12790. pzDialog: false,
  12791. contentDialog: false,
  12792. mlDialog: false,
  12793. type: 1,
  12794. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12795. sentenceList1: [],
  12796. tableJson: [],
  12797. tableJsonO: [],
  12798. wordJson: [],
  12799. wordJsonO: [],
  12800. vedio: [],
  12801. text: [],
  12802. textList: [],
  12803. line: [],
  12804. lineList: [],
  12805. chapTools: [],
  12806. chapToolList: [],
  12807. file: [],
  12808. fileC: [],
  12809. vedioTime: [],
  12810. upToolImg: "",
  12811. preTime: 0,
  12812. rateList: {
  12813. ca: 0,
  12814. },
  12815. rateParams: [],
  12816. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12817. studyJuri: [
  12818. {
  12819. content: "",
  12820. cover: [],
  12821. upVedio: [],
  12822. upFile: [],
  12823. },
  12824. ],
  12825. isClose: 0,
  12826. plworkFile: [],
  12827. mr: require("../../assets/vedioPic.png"),
  12828. word: require("../../assets/icon/isWord.png"),
  12829. word2: require("../../assets/icon/word2.png"),
  12830. video: require("../../assets/icon/isVideo.png"),
  12831. noLikes: require("../../assets/icon/comment/noLikes.png"),
  12832. likes: require("../../assets/icon/comment/likes.png"),
  12833. scoreImg: require("../../assets/score.png"),
  12834. courseDetail: {},
  12835. reply: "",
  12836. isSelect: false,
  12837. chapInfo: [],
  12838. chapInfoList: [],
  12839. taskCount: 0,
  12840. imgList: [],
  12841. noImgList: [],
  12842. pzList: [],
  12843. timeWorkList: [],
  12844. PlTextList: [
  12845. "Excellent!",
  12846. "nice!",
  12847. "很有创意!",
  12848. "还不错哦~",
  12849. "继续努力哦~",
  12850. ],
  12851. isClickNav: "",
  12852. navId: "",
  12853. playerOptions: {
  12854. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12855. autoplay: false, //如果true,浏览器准备好时开始回放。
  12856. muted: false, // 默认情况下将会消除任何音频。
  12857. loop: false, // 导致视频一结束就重新开始。
  12858. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12859. language: "zh-CN",
  12860. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12861. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12862. sources: [
  12863. {
  12864. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12865. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12866. },
  12867. ],
  12868. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12869. // poster: dataRes.imgUrl, //你的封面地址
  12870. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12871. controlBar: {
  12872. timeDivider: true, //当前时间和持续时间的分隔符
  12873. durationDisplay: true, //显示持续时间
  12874. remainingTimeDisplay: false, //是否显示剩余时间功能
  12875. fullscreenToggle: true, //全屏按钮
  12876. },
  12877. },
  12878. playerOptions1: {
  12879. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12880. autoplay: false, //如果true,浏览器准备好时开始回放。
  12881. muted: false, // 默认情况下将会消除任何音频。
  12882. loop: false, // 导致视频一结束就重新开始。
  12883. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12884. language: "zh-CN",
  12885. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12886. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12887. sources: [
  12888. {
  12889. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12890. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12891. },
  12892. ],
  12893. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12894. // poster: dataRes.imgUrl, //你的封面地址
  12895. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12896. controlBar: {
  12897. timeDivider: true, //当前时间和持续时间的分隔符
  12898. durationDisplay: true, //显示持续时间
  12899. remainingTimeDisplay: false, //是否显示剩余时间功能
  12900. fullscreenToggle: true, //全屏按钮
  12901. },
  12902. },
  12903. playerO: {},
  12904. noneBtnImg: false,
  12905. proVisible: false,
  12906. proVisible2: false,
  12907. progress: 0,
  12908. isFinishSize: 0,
  12909. isAllSize: 0,
  12910. questionAnswer: "",
  12911. answerQ: "", //问答标题
  12912. rateJson: [],
  12913. wbCount: 0,
  12914. wordCount: 0,
  12915. mindCount: 0,
  12916. askCount: 0,
  12917. noteCount: 0,
  12918. mindNetWorkCount: 0,
  12919. libraryCount: 0,
  12920. workCount: 0,
  12921. timeCount: 0,
  12922. answerCount: 0,
  12923. trainCount: 0,
  12924. evalCount: 0,
  12925. dialogImageUrl: "",
  12926. pictureDialog: false,
  12927. toolTypeList: [],
  12928. dialogVisible1: false,
  12929. dialogVisible2: false,
  12930. dialogVisible3: false,
  12931. dialogVisible6: false,
  12932. dialogVisible4: false,
  12933. isNoHomeWork: false,
  12934. dialogVisible5: false,
  12935. dialogVisible5Teacher: false,
  12936. dialogVisibleChoice: false,
  12937. dialogVisibleChoiceTeacher: false,
  12938. answerDialogVisible: false,
  12939. answerDialogVisibleTeacher: false,
  12940. juriVisible: false,
  12941. timeDialogVisible: false,
  12942. replyDialogVisible: false,
  12943. toolDialogVisible: false,
  12944. engDialogVisible: false,
  12945. engUpdateDialogVisible:false,
  12946. engEvaDialogVisible: false,
  12947. evaEngJson: {
  12948. teacherJson: {},
  12949. studentJson: {},
  12950. message: {},
  12951. },
  12952. isNoUserid:false,
  12953. engListLength:0,
  12954. engWid:"",
  12955. newEnglishList:{
  12956. engTitle:"",
  12957. engText:"",
  12958. },
  12959. newEnglishList1:[],
  12960. oldEnglishJson:{},
  12961. oldEnglishJson1:{},
  12962. englishList1:{},
  12963. englishList:{},
  12964. myAnswerList1:{},
  12965. topHeight:0,
  12966. newEngIndex:-1,
  12967. englishToolIndex:0,
  12968. userMes:{},
  12969. englishToolIndex:0,
  12970. replyIndex: 0,
  12971. replyPid: "",
  12972. radio: [],
  12973. isAsk: false,
  12974. askJson: {
  12975. askCount: 1,
  12976. askTitle: "",
  12977. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12978. },
  12979. testJson: {},
  12980. englishList: {},
  12981. topHeight:0,
  12982. checkJson: [],
  12983. askList: [],
  12984. answerList: [],
  12985. navList: [],
  12986. addPzDialog: false,
  12987. pzConText: "",
  12988. worksStudent: [],
  12989. isCloseList: [],
  12990. workStudent: [],
  12991. groupStudent: [],
  12992. groupStudentUid: [],
  12993. noWorksS: [],
  12994. isWorksS: [],
  12995. noWorksStudent: [],
  12996. toolindex: 0,
  12997. toolDetailIndex: null,
  12998. groupIndex: 0,
  12999. workTypeB: false,
  13000. workTypeC: false,
  13001. isAnswer: false,
  13002. isHovered: false,
  13003. isHovered1: false,
  13004. isHovered2: false,
  13005. commentTagShow:0,
  13006. timer: null,
  13007. timer2: null,
  13008. opertimer: null,
  13009. showType: '',
  13010. fileType: 0,
  13011. showPDF: false,
  13012. noteName: "",
  13013. evaJuri: [],
  13014. evalua: "",
  13015. eTitle: "",
  13016. eName: "",
  13017. eJson: {},
  13018. fid: "", //一级
  13019. sid: "", //二级
  13020. tid: "", //二级
  13021. typeMode: 1,
  13022. eJSONNum: 0,
  13023. Etype: 1,
  13024. data: {
  13025. meta: {
  13026. name: "example",
  13027. author: "dd@163.com",
  13028. version: "0.2",
  13029. },
  13030. format: "node_array",
  13031. data: [{ id: "root", isroot: true, topic: "" }],
  13032. },
  13033. fullDialogVisible: false,
  13034. fulltype: "",
  13035. fullUrl: "",
  13036. commentIndexJson: {},
  13037. Stbodywidth: 0,
  13038. ispzType: 0,
  13039. pzType: 1,
  13040. wScore: 0,
  13041. scoreDetail: "",
  13042. videoStart: false,
  13043. recorder: null,
  13044. groupJson: {},
  13045. islock: false,
  13046. groupJson2: {},
  13047. dialogVisibleGroup: false,
  13048. dialogVisibleGroup2: false,
  13049. updateGroupArray: [],
  13050. updateGroupUser: {},
  13051. deleteGroupUser: [],
  13052. deleteGroupArray: {},
  13053. checkChair: "",
  13054. checkDeleteGroup: [],
  13055. inviteCode: "",
  13056. courseGroupStudent: [],
  13057. courseGroupStudentUid: [],
  13058. courseGroup: {},
  13059. isGroup: false,
  13060. toolIndex: null,
  13061. tool: {},
  13062. isWorkTool: [
  13063. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  13064. ], //, 40
  13065. videoJson: {},
  13066. videoType:0,
  13067. toolType: 0,
  13068. checktoolArray: [],
  13069. vChapterData: [],
  13070. isUpdateToolDetail: false,
  13071. isUpdateToolDetail1: false,
  13072. updateToolDetailInner: "",
  13073. checkboxList: [],
  13074. plIndex: "",
  13075. worksSName2: "",
  13076. worksSid: "",
  13077. wordCloudData: [],
  13078. isPickStudent: [],
  13079. pzStype: 1,
  13080. myAnList: {},
  13081. downLoading: false,
  13082. greyType: false,
  13083. correctWord: [],
  13084. EnglishVoiceDialog: false,
  13085. englishVoiceJson: {},
  13086. englishVoiceJsonWork:[],
  13087. scoreList:{
  13088. listdata:[],
  13089. isScoreList:[],
  13090. },
  13091. classRoomHelperWidth: '85px',
  13092. orgArray:[],
  13093. oidArray:[],
  13094. splitScreenData:{
  13095. isOpen:false,
  13096. userId:"",
  13097. uid:"",
  13098. myUid:"",
  13099. loading:false,
  13100. behavior:null,
  13101. },
  13102. confirmOpenDig:false,
  13103. confirmOpenDigData:'',
  13104. diffKey:"1",
  13105. getCourseGroupLoading: false,
  13106. selectSWorksLoading:false,
  13107. selectStudentLoading:false,
  13108. selectSLookLoading:false,
  13109. getPickLoading:false,
  13110. selectPzLoading:false,
  13111. getSplitScreenDataLoading:false,
  13112. };
  13113. },
  13114. methods: {
  13115. // 获取学校或组织随机码
  13116. getCode2(){
  13117. let params = {
  13118. oid: this.oid,
  13119. org: this.org
  13120. };
  13121. this.ajax
  13122. .get(this.$store.state.api + "getCode2", params)
  13123. .then(res => {
  13124. this.Code2 = res.data[0][0].code2
  13125. })
  13126. .catch(err => {
  13127. console.error(err);
  13128. });
  13129. },
  13130. //查看应用中心作业
  13131. openCocoFlow(w){
  13132. this.$refs.cocoFlowDiaRef.openAppWork(w)
  13133. },
  13134. getAIJ(){
  13135. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  13136. let oid = res.data[0];
  13137. let org = res.data[1];
  13138. let oidArray = [];
  13139. let orgArray = [];
  13140. oid.forEach(i=>oidArray.push(i.oid))
  13141. org.forEach(i=>orgArray.push(i.oid))
  13142. this.orgArray = orgArray;
  13143. this.oidArray = oidArray;
  13144. })
  13145. },
  13146. insertMemorandum(_html){//保存行为操作
  13147. //variable
  13148. //btn
  13149. let params = [{
  13150. uid:this.userid,
  13151. courseId:this.id+(this.tcid2?this.tcid2:''),
  13152. content:_html
  13153. }]
  13154. console.log(params)
  13155. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  13156. if(res.data==1){
  13157. console.log('保存操作成功')
  13158. }else{
  13159. console.log('保存操作失败')
  13160. }
  13161. }).catch(e=>{
  13162. console.log('保存操作失败')
  13163. console.log(e)
  13164. })
  13165. },
  13166. gx(){
  13167. this.$forceUpdate();
  13168. },
  13169. isUpdateCorrect(t,p){
  13170. if(this.greyType == false){
  13171. this.isUpdateText = t;
  13172. this.greyType = true;
  13173. }else{
  13174. if(p == 1){
  13175. this.newEnglishList.engText = this.isUpdateText;
  13176. }else if(p == 2){
  13177. this.oldEnglishJson1.engText = this.isUpdateText;
  13178. }else if(p == 3){
  13179. this.newEnglishList.engText = this.isUpdateText;
  13180. }else{
  13181. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  13182. }
  13183. this.greyType = false
  13184. }
  13185. },
  13186. aiCorrect(t,p){
  13187. let aiText = "";
  13188. const loading = this.$loading.service({
  13189. background: "rgba(255, 255, 255)",
  13190. target: document.querySelectorAll(".loadingText")[0],
  13191. });
  13192. let param = {
  13193. model: "gpt-3.5-turbo",
  13194. temperature: 0,
  13195. max_tokens: 2048,
  13196. top_p: 1,
  13197. frequency_penalty: 0,
  13198. presence_penalty: 0,
  13199. messages: [
  13200. {
  13201. role: "user",
  13202. content:
  13203. `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  13204. },
  13205. ],
  13206. uid: this.userid,
  13207. stream: false,
  13208. };
  13209. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  13210. (res) => {
  13211. if (
  13212. res.data.FunctionResponse &&
  13213. res.data.FunctionResponse.result &&
  13214. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  13215. ) {
  13216. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  13217. return;
  13218. }
  13219. aiText =
  13220. res.data.FunctionResponse.choices[0].message.content;
  13221. aiText = aiText.replace(/%/g,"%25");
  13222. // let w = "";
  13223. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  13224. // for(var k = 0;k<a.length;k++){
  13225. // //diffWordsWithSpace
  13226. // if(a.length > 1){
  13227. // if(a[k].added == true){
  13228. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  13229. // }else if(a[k].removed == true){
  13230. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  13231. // }else{
  13232. // w += '<span>' + a[k].value + '</span>';
  13233. // }
  13234. // }else{
  13235. // if(p == 1){
  13236. // w = this.newEnglishList.engText;
  13237. // }else if(p == 2){
  13238. // w = this.oldEnglishJson1.engText;
  13239. // }else if(p == 3){
  13240. // w = this.newEnglishList.engText;
  13241. // }else{
  13242. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  13243. // }
  13244. // }
  13245. // }
  13246. if(p == 1){
  13247. this.newEnglishList.engText = aiText;
  13248. }else if(p == 2){
  13249. this.oldEnglishJson1.engText = aiText;
  13250. }else if(p == 3){
  13251. this.newEnglishList.engText = aiText;
  13252. }else{
  13253. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  13254. }
  13255. loading.close();
  13256. },
  13257. (err) => {
  13258. console.log(err);
  13259. loading.close();
  13260. }
  13261. );
  13262. },
  13263. addToolChoose() {
  13264. if (!this.checktoolArray.length) {
  13265. this.$message.error("请选择要添加的任务");
  13266. return;
  13267. }
  13268. if (
  13269. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13270. this.taskCount
  13271. ].toolChoose[0].tool.length
  13272. ) {
  13273. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13274. this.taskCount
  13275. ].toolChoose[0].tool = this.checktoolArray;
  13276. } else {
  13277. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13278. this.taskCount
  13279. ].toolChoose.push({
  13280. tool: this.checktoolArray,
  13281. toolDetail: "",
  13282. toolType: 0,
  13283. askCount: 1,
  13284. askTitle: "",
  13285. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13286. });
  13287. }
  13288. let params = [
  13289. {
  13290. cid: this.id,
  13291. chapters: JSON.stringify(this.chapInfoList),
  13292. uid: this.userid,
  13293. unitIndex: this.courseType,
  13294. },
  13295. ];
  13296. this.ajax
  13297. .post(this.$store.state.api + "updateWorkNew4", params)
  13298. .then((res) => {
  13299. this.$message({
  13300. message: "添加成功",
  13301. type: "success",
  13302. });
  13303. this.checktoolArray = [];
  13304. this.getCourseDetail(2);
  13305. this.checkBz(
  13306. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13307. this.taskCount
  13308. ].toolChoose.length - 1
  13309. );
  13310. this.toolDialogVisible = false;
  13311. this.refreshCourse();
  13312. this.$forceUpdate();
  13313. })
  13314. .catch((err) => {
  13315. console.error(err);
  13316. });
  13317. },
  13318. checkBz(index) {
  13319. this.isUpdateToolDetail = false;
  13320. this.$forceUpdate();
  13321. setTimeout(() => {
  13322. document.scrollingElement.scrollTop =
  13323. document.querySelectorAll(".filebox")[index].offsetTop +
  13324. document.querySelector(".student_body").offsetTop;
  13325. }, 500);
  13326. },
  13327. updateToolDetail(i, type) {
  13328. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  13329. this.toolDetailIndex = i
  13330. this.isUpdateToolDetail1 = true;
  13331. setTimeout(() => {
  13332. this.updateToolDetailInner = JSON.parse(
  13333. JSON.stringify(
  13334. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13335. this.taskCount
  13336. ].toolChoose[i].toolDetail
  13337. )
  13338. );
  13339. document.querySelector(".checkTextArea").focus();
  13340. }, 0);
  13341. } else if((this.isUpdateToolDetail1 && type != 2)){
  13342. // this.toolDetailIndex = i;
  13343. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13344. this.taskCount
  13345. ].toolChoose[i].toolDetail = JSON.parse(
  13346. JSON.stringify(this.updateToolDetailInner)
  13347. );
  13348. let params = [
  13349. {
  13350. cid: this.id,
  13351. chapters: JSON.stringify(this.chapInfoList),
  13352. uid: this.userid,
  13353. unitIndex: this.courseType,
  13354. },
  13355. ];
  13356. this.ajax
  13357. .post(this.$store.state.api + "updateWorkNew4", params)
  13358. .then((res) => {
  13359. this.isUpdateToolDetail1 = false;
  13360. this.$message({
  13361. message: "修改成功",
  13362. type: "success",
  13363. });
  13364. this.toolDetailIndex = null;
  13365. this.updateToolDetailInner = "";
  13366. this.getCourseDetail(2);
  13367. this.$forceUpdate();
  13368. })
  13369. .catch((err) => {
  13370. console.error(err);
  13371. });
  13372. } else if((this.isUpdateToolDetail1 && type == 2)){
  13373. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13374. this.taskCount
  13375. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  13376. JSON.stringify(this.updateToolDetailInner)
  13377. );
  13378. let params = [
  13379. {
  13380. cid: this.id,
  13381. chapters: JSON.stringify(this.chapInfoList),
  13382. uid: this.userid,
  13383. unitIndex: this.courseType,
  13384. },
  13385. ];
  13386. this.ajax
  13387. .post(this.$store.state.api + "updateWorkNew4", params)
  13388. .then((res) => {
  13389. this.$message({
  13390. message: "修改成功",
  13391. type: "success",
  13392. });
  13393. this.toolDetailIndex = i;
  13394. this.isUpdateToolDetail1 = true;
  13395. setTimeout(() => {
  13396. this.updateToolDetailInner = JSON.parse(
  13397. JSON.stringify(
  13398. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13399. this.taskCount
  13400. ].toolChoose[i].toolDetail
  13401. )
  13402. );
  13403. document.querySelector(".checkTextArea").focus();
  13404. }, 0);
  13405. this.getCourseDetail(2);
  13406. this.$forceUpdate();
  13407. })
  13408. .catch((err) => {
  13409. console.error(err);
  13410. });
  13411. }
  13412. },
  13413. jumpGj(i, j, k, l) {
  13414. for (var z = 0; z < this.navList.length; z++) {
  13415. for (var q = 0; q < this.navList[z].task.length; q++) {
  13416. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  13417. this.navList[z].task[q].tool[w].isTool = false;
  13418. }
  13419. }
  13420. }
  13421. console.log(this.navList);
  13422. this.navList[i].task[j].tool[k].isTool =
  13423. !this.navList[i].task[j].tool[k].isTool;
  13424. var a = document.scrollingElement;
  13425. let target = document.querySelector(`#gj${k}`);
  13426. if (target) {
  13427. // target.scrollIntoView(true);
  13428. // setTimeout(() => {
  13429. // a.scrollTop = a.scrollTop - 150;
  13430. // }, 0);
  13431. target.scrollIntoView();
  13432. setTimeout(()=>{
  13433. let scrollBody = document.querySelector('.body_student').parentElement
  13434. scrollBody.scrollTop = scrollBody.scrollTop - 100
  13435. }, 0);
  13436. }
  13437. this.navId = ""
  13438. let flag = this.courseType == i;
  13439. let flag2 = this.taskCount == j
  13440. if (l) {
  13441. this.courseType = i;
  13442. // this.navId = l;
  13443. this.taskCount = j;
  13444. this.selectPz();
  13445. this.getHomeWork();
  13446. this.getCourseDetail(2);
  13447. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  13448. if(flag){
  13449. if(flag2){
  13450. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  13451. }else{
  13452. 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>`)
  13453. }
  13454. }else{
  13455. 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>`)
  13456. }
  13457. }
  13458. if ((this.courseDetail.userid == this.userid ||
  13459. (this.courseDetail.course_teacher &&
  13460. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) &&
  13461. this.IsFollow) {
  13462. this.setCTask();
  13463. }
  13464. // var b = this.$refs["bz" + k][0];
  13465. // a.scrollTop = b.offsetTop;
  13466. },
  13467. addTools2(i) {
  13468. if (i == 4) {
  13469. // this.openTools2(4);
  13470. this.$message.error("暂未开放");
  13471. return;
  13472. }
  13473. if (i == 45) {
  13474. // this.openTools2(45);
  13475. this.$message.error("暂未开放");
  13476. return;
  13477. }
  13478. if (i == 47) {
  13479. // this.openTools2(47);
  13480. this.$message.error("暂未开放");
  13481. return;
  13482. }
  13483. if (i == 49) {
  13484. // this.openTools2(49);
  13485. this.$message.error("暂未开放");
  13486. return;
  13487. }
  13488. if (i == 62) {
  13489. // this.openTools(itemTaskIndex, 62, toolIndex);
  13490. this.$message.error("暂未开放");
  13491. return;
  13492. }
  13493. if (i == 15) {
  13494. // this.openTools(itemTaskIndex, 15, toolIndex);
  13495. this.$message.error("暂未开放");
  13496. return;
  13497. }
  13498. if (i == 40) {
  13499. // this.openTools(itemTaskIndex, 40, toolIndex);
  13500. this.$message.error("暂未开放");
  13501. return;
  13502. }
  13503. if (i == 41) {
  13504. // this.openTools(itemTaskIndex, 41, toolIndex);
  13505. this.$message.error("暂未开放");
  13506. return;
  13507. }
  13508. if (i == 42) {
  13509. // this.openTools(itemTaskIndex, 42, toolIndex);
  13510. this.$message.error("暂未开放");
  13511. return;
  13512. }
  13513. if (this.checktoolArray.length > 0) {
  13514. if (this.checktoolArray.indexOf(i) != -1) {
  13515. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  13516. } else {
  13517. this.checktoolArray = [];
  13518. this.checktoolArray.push(i);
  13519. }
  13520. } else {
  13521. this.checktoolArray.push(i);
  13522. }
  13523. this.$forceUpdate();
  13524. },
  13525. jump() {
  13526. window.topU.postMessage({ tools: "43" }, "*");
  13527. },
  13528. getUpdateMore(f, checkboxList, searchTN, index) {
  13529. this.dialogVisibleMember = f;
  13530. this.checkboxList = checkboxList;
  13531. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  13532. this.plIndex = index;
  13533. },
  13534. setPlname(a) {
  13535. if (this.plworkFile.length) {
  13536. this.plworkFile[this.plIndex].username = a;
  13537. } else {
  13538. this.worksSName = a;
  13539. }
  13540. this.dialogVisibleMember = false;
  13541. },
  13542. previewImg(url,w) {
  13543. this.$hevueImgPreview(url);
  13544. if(w){
  13545. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  13546. }
  13547. },
  13548. checkImg(list) {
  13549. if (!list.length) {
  13550. return;
  13551. }
  13552. this.$hevueImgPreview({
  13553. multiple: true, // 开启多图预览模式
  13554. imgList: list, // 需要预览的多图数组
  13555. });
  13556. },
  13557. change(val) {
  13558. console.log(val);
  13559. },
  13560. goTo(path) {
  13561. this.$router.push(path);
  13562. },
  13563. handlePictureCardPreview(url) {
  13564. this.dialogImageUrl = url;
  13565. this.pictureDialog = true;
  13566. },
  13567. clean(type) {
  13568. if (type == 1) {
  13569. this.studyJuri[0].cover.splice(0, 1);
  13570. } else if (type == 2) {
  13571. this.studyJuri[0].upVedio.splice(0, 1);
  13572. } else {
  13573. this.studyJuri[0].upFile.splice(0, 1);
  13574. }
  13575. },
  13576. clean2(index) {
  13577. this.plworkFile.splice(index, 1);
  13578. },
  13579. handleClose(done) {
  13580. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  13581. this.videoDetail.sources[0].src = "";
  13582. }
  13583. this.commentIndexJson = {};
  13584. this.changeSplitScreenBehavior({code:99})
  13585. done();
  13586. },
  13587. fullTools() {
  13588. this.full = !this.full;
  13589. },
  13590. imgChange(file, fileList, type) {
  13591. if (type == 1) {
  13592. var _tmp = this.studyJuri[0].cover;
  13593. } else if (type == 2) {
  13594. var _tmp = this.studyJuri[0].upVedio;
  13595. } else {
  13596. var _tmp = this.studyJuri[0].upFile;
  13597. }
  13598. this.noneBtnImg = _tmp.length >= 1;
  13599. },
  13600. setContent(bool) {
  13601. this.contentDialog = bool;
  13602. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  13603. document.querySelector(".workd_media").style.height = "650px";
  13604. } else if (document.querySelector(".workd_media")) {
  13605. document.querySelector(".workd_media").style.height = "auto";
  13606. }
  13607. },
  13608. setContent2(bool) {
  13609. this.mlDialog = bool;
  13610. if (
  13611. bool &&
  13612. this.contentDialog &&
  13613. document.querySelector(".workd_media")
  13614. ) {
  13615. document.querySelector(".workd_media").style.height = "650px";
  13616. } else if (document.querySelector(".workd_media")) {
  13617. document.querySelector(".workd_media").style.height = "auto";
  13618. }
  13619. },
  13620. openToolAll() {
  13621. this.toolDialogVisible = true;
  13622. },
  13623. addImg(e) {
  13624. var el = e.currentTarget;
  13625. // this.$message.success('触发上传')
  13626. el.getElementsByTagName("input")[0].click();
  13627. e.target.value = "";
  13628. },
  13629. addSelectAnswer() {
  13630. let params = [
  13631. {
  13632. uid: this.userid,
  13633. cid: this.id,
  13634. stage: this.courseType,
  13635. task: this.taskCount,
  13636. tool: this.toolindex,
  13637. content: this.selectAnswer.answer,
  13638. type: 7,
  13639. },
  13640. ];
  13641. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13642. this.homeWorkLoading = true
  13643. this.ajax
  13644. .post(this.$store.state.api + "addCourseWorks", params)
  13645. .then((res) => {
  13646. this.$message({
  13647. message: "提交成功",
  13648. type: "success",
  13649. });
  13650. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, "success")
  13651. setTimeout(() => {
  13652. this.homeWorkLoading = false
  13653. }, 500);
  13654. this.dialogVisibleSelect = false;
  13655. // this.selectAnswer = {};
  13656. this.selectSWorks();
  13657. this.selectStudent();
  13658. })
  13659. .catch((err) => {
  13660. this.$message.error("提交失败");
  13661. console.error(err);
  13662. setTimeout(() => {
  13663. this.homeWorkLoading = false
  13664. }, 500);
  13665. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, err)
  13666. });
  13667. },
  13668. addSelectAnswerTeacher() {
  13669. let params = [
  13670. {
  13671. uid: this.sStudent.userid,
  13672. cid: this.id,
  13673. stage: this.courseType,
  13674. task: this.taskCount,
  13675. tool: this.toolindex,
  13676. content: this.selectAnswer.answer,
  13677. type: 7,
  13678. },
  13679. ];
  13680. this.ajax
  13681. .post(this.$store.state.api + "addCourseWorks", params)
  13682. .then((res) => {
  13683. this.$message({
  13684. message: "提交成功",
  13685. type: "success",
  13686. });
  13687. this.dialogVisibleSelectTeacher = false;
  13688. // this.selectAnswer = {};
  13689. this.selectSWorks();
  13690. this.selectStudent();
  13691. })
  13692. .catch((err) => {
  13693. this.$message.error("提交失败");
  13694. console.error(err);
  13695. });
  13696. },
  13697. addSenWorks() {
  13698. for (var i = 0; i < this.sentenceList.length; i++) {
  13699. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13700. if (
  13701. this.sentenceList[i].chooseSenList[j] == undefined ||
  13702. this.sentenceList[i].chooseSenList[j] == ""
  13703. ) {
  13704. this.$message.error("请将答案填写完整!");
  13705. return;
  13706. }
  13707. }
  13708. }
  13709. let params = [
  13710. {
  13711. uid: this.userid,
  13712. cid: this.id,
  13713. stage: this.courseType,
  13714. task: this.taskCount,
  13715. tool: this.toolindex,
  13716. content: JSON.stringify(this.sentenceList),
  13717. type: 9,
  13718. },
  13719. ];
  13720. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13721. this.homeWorkLoading = true
  13722. this.ajax
  13723. .post(this.$store.state.api + "addCourseWorks", params)
  13724. .then((res) => {
  13725. this.$message({
  13726. message: "提交成功",
  13727. type: "success",
  13728. });
  13729. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, "success")
  13730. setTimeout(() => {
  13731. this.homeWorkLoading = false
  13732. }, 500);
  13733. this.dialogVisibleSentence = false;
  13734. // this.selectAnswer = {};
  13735. this.selectSWorks();
  13736. this.selectStudent();
  13737. })
  13738. .catch((err) => {
  13739. this.$message.error("提交失败");
  13740. console.error(err);
  13741. setTimeout(() => {
  13742. this.homeWorkLoading = false
  13743. }, 500);
  13744. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, err)
  13745. });
  13746. },
  13747. addSenWorksTeacher() {
  13748. for (var i = 0; i < this.sentenceList.length; i++) {
  13749. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13750. if (
  13751. this.sentenceList[i].chooseSenList[j] == undefined ||
  13752. this.sentenceList[i].chooseSenList[j] == ""
  13753. ) {
  13754. this.$message.error("请将答案填写完整!");
  13755. return;
  13756. }
  13757. }
  13758. }
  13759. let params = [
  13760. {
  13761. uid: this.sStudent.userid,
  13762. cid: this.id,
  13763. stage: this.courseType,
  13764. task: this.taskCount,
  13765. tool: this.toolindex,
  13766. content: JSON.stringify(this.sentenceList),
  13767. type: 9,
  13768. },
  13769. ];
  13770. this.ajax
  13771. .post(this.$store.state.api + "addCourseWorks", params)
  13772. .then((res) => {
  13773. this.$message({
  13774. message: "提交成功",
  13775. type: "success",
  13776. });
  13777. this.dialogVisibleSentenceTeacher = false;
  13778. // this.selectAnswer = {};
  13779. this.selectSWorks();
  13780. this.selectStudent();
  13781. })
  13782. .catch((err) => {
  13783. this.$message.error("提交失败");
  13784. console.error(err);
  13785. });
  13786. },
  13787. returnTableText() {
  13788. this.$confirm("确定还原此模板吗?", "提示", {
  13789. confirmButtonText: "确定",
  13790. cancelButtonText: "取消",
  13791. type: "warning",
  13792. })
  13793. .then(() => {
  13794. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13795. })
  13796. .catch(() => {});
  13797. },
  13798. addTableWorks() {
  13799. let params = [
  13800. {
  13801. uid: this.userid,
  13802. cid: this.id,
  13803. stage: this.courseType,
  13804. task: this.taskCount,
  13805. tool: this.toolindex,
  13806. content: JSON.stringify(this.tableJson),
  13807. type: 10,
  13808. },
  13809. ];
  13810. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13811. this.homeWorkLoading = true
  13812. this.ajax
  13813. .post(this.$store.state.api + "addCourseWorks", params)
  13814. .then((res) => {
  13815. this.$message({
  13816. message: "提交成功",
  13817. type: "success",
  13818. });
  13819. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, "success")
  13820. setTimeout(() => {
  13821. this.homeWorkLoading = false
  13822. }, 500);
  13823. this.dialogVisibleTable = false;
  13824. // this.selectAnswer = {};
  13825. this.selectSWorks();
  13826. this.selectStudent();
  13827. })
  13828. .catch((err) => {
  13829. this.$message.error("提交失败");
  13830. console.error(err);
  13831. setTimeout(() => {
  13832. this.homeWorkLoading = false
  13833. }, 500);
  13834. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, err)
  13835. });
  13836. },
  13837. tableRowClassName({ row, rowIndex }) {
  13838. if ((rowIndex + 1) % 2 === 0) {
  13839. return "even_row";
  13840. } else {
  13841. return "";
  13842. }
  13843. },
  13844. addTableWorksTeacher() {
  13845. let params = [
  13846. {
  13847. uid: this.sStudent.userid,
  13848. cid: this.id,
  13849. stage: this.courseType,
  13850. task: this.taskCount,
  13851. tool: this.toolindex,
  13852. content: JSON.stringify(this.tableJson),
  13853. type: 10,
  13854. },
  13855. ];
  13856. this.ajax
  13857. .post(this.$store.state.api + "addCourseWorks", params)
  13858. .then((res) => {
  13859. this.$message({
  13860. message: "提交成功",
  13861. type: "success",
  13862. });
  13863. this.dialogVisibleTableTeacher = false;
  13864. // this.selectAnswer = {};
  13865. this.selectSWorks();
  13866. this.selectStudent();
  13867. })
  13868. .catch((err) => {
  13869. this.$message.error("提交失败");
  13870. console.error(err);
  13871. });
  13872. },
  13873. returnWordText() {
  13874. this.$confirm("确定还原此模板吗?", "提示", {
  13875. confirmButtonText: "确定",
  13876. cancelButtonText: "取消",
  13877. type: "warning",
  13878. })
  13879. .then(() => {
  13880. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13881. })
  13882. .catch(() => {});
  13883. },
  13884. addWordWorks() {
  13885. let params = [
  13886. {
  13887. uid: this.userid,
  13888. cid: this.id,
  13889. stage: this.courseType,
  13890. task: this.taskCount,
  13891. tool: this.toolindex,
  13892. content: JSON.stringify(this.wordJson),
  13893. type: 13,
  13894. atool: 52,
  13895. },
  13896. ];
  13897. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13898. this.homeWorkLoading = true
  13899. this.ajax
  13900. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13901. .then((res) => {
  13902. this.$message({
  13903. message: "提交成功",
  13904. type: "success",
  13905. });
  13906. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, "success")
  13907. setTimeout(() => {
  13908. this.homeWorkLoading = false
  13909. }, 500);
  13910. this.dialogVisibleWord = false;
  13911. // this.selectAnswer = {};
  13912. this.selectSWorks();
  13913. this.selectStudent();
  13914. })
  13915. .catch((err) => {
  13916. this.$message.error("提交失败");
  13917. console.error(err);
  13918. setTimeout(() => {
  13919. this.homeWorkLoading = false
  13920. }, 500);
  13921. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, err)
  13922. });
  13923. },
  13924. addWordWorksTeacher() {
  13925. let params = [
  13926. {
  13927. uid: this.sStudent.userid,
  13928. cid: this.id,
  13929. stage: this.courseType,
  13930. task: this.taskCount,
  13931. tool: this.toolindex,
  13932. content: JSON.stringify(this.wordJson),
  13933. type: 13,
  13934. atool: 52,
  13935. },
  13936. ];
  13937. this.ajax
  13938. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13939. .then((res) => {
  13940. this.$message({
  13941. message: "提交成功",
  13942. type: "success",
  13943. });
  13944. this.dialogVisibleWordTeacher = false;
  13945. // this.selectAnswer = {};
  13946. this.selectSWorks();
  13947. this.selectStudent();
  13948. })
  13949. .catch((err) => {
  13950. this.$message.error("提交失败");
  13951. console.error(err);
  13952. });
  13953. },
  13954. addCourseWorks(i) {
  13955. var typesql;
  13956. if (this.fileType === 0) {
  13957. typesql = 1;
  13958. } else if (this.fileType === 1) {
  13959. typesql = 4;
  13960. } else if (this.fileType === 2) {
  13961. typesql = 5;
  13962. } else if (this.fileType === 3) {
  13963. typesql = 12;
  13964. }
  13965. if (!this.studyJuri[0].cover[0].url) {
  13966. this.$message.error("请上传文件");
  13967. return;
  13968. }
  13969. let params = [
  13970. {
  13971. uid: this.userid,
  13972. cid: this.id,
  13973. stage: this.courseType,
  13974. task: i,
  13975. tool: this.toolindex,
  13976. content: this.studyJuri[0].cover[0].url,
  13977. type: typesql,
  13978. },
  13979. ];
  13980. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13981. this.homeWorkLoading = true
  13982. this.ajax
  13983. .post(this.$store.state.api + "addCourseWorksR", params)
  13984. .then((res) => {
  13985. this.$message({
  13986. message: "提交成功",
  13987. type: "success",
  13988. });
  13989. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, "success")
  13990. setTimeout(() => {
  13991. this.homeWorkLoading = false
  13992. }, 500);
  13993. this.studyJuri[0].cover = [];
  13994. this.dialogVisible = false;
  13995. this.getCourseDetail(2);
  13996. })
  13997. .catch((err) => {
  13998. this.$message.error("提交失败");
  13999. console.error(err);
  14000. setTimeout(() => {
  14001. this.homeWorkLoading = false
  14002. }, 500);
  14003. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, err)
  14004. });
  14005. },
  14006. addCourseWorksPl(i) {
  14007. let _files = this.plworkFile;
  14008. var c = 1;
  14009. for (var k = 0; k < _files.length; k++) {
  14010. if (!_files[k].username) {
  14011. c = 2;
  14012. }
  14013. }
  14014. if (c == 2) {
  14015. this.$message.error("请填写学生姓名");
  14016. return;
  14017. }
  14018. let params = [
  14019. {
  14020. ateacher: this.userid,
  14021. cid: this.id,
  14022. stage: this.courseType,
  14023. task: i,
  14024. tool: this.toolindex,
  14025. content: JSON.stringify(_files),
  14026. },
  14027. ];
  14028. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  14029. this.homeWorkLoading = true
  14030. this.ajax
  14031. .post(this.$store.state.api + "addCourseWorksPl", params)
  14032. .then((res) => {
  14033. this.$message({
  14034. message: "提交成功",
  14035. type: "success",
  14036. });
  14037. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, "success")
  14038. setTimeout(() => {
  14039. this.homeWorkLoading = false
  14040. }, 500);
  14041. this.plworkFile = [];
  14042. this.dialogVisiblePl = false;
  14043. this.getCourseDetail(2);
  14044. })
  14045. .catch((err) => {
  14046. this.$message.error("提交失败");
  14047. console.error(err);
  14048. setTimeout(() => {
  14049. this.homeWorkLoading = false
  14050. }, 500);
  14051. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, err)
  14052. });
  14053. },
  14054. addCourseWorks2(i) {
  14055. var typesql;
  14056. if (this.fileType === 0) {
  14057. typesql = 0;
  14058. } else if (this.fileType === 1) {
  14059. typesql = 1;
  14060. } else if (this.fileType === 2) {
  14061. typesql = 3;
  14062. } else if (this.fileType === 3) {
  14063. typesql = 12;
  14064. }
  14065. if (!this.studyJuri[0].cover[0].url) {
  14066. this.$message.error("请上传文件");
  14067. return;
  14068. }
  14069. let params = [
  14070. {
  14071. uid: this.userid,
  14072. cid: this.id,
  14073. stage: this.courseType,
  14074. task: i,
  14075. tool: this.toolindex,
  14076. content: JSON.stringify({
  14077. type: typesql,
  14078. groupIndex: this.groupIndex,
  14079. url: this.studyJuri[0].cover[0].url,
  14080. }),
  14081. type: 11,
  14082. atool: 49,
  14083. text: "",
  14084. },
  14085. ];
  14086. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  14087. this.homeWorkLoading = true
  14088. this.ajax
  14089. .post(this.$store.state.api + "addCourseWorks5", params)
  14090. .then((res) => {
  14091. this.$message({
  14092. message: "提交成功",
  14093. type: "success",
  14094. });
  14095. setTimeout(() => {
  14096. this.homeWorkLoading = false
  14097. }, 500);
  14098. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  14099. type: typesql,
  14100. groupIndex: this.groupIndex,
  14101. url: this.studyJuri[0].cover[0].url,
  14102. }),type: "course_tool_sub" }, "success")
  14103. this.studyJuri[0].cover = [];
  14104. this.dialogVisibleGroupWork = false;
  14105. this.getCourseDetail(2);
  14106. })
  14107. .catch((err) => {
  14108. this.$message.error("提交失败");
  14109. console.error(err);
  14110. setTimeout(() => {
  14111. this.homeWorkLoading = false
  14112. }, 500);
  14113. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  14114. type: typesql,
  14115. groupIndex: this.groupIndex,
  14116. url: this.studyJuri[0].cover[0].url,
  14117. }),type: "course_tool_sub" }, err)
  14118. });
  14119. },
  14120. addEnglishWork() {
  14121. this.myAnList = this.$refs['engJson'].myAnswerList;
  14122. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  14123. this.$message.error("请输入作文标题和正文!");
  14124. return;
  14125. }
  14126. let params = [
  14127. {
  14128. uid: this.userid,
  14129. cid: this.id,
  14130. stage: this.courseType,
  14131. task: this.taskCount,
  14132. tool: this.englishToolIndex,
  14133. content: JSON.stringify(this.myAnList),
  14134. type: 16,
  14135. atool: 69,
  14136. text: "",
  14137. },
  14138. ];
  14139. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  14140. this.homeWorkLoading = true
  14141. this.ajax
  14142. .post(this.$store.state.api + "addCourseWorks5", params)
  14143. .then((res) => {
  14144. this.$message({
  14145. message: "提交成功",
  14146. type: "success",
  14147. });
  14148. setTimeout(() => {
  14149. this.homeWorkLoading = false
  14150. }, 500);
  14151. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  14152. data: JSON.stringify(this.myAnList),
  14153. type: "course_tool_sub" }, "success")
  14154. this.myAnList = {};
  14155. this.englishList = {};
  14156. this.englishToolIndex = 0;
  14157. this.engDialogVisible = false;
  14158. this.selectSWorks();
  14159. this.selectStudent();
  14160. })
  14161. .catch((err) => {
  14162. this.$message.error("提交失败");
  14163. console.error(err);
  14164. setTimeout(() => {
  14165. this.homeWorkLoading = false
  14166. }, 500);
  14167. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  14168. data: JSON.stringify(this.myAnList),
  14169. type: "course_tool_sub" }, err)
  14170. });
  14171. },
  14172. addCourseWorksGong(i, data, tool) {
  14173. let params = [
  14174. {
  14175. uid: this.userid,
  14176. cid: this.id,
  14177. stage: this.courseType,
  14178. task: this.taskCount,
  14179. tool: i,
  14180. content: data,
  14181. type: 12,
  14182. atool: tool,
  14183. text: "",
  14184. },
  14185. ];
  14186. this.ajax
  14187. .post(this.$store.state.api + "addCourseWorks5", params)
  14188. .then((res) => {
  14189. this.$message({
  14190. message: "提交成功",
  14191. type: "success",
  14192. });
  14193. this.studyJuri[0].cover = [];
  14194. this.selectSWorks();
  14195. this.selectStudent();
  14196. })
  14197. .catch((err) => {
  14198. this.$message.error("提交失败");
  14199. console.error(err);
  14200. });
  14201. },
  14202. addCourseWorksGongTeacher(i, data, tool) {
  14203. let params = [
  14204. {
  14205. uid: this.sStudent.userid,
  14206. cid: this.id,
  14207. stage: this.courseType,
  14208. task: this.taskCount,
  14209. tool: i,
  14210. content: data,
  14211. type: 12,
  14212. atool: tool,
  14213. text: "",
  14214. },
  14215. ];
  14216. this.ajax
  14217. .post(this.$store.state.api + "addCourseWorks5", params)
  14218. .then((res) => {
  14219. this.$message({
  14220. message: "提交成功",
  14221. type: "success",
  14222. });
  14223. this.studyJuri[0].cover = [];
  14224. this.dialogVisibleWorks = false;
  14225. this.selectSWorks();
  14226. this.selectStudent();
  14227. })
  14228. .catch((err) => {
  14229. this.$message.error("提交失败");
  14230. console.error(err);
  14231. });
  14232. },
  14233. addCourseWorksGongPl(i, data, tool, type) {
  14234. let params = [
  14235. {
  14236. uid: this.sStudent.userid,
  14237. cid: this.id,
  14238. stage: this.courseType,
  14239. task: this.taskCount,
  14240. tool: i,
  14241. content: data,
  14242. type: type,
  14243. atool: tool,
  14244. text: "",
  14245. },
  14246. ];
  14247. this.ajax
  14248. .post(this.$store.state.api + "addCourseWorks5", params)
  14249. .then((res) => {
  14250. this.$message({
  14251. message: "提交成功",
  14252. type: "success",
  14253. });
  14254. this.studyJuri[0].cover = [];
  14255. this.dialogVisibleWorks = false;
  14256. this.selectSWorks();
  14257. this.selectStudent();
  14258. })
  14259. .catch((err) => {
  14260. this.$message.error("提交失败");
  14261. console.error(err);
  14262. });
  14263. },
  14264. addCourseWorksTeacher(i) {
  14265. var typesql;
  14266. if (this.sTool == 32) {
  14267. this.addCourseWorksGongTeacher(
  14268. this.toolindex,
  14269. this.studyJuri[0].cover[0].url,
  14270. this.sTool
  14271. );
  14272. return;
  14273. }
  14274. if (this.fileType === 0) {
  14275. typesql = 1;
  14276. } else if (this.fileType === 1) {
  14277. typesql = 4;
  14278. } else if (this.fileType === 2) {
  14279. typesql = 5;
  14280. } else if (this.fileType === 3) {
  14281. typesql = 12;
  14282. }
  14283. if (this.sTool == 50) {
  14284. this.addCourseWorksGongPl(
  14285. this.toolindex,
  14286. this.studyJuri[0].cover[0].url,
  14287. this.sTool,
  14288. typesql
  14289. );
  14290. return;
  14291. }
  14292. if (!this.studyJuri[0].cover[0].url) {
  14293. this.$message.error("请上传文件");
  14294. return;
  14295. }
  14296. let params = [
  14297. {
  14298. uid: this.sStudent.userid,
  14299. cid: this.id,
  14300. stage: this.courseType,
  14301. task: i,
  14302. tool: this.toolindex,
  14303. content: this.studyJuri[0].cover[0].url,
  14304. type: typesql,
  14305. ateacher: this.userid,
  14306. },
  14307. ];
  14308. this.ajax
  14309. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  14310. .then((res) => {
  14311. this.$message({
  14312. message: "提交成功",
  14313. type: "success",
  14314. });
  14315. this.studyJuri[0].cover = [];
  14316. this.dialogVisibleWorks = false;
  14317. this.getCourseDetail(2);
  14318. })
  14319. .catch((err) => {
  14320. this.$message.error("提交失败");
  14321. console.error(err);
  14322. });
  14323. },
  14324. selectUploadStudent(type) {
  14325. const loading = this.$loading.service({
  14326. background: "rgba(255, 255, 255, 0.7)",
  14327. target: document.body,
  14328. });
  14329. let params = {
  14330. cid: this.uploadCid,
  14331. oid: this.oid,
  14332. cn: "",
  14333. };
  14334. this.ajax
  14335. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14336. .then((res) => {
  14337. loading.close();
  14338. var studentK = [];
  14339. if (this.isWorksS[this.toolindex].length > 0) {
  14340. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  14341. studentK.push(this.isWorksS[this.toolindex][z].uid);
  14342. }
  14343. studentK = studentK.join(",");
  14344. }
  14345. this.uploadStudentJuri = res.data[0].filter((el) => {
  14346. return studentK.indexOf(el.userid) == -1;
  14347. });
  14348. if (this.worksSName && this.worksSid) {
  14349. this.uploadStudentJuri.push({
  14350. userid: this.worksSid,
  14351. name: this.worksSName,
  14352. });
  14353. }
  14354. if (type == 1) {
  14355. this.plworkFile = [];
  14356. this.dialogVisibleSname = true;
  14357. } else if (type == 2) {
  14358. this.dialogVisiblePl = true;
  14359. }
  14360. })
  14361. .catch((err) => {
  14362. loading.close();
  14363. console.error(err);
  14364. });
  14365. },
  14366. selectPickStudent() {
  14367. const loading = this.$loading.service({
  14368. background: "rgba(255, 255, 255, 0.7)",
  14369. target: document.body,
  14370. });
  14371. let params = {
  14372. cid: this.uploadCid,
  14373. oid: this.oid,
  14374. cn: "",
  14375. };
  14376. this.ajax
  14377. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14378. .then((res) => {
  14379. loading.close();
  14380. this.uploadStudentJuri = res.data[0];
  14381. this.dialogVisiblePickPeople = true;
  14382. })
  14383. .catch((err) => {
  14384. loading.close();
  14385. console.error(err);
  14386. });
  14387. },
  14388. arrayToArray(arrayo, arrayt) {
  14389. let array1 = arrayo;
  14390. let array2 = arrayt;
  14391. let commonElements = [];
  14392. for (let i = 0; i < array1.length; i++) {
  14393. for (let j = 0; j < array2.length; j++) {
  14394. if (array1[i] === array2[j]) {
  14395. commonElements.push(array1[i]);
  14396. }
  14397. }
  14398. }
  14399. return commonElements;
  14400. },
  14401. selectWorksStudent() {
  14402. let params = {
  14403. oid: this.oid,
  14404. cid: this.courseDetail.juri,
  14405. };
  14406. this.ajax
  14407. .get(this.$store.state.api + "selectWorksStudent", params)
  14408. .then((res) => {
  14409. var a = res.data[0];
  14410. for (var i = 0; i < this.isWorksS.length; i++) {
  14411. this.noWorksS[i] = [];
  14412. var studentK = [];
  14413. if (this.isWorksS[i].length > 0) {
  14414. for (var z = 0; z < this.isWorksS[i].length; z++) {
  14415. studentK.push(this.isWorksS[i][z].uid);
  14416. }
  14417. studentK = studentK.join(",");
  14418. for (var j = 0; j < a.length; j++) {
  14419. if (studentK.indexOf(a[j].userid) == -1) {
  14420. if (this.tcid) {
  14421. // a[j].classid.indexOf(this.tcid) != -1
  14422. if (
  14423. this.arrayToArray(
  14424. a[j].classid.split(","),
  14425. this.tcid.split(",")
  14426. ).length
  14427. ) {
  14428. this.noWorksS[i].push({
  14429. student: a[j].name,
  14430. userid: a[j].userid,
  14431. });
  14432. }
  14433. } else {
  14434. this.noWorksS[i].push({
  14435. student: a[j].name,
  14436. userid: a[j].userid,
  14437. });
  14438. }
  14439. }
  14440. }
  14441. } else {
  14442. for (var k = 0; k < a.length; k++) {
  14443. if (this.tcid) {
  14444. if (
  14445. this.arrayToArray(
  14446. a[k].classid.split(","),
  14447. this.tcid.split(",")
  14448. ).length
  14449. ) {
  14450. this.noWorksS[i].push({
  14451. student: a[k].name,
  14452. userid: a[k].userid,
  14453. });
  14454. }
  14455. } else {
  14456. this.noWorksS[i].push({
  14457. student: a[k].name,
  14458. userid: a[k].userid,
  14459. });
  14460. }
  14461. }
  14462. }
  14463. }
  14464. this.$forceUpdate();
  14465. if (
  14466. Object.keys(this.commentDetail).length &&
  14467. Object.keys(this.commentIndexJson).length &&
  14468. !this.dialogVisibleScore && !this.dialogVisibleENScore
  14469. ) {
  14470. let a = 1;
  14471. let c = this.commentIndexJson;
  14472. if (
  14473. this.commentIndexJson.gindex ||
  14474. this.commentIndexJson.gindex === 0
  14475. ) {
  14476. for (
  14477. var i = 0;
  14478. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  14479. i++
  14480. ) {
  14481. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  14482. groupA: for (var k = 0; k < _el.length; k++) {
  14483. let el = _el[k];
  14484. if (el.wid == this.commentDetail.wid) {
  14485. a = 2;
  14486. this.commentOther(
  14487. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  14488. this.commentIndexJson.toolIndex,
  14489. k,
  14490. this.commentIndexJson.gindex
  14491. );
  14492. break groupA;
  14493. }
  14494. }
  14495. }
  14496. if (a === 1) {
  14497. this.commentDetail = [];
  14498. this.commentIndexJson = {};
  14499. this.commentDialogVisible = false;
  14500. this.$message("此作业已被删除");
  14501. }
  14502. } else {
  14503. if (this.isGroup && this.commentIndexJson.gid) {
  14504. groupA: for (
  14505. var i = 0;
  14506. i < this.courseGroup.group.length;
  14507. i++
  14508. ) {
  14509. let _group = this.courseGroup.group[i];
  14510. if (_group.id == this.commentIndexJson.gid) {
  14511. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  14512. for (var k = 0; k < _el2.length; k++) {
  14513. let el2 = _el2[k];
  14514. if (el2.wid == this.commentDetail.wid) {
  14515. a = 2;
  14516. this.commentOther(
  14517. _el2[k],
  14518. this.commentIndexJson.toolIndex,
  14519. k,
  14520. null,
  14521. this.commentIndexJson.gid
  14522. );
  14523. break groupA;
  14524. }
  14525. }
  14526. }
  14527. }
  14528. }
  14529. if (a == 1) {
  14530. for (
  14531. var i = 0;
  14532. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  14533. i++
  14534. ) {
  14535. let el =
  14536. this.worksStudent[this.commentIndexJson.toolIndex][i];
  14537. if (el.wid == this.commentDetail.wid) {
  14538. a = 2;
  14539. this.commentOther(
  14540. this.worksStudent[this.commentIndexJson.toolIndex][i],
  14541. this.commentIndexJson.toolIndex,
  14542. i
  14543. );
  14544. break;
  14545. }
  14546. }
  14547. }
  14548. if (a === 1) {
  14549. this.commentDetail = [];
  14550. this.commentIndexJson = {};
  14551. this.commentDialogVisible = false;
  14552. this.$message("此作业已被删除");
  14553. }
  14554. }
  14555. }
  14556. })
  14557. .catch((err) => {
  14558. console.error(err);
  14559. });
  14560. },
  14561. selectStudent() {
  14562. if(this.selectStudentLoading) return
  14563. this.selectStudentLoading = true
  14564. //学生查看自己作业
  14565. let params = {
  14566. uid: this.userid,
  14567. cid: this.id,
  14568. s: this.courseType,
  14569. t: this.taskCount,
  14570. };
  14571. this.ajax
  14572. .get(this.$store.state.api + "selectStudentWorks", params)
  14573. .then((res) => {
  14574. var a =
  14575. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14576. this.taskCount
  14577. ].toolChoose;
  14578. var b = res.data[0];
  14579. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14580. var y = [
  14581. "AVI",
  14582. "NAVI",
  14583. "MPEG",
  14584. "ASF",
  14585. "MOV",
  14586. "WMV",
  14587. "3GP",
  14588. "RM",
  14589. "RMVB",
  14590. "FLV",
  14591. "F4V",
  14592. "H.264",
  14593. "H.265",
  14594. "REAL VIDEO",
  14595. "MKV",
  14596. "WebM",
  14597. "HDDVD",
  14598. "MP4",
  14599. "MPG",
  14600. "M4V",
  14601. "MGV",
  14602. "OGV",
  14603. "QTM",
  14604. "STR",
  14605. "AMC",
  14606. "DVX",
  14607. "EVO",
  14608. "DAT",
  14609. "OGG",
  14610. "OGM",
  14611. ];
  14612. for (var i = 0; i < a.length; i++) {
  14613. this.workStudent[i] = [];
  14614. for (var j = 0; j < b.length; j++) {
  14615. if (i == b[j].tool) {
  14616. if (
  14617. (b[j].type == 1 ||
  14618. b[j].type == 4 ||
  14619. b[j].type == 5 ||
  14620. b[j].type == 6 ||
  14621. b[j].type == 12 ||
  14622. b[j].type == 7) &&
  14623. a[i].tool[0] != 15 &&
  14624. a[i].tool[0] != 4 &&
  14625. a[i].tool[0] != 45 &&
  14626. a[i].tool[0] != 50 &&
  14627. a[i].tool[0] != 32 &&
  14628. a[i].tool[0] != 57 &&
  14629. a[i].tool[0] != 52 &&
  14630. a[i].tool[0] != 69
  14631. ) {
  14632. if (
  14633. c.indexOf(
  14634. b[j].content
  14635. .split(".")
  14636. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14637. ) != -1 &&
  14638. a[i].tool[0] == 16 &&
  14639. b[j].atool != 50
  14640. ) {
  14641. this.workStudent[i].push({
  14642. works: b[j].content,
  14643. sName: b[j].name,
  14644. score: b[j].score,
  14645. img: b[j].img,
  14646. type: 1,
  14647. time: b[j].time,
  14648. userid: b[j].userid,
  14649. wid: b[j].id,
  14650. });
  14651. } else if (
  14652. y.indexOf(
  14653. b[j].content
  14654. .split(".")
  14655. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14656. ) != -1 &&
  14657. a[i].tool[0] == 16 &&
  14658. b[j].atool != 50
  14659. ) {
  14660. this.workStudent[i].push({
  14661. userid: b[j].userid,
  14662. wid: b[j].id,
  14663. works: b[j].content,
  14664. sName: b[j].name,
  14665. score: b[j].score,
  14666. img: b[j].img,
  14667. type: 3,
  14668. time: b[j].time,
  14669. });
  14670. } else if (b[j].type == 6 && b[j].atool != 50) {
  14671. this.workStudent[i].push({
  14672. userid: b[j].userid,
  14673. wid: b[j].id,
  14674. works: b[j].content,
  14675. sName: b[j].name,
  14676. score: b[j].score,
  14677. img: b[j].img,
  14678. type: 4,
  14679. time: b[j].time,
  14680. });
  14681. } else if (b[j].type == 7 && b[j].atool != 50) {
  14682. this.workStudent[i].push({
  14683. userid: b[j].userid,
  14684. wid: b[j].id,
  14685. works: b[j].content,
  14686. sName: b[j].name,
  14687. score: b[j].score,
  14688. img: b[j].img,
  14689. type: 5,
  14690. time: b[j].time,
  14691. });
  14692. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14693. this.workStudent[i].push({
  14694. works: b[j].content,
  14695. sName: b[j].name,
  14696. score: b[j].score,
  14697. img: b[j].img,
  14698. type: 12,
  14699. time: b[j].time,
  14700. userid: b[j].userid,
  14701. wid: b[j].id,
  14702. });
  14703. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14704. this.workStudent[i].push({
  14705. works: b[j].content,
  14706. sName: b[j].name,
  14707. score: b[j].score,
  14708. img: b[j].img,
  14709. type: 0,
  14710. time: b[j].time,
  14711. userid: b[j].userid,
  14712. wid: b[j].id,
  14713. });
  14714. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14715. this.workStudent[i].push({
  14716. works: b[j].content,
  14717. sName: b[j].name,
  14718. score: b[j].score,
  14719. img: b[j].img,
  14720. type: 0,
  14721. time: b[j].time,
  14722. userid: b[j].userid,
  14723. wid: b[j].id,
  14724. });
  14725. }
  14726. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14727. this.workStudent[i].push({
  14728. works: b[j].content,
  14729. sName: b[j].name,
  14730. score: b[j].score,
  14731. img: b[j].img,
  14732. type: 2,
  14733. time: b[j].time,
  14734. userid: b[j].userid,
  14735. wid: b[j].id,
  14736. });
  14737. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  14738. this.workStudent[i].push({
  14739. works: b[j].content,
  14740. sName: b[j].name,
  14741. score: b[j].score,
  14742. img: b[j].img,
  14743. type: 20,
  14744. time: b[j].time,
  14745. userid: b[j].userid,
  14746. wid: b[j].id,
  14747. });
  14748. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14749. //问卷
  14750. this.workStudent[i].push({
  14751. works: b[j].content,
  14752. sName: b[j].name,
  14753. score: b[j].score,
  14754. img: b[j].img,
  14755. type: 2,
  14756. time: b[j].time,
  14757. userid: b[j].userid,
  14758. wid: b[j].id,
  14759. });
  14760. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14761. //选择题
  14762. this.workStudent[i].push({
  14763. works: b[j].content,
  14764. sName: b[j].name,
  14765. score: b[j].score,
  14766. img: b[j].img,
  14767. type: 8,
  14768. time: b[j].time,
  14769. userid: b[j].userid,
  14770. wid: b[j].id,
  14771. });
  14772. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14773. //选择题
  14774. this.workStudent[i].push({
  14775. works: b[j].content,
  14776. sName: b[j].name,
  14777. score: b[j].score,
  14778. img: b[j].img,
  14779. type: 9,
  14780. time: b[j].time,
  14781. userid: b[j].userid,
  14782. wid: b[j].id,
  14783. });
  14784. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14785. //选择题
  14786. this.workStudent[i].push({
  14787. works: b[j].content,
  14788. sName: b[j].name,
  14789. score: b[j].score,
  14790. img: b[j].img,
  14791. type: 10,
  14792. time: b[j].time,
  14793. userid: b[j].userid,
  14794. wid: b[j].id,
  14795. });
  14796. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14797. //选择题
  14798. this.workStudent[i].push({
  14799. works: b[j].content,
  14800. sName: b[j].name,
  14801. score: b[j].score,
  14802. img: b[j].img,
  14803. type: 13,
  14804. time: b[j].time,
  14805. userid: b[j].userid,
  14806. wid: b[j].id,
  14807. });
  14808. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  14809. //选择题
  14810. this.workStudent[i].push({
  14811. works: b[j].content,
  14812. sName: b[j].name,
  14813. score: b[j].score,
  14814. img: b[j].img,
  14815. type: 12,
  14816. time: b[j].time,
  14817. userid: b[j].userid,
  14818. wid: b[j].id,
  14819. });
  14820. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  14821. //选择题
  14822. this.workStudent[i].push({
  14823. works: b[j].content,
  14824. sName: b[j].name,
  14825. score: b[j].score,
  14826. img: b[j].img,
  14827. type: 12,
  14828. time: b[j].time,
  14829. userid: b[j].userid,
  14830. wid: b[j].id,
  14831. });
  14832. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  14833. //选择题
  14834. this.workStudent[i].push({
  14835. works: b[j].content,
  14836. sName: b[j].name,
  14837. score: b[j].score,
  14838. img: b[j].img,
  14839. type: 15,
  14840. time: b[j].time,
  14841. userid: b[j].userid,
  14842. wid: b[j].id,
  14843. });
  14844. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14845. //英语写作
  14846. this.workStudent[i].push({
  14847. works: b[j].content,
  14848. sName: b[j].name,
  14849. score: b[j].score,
  14850. img: b[j].img,
  14851. type: 16,
  14852. time: b[j].time,
  14853. userid: b[j].userid,
  14854. wid: b[j].id,
  14855. aiCode: b[j].aiCode,
  14856. teacherCode: b[j].teacherCode
  14857. });
  14858. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14859. //英语口语
  14860. this.workStudent[i].push({
  14861. works: b[j].content,
  14862. sName: b[j].name,
  14863. score: b[j].score,
  14864. img: b[j].img,
  14865. type: 17,
  14866. time: b[j].time,
  14867. userid: b[j].userid,
  14868. wid: b[j].id,
  14869. });
  14870. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14871. //交互视频
  14872. this.workStudent[i].push({
  14873. works: b[j].content,
  14874. sName: b[j].name,
  14875. score: b[j].score,
  14876. img: b[j].img,
  14877. type: 14,
  14878. time: b[j].time,
  14879. userid: b[j].userid,
  14880. wid: b[j].id,
  14881. });
  14882. }
  14883. }
  14884. }
  14885. }
  14886. this.selectStudentLoading = false
  14887. })
  14888. .catch((err) => {
  14889. this.selectStudentLoading = false
  14890. console.error(err);
  14891. });
  14892. },
  14893. openVideo(w) {
  14894. this.videoDetail = {};
  14895. this.playerOptions1.sources[0].src = w.works;
  14896. this.videoDetail = this.playerOptions1;
  14897. this.videoVisible = true;
  14898. },
  14899. isLikes(wid, uid, t, c, isLikes,sName) {
  14900. if (isLikes == false) {
  14901. let params = [
  14902. {
  14903. wid: wid,
  14904. lid: uid,
  14905. t: t,
  14906. c: c,
  14907. },
  14908. ];
  14909. this.ajax
  14910. .post(this.$store.state.api + "insertComment", params)
  14911. .then((res) => {
  14912. this.$message({
  14913. message: "点赞成功",
  14914. type: "success",
  14915. });
  14916. this.selectSWorks();
  14917. this.selectStudent();
  14918. if(this.tType!=2){
  14919. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14920. }
  14921. })
  14922. .catch((err) => {
  14923. this.$message.error("点赞失败");
  14924. console.error(err);
  14925. });
  14926. } else {
  14927. let params = {
  14928. wid: wid,
  14929. lid: uid,
  14930. type: t,
  14931. };
  14932. this.ajax
  14933. .get(this.$store.state.api + "deleteComment", params)
  14934. .then((res) => {
  14935. this.$message({
  14936. message: "取消点赞成功",
  14937. type: "success",
  14938. });
  14939. this.selectSWorks();
  14940. this.selectStudent();
  14941. })
  14942. .catch((err) => {
  14943. console.error(err);
  14944. });
  14945. }
  14946. },
  14947. deleteComment(wid) {
  14948. this.$confirm("确定删除此评论吗?", "提示", {
  14949. confirmButtonText: "确定",
  14950. cancelButtonText: "取消",
  14951. type: "warning",
  14952. })
  14953. .then(() => {
  14954. let params = {
  14955. id: wid,
  14956. };
  14957. this.ajax
  14958. .get(this.$store.state.api + "deleteComment2", params)
  14959. .then((res) => {
  14960. this.$message({
  14961. message: "删除评论成功",
  14962. type: "success",
  14963. });
  14964. this.selectSWorks();
  14965. this.selectStudent();
  14966. })
  14967. .catch((err) => {
  14968. console.error(err);
  14969. });
  14970. })
  14971. .catch(() => {});
  14972. },
  14973. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14974. this.commentIndexJson = {
  14975. toolIndex: toolIndex,
  14976. wIndex: wIndex,
  14977. gindex: gindex,
  14978. gid: gid,
  14979. };
  14980. this.commentDetail = [];
  14981. this.commentDialogVisible = true;
  14982. this.commentDetail = w;
  14983. if (w.works && w.type == 1) {
  14984. // this.pptImgUrl = "";
  14985. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14986. if (
  14987. a.indexOf(
  14988. w.works
  14989. .split(".")
  14990. [w.works.split(".").length - 1].toLocaleUpperCase()
  14991. ) != -1
  14992. ) {
  14993. let _uuurl = await this.checkLink(w.works);
  14994. console.log(_uuurl)
  14995. this.pptImgUrl =
  14996. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14997. this.showPDF = false;
  14998. } else if (
  14999. w.works
  15000. .split(".")
  15001. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15002. ) {
  15003. this.pptImgUrl = w.works;
  15004. this.showPDF = true;
  15005. }
  15006. } else if (w.works && w.type == 3) {
  15007. this.videoDetail = {};
  15008. this.playerOptions1.sources[0].src = w.works;
  15009. this.videoDetail = this.playerOptions1;
  15010. // this.videoVisible = true;
  15011. } else if (w.works && w.type == 4) {
  15012. this.eScore = JSON.parse(w.works);
  15013. this.rateJson =
  15014. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15015. this.taskCount
  15016. ].toolChoose[toolIndex].rateJson;
  15017. } else if (w.works && w.type == 10) {
  15018. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  15019. } else if (w.works && w.type == 13) {
  15020. this.wordJson =
  15021. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15022. this.taskCount
  15023. ].toolChoose[toolIndex].wordJson;
  15024. }
  15025. },
  15026. async openScore(w, index) {
  15027. this.wScore = 0;
  15028. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  15029. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  15030. this.commentDetail = [];
  15031. if(w.type == 17){
  15032. this.dialogVisibleENScore = true;
  15033. }else{
  15034. this.dialogVisibleScore = true;
  15035. }
  15036. this.commentDetail = w;
  15037. if (w.works && w.type == 1) {
  15038. this.pptImgUrl = "";
  15039. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  15040. if (
  15041. a.indexOf(
  15042. w.works
  15043. .split(".")
  15044. [w.works.split(".").length - 1].toLocaleUpperCase()
  15045. ) != -1
  15046. ) {
  15047. let _uuurl = await this.checkLink(w.works);
  15048. console.log(_uuurl)
  15049. this.pptImgUrl =
  15050. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  15051. this.showPDF = false;
  15052. } else if (
  15053. w.works
  15054. .split(".")
  15055. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15056. ) {
  15057. this.pptImgUrl = w.works;
  15058. this.showPDF = true;
  15059. }
  15060. } else if (w.works && w.type == 3) {
  15061. this.videoDetail = {};
  15062. this.playerOptions1.sources[0].src = w.works;
  15063. this.videoDetail = this.playerOptions1;
  15064. }else if(w.type == 17){
  15065. let englishVoiceJson = {}
  15066. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15067. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  15068. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  15069. .toolChoose[index].englishVoiceJson
  15070. : {};
  15071. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  15072. }
  15073. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15074. },
  15075. addComment(wid, uid, t,detail) {
  15076. if (this.commentText == "") {
  15077. this.$message.error("请输入评论");
  15078. return;
  15079. }
  15080. let params2 = [
  15081. {
  15082. wid: wid,
  15083. lid: uid,
  15084. t: t,
  15085. },
  15086. ];
  15087. this.ajax
  15088. .post(this.$store.state.api + "getComment", params2)
  15089. .then((res) => {
  15090. if (res.data[0].length > 0) {
  15091. this.$message.error("一个作业只能评论一条");
  15092. } else {
  15093. let params = [
  15094. {
  15095. wid: wid,
  15096. lid: uid,
  15097. t: t,
  15098. c: this.commentText,
  15099. },
  15100. ];
  15101. this.ajax
  15102. .post(this.$store.state.api + "insertComment", params)
  15103. .then((res) => {
  15104. this.$message({
  15105. message: "评论成功",
  15106. type: "success",
  15107. });
  15108. this.commentText = "";
  15109. this.selectSWorks();
  15110. this.selectStudent();
  15111. if(this.tType!=2){
  15112. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  15113. }
  15114. })
  15115. .catch((err) => {
  15116. this.$message.error("评论失败");
  15117. console.error(err);
  15118. });
  15119. }
  15120. })
  15121. .catch((err) => {
  15122. // this.$message.error("评论失败");
  15123. console.error(err);
  15124. });
  15125. },
  15126. scoreWork(wid,sName) {
  15127. if (this.wScore == 0) {
  15128. this.$message.error("请评分");
  15129. return;
  15130. }
  15131. let params = [
  15132. {
  15133. wid: wid,
  15134. score: JSON.stringify({
  15135. wScore: this.wScore,
  15136. detail: this.scoreDetail,
  15137. }),
  15138. },
  15139. ];
  15140. this.ajax
  15141. .post(this.$store.state.api + "scoreWork", params)
  15142. .then((res) => {
  15143. this.$message({
  15144. message: "评分成功",
  15145. type: "success",
  15146. });
  15147. this.wScore = 0;
  15148. this.scoreDetail = "";
  15149. this.dialogVisibleScore = false;
  15150. this.selectSWorks();
  15151. this.selectStudent();
  15152. if(this.tType!=2){
  15153. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  15154. }
  15155. })
  15156. .catch((err) => {
  15157. this.$message.error("评分失败");
  15158. console.error(err);
  15159. });
  15160. },
  15161. openXz(w, i) {
  15162. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15163. .taskJson[this.taskCount].toolChoose[i].selectJson
  15164. ? JSON.parse(
  15165. JSON.stringify(
  15166. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15167. this.taskCount
  15168. ].toolChoose[i].selectJson
  15169. )
  15170. )
  15171. : { url: "", select: [], answer: [] };
  15172. var a = w.works.split(",");
  15173. for (var k = 0; k < a.length; k++) {
  15174. a[k] = parseInt(a[k]);
  15175. }
  15176. this.selectAnswer = { answer: a, stu: w.sName };
  15177. this.isSelect = true;
  15178. this.dialogVisibleSelect = true;
  15179. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15180. },
  15181. openSen(w, i) {
  15182. this.sentenceList1 = JSON.parse(w.works);
  15183. this.sentenceList1.stuName = w.sName;
  15184. this.dialogVisibleSentence1 = true;
  15185. },
  15186. openPj(w, toolindex) {
  15187. this.isStar = true;
  15188. this.eScore = JSON.parse(w);
  15189. this.rateJson =
  15190. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15191. this.taskCount
  15192. ].toolChoose[toolindex].rateJson;
  15193. this.studentEvalDialogVisible = true;
  15194. },
  15195. openEnglishEva(id,i){
  15196. let params = {
  15197. wid: id
  15198. };
  15199. this.ajax
  15200. .get(this.$store.state.api + "selectEngWork", params)
  15201. .then((res) => {
  15202. this.evaEngJson.message = res.data[0][0];
  15203. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  15204. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  15205. .toolChoose[i].englishList;
  15206. this.engEvaDialogVisible = true;
  15207. })
  15208. .catch((err) => {
  15209. console.error(err);
  15210. });
  15211. },
  15212. deleteWorks(id) {
  15213. this.$confirm("确定删除此作业吗?", "提示", {
  15214. confirmButtonText: "确定",
  15215. cancelButtonText: "取消",
  15216. type: "warning",
  15217. })
  15218. .then(() => {
  15219. let params = [
  15220. {
  15221. id: id,
  15222. },
  15223. ];
  15224. this.ajax
  15225. .post(this.$store.state.api + "deleteCourseWork", params)
  15226. .then((res) => {
  15227. this.$message({
  15228. message: "删除成功",
  15229. type: "success",
  15230. });
  15231. this.selectStudent();
  15232. this.selectSWorks();
  15233. this.selectSLook();
  15234. })
  15235. .catch((err) => {
  15236. this.$message.error("网络异常");
  15237. console.error(err);
  15238. });
  15239. })
  15240. .catch(() => {});
  15241. },
  15242. selectSWorks(gindex) {
  15243. if(this.selectSWorksLoading) return
  15244. this.selectSWorksLoading = true
  15245. //教师查看全部作业
  15246. let params = {
  15247. cid: this.id,
  15248. s: this.courseType,
  15249. t: this.taskCount,
  15250. };
  15251. this.ajax
  15252. .get(this.$store.state.api + "selectSWorks", params)
  15253. .then((res) => {
  15254. var a =
  15255. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15256. this.taskCount
  15257. ].toolChoose;
  15258. var b = res.data[0];
  15259. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15260. var y = [
  15261. "AVI",
  15262. "NAVI",
  15263. "MPEG",
  15264. "ASF",
  15265. "MOV",
  15266. "WMV",
  15267. "3GP",
  15268. "RM",
  15269. "RMVB",
  15270. "FLV",
  15271. "F4V",
  15272. "H.264",
  15273. "H.265",
  15274. "REAL VIDEO",
  15275. "MKV",
  15276. "WebM",
  15277. "HDDVD",
  15278. "MP4",
  15279. "MPG",
  15280. "M4V",
  15281. "MGV",
  15282. "OGV",
  15283. "QTM",
  15284. "STR",
  15285. "AMC",
  15286. "DVX",
  15287. "EVO",
  15288. "DAT",
  15289. "OGG",
  15290. "OGM",
  15291. ];
  15292. var d = res.data[1];
  15293. var e = res.data[2];
  15294. var f = res.data[3];
  15295. let _worksStudent = [];
  15296. var _worksStudent2 = [];
  15297. for (var i = 0; i < a.length; i++) {
  15298. _worksStudent[i] = [];
  15299. _worksStudent2[i] = [];
  15300. if (
  15301. !this.isCloseList[i] ||
  15302. this.isCloseList[i].isClose == undefined
  15303. ) {
  15304. this.isCloseList[i] = { isClose: 0 };
  15305. }
  15306. this.groupStudent[i] = [];
  15307. this.groupStudentUid[i] = [];
  15308. if (this.isGroup) {
  15309. for (
  15310. var groupI = 0;
  15311. groupI < this.courseGroup.group.length;
  15312. groupI++
  15313. ) {
  15314. this.courseGroup.group[groupI].works[i] = [];
  15315. }
  15316. }
  15317. this.isWorksS[i] = [];
  15318. this.checkJson[i] = [];
  15319. if (a[i].tool[0] == 49) {
  15320. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  15321. this.groupStudent[i][gA] = [];
  15322. this.groupStudentUid[i][gA] = [];
  15323. _worksStudent[i][gA] = [];
  15324. _worksStudent2[i][gA] = [];
  15325. this.isCloseList[i][gA] = [];
  15326. for (var g = 0; g < f.length; g++) {
  15327. if (
  15328. f[g].ttype == 2 &&
  15329. this.tcid &&
  15330. this.arrayToArray(
  15331. (f[g].classid ? f[g].classid.split(",") : []),
  15332. this.tcid.split(",")
  15333. ).length == 0
  15334. ) {
  15335. continue;
  15336. }
  15337. let _classId = this.arrayToArray(
  15338. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15339. this.classId ? this.classId.split(",") : []
  15340. )
  15341. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  15342. (f[g].classid ? f[g].classid.split(",") : []),
  15343. this.tcid.split(",")
  15344. ).length !== 0 || this.arrayToArray(
  15345. (f[g].classid ? f[g].classid.split(",") : []),
  15346. _classId
  15347. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  15348. this.groupStudent[i][gA].push(f[g]);
  15349. this.groupStudentUid[i][gA].push(f[g].userid);
  15350. }
  15351. }
  15352. }
  15353. this.$forceUpdate();
  15354. }
  15355. for (var j = 0; j < b.length; j++) {
  15356. if (
  15357. b[j].ttype == 2 &&
  15358. this.tcid &&
  15359. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  15360. .length == 0
  15361. ) {
  15362. continue;
  15363. }
  15364. var likesCount = 0;
  15365. var commentCount = 0;
  15366. var isLikes = false;
  15367. var commentJson = [];
  15368. var likeJson = [];
  15369. var data = b[j];
  15370. if (i == b[j].tool) {
  15371. if (data.type == 2 && a[i].tool[0] == 4) {
  15372. // if(JSON.parse(data.content)[0].anwer){
  15373. var checkL =
  15374. JSON.parse(data.content)[0].anwer instanceof Array
  15375. ? JSON.parse(data.content)[0].anwer
  15376. : JSON.parse(data.content)[0].anwer.split(",");
  15377. for (var z = 0; z < checkL.length; z++) {
  15378. if (!this.checkJson[i][z]) {
  15379. this.checkJson[i].push({
  15380. checkCount: [],
  15381. checkPerson: [],
  15382. rightPerson: [],
  15383. });
  15384. }
  15385. if (!this.checkJson[i][z].checkCount.length) {
  15386. this.checkJson[i][z].checkCount = [];
  15387. let _askItemCount = JSON.parse(data.content)[0].askJson
  15388. .askJson[z].askItem;
  15389. for (var aic = 0; aic < _askItemCount; aic++) {
  15390. this.checkJson[i][z].checkCount.push(0);
  15391. }
  15392. }
  15393. if (checkL[z] instanceof Array) {
  15394. if (
  15395. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  15396. checkL[z].sort().join(",")
  15397. ) {
  15398. this.checkJson[i][z].rightPerson.push(data.name);
  15399. }
  15400. for (var q = 0; q < checkL[z].length; q++) {
  15401. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15402. ? this.checkJson[i][z].checkPerson[
  15403. parseInt(checkL[z][q])
  15404. ].push(data.name)
  15405. : (this.checkJson[i][z].checkPerson[
  15406. parseInt(checkL[z][q])
  15407. ] = [data.name]);
  15408. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15409. ? this.checkJson[i][z].checkCount[
  15410. parseInt(checkL[z][q])
  15411. ]++
  15412. : (this.checkJson[i][z].checkCount[
  15413. parseInt(checkL[z][q])
  15414. ] = 1);
  15415. }
  15416. } else {
  15417. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  15418. this.checkJson[i][z].rightPerson.push(data.name);
  15419. }
  15420. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  15421. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  15422. ? this.checkJson[i][z].checkPerson[
  15423. parseInt(checkL[z])
  15424. ].push(data.name)
  15425. : (this.checkJson[i][z].checkPerson[
  15426. parseInt(checkL[z])
  15427. ] = [data.name]);
  15428. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  15429. ? this.checkJson[i][z].checkCount[
  15430. parseInt(checkL[z])
  15431. ]++
  15432. : (this.checkJson[i][z].checkCount[
  15433. parseInt(checkL[z])
  15434. ] = 1);
  15435. }
  15436. }
  15437. }
  15438. } else if (data.type == 8 && a[i].tool[0] == 45) {
  15439. var checkL = JSON.parse(data.content)[0].anwer;
  15440. if(a[i].testJson.testCount != JSON.parse(data.content)[0].testJson.testCount){
  15441. continue
  15442. }
  15443. console.log('选择题')
  15444. for (var z = 0; z < checkL.length; z++) {
  15445. if (!this.checkJson[i][z]) {
  15446. this.checkJson[i].push({
  15447. checkCount: [],
  15448. checkPerson: [],
  15449. rightPerson: [],
  15450. });
  15451. }
  15452. if (!this.checkJson[i][z].checkCount.length) {
  15453. this.checkJson[i][z].checkCount = [];
  15454. let _askItemCount = JSON.parse(data.content)[0].testJson
  15455. .testJson[z].testItem;
  15456. for (var aic = 0; aic < _askItemCount; aic++) {
  15457. this.checkJson[i][z].checkCount.push(0);
  15458. }
  15459. }
  15460. if (checkL[z] instanceof Array) {
  15461. if (
  15462. JSON.parse(data.content)[0]
  15463. .testJson.testJson[z].answer.sort()
  15464. .join(",") == checkL[z].sort().join(",")
  15465. ) {
  15466. this.checkJson[i][z].rightPerson.push(data.name);
  15467. }
  15468. for (var q = 0; q < checkL[z].length; q++) {
  15469. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15470. ? this.checkJson[i][z].checkPerson[
  15471. parseInt(checkL[z][q])
  15472. ].push(data.name)
  15473. : (this.checkJson[i][z].checkPerson[
  15474. parseInt(checkL[z][q])
  15475. ] = [data.name]);
  15476. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15477. ? this.checkJson[i][z].checkCount[
  15478. parseInt(checkL[z][q])
  15479. ]++
  15480. : (this.checkJson[i][z].checkCount[
  15481. parseInt(checkL[z][q])
  15482. ] = 1);
  15483. }
  15484. } else {
  15485. if (
  15486. JSON.parse(data.content)[0].testJson.testJson[z]
  15487. .answer == checkL[z]
  15488. ) {
  15489. this.checkJson[i][z].rightPerson.push(data.name);
  15490. }
  15491. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  15492. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  15493. ? this.checkJson[i][z].checkPerson[
  15494. parseInt(checkL[z])
  15495. ].push(data.name)
  15496. : (this.checkJson[i][z].checkPerson[
  15497. parseInt(checkL[z])
  15498. ] = [data.name]);
  15499. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  15500. ? this.checkJson[i][z].checkCount[
  15501. parseInt(checkL[z])
  15502. ]++
  15503. : (this.checkJson[i][z].checkCount[
  15504. parseInt(checkL[z])
  15505. ] = 1);
  15506. }
  15507. }
  15508. }
  15509. } else if (data.type == 9 && a[i].tool[0] == 47) {
  15510. var checkL = JSON.parse(data.content);
  15511. for (var z = 0; z < checkL.length; z++) {
  15512. if (!this.checkJson[i][z]) {
  15513. this.checkJson[i].push({
  15514. checkCount: [],
  15515. checkPerson: [],
  15516. rightPerson: [],
  15517. });
  15518. }
  15519. this.checkJson[i][z].checkPerson.push(data.name);
  15520. if (
  15521. checkL[z].chooseSenList.toString() ==
  15522. checkL[z].rightAnswer.toString()
  15523. ) {
  15524. this.checkJson[i][z].rightPerson.push(data.name);
  15525. }
  15526. }
  15527. }
  15528. for (var k = 0; k < d.length; k++) {
  15529. //点赞
  15530. if (d[k].workId == b[j].id) {
  15531. likesCount++;
  15532. likeJson.push(d[k])
  15533. if (d[k].likesId == this.userid) {
  15534. isLikes = true;
  15535. }
  15536. }
  15537. }
  15538. for (var l = 0; l < e.length; l++) {
  15539. //评论
  15540. if (e[l].workId == b[j].id) {
  15541. if (e[l].comment != "") {
  15542. commentCount++;
  15543. commentJson.push({
  15544. commentText: e[l].comment,
  15545. commentTime: e[l].commentTime,
  15546. commentPeople: e[l].commentPeople,
  15547. userid: e[l].userid,
  15548. wid: e[l].id,
  15549. });
  15550. }
  15551. }
  15552. }
  15553. if (
  15554. (b[j].type == 1 ||
  15555. b[j].type == 4 ||
  15556. b[j].type == 5 ||
  15557. b[j].type == 6 ||
  15558. b[j].type == 12 ||
  15559. b[j].type == 7) &&
  15560. a[i].tool[0] != 15 &&
  15561. a[i].tool[0] != 4 &&
  15562. a[i].tool[0] != 45 &&
  15563. a[i].tool[0] != 50 &&
  15564. a[i].tool[0] != 32 &&
  15565. a[i].tool[0] != 57 &&
  15566. a[i].tool[0] != 52
  15567. ) {
  15568. if (
  15569. c.indexOf(
  15570. b[j].content
  15571. .split(".")
  15572. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15573. ) != -1 &&
  15574. a[i].tool[0] == 16 &&
  15575. b[j].atool != 50
  15576. ) {
  15577. let _works = {
  15578. userid: b[j].userid,
  15579. ateacher: b[j].ateacher,
  15580. wid: b[j].id,
  15581. works: b[j].content,
  15582. sName: b[j].name,
  15583. type: 1,
  15584. ttype:b[j].ttype,
  15585. time: b[j].time,
  15586. score: b[j].score,
  15587. img: b[j].img,
  15588. likesCount: likesCount,
  15589. commentCount: commentCount,
  15590. isLikes: isLikes,
  15591. commentJson: commentJson,
  15592. likeJson:likeJson
  15593. };
  15594. if (this.isGroup) {
  15595. let isGw = 1;
  15596. for (
  15597. var groupI = 0;
  15598. groupI < this.courseGroup.group.length;
  15599. groupI++
  15600. ) {
  15601. let gid = this.courseGroup.group[groupI].id;
  15602. if (
  15603. this.courseGroupStudentUid[gid].indexOf(
  15604. b[j].userid
  15605. ) != -1
  15606. ) {
  15607. isGw = 2;
  15608. this.courseGroup.group[groupI].works[i].push(_works);
  15609. break;
  15610. }
  15611. }
  15612. if (isGw == 1) {
  15613. _worksStudent[i].push(_works);
  15614. }
  15615. } else {
  15616. _worksStudent[i].push(_works);
  15617. }
  15618. _worksStudent2[i].push(_works);
  15619. this.isWorksS[i].push({
  15620. uid: b[j].userid,
  15621. sName: b[j].name,
  15622. });
  15623. } else if (
  15624. y.indexOf(
  15625. b[j].content
  15626. .split(".")
  15627. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15628. ) != -1 &&
  15629. a[i].tool[0] == 16 &&
  15630. b[j].atool != 50
  15631. ) {
  15632. let _works = {
  15633. userid: b[j].userid,
  15634. ateacher: b[j].ateacher,
  15635. wid: b[j].id,
  15636. works: b[j].content,
  15637. sName: b[j].name,
  15638. type: 3,
  15639. ttype:b[j].ttype,
  15640. time: b[j].time,
  15641. score: b[j].score,
  15642. img: b[j].img,
  15643. likesCount: likesCount,
  15644. commentCount: commentCount,
  15645. isLikes: isLikes,
  15646. commentJson: commentJson,
  15647. likeJson:likeJson
  15648. };
  15649. if (this.isGroup) {
  15650. let isGw = 1;
  15651. for (
  15652. var groupI = 0;
  15653. groupI < this.courseGroup.group.length;
  15654. groupI++
  15655. ) {
  15656. let gid = this.courseGroup.group[groupI].id;
  15657. if (
  15658. this.courseGroupStudentUid[gid].indexOf(
  15659. b[j].userid
  15660. ) != -1
  15661. ) {
  15662. isGw = 2;
  15663. this.courseGroup.group[groupI].works[i].push(_works);
  15664. break;
  15665. }
  15666. }
  15667. if (isGw == 1) {
  15668. _worksStudent[i].push(_works);
  15669. }
  15670. } else {
  15671. _worksStudent[i].push(_works);
  15672. }
  15673. _worksStudent2[i].push(_works);
  15674. this.isWorksS[i].push({
  15675. uid: b[j].userid,
  15676. sName: b[j].name,
  15677. });
  15678. } else if (b[j].type == 6 && b[j].atool != 50) {
  15679. let _works = {
  15680. userid: b[j].userid,
  15681. ateacher: b[j].ateacher,
  15682. wid: b[j].id,
  15683. works: b[j].content,
  15684. sName: b[j].name,
  15685. type: 4,
  15686. ttype:b[j].ttype,
  15687. time: b[j].time,
  15688. score: b[j].score,
  15689. img: b[j].img,
  15690. likesCount: likesCount,
  15691. commentCount: commentCount,
  15692. isLikes: isLikes,
  15693. commentJson: commentJson,
  15694. likeJson:likeJson
  15695. };
  15696. _worksStudent[i].push(_works);
  15697. _worksStudent2[i].push(_works);
  15698. this.isWorksS[i].push({
  15699. uid: b[j].userid,
  15700. sName: b[j].name,
  15701. });
  15702. } else if (b[j].type == 7 && b[j].atool != 50) {
  15703. let _work = {
  15704. userid: b[j].userid,
  15705. ateacher: b[j].ateacher,
  15706. wid: b[j].id,
  15707. works: b[j].content,
  15708. sName: b[j].name,
  15709. type: 5,
  15710. ttype:b[j].ttype,
  15711. time: b[j].time,
  15712. score: b[j].score,
  15713. img: b[j].img,
  15714. likesCount: likesCount,
  15715. commentCount: commentCount,
  15716. isLikes: isLikes,
  15717. commentJson: commentJson,
  15718. likeJson:likeJson
  15719. };
  15720. _worksStudent[i].push(_work);
  15721. _worksStudent2[i].push(_work);
  15722. this.isWorksS[i].push({
  15723. uid: b[j].userid,
  15724. sName: b[j].name,
  15725. });
  15726. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  15727. let _works = {
  15728. userid: b[j].userid,
  15729. ateacher: b[j].ateacher,
  15730. wid: b[j].id,
  15731. works: b[j].content,
  15732. sName: b[j].name,
  15733. type: 12,
  15734. ttype:b[j].ttype,
  15735. time: b[j].time,
  15736. score: b[j].score,
  15737. img: b[j].img,
  15738. likesCount: likesCount,
  15739. commentCount: commentCount,
  15740. isLikes: isLikes,
  15741. commentJson: commentJson,
  15742. likeJson:likeJson
  15743. };
  15744. if (this.isGroup) {
  15745. let isGw = 1;
  15746. for (
  15747. var groupI = 0;
  15748. groupI < this.courseGroup.group.length;
  15749. groupI++
  15750. ) {
  15751. let gid = this.courseGroup.group[groupI].id;
  15752. if (
  15753. this.courseGroupStudentUid[gid].indexOf(
  15754. b[j].userid
  15755. ) != -1
  15756. ) {
  15757. isGw = 2;
  15758. this.courseGroup.group[groupI].works[i].push(_works);
  15759. break;
  15760. }
  15761. }
  15762. if (isGw == 1) {
  15763. _worksStudent[i].push(_works);
  15764. }
  15765. } else {
  15766. _worksStudent[i].push(_works);
  15767. }
  15768. _worksStudent2[i].push(_works);
  15769. this.isWorksS[i].push({
  15770. uid: b[j].userid,
  15771. sName: b[j].name,
  15772. });
  15773. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  15774. let _works = {
  15775. userid: b[j].userid,
  15776. ateacher: b[j].ateacher,
  15777. wid: b[j].id,
  15778. works: b[j].content,
  15779. sName: b[j].name,
  15780. type: 0,
  15781. ttype:b[j].ttype,
  15782. time: b[j].time,
  15783. score: b[j].score,
  15784. img: b[j].img,
  15785. likesCount: likesCount,
  15786. commentCount: commentCount,
  15787. isLikes: isLikes,
  15788. commentJson: commentJson,
  15789. likeJson:likeJson
  15790. };
  15791. if (this.isGroup) {
  15792. let isGw = 1;
  15793. for (
  15794. var groupI = 0;
  15795. groupI < this.courseGroup.group.length;
  15796. groupI++
  15797. ) {
  15798. let gid = this.courseGroup.group[groupI].id;
  15799. if (
  15800. this.courseGroupStudentUid[gid].indexOf(
  15801. b[j].userid
  15802. ) != -1
  15803. ) {
  15804. isGw = 2;
  15805. this.courseGroup.group[groupI].works[i].push(_works);
  15806. break;
  15807. }
  15808. }
  15809. if (isGw == 1) {
  15810. _worksStudent[i].push(_works);
  15811. }
  15812. } else {
  15813. _worksStudent[i].push(_works);
  15814. }
  15815. _worksStudent2[i].push(_works);
  15816. this.isWorksS[i].push({
  15817. uid: b[j].userid,
  15818. sName: b[j].name,
  15819. });
  15820. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  15821. let _works = {
  15822. userid: b[j].userid,
  15823. ateacher: b[j].ateacher,
  15824. wid: b[j].id,
  15825. works: b[j].content,
  15826. sName: b[j].name,
  15827. type: 0,
  15828. ttype:b[j].ttype,
  15829. time: b[j].time,
  15830. score: b[j].score,
  15831. img: b[j].img,
  15832. likesCount: likesCount,
  15833. commentCount: commentCount,
  15834. isLikes: isLikes,
  15835. commentJson: commentJson,
  15836. likeJson:likeJson
  15837. };
  15838. if (this.isGroup) {
  15839. let isGw = 1;
  15840. for (
  15841. var groupI = 0;
  15842. groupI < this.courseGroup.group.length;
  15843. groupI++
  15844. ) {
  15845. let gid = this.courseGroup.group[groupI].id;
  15846. if (
  15847. this.courseGroupStudentUid[gid].indexOf(
  15848. b[j].userid
  15849. ) != -1
  15850. ) {
  15851. isGw = 2;
  15852. this.courseGroup.group[groupI].works[i].push(_works);
  15853. break;
  15854. }
  15855. }
  15856. if (isGw == 1) {
  15857. _worksStudent[i].push(_works);
  15858. }
  15859. } else {
  15860. _worksStudent[i].push(_works);
  15861. }
  15862. _worksStudent2[i].push(_works);
  15863. this.isWorksS[i].push({
  15864. uid: b[j].userid,
  15865. sName: b[j].name,
  15866. });
  15867. }
  15868. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15869. let _works = {
  15870. userid: b[j].userid,
  15871. ateacher: b[j].ateacher,
  15872. wid: b[j].id,
  15873. works: b[j].content,
  15874. sName: b[j].name,
  15875. type: 2,
  15876. ttype:b[j].ttype,
  15877. time: b[j].time,
  15878. score: b[j].score,
  15879. img: b[j].img,
  15880. likesCount: likesCount,
  15881. commentCount: commentCount,
  15882. isLikes: isLikes,
  15883. commentJson: commentJson,
  15884. likeJson:likeJson
  15885. };
  15886. if (this.isGroup) {
  15887. let isGw = 1;
  15888. for (
  15889. var groupI = 0;
  15890. groupI < this.courseGroup.group.length;
  15891. groupI++
  15892. ) {
  15893. let gid = this.courseGroup.group[groupI].id;
  15894. if (
  15895. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15896. -1
  15897. ) {
  15898. isGw = 2;
  15899. this.courseGroup.group[groupI].works[i].push(_works);
  15900. break;
  15901. }
  15902. }
  15903. if (isGw == 1) {
  15904. _worksStudent[i].push(_works);
  15905. }
  15906. } else {
  15907. _worksStudent[i].push(_works);
  15908. }
  15909. _worksStudent2[i].push(_works);
  15910. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15911. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  15912. let _works = {
  15913. userid: b[j].userid,
  15914. ateacher: b[j].ateacher,
  15915. wid: b[j].id,
  15916. works: b[j].content,
  15917. sName: b[j].name,
  15918. type: 20,
  15919. ttype:b[j].ttype,
  15920. time: b[j].time,
  15921. score: b[j].score,
  15922. img: b[j].img,
  15923. likesCount: likesCount,
  15924. commentCount: commentCount,
  15925. isLikes: isLikes,
  15926. commentJson: commentJson,
  15927. likeJson:likeJson
  15928. };
  15929. if (this.isGroup) {
  15930. let isGw = 1;
  15931. for (
  15932. var groupI = 0;
  15933. groupI < this.courseGroup.group.length;
  15934. groupI++
  15935. ) {
  15936. let gid = this.courseGroup.group[groupI].id;
  15937. if (
  15938. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15939. -1
  15940. ) {
  15941. isGw = 2;
  15942. this.courseGroup.group[groupI].works[i].push(_works);
  15943. break;
  15944. }
  15945. }
  15946. if (isGw == 1) {
  15947. _worksStudent[i].push(_works);
  15948. }
  15949. } else {
  15950. _worksStudent[i].push(_works);
  15951. }
  15952. _worksStudent2[i].push(_works);
  15953. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15954. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  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: 2,
  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 == 8 && a[i].tool[0] == 45) {
  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: 8,
  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 == 9 && a[i].tool[0] == 47) {
  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: 9,
  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 == 10 && a[i].tool[0] == 48) {
  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: 10,
  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 == 13 && a[i].tool[0] == 52) {
  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: 13,
  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. likeJson:likeJson
  16060. };
  16061. _worksStudent[i].push(_work);
  16062. _worksStudent2[i].push(_work);
  16063. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16064. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  16065. //选择题
  16066. let _work = {
  16067. userid: b[j].userid,
  16068. ateacher: b[j].ateacher,
  16069. wid: b[j].id,
  16070. works: b[j].content,
  16071. sName: b[j].name,
  16072. type: 16,
  16073. ttype:b[j].ttype,
  16074. time: b[j].time,
  16075. score: b[j].score,
  16076. img: b[j].img,
  16077. likesCount: likesCount,
  16078. commentCount: commentCount,
  16079. isLikes: isLikes,
  16080. commentJson: commentJson,
  16081. aiCode: b[j].aiCode,
  16082. teacherCode: b[j].teacherCode,
  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 == 17 && a[i].tool[0] == 70) {
  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: 17,
  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 == 14 && a[i].tool[0] == 62) {
  16111. //交互视频
  16112. let _work = {
  16113. userid: b[j].userid,
  16114. ateacher: b[j].ateacher,
  16115. wid: b[j].id,
  16116. works: b[j].content,
  16117. sName: b[j].name,
  16118. type: 14,
  16119. ttype:b[j].ttype,
  16120. time: b[j].time,
  16121. score: b[j].score,
  16122. img: b[j].img,
  16123. likesCount: likesCount,
  16124. commentCount: commentCount,
  16125. isLikes: isLikes,
  16126. commentJson: commentJson,
  16127. likeJson:likeJson
  16128. };
  16129. _worksStudent[i].push(_work);
  16130. _worksStudent2[i].push(_work);
  16131. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16132. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  16133. let _gindex = JSON.parse(b[j].content);
  16134. if (
  16135. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  16136. b[j].userid
  16137. ) != -1
  16138. ) {
  16139. let _work = {
  16140. userid: b[j].userid,
  16141. ateacher: b[j].ateacher,
  16142. wid: b[j].id,
  16143. works: _gindex.url,
  16144. sName: b[j].name,
  16145. type: _gindex.type,
  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][_gindex.groupIndex].push(_work);
  16157. _worksStudent2[i][_gindex.groupIndex].push(_work);
  16158. }
  16159. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16160. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  16161. let _work = {
  16162. userid: b[j].userid,
  16163. ateacher: b[j].ateacher,
  16164. wid: b[j].id,
  16165. works: b[j].content,
  16166. sName: b[j].name ? b[j].name : b[j].userid,
  16167. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  16168. ttype:b[j].ttype,
  16169. time: b[j].time,
  16170. score: b[j].score,
  16171. img: b[j].img,
  16172. likesCount: likesCount,
  16173. commentCount: commentCount,
  16174. isLikes: isLikes,
  16175. commentJson: commentJson,
  16176. likeJson:likeJson
  16177. };
  16178. _worksStudent[i].push(_work);
  16179. _worksStudent2[i].push(_work);
  16180. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16181. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  16182. let _work = {
  16183. userid: b[j].userid,
  16184. ateacher: b[j].ateacher,
  16185. wid: b[j].id,
  16186. works: b[j].content,
  16187. sName: b[j].name ? b[j].name : b[j].userid,
  16188. type: 12,
  16189. ttype:b[j].ttype,
  16190. time: b[j].time,
  16191. score: b[j].score,
  16192. img: b[j].img,
  16193. likesCount: likesCount,
  16194. commentCount: commentCount,
  16195. isLikes: isLikes,
  16196. commentJson: commentJson,
  16197. likeJson:likeJson
  16198. };
  16199. _worksStudent[i].push(_work);
  16200. _worksStudent2[i].push(_work);
  16201. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16202. } else if (
  16203. a[i].tool[0] == 57 &&
  16204. b[j].atool == 57 &&
  16205. b[j].type == 12
  16206. ) {
  16207. let _work = {
  16208. userid: b[j].userid,
  16209. ateacher: b[j].ateacher,
  16210. wid: b[j].id,
  16211. works: b[j].content,
  16212. sName: b[j].name ? b[j].name : b[j].userid,
  16213. type: 12,
  16214. ttype:b[j].ttype,
  16215. time: b[j].time,
  16216. score: b[j].score,
  16217. img: b[j].img,
  16218. likesCount: likesCount,
  16219. commentCount: commentCount,
  16220. isLikes: isLikes,
  16221. commentJson: commentJson,
  16222. likeJson:likeJson
  16223. };
  16224. _worksStudent[i].push(_work);
  16225. _worksStudent2[i].push(_work);
  16226. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16227. } else if (
  16228. a[i].tool[0] == 57 &&
  16229. b[j].atool == 57 &&
  16230. b[j].type == 15
  16231. ) {
  16232. let _work = {
  16233. userid: b[j].userid,
  16234. ateacher: b[j].ateacher,
  16235. wid: b[j].id,
  16236. works: b[j].content,
  16237. sName: b[j].name ? b[j].name : b[j].userid,
  16238. type: 15,
  16239. ttype:b[j].ttype,
  16240. time: b[j].time,
  16241. score: b[j].score,
  16242. img: b[j].img,
  16243. likesCount: likesCount,
  16244. commentCount: commentCount,
  16245. isLikes: isLikes,
  16246. commentJson: commentJson,
  16247. likeJson:likeJson
  16248. };
  16249. _worksStudent[i].push(_work);
  16250. _worksStudent2[i].push(_work);
  16251. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16252. }
  16253. }
  16254. }
  16255. if (_worksStudent[i] && _worksStudent[i].length) {
  16256. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  16257. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  16258. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  16259. var scoreA = parseFloat(jscoreA);
  16260. var scoreB = parseFloat(jscoreB);
  16261. if (scoreA == scoreB) {
  16262. return b.likesCount - a.likesCount;
  16263. }
  16264. return scoreB - scoreA;
  16265. });
  16266. if (this.isGroup) {
  16267. for (
  16268. var groupI = 0;
  16269. groupI < this.courseGroup.group.length;
  16270. groupI++
  16271. ) {
  16272. this.courseGroup.group[groupI].works[i] =
  16273. this.courseGroup.group[groupI].works[i].sort(function (
  16274. a,
  16275. b
  16276. ) {
  16277. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  16278. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  16279. var scoreA = parseFloat(jscoreA);
  16280. var scoreB = parseFloat(jscoreB);
  16281. if (scoreA == scoreB) {
  16282. return b.likesCount - a.likesCount;
  16283. }
  16284. return scoreB - scoreA;
  16285. });
  16286. }
  16287. }
  16288. }
  16289. }
  16290. this.timeWorkList = _worksStudent2;
  16291. for (var i = 0; i < a.length; i++) {
  16292. for (var j = 0; j < b.length; j++) {
  16293. var data = b[j];
  16294. if (i == b[j].tool) {
  16295. if (data.type == 2 || data.type == 8) {
  16296. for (var z = 0; z < this.checkJson[i].length; z++) {
  16297. this.checkJson[i][z].checkPerent = [];
  16298. this.checkJson[i][z].right = Math.round(
  16299. (this.checkJson[i][z].rightPerson.length /
  16300. parseInt(_worksStudent[i].length)) *
  16301. 100
  16302. );
  16303. let aaaa = this.checkJson[i][z];
  16304. for (
  16305. var k = 0;
  16306. k < this.checkJson[i][z].checkCount.length;
  16307. k++
  16308. ) {
  16309. this.checkJson[i][z].checkPerent.push(
  16310. Math.round(
  16311. (this.checkJson[i][z].checkCount[k] /
  16312. parseInt(_worksStudent[i].length)) *
  16313. 100
  16314. )
  16315. );
  16316. }
  16317. }
  16318. } else if (data.type == 9) {
  16319. for (var z = 0; z < this.checkJson[i].length; z++) {
  16320. this.checkJson[i][z].checkPerent = [];
  16321. this.checkJson[i][z].right = Math.round(
  16322. (this.checkJson[i][z].rightPerson.length /
  16323. this.checkJson[i][z].checkPerson.length) *
  16324. 100
  16325. );
  16326. }
  16327. }
  16328. }
  16329. }
  16330. }
  16331. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  16332. this.joinGroup(gindex);
  16333. }
  16334. this.worksStudent = _worksStudent;
  16335. this.selectWorksStudent();
  16336. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  16337. this.$nextTick(()=>{
  16338. setTimeout(()=>{
  16339. setTimeout(()=>{
  16340. this.panToolHeight('tool-'+ci);
  16341. }, 500)
  16342. }, 0)
  16343. })
  16344. }
  16345. this.selectSWorksLoading = false
  16346. })
  16347. .catch((err) => {
  16348. this.selectSWorksLoading = false
  16349. console.error(err);
  16350. });
  16351. },
  16352. pngToWhiteBg(file) {
  16353. const _file = file;
  16354. let read = new FileReader();
  16355. read.readAsDataURL(file); // 文件转base64
  16356. return new Promise((resolve, reject) => {
  16357. read.onload = (e) => {
  16358. let img = new Image();
  16359. img.src = e.target.result;
  16360. img.onload = async () => {
  16361. // 生成canvas
  16362. let canvas = document.createElement("canvas");
  16363. let context = canvas.getContext("2d");
  16364. // 绘制图片到canvas上
  16365. canvas.width = img.width;
  16366. canvas.height = img.height;
  16367. // 在canvas绘制前填充白色背景
  16368. context.fillStyle = "#fff";
  16369. context.fillRect(0, 0, canvas.width, canvas.height);
  16370. context.drawImage(img, 0, 0);
  16371. let base64 = canvas.toDataURL(file["type"], 1);
  16372. let newFile = this.dataUrlToFile(base64, _file);
  16373. resolve(newFile);
  16374. };
  16375. };
  16376. });
  16377. },
  16378. dataUrlToFile(dataurl, file) {
  16379. let arr = dataurl.split(","),
  16380. mime = arr[0].match(/:(.*?);/)[1],
  16381. bstr = atob(arr[1]),
  16382. n = bstr.length,
  16383. u8arr = new Uint8Array(n);
  16384. while (n--) {
  16385. u8arr[n] = bstr.charCodeAt(n);
  16386. }
  16387. // return new Blob([u8arr], { type: mime });
  16388. return new File([new Blob([u8arr], { type: mime })], file.name, {
  16389. type: mime,
  16390. });
  16391. },
  16392. async beforeUpload1(event, type, i) {
  16393. // this.$message.success('进入上传')
  16394. var file = "";
  16395. if (type == 5) {
  16396. file = event;
  16397. } else {
  16398. file = event.target.files[0];
  16399. }
  16400. var credentials = {
  16401. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16402. secretAccessKey: "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",
  16403. }; //秘钥形式的登录上传
  16404. window.AWS.config.update(credentials);
  16405. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16406. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16407. var _this = this;
  16408. _this.progress = 0;
  16409. _this.proVisible = true;
  16410. _this.isFinishSize = 0;
  16411. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  16412. var b = [
  16413. "DOC",
  16414. "DOCX",
  16415. "DOCM",
  16416. "DOTM",
  16417. "DOTX",
  16418. "PPTX",
  16419. "PPSX",
  16420. "PPT",
  16421. "PPS",
  16422. "PPTM",
  16423. "POTM",
  16424. "PPAM",
  16425. "POTX",
  16426. "PPSM",
  16427. ];
  16428. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16429. var photoA = [
  16430. "BMP",
  16431. "GIF",
  16432. "PNG",
  16433. "JPEG",
  16434. "JPEG",
  16435. "JPG",
  16436. "TIF",
  16437. "PCX",
  16438. "TGA",
  16439. "EXIF",
  16440. "FPX",
  16441. "SVG",
  16442. "APNG",
  16443. ];
  16444. // if (
  16445. // b.indexOf(
  16446. // file.name
  16447. // .split(".")
  16448. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16449. // ) != -1
  16450. // ) {
  16451. // if (file.size / 1024 / 1024 > 10) {
  16452. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  16453. // return;
  16454. // }
  16455. // } else if (
  16456. // excelA.indexOf(
  16457. // file.name
  16458. // .split(".")
  16459. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16460. // ) != "-1"
  16461. // ) {
  16462. // if (file.size / 1024 / 1024 > 5) {
  16463. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  16464. // return;
  16465. // }
  16466. // }
  16467. if (
  16468. photoA.indexOf(
  16469. file.name
  16470. .split(".")
  16471. [file.name.split(".").length - 1].toLocaleUpperCase()
  16472. ) != -1 &&
  16473. type != 4
  16474. ) {
  16475. // const blob = await imageConversion.compress(file, 0.8)
  16476. file = await this.pngToWhiteBg(file);
  16477. const blob = await imageConversion.compressAccurately(file, 256);
  16478. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16479. file = new File([blob], file.name, { type: file.type });
  16480. }
  16481. if (file) {
  16482. var params = {
  16483. Key:
  16484. file.name.split(".")[0] +
  16485. new Date().getTime() +
  16486. "." +
  16487. file.name.split(".")[file.name.split(".").length - 1],
  16488. ContentType: file.type,
  16489. Body: file,
  16490. "Access-Control-Allow-Credentials": "*",
  16491. ACL: "public-read",
  16492. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16493. var options = {
  16494. // partSize: 2048 * 1024 * 1024,
  16495. partSize: 1024 * 1024 * 1024,
  16496. queueSize: 2,
  16497. leavePartsOnError: true,
  16498. };
  16499. bucket
  16500. .upload(params, options)
  16501. .on("httpUploadProgress", function (evt) {
  16502. //这里可以写进度条
  16503. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16504. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  16505. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  16506. })
  16507. .send(function (err, data) {
  16508. _this.progress = 100;
  16509. _this.isFinishSize = _this.isAllSize;
  16510. setTimeout(() => {
  16511. _this.proVisible = false;
  16512. }, 1000);
  16513. if (err) {
  16514. var a = _this.$refs.upload1.uploadFiles;
  16515. a.splice(a.length - 1, a.length);
  16516. _this.$message.error("上传失败");
  16517. } else {
  16518. // _this.$message.success('上传成功')
  16519. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16520. var c = [
  16521. "AVI",
  16522. "NAVI",
  16523. "MPEG",
  16524. "ASF",
  16525. "MOV",
  16526. "WMV",
  16527. "3GP",
  16528. "RM",
  16529. "RMVB",
  16530. "FLV",
  16531. "F4V",
  16532. "H.264",
  16533. "H.265",
  16534. "REAL VIDEO",
  16535. "MKV",
  16536. "WebM",
  16537. "HDDVD",
  16538. "MP4",
  16539. "MPG",
  16540. "M4V",
  16541. "MGV",
  16542. "OGV",
  16543. "QTM",
  16544. "STR",
  16545. "AMC",
  16546. "DVX",
  16547. "EVO",
  16548. "DAT",
  16549. "OGG",
  16550. "OGM",
  16551. ];
  16552. if (type == 1) {
  16553. _this.studyJuri[0].cover.push({
  16554. name: file.name,
  16555. url: data.Location,
  16556. uid: file.uid,
  16557. });
  16558. if (
  16559. c.indexOf(
  16560. _this.studyJuri[0].cover[0].url
  16561. .split(".")
  16562. [
  16563. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16564. ].toLocaleUpperCase()
  16565. ) != -1
  16566. ) {
  16567. _this.fileType = 2;
  16568. } else if (
  16569. b.indexOf(
  16570. _this.studyJuri[0].cover[0].url
  16571. .split(".")
  16572. [
  16573. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16574. ].toLocaleUpperCase()
  16575. ) != -1
  16576. ) {
  16577. _this.fileType = 1;
  16578. } else if (
  16579. photoA.indexOf(
  16580. _this.studyJuri[0].cover[0].url
  16581. .split(".")
  16582. [
  16583. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16584. ].toLocaleUpperCase()
  16585. ) != -1
  16586. ) {
  16587. _this.fileType = 0;
  16588. } else {
  16589. _this.fileType = 3;
  16590. }
  16591. _this.imgChange(null, null, type);
  16592. } else if (type == 2) {
  16593. _this.upToolImg = data.Location;
  16594. _this.imgChange(null, null, type);
  16595. _this.addCourseWorks(i);
  16596. } else if (type == 4) {
  16597. _this.addPz("3", data.Location);
  16598. } else if (type == 5) {
  16599. _this.addImgDrawImG(data.Location);
  16600. } else if (type == 6) {
  16601. var _ftype = 1;
  16602. if (
  16603. c.indexOf(
  16604. data.Location.split(".")[
  16605. data.Location.split(".").length - 1
  16606. ].toLocaleUpperCase()
  16607. ) != -1
  16608. ) {
  16609. _ftype = 5;
  16610. } else if (
  16611. b.indexOf(
  16612. data.Location.split(".")[
  16613. data.Location.split(".").length - 1
  16614. ].toLocaleUpperCase()
  16615. ) != -1
  16616. ) {
  16617. _ftype = 4;
  16618. } else {
  16619. _ftype = 1;
  16620. }
  16621. _this.plworkFile.push({
  16622. name: file.name,
  16623. url: data.Location,
  16624. uid: file.uid,
  16625. fileType: _ftype,
  16626. username:
  16627. _this.plworkFile.length > 10
  16628. ? _this.plworkFile.length + 1
  16629. : "0" + (_this.plworkFile.length + 1),
  16630. });
  16631. } else if (type == 7) {
  16632. _this.addCourseWorksGong(i, data.Location, 32);
  16633. } else if (type == 8) {
  16634. _this.addCourseWorksGong(i, data.Location, 57);
  16635. }
  16636. _this.imgChange(null, null, type);
  16637. console.log(data.Location);
  16638. // _this.$message.success('上传成功'+data.Location)
  16639. }
  16640. });
  16641. }
  16642. },
  16643. async beforeUpload3(event, type, i) {
  16644. // this.$message.success('进入上传')
  16645. let file = "";
  16646. let cfindex2 = 0;
  16647. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  16648. file = event.target.files[cfindex];
  16649. var credentials = {
  16650. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16651. secretAccessKey: "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",
  16652. }; //秘钥形式的登录上传
  16653. window.AWS.config.update(credentials);
  16654. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16655. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16656. var _this = this;
  16657. // _this.progress = 0;
  16658. _this.proVisible2 = true;
  16659. var b = [
  16660. "DOC",
  16661. "DOCX",
  16662. "DOCM",
  16663. "DOTM",
  16664. "DOTX",
  16665. "PPTX",
  16666. "PPSX",
  16667. "PPT",
  16668. "PPS",
  16669. "PPTM",
  16670. "POTM",
  16671. "PPAM",
  16672. "POTX",
  16673. "PPSM",
  16674. ];
  16675. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16676. var photoA = [
  16677. "BMP",
  16678. "GIF",
  16679. "PNG",
  16680. "JPEG",
  16681. "JPG",
  16682. "TIF",
  16683. "PCX",
  16684. "TGA",
  16685. "EXIF",
  16686. "FPX",
  16687. "SVG",
  16688. "APNG",
  16689. ];
  16690. if (
  16691. photoA.indexOf(
  16692. file.name
  16693. .split(".")
  16694. [file.name.split(".").length - 1].toLocaleUpperCase()
  16695. ) != -1 &&
  16696. type != 4
  16697. ) {
  16698. // const blob = await imageConversion.compress(file, 0.8)
  16699. file = await this.pngToWhiteBg(file);
  16700. const blob = await imageConversion.compressAccurately(file, 256);
  16701. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16702. file = new File([blob], file.name, { type: file.type });
  16703. }
  16704. if (file) {
  16705. var params = {
  16706. Key:
  16707. file.name.split(".")[0] +
  16708. new Date().getTime() +
  16709. "." +
  16710. file.name.split(".")[file.name.split(".").length - 1],
  16711. ContentType: file.type,
  16712. Body: file,
  16713. "Access-Control-Allow-Credentials": "*",
  16714. ACL: "public-read",
  16715. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16716. var options = {
  16717. // partSize: 2048 * 1024 * 1024,
  16718. partSize: 1024 * 1024 * 1024,
  16719. queueSize: 2,
  16720. leavePartsOnError: true,
  16721. };
  16722. bucket
  16723. .upload(params, options)
  16724. .on("httpUploadProgress", function (evt) {
  16725. //这里可以写进度条
  16726. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16727. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16728. })
  16729. .send(function (err, data) {
  16730. // _this.progress = 100;
  16731. cfindex2++;
  16732. setTimeout(() => {
  16733. if (
  16734. cfindex2 == event.target.files.length - 1 ||
  16735. cfindex2 > event.target.files.length - 1
  16736. ) {
  16737. _this.proVisible2 = false;
  16738. }
  16739. }, 1000);
  16740. if (err) {
  16741. var a = _this.$refs.upload1.uploadFiles;
  16742. a.splice(a.length - 1, a.length);
  16743. _this.$message.error("上传失败");
  16744. } else {
  16745. // _this.$message.success('上传成功')
  16746. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16747. var c = [
  16748. "AVI",
  16749. "NAVI",
  16750. "MPEG",
  16751. "ASF",
  16752. "MOV",
  16753. "WMV",
  16754. "3GP",
  16755. "RM",
  16756. "RMVB",
  16757. "FLV",
  16758. "F4V",
  16759. "H.264",
  16760. "H.265",
  16761. "REAL VIDEO",
  16762. "MKV",
  16763. "WebM",
  16764. "HDDVD",
  16765. "MP4",
  16766. "MPG",
  16767. "M4V",
  16768. "MGV",
  16769. "OGV",
  16770. "QTM",
  16771. "STR",
  16772. "AMC",
  16773. "DVX",
  16774. "EVO",
  16775. "DAT",
  16776. "OGG",
  16777. "OGM",
  16778. ];
  16779. if (type == 1) {
  16780. _this.studyJuri[0].cover.push({
  16781. name: file.name,
  16782. url: data.Location,
  16783. uid: file.uid,
  16784. });
  16785. if (
  16786. c.indexOf(
  16787. _this.studyJuri[0].cover[0].url
  16788. .split(".")
  16789. [
  16790. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16791. ].toLocaleUpperCase()
  16792. ) != -1
  16793. ) {
  16794. _this.fileType = 2;
  16795. } else if (
  16796. b.indexOf(
  16797. _this.studyJuri[0].cover[0].url
  16798. .split(".")
  16799. [
  16800. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16801. ].toLocaleUpperCase()
  16802. ) != -1
  16803. ) {
  16804. _this.fileType = 1;
  16805. } else {
  16806. _this.fileType = 0;
  16807. }
  16808. _this.imgChange(null, null, type);
  16809. } else if (type == 2) {
  16810. _this.upToolImg = data.Location;
  16811. _this.imgChange(null, null, type);
  16812. _this.addCourseWorks(i);
  16813. } else if (type == 4) {
  16814. _this.addPz("3", data.Location);
  16815. } else if (type == 5) {
  16816. _this.addImgDrawImG(data.Location);
  16817. } else if (type == 6) {
  16818. var _ftype = 1;
  16819. if (
  16820. c.indexOf(
  16821. data.Location.split(".")[
  16822. data.Location.split(".").length - 1
  16823. ].toLocaleUpperCase()
  16824. ) != -1
  16825. ) {
  16826. _ftype = 5;
  16827. } else if (
  16828. b.indexOf(
  16829. data.Location.split(".")[
  16830. data.Location.split(".").length - 1
  16831. ].toLocaleUpperCase()
  16832. ) != -1
  16833. ) {
  16834. _ftype = 4;
  16835. } else {
  16836. _ftype = 1;
  16837. }
  16838. _this.plworkFile.push({
  16839. name: file.name,
  16840. url: data.Location,
  16841. uid: file.uid,
  16842. fileType: _ftype,
  16843. username:
  16844. _this.plworkFile.length + 1 > 9
  16845. ? _this.plworkFile.length + 1
  16846. : "0" + (_this.plworkFile.length + 1),
  16847. });
  16848. }
  16849. _this.imgChange(null, null, type);
  16850. console.log(data.Location);
  16851. // _this.$message.success('上传成功'+data.Location)
  16852. }
  16853. });
  16854. }
  16855. }
  16856. },
  16857. beforeUpload2(event, type) {
  16858. var file = event.target.files[0];
  16859. var credentials = {
  16860. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16861. secretAccessKey: "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",
  16862. }; //秘钥形式的登录上传
  16863. window.AWS.config.update(credentials);
  16864. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16865. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16866. var _this = this;
  16867. _this.progress = 0;
  16868. _this.proVisible = true;
  16869. if (file) {
  16870. var params = {
  16871. Key:
  16872. file.name.split(".")[0] +
  16873. new Date().getTime() +
  16874. "." +
  16875. file.name.split(".")[file.name.split(".").length - 1],
  16876. ContentType: file.type,
  16877. Body: file,
  16878. "Access-Control-Allow-Credentials": "*",
  16879. ACL: "public-read",
  16880. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16881. var options = {
  16882. partSize: 2048 * 1024 * 1024,
  16883. queueSize: 2,
  16884. leavePartsOnError: true,
  16885. };
  16886. bucket
  16887. .upload(params, options)
  16888. .on("httpUploadProgress", function (evt) {
  16889. //这里可以写进度条
  16890. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16891. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16892. })
  16893. .send(function (err, data) {
  16894. _this.progress = 100;
  16895. setTimeout(() => {
  16896. _this.proVisible = false;
  16897. }, 1000);
  16898. if (err) {
  16899. var a = _this.$refs.upload1.uploadFiles;
  16900. a.splice(a.length - 1, a.length);
  16901. _this.$message.error("上传失败");
  16902. } else {
  16903. if (type == 2) {
  16904. _this.studyJuri[0].upVedio.push({
  16905. name: file.name,
  16906. url: data.Location,
  16907. uid: file.uid,
  16908. });
  16909. _this.imgChange(null, null, type);
  16910. } else if (type == 3) {
  16911. _this.studyJuri[0].upFile.push({
  16912. name: file.name,
  16913. url: data.Location,
  16914. uid: file.uid,
  16915. });
  16916. _this.imgChange(null, null, type);
  16917. }
  16918. console.log(data.Location);
  16919. }
  16920. });
  16921. }
  16922. },
  16923. allScrell() {
  16924. window.topU.postMessage({ allScreen: this.screenType }, "*");
  16925. },
  16926. nextOrpreSteps(t) {
  16927. if (this.IsFollow && this.tType == 2) {
  16928. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16929. return;
  16930. }
  16931. var b = this.chapInfoList.length - 1;
  16932. if (t == 0) {
  16933. if (this.courseType == 0) {
  16934. if (this.taskCount == 0) {
  16935. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16936. if (this.IsLookOpen) {
  16937. if (
  16938. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16939. ) {
  16940. if (
  16941. this.courseDetail.userid != this.userid &&
  16942. (!this.courseDetail.course_teacher ||
  16943. (this.courseDetail.course_teacher &&
  16944. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16945. ) {
  16946. this.$message.error("任务未解锁");
  16947. } else {
  16948. this.$message.error("上一任务未解锁");
  16949. }
  16950. return;
  16951. }
  16952. }
  16953. this.navList[this.courseType].isOpen = false;
  16954. this.courseType = b;
  16955. this.taskCount =
  16956. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16957. .length - 1;
  16958. this.navList[this.courseType].isOpen = true;
  16959. } else {
  16960. this.taskCount--;
  16961. }
  16962. } else {
  16963. if (this.taskCount == 0) {
  16964. this.navList[this.courseType].isOpen = false;
  16965. this.courseType--;
  16966. this.taskCount =
  16967. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16968. .length - 1;
  16969. this.navList[this.courseType].isOpen = true;
  16970. } else {
  16971. this.taskCount--;
  16972. }
  16973. }
  16974. } else {
  16975. if (this.courseType == b) {
  16976. if (
  16977. this.taskCount ==
  16978. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16979. 1
  16980. ) {
  16981. this.navList[this.courseType].isOpen = false;
  16982. this.courseType = 0;
  16983. this.taskCount = 0;
  16984. this.navList[this.courseType].isOpen = true;
  16985. } else {
  16986. var bbb = parseInt(this.taskCount) + 1;
  16987. if (
  16988. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16989. .isLook &&
  16990. this.courseDetail.userid != this.userid &&
  16991. (!this.courseDetail.course_teacher ||
  16992. (this.courseDetail.course_teacher &&
  16993. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16994. this.IsLookOpen
  16995. ) {
  16996. this.$message.error("任务未解锁");
  16997. return;
  16998. }
  16999. this.taskCount++;
  17000. if (this.IsLookOpen) {
  17001. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17002. this.taskCount
  17003. ].isLook = true;
  17004. this.addCourseState(3);
  17005. }
  17006. }
  17007. } else {
  17008. if (
  17009. this.taskCount ==
  17010. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  17011. 1
  17012. ) {
  17013. var bbb = parseInt(this.courseType) + 1;
  17014. if (
  17015. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  17016. this.courseDetail.userid != this.userid &&
  17017. (!this.courseDetail.course_teacher ||
  17018. (this.courseDetail.course_teacher &&
  17019. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  17020. this.IsLookOpen
  17021. ) {
  17022. this.$message.error("任务未解锁");
  17023. return;
  17024. }
  17025. this.navList[this.courseType].isOpen = false;
  17026. this.courseType++;
  17027. this.taskCount = 0;
  17028. this.navList[this.courseType].isOpen = true;
  17029. } else {
  17030. var bbb = parseInt(this.taskCount) + 1;
  17031. if (
  17032. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  17033. .isLook &&
  17034. this.courseDetail.userid != this.userid &&
  17035. (!this.courseDetail.course_teacher ||
  17036. (this.courseDetail.course_teacher &&
  17037. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  17038. this.IsLookOpen
  17039. ) {
  17040. this.$message.error("任务未解锁");
  17041. return;
  17042. }
  17043. this.taskCount++;
  17044. }
  17045. if (this.IsLookOpen) {
  17046. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17047. this.taskCount
  17048. ].isLook = true;
  17049. this.addCourseState(3);
  17050. }
  17051. }
  17052. // if (
  17053. // this.taskCount ==
  17054. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  17055. // ) {
  17056. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  17057. // } else {
  17058. // this.taskCount++;
  17059. // }
  17060. }
  17061. document.scrollingElement.scrollTop = 0;
  17062. // this.showType = 7;
  17063. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17064. // if (this.vedio[this.taskCount].length > 0) {
  17065. // var a =
  17066. // document.getElementsByClassName("box_course")[this.taskCount]
  17067. // .offsetHeight;
  17068. // document.getElementsByClassName("vedioList")[
  17069. // this.taskCount
  17070. // ].style.height = a + "px";
  17071. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  17072. // a - 40 + "px";
  17073. // }
  17074. this.isNoHomeWork = false;
  17075. (this.studyJuri = [
  17076. {
  17077. content: "",
  17078. cover: [],
  17079. upVedio: [],
  17080. upFile: [],
  17081. },
  17082. ]),
  17083. (this.radio = []);
  17084. this.isClickNav = "";
  17085. this.selectPz();
  17086. this.getHomeWork();
  17087. this.getCourseDetail(2);
  17088. this.$forceUpdate();
  17089. if ((this.courseDetail.userid == this.userid ||
  17090. (this.courseDetail.course_teacher &&
  17091. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  17092. this.setCTask();
  17093. }
  17094. },
  17095. openTask(s, n, i) {
  17096. if (this.IsFollow && this.tType == 2) {
  17097. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  17098. return;
  17099. }
  17100. if (this.IsLookOpen &&
  17101. this.courseDetail.userid != this.userid &&
  17102. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  17103. if (
  17104. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  17105. this.courseDetail.userid != this.userid &&
  17106. (!this.courseDetail.course_teacher ||
  17107. (this.courseDetail.course_teacher &&
  17108. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  17109. ) {
  17110. this.$message.error("任务未解锁");
  17111. return;
  17112. }
  17113. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  17114. if (
  17115. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  17116. .isLook
  17117. ) {
  17118. this.$message.error("上一任务未解锁");
  17119. return;
  17120. }
  17121. } else if (s > this.courseType) {
  17122. if (n > 0) {
  17123. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  17124. this.$message.error("上一任务未解锁");
  17125. return;
  17126. }
  17127. } else {
  17128. if (
  17129. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  17130. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  17131. ].isLook
  17132. ) {
  17133. this.$message.error("上一任务未解锁");
  17134. return;
  17135. }
  17136. }
  17137. }
  17138. }
  17139. if (this.navList[s].task[n].isOpen == true) {
  17140. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  17141. return;
  17142. }
  17143. let flag = this.courseType==s;
  17144. this.courseType = s;
  17145. this.navId = i;
  17146. this.taskCount = n;
  17147. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  17148. this.navList[this.courseType].task[this.taskCount].isOpen =
  17149. !this.navList[this.courseType].task[this.taskCount].isOpen;
  17150. if (this.IsLookOpen) {
  17151. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17152. this.taskCount
  17153. ].isLook = true;
  17154. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  17155. this.addCourseState(3,yym);
  17156. }
  17157. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  17158. this.isCloseList[ci].isClose = 0;
  17159. this.isCloseList[ci].isCloseBoolean = false;
  17160. this.$nextTick(()=>{
  17161. setTimeout(()=>{
  17162. setTimeout(()=>{
  17163. this.panToolHeight('tool-'+ci);
  17164. }, 0)
  17165. }, 0)
  17166. })
  17167. }
  17168. // this.showType = 7;
  17169. this.isNoHomeWork = false;
  17170. (this.studyJuri = [
  17171. {
  17172. content: "",
  17173. cover: [],
  17174. upVedio: [],
  17175. upFile: [],
  17176. },
  17177. ]),
  17178. (this.radio = []);
  17179. document.scrollingElement.scrollTop = 0;
  17180. // setTimeout(() => {
  17181. // let a = document.getElementById(i);
  17182. // if (a.offsetTop - 110 == 0) {
  17183. // window.scrollTo(0, 0);
  17184. // } else {
  17185. // window.scrollTo(0, a.offsetTop);
  17186. // }
  17187. // }, 0);
  17188. for (var z = 0; z < this.navList.length; z++) {
  17189. for (var q = 0; q < this.navList[z].task.length; q++) {
  17190. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  17191. this.navList[z].task[q].tool[w].isTool = false;
  17192. }
  17193. }
  17194. }
  17195. this.selectPz();
  17196. this.getHomeWork();
  17197. this.getCourseDetail(2);
  17198. if ((this.courseDetail.userid == this.userid ||
  17199. (this.courseDetail.course_teacher &&
  17200. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  17201. this.setCTask();
  17202. }
  17203. if(flag){
  17204. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  17205. }else{
  17206. 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>`)
  17207. }
  17208. },
  17209. get(i) {
  17210. if (this.IsFollow && this.tType == 2) {
  17211. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  17212. return;
  17213. }
  17214. // for(var k=0;k<this.navList.length;k++){
  17215. // this.navList[k].isOpen = false;
  17216. // }
  17217. // this.navList[i].isOpen = true;
  17218. this.navList[i].isOpen = !this.navList[i].isOpen;
  17219. if (this.navList[i].isOpen) {
  17220. this.openTask(i, 0, i + "-0");
  17221. }
  17222. },
  17223. addQuestion() {
  17224. this.answerList.push({
  17225. answerTitle: this.answerQ,
  17226. answer: this.questionAnswer,
  17227. });
  17228. let params = [
  17229. {
  17230. uid: this.userid,
  17231. cid: this.id,
  17232. stage: this.courseType,
  17233. task: this.taskCount,
  17234. tool: this.toolindex,
  17235. content: JSON.stringify(this.answerList),
  17236. type: 3,
  17237. },
  17238. ];
  17239. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17240. this.homeWorkLoading = true
  17241. this.ajax
  17242. .post(this.$store.state.api + "addCourseWorks", params)
  17243. .then((res) => {
  17244. this.$message({
  17245. message: "提交成功",
  17246. type: "success",
  17247. });
  17248. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, "success")
  17249. setTimeout(() => {
  17250. this.homeWorkLoading = false
  17251. }, 500);
  17252. this.answerList = [];
  17253. this.answerDialogVisible = false;
  17254. this.selectStudent();
  17255. this.selectSWorks();
  17256. this.selectSLook();
  17257. })
  17258. .catch((err) => {
  17259. this.$message.error("提交失败");
  17260. console.error(err);
  17261. setTimeout(() => {
  17262. this.homeWorkLoading = false
  17263. }, 500);
  17264. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
  17265. });
  17266. },
  17267. addQuestionTeacher() {
  17268. this.answerList.push({
  17269. answerTitle: this.answerQ,
  17270. answer: this.questionAnswer,
  17271. });
  17272. let params = [
  17273. {
  17274. uid: this.sStudent.userid,
  17275. cid: this.id,
  17276. stage: this.courseType,
  17277. task: this.taskCount,
  17278. tool: this.toolindex,
  17279. content: JSON.stringify(this.answerList),
  17280. type: 3,
  17281. ateacher: this.userid,
  17282. },
  17283. ];
  17284. this.ajax
  17285. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  17286. .then((res) => {
  17287. this.$message({
  17288. message: "提交成功",
  17289. type: "success",
  17290. });
  17291. this.answerList = [];
  17292. this.questionAnswer = "";
  17293. this.answerDialogVisibleTeacher = false;
  17294. this.selectStudent();
  17295. this.selectSWorks();
  17296. this.selectSLook();
  17297. })
  17298. .catch((err) => {
  17299. this.$message.error("提交失败");
  17300. console.error(err);
  17301. });
  17302. },
  17303. refreshCourse() {
  17304. // window.location.reload();
  17305. this.navList = [];
  17306. this.getCourseDetail(1);
  17307. },
  17308. getCourseDetail(type, gindex) {
  17309. let loading;
  17310. if (type != 2) {
  17311. loading = this.$loading.service({
  17312. background: "rgba(255, 255, 255, 0.7)",
  17313. target: document.querySelector(".student_table"),
  17314. });
  17315. }
  17316. this.downLoading = false
  17317. // this.navList[0].isOpen = false;
  17318. // this.navList[this.courseType].isOpen = true;
  17319. // this.courseType = this.courseTypeLine;
  17320. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17321. let params = {
  17322. courseId: this.id,
  17323. };
  17324. this.ajax
  17325. .get(this.$store.state.api + "selectCourseDetail3", params)
  17326. .then((res) => {
  17327. if ((this.courseDetail.userid == this.userid ||
  17328. (this.courseDetail.course_teacher &&
  17329. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  17330. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  17331. }
  17332. if (type != 2) {
  17333. loading.close();
  17334. if (
  17335. this.courseType >
  17336. JSON.parse(res.data[0][0].chapters).length - 1
  17337. ) {
  17338. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  17339. }
  17340. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17341. .chapterInfo[0].taskJson;
  17342. var b = [
  17343. "AVI",
  17344. "NAVI",
  17345. "MPEG",
  17346. "ASF",
  17347. "MOV",
  17348. "WMV",
  17349. "3GP",
  17350. "RM",
  17351. "RMVB",
  17352. "FLV",
  17353. "F4V",
  17354. "H.264",
  17355. "H.265",
  17356. "REAL VIDEO",
  17357. "MKV",
  17358. "WebM",
  17359. "HDDVD",
  17360. "MP4",
  17361. "MPG",
  17362. "M4V",
  17363. "MGV",
  17364. "OGV",
  17365. "QTM",
  17366. "STR",
  17367. "AMC",
  17368. "DVX",
  17369. "EVO",
  17370. "DAT",
  17371. "OGG",
  17372. "OGM",
  17373. "MP3",
  17374. ];
  17375. let _chapterData = [];
  17376. for (var i = 0; i < a.length; i++) {
  17377. var c = a[i].chapterData;
  17378. this.vedio[i] = [];
  17379. this.textList[i] = [];
  17380. this.lineList[i] = [];
  17381. this.chapToolList[i] = [];
  17382. this.file[i] = [];
  17383. this.fileC[i] = [];
  17384. _chapterData[i] = c.filter((el) => {
  17385. return el.type != 12;
  17386. });
  17387. this.fileC[i] = c.filter((el) => {
  17388. return el.type == 12;
  17389. });
  17390. if (this.tType == 2) {
  17391. if (this.fileC[i].length) {
  17392. let yym1 = this.fileC[i].filter(e=>{
  17393. if(!converter(e.name).includes(converter("教案"))){
  17394. return e
  17395. }
  17396. })
  17397. this.fileC[i] = yym1
  17398. }
  17399. }
  17400. // else if (c[j].type == 12) {
  17401. // this.fileC[i].push(c[j]);
  17402. // }
  17403. for (var j = 0; j < c.length; j++) {
  17404. if (c[j].type == 7) {
  17405. this.chapToolList[i].push(c[j]);
  17406. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  17407. this.lineList[i].push(c[j]);
  17408. } else if (c[j].type == 6) {
  17409. this.textList[i].push(c[j]);
  17410. } else {
  17411. if (
  17412. b.indexOf(
  17413. c[j].url
  17414. .split(".")
  17415. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17416. ) != -1
  17417. ) {
  17418. this.vedio[i].push(c[j]);
  17419. } else {
  17420. this.file[i].push(c[j]);
  17421. }
  17422. }
  17423. }
  17424. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17425. d.sources[0].src =
  17426. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17427. this.playerO[i] = d;
  17428. }
  17429. this.courseDetail = res.data[0][0];
  17430. if(this.tType == 2){
  17431. this.tcid = this.arrayToArray(
  17432. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17433. this.classId ? this.classId.split(",") : []
  17434. ).join(",");
  17435. }else{
  17436. this.tcid = this.arrayToArray(
  17437. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17438. this.tcid2 ? this.tcid2.split(",") : []
  17439. ).join(",");
  17440. }
  17441. this.evalua = res.data[0][0].evaId;
  17442. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  17443. this.courseType
  17444. ];
  17445. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17446. if (this.tcid && res.data[1].length) {
  17447. let _inviteA = [];
  17448. for (var ik = 0; ik < res.data[1].length; ik++) {
  17449. _inviteA.push({
  17450. cid: res.data[1][ik].classid,
  17451. ic: res.data[1][ik].code,
  17452. });
  17453. }
  17454. for (var ik = 0; ik < _inviteA.length; ik++) {
  17455. if (
  17456. this.arrayToArray(
  17457. _inviteA[ik].cid.split(","),
  17458. this.tcid.split(",")
  17459. ).length
  17460. ) {
  17461. this.inviteCode = _inviteA[ik].ic;
  17462. break;
  17463. }
  17464. }
  17465. }
  17466. for (var l = 0; l < this.chapInfoList.length; l++) {
  17467. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17468. for (var m = 0; m < w.length; m++) {
  17469. w[m].id = l + "-" + m;
  17470. }
  17471. }
  17472. let taskCount = 0;
  17473. if (
  17474. _chapterData[taskCount].length &&
  17475. _chapterData[taskCount][0].type == 2
  17476. ) {
  17477. this.showType = 0;
  17478. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  17479. } else {
  17480. if (_chapterData[taskCount].length > 0) {
  17481. let _url = _chapterData[taskCount][0].url;
  17482. if (
  17483. _chapterData[taskCount][0].type == 8 ||
  17484. _chapterData[taskCount][0].type == 14 ||
  17485. _chapterData[taskCount][0].type == 15
  17486. ) {
  17487. this.showType = 2;
  17488. if (
  17489. _url.indexOf("https://") == -1 &&
  17490. _url.indexOf("http://") == -1
  17491. ) {
  17492. _url = "https://" + _url;
  17493. }
  17494. this.pptImgUrl1 = _url;
  17495. } else if (_chapterData[taskCount][0].type == 3) {
  17496. if (
  17497. _url
  17498. .split(".")
  17499. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17500. ) {
  17501. this.showType = 3;
  17502. this.pptImgUrl1 = _url;
  17503. } else if (
  17504. this.isAssetTypeAnImage(
  17505. _url
  17506. .split(".")
  17507. [_url.split(".").length - 1].toLocaleLowerCase()
  17508. )
  17509. ) {
  17510. this.showType = 4;
  17511. this.pptImgUrl1 = _url;
  17512. } else {
  17513. this.showType = 2;
  17514. this.pptImgUrl1 =
  17515. "https://view.officeapps.live.com/op/view.aspx?src=" +
  17516. encodeURIComponent(_url);
  17517. }
  17518. } else if (_chapterData[taskCount][0].type == 13) {
  17519. this.showType = 4;
  17520. this.pptImgUrl1 = _url;
  17521. } else if (_chapterData[taskCount][0].type == 6) {
  17522. this.showType = 1;
  17523. this.text = this.textList[taskCount][0];
  17524. } else if (_chapterData[taskCount][0].type == 16) {
  17525. this.showType = 16;
  17526. this.pptImgUrl1 = _url;
  17527. } else if (_chapterData[taskCount][0].type == 17) {
  17528. this.showType = 16;
  17529. this.pptImgUrl1 = _url;
  17530. }
  17531. }
  17532. }
  17533. this.isClickNav = 0;
  17534. if (
  17535. !_chapterData[taskCount].length ||
  17536. _chapterData[taskCount][0].type == 12
  17537. ) {
  17538. this.isClickNav = "";
  17539. this.showType = "";
  17540. }
  17541. if (this.tType == 2) {
  17542. _chapterData.forEach((e,i)=>{
  17543. if (e.length) {
  17544. let yym = e.filter(k=>{
  17545. if(!converter(k.name).includes(converter("教案"))){
  17546. return k
  17547. }
  17548. })
  17549. _chapterData[i] = yym
  17550. }
  17551. })
  17552. }
  17553. this.vChapterData = _chapterData;
  17554. } else {
  17555. // this.showType = 0;
  17556. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17557. .chapterInfo[0].taskJson;
  17558. var b = [
  17559. "AVI",
  17560. "NAVI",
  17561. "MPEG",
  17562. "ASF",
  17563. "MOV",
  17564. "WMV",
  17565. "3GP",
  17566. "RM",
  17567. "RMVB",
  17568. "FLV",
  17569. "F4V",
  17570. "H.264",
  17571. "H.265",
  17572. "REAL VIDEO",
  17573. "MKV",
  17574. "WebM",
  17575. "HDDVD",
  17576. "MP4",
  17577. "MPG",
  17578. "M4V",
  17579. "MGV",
  17580. "OGV",
  17581. "QTM",
  17582. "STR",
  17583. "AMC",
  17584. "DVX",
  17585. "EVO",
  17586. "DAT",
  17587. "OGG",
  17588. "OGM",
  17589. "MP3",
  17590. ];
  17591. let _chapterData = [];
  17592. for (var i = 0; i < a.length; i++) {
  17593. var c = a[i].chapterData;
  17594. this.vedio[i] = [];
  17595. this.textList[i] = [];
  17596. this.lineList[i] = [];
  17597. this.chapToolList[i] = [];
  17598. this.file[i] = [];
  17599. this.fileC[i] = [];
  17600. _chapterData[i] = c.filter((el) => {
  17601. return el.type != 12;
  17602. });
  17603. this.fileC[i] = c.filter((el) => {
  17604. return el.type == 12;
  17605. });
  17606. if (this.tType == 2) {
  17607. if (this.fileC[i].length) {
  17608. let yym1 = this.fileC[i].filter(e=>{
  17609. if(!converter(e.name).includes(converter("教案"))){
  17610. return e
  17611. }
  17612. })
  17613. this.fileC[i] = yym1
  17614. }
  17615. }
  17616. for (var j = 0; j < c.length; j++) {
  17617. if (c[j].type == 7) {
  17618. this.chapToolList[i].push(c[j]);
  17619. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  17620. this.lineList[i].push(c[j]);
  17621. } else if (c[j].type == 6) {
  17622. this.textList[i].push(c[j]);
  17623. } else {
  17624. if (
  17625. b.indexOf(
  17626. c[j].url
  17627. .split(".")
  17628. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17629. ) != -1
  17630. ) {
  17631. this.vedio[i].push(c[j]);
  17632. } else {
  17633. this.file[i].push(c[j]);
  17634. }
  17635. }
  17636. }
  17637. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17638. d.sources[0].src =
  17639. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17640. this.playerO[i] = d;
  17641. }
  17642. let taskCount = 0;
  17643. if (
  17644. _chapterData[taskCount].length &&
  17645. _chapterData[taskCount][0].type == 2
  17646. ) {
  17647. // this.showType = 0;
  17648. // this.pptImgUrl1 = _chapterData[taskCount][0].url;
  17649. } else {
  17650. if (_chapterData[taskCount].length > 0) {
  17651. let _url = _chapterData[taskCount][0].url;
  17652. if (
  17653. _chapterData[taskCount][0].type == 8 ||
  17654. _chapterData[taskCount][0].type == 14||
  17655. _chapterData[taskCount][0].type == 15
  17656. ) {
  17657. // this.showType = 2;
  17658. if (
  17659. _url.indexOf("https://") == -1 &&
  17660. _url.indexOf("http://") == -1
  17661. ) {
  17662. _url = "https://" + _url;
  17663. }
  17664. // this.pptImgUrl1 = _url;
  17665. } else if (_chapterData[taskCount][0].type == 3) {
  17666. if (
  17667. _url
  17668. .split(".")
  17669. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17670. ) {
  17671. // this.showType = 3;
  17672. // this.pptImgUrl1 = _url;
  17673. } else if (
  17674. this.isAssetTypeAnImage(
  17675. _url
  17676. .split(".")
  17677. [_url.split(".").length - 1].toLocaleLowerCase()
  17678. )
  17679. ) {
  17680. // this.showType = 4;
  17681. // this.pptImgUrl1 = _url;
  17682. } else {
  17683. // this.showType = 2;
  17684. // this.pptImgUrl1 =
  17685. // "https://view.officeapps.live.com/op/view.aspx?src=" +
  17686. // encodeURIComponent(_url);
  17687. }
  17688. } else if (_chapterData[taskCount][0].type == 13) {
  17689. // this.showType = 4;
  17690. // this.pptImgUrl1 = _url;
  17691. } else if (_chapterData[taskCount][0].type == 6) {
  17692. this.showType = 1;
  17693. this.text = this.textList[taskCount][0];
  17694. } else if (_chapterData[taskCount][0].type == 16) {
  17695. this.showType = 16;
  17696. this.pptImgUrl1 = _url;
  17697. } else if (_chapterData[taskCount][0].type == 17) {
  17698. this.showType = 16;
  17699. this.pptImgUrl1 = _url;
  17700. }
  17701. }
  17702. }
  17703. this.isClickNav = 0;
  17704. if (
  17705. !_chapterData[taskCount].length ||
  17706. _chapterData[taskCount][0].type == 12
  17707. ) {
  17708. this.isClickNav = "";
  17709. // this.showType = "";
  17710. }
  17711. if (this.tType == 2) {
  17712. _chapterData.forEach((e,i)=>{
  17713. if (e.length) {
  17714. let yym = e.filter(k=>{
  17715. if(!converter(k.name).includes(converter("教案"))){
  17716. return k
  17717. }
  17718. })
  17719. _chapterData[i] = yym
  17720. }
  17721. })
  17722. }
  17723. this.vChapterData = _chapterData;
  17724. this.$forceUpdate();
  17725. }
  17726. // else {
  17727. // this.courseDetail = res.data[0][0];
  17728. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17729. // }
  17730. // 判断进入课程是否是创建老师,如果去创建老师,就自动开启下面两个按钮
  17731. if (type == 10) {
  17732. console.log('this.courseDetail.userid',this.courseDetail.userid);
  17733. console.log('this.userid',this.userid);
  17734. if (this.courseDetail.userid == this.userid) {
  17735. // 开局关闭学生查看内容
  17736. this.StulookMode(true)
  17737. // 开局打开跟随模式
  17738. this.followingMode(true)
  17739. }
  17740. }
  17741. let _this = this;
  17742. if (_this.timer) {
  17743. clearInterval(_this.timer);
  17744. _this.timer = null;
  17745. }
  17746. if (_this.tcid) {
  17747. _this.getCourseGroup(gindex);
  17748. } else {
  17749. _this.selectSWorks(gindex);
  17750. }
  17751. _this.selectStudent();
  17752. _this.selectSLook();
  17753. _this.getPick();
  17754. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17755. // _this.setCTask();
  17756. // }
  17757. if (_this.dialogVisibleGroup) {
  17758. _this.groupJson =
  17759. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17760. _this.taskCount
  17761. ].toolChoose[_this.toolindex].groupJson;
  17762. }
  17763. _this.$nextTick(() => {
  17764. setTimeout(() => {
  17765. _this.checkEva();
  17766. }, 1000);
  17767. });
  17768. _this.timer = setInterval(function () {
  17769. // _this.getCourseDetail(2);
  17770. if (_this.tcid) {
  17771. _this.getCourseGroup();
  17772. } else {
  17773. _this.selectSWorks();
  17774. }
  17775. _this.selectStudent();
  17776. _this.selectSLook();
  17777. _this.getPick();
  17778. // _this.getSplitScreenData();//获取分屏数据
  17779. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17780. // _this.setCTask();
  17781. // }
  17782. if (_this.dialogVisibleGroup) {
  17783. _this.groupJson =
  17784. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17785. _this.taskCount
  17786. ].toolChoose[_this.toolindex].groupJson;
  17787. }
  17788. if (_this.tType == 4 || _this.ispzType == 4) {
  17789. _this.selectPz();
  17790. }
  17791. }, 5000);
  17792. if (_this.timer2 == null) {
  17793. _this.timer2 = setInterval(()=> {
  17794. _this.getSplitScreenData();//获取分屏数据
  17795. }, 5000);
  17796. }
  17797. _this.$nextTick(function () {
  17798. setTimeout(() => {
  17799. // var a =
  17800. // document.getElementsByClassName("box_course")[0].offsetHeight;
  17801. // document.getElementsByClassName("vedioList")[0].style.height =
  17802. // a + "px";
  17803. // document.getElementsByClassName("navBox")[0].style.height =
  17804. // a - 40 + "px";
  17805. // if (_this.vedio[_this.taskCount].length > 0) {
  17806. // _this.vedioTime = [];
  17807. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17808. // _this.vedioTime[i] = document.getElementsByClassName(
  17809. // "vjs-duration-display"
  17810. // )[i].textContent;
  17811. // }
  17812. // }
  17813. }, 1000);
  17814. });
  17815. })
  17816. .catch((err) => {
  17817. loading.close();
  17818. console.error(err);
  17819. });
  17820. },
  17821. getCourseGroup(gindex) {
  17822. if(this.getCourseGroupLoading) return
  17823. this.getCourseGroupLoading = true
  17824. let params = {
  17825. cid: this.id,
  17826. classid: this.tcid ? this.tcid : "1",
  17827. };
  17828. this.ajax
  17829. .get(this.$store.state.api + "getCourseGroup", params)
  17830. .then((res) => {
  17831. if (res.data && res.data[0].length) {
  17832. if (!this.isGroup) {
  17833. let courseGroup = JSON.parse(res.data[0][0].group);
  17834. courseGroup.group = courseGroup.group.filter((el) => {
  17835. el.works = [];
  17836. return el;
  17837. });
  17838. if (courseGroup.isopen == 2) {
  17839. this.isGroup = false;
  17840. this.selectSWorks(gindex);
  17841. return;
  17842. }
  17843. this.courseGroup = courseGroup;
  17844. let groupPerson = res.data[1];
  17845. let group = JSON.parse(res.data[0][0].group).group;
  17846. let courseGroupStudent = {};
  17847. let courseGroupStudentUid = {};
  17848. for (var i = 0; i < group.length; i++) {
  17849. courseGroupStudent[group[i].id] = [];
  17850. courseGroupStudentUid[group[i].id] = [];
  17851. for (var j = 0; j < groupPerson.length; j++) {
  17852. if (groupPerson[j].groupCid == group[i].id) {
  17853. courseGroupStudent[group[i].id].push(groupPerson[j]);
  17854. courseGroupStudentUid[group[i].id].push(
  17855. groupPerson[j].userid
  17856. );
  17857. }
  17858. }
  17859. }
  17860. this.courseGroupStudent = courseGroupStudent;
  17861. this.courseGroupStudentUid = courseGroupStudentUid;
  17862. }
  17863. if (this.courseGroup.isopen == 2) {
  17864. this.isGroup = false;
  17865. } else {
  17866. this.isGroup = true;
  17867. }
  17868. this.selectSWorks(gindex);
  17869. } else {
  17870. this.selectSWorks(gindex);
  17871. this.isGroup = false;
  17872. }
  17873. this.getCourseGroupLoading = false
  17874. })
  17875. .catch((err) => {
  17876. this.getCourseGroupLoading = false
  17877. // this.$message.error("网络不佳");
  17878. console.error(err);
  17879. });
  17880. },
  17881. setOperationTime() {
  17882. let _this = this;
  17883. if (_this.opertimer) {
  17884. clearInterval(_this.opertimer);
  17885. _this.opertimer = null;
  17886. }
  17887. _this.opertimer = setInterval(() => {
  17888. _this.setoTime("600");
  17889. }, 600000);
  17890. },
  17891. setoTime(time) {
  17892. let params = [
  17893. {
  17894. uid: this.userid,
  17895. cid: this.id,
  17896. type: "2",
  17897. time: time,
  17898. },
  17899. ];
  17900. this.ajax
  17901. .post(this.$store.state.api + "addOperationTimeT2", params)
  17902. .then((res) => {})
  17903. .catch((err) => {
  17904. console.error(err);
  17905. });
  17906. },
  17907. addPz(type, content) {
  17908. if (type == "1" && this.pzConText == "") {
  17909. this.$message.error("评论不能为空!");
  17910. return;
  17911. }
  17912. let params = [
  17913. {
  17914. cid: this.id,
  17915. uid: this.userid,
  17916. s: this.courseType,
  17917. t: this.taskCount,
  17918. c: type == "1" ? this.pzConText : content,
  17919. type: type,
  17920. },
  17921. ];
  17922. this.ajax
  17923. .post(this.$store.state.api + "addPz2", params)
  17924. .then((res) => {
  17925. this.$message({
  17926. message: "添加成功",
  17927. type: "success",
  17928. });
  17929. this.pzConText = "";
  17930. this.addPzDialog = false;
  17931. this.selectPz();
  17932. if(this.tType!=2){
  17933. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  17934. }
  17935. })
  17936. .catch((err) => {
  17937. this.$message.error("添加失败");
  17938. console.error(err);
  17939. });
  17940. },
  17941. setReplyIndex(id, i) {
  17942. this.replyIndex = i;
  17943. this.replyPid = id;
  17944. this.replyDialogVisible = true;
  17945. },
  17946. addHf() {
  17947. if (this.reply == "") {
  17948. this.$message.error("回复不能为空!");
  17949. return;
  17950. }
  17951. let params = [
  17952. {
  17953. cid: this.id,
  17954. uid: this.userid,
  17955. s: this.courseType,
  17956. t: this.taskCount,
  17957. type: "1",
  17958. ct: 2,
  17959. pid: this.replyPid,
  17960. c: this.reply,
  17961. },
  17962. ];
  17963. this.ajax
  17964. .post(this.$store.state.api + "addHf", params)
  17965. .then((res) => {
  17966. this.reply = "";
  17967. this.$message({
  17968. message: "回复成功",
  17969. type: "success",
  17970. });
  17971. this.replyDialogVisible = false;
  17972. this.selectPz();
  17973. })
  17974. .catch((err) => {
  17975. this.$message.error("回复失败");
  17976. console.error(err);
  17977. });
  17978. },
  17979. deletePz(id) {
  17980. this.$confirm("确定删除此评论吗?", "提示", {
  17981. confirmButtonText: "确定",
  17982. cancelButtonText: "取消",
  17983. type: "warning",
  17984. })
  17985. .then(() => {
  17986. let params = [
  17987. {
  17988. id: id,
  17989. },
  17990. ];
  17991. this.ajax
  17992. .post(this.$store.state.api + "deletePz", params)
  17993. .then((res) => {
  17994. this.$message({
  17995. message: "删除成功",
  17996. type: "success",
  17997. });
  17998. this.selectPz();
  17999. })
  18000. .catch((err) => {
  18001. this.$message.error("网络异常");
  18002. console.error(err);
  18003. });
  18004. })
  18005. .catch(() => {});
  18006. },
  18007. deleteReply(id) {
  18008. this.$confirm("确定删除此回复吗?", "提示", {
  18009. confirmButtonText: "确定",
  18010. cancelButtonText: "取消",
  18011. type: "warning",
  18012. })
  18013. .then(() => {
  18014. let params = [
  18015. {
  18016. id: id,
  18017. },
  18018. ];
  18019. this.ajax
  18020. .post(this.$store.state.api + "deleteReply", params)
  18021. .then((res) => {
  18022. this.$message({
  18023. message: "删除成功",
  18024. type: "success",
  18025. });
  18026. this.selectPz();
  18027. })
  18028. .catch((err) => {
  18029. this.$message.error("网络异常");
  18030. console.error(err);
  18031. });
  18032. })
  18033. .catch(() => {});
  18034. },
  18035. setPz() {
  18036. if (this.ispzType == 4) {
  18037. this.ispzType = 0;
  18038. this.pzDialog = false;
  18039. return;
  18040. }
  18041. this.ispzType = 4;
  18042. this.pzDialog = true;
  18043. this.selectPz();
  18044. },
  18045. selectPz() {
  18046. if(this.selectPzLoading) return
  18047. this.selectPzLoading = true
  18048. let params = {
  18049. cid: this.id,
  18050. s: this.courseType,
  18051. t: this.taskCount,
  18052. type: this.pzStype,
  18053. uid: this.userid,
  18054. };
  18055. this.ajax
  18056. .get(this.$store.state.api + "selectPzListType", params)
  18057. .then((res) => {
  18058. this.pzList = res.data[0];
  18059. var a = res.data[1];
  18060. for (var i = 0; i < a.length; i++) {
  18061. for (var j = 0; j < this.pzList.length; j++) {
  18062. if (!this.pzList[j].hfList) {
  18063. this.pzList[j].hfList = [];
  18064. }
  18065. if (a[i].pid == this.pzList[j].id) {
  18066. this.pzList[j].hfList.push(a[i]);
  18067. }
  18068. }
  18069. }
  18070. this.selectPzLoading = false
  18071. })
  18072. .catch((err) => {
  18073. this.selectPzLoading = false
  18074. console.error(err);
  18075. });
  18076. },
  18077. // selectHf() {
  18078. // let params = {
  18079. // cid: this.id,
  18080. // s: this.courseType,
  18081. // t: this.taskCount,
  18082. // };
  18083. // this.ajax
  18084. // .get(this.$store.state.api + "selectHfList", params)
  18085. // .then((res) => {
  18086. // var a = res.data[0];
  18087. // for (var i = 0; i < a.length; i++) {
  18088. // for (var j = 0; j < this.pzList.length; j++) {
  18089. // if (!this.pzList[i].hfList) {
  18090. // this.pzList[i].hfList = [];
  18091. // }
  18092. // if (a[i].pid == this.pzList[j].id) {
  18093. // this.pzList[i].hfList.push(a[i]);
  18094. // }
  18095. // }
  18096. // }
  18097. // })
  18098. // .catch((err) => {
  18099. // console.error(err);
  18100. // });
  18101. // },
  18102. updateSLook() {
  18103. let params = {
  18104. sopen: this.sIsOpen == false ? 1 : 2,
  18105. cid: this.id,
  18106. };
  18107. this.ajax
  18108. .get(this.$store.state.api + "updateCourseSLook", params)
  18109. .then((res) => {
  18110. if (this.sIsOpen == true) {
  18111. this.$message({
  18112. message: "权限设置成功",
  18113. type: "success",
  18114. });
  18115. } else {
  18116. this.$message({
  18117. message: "权限关闭成功",
  18118. type: "success",
  18119. });
  18120. }
  18121. })
  18122. .catch((err) => {
  18123. console.error(err);
  18124. });
  18125. },
  18126. updateIsStulook(){
  18127. let params = [
  18128. {
  18129. sopen: this.IsStulook == false ? 2 : 1,
  18130. cid: this.id
  18131. }
  18132. ];
  18133. this.ajax
  18134. .post(this.$store.state.api + "updateCourseStulook", params)
  18135. .then(res => {
  18136. if (this.IsStulook == true) {
  18137. this.$message({
  18138. message: "学生查看内容资料权限已开启",
  18139. type: "success"
  18140. });
  18141. } else {
  18142. this.$message({
  18143. message: "关闭学生查看内容资料权限",
  18144. type: "success"
  18145. });
  18146. }
  18147. // this.setCTask();
  18148. })
  18149. .catch(err => {
  18150. console.error(err);
  18151. });
  18152. },
  18153. updateFollow() {
  18154. let params = [
  18155. {
  18156. sopen: this.IsFollow == false ? 1 : 2,
  18157. cid: this.id,
  18158. },
  18159. ];
  18160. this.ajax
  18161. .post(this.$store.state.api + "updateCourseFollow", params)
  18162. .then((res) => {
  18163. if (this.IsFollow == true) {
  18164. this.$message({
  18165. message: "跟随模式已开启",
  18166. type: "success",
  18167. });
  18168. } else {
  18169. this.$message({
  18170. message: "跟随模式已关闭",
  18171. type: "success",
  18172. });
  18173. }
  18174. this.setCTask();
  18175. })
  18176. .catch((err) => {
  18177. console.error(err);
  18178. });
  18179. },
  18180. setCTask() {
  18181. let params = [
  18182. {
  18183. sopen: this.courseType + "-" + this.taskCount,
  18184. cid: this.id,
  18185. },
  18186. ];
  18187. this.ajax
  18188. .post(this.$store.state.api + "updateCourseFollowC", params)
  18189. .then((res) => {})
  18190. .catch((err) => {
  18191. console.error(err);
  18192. });
  18193. },
  18194. updateLookOpen() {
  18195. let params = [
  18196. {
  18197. sopen: this.IsLookOpen == false ? 1 : 2,
  18198. cid: this.id,
  18199. },
  18200. ];
  18201. this.ajax
  18202. .post(this.$store.state.api + "updateCourseLookOpen", params)
  18203. .then((res) => {
  18204. if (this.IsLookOpen == true) {
  18205. // if (this.courseType != 0 && this.taskCount != 0) {
  18206. // this.openTask(0, 0, "0-0");
  18207. // }
  18208. this.$message({
  18209. message: "权限设置成功",
  18210. type: "success",
  18211. });
  18212. } else {
  18213. this.$message({
  18214. message: "权限关闭成功",
  18215. type: "success",
  18216. });
  18217. }
  18218. this.getCourseState(2);
  18219. })
  18220. .catch((err) => {
  18221. console.error(err);
  18222. });
  18223. },
  18224. selectSLook() {
  18225. if(this.selectSLookLoading) return
  18226. this.selectSLookLoading = true
  18227. let params = {
  18228. cid: this.id,
  18229. };
  18230. this.ajax
  18231. .get(this.$store.state.api + "selectCourseSLook", params)
  18232. .then((res) => {
  18233. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  18234. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  18235. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  18236. this.IsStulook = res.data[0][0].isStulook == 2 ? false : true;
  18237. if (!this.IsLookOpen) {
  18238. this.setNavList();
  18239. }else {
  18240. this.getCourseState(1);
  18241. }
  18242. if ((this.IsFollow && this.tType == 2)) {
  18243. this.setContent2(false);
  18244. let _followC = res.data[0][0].followC.split("-");
  18245. if (
  18246. this.courseType != _followC[0] ||
  18247. this.taskCount != _followC[1]
  18248. ) {
  18249. this.navList[this.courseType].isOpen = false;
  18250. this.courseType = _followC[0];
  18251. this.navList[this.courseType].isOpen = true;
  18252. this.taskCount = parseInt(_followC[1]);
  18253. this.navId = res.data[0][0].followC;
  18254. document.scrollingElement.scrollTop = 0;
  18255. this.getCourseDetail(2);
  18256. }
  18257. }
  18258. this.selectSLookLoading = false
  18259. })
  18260. .catch((err) => {
  18261. this.selectSLookLoading = false
  18262. console.error(err);
  18263. });
  18264. },
  18265. setNavList() {
  18266. if (this.navList.length == 0) {
  18267. this.navList = [];
  18268. var copyList = [];
  18269. for (var l = 0; l < this.chapInfoList.length; l++) {
  18270. var q = this.chapInfoList[l].dyName;
  18271. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18272. var e;
  18273. copyList.push({
  18274. dyName: q,
  18275. isOpen: l === 0 ? true : false,
  18276. task: [],
  18277. });
  18278. for (var r = 0; r < w.length; r++) {
  18279. e = w[r].task;
  18280. if (this.chapInfoList[l].easy == 1) {
  18281. copyList[l].task.push({
  18282. taskName: q,
  18283. id: l + "-" + r,
  18284. isLook: w[r].isLook,
  18285. isOpen: r === 0 ? true : false,
  18286. tool: [],
  18287. });
  18288. } else {
  18289. copyList[l].task.push({
  18290. taskName: e,
  18291. id: l + "-" + r,
  18292. isLook: w[r].isLook,
  18293. isOpen: r === 0 ? true : false,
  18294. tool: [],
  18295. });
  18296. }
  18297. var t = w[r].toolChoose;
  18298. for (var k = 0; k < t.length; k++) {
  18299. var tool = t[k].tool[0];
  18300. copyList[l].task[r].tool.push({
  18301. tool: tool,
  18302. isTool: false,
  18303. });
  18304. }
  18305. // this.navId = this.navId ? this.navId : l + "-" + r;
  18306. // this.navId = l + "-" + r;
  18307. }
  18308. }
  18309. this.navList = copyList;
  18310. this.navList[0].isOpen = false;
  18311. this.navList[this.courseType].isOpen = true;
  18312. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  18313. } else {
  18314. this.setNavList2();
  18315. }
  18316. },
  18317. setNavList2() {
  18318. for (var l = 0; l < this.chapInfoList.length; l++) {
  18319. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18320. for (var r = 0; r < w.length; r++) {
  18321. this.navList[l].task[r].isLook = w[r].isLook;
  18322. }
  18323. }
  18324. if (
  18325. this.IsLookOpen &&
  18326. !this.navList[this.courseType].task[this.taskCount].isLook
  18327. ) {
  18328. this.openTask(0, 0, "0-0");
  18329. }
  18330. this.$forceUpdate();
  18331. },
  18332. getCourseState(type) {
  18333. let params = {
  18334. cid: this.id,
  18335. };
  18336. this.ajax
  18337. .get(this.$store.state.api + "getCourseState", params)
  18338. .then((res) => {
  18339. // if (res.data[0].length > 0) {
  18340. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  18341. // }
  18342. if (res.data[0].length > 0 && type == 1) {
  18343. this.chapInfoList = JSON.parse(res.data[0][0].state);
  18344. this.setNavList();
  18345. this.$forceUpdate();
  18346. } else if (res.data[0].length > 0 && type == 2) {
  18347. this.addCourseState(2);
  18348. } else {
  18349. // this.addCourseState(1);
  18350. }
  18351. })
  18352. .catch((err) => {
  18353. console.error(err);
  18354. });
  18355. },
  18356. addCourseState(type,val = '') {
  18357. let _state = val ? val : this.chapInfoList;
  18358. // this.courseType this.taskCount
  18359. if (type == 1 || type == 2) {
  18360. for (var i = 0; i < _state.length; i++) {
  18361. let el = _state[i].chapterInfo[0].taskJson;
  18362. for (var j = 0; j < el.length; j++) {
  18363. // if (i == 0 && j == 0) {
  18364. // el[j].isLook = true;
  18365. // } else {
  18366. // el[j].isLook = false;
  18367. // }
  18368. if (
  18369. this.courseType > i ||
  18370. (this.courseType == i && this.taskCount + 1 > j)
  18371. ) {
  18372. el[j].isLook = true;
  18373. } else {
  18374. el[j].isLook = false;
  18375. }
  18376. }
  18377. }
  18378. }
  18379. let params = [
  18380. {
  18381. cid: this.id,
  18382. state: JSON.stringify(_state),
  18383. },
  18384. ];
  18385. this.ajax
  18386. .post(
  18387. this.$store.state.api +
  18388. (type == 1 ? "addCourseState" : "updateCourseSate"),
  18389. params
  18390. )
  18391. .then((res) => {
  18392. if (this.IsLookOpen) {
  18393. this.setNavList();
  18394. }
  18395. if (type == 3 && type == 2) {
  18396. this.getCourseState(1);
  18397. }
  18398. })
  18399. .catch((err) => {
  18400. console.error(err);
  18401. });
  18402. },
  18403. getHomeWork() {
  18404. let params = {
  18405. cid: this.id,
  18406. stage: this.courseType,
  18407. task: this.taskCount,
  18408. uid: this.userid,
  18409. };
  18410. this.ajax
  18411. .get(this.$store.state.api + "selectWork", params)
  18412. .then((res) => {
  18413. if (res.data[0].length > 0) {
  18414. this.studyJuri = JSON.parse(res.data[0][0].content);
  18415. this.isNoHomeWork = true;
  18416. }
  18417. })
  18418. .catch((err) => {
  18419. console.error(err);
  18420. });
  18421. },
  18422. isAssetTypeAnImage(ext) {
  18423. return (
  18424. [
  18425. "png",
  18426. "jpg",
  18427. "jpeg",
  18428. "bmp",
  18429. "gif",
  18430. "webp",
  18431. "psd",
  18432. "svg",
  18433. "tiff",
  18434. ].indexOf(ext) !== -1
  18435. );
  18436. },
  18437. switchVideo(media) {
  18438. this.playerO = {};
  18439. this.playerOptions.poster = "";
  18440. this.playerOptions.sources[0].src = media;
  18441. this.playerO = this.playerOptions;
  18442. },
  18443. onPlayerPlay() {},
  18444. onPlayerTimeupdate(player) {
  18445. let gklog = player.cache_.currentTime; //当前播放的秒数
  18446. let a = player.cache_.duration; //视频的总时长
  18447. let gklog2 = parseInt(gklog);
  18448. // if(gklog2 == '3'){
  18449. // player.pause()
  18450. // setTimeout(()=>{
  18451. // player.currentTime(gklog2+1)
  18452. // player.play()
  18453. // },1000)
  18454. // }
  18455. console.log(" onPlayerTimeupdate!", gklog);
  18456. console.log(" onPlayerTimeupdate!", gklog2);
  18457. },
  18458. lookVedio(u, i) {
  18459. this.isClickNav = "";
  18460. // this.playerOptions.sources[0].src = u;
  18461. var d = JSON.parse(JSON.stringify(this.playerOptions));
  18462. d.sources[0].src = u;
  18463. this.playerO[0] = d;
  18464. this.showType = 0;
  18465. // this.isClickNav = "video" + i;
  18466. this.isClickNav = i;
  18467. this.$forceUpdate();
  18468. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  18469. },
  18470. lookText(i, t) {
  18471. this.isClickNav = "";
  18472. // this.text = this.textList[i][t];
  18473. this.text = this.vChapterData[i][t];
  18474. // this.dialogVisible1 = true;
  18475. this.showType = 1;
  18476. // this.isClickNav = "text" + t;
  18477. this.isClickNav = t;
  18478. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  18479. },
  18480. lookTools(i, t) {
  18481. this.chapTools = this.chapToolList[i][t];
  18482. this.dialogVisible2 = true;
  18483. },
  18484. async openFile(f) {
  18485. this.pptImgUrl = "";
  18486. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18487. if (
  18488. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  18489. -1
  18490. ) {
  18491. let _uuurl = await this.checkLink(f);
  18492. console.log(_uuurl)
  18493. this.pptImgUrl =
  18494. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18495. this.showPDF = false;
  18496. this.dialogVisible3 = true;
  18497. } else if (
  18498. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18499. ) {
  18500. this.pptImgUrl = f;
  18501. this.showPDF = true;
  18502. this.dialogVisible3 = true;
  18503. }
  18504. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  18505. },
  18506. openTable(f) {
  18507. this.tableJson = JSON.parse(f.works);
  18508. this.dialogVisibleTable2 = true;
  18509. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18510. },
  18511. openWord(f) {
  18512. this.tableJson = JSON.parse(f.works);
  18513. this.dialogVisibleTable3 = true;
  18514. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18515. },
  18516. doUrl(url, i) {
  18517. this.isClickNav = "";
  18518. this.pptImgUrl1 = "";
  18519. this.showType = 2;
  18520. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  18521. url = "https://" + url;
  18522. }
  18523. this.pptImgUrl1 = "";
  18524. this.diffKey = new Date().getTime();
  18525. setTimeout(() => {
  18526. this.pptImgUrl1 = url;
  18527. }, 500);
  18528. // this.isClickNav = "line" + i;
  18529. this.isClickNav = i;
  18530. this.$forceUpdate();
  18531. },
  18532. checkPhoto(f, i) {
  18533. this.showType = 4;
  18534. this.pptImgUrl1 = f.url;
  18535. this.isClickNav = i;
  18536. this.$forceUpdate();
  18537. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18538. },
  18539. checkHtml(f, i){
  18540. this.showType = 16;
  18541. this.pptImgUrl1 = f.url;
  18542. this.isClickNav = i;
  18543. this.$forceUpdate();
  18544. },
  18545. async downFile(f, i) {
  18546. this.isClickNav = "";
  18547. this.pptImgUrl1 = "";
  18548. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  18549. if (
  18550. a.indexOf(
  18551. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  18552. ) != -1
  18553. ) {
  18554. let _uuurl = await this.checkLink(f.url);
  18555. console.log(_uuurl)
  18556. this.pptImgUrl1 =
  18557. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18558. // this.dialogVisible3 = true;
  18559. this.showType = 2;
  18560. } else if (
  18561. this.isAssetTypeAnImage(
  18562. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  18563. )
  18564. ) {
  18565. this.showType = 4;
  18566. this.pptImgUrl1 = f.url;
  18567. } else if (
  18568. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18569. "PDF"
  18570. ) {
  18571. this.pptImgUrl1 = f.url;
  18572. // this.dialogVisible3 = true;
  18573. this.showType = 3;
  18574. } else {
  18575. window.open(this.file[i].url);
  18576. }
  18577. // this.isClickNav = "word" + i;
  18578. this.isClickNav = i;
  18579. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18580. },
  18581. downFileList(i) {
  18582. window.open(this.noImgList[i].url);
  18583. },
  18584. openAddWork() {
  18585. this.dialogVisible = true;
  18586. },
  18587. addBzWorks() {
  18588. let params = [
  18589. {
  18590. uid: this.userid,
  18591. cid: this.id,
  18592. stage: this.courseType,
  18593. task: this.taskCount,
  18594. tool: this.toolindex,
  18595. content: JSON.stringify(this.eScore),
  18596. type: 6,
  18597. },
  18598. ];
  18599. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18600. this.homeWorkLoading = true
  18601. this.ajax
  18602. .post(this.$store.state.api + "addCourseWorks", params)
  18603. .then((res) => {
  18604. this.$message({
  18605. message: "提交成功",
  18606. type: "success",
  18607. });
  18608. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
  18609. setTimeout(() => {
  18610. this.homeWorkLoading = false
  18611. }, 500);
  18612. this.eScore = { eBzText: "", eStar: [] };
  18613. this.studentEvalDialogVisible = false;
  18614. this.selectSWorks();
  18615. })
  18616. .catch((err) => {
  18617. this.$message.error("提交失败");
  18618. console.error(err);
  18619. setTimeout(() => {
  18620. this.homeWorkLoading = false
  18621. }, 500);
  18622. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
  18623. });
  18624. },
  18625. addBzWorksTeacher() {
  18626. let params = [
  18627. {
  18628. uid: this.sStudent.userid,
  18629. cid: this.id,
  18630. stage: this.courseType,
  18631. task: this.taskCount,
  18632. tool: this.toolindex,
  18633. content: JSON.stringify(this.eScore),
  18634. type: 6,
  18635. },
  18636. ];
  18637. this.ajax
  18638. .post(this.$store.state.api + "addCourseWorks", params)
  18639. .then((res) => {
  18640. this.$message({
  18641. message: "提交成功",
  18642. type: "success",
  18643. });
  18644. this.eScore = { eBzText: "", eStar: [] };
  18645. this.studentEvalDialogVisibleTeacher = false;
  18646. this.selectSWorks();
  18647. })
  18648. .catch((err) => {
  18649. this.$message.error("提交失败");
  18650. console.error(err);
  18651. });
  18652. },
  18653. addStudentAsk() {
  18654. if (!this.radio.length) {
  18655. this.$message.error("请选择选项");
  18656. return;
  18657. }
  18658. for (var i = 0; i < this.askJson.askCount; i++) {
  18659. if (
  18660. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18661. (this.radio[i] !== 0 && !this.radio[i])
  18662. ) {
  18663. this.$message.error("请选择选项");
  18664. return;
  18665. }
  18666. }
  18667. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18668. let params = [
  18669. {
  18670. uid: this.userid,
  18671. cid: this.id,
  18672. stage: this.courseType,
  18673. task: this.taskCount,
  18674. tool: this.toolindex,
  18675. content: JSON.stringify(this.askList),
  18676. type: 2,
  18677. },
  18678. ];
  18679. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18680. this.homeWorkLoading = true
  18681. this.ajax
  18682. .post(this.$store.state.api + "addCourseWorks", params)
  18683. .then((res) => {
  18684. this.$message({
  18685. message: "提交成功",
  18686. type: "success",
  18687. });
  18688. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18689. setTimeout(() => {
  18690. this.homeWorkLoading = false
  18691. }, 500);
  18692. this.askList = [];
  18693. this.dialogVisible5 = false;
  18694. this.selectStudent();
  18695. this.selectSWorks();
  18696. this.selectSLook();
  18697. })
  18698. .catch((err) => {
  18699. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18700. setTimeout(() => {
  18701. this.homeWorkLoading = false
  18702. }, 500);
  18703. this.$message.error("提交失败");
  18704. console.error(err);
  18705. });
  18706. },
  18707. addStudentAskTeacher() {
  18708. if (!this.radio.length) {
  18709. this.$message.error("请选择选项");
  18710. return;
  18711. }
  18712. for (var i = 0; i < this.askJson.askCount; i++) {
  18713. if (
  18714. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18715. (this.radio[i] !== 0 && !this.radio[i])
  18716. ) {
  18717. this.$message.error("请选择选项");
  18718. return;
  18719. }
  18720. }
  18721. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18722. let params = [
  18723. {
  18724. uid: this.sStudent.userid,
  18725. cid: this.id,
  18726. stage: this.courseType,
  18727. task: this.taskCount,
  18728. tool: this.toolindex,
  18729. content: JSON.stringify(this.askList),
  18730. type: 2,
  18731. },
  18732. ];
  18733. this.ajax
  18734. .post(this.$store.state.api + "addCourseWorks", params)
  18735. .then((res) => {
  18736. this.$message({
  18737. message: "提交成功",
  18738. type: "success",
  18739. });
  18740. this.askList = [];
  18741. this.dialogVisible5Teacher = false;
  18742. this.selectStudent();
  18743. this.selectSWorks();
  18744. this.selectSLook();
  18745. })
  18746. .catch((err) => {
  18747. this.$message.error("提交失败");
  18748. console.error(err);
  18749. });
  18750. },
  18751. addStudentTest() {
  18752. if (!this.radio.length) {
  18753. this.$message.error("请选择选项");
  18754. return;
  18755. }
  18756. for (var i = 0; i < this.testJson.testCount; i++) {
  18757. if (
  18758. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18759. (this.radio[i] !== 0 && !this.radio[i])
  18760. ) {
  18761. this.$message.error("请选择选项");
  18762. return;
  18763. }
  18764. }
  18765. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18766. let params = [
  18767. {
  18768. uid: this.userid,
  18769. cid: this.id,
  18770. stage: this.courseType,
  18771. task: this.taskCount,
  18772. tool: this.toolindex,
  18773. content: JSON.stringify(this.askList),
  18774. type: 8,
  18775. },
  18776. ];
  18777. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18778. this.homeWorkLoading = true
  18779. this.ajax
  18780. .post(this.$store.state.api + "addCourseWorks", params)
  18781. .then((res) => {
  18782. this.$message({
  18783. message: "提交成功",
  18784. type: "success",
  18785. });
  18786. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18787. setTimeout(() => {
  18788. this.homeWorkLoading = false
  18789. }, 500);
  18790. this.askList = [];
  18791. this.dialogVisibleChoice = false;
  18792. this.selectStudent();
  18793. this.selectSWorks();
  18794. this.selectSLook();
  18795. })
  18796. .catch((err) => {
  18797. this.$message.error("提交失败");
  18798. console.error(err);
  18799. setTimeout(() => {
  18800. this.homeWorkLoading = false
  18801. }, 500);
  18802. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18803. });
  18804. },
  18805. addStudentTestTeacher() {
  18806. if (!this.radio.length) {
  18807. this.$message.error("请选择选项");
  18808. return;
  18809. }
  18810. for (var i = 0; i < this.testJson.testCount; i++) {
  18811. if (
  18812. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18813. (this.radio[i] !== 0 && !this.radio[i])
  18814. ) {
  18815. this.$message.error("请选择选项");
  18816. return;
  18817. }
  18818. }
  18819. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18820. let params = [
  18821. {
  18822. uid: this.sStudent.userid,
  18823. cid: this.id,
  18824. stage: this.courseType,
  18825. task: this.taskCount,
  18826. tool: this.toolindex,
  18827. content: JSON.stringify(this.askList),
  18828. type: 8,
  18829. },
  18830. ];
  18831. this.ajax
  18832. .post(this.$store.state.api + "addCourseWorks", params)
  18833. .then((res) => {
  18834. this.$message({
  18835. message: "提交成功",
  18836. type: "success",
  18837. });
  18838. this.askList = [];
  18839. this.dialogVisibleChoiceTeacher = false;
  18840. this.selectStudent();
  18841. this.selectSWorks();
  18842. this.selectSLook();
  18843. })
  18844. .catch((err) => {
  18845. this.$message.error("提交失败");
  18846. console.error(err);
  18847. });
  18848. },
  18849. addWork() {
  18850. if (this.studyJuri[0].content == "") {
  18851. this.$message.error("请将信息填写完整");
  18852. return;
  18853. } else if (this.studyJuri[0].cover.length == 0) {
  18854. this.$message.error("请将信息填写完整");
  18855. return;
  18856. } else if (this.studyJuri[0].upVedio.length == 0) {
  18857. this.$message.error("请将信息填写完整");
  18858. return;
  18859. }
  18860. if (this.isNoHomeWork) {
  18861. this.$confirm(
  18862. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  18863. "提示",
  18864. {
  18865. confirmButtonText: "确定",
  18866. cancelButtonText: "取消",
  18867. type: "warning",
  18868. }
  18869. )
  18870. .then(() => {
  18871. let params = [
  18872. {
  18873. uid: this.userid,
  18874. cid: this.id,
  18875. stage: this.courseType,
  18876. task: this.taskCount,
  18877. content: JSON.stringify(this.studyJuri),
  18878. },
  18879. ];
  18880. this.ajax
  18881. .post(this.$store.state.api + "addWorks", params)
  18882. .then((res) => {
  18883. this.$message({
  18884. message: "提交成功",
  18885. type: "success",
  18886. });
  18887. this.isNoHomeWork = true;
  18888. this.dialogVisible = false;
  18889. })
  18890. .catch((err) => {
  18891. this.$message.error("提交失败");
  18892. console.error(err);
  18893. });
  18894. })
  18895. .catch(() => {});
  18896. } else {
  18897. let params = [
  18898. {
  18899. uid: this.userid,
  18900. cid: this.id,
  18901. stage: this.courseType,
  18902. task: this.taskCount,
  18903. content: JSON.stringify(this.studyJuri),
  18904. },
  18905. ];
  18906. this.ajax
  18907. .post(this.$store.state.api + "addWorks", params)
  18908. .then((res) => {
  18909. this.$message({
  18910. message: "提交成功",
  18911. type: "success",
  18912. });
  18913. this.isNoHomeWork = true;
  18914. this.dialogVisible = false;
  18915. })
  18916. .catch((err) => {
  18917. this.$message.error("提交失败");
  18918. console.error(err);
  18919. });
  18920. }
  18921. },
  18922. selectCount() {
  18923. let params = {
  18924. cid: this.id,
  18925. chid: this.courseType,
  18926. uid: this.userid,
  18927. };
  18928. this.ajax
  18929. .get(this.$store.state.api + "selectToolsCount", params)
  18930. .then((res) => {
  18931. for (var i = 0; i < res.data[0].length; i++) {
  18932. if (res.data[0][i].tools == 1) {
  18933. this.wbCount = res.data[0][i].count;
  18934. } else if (res.data[0][i].tools == 2) {
  18935. this.wordCount = res.data[0][i].count;
  18936. } else if (res.data[0][i].tools == 3) {
  18937. this.mindCount = res.data[0][i].count;
  18938. } else if (res.data[0][i].tools == 4) {
  18939. this.askCount = res.data[0][i].count;
  18940. } else if (res.data[0][i].tools == 6) {
  18941. this.noteCount = res.data[0][i].count;
  18942. } else if (res.data[0][i].tools == 7) {
  18943. this.mindNetWorkCount = res.data[0][i].count;
  18944. } else if (res.data[0][i].tools == 8) {
  18945. this.libraryCount = res.data[0][i].count;
  18946. } else if (res.data[0][i].tools == 16) {
  18947. this.workCount = res.data[0][i].count;
  18948. } else if (res.data[0][i].tools == 10) {
  18949. this.timeCount = res.data[0][i].count;
  18950. } else if (res.data[0][i].tools == 15) {
  18951. this.answerCount = res.data[0][i].count;
  18952. } else if (res.data[0][i].tools == 18) {
  18953. this.trainCount = res.data[0][i].count;
  18954. }
  18955. }
  18956. })
  18957. .catch((err) => {
  18958. console.error(err);
  18959. });
  18960. },
  18961. openTools(t, i, index, c, sName,id) {
  18962. var z = JSON.parse(c);
  18963. this.noteName = sName;
  18964. if (t == 4) {
  18965. this.radio = [];
  18966. this.isAnswer = false;
  18967. let b = z[0].anwer;
  18968. this.radio = b;
  18969. this.askJson = z[0].askJson;
  18970. this.isAnswer = true;
  18971. this.dialogVisible5 = true;
  18972. } else if (t == 45) {
  18973. this.radio = [];
  18974. this.isAnswer = false;
  18975. let b = z[0].anwer;
  18976. this.radio = b;
  18977. this.testJson = z[0].testJson;
  18978. this.isAnswer = true;
  18979. this.dialogVisibleChoice = true;
  18980. }else if(t == 69){
  18981. this.oldEnglishJson1 = {}
  18982. this.oldEnglishJson = {}
  18983. this.englishList1 = {}
  18984. this.newEngIndex = -1;
  18985. this.isNoUserid = false;
  18986. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18987. .toolChoose[i].englishList;
  18988. this.oldEnglishJson = z;
  18989. this.engWid = id;
  18990. this.newEnglishList = { engTitle:"",engText:"" }
  18991. this.newEnglishList1 = []
  18992. this.selectEngC(id,z);
  18993. }else if(t == 62){
  18994. this.videoType = 1;
  18995. this.videoJson = {};
  18996. this.videoJson = JSON.parse(c);
  18997. // this.videoJson =
  18998. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18999. // index
  19000. // ].toolChoose[i].videoJson;
  19001. this.dialogVisibleVideo = true;
  19002. }
  19003. // else if (t == 15) {
  19004. // this.answerQ = "";
  19005. // this.questionAnswer = "";
  19006. // this.answerQ = z[0].answerTitle;
  19007. // this.questionAnswer = z[0].answer;
  19008. // this.answerDialogVisible = true;
  19009. // }
  19010. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  19011. },
  19012. fastText(p, t) {
  19013. if (t == 1) {
  19014. this.commentText += p;
  19015. } else {
  19016. this.eScore.eBzText += p;
  19017. }
  19018. },
  19019. addTools(t, i, index) {
  19020. var a = 0;
  19021. // this.taskCount = index;
  19022. this.toolindex = i;
  19023. if (t == 1) {
  19024. if (this.wbCount > 0) {
  19025. this.updateCount(this.wbCount, t);
  19026. } else {
  19027. this.wbCount++;
  19028. a = this.wbCount;
  19029. this.toolsCount(a, t);
  19030. }
  19031. window.topU.postMessage(
  19032. {
  19033. tools: "1",
  19034. cid: this.id,
  19035. stage: this.courseType,
  19036. task: this.taskCount,
  19037. tool: i,
  19038. },
  19039. "*"
  19040. );
  19041. } else if (t == 2) {
  19042. if (this.wordCount > 0) {
  19043. this.updateCount(this.wordCount, t);
  19044. } else {
  19045. this.wordCount++;
  19046. a = this.wordCount;
  19047. this.toolsCount(a, t);
  19048. }
  19049. window.topU.postMessage({ tools: "2" }, "*");
  19050. } else if (t == 3) {
  19051. if (this.mindCount > 0) {
  19052. this.updateCount(this.mindCount, t);
  19053. } else {
  19054. this.mindCount++;
  19055. a = this.mindCount;
  19056. this.toolsCount(a, t);
  19057. }
  19058. window.topU.postMessage(
  19059. {
  19060. tools: "3",
  19061. cid: this.id,
  19062. stage: this.courseType,
  19063. task: this.taskCount,
  19064. tool: i,
  19065. },
  19066. "*"
  19067. );
  19068. } else if (t == 4) {
  19069. this.radio = [];
  19070. this.noteName = "";
  19071. this.isAnswer = false;
  19072. if (this.askCount > 0) {
  19073. this.updateCount(this.askCount, t);
  19074. } else {
  19075. this.askCount++;
  19076. a = this.askCount;
  19077. this.toolsCount(a, t);
  19078. }
  19079. if (!this.dialogVisible2) {
  19080. this.askJson.askJson =
  19081. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19082. index
  19083. ].toolChoose[i].askJson;
  19084. this.askJson.askTitle =
  19085. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19086. index
  19087. ].toolChoose[i].askTitle;
  19088. this.askJson.askCount =
  19089. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19090. index
  19091. ].toolChoose[i].askCount;
  19092. } else {
  19093. this.askJson.askJson = this.chapTools.askJson.askJson;
  19094. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  19095. this.askJson.askCount = this.chapTools.askJson.askCount;
  19096. }
  19097. for (var k = 0; k < this.askJson.askJson.length; k++) {
  19098. if (this.askJson.askJson[k].type == "2") {
  19099. this.radio.push([]);
  19100. } else {
  19101. this.radio.push("");
  19102. }
  19103. }
  19104. this.dialogVisible5 = true;
  19105. // window.topU.postMessage({ tools: "4" }, "*");
  19106. } else if (t == 45) {
  19107. this.noteName = "";
  19108. this.radio = [];
  19109. this.isAnswer = false;
  19110. if (this.askCount > 0) {
  19111. this.updateCount(this.askCount, t);
  19112. } else {
  19113. this.askCount++;
  19114. a = this.askCount;
  19115. this.toolsCount(a, t);
  19116. }
  19117. this.testJson =
  19118. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19119. index
  19120. ].toolChoose[i].testJson;
  19121. for (var k = 0; k < this.testJson.testJson.length; k++) {
  19122. if (this.testJson.testJson[k].type == "2") {
  19123. this.radio.push([]);
  19124. } else {
  19125. this.radio.push("");
  19126. }
  19127. }
  19128. this.dialogVisibleChoice = true;
  19129. // window.topU.postMessage({ tools: "4" }, "*");
  19130. } else if (t == 5) {
  19131. if (this.scoreCount > 0) {
  19132. this.updateCount(this.scoreCount, t);
  19133. } else {
  19134. this.scoreCount++;
  19135. a = this.scoreCount;
  19136. this.toolsCount(a, t);
  19137. }
  19138. this.dialogVisible4 = true;
  19139. // window.topU.postMessage({ tools: "5" }, "*");
  19140. } else if (t == 6) {
  19141. if (this.noteCount > 0) {
  19142. this.updateCount(this.noteCount, t);
  19143. } else {
  19144. this.noteCount++;
  19145. a = this.noteCount;
  19146. this.toolsCount(a, t);
  19147. }
  19148. window.topU.postMessage(
  19149. {
  19150. tools: "6",
  19151. cid: this.id,
  19152. stage: this.courseType,
  19153. task: this.taskCount,
  19154. tool: i,
  19155. },
  19156. "*"
  19157. );
  19158. } else if (t == 7) {
  19159. if (this.mindNetWorkCount > 0) {
  19160. this.updateCount(this.mindNetWorkCount, t);
  19161. } else {
  19162. this.mindNetWorkCount++;
  19163. a = this.mindNetWorkCount;
  19164. this.toolsCount(a, t);
  19165. }
  19166. window.topU.postMessage(
  19167. {
  19168. tools: "7",
  19169. cid: this.id,
  19170. stage: this.courseType,
  19171. task: this.taskCount,
  19172. tool: i,
  19173. },
  19174. "*"
  19175. );
  19176. } else if (t == 16) {
  19177. if (this.workCount > 0) {
  19178. this.updateCount(this.workCount, t);
  19179. } else {
  19180. this.workCount++;
  19181. a = this.workCount;
  19182. this.toolsCount(a, t);
  19183. }
  19184. this.dialogVisible = true;
  19185. } else if (t == 50) {
  19186. if (this.tType == 2) {
  19187. this.$message.error("不支持学生使用");
  19188. return;
  19189. }
  19190. this.plworkFile = [];
  19191. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19192. if (!this.uploadCid) {
  19193. this.$message.error(
  19194. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19195. );
  19196. return;
  19197. }
  19198. // this.uploadCid =
  19199. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19200. // index
  19201. // ].toolChoose[i].uploadJson[0];
  19202. this.selectUploadStudent(2);
  19203. } else if (t == 8) {
  19204. if (this.libraryCount > 0) {
  19205. this.updateCount(this.libraryCount, t);
  19206. } else {
  19207. this.libraryCount++;
  19208. a = this.libraryCount;
  19209. this.toolsCount(a, t);
  19210. }
  19211. window.topU.postMessage({ tools: "8" }, "*");
  19212. } else if (t == 17) {
  19213. if (this.libraryCount > 0) {
  19214. this.updateCount(this.libraryCount, t);
  19215. } else {
  19216. this.libraryCount++;
  19217. a = this.libraryCount;
  19218. this.toolsCount(a, t);
  19219. }
  19220. window.topU.postMessage({ tools: "17" }, "*");
  19221. } else if (t == 18) {
  19222. if (this.trainCount > 0) {
  19223. this.updateCount(this.trainCount, t);
  19224. } else {
  19225. this.trainCount++;
  19226. a = this.trainCount;
  19227. this.toolsCount(a, t);
  19228. }
  19229. window.topU.postMessage({ tools: "18" }, "*");
  19230. } else if (t == 10) {
  19231. if (this.timeCount > 0) {
  19232. this.updateCount(this.timeCount, t);
  19233. } else {
  19234. this.timeCount++;
  19235. a = this.timeCount;
  19236. this.toolsCount(a, t);
  19237. }
  19238. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  19239. .taskJson[index].toolChoose[i].preTime
  19240. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19241. .toolChoose[i].preTime
  19242. : "";
  19243. this.timeDialogVisible = true;
  19244. } else if (t == 15) {
  19245. this.answerQ = "";
  19246. this.questionAnswer = "";
  19247. if (this.answerCount > 0) {
  19248. this.updateCount(this.answerCount, t);
  19249. } else {
  19250. this.answerCount++;
  19251. a = this.answerCount;
  19252. this.toolsCount(a, t);
  19253. }
  19254. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19255. .taskJson[index].toolChoose[i].answerQ
  19256. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19257. .toolChoose[i].answerQ
  19258. : "";
  19259. this.answerDialogVisible = true;
  19260. } else if (t == 21) {
  19261. window.topU.postMessage({ tools: "21" }, "*");
  19262. } else if (t == 22) {
  19263. window.topU.postMessage({ tools: "22" }, "*");
  19264. } else if (t == 23) {
  19265. window.topU.postMessage({ tools: "23" }, "*");
  19266. } else if (t == 24) {
  19267. window.topU.postMessage({ tools: "24" }, "*");
  19268. } else if (t == 25) {
  19269. window.topU.postMessage({ tools: "25" }, "*");
  19270. } else if (t == 31) {
  19271. window.topU.postMessage({ tools: "31" }, "*");
  19272. } else if (t == 28) {
  19273. window.topU.postMessage({ tools: "28" }, "*");
  19274. } else if (t == 37) {
  19275. window.topU.postMessage({ tools: "37" }, "*");
  19276. } else if (t == 38) {
  19277. window.topU.postMessage({ tools: "38" }, "*");
  19278. } else if (t == 39) {
  19279. window.topU.postMessage({ tools: "39" }, "*");
  19280. } else if (t == 32) {
  19281. window.topU.postMessage({ tools: "32" }, "*");
  19282. } else if (t == 66) {
  19283. window.topU.postMessage({ tools: "66" }, "*");
  19284. } else if (t == 67) {
  19285. window.topU.postMessage({ tools: "67" }, "*");
  19286. } else if (t == 68) {
  19287. window.topU.postMessage({ tools: "68" }, "*");
  19288. } else if (t == 57) {
  19289. // window.topU.postMessage({ tools: "57" }, "*");
  19290. window.topU.postMessage(
  19291. {
  19292. tools: "57u",
  19293. cid: this.id,
  19294. stage: this.courseType,
  19295. task: this.taskCount,
  19296. tool: i,
  19297. },
  19298. "*"
  19299. );
  19300. } else if (t == 58) {
  19301. window.topU.postMessage({ tools: "58" }, "*");
  19302. } else if (t == 59) {
  19303. window.topU.postMessage({ tools: "59" }, "*");
  19304. } else if (t == 60) {
  19305. window.topU.postMessage({ tools: "60" }, "*");
  19306. } else if (t == 61) {
  19307. window.topU.postMessage({ tools: "61" }, "*");
  19308. } else if (t == 63) {
  19309. window.topU.postMessage({ tools: "63" }, "*");
  19310. } else if (t == 71) {
  19311. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  19312. // this.$message.error("该工具不可使用");
  19313. // return
  19314. // }
  19315. window.topU.postMessage({ tools: "71" }, "*");
  19316. } else if (t == 72) {
  19317. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  19318. .taskJson[index].toolChoose[i].appJson
  19319. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19320. .toolChoose[i].appJson
  19321. : "";
  19322. if(!item || !item.url){
  19323. this.$message.error("应用连接为空, 请到课程管理中添加");
  19324. return;
  19325. }
  19326. if (!document.fullscreenElement) {
  19327. this.enterFullScreen();
  19328. }
  19329. this.$refs.appStoreC.getData(item.url,this.userid)
  19330. // window.topU.postMessage({ tools: "72", data: item }, "*");
  19331. // window.open(item.url, "_blank");
  19332. } else if (t == 69) {
  19333. if (this.worksStudent[i].length) {
  19334. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19335. if (this.userid == this.worksStudent[i][k].userid) {
  19336. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  19337. break;
  19338. } else {
  19339. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  19340. }
  19341. }
  19342. } else {
  19343. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  19344. }
  19345. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  19346. .taskJson[index].toolChoose[i].englishList
  19347. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19348. .toolChoose[i].englishList
  19349. : {};
  19350. this.englishToolIndex = i;
  19351. this.myAnList = this.myAnswerList1;
  19352. this.engDialogVisible = true;
  19353. } else if (t == 70) {
  19354. if (this.worksStudent[i].length) {
  19355. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19356. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  19357. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  19358. break;
  19359. } else {
  19360. this.englishVoiceJsonWork = [];
  19361. }
  19362. }
  19363. } else {
  19364. this.englishVoiceJsonWork = [];
  19365. }
  19366. let englishVoiceJson = {}
  19367. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19368. .taskJson[index].toolChoose[i].englishVoiceJson
  19369. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19370. .toolChoose[i].englishVoiceJson
  19371. : {};
  19372. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  19373. this.EnglishVoiceDialog = true;
  19374. } else if (t == 65) {
  19375. if (this.tType == 2) {
  19376. this.$message.error("不支持学生使用");
  19377. return;
  19378. }
  19379. this.uploadCid = this.tcid;
  19380. if (!this.uploadCid) {
  19381. this.$message.error(
  19382. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  19383. );
  19384. return;
  19385. }
  19386. this.selectPickStudent();
  19387. } else if (t == 26) {
  19388. window.topU.postMessage(
  19389. {
  19390. tools: "26",
  19391. cid: this.id,
  19392. stage: this.courseType,
  19393. task: this.taskCount,
  19394. tool: i,
  19395. },
  19396. "*"
  19397. );
  19398. } else if (t == 40) {
  19399. if (this.evalCount > 0) {
  19400. this.updateCount(this.evalCount, t);
  19401. } else {
  19402. this.evalCount++;
  19403. a = this.evalCount;
  19404. this.toolsCount(a, t);
  19405. }
  19406. this.eScore = { eBzText: "", eStar: [] };
  19407. if (this.worksStudent[i].length) {
  19408. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19409. if (this.userid == this.worksStudent[i][k].userid) {
  19410. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19411. this.rateJson =
  19412. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19413. index
  19414. ].toolChoose[i].rateJson;
  19415. break;
  19416. } else {
  19417. this.rateJson =
  19418. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19419. index
  19420. ].toolChoose[i].rateJson;
  19421. }
  19422. }
  19423. } else {
  19424. this.rateJson =
  19425. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19426. index
  19427. ].toolChoose[i].rateJson;
  19428. }
  19429. this.isStar = false;
  19430. this.studentEvalDialogVisible = true;
  19431. } else if (t == 41) {
  19432. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19433. .taskJson[index].toolChoose[i].selectJson
  19434. ? JSON.parse(
  19435. JSON.stringify(
  19436. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19437. index
  19438. ].toolChoose[i].selectJson
  19439. )
  19440. )
  19441. : { url: "", select: [], answer: [] };
  19442. if (this.worksStudent[i].length) {
  19443. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19444. if (this.userid == this.worksStudent[i][k].userid) {
  19445. var a = this.worksStudent[i][k].works.split(",");
  19446. for (var ki = 0; ki < a.length; ki++) {
  19447. a[ki] = parseInt(a[ki]);
  19448. }
  19449. this.selectAnswer = {
  19450. answer: a,
  19451. stu: this.worksStudent[i][k].sName,
  19452. };
  19453. break;
  19454. } else {
  19455. this.selectAnswer = { answer: [], stu: "" };
  19456. }
  19457. }
  19458. } else {
  19459. this.selectAnswer = { answer: [], stu: "" };
  19460. }
  19461. this.isSelect = false;
  19462. this.dialogVisibleSelect = true;
  19463. } else if (t == 44) {
  19464. window.topU.postMessage({ tools: "44" }, "*");
  19465. } else if (t == 47) {
  19466. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19467. .taskJson[index].toolChoose[i].sentenceList
  19468. ? JSON.parse(
  19469. JSON.stringify(
  19470. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19471. index
  19472. ].toolChoose[i].sentenceList
  19473. )
  19474. )
  19475. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19476. for (var q = 0; q < this.sentenceList.length; q++) {
  19477. this.sentenceList[q].chooseSenList = [];
  19478. this.sentenceList[q].addChangeSen = [];
  19479. this.sentenceList[q].addChangeSen = JSON.parse(
  19480. JSON.stringify(this.sentenceList[q].addSentence)
  19481. );
  19482. this.sentenceList[q].chooseSenList.length =
  19483. this.sentenceList[q].rightAnswer.length;
  19484. }
  19485. this.dialogVisibleSentence = true;
  19486. } else if (t == 48) {
  19487. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19488. .taskJson[index].toolChoose[i].tableJson
  19489. ? JSON.parse(
  19490. JSON.stringify(
  19491. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19492. index
  19493. ].toolChoose[i].tableJson
  19494. )
  19495. )
  19496. : { text: "" };
  19497. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  19498. if (this.worksStudent[i].length) {
  19499. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19500. if (this.userid == this.worksStudent[i][k].userid) {
  19501. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19502. break;
  19503. }
  19504. }
  19505. }
  19506. this.dialogVisibleTable = true;
  19507. } else if (t == 52) {
  19508. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19509. .taskJson[index].toolChoose[i].wordJson
  19510. ? JSON.parse(
  19511. JSON.stringify(
  19512. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19513. index
  19514. ].toolChoose[i].wordJson
  19515. )
  19516. )
  19517. : { text: "" };
  19518. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  19519. if (this.worksStudent[i].length) {
  19520. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19521. if (this.userid == this.worksStudent[i][k].userid) {
  19522. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19523. break;
  19524. }
  19525. }
  19526. }
  19527. this.dialogVisibleWord = true;
  19528. } else if (t == 49) {
  19529. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  19530. return
  19531. }
  19532. this.groupJson =
  19533. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19534. index
  19535. ].toolChoose[i].groupJson;
  19536. this.islock = this.groupJson.islock == 1 ? true : false;
  19537. this.dialogVisibleGroup = true;
  19538. } else if (t == 62) {
  19539. this.videoType = 0;
  19540. this.videoJson = {};
  19541. this.videoJson =
  19542. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19543. index
  19544. ].toolChoose[i].videoJson;
  19545. this.dialogVisibleVideo = true;
  19546. }
  19547. this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
  19548. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  19549. },
  19550. teacherWorkSubmit(t, i, index, s) {
  19551. console.log('t',t);
  19552. if(t == 72) return
  19553. this.sStudent = s;
  19554. this.toolindex = i;
  19555. this.sTool = t;
  19556. if (this.tType !== "1" && this.tType !== "4") {
  19557. return;
  19558. }
  19559. if (t == 16 || t == 32 || t == 50) {
  19560. this.dialogVisibleWorks = true;
  19561. } else if (t == 15) {
  19562. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19563. .taskJson[index].toolChoose[i].answerQ
  19564. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19565. .toolChoose[i].answerQ
  19566. : "";
  19567. this.questionAnswer = "";
  19568. this.answerDialogVisibleTeacher = true; //问答
  19569. } else if (t == 52) {
  19570. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19571. .taskJson[index].toolChoose[i].wordJson
  19572. ? JSON.parse(
  19573. JSON.stringify(
  19574. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19575. index
  19576. ].toolChoose[i].wordJson
  19577. )
  19578. )
  19579. : { text: "" };
  19580. if (this.worksStudent[i].length) {
  19581. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19582. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19583. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19584. break;
  19585. }
  19586. }
  19587. }
  19588. this.dialogVisibleWordTeacher = true; //文档
  19589. } else if (t == 4) {
  19590. this.radio = [];
  19591. this.noteName = "";
  19592. this.isAnswer = false;
  19593. if (this.askCount > 0) {
  19594. this.updateCount(this.askCount, t);
  19595. } else {
  19596. this.askCount++;
  19597. a = this.askCount;
  19598. this.toolsCount(a, t);
  19599. }
  19600. if (!this.dialogVisible2) {
  19601. this.askJson.askJson =
  19602. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19603. index
  19604. ].toolChoose[i].askJson;
  19605. this.askJson.askTitle =
  19606. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19607. index
  19608. ].toolChoose[i].askTitle;
  19609. this.askJson.askCount =
  19610. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19611. index
  19612. ].toolChoose[i].askCount;
  19613. } else {
  19614. this.askJson.askJson = this.chapTools.askJson.askJson;
  19615. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  19616. this.askJson.askCount = this.chapTools.askJson.askCount;
  19617. }
  19618. for (var k = 0; k < this.askJson.askJson.length; k++) {
  19619. if (this.askJson.askJson[k].type == "2") {
  19620. this.radio.push([]);
  19621. } else {
  19622. this.radio.push("");
  19623. }
  19624. }
  19625. this.dialogVisible5Teacher = true;
  19626. } else if (t == 45) {
  19627. this.noteName = "";
  19628. this.radio = [];
  19629. this.isAnswer = false;
  19630. if (this.askCount > 0) {
  19631. this.updateCount(this.askCount, t);
  19632. } else {
  19633. this.askCount++;
  19634. a = this.askCount;
  19635. this.toolsCount(a, t);
  19636. }
  19637. this.testJson =
  19638. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19639. index
  19640. ].toolChoose[i].testJson;
  19641. for (var k = 0; k < this.testJson.testJson.length; k++) {
  19642. if (this.testJson.testJson[k].type == "2") {
  19643. this.radio.push([]);
  19644. } else {
  19645. this.radio.push("");
  19646. }
  19647. }
  19648. this.dialogVisibleChoiceTeacher = true;
  19649. } else if (t == 41) {
  19650. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19651. .taskJson[index].toolChoose[i].selectJson
  19652. ? JSON.parse(
  19653. JSON.stringify(
  19654. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19655. index
  19656. ].toolChoose[i].selectJson
  19657. )
  19658. )
  19659. : { url: "", select: [], answer: [] };
  19660. if (this.worksStudent[i].length) {
  19661. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19662. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19663. var a = this.worksStudent[i][k].works.split(",");
  19664. for (var ki = 0; ki < a.length; ki++) {
  19665. a[ki] = parseInt(a[ki]);
  19666. }
  19667. this.selectAnswer = {
  19668. answer: a,
  19669. stu: this.worksStudent[i][k].sName,
  19670. };
  19671. break;
  19672. } else {
  19673. this.selectAnswer = { answer: [], stu: "" };
  19674. }
  19675. }
  19676. } else {
  19677. this.selectAnswer = { answer: [], stu: "" };
  19678. }
  19679. this.isSelect = false;
  19680. this.dialogVisibleSelectTeacher = true;
  19681. } else if (t == 47) {
  19682. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19683. .taskJson[index].toolChoose[i].sentenceList
  19684. ? JSON.parse(
  19685. JSON.stringify(
  19686. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19687. index
  19688. ].toolChoose[i].sentenceList
  19689. )
  19690. )
  19691. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19692. for (var q = 0; q < this.sentenceList.length; q++) {
  19693. this.sentenceList[q].chooseSenList = [];
  19694. this.sentenceList[q].addChangeSen = [];
  19695. this.sentenceList[q].addChangeSen = JSON.parse(
  19696. JSON.stringify(this.sentenceList[q].addSentence)
  19697. );
  19698. this.sentenceList[q].chooseSenList.length =
  19699. this.sentenceList[q].rightAnswer.length;
  19700. }
  19701. this.dialogVisibleSentenceTeacher = true;
  19702. } else if (t == 48) {
  19703. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19704. .taskJson[index].toolChoose[i].tableJson
  19705. ? JSON.parse(
  19706. JSON.stringify(
  19707. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19708. index
  19709. ].toolChoose[i].tableJson
  19710. )
  19711. )
  19712. : { text: "" };
  19713. if (this.worksStudent[i].length) {
  19714. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19715. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19716. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19717. break;
  19718. }
  19719. }
  19720. }
  19721. this.dialogVisibleTableTeacher = true;
  19722. } else if (t == 40) {
  19723. if (this.evalCount > 0) {
  19724. this.updateCount(this.evalCount, t);
  19725. } else {
  19726. this.evalCount++;
  19727. a = this.evalCount;
  19728. this.toolsCount(a, t);
  19729. }
  19730. this.eScore = { eBzText: "", eStar: [] };
  19731. if (this.worksStudent[i].length) {
  19732. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19733. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19734. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19735. this.rateJson =
  19736. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19737. index
  19738. ].toolChoose[i].rateJson;
  19739. break;
  19740. } else {
  19741. this.rateJson =
  19742. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19743. index
  19744. ].toolChoose[i].rateJson;
  19745. }
  19746. }
  19747. } else {
  19748. this.rateJson =
  19749. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19750. index
  19751. ].toolChoose[i].rateJson;
  19752. }
  19753. this.isStar = false;
  19754. this.studentEvalDialogVisibleTeacher = true;
  19755. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  19756. window.topU.postMessage(
  19757. {
  19758. tools: t + "teacher",
  19759. cid: this.id,
  19760. stage: this.courseType,
  19761. task: this.taskCount,
  19762. tool: i,
  19763. student: this.sStudent,
  19764. },
  19765. "*"
  19766. );
  19767. }else if (t == 72) {
  19768. if (!document.fullscreenElement) {
  19769. this.enterFullScreen();
  19770. }
  19771. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  19772. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  19773. }
  19774. },
  19775. openCocoPi(tool, i, uid, uname) {
  19776. let student = {
  19777. userid: uid,
  19778. student: uname,
  19779. };
  19780. if (tool == 57) {
  19781. window.topU.postMessage(
  19782. {
  19783. tools: tool + "teacher",
  19784. cid: this.id,
  19785. stage: this.courseType,
  19786. task: this.taskCount,
  19787. tool: i,
  19788. student: student,
  19789. },
  19790. "*"
  19791. );
  19792. }
  19793. },
  19794. setRightAnswer(s, i, j) {
  19795. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  19796. if (
  19797. this.sentenceList[i].chooseSenList[q] == undefined ||
  19798. this.sentenceList[i].chooseSenList[q] == ""
  19799. ) {
  19800. this.sentenceList[i].chooseSenList[q] = s;
  19801. this.sentenceList[i].addChangeSen[j] = "";
  19802. break;
  19803. }
  19804. }
  19805. this.$forceUpdate();
  19806. },
  19807. returnCard(r, i, j) {
  19808. var a = this.sentenceList[i].addSentence.indexOf(r);
  19809. this.sentenceList[i].chooseSenList[j] = "";
  19810. this.sentenceList[i].addChangeSen[a] = r;
  19811. this.$forceUpdate();
  19812. },
  19813. // addSentenceTool() {
  19814. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19815. // this.taskCount
  19816. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  19817. // this.sentenceList = [
  19818. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  19819. // ];
  19820. // this.dialogVisibleSentence = false;
  19821. // },
  19822. toolsCount(a, t) {
  19823. let params = {
  19824. cid: this.id,
  19825. chid: this.courseType,
  19826. uid: this.userid,
  19827. tid: t,
  19828. count: a,
  19829. };
  19830. this.ajax
  19831. .get(this.$store.state.api + "insertToolsCount", params)
  19832. .then((res) => {
  19833. this.selectCount();
  19834. })
  19835. .catch((err) => {
  19836. console.error(err);
  19837. });
  19838. },
  19839. updateCount(c, t) {
  19840. c++;
  19841. let params = {
  19842. cid: this.id,
  19843. chid: this.courseType,
  19844. uid: this.userid,
  19845. tid: t,
  19846. count: c,
  19847. };
  19848. this.ajax
  19849. .get(this.$store.state.api + "updateToolsCount", params)
  19850. .then((res) => {
  19851. this.selectCount();
  19852. })
  19853. .catch((err) => {
  19854. console.error(err);
  19855. });
  19856. },
  19857. checkEva() {
  19858. if (this.evalua != "") {
  19859. for (var i = 0; i < this.evaJuri.length; i++) {
  19860. if (this.evalua == this.evaJuri[i].id) {
  19861. this.eTitle = this.evaJuri[i].title;
  19862. this.eJson = JSON.parse(this.evaJuri[i].content);
  19863. }
  19864. }
  19865. this.$forceUpdate();
  19866. setTimeout(() => {
  19867. this.setMindData();
  19868. }, 0);
  19869. }
  19870. },
  19871. selectEva() {
  19872. let params = {
  19873. oid: this.oid,
  19874. };
  19875. this.ajax
  19876. .get(this.$store.state.api + "selectAllEvaluation", params)
  19877. .then((res) => {
  19878. this.evaJuri = res.data[0];
  19879. })
  19880. .catch((err) => {
  19881. console.error(err);
  19882. });
  19883. },
  19884. setMindData() {
  19885. this.data.data = [];
  19886. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  19887. let _eJson = Object.keys(this.eJson);
  19888. let _e = this.eJson;
  19889. for (let i = 0; i < _eJson.length; i++) {
  19890. let element = _e[_eJson[i]];
  19891. this.data.data.push({
  19892. id: element.id,
  19893. parentid: "root",
  19894. topic: element.name,
  19895. });
  19896. let _eJsonc = Object.keys(element.child);
  19897. let _e2 = element.child;
  19898. for (let j = 0; j < _eJsonc.length; j++) {
  19899. let _ec = _e2[_eJsonc[j]];
  19900. this.data.data.push({
  19901. id: _ec.id,
  19902. parentid: element.id,
  19903. topic: _ec.name,
  19904. });
  19905. let _eJsonz = Object.keys(_ec.child);
  19906. let _e3 = _ec.child;
  19907. for (let z = 0; z < _eJsonz.length; z++) {
  19908. let _ez = _e3[_eJsonz[z]];
  19909. this.data.data.push({
  19910. id: _ez.id,
  19911. parentid: _ec.id,
  19912. topic: _ez.name,
  19913. });
  19914. }
  19915. }
  19916. }
  19917. this.$forceUpdate();
  19918. },
  19919. checkFileFull(type, url) {
  19920. this.fullDialogVisible = true;
  19921. this.fulltype = type;
  19922. this.fullUrl = url;
  19923. },
  19924. async checkFileFull1(t, f) {
  19925. this.fullDialogVisible = true;
  19926. if (t == 6) {
  19927. this.fulltype = 1;
  19928. console.log('checkFileFull1',f);
  19929. this.fullUrl = JSON.parse(JSON.stringify(f));
  19930. } else if (t == 8) {
  19931. this.fulltype = 2;
  19932. this.fullUrl = f.url;
  19933. } else if (t == 16) {
  19934. this.fulltype = 16;
  19935. this.fullUrl = f.url;
  19936. } else if (t == 15) {
  19937. this.fulltype = 4;
  19938. this.fullUrl = f.url;
  19939. } else if (
  19940. t == 3 &&
  19941. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  19942. "PDF"
  19943. ) {
  19944. this.fulltype = 3;
  19945. this.fullUrl = f.url;
  19946. } else if (t == 3) {
  19947. this.fulltype = 2;
  19948. let _uuurl = await this.checkLink(f.url);
  19949. console.log(_uuurl)
  19950. this.fullUrl =
  19951. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  19952. }
  19953. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  19954. },
  19955. openSname(n, id, i, uid) {
  19956. this.snameWid = id;
  19957. this.worksSName = n;
  19958. this.worksSid = uid == n ? "" : uid;
  19959. this.toolindex = i;
  19960. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19961. if (!this.uploadCid) {
  19962. this.$message.error(
  19963. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19964. );
  19965. return;
  19966. }
  19967. this.selectUploadStudent(1);
  19968. },
  19969. updateName() {
  19970. let params = {
  19971. n: this.worksSName,
  19972. cid: this.snameWid,
  19973. };
  19974. this.ajax
  19975. .get(this.$store.state.api + "updateCourseWorksName", params)
  19976. .then((res) => {
  19977. this.$message({
  19978. message: "修改成功",
  19979. type: "success",
  19980. });
  19981. this.dialogVisibleSname = false;
  19982. this.getCourseDetail(2);
  19983. this.snameWid = "";
  19984. this.worksSName = "";
  19985. })
  19986. .catch((err) => {
  19987. console.error(err);
  19988. });
  19989. },
  19990. downloadFile2(f) {
  19991. // const loading = this.$loading.service({
  19992. // background: "rgba(255, 255, 255, 0.7)",
  19993. // target: document.body,
  19994. // text: "文件加载中...",
  19995. // });
  19996. // let url2 = f.url;
  19997. // let _url2 = "";
  19998. // if (
  19999. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20000. // ) {
  20001. // _url2 = url2.split(
  20002. // "https://view.officeapps.live.com/op/view.aspx?src="
  20003. // )[1];
  20004. // } else {
  20005. // _url2 = url2;
  20006. // }
  20007. // let params = {
  20008. // url: _url2,
  20009. // name: f.name,
  20010. // };
  20011. // this.ajax
  20012. // .get(this.$store.state.api + "download", params)
  20013. // .then((res) => {
  20014. // loading.close();
  20015. // let content = res.data.data.data;
  20016. // let ab = new ArrayBuffer(content.length);
  20017. // let view = new Uint8Array(ab);
  20018. // for (var i = 0; i < content.length; ++i) {
  20019. // view[i] = content[i];
  20020. // }
  20021. // let elink = document.createElement("a");
  20022. // elink.download = f.name;
  20023. // elink.style.display = "none";
  20024. // let blob = new Blob([ab], {
  20025. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  20026. // });
  20027. // elink.href = URL.createObjectURL(blob);
  20028. // document.body.appendChild(elink);
  20029. // elink.click();
  20030. // document.body.removeChild(elink);
  20031. // })
  20032. // .catch((err) => {
  20033. // loading.close();
  20034. // console.error(err);
  20035. // });
  20036. var credentials = {
  20037. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20038. secretAccessKey: "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",
  20039. }; //秘钥形式的登录上传
  20040. window.AWS.config.update(credentials);
  20041. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20042. let url2 = f.url;
  20043. let _url2 = "";
  20044. if (
  20045. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20046. ) {
  20047. _url2 = url2.split(
  20048. "https://view.officeapps.live.com/op/view.aspx?src="
  20049. )[1];
  20050. } else {
  20051. _url2 = url2;
  20052. }
  20053. let _this = this;
  20054. _this.downLoading = true
  20055. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  20056. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  20057. var params = {
  20058. Bucket: "ccrb",
  20059. Key: name
  20060. };
  20061. s3.getObject(params, function (err, data) {
  20062. _this.downLoading = false
  20063. if (err) console.log(err, err.stack); // an error occurred
  20064. else {
  20065. let url = window.URL.createObjectURL(new Blob([data.Body]));
  20066. let a = document.createElement("a");
  20067. a.name = f.name;
  20068. a.href = url;
  20069. a.download = f.name;
  20070. a.click();
  20071. console.log(data);
  20072. } // sxuccessful response
  20073. });
  20074. return;
  20075. let url = f.url;
  20076. let _url = "";
  20077. if (
  20078. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20079. ) {
  20080. _url = url.split(
  20081. "https://view.officeapps.live.com/op/view.aspx?src="
  20082. )[1];
  20083. } else {
  20084. _url = url;
  20085. }
  20086. _this.downLoading = true
  20087. // const loading = _this.$loading.service({
  20088. // background: "rgba(255, 255, 255, 0.7)",
  20089. // target: document.body,
  20090. // text: "文件加载中...",
  20091. // });
  20092. let x = new XMLHttpRequest();
  20093. x.open("GET", _url, true);
  20094. x.responseType = "blob";
  20095. x.onload = function () {
  20096. _this.downLoading = false
  20097. // loading.close();
  20098. let url = window.URL.createObjectURL(new Blob([x.response]));
  20099. let a = document.createElement("a");
  20100. a.name = f.name;
  20101. a.href = url;
  20102. a.download = f.name;
  20103. a.click();
  20104. };
  20105. x.send();
  20106. },
  20107. downloadFile(url,uid) {
  20108. if (this.tType == 1 || this.userid == uid) {
  20109. var credentials = {
  20110. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20111. secretAccessKey: "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",
  20112. }; //秘钥形式的登录上传
  20113. window.AWS.config.update(credentials);
  20114. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20115. let url2 = url;
  20116. let _url2 = "";
  20117. if (
  20118. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20119. ) {
  20120. _url2 = url2.split(
  20121. "https://view.officeapps.live.com/op/view.aspx?src="
  20122. )[1];
  20123. } else {
  20124. _url2 = url2;
  20125. }
  20126. const loading2 = this.$loading.service({
  20127. background: "rgba(255, 255, 255, 0.7)",
  20128. target: document.body,
  20129. text: "文件加载中...",
  20130. });
  20131. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  20132. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  20133. var params = {
  20134. Bucket: "ccrb",
  20135. Key: name
  20136. };
  20137. s3.getObject(params, function (err, data) {
  20138. loading2.close();
  20139. if (err) console.log(err, err.stack); // an error occurred
  20140. else {
  20141. let url = window.URL.createObjectURL(new Blob([data.Body]));
  20142. let a = document.createElement("a");
  20143. a.name = name;
  20144. a.href = url;
  20145. a.download = name;
  20146. a.click();
  20147. console.log(data);
  20148. } // sxuccessful response
  20149. });
  20150. }
  20151. return;
  20152. let _this = this;
  20153. let _url = "";
  20154. if (
  20155. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20156. ) {
  20157. _url = url.split(
  20158. "https://view.officeapps.live.com/op/view.aspx?src="
  20159. )[1];
  20160. } else {
  20161. _url = url;
  20162. }
  20163. const x = new XMLHttpRequest();
  20164. x.open("GET", _url, true);
  20165. x.responseType = "blob";
  20166. // this.downLoading = true
  20167. const loading = _this.$loading.service({
  20168. background: "rgba(255, 255, 255, 0.7)",
  20169. target: document.body,
  20170. text: "文件加载中...",
  20171. });
  20172. // _this.$message.success("文件下载中...");
  20173. x.onload = function (e) {
  20174. this.downLoading = false
  20175. loading.close();
  20176. let content = x.response;
  20177. let elink = document.createElement("a");
  20178. elink.download = decodeURI(
  20179. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  20180. );
  20181. elink.style.display = "none";
  20182. let blob = new Blob([content]);
  20183. elink.href = URL.createObjectURL(blob);
  20184. document.body.appendChild(elink);
  20185. elink.click();
  20186. document.body.removeChild(elink);
  20187. };
  20188. x.send();
  20189. },
  20190. openLine(url) {
  20191. window.open(url);
  20192. },
  20193. resize() {
  20194. if (document.getElementsByClassName("box_course").length) {
  20195. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20196. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20197. if (this.showType == 2 || this.showType == 3) {
  20198. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  20199. document.getElementsByClassName("navBox")[0].style.height =
  20200. a - 40 + 0+ "px";
  20201. }
  20202. } else {
  20203. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  20204. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  20205. }
  20206. }
  20207. }
  20208. this.Stbodywidth =
  20209. document.getElementsByClassName("student_body").length &&
  20210. document.getElementsByClassName("student_body")[0].offsetWidth;
  20211. },
  20212. closeDraw() {
  20213. this.bg = null;
  20214. this.drawShow = false;
  20215. },
  20216. showPicturePaint(url) {
  20217. let params = {
  20218. img: url,
  20219. };
  20220. this.ajax
  20221. .get(this.$store.state.api + "imgToBase64", params)
  20222. .then((res) => {
  20223. this.drawShow = true;
  20224. this.bg = res.data[0].img;
  20225. })
  20226. .catch((err) => {
  20227. console.error(err);
  20228. });
  20229. },
  20230. addImgDraw(base64) {
  20231. let file = { name: "批注图.png" };
  20232. let img = this.dataUrlToFile(base64, file);
  20233. this.beforeUpload1(img, 5);
  20234. },
  20235. addImgDrawImG(url) {
  20236. // console.log(url);
  20237. let params = [
  20238. {
  20239. wid: this.commentDetail.wid,
  20240. img: url,
  20241. },
  20242. ];
  20243. this.ajax
  20244. .post(this.$store.state.api + "updateCourseWorks", params)
  20245. .then((res) => {
  20246. this.$message({
  20247. message: "提交成功",
  20248. type: "success",
  20249. });
  20250. this.drawShow = false;
  20251. this.bg = "";
  20252. this.selectSWorks();
  20253. this.selectStudent();
  20254. })
  20255. .catch((err) => {
  20256. this.$message.error("提交失败");
  20257. console.error(err);
  20258. });
  20259. },
  20260. deletePicturePaint() {
  20261. this.$confirm("确定删除此批注吗?", "提示", {
  20262. confirmButtonText: "确定",
  20263. cancelButtonText: "取消",
  20264. type: "warning",
  20265. })
  20266. .then(() => {
  20267. let params = [
  20268. {
  20269. wid: this.commentDetail.wid,
  20270. img: "",
  20271. },
  20272. ];
  20273. this.ajax
  20274. .post(this.$store.state.api + "updateCourseWorks", params)
  20275. .then((res) => {
  20276. this.$message({
  20277. message: "删除成功",
  20278. type: "success",
  20279. });
  20280. this.selectSWorks();
  20281. this.selectStudent();
  20282. })
  20283. .catch((err) => {
  20284. this.$message.error("删除失败");
  20285. console.error(err);
  20286. });
  20287. })
  20288. .catch(() => {});
  20289. },
  20290. getAudioVideo(constraintsData) {
  20291. if (navigator.mediaDevices === undefined) {
  20292. navigator.mediaDevices = {};
  20293. }
  20294. if (navigator.mediaDevices.getUserMedia === undefined) {
  20295. navigator.mediaDevices.getUserMedia = function (constraints) {
  20296. // 首先,如果有getUserMedia的话,就获得它
  20297. var getUserMedia =
  20298. navigator.getUserMedia ||
  20299. navigator.webkitGetUserMedia ||
  20300. navigator.mozGetUserMedia ||
  20301. navigator.msGetUserMedia;
  20302. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  20303. if (!getUserMedia) {
  20304. return Promise.reject({ code: 404 });
  20305. }
  20306. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  20307. return new Promise(function (resolve, reject) {
  20308. getUserMedia.call(navigator, constraints, resolve, reject);
  20309. });
  20310. };
  20311. }
  20312. return navigator.mediaDevices.getUserMedia(constraintsData);
  20313. },
  20314. /**
  20315. * 开始录制
  20316. */
  20317. startRecording(callback) {
  20318. let _function = (screenStream) => {
  20319. this.addStreamStopListener(screenStream, () => {
  20320. console.log("流停止监听");
  20321. this.stopRecording();
  20322. this.$emit("streamStop", {});
  20323. // this.stopRecording();
  20324. });
  20325. var options = {
  20326. type: "video",
  20327. mimeType: "video/webm",
  20328. disableLogs: false,
  20329. getNativeBlob: false, // enable it for longer recordings
  20330. ignoreMutedMedia: false,
  20331. };
  20332. // this.video.srcObject = screenStream;
  20333. this.recorder = RecordRTC(screenStream, options);
  20334. this.recorder.startRecording();
  20335. this.recorder.screen = screenStream;
  20336. this.videoStart = true;
  20337. // callback(true);
  20338. };
  20339. this.getAudioVideo({ audio: true })
  20340. .then((res) => {
  20341. this.captureScreen(_function, true);
  20342. console.log("已点击允许,开启成功");
  20343. })
  20344. .catch((err) => {
  20345. // console.log('浏览器不支持,请更换浏览器')
  20346. // } else {
  20347. this.captureScreen(_function, false);
  20348. console.log("请检查是否存在麦克风");
  20349. });
  20350. },
  20351. /**
  20352. * 停止录制
  20353. */
  20354. stopRecording(callback) {
  20355. this.recorder.stopRecording(() => {
  20356. // this.video.src = this.video.srcObject = null;
  20357. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  20358. const url = URL.createObjectURL(this.recorder.getBlob());
  20359. const a = document.createElement("a"); //this.fileName+
  20360. let videoFile = new File(
  20361. [this.recorder.getBlob()],
  20362. this.courseDetail.title + "录屏.mp4",
  20363. {
  20364. type: "video/mp4",
  20365. }
  20366. );
  20367. let downloadUrl = URL.createObjectURL(videoFile);
  20368. if(this.$refs.classRoomHelperRef){
  20369. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  20370. }
  20371. document.body.appendChild(a);
  20372. a.style.display = "none";
  20373. a.href = url;
  20374. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  20375. a.click();
  20376. this.recorder.screen.stop();
  20377. this.recorder.destroy();
  20378. this.recorder = null;
  20379. this.videoStart = false;
  20380. // callback(false);
  20381. });
  20382. },
  20383. //初始化
  20384. captureScreen(callback, type) {
  20385. if (navigator.getDisplayMedia) {
  20386. //录制结束,文件下载
  20387. navigator
  20388. .getDisplayMedia({
  20389. video: true,
  20390. })
  20391. .then((screenStream) => {
  20392. if (type) {
  20393. navigator.mediaDevices
  20394. .getUserMedia({ audio: true })
  20395. .then((mic) => {
  20396. screenStream.addTrack(mic.getTracks()[0]);
  20397. callback(screenStream);
  20398. });
  20399. } else {
  20400. callback(screenStream);
  20401. }
  20402. })
  20403. .catch(function (error) {
  20404. console.log("error", error);
  20405. });
  20406. } else if (navigator.mediaDevices.getDisplayMedia) {
  20407. navigator.mediaDevices
  20408. .getDisplayMedia({
  20409. video: true,
  20410. })
  20411. .then((screenStream) => {
  20412. if (type) {
  20413. navigator.mediaDevices
  20414. .getUserMedia({ audio: true })
  20415. .then((mic) => {
  20416. screenStream.addTrack(mic.getTracks()[0]);
  20417. callback(screenStream);
  20418. });
  20419. } else {
  20420. callback(screenStream);
  20421. }
  20422. })
  20423. .catch(function (error) {
  20424. console.log("error", error);
  20425. });
  20426. } else {
  20427. var error = "getDisplayMedia API are not supported in this browser.";
  20428. console.log("error", error);
  20429. alert(error);
  20430. }
  20431. },
  20432. //流监听
  20433. addStreamStopListener(stream, callback) {
  20434. stream.addEventListener(
  20435. "ended",
  20436. function () {
  20437. callback();
  20438. callback = function () {};
  20439. },
  20440. false
  20441. );
  20442. stream.addEventListener(
  20443. "inactive",
  20444. function () {
  20445. callback();
  20446. callback = function () {};
  20447. },
  20448. false
  20449. );
  20450. stream.getTracks().forEach(function (track) {
  20451. track.addEventListener(
  20452. "ended",
  20453. function () {
  20454. callback();
  20455. callback = function () {};
  20456. },
  20457. false
  20458. );
  20459. track.addEventListener(
  20460. "inactive",
  20461. function () {
  20462. callback();
  20463. callback = function () {};
  20464. },
  20465. false
  20466. );
  20467. });
  20468. },
  20469. updateGroup() {
  20470. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20471. this.dialogVisibleGroup2 = true;
  20472. },
  20473. numberPan() {
  20474. if (
  20475. /[^\d]/.test(this.groupJson.number) ||
  20476. this.groupJson.number < 2 ||
  20477. this.groupJson.number > 10
  20478. ) {
  20479. this.$message.error("请输入2-10的数字");
  20480. this.groupJson.number = "";
  20481. }
  20482. },
  20483. updateGroupJson() {
  20484. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  20485. if (
  20486. this.groupStudentUid[this.toolindex][i].length >
  20487. this.groupJson2.number
  20488. ) {
  20489. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  20490. return;
  20491. }
  20492. }
  20493. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  20494. this.islock = this.groupJson.islock == 1 ? true : false;
  20495. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20496. this.taskCount
  20497. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  20498. let params = [
  20499. {
  20500. cid: this.id,
  20501. chapters: JSON.stringify(this.chapInfoList),
  20502. uid: this.userid,
  20503. unitIndex: this.courseType,
  20504. },
  20505. ];
  20506. this.ajax
  20507. .post(this.$store.state.api + "updateWorkNew4", params)
  20508. .then((res) => {
  20509. this.$message.success("设置成功");
  20510. this.getCourseDetail(2);
  20511. this.dialogVisibleGroup2 = false;
  20512. this.groupJson2 = {};
  20513. this.$forceUpdate();
  20514. })
  20515. .catch((err) => {
  20516. this.$message.error("网络不佳");
  20517. console.error(err);
  20518. });
  20519. },
  20520. lockChair() {
  20521. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20522. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  20523. this.updateGroupJson();
  20524. },
  20525. selectGroup(index) {
  20526. this.getCourseDetail(2, index);
  20527. },
  20528. joinGroup(index) {
  20529. if (this.groupJson.islock == 2) {
  20530. this.$message.error("位置已被锁定,无法加入");
  20531. return;
  20532. }
  20533. if (
  20534. this.groupStudent[this.toolindex][index].length >
  20535. this.groupJson.number ||
  20536. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  20537. ) {
  20538. this.$message.error("位置已满,无法加入");
  20539. return;
  20540. }
  20541. let params = [
  20542. {
  20543. cid: this.id,
  20544. stage: this.courseType,
  20545. task: this.taskCount,
  20546. tool: this.toolindex,
  20547. g: index,
  20548. uid: this.userid,
  20549. },
  20550. ];
  20551. this.ajax
  20552. .post(this.$store.state.api + "joinGroup", params)
  20553. .then((res) => {
  20554. this.$message.success("加入成功");
  20555. this.getCourseDetail(2);
  20556. })
  20557. .catch((err) => {
  20558. this.$message.error("网络不佳");
  20559. console.error(err);
  20560. });
  20561. },
  20562. exitGroup(id) {
  20563. if (this.groupJson.islock == 2) {
  20564. this.$message.error("位置已被锁定,无法退出");
  20565. return;
  20566. }
  20567. let params = [
  20568. {
  20569. gid: id,
  20570. },
  20571. ];
  20572. this.ajax
  20573. .post(this.$store.state.api + "exitGroup", params)
  20574. .then((res) => {
  20575. this.$message.success("退出成功");
  20576. this.getCourseDetail(2);
  20577. })
  20578. .catch((err) => {
  20579. this.$message.error("网络不佳");
  20580. console.error(err);
  20581. });
  20582. },
  20583. groupUpload(index, task, gindex) {
  20584. this.taskCount = task;
  20585. this.toolindex = index;
  20586. this.groupIndex = gindex;
  20587. this.dialogVisibleGroupWork = true;
  20588. },
  20589. updateGroupChair(user) {
  20590. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  20591. el.label = index;
  20592. return index != user.group;
  20593. });
  20594. this.updateGroupUser = user;
  20595. this.dialogVisibleUpdateGroup = true;
  20596. },
  20597. updateChair() {
  20598. if (
  20599. this.groupStudent[this.toolindex][this.checkChair].length >
  20600. this.groupJson.number ||
  20601. this.groupStudent[this.toolindex][this.checkChair].length ==
  20602. this.groupJson.number
  20603. ) {
  20604. this.$message.error("位置已满,无法加入");
  20605. return;
  20606. }
  20607. let params = [
  20608. {
  20609. cid: this.id,
  20610. stage: this.courseType,
  20611. task: this.taskCount,
  20612. tool: this.toolindex,
  20613. g: this.checkChair,
  20614. uid: this.updateGroupUser.userid,
  20615. },
  20616. ];
  20617. this.ajax
  20618. .post(this.$store.state.api + "joinGroup", params)
  20619. .then((res) => {
  20620. this.$message.success("修改成功");
  20621. this.updateGroupUser = {};
  20622. this.checkChair = "";
  20623. this.updateGroupArray = {};
  20624. this.dialogVisibleUpdateGroup = false;
  20625. this.getCourseDetail(2);
  20626. })
  20627. .catch((err) => {
  20628. this.$message.error("网络不佳");
  20629. console.error(err);
  20630. });
  20631. },
  20632. deleteGroupChair(gindex) {
  20633. this.checkDeleteGroup = [];
  20634. this.deleteGroupUser = JSON.parse(
  20635. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  20636. );
  20637. this.deleteGroupArray = this.groupJson.group[gindex];
  20638. this.groupIndex = gindex;
  20639. this.dialogVisibleDeleteGroup = true;
  20640. },
  20641. async deleteChair() {
  20642. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  20643. const gid =
  20644. this.groupStudent[this.toolindex][this.groupIndex][
  20645. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  20646. this.checkDeleteGroup[i]
  20647. )
  20648. ];
  20649. let params = [
  20650. {
  20651. gid: gid.id,
  20652. },
  20653. ];
  20654. var a = await this.deleteChairA(params);
  20655. if (i == this.checkDeleteGroup.length - 1) {
  20656. this.$message.success("退出成功");
  20657. this.dialogVisibleDeleteGroup = false;
  20658. this.deleteGroupUser = [];
  20659. this.deleteGroupArray = {};
  20660. this.groupIndex = "";
  20661. this.checkDeleteGroup = [];
  20662. this.getCourseDetail(2);
  20663. }
  20664. }
  20665. },
  20666. deleteChairA(params) {
  20667. return new Promise((resolve, reject) => {
  20668. this.ajax
  20669. .post(this.$store.state.api + "exitGroup", params)
  20670. .then((res) => {
  20671. resolve(1);
  20672. })
  20673. .catch((err) => {
  20674. this.$message.error("网络不佳");
  20675. console.error(err);
  20676. });
  20677. });
  20678. },
  20679. contract(i) {
  20680. if (this.isCloseList[i].isClose == 0) {
  20681. this.isCloseList[i].isClose = 1;
  20682. } else {
  20683. this.isCloseList[i].isClose = 0;
  20684. }
  20685. this.$forceUpdate();
  20686. },
  20687. openWordCloud(toolindex) {
  20688. this.wordCloudData = '';
  20689. let array = [];
  20690. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  20691. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  20692. array.push({ name: works });
  20693. }
  20694. if (this.isGroup) {
  20695. for (var i = 0; i < this.courseGroup.group.length; i++) {
  20696. let works = this.courseGroup.group[i].works[toolindex];
  20697. for (var j = 0; j < works.length; j++) {
  20698. let answer = JSON.parse(works[j].works)[0].answer;
  20699. array.push({ name: answer });
  20700. }
  20701. }
  20702. }
  20703. let _result = ''
  20704. array.forEach(e=>{
  20705. _result +=e.name+','
  20706. })
  20707. this.wordCloudData = _result;
  20708. this.dialogVisibleWordCloud = true;
  20709. this.wordCloudKey += 1;
  20710. },
  20711. uploadWorks(i) {
  20712. this.$confirm("确定导出作业吗?", "提示", {
  20713. confirmButtonText: "确定",
  20714. cancelButtonText: "取消",
  20715. type: "warning",
  20716. })
  20717. .then(() => {
  20718. const loading = this.$loading.service({
  20719. background: "rgba(255, 255, 255, 0.7)",
  20720. target: document.body,
  20721. text: "文件加载中...",
  20722. });
  20723. const _worksStudent = this.worksStudent;
  20724. let url = [];
  20725. var counts = {};
  20726. for (var l = 0; l < _worksStudent[i].length; l++) {
  20727. var item = _worksStudent[i][l];
  20728. var name = item.sName;
  20729. if (!counts.hasOwnProperty(name)) {
  20730. counts[name] = 0;
  20731. } else {
  20732. counts[name]++;
  20733. }
  20734. if (counts[name] > 0) {
  20735. item.sName += " (" + counts[name] + ")";
  20736. }
  20737. }
  20738. for (var l = 0; l < _worksStudent[i].length; l++) {
  20739. var item = _worksStudent[i][l];
  20740. if (
  20741. item.works.indexOf(
  20742. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  20743. ) !== -1 &&
  20744. item.works.indexOf("img") === -1
  20745. ) {
  20746. url.push({ name: item.sName, url: item.works });
  20747. }
  20748. }
  20749. // var toolList = [
  20750. // { name: "电子白板", tool: 1 },
  20751. // { name: "思维导图", tool: 3 },
  20752. // { name: "协同文档", tool: 6 },
  20753. // { name: "思维网格", tool: 7 },
  20754. // { name: "素材库", tool: 8 },
  20755. // { name: "学习资料", tool: 17 },
  20756. // { name: "便签", tool: 2 },
  20757. // { name: "问卷调查", tool: 4 },
  20758. // { name: "选择题", tool: 45 },
  20759. // { name: "倒计时", tool: 10 },
  20760. // { name: "问答", tool: 15 },
  20761. // { name: "课程设计", tool: 26 },
  20762. // { name: "训练服务器", tool: 18 },
  20763. // { name: "作业提交", tool: 16 },
  20764. // { name: "批量上传", tool: 50 },
  20765. // { name: "AIoT Blockly", tool: 21 },
  20766. // { name: "AI Python", tool: 23 },
  20767. // { name: "AI Blockly", tool: 24 },
  20768. // { name: "目标管理", tool: 25 },
  20769. // { name: "数学画板", tool: 31 },
  20770. // { name: "翻译", tool: 28 },
  20771. // { name: "魔盒识字", tool: 37 },
  20772. // { name: "数学画板", tool: 31 },
  20773. // { name: "24点", tool: 38 },
  20774. // { name: "GeoGebra", tool: 39 },
  20775. // { name: "源码编辑", tool: 32 },
  20776. // { name: "个人评价", tool: 40 },
  20777. // { name: "选择匹配", tool: 41 },
  20778. // { name: "汉字宫", tool: 44 },
  20779. // { name: "排序", tool: 47 },
  20780. // { name: "表格", tool: 48 },
  20781. // { name: "文档", tool: 52 },
  20782. // { name: "学生分组", tool: 49 },
  20783. // { name: "CocoPi", tool: 57 },
  20784. // { name: "模拟驾驶", tool: 58 },
  20785. // { name: "路径搜索", tool: 59 },
  20786. // { name: "深度学习", tool: 60 },
  20787. // { name: "全历史", tool: 61 },
  20788. // { name: "交互视频", tool: 62 },
  20789. // { name: "海龟编程", tool: 63 },
  20790. // { name: "挑人", tool: 65 },
  20791. // { name: "公式编辑", tool: 66 },
  20792. // { name: "分子结构", tool: 67 },
  20793. // { name: "时间轴", tool: 68 },
  20794. // ];
  20795. // var toolName = "";
  20796. // for(var w = 0;w<toolList.length;w++){
  20797. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  20798. // toolName = toolList[w].name;
  20799. // }
  20800. // }
  20801. console.log(url);
  20802. this.downLoadAll(url, loading);
  20803. })
  20804. .catch(() => {});
  20805. },
  20806. downLoadAll(url, loading) {
  20807. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  20808. const zip = new JSZip();
  20809. const cache = {};
  20810. const promises = [];
  20811. data.forEach((item) => {
  20812. const promise = getFile(item.url).then((data) => {
  20813. if (data.data != 1) {
  20814. // 下载文件, 并存成ArrayBuffer对象
  20815. const file_name =
  20816. item.name +
  20817. "." +
  20818. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  20819. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  20820. cache[file_name] = data.data;
  20821. }
  20822. });
  20823. promises.push(promise);
  20824. });
  20825. Promise.all(promises).then(() => {
  20826. zip.generateAsync({ type: "blob" }).then((content) => {
  20827. // 生成二进制流
  20828. FileSaver.saveAs(
  20829. content,
  20830. this.courseDetail.title + "-" + "作业提交工具.zip"
  20831. ); // 利用file-saver保存文件 自定义文件名
  20832. setTimeout(() => {
  20833. loading.close();
  20834. }, 2000);
  20835. });
  20836. });
  20837. },
  20838. pickStudent(stu) {
  20839. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  20840. return;
  20841. }
  20842. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  20843. confirmButtonText: "确定",
  20844. cancelButtonText: "取消",
  20845. type: "warning",
  20846. })
  20847. .then(() => {
  20848. let params = [
  20849. {
  20850. uid: stu.userid,
  20851. cid: this.id,
  20852. stage: this.courseType,
  20853. task: this.taskCount,
  20854. tool: this.toolindex,
  20855. },
  20856. ];
  20857. this.ajax
  20858. .post(this.$store.state.api + "updateCoursePick", params)
  20859. .then((res) => {
  20860. this.$message.success("操作成功");
  20861. this.getPick();
  20862. })
  20863. .catch((err) => {
  20864. this.$message.error("网络不佳");
  20865. console.error(err);
  20866. });
  20867. })
  20868. .catch(() => {});
  20869. },
  20870. selectUser(){
  20871. let params = {
  20872. userid: this.userid,
  20873. };
  20874. this.ajax
  20875. .get(this.$store.state.api + "selectUser", params)
  20876. .then((res) => {
  20877. this.userMes = res.data[0];
  20878. })
  20879. .catch((err) => {
  20880. console.error(err);
  20881. });
  20882. },
  20883. setEngText(i){
  20884. this.newEngIndex = i;
  20885. this.$forceUpdate();
  20886. },
  20887. addCorrect(){
  20888. this.$confirm("你确定提交批改嘛?", "提示", {
  20889. confirmButtonText: "确定",
  20890. showCancelButton: false,
  20891. closeOnClickModal: false,
  20892. type: "warning",
  20893. })
  20894. .then(() => {
  20895. let params = {
  20896. cid: this.id,
  20897. s: parseInt(this.courseType),
  20898. t: this.taskCount,
  20899. tool: this.toolindex,
  20900. wid: this.engWid,
  20901. c: this.userid,
  20902. 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) : "",
  20903. };
  20904. this.ajax
  20905. .get(this.$store.state.api + "addEngC", params)
  20906. .then((res) => {
  20907. this.$message.success("提交成功");
  20908. this.engUpdateDialogVisible = false;
  20909. })
  20910. .catch((err) => {
  20911. console.error(err);
  20912. });
  20913. })
  20914. .catch(() => {});
  20915. },
  20916. selectEngC(id,z){
  20917. let params = {
  20918. workid: id,
  20919. };
  20920. this.ajax
  20921. .get(this.$store.state.api + "selectEngC", params)
  20922. .then((res) => {
  20923. if(res.data[0].length == 0){
  20924. this.newEnglishList.engTitle = z.engTitle;
  20925. this.newEnglishList.engText = z.engText;
  20926. }else{
  20927. var a = res.data[0];
  20928. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  20929. if(this.userMes[0].type == 2){
  20930. var snum = 0;
  20931. for(var i = 0;i<a.length;i++){
  20932. if(this.userMes[0].userid == a[i].correct){
  20933. this.newEnglishList = JSON.parse(a[i].cWork);
  20934. snum = 1;
  20935. }
  20936. }
  20937. if(snum == 0){
  20938. this.newEnglishList = { engTitle:"",engText:"" };
  20939. this.newEnglishList.engTitle = z.engTitle;
  20940. this.newEnglishList.engText = z.engText;
  20941. }
  20942. }else if(this.userMes[0].type == 1){
  20943. var num = 0;
  20944. for(var w= 0;w<a.length;w++){
  20945. if(this.userMes[0].userid == a[w].correct){
  20946. num = 1;
  20947. }
  20948. }
  20949. if(num == 0){
  20950. this.isNoUserid = true;
  20951. var c = JSON.parse(JSON.stringify(z));
  20952. this.oldEnglishJson1 = c;
  20953. }else{
  20954. this.isNoUserid = false;
  20955. }
  20956. var b = a.sort((item, index) => {
  20957. console.log(item)
  20958. if (item.correct === this.userMes[0].userid) {
  20959. return -1; // 将a移到前面
  20960. } else if (index.correct === this.userMes[0].userid) {
  20961. return 1; // 将b移到前面
  20962. } else {
  20963. return 0; // 保持默认顺序
  20964. }
  20965. });
  20966. for(var p = 0;p<b.length;p++){
  20967. for(var y = 0;y<ppp.length;y++){
  20968. if(b[p].id == ppp[y].id){
  20969. b[p].cWork = JSON.parse(ppp[y].cWork);
  20970. break
  20971. }
  20972. }
  20973. }
  20974. this.newEnglishList1 = b;
  20975. }
  20976. }
  20977. this.greyType = false;
  20978. setTimeout(() => {
  20979. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20980. if(this.newEnglishList1.length > 0){
  20981. if(this.isNoUserid == true){
  20982. this.engListLength = this.newEnglishList1.length + 1;
  20983. this.newEngIndex = -1;
  20984. }else{
  20985. this.engListLength = this.newEnglishList1.length;
  20986. this.newEngIndex = 0;
  20987. }
  20988. }
  20989. if(this.userMes[0].type == 2){
  20990. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20991. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  20992. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  20993. }else if(this.newEngIndex == -1){
  20994. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20995. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  20996. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  20997. }
  20998. }, 500);
  20999. this.engUpdateDialogVisible = true;
  21000. this.$forceUpdate();
  21001. })
  21002. .catch((err) => {
  21003. console.error(err);
  21004. });
  21005. },
  21006. getPick() {
  21007. if(this.getPickLoading) return
  21008. this.getPickLoading = true
  21009. let params = {
  21010. cid: this.id,
  21011. };
  21012. this.ajax
  21013. .get(this.$store.state.api + "getPick", params)
  21014. .then((res) => {
  21015. let array = [];
  21016. for (var i = 0; i < res.data[0].length; i++) {
  21017. array.push(res.data[0][i].userid);
  21018. }
  21019. this.isPickStudent = array;
  21020. if (array.indexOf(this.userid) !== -1) {
  21021. this.$confirm("你被老师选到啦!", "提示", {
  21022. confirmButtonText: "确定",
  21023. showCancelButton: false,
  21024. closeOnClickModal: false,
  21025. type: "warning",
  21026. })
  21027. .then(() => {
  21028. let pa = [
  21029. {
  21030. uid: this.userid,
  21031. cid: this.id,
  21032. },
  21033. ];
  21034. this.ajax
  21035. .post(this.$store.state.api + "deletePick", pa)
  21036. .then((res) => {
  21037. this.getPick();
  21038. })
  21039. .catch((err) => {
  21040. this.$message.error("网络不佳");
  21041. console.error(err);
  21042. });
  21043. })
  21044. .catch(() => {});
  21045. }
  21046. this.getPickLoading = false
  21047. })
  21048. .catch((err) => {
  21049. this.getPickLoading = false
  21050. this.$message.error("网络不佳");
  21051. console.error(err);
  21052. });
  21053. },
  21054. foldEva() {
  21055. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  21056. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  21057. } else {
  21058. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  21059. setTimeout(() => {
  21060. this.checkEva();
  21061. setTimeout(() => {
  21062. this.checkEva();
  21063. }, 500);
  21064. }, 0);
  21065. }
  21066. this.$forceUpdate();
  21067. },
  21068. panToolHeight(tool) {
  21069. var _tool = document.querySelectorAll('#'+tool)[0]
  21070. var _toolA = _tool ? _tool.offsetHeight : 0
  21071. var _toolC = 0
  21072. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  21073. let boolean2 = (_toolA > _toolC) ? true : false
  21074. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  21075. this.$forceUpdate();
  21076. },
  21077. async checkLink(url) {
  21078. // console.log(url)
  21079. let _url = url
  21080. try {
  21081. const response = await fetch(url);
  21082. if(!response.ok){
  21083. _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]))
  21084. }
  21085. // console.log(response.ok)
  21086. } catch (error) {
  21087. console.error('Error checking link:', error);
  21088. // console.log(false)
  21089. _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]))
  21090. }
  21091. // console.log(_url)
  21092. return _url
  21093. },
  21094. getScoreList(){
  21095. let params = {
  21096. cid: this.id,
  21097. };
  21098. this.ajax
  21099. .get(this.$store.state.api + "selectTestCourseByCid", params)
  21100. .then((res) => {
  21101. let result = res.data;
  21102. this.scoreList.datalist = result[0];
  21103. this.scoreList.isScoreList = result[1];
  21104. })
  21105. .catch((err) => {
  21106. console.error(err);
  21107. });
  21108. },
  21109. setClassRoomHelperWidth(width){
  21110. this.classRoomHelperWidth = width
  21111. },
  21112. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  21113. this.$refs.choseWorksDetailDialogRef.open({
  21114. toolType:tooc,
  21115. tType: this.tType,
  21116. toolIndex: toolIndex
  21117. });
  21118. this.changeSplitScreenBehavior({
  21119. code: 1,
  21120. form: {
  21121. toolType:tooc,
  21122. toolIndex: toolIndex,
  21123. courseType: this.courseType,
  21124. taskCount: this.taskCount,
  21125. type: 0
  21126. }
  21127. });
  21128. },
  21129. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  21130. this.$refs.statisticalAnalysisRef.open({
  21131. worksStudent: this.worksStudent[toolIndex],
  21132. tType: this.tType,
  21133. toolIndex: toolIndex
  21134. });
  21135. this.changeSplitScreenBehavior({
  21136. code: 2,
  21137. form: {
  21138. toolType:4,
  21139. courseType: this.courseType,
  21140. taskCount: this.taskCount,
  21141. toolIndex: toolIndex,
  21142. type: 0
  21143. }
  21144. });
  21145. },
  21146. statisticalAnalysisRefresh(toolIndex) {
  21147. this.$refs.statisticalAnalysisRef.refreshData({
  21148. worksStudent: this.worksStudent[toolIndex],
  21149. tType: this.tType,
  21150. toolIndex: toolIndex
  21151. });
  21152. },
  21153. async splitScreenBehavior(type = 0) {
  21154. // return;
  21155. if (this.splitScreenData.loading)
  21156. return this.$message.info("操作过快,请稍等");
  21157. if (type == 0) {
  21158. //关闭分屏
  21159. this.splitScreenData.isOpen = false;
  21160. // this.splitScreenData.userId = "";
  21161. // this.splitScreenData.uid = "";
  21162. this.splitScreenData.behavior = null;
  21163. await this.updateSplitScreenData(1);
  21164. this.$message.success("已关闭分屏模式");
  21165. this.studentFreePreview(false);
  21166. this.OpenJobPreview(false);
  21167. // this.followingMode(false);
  21168. } else if (type == 1) {
  21169. //开启分屏
  21170. this.splitScreenData.isOpen = true;
  21171. this.splitScreenData.userId = this.userid;
  21172. this.splitScreenData.uid = this.splitScreenData.myUid;
  21173. this.splitScreenData.behavior = null;
  21174. let status = await this.updateSplitScreenData(0);
  21175. this.changeSplitScreenBehavior({form:{}})
  21176. if (status == 1) {
  21177. this.$message.success("已开启分屏");
  21178. this.studentFreePreview(false);
  21179. this.OpenJobPreview(true);
  21180. // this.followingMode(true);
  21181. } else {
  21182. this.splitScreenData.isOpen = false;
  21183. this.splitScreenData.userId = "";
  21184. this.splitScreenData.uid = "";
  21185. this.splitScreenData.behavior = null;
  21186. this.$message.success("分屏开启失败");
  21187. }
  21188. }
  21189. },
  21190. enterFullScreen() {
  21191. let element = document.documentElement;
  21192. if (element.requestFullscreen) {
  21193. element.requestFullscreen();
  21194. } else if (element.mozRequestFullScreen) { /* Firefox */
  21195. element.mozRequestFullScreen();
  21196. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  21197. element.webkitRequestFullscreen();
  21198. } else if (element.msRequestFullscreen) { /* IE/Edge */
  21199. element.msRequestFullscreen();
  21200. }
  21201. },
  21202. exitFullScreen() {
  21203. if (document.exitFullscreen) {
  21204. document.exitFullscreen();
  21205. } else if (document.mozCancelFullScreen) { /* Firefox */
  21206. document.mozCancelFullScreen();
  21207. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  21208. document.webkitExitFullscreen();
  21209. } else if (document.msExitFullscreen) { /* IE/Edge */
  21210. document.msExitFullscreen();
  21211. }
  21212. },
  21213. confirmOpen(){
  21214. this.splitScreenData.isOpen = true;
  21215. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  21216. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  21217. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  21218. this.confirmOpenDig = false
  21219. if (!document.fullscreenElement) {
  21220. this.enterFullScreen();
  21221. }
  21222. // if (this.timer2) {
  21223. // clearInterval(this.timer2);
  21224. // this.timer2 = null;
  21225. // }
  21226. // this.timer2 = setInterval(()=> {
  21227. // this.getSplitScreenData();//获取分屏数据
  21228. // }, 1000);
  21229. this.$message.success("分屏模式已开启");
  21230. },
  21231. getSplitScreenData() {
  21232. // return;
  21233. // if (this.tType != 1) return;
  21234. if(this.getSplitScreenDataLoading) return
  21235. this.getSplitScreenDataLoading = true
  21236. let params = {
  21237. cid: this.id
  21238. };
  21239. this.ajax
  21240. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  21241. .then(async res => {
  21242. let data = res.data[0][0]["splitScreenData"];
  21243. console.log("获取了分屏数:", data);
  21244. if (data) {
  21245. data = JSON.parse(data);
  21246. if (
  21247. !this.splitScreenData.isOpen &&
  21248. data.isOpen &&
  21249. this.splitScreenData.myUid == data.uid
  21250. ) {
  21251. this.splitScreenData.isOpen = false;
  21252. this.splitScreenData.userId = "";
  21253. this.splitScreenData.uid = "";
  21254. this.splitScreenData.behavior = null;
  21255. await this.updateSplitScreenData(1);
  21256. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  21257. this.confirmOpenDig = true
  21258. this.confirmOpenDigData = data
  21259. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  21260. this.splitScreenData.isOpen = false;
  21261. this.splitScreenData.userId = "";
  21262. this.splitScreenData.uid = "";
  21263. this.splitScreenData.behavior = null;
  21264. this.$message.error("已结束分屏模式");
  21265. } else if (this.splitScreenData.isOpen && data.isOpen) {
  21266. this.splitScreenData.isOpen = true;
  21267. this.splitScreenData.uid = data.uid;
  21268. this.splitScreenData.userId = data.userId;
  21269. this.splitScreenData.behavior = data.behavior;
  21270. }
  21271. this.doSplitScreenBehavior();
  21272. } else {
  21273. if (this.splitScreenData.isOpen) {
  21274. this.splitScreenData.isOpen = false;
  21275. this.splitScreenData.userId = "";
  21276. this.splitScreenData.uid = "";
  21277. this.splitScreenData.behavior = null;
  21278. this.$message.error("已结束分屏模式");
  21279. // if (this.timer2) {
  21280. // clearInterval(this.timer2);
  21281. // this.timer2 = null;
  21282. // }
  21283. // this.timer2 = setInterval(()=> {
  21284. // this.getSplitScreenData();//获取分屏数据
  21285. // }, 5000);
  21286. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  21287. confirmButtonText: '确定', //确认按钮的文字
  21288. showCancelButton: false, //是否显示取消按钮
  21289. showClose: false, //是否显示关闭按钮
  21290. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  21291. type: "warning",
  21292. })
  21293. .then(() => {
  21294. if (document.fullscreenElement) {
  21295. this.exitFullScreen();
  21296. }
  21297. })
  21298. .catch(() => {});
  21299. }
  21300. }
  21301. this.getSplitScreenDataLoading = false
  21302. })
  21303. .catch(e => {
  21304. this.getSplitScreenDataLoading = false
  21305. console.log("获取分屏数出错:", e);
  21306. });
  21307. },
  21308. doSplitScreenBehavior() {
  21309. if (
  21310. this.splitScreenData.isOpen &&
  21311. this.splitScreenData.uid != this.splitScreenData.myUid
  21312. ) {
  21313. let behavior = this.splitScreenData.behavior;
  21314. if (behavior) {
  21315. if (behavior.code === 99) {
  21316. //初始化
  21317. this.fullDialogVisible = false;
  21318. if(this.$refs.choseWorksDetailDialogRef.show){
  21319. this.$refs.choseWorksDetailDialogRef.close();
  21320. }
  21321. if(this.$refs.statisticalAnalysisRef.show){
  21322. this.$refs.statisticalAnalysisRef.close();
  21323. }
  21324. }
  21325. if (behavior.code === 0) {
  21326. //开启内容列表弹窗
  21327. this.checkFileFull1(behavior.form.t, behavior.form.f);
  21328. }else{
  21329. this.fullDialogVisible = false;
  21330. }
  21331. if (behavior.code === 1) {
  21332. //关于选择题的作业详细的操作
  21333. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  21334. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  21335. this.courseType = behavior.form.courseType;
  21336. this.taskCount = behavior.form.taskCount;
  21337. }
  21338. this.$nextTick(() => {
  21339. if (this.$refs.choseWorksDetailDialogRef.show) {
  21340. //已经打开了
  21341. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  21342. } else {
  21343. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  21344. }
  21345. });
  21346. }else{
  21347. this.$refs.choseWorksDetailDialogRef.close()
  21348. }
  21349. if(behavior.code === 2){
  21350. if(this.$refs.statisticalAnalysisRef.show){
  21351. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  21352. }else{
  21353. this.$refs.statisticalAnalysisRef.open({
  21354. worksStudent: this.worksStudent[behavior.form.toolIndex],
  21355. tType: this.tType,
  21356. toolIndex: behavior.form.toolIndex
  21357. });
  21358. }
  21359. }else{
  21360. this.$refs.statisticalAnalysisRef.close();
  21361. }
  21362. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  21363. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  21364. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  21365. if (behavior.form.courseType != this.courseType ||
  21366. behavior.form.taskCount != this.taskCount ||
  21367. behavior.form.toolType != this.toolindex
  21368. ) {
  21369. var a = document.scrollingElement;
  21370. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  21371. if (target) {
  21372. target.scrollIntoView(true);
  21373. setTimeout(()=>{
  21374. let scrollBody = document.querySelector('.body_student').parentElement
  21375. scrollBody.scrollTop = scrollBody.scrollTop - 100
  21376. }, 0);
  21377. // setTimeout(() => {
  21378. // a.scrollTop = 0
  21379. // }, 0);
  21380. }
  21381. }
  21382. if(this.courseType !=behavior.form.courseType){
  21383. this.courseType = behavior.form.courseType;
  21384. }
  21385. if(this.taskCount !=behavior.form.taskCount){
  21386. this.taskCount = behavior.form.taskCount;
  21387. }
  21388. if((behavior.form.toolType || behavior.form.toolType == 0) && (this.toolindex != behavior.form.toolType)){
  21389. this.toolindex = behavior.form.toolType;
  21390. }
  21391. // if(behavior.form.navId){
  21392. // this.navId = behavior.form.navId
  21393. // }
  21394. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  21395. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  21396. console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  21397. this.getCourseDetail()
  21398. }
  21399. this.setContent2(false)
  21400. }
  21401. } else {
  21402. }
  21403. }
  21404. },
  21405. updateSplitScreenData(empty = 0) {
  21406. return new Promise(resolve => {
  21407. if(this.userid!==this.courseDetail.userid){
  21408. if(!this.courseDetail.userid){
  21409. return setTimeout(()=>{
  21410. this.updateSplitScreenData(empty)
  21411. },2000)
  21412. }
  21413. return;
  21414. };
  21415. if (
  21416. this.splitScreenData.uid == this.splitScreenData.myUid &&
  21417. this.splitScreenData.userId == this.userid
  21418. ) {
  21419. this.splitScreenData.loading = true;
  21420. let params = [
  21421. {
  21422. cid: this.id,
  21423. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  21424. }
  21425. ];
  21426. this.ajax
  21427. .post(
  21428. this.$store.state.api + "update_courseSplitScreenData",
  21429. params
  21430. )
  21431. .then(res => {
  21432. this.splitScreenData.loading = false;
  21433. if (res.data == 1) {
  21434. resolve(1);
  21435. console.log("修改分屏数据成功");
  21436. }
  21437. })
  21438. .catch(e => {
  21439. this.splitScreenData.loading = false;
  21440. console.log("修改分屏数据失败", e);
  21441. resoleve(0);
  21442. });
  21443. } else if (empty == 2 && this.tType == 1) {
  21444. let params = [
  21445. {
  21446. cid: this.id,
  21447. nData: ""
  21448. }
  21449. ];
  21450. return this.ajax
  21451. .post(
  21452. this.$store.state.api + "update_courseSplitScreenData",
  21453. params
  21454. )
  21455. .then(_ => resolve(1))
  21456. .catch(_ => resolve(0));
  21457. } else {
  21458. return resolve(0);
  21459. }
  21460. });
  21461. },
  21462. changeSplitScreenBehavior(newValue) {
  21463. if (
  21464. this.splitScreenData.isOpen &&
  21465. this.splitScreenData.uid == this.splitScreenData.myUid
  21466. ) {
  21467. let _behavior = null;
  21468. if(!newValue){
  21469. _behavior = {}
  21470. }else{
  21471. _behavior = newValue
  21472. }
  21473. if(_behavior.form){
  21474. _behavior.form.taskCount = this.taskCount;
  21475. _behavior.form.courseType = this.courseType
  21476. }else{
  21477. _behavior.form = {
  21478. taskCount:this.taskCount,
  21479. courseType:this.courseType
  21480. }
  21481. }
  21482. this.splitScreenData.behavior = _behavior;
  21483. this.updateSplitScreenData(0);
  21484. }
  21485. },
  21486. studentFreePreview(flag) {
  21487. this.IsLookOpen = flag;
  21488. this.followingMode(flag)
  21489. this.updateLookOpen();
  21490. },
  21491. OpenJobPreview(flag) {
  21492. this.sIsOpen = flag;
  21493. this.updateSLook();
  21494. },
  21495. followingMode(flag) {
  21496. this.IsFollow = flag;
  21497. this.updateFollow();
  21498. },
  21499. StulookMode(flag) {
  21500. this.IsStulook = flag;
  21501. this.updateIsStulook();
  21502. }
  21503. },
  21504. directives: {
  21505. // 使用局部注册指令的方式
  21506. resize: {
  21507. // 指令的名称
  21508. bind(el, binding) {
  21509. // el为绑定的元素,binding为绑定给指令的对象
  21510. let width = "",
  21511. height = "";
  21512. function isReize() {
  21513. const style = document.defaultView.getComputedStyle(el);
  21514. if (width !== style.width || height !== style.height) {
  21515. binding.value(); // 关键
  21516. }
  21517. width = style.width;
  21518. height = style.height;
  21519. }
  21520. el.__vueSetInterval__ = setInterval(isReize, 300);
  21521. },
  21522. unbind(el) {
  21523. clearInterval(el.__vueSetInterval__);
  21524. },
  21525. },
  21526. autoHeight: {
  21527. update(el, binding) {
  21528. const { value } = binding
  21529. if (value && typeof value === 'number') {
  21530. el.style.height = `${value}px`
  21531. } else {
  21532. el.style.height = 'auto'
  21533. }
  21534. },
  21535. componentUpdated(el) {
  21536. el.style.height = `${el.scrollHeight + 5}px`
  21537. },
  21538. },
  21539. },
  21540. beforeDestroy() {
  21541. window.onresize = null;
  21542. clearInterval(this.timer);
  21543. this.timer = null;
  21544. clearInterval(this.timer2);
  21545. this.timer2 = null;
  21546. clearInterval(this.opertimer);
  21547. this.opertimer = null;
  21548. this.updateSplitScreenData(1);
  21549. if(this.courseDetail.userid == this.userid && this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  21550. let endTime = new Date().toLocaleString("zh-CN", {
  21551. hour12: false,
  21552. timeZone: "Asia/Shanghai"
  21553. }).replace(/\//g, "-")
  21554. let courseTime = Math.floor((new Date(endTime) - new Date(this.startTime)) / (1000 * 60))
  21555. this.syncClassData({
  21556. courseId: this.id,
  21557. title: this.courseDetail.title,
  21558. courseGrade: this.tcid2 ? this.tcid2 : '',
  21559. courseTime: courseTime,
  21560. startTime: this.startTime,
  21561. endTime: endTime,
  21562. })
  21563. console.log('同步数据')
  21564. }
  21565. },
  21566. computed: {
  21567. renderedFormula2() {
  21568. return function(val){
  21569. // 处理换行符和HTML实体
  21570. const normalized = val
  21571. .replace(/&amp;/g, '&')
  21572. .replace(/<br\/?>/g, '\n');
  21573. // 匹配行内公式($...$)和块级公式($$...$$)
  21574. return normalized.replace(/(\${1,2})([^$]+)(\${1,2})/g, (_, delim, expr) => {
  21575. try {
  21576. return katex.renderToString(expr.trim(), {
  21577. displayMode: false,
  21578. throwOnError: false,
  21579. macros: {
  21580. '\\aligned': '\\begin{aligned}#1\\end{aligned}'
  21581. }
  21582. });
  21583. } catch (e) {
  21584. console.warn('KaTeX渲染失败:', e);
  21585. return `<span style="color:red">${expr}</span>`;
  21586. }
  21587. })
  21588. }
  21589. },
  21590. renderedFormula() {
  21591. return function(val){
  21592. try {
  21593. // 判断是否含有HTML标签,<tag ...>...</tag>
  21594. const hasTag = /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g.test(val);
  21595. if (!hasTag) {
  21596. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  21597. // 纯文本,整体渲染
  21598. try {
  21599. return katex.renderToString(val.trim(), {
  21600. throwOnError: false,
  21601. strict: false,
  21602. output: "htmlAndMathml"
  21603. });
  21604. } catch (e) {
  21605. return val; // 渲染失败原样输出
  21606. }
  21607. } else {
  21608. // 有标签,对每个标签内容渲染
  21609. return val.replace(
  21610. /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g,
  21611. (match, tag, attrs, inner) => {
  21612. let html;
  21613. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  21614. try {
  21615. html = katex.renderToString(inner.trim(), {
  21616. throwOnError: false,
  21617. strict: false,
  21618. output: "htmlAndMathml"
  21619. });
  21620. } catch (e) {
  21621. html = inner;
  21622. }
  21623. return `<${tag}${attrs}>${html}</${tag}>`;
  21624. }
  21625. );
  21626. }
  21627. } catch (e) {
  21628. console.error('KaTeX渲染错误:', e);
  21629. return val;
  21630. }
  21631. }
  21632. },
  21633. isAndroid() {
  21634. return /Android/i.test(navigator.userAgent);
  21635. },
  21636. getHeight(){
  21637. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  21638. },
  21639. contentConvent() {
  21640. return function (c) {
  21641. return c
  21642. ? c
  21643. .replaceAll(/\r\n/g, "<br/>")
  21644. .replaceAll(/\n/g, "<br/>")
  21645. .replaceAll(/\s/g, "&nbsp")
  21646. : "";
  21647. };
  21648. },
  21649. MarkdownT() {
  21650. return function (c) {
  21651. let md = new MarkdownIt();
  21652. return c
  21653. ? md.render(c) : "";
  21654. };
  21655. },
  21656. commentRight(){
  21657. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  21658. return "35px";
  21659. }
  21660. return `calc(${this.classRoomHelperWidth} + 5px)`
  21661. // if(this.$refs["classRoomHelperRef"].type==0){
  21662. // return "100px";
  21663. // }else if(this.$refs["classRoomHelperRef"].type==1){
  21664. // return "502px"
  21665. // }else{
  21666. // return "0px"
  21667. // }
  21668. },
  21669. checkUpload() {
  21670. return function () {
  21671. var studentK = [];
  21672. if (this.plworkFile.length > 0) {
  21673. for (var z = 0; z < this.plworkFile.length; z++) {
  21674. studentK.push(this.plworkFile[z].username);
  21675. }
  21676. studentK = studentK.join(",");
  21677. }
  21678. var a = this.uploadStudentJuri.filter((el) => {
  21679. return studentK.indexOf(el.userid) == -1;
  21680. });
  21681. return a;
  21682. };
  21683. },
  21684. getSName() {
  21685. return function (name) {
  21686. var check = name;
  21687. this.uploadStudentJuri.forEach((el) => {
  21688. if (el.userid == check) {
  21689. check = el.name ? el.name : el.username;
  21690. }
  21691. });
  21692. return check;
  21693. };
  21694. },
  21695. getImgList() {
  21696. return function (val) {
  21697. let srcList = []; // 定义一个数组用来接收后面的img地址
  21698. val.replace(
  21699. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  21700. function (match, capture) {
  21701. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  21702. srcList.push(capture);
  21703. }
  21704. );
  21705. return srcList;
  21706. };
  21707. },
  21708. retrnToolHeight(){
  21709. return function (tool) {
  21710. var _tool = document.querySelectorAll('#'+tool)[0]
  21711. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  21712. };
  21713. },
  21714. Correct() {
  21715. return function (c,d) {
  21716. let w = "";
  21717. let a = this.correctWord;
  21718. for(var k = 0;k<a.length;k++){
  21719. //diffWordsWithSpace
  21720. if(a.length > 1){
  21721. if(a[k].added == true){
  21722. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21723. }else if(a[k].removed == true){
  21724. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21725. }else{
  21726. w += '<span>' + a[k].value + '</span>';
  21727. }
  21728. }else{
  21729. w = c
  21730. }
  21731. console.log("👇👇!+++==")
  21732. console.log(w)
  21733. //diffChars方法
  21734. // if(w == ""){
  21735. // if(a.length > 1){
  21736. // if(a[k].added == true){
  21737. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21738. // }else if(a[k].removed == true){
  21739. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21740. // }
  21741. // }else{
  21742. // w = c
  21743. // }
  21744. // }else{
  21745. // if(k == a.length - 1){
  21746. // if(a[k].added == true){
  21747. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21748. // }else if(a[k].removed == true){
  21749. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21750. // }
  21751. // }else{
  21752. // if(a[k].added == true){
  21753. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21754. // }else if(a[k].removed == true){
  21755. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21756. // }
  21757. // }
  21758. // }
  21759. }
  21760. c = w;
  21761. return c;
  21762. };
  21763. },
  21764. },
  21765. mounted() {
  21766. this.setoTime("1");
  21767. this.startTime = new Date().toLocaleString("zh-CN", {
  21768. hour12: false,
  21769. timeZone: "Asia/Shanghai"
  21770. }).replace(/\//g, "-")
  21771. // if (this.tType == 1) {
  21772. // // 开局关闭学生查看内容
  21773. // this.StulookMode(false)
  21774. // // 开局打开跟随模式
  21775. // this.followingMode(true)
  21776. // }
  21777. document.body.addEventListener("click", (e) => {
  21778. if (this.isUpdateToolDetail1) {
  21779. this.updateToolDetail(this.toolDetailIndex);
  21780. }
  21781. });
  21782. try {
  21783. if (this.screenType == 2) {
  21784. window.topU.postMessage({ allScreen: 4 }, "*");
  21785. } else if (this.screenType == 3) {
  21786. window.topU.postMessage({ allScreen: 5 }, "*");
  21787. } else if (this.screenType == 1) {
  21788. window.topU.postMessage({ allScreen: 6 }, "*");
  21789. }
  21790. } catch (error) {
  21791. console.log(error)
  21792. }
  21793. this.getCode2()
  21794. this.setOperationTime();
  21795. this.selectEva();
  21796. this.getCourseDetail(10);
  21797. this.selectCount();
  21798. this.getHomeWork();
  21799. this.selectUser();
  21800. this.getAIJ();
  21801. this.contentDialog = false;
  21802. this.setContent2(true);
  21803. if (this.tType == 4) {
  21804. this.pzDialog = true;
  21805. this.selectPz();
  21806. }
  21807. // 获取评分列表
  21808. this.getScoreList()
  21809. this.updateSplitScreenData(2);
  21810. this.splitScreenData.myUid = uuidv4();
  21811. document.scrollingElement.scrollTop = 0;
  21812. window.addEventListener("resize", () => {
  21813. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  21814. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  21815. if (this.showType == 2 || this.showType == 3) {
  21816. document.getElementsByClassName("navBox")[0].style.height =
  21817. a - 40 + 0+ "px";
  21818. } else {
  21819. document.getElementsByClassName("navBox")[0].style.height =
  21820. a - 40 + "px";
  21821. }
  21822. });
  21823. // let _this = this;
  21824. // setTimeout(() => {
  21825. // _this.vedioTime = [];
  21826. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21827. // _this.vedioTime[i] = document.getElementsByClassName(
  21828. // "vjs-duration-display"
  21829. // )[i].textContent;
  21830. // }
  21831. // }, 1000);
  21832. },
  21833. };
  21834. </script>
  21835. <style scoped>
  21836. @media screen and (max-width: 1280px) {
  21837. /* .courseIndex > div:first-child(2) {
  21838. width: 15% !important;
  21839. } */
  21840. /* .navText {
  21841. width: 120px !important;
  21842. } */
  21843. .evaCss {
  21844. flex-direction: column !important;
  21845. align-items: center !important;
  21846. }
  21847. .elist_input {
  21848. width: 90% !important;
  21849. }
  21850. .dialog_diy1 >>> .el-dialog {
  21851. width: 100% !important;
  21852. }
  21853. .rightWidthCss {
  21854. width: 100% !important;
  21855. }
  21856. .dialog_diy3 >>> .el-dialog {
  21857. width: 100% !important;
  21858. }
  21859. .addToolCss {
  21860. right: 0 !important;
  21861. width: 100% !important;
  21862. min-width: unset !important;
  21863. }
  21864. }
  21865. .evaCssMax {
  21866. flex-direction: column !important;
  21867. align-items: center !important;
  21868. }
  21869. .dialog_diy >>> .el-dialog {
  21870. margin-top: 10vh !important;
  21871. }
  21872. .body_student {
  21873. width: 77%;
  21874. height: 100%;
  21875. position: absolute;
  21876. left: 22%;
  21877. top: 0;
  21878. }
  21879. .student_head {
  21880. width: 100%;
  21881. margin: 20px auto 0;
  21882. padding-bottom: 20px;
  21883. display: flex;
  21884. flex-direction: column;
  21885. flex-wrap: nowrap;
  21886. align-items: flex-start;
  21887. justify-content: flex-start;
  21888. }
  21889. .pb_left {
  21890. width: 15%;
  21891. margin-right: 10px;
  21892. background: rgb(255, 255, 255);
  21893. position: fixed;
  21894. height: calc(100% - 40px);
  21895. border-radius: 20px;
  21896. padding-bottom: 15px;
  21897. box-sizing: border-box;
  21898. }
  21899. .wheel > img,
  21900. .project > img,
  21901. .star > img,
  21902. .evaluate > img,
  21903. .up_photo > img,
  21904. .chapter_add > img,
  21905. .deleteWord > img,
  21906. .question > img,
  21907. .homework > img {
  21908. width: 100%;
  21909. height: 100%;
  21910. }
  21911. .upCover > img {
  21912. width: 131px;
  21913. height: 69px;
  21914. object-fit: cover;
  21915. }
  21916. .upCover {
  21917. width: calc(100% / 3.5);
  21918. position: relative;
  21919. margin: 0 15px 10px 0;
  21920. display: flex;
  21921. flex-direction: column;
  21922. flex-wrap: nowrap;
  21923. justify-content: center;
  21924. align-content: center;
  21925. align-items: center;
  21926. height: fit-content;
  21927. }
  21928. .upCover2 {
  21929. width: 100%;
  21930. position: relative;
  21931. margin: 0 15px 10px 0;
  21932. display: flex;
  21933. flex-direction: column;
  21934. flex-wrap: nowrap;
  21935. justify-content: center;
  21936. align-content: center;
  21937. align-items: center;
  21938. }
  21939. .upCover2 > img {
  21940. width: 100%;
  21941. height: 90px;
  21942. object-fit: contain;
  21943. }
  21944. .chapter_add {
  21945. width: 120px;
  21946. position: relative;
  21947. text-align: center;
  21948. }
  21949. .isAddThings {
  21950. margin-top: 20px;
  21951. position: relative;
  21952. text-align: center;
  21953. background: #f7f8fa;
  21954. height: 90px;
  21955. width: 90px;
  21956. display: flex;
  21957. flex-direction: column;
  21958. justify-content: center;
  21959. }
  21960. .deleteWord {
  21961. width: 22px;
  21962. height: 22px;
  21963. position: absolute;
  21964. right: -5px;
  21965. top: -5px;
  21966. cursor: pointer;
  21967. }
  21968. .box_course {
  21969. /* width: 60%; */
  21970. width: calc(100% - 300px);
  21971. }
  21972. .wheel {
  21973. width: 100%;
  21974. /* height: 100%; */
  21975. height: 650px;
  21976. }
  21977. .right_box {
  21978. display: flex;
  21979. flex-direction: column;
  21980. margin-left: 30px;
  21981. justify-content: space-around;
  21982. }
  21983. .right_box_title {
  21984. font-size: 23px;
  21985. }
  21986. .people {
  21987. display: flex;
  21988. }
  21989. .student_body {
  21990. width: 100%;
  21991. margin: 0 auto;
  21992. margin-top: 10px;
  21993. padding: 0 0 20px;
  21994. }
  21995. .study_top {
  21996. margin-top: 100px;
  21997. width: 100%;
  21998. height: auto;
  21999. padding-bottom: 20px;
  22000. margin-left: 2px;
  22001. min-height: 90%;
  22002. }
  22003. .study_top .checkbox {
  22004. display: flex;
  22005. align-items: center;
  22006. padding: 15px 0 15px 30px;
  22007. flex: 0 0 auto;
  22008. font-weight: bold;
  22009. border-bottom: 1px solid #eee;
  22010. }
  22011. .study_top .check {
  22012. padding-bottom: 5px;
  22013. text-align: center;
  22014. cursor: pointer;
  22015. height: 30px;
  22016. box-sizing: border-box;
  22017. display: flex;
  22018. }
  22019. .study_top .checked {
  22020. border-bottom: 4px solid #3fc6a0;
  22021. padding-bottom: 5px;
  22022. color: #3fc6a0;
  22023. display: flex;
  22024. height: 35px;
  22025. }
  22026. .study_top .checked > div,
  22027. .study_top .check > div {
  22028. margin-right: 5px;
  22029. }
  22030. .videoTop {
  22031. display: flex;
  22032. flex-direction: row;
  22033. justify-content: space-between;
  22034. background: #fff;
  22035. align-items: center;
  22036. width: 95%;
  22037. padding: 20px;
  22038. }
  22039. .filebox {
  22040. display: flex;
  22041. flex-wrap: wrap;
  22042. flex-direction: column;
  22043. padding: 0 0 5px;
  22044. position: relative;
  22045. }
  22046. .filebox:before {
  22047. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  22048. position: absolute;
  22049. top: 20px;
  22050. left: 13px;
  22051. border-left: 2px dotted #cad1dc;
  22052. height: calc(100% - 15px);
  22053. }
  22054. .toolHeng2 > div:last-child::before {
  22055. height: calc(100% - 43px);
  22056. }
  22057. .filebox .tooldetail {
  22058. width: calc(100%);
  22059. margin: 0px 12px;
  22060. padding: 12px;
  22061. line-height: 30px;
  22062. word-break: break-word;
  22063. background: #ffffff;
  22064. border-radius: 8px 8px 8px 8px;
  22065. opacity: 1;
  22066. border: 1px solid #cad1dc;
  22067. overflow:hidden;
  22068. box-sizing:border-box;
  22069. }
  22070. .pb_content >>> .katex {
  22071. font-size: 16px;
  22072. width: 100%;
  22073. white-space: normal;
  22074. }
  22075. .pb_content >>> .katex .base{
  22076. display: inline !important;
  22077. display: contents !important;
  22078. }
  22079. .pb_content >>> .katex .base .cjk_fallback{
  22080. white-space: normal !important;
  22081. display: inline !important;
  22082. }
  22083. .file {
  22084. display: flex;
  22085. flex-direction: column;
  22086. align-items: center;
  22087. justify-content: center;
  22088. cursor: pointer;
  22089. width: 200px;
  22090. }
  22091. .file div {
  22092. margin-top: 10px;
  22093. width: 150px;
  22094. text-align: center;
  22095. overflow: hidden;
  22096. white-space: nowrap;
  22097. text-overflow: ellipsis;
  22098. }
  22099. .media {
  22100. display: flex;
  22101. flex-direction: column;
  22102. align-items: center;
  22103. justify-content: center;
  22104. margin: 0 20px 20px 0;
  22105. cursor: pointer;
  22106. margin: 12px 0 5px 15px;
  22107. overflow: hidden;
  22108. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  22109. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  22110. box-sizing: border-box;
  22111. }
  22112. .media img {
  22113. height: 90px;
  22114. width: 160px;
  22115. object-fit: cover;
  22116. }
  22117. .media .title {
  22118. padding: 5px;
  22119. text-align: left;
  22120. width: 100%;
  22121. box-sizing: border-box;
  22122. }
  22123. .media .btn {
  22124. width: 100%;
  22125. height: 35px;
  22126. line-height: 35px;
  22127. color: #fff;
  22128. background: #606060;
  22129. text-align: center;
  22130. overflow: hidden;
  22131. white-space: nowrap;
  22132. text-overflow: ellipsis;
  22133. }
  22134. .detail_content_top {
  22135. width: 100%;
  22136. padding: 25px 0 25px 0;
  22137. }
  22138. .detail_title {
  22139. text-align: center;
  22140. font-size: 24px;
  22141. }
  22142. .detail_time {
  22143. font-size: 13px;
  22144. padding: 15px 0 0 40px;
  22145. }
  22146. .detail_content {
  22147. line-height: 2pc;
  22148. width: 90%;
  22149. margin: 0 auto;
  22150. padding-top: 30px;
  22151. text-indent: 30px;
  22152. overflow: auto;
  22153. height: 200px;
  22154. }
  22155. .score_box >>> .el-rate {
  22156. margin-left: 10px;
  22157. }
  22158. .dialog_change >>> .el-dialog {
  22159. border-radius: 5px;
  22160. }
  22161. .dialog_change >>> .el-dialog__header {
  22162. background: #f2f2f2;
  22163. text-align: center;
  22164. }
  22165. .dialog_change >>> .el-dialog__title {
  22166. line-height: 5px;
  22167. }
  22168. .dialog_change >>> .el-dialog__body {
  22169. background: #fff;
  22170. padding: 10px 20px;
  22171. }
  22172. .score_box {
  22173. display: flex;
  22174. align-items: center;
  22175. margin-bottom: 18px;
  22176. margin-top: 20px;
  22177. }
  22178. .up_photo {
  22179. width: 120px;
  22180. cursor: pointer;
  22181. margin-top: 10px;
  22182. }
  22183. .up_photo2 {
  22184. width: 180px;
  22185. box-sizing: border-box;
  22186. min-width: 180px;
  22187. height: 180px;
  22188. max-height: 180px;
  22189. min-height: 180px;
  22190. cursor: pointer;
  22191. display: flex;
  22192. flex-direction: column;
  22193. align-items: center;
  22194. justify-content: center;
  22195. background: rgb(242, 246, 255);
  22196. /* padding: 25px; */
  22197. margin-bottom: 10px;
  22198. }
  22199. .up_photo2 img {
  22200. width: 50%;
  22201. height: auto;
  22202. }
  22203. .up_photo2 span {
  22204. color: #898989;
  22205. }
  22206. .plworkBox {
  22207. display: flex;
  22208. align-items: center;
  22209. margin-top: 10px;
  22210. flex-wrap: wrap;
  22211. }
  22212. .upload_send {
  22213. margin: 30px auto 30px;
  22214. width: 60%;
  22215. background: #3681fc;
  22216. text-align: center;
  22217. height: 35px;
  22218. line-height: 35px;
  22219. color: #fff;
  22220. border-radius: 5px;
  22221. cursor: pointer;
  22222. }
  22223. .marginT {
  22224. margin-top: 20px;
  22225. }
  22226. .cd_content_steps {
  22227. display: flex;
  22228. width: 90%;
  22229. justify-content: space-around;
  22230. border-top: 1px solid #eeeeee;
  22231. }
  22232. .cd_steps_box {
  22233. display: flex;
  22234. justify-content: center;
  22235. align-items: center;
  22236. flex-direction: column;
  22237. cursor: pointer;
  22238. }
  22239. .first {
  22240. display: flex;
  22241. align-items: center;
  22242. margin: 15px 0 20px 0;
  22243. font-size: 20px;
  22244. }
  22245. .first > div:nth-child(2) {
  22246. font-size: 16px !important;
  22247. padding-left: 10px;
  22248. line-height: 26px;
  22249. box-sizing: border-box;
  22250. }
  22251. .blue_box_one {
  22252. text-align: center;
  22253. color: #fff;
  22254. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  22255. border-radius: 7px;
  22256. margin: 10px;
  22257. cursor: pointer;
  22258. width: 95%;
  22259. height: 45px;
  22260. display: flex;
  22261. flex-direction: row;
  22262. justify-content: flex-start;
  22263. align-items: center;
  22264. }
  22265. .blue_box_one > div:nth-child(1) {
  22266. line-height: 30px;
  22267. margin: 0 5px 0 10px;
  22268. width: 30%;
  22269. min-width: 70px;
  22270. border-radius: 4px;
  22271. }
  22272. .blue_box_one > div:nth-child(2) {
  22273. white-space: nowrap;
  22274. text-overflow: ellipsis;
  22275. overflow: hidden;
  22276. word-break: break-all;
  22277. width: 70%;
  22278. text-align: left;
  22279. margin-right: 10px;
  22280. max-width: calc(100% - 85px);
  22281. }
  22282. .blue_box_one > div:nth-child(2):hover {
  22283. overflow: hidden;
  22284. text-overflow: ellipsis;
  22285. white-space: nowrap;
  22286. cursor: pointer;
  22287. }
  22288. .upFile {
  22289. margin: 0 auto;
  22290. width: 120px;
  22291. background: #3681fc;
  22292. color: #fff;
  22293. height: 30px;
  22294. text-align: center;
  22295. line-height: 30px;
  22296. border-radius: 5px;
  22297. font-size: 14px;
  22298. cursor: pointer;
  22299. }
  22300. .courseTitle {
  22301. width: 85%;
  22302. margin: 10px auto 26px auto;
  22303. display: flex;
  22304. flex-direction: row;
  22305. align-items: center;
  22306. justify-content: space-between;
  22307. text-align: center;
  22308. }
  22309. .courseTitle .ctitle {
  22310. font-size: 20px;
  22311. font-weight: bold;
  22312. color: #0e1e33;
  22313. white-space: nowrap;
  22314. overflow: hidden;
  22315. text-overflow: ellipsis;
  22316. }
  22317. .inviteBox {
  22318. font-size: 14px;
  22319. /* margin-top: 5px; */
  22320. color: #00000099;
  22321. text-align: center;
  22322. }
  22323. .courseTitle >>> .el-tooltip {
  22324. width: 100%;
  22325. white-space: nowrap;
  22326. overflow: hidden;
  22327. text-overflow: ellipsis;
  22328. word-break: break-word;
  22329. }
  22330. .ml {
  22331. margin-left: 20px;
  22332. color: #5b7dba;
  22333. border-left: 3px solid #5b7dba;
  22334. padding-left: 5px;
  22335. font-weight: bold;
  22336. }
  22337. .return {
  22338. width: 2rem;
  22339. height: 2rem;
  22340. cursor: pointer;
  22341. }
  22342. .return > img {
  22343. width: 100%;
  22344. height: 100%;
  22345. }
  22346. .returnBtn {
  22347. width: 86px;
  22348. height: 36px;
  22349. background: #3681fc;
  22350. border-radius: 4px;
  22351. color: #fff;
  22352. text-align: center;
  22353. line-height: 36px;
  22354. margin-right: 20px;
  22355. cursor: pointer;
  22356. font-size: 14px;
  22357. font-weight: 400;
  22358. display: flex;
  22359. flex-direction: row;
  22360. flex-wrap: nowrap;
  22361. align-items: center;
  22362. justify-content: center;
  22363. }
  22364. .reBtnIcon,
  22365. .commentIcon,
  22366. .vedioIcon,
  22367. .vedioIcon1 {
  22368. /* width: 36px; */
  22369. height: 36px;
  22370. border-radius: 4px;
  22371. position: relative;
  22372. /* background: #e0eafb; */
  22373. background: #0061ff;
  22374. cursor: pointer;
  22375. margin-right: 12px;
  22376. display: flex;
  22377. align-items: center;
  22378. padding: 0 10px;
  22379. box-sizing: border-box;
  22380. font-size: 14px;
  22381. color: #fff;
  22382. }
  22383. .reBtnIcon::before,
  22384. .commentIcon::before,
  22385. .vedioIcon::before,
  22386. .vedioIcon1::before {
  22387. content: "";
  22388. display: block;
  22389. background-size: 100% 100%;
  22390. background-repeat: no-repeat;
  22391. width: 20px;
  22392. height: 20px;
  22393. margin-right: 5px;
  22394. /* position: absolute; */
  22395. /* top: 8px;
  22396. left: 8px; */
  22397. }
  22398. .vedioIcon1 {
  22399. background: #f63564;
  22400. }
  22401. .reBtnIcon::before {
  22402. background-image: url("../../assets/icon/newIcons/refresh.png");
  22403. }
  22404. .commentIcon::before {
  22405. background-image: url("../../assets/icon/newIcons/comment.png");
  22406. }
  22407. .vedioIcon::before {
  22408. background-image: url("../../assets/icon/newIcons/transcribe.png");
  22409. }
  22410. .vedioIcon1::before {
  22411. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  22412. background-image: url("../../assets/icon/newIcons/transcribe.png");
  22413. }
  22414. .tool {
  22415. display: flex;
  22416. flex-direction: column;
  22417. flex-wrap: nowrap;
  22418. width: 13%;
  22419. margin: 0 30px;
  22420. align-items: center;
  22421. position: relative;
  22422. padding: 10px 25px;
  22423. cursor: pointer;
  22424. }
  22425. .whiteBIcon {
  22426. width: 150px;
  22427. }
  22428. .whiteBIcon > img {
  22429. width: 100%;
  22430. height: 100%;
  22431. }
  22432. .mask {
  22433. background-color: rgba(0, 0, 0, 0);
  22434. position: fixed;
  22435. top: 0;
  22436. left: 0;
  22437. width: 100%;
  22438. height: 100%;
  22439. z-index: 20000;
  22440. display: flex;
  22441. align-items: center;
  22442. justify-content: center;
  22443. }
  22444. .progressBox {
  22445. width: 500px;
  22446. height: 180px;
  22447. background: #fff;
  22448. border-radius: 10px;
  22449. box-shadow: 0 0 6px 1px #bfbfbf;
  22450. display: flex;
  22451. align-items: center;
  22452. justify-content: center;
  22453. flex-direction: column;
  22454. position: relative;
  22455. color: #6c6c6c;
  22456. }
  22457. .progressBox >>> .el-progress-bar__outer {
  22458. background-color: #d1dfff !important;
  22459. }
  22460. .progressBox .lbox {
  22461. height: 50px;
  22462. font-size: 19px;
  22463. display: flex;
  22464. align-items: center;
  22465. color: #747474;
  22466. }
  22467. .progressBox .lbox img {
  22468. width: 40px;
  22469. margin-right: 20px;
  22470. }
  22471. .closeCss {
  22472. position: absolute;
  22473. top: 8px;
  22474. right: 8px;
  22475. cursor: pointer;
  22476. width: 20px;
  22477. height: 20px;
  22478. }
  22479. .closeCss > img {
  22480. width: 100%;
  22481. height: 100%;
  22482. }
  22483. .uploadVedio {
  22484. display: flex;
  22485. flex-direction: column;
  22486. flex-wrap: nowrap;
  22487. justify-content: center;
  22488. align-items: center;
  22489. margin: 0 15px 10px 0;
  22490. }
  22491. .uploadVedio > img {
  22492. width: 30px;
  22493. height: 30px;
  22494. }
  22495. .uploadVedio > span {
  22496. white-space: nowrap;
  22497. overflow: hidden;
  22498. text-overflow: ellipsis;
  22499. width: 75px;
  22500. margin-top: 7px;
  22501. }
  22502. .picName {
  22503. white-space: nowrap;
  22504. overflow: hidden;
  22505. text-overflow: ellipsis;
  22506. width: 75px;
  22507. margin-top: 7px;
  22508. }
  22509. .new_top {
  22510. display: flex;
  22511. background: #fff;
  22512. flex-direction: row;
  22513. justify-content: flex-start;
  22514. align-items: center;
  22515. height: 60px;
  22516. position: fixed;
  22517. top: 20px;
  22518. left: 22%;
  22519. width: 77%;
  22520. z-index: 999;
  22521. border-radius: 12px 12px 0 0;
  22522. border-bottom: 1px solid #cad1dc;
  22523. padding: 10px 0;
  22524. }
  22525. .new_topFixed {
  22526. width: 100%;
  22527. height: 40px;
  22528. position: fixed;
  22529. top: 0px;
  22530. display: block;
  22531. background: #f2f2f2;
  22532. z-index: 998;
  22533. }
  22534. .before {
  22535. position: absolute;
  22536. background: #c3dad4;
  22537. width: 6px;
  22538. height: 100%;
  22539. }
  22540. .courseIndex {
  22541. display: flex;
  22542. flex-direction: row;
  22543. align-items: center;
  22544. width: calc(100% - 745px);
  22545. }
  22546. .courseIndex > div:nth-child(1) {
  22547. margin: 0 0 0 10px;
  22548. font-size: 20px;
  22549. min-width: 100px;
  22550. font-weight: bold;
  22551. border-left: 4px solid #3363b9;
  22552. height: 32px;
  22553. text-align: center;
  22554. line-height: 35px;
  22555. }
  22556. .courseIndex > div:nth-child(2) {
  22557. font-size: 20px;
  22558. /* width: 300px; */
  22559. max-width: calc(100% - 105px);
  22560. white-space: nowrap;
  22561. overflow: hidden;
  22562. text-overflow: ellipsis;
  22563. }
  22564. .courseIndex > div:nth-child(3) {
  22565. border-bottom: 1px solid #d7d7d7;
  22566. padding-bottom: 5px;
  22567. background: #3681fc;
  22568. width: 55px;
  22569. min-width: 55px;
  22570. border-radius: 5px;
  22571. color: #fff;
  22572. text-align: center;
  22573. height: 20px;
  22574. line-height: 26px;
  22575. font-size: 14px;
  22576. margin: 0 0 0 10px;
  22577. }
  22578. .course_text {
  22579. padding: 20px 0 0 15px;
  22580. text-indent: 30px;
  22581. width: 80%;
  22582. min-height: 20px;
  22583. }
  22584. .vedioList {
  22585. background: #f2f2f2;
  22586. border: 1px solid #ececec;
  22587. /* width: 38.8%; */
  22588. /* width: 300px; */
  22589. width: 100%;
  22590. height: 445px;
  22591. border-radius: 10px;
  22592. overflow: hidden;
  22593. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  22594. }
  22595. .vedioNav {
  22596. margin: 10px 0 0 15px;
  22597. border-bottom: 1px solid #d7d7d7;
  22598. padding-bottom: 5px;
  22599. background: #3681fc;
  22600. width: 55px;
  22601. min-width: 55px;
  22602. border-radius: 5px;
  22603. color: #fff;
  22604. text-align: center;
  22605. height: 20px;
  22606. line-height: 26px;
  22607. font-size: 14px;
  22608. }
  22609. .queTop {
  22610. display: flex;
  22611. padding: 20px 0 20px 30px;
  22612. width: 100%;
  22613. flex-direction: row;
  22614. justify-content: flex-start;
  22615. align-items: center;
  22616. box-sizing: border-box;
  22617. }
  22618. .queTopTitle {
  22619. display: flex;
  22620. flex-direction: row;
  22621. flex-wrap: nowrap;
  22622. align-items: center;
  22623. font-weight: bold;
  22624. font-size: 20px;
  22625. color: rgb(14, 30, 51);
  22626. }
  22627. .queTopTitle::before {
  22628. content: "";
  22629. width: 2px;
  22630. height: 22px;
  22631. background: #3681fc;
  22632. border-radius: 3px;
  22633. display: block;
  22634. margin: 2px 6px 0 0;
  22635. }
  22636. .queTopRight {
  22637. display: flex;
  22638. flex-direction: row;
  22639. flex-wrap: nowrap;
  22640. align-items: center;
  22641. }
  22642. .queTopClose {
  22643. margin-right: 20px;
  22644. cursor: pointer;
  22645. position: relative;
  22646. display: flex;
  22647. }
  22648. .closeImg,
  22649. .openImg {
  22650. width: 25px;
  22651. height: 25px;
  22652. position: absolute;
  22653. left: -20px;
  22654. top: -1px;
  22655. }
  22656. .closeImg > img,
  22657. .openImg > img {
  22658. width: 100%;
  22659. height: 100%;
  22660. }
  22661. .question {
  22662. width: 40px;
  22663. margin-right: 10px;
  22664. margin-top: 7px;
  22665. }
  22666. .queTitle {
  22667. margin-left: 5px;
  22668. font-size: 25px;
  22669. display: flex;
  22670. align-items: center;
  22671. }
  22672. .addEditor {
  22673. width: 100px;
  22674. height: 30px;
  22675. background: #42cda6;
  22676. color: #fff;
  22677. border-radius: 5px;
  22678. text-align: center;
  22679. line-height: 30px;
  22680. box-shadow: 1px 3px 6px 1px #bfbfbf;
  22681. cursor: pointer;
  22682. }
  22683. /* .vedioName {
  22684. cursor: pointer;
  22685. margin: 0px 0px 10px 5px;
  22686. white-space: nowrap;
  22687. overflow: hidden;
  22688. text-overflow: ellipsis;
  22689. width: 100%;
  22690. } */
  22691. .vedioTime {
  22692. width: 35px;
  22693. position: absolute;
  22694. color: #fff;
  22695. bottom: 0px;
  22696. right: 0px;
  22697. text-align: center;
  22698. background: #46411f;
  22699. height: 20px;
  22700. font-size: 14px;
  22701. line-height: 20px;
  22702. }
  22703. .homework {
  22704. width: 200px;
  22705. display: flex;
  22706. flex-direction: column;
  22707. flex-wrap: nowrap;
  22708. align-items: center;
  22709. cursor: pointer;
  22710. }
  22711. .homebox {
  22712. display: flex;
  22713. flex-wrap: wrap;
  22714. flex-direction: row;
  22715. justify-content: flex-start;
  22716. align-items: center;
  22717. padding: 15px 0;
  22718. }
  22719. .isChooseActive {
  22720. color: #3681fc !important;
  22721. font-weight: bold !important;
  22722. }
  22723. .chooseWho {
  22724. display: flex;
  22725. width: 100%;
  22726. flex-direction: row;
  22727. flex-wrap: nowrap;
  22728. justify-content: flex-start;
  22729. padding-bottom: 10px;
  22730. }
  22731. .chooseWho > div {
  22732. cursor: pointer;
  22733. padding-bottom: 10px;
  22734. margin: 0 30px 0 0;
  22735. font-weight: 400;
  22736. color: #0e1e33;
  22737. }
  22738. .addPoint > div > img {
  22739. cursor: pointer;
  22740. width: 85px;
  22741. border-radius: 15px;
  22742. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  22743. }
  22744. .addPoint > div {
  22745. display: flex;
  22746. flex-direction: column;
  22747. flex-wrap: nowrap;
  22748. align-items: center;
  22749. }
  22750. .isBorder > div {
  22751. margin: 0 0 10px 0;
  22752. align-items: flex-start !important;
  22753. }
  22754. .noiframeBox {
  22755. display: flex;
  22756. flex-wrap: wrap;
  22757. }
  22758. .iframeBox iframe {
  22759. width: 100%;
  22760. height: 800px;
  22761. border: none;
  22762. margin-bottom: 20px;
  22763. border: 1px solid #ccc;
  22764. }
  22765. .upload_toolBtn {
  22766. background: #3681fc;
  22767. color: #fff;
  22768. width: 110px;
  22769. text-align: center;
  22770. height: 35px;
  22771. line-height: 35px;
  22772. font-size: 14px;
  22773. border-radius: 5px;
  22774. cursor: pointer;
  22775. position: absolute;
  22776. right: 10px;
  22777. bottom: 0;
  22778. }
  22779. .binfo_input,
  22780. .pj {
  22781. font: inherit;
  22782. color: currentColor;
  22783. width: 100%;
  22784. margin: 0;
  22785. padding: 15px 14px;
  22786. display: block;
  22787. min-width: 0;
  22788. outline: none;
  22789. box-sizing: content-box;
  22790. background: none;
  22791. -webkit-tap-highlight-color: transparent;
  22792. border: 1px solid rgba(0, 0, 0, 0.23);
  22793. border-radius: 4px;
  22794. box-sizing: border-box;
  22795. resize: none;
  22796. }
  22797. .binfo_input:focus-visible {
  22798. border: 1px solid rgba(61, 103, 188);
  22799. }
  22800. .dialog_diy >>> .el-dialog__header,
  22801. .dialog_diy1 >>> .el-dialog__header {
  22802. background: #454545 !important;
  22803. padding: 15px 20px;
  22804. }
  22805. .dialog_diy >>> .el-dialog__title,
  22806. .dialog_diy1 >>> .el-dialog__title {
  22807. color: #fff;
  22808. }
  22809. .dialog_diy >>> .el-dialog__headerbtn,
  22810. .dialog_diy1 >>> .el-dialog__headerbtn {
  22811. top: 19px;
  22812. }
  22813. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  22814. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  22815. color: #fff;
  22816. }
  22817. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  22818. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  22819. color: #fff;
  22820. }
  22821. .dialog_diy1 >>> .el-dialog__body {
  22822. padding: 0;
  22823. }
  22824. .dialog_diy >>> .el-dialog__body,
  22825. .dialog_diy >>> .el-dialog__footer,
  22826. .dialog_diy1 >>> .el-dialog__footer {
  22827. background: #fafafa;
  22828. }
  22829. .a_addBox {
  22830. padding: 0 0 0 15px;
  22831. }
  22832. .a_add_box {
  22833. padding: 10px;
  22834. background: #fff;
  22835. margin-bottom: 10px;
  22836. border-radius: 5px;
  22837. box-shadow: 0 0 5px 0 #d5d5d5;
  22838. }
  22839. .a_add_head {
  22840. display: flex;
  22841. align-items: flex-start;
  22842. /* justify-content: space-between; */
  22843. flex-direction: column;
  22844. /* flex-direction: row; */
  22845. margin: 10px 0 20px 0;
  22846. font-size: 18px;
  22847. width: 100%;
  22848. }
  22849. .askIndex {
  22850. background: #3681fc;
  22851. border-radius: 50%;
  22852. color: #fff;
  22853. width: 25px;
  22854. height: 25px;
  22855. min-width: 25px;
  22856. min-height: 25px;
  22857. text-align: center;
  22858. line-height: 25px;
  22859. margin-right: 5px;
  22860. }
  22861. .a_add_head .a_add_head_input {
  22862. width: 300px;
  22863. }
  22864. .a_add_head .a_add_head_div {
  22865. display: flex;
  22866. align-items: center;
  22867. justify-content: space-between;
  22868. }
  22869. .a_add_body {
  22870. display: flex;
  22871. align-items: center;
  22872. }
  22873. .a_add_input {
  22874. display: flex;
  22875. align-items: center;
  22876. flex-wrap: wrap;
  22877. width: 100%;
  22878. }
  22879. .a_add_input >>> .el-radio-group,
  22880. .a_add_input >>> .el-checkbox-group {
  22881. width: 100%;
  22882. }
  22883. .a_add_input >>> .el-radio,
  22884. .a_add_input >>> .el-checkbox {
  22885. display: flex;
  22886. flex-direction: row;
  22887. flex-wrap: nowrap;
  22888. align-items: center;
  22889. padding: 15px 0;
  22890. }
  22891. .a_add_input >>> .el-radio:not(:last-child),
  22892. .a_add_input >>> .el-checkbox:not(:last-child) {
  22893. width: 100%;
  22894. border-bottom: 1px solid #efefef;
  22895. }
  22896. .redioStyle >>> .el-radio__label {
  22897. font-size: 18px;
  22898. }
  22899. .redioStyle >>> .el-radio__label > span,
  22900. .redioStyle >>> .el-checkbox__label > span {
  22901. word-break: break-all;
  22902. white-space: normal;
  22903. }
  22904. .redioStyle >>> .el-checkbox__label {
  22905. font-size: 18px;
  22906. }
  22907. .toolHeng2 {
  22908. width: 100%;
  22909. padding-left: 15px;
  22910. box-sizing: border-box;
  22911. }
  22912. .workNav {
  22913. font-size: 20px;
  22914. font-weight: bold;
  22915. color: #0e1e33;
  22916. display: flex;
  22917. flex-direction: row;
  22918. flex-wrap: nowrap;
  22919. align-items: center;
  22920. padding: 15px 0 15px 0;
  22921. }
  22922. .workNav::before {
  22923. content: "";
  22924. width: 2px;
  22925. height: 22px;
  22926. background: #3681fc;
  22927. border-radius: 3px;
  22928. display: block;
  22929. margin: 2px 6px 0 0;
  22930. }
  22931. .toolHeng {
  22932. display: flex;
  22933. flex-direction: row;
  22934. flex-wrap: wrap;
  22935. justify-content: flex-start;
  22936. align-items: center;
  22937. width: 100%;
  22938. }
  22939. .toolHeng > div {
  22940. padding-left: 20px;
  22941. }
  22942. .isWidth {
  22943. width: 20%;
  22944. }
  22945. .textTitle {
  22946. display: flex;
  22947. flex-direction: row;
  22948. flex-wrap: nowrap;
  22949. align-items: center;
  22950. width: 95%;
  22951. }
  22952. .textTitle >>> .el-form-item__label {
  22953. font-size: 22px;
  22954. color: #918f8f;
  22955. width: 100px;
  22956. }
  22957. .textTitle >>> .el-form-item__content {
  22958. width: calc(100% - 100px);
  22959. }
  22960. .textCss >>> .el-dialog {
  22961. width: 800px !important;
  22962. height: 400px;
  22963. background: #fafafa;
  22964. }
  22965. .textCss >>> .el-dialog__body {
  22966. margin: 55px 8% 0 8%;
  22967. padding: 0 !important;
  22968. }
  22969. .textCss >>> .el-dialog__footer {
  22970. padding-top: 38px;
  22971. }
  22972. .toolsCss >>> .el-dialog__body {
  22973. padding: 20px;
  22974. }
  22975. .lineCss >>> .el-dialog__body {
  22976. display: flex;
  22977. flex-direction: row;
  22978. align-items: center;
  22979. justify-content: center;
  22980. }
  22981. .newNav {
  22982. display: flex;
  22983. flex-direction: row;
  22984. align-items: baseline;
  22985. justify-content: flex-start;
  22986. }
  22987. .navListItem {
  22988. width: calc(100% - 20px);
  22989. height: 50px;
  22990. margin: 0px auto 10px;
  22991. display: flex;
  22992. flex-direction: row;
  22993. flex-wrap: nowrap;
  22994. align-items: center;
  22995. justify-content: space-between;
  22996. background: #f0f4fa;
  22997. border-radius: 6px 6px 6px 6px;
  22998. }
  22999. .navText {
  23000. cursor: pointer;
  23001. white-space: nowrap;
  23002. overflow: hidden;
  23003. text-overflow: ellipsis;
  23004. width: 220px;
  23005. padding: 0 10px;
  23006. font-weight: 400;
  23007. color: #0e1e33;
  23008. }
  23009. .downIcon {
  23010. width: 20px;
  23011. min-width: 20px;
  23012. height: 20px;
  23013. margin-right: 15px;
  23014. cursor: pointer;
  23015. }
  23016. .downIcon > img {
  23017. width: 100%;
  23018. height: 100%;
  23019. }
  23020. .noVedio {
  23021. display: flex;
  23022. flex-direction: row;
  23023. justify-content: center;
  23024. align-content: center;
  23025. }
  23026. .noNavText {
  23027. cursor: pointer;
  23028. margin: 0px 0px 10px 5px;
  23029. width: 112px;
  23030. }
  23031. .listNoVedio {
  23032. margin: 0 0 0 30px;
  23033. width: 97%;
  23034. }
  23035. .video-player >>> .video-js {
  23036. height: 100%;
  23037. }
  23038. .hangVedioList {
  23039. width: 90% !important;
  23040. height: 150px !important;
  23041. margin: 20px 0 0 30px;
  23042. }
  23043. .hangVedio {
  23044. width: 100%;
  23045. height: 170px !important;
  23046. align-items: flex-start !important;
  23047. }
  23048. .hangHand {
  23049. height: 150px !important;
  23050. }
  23051. .twoChild {
  23052. width: 95%;
  23053. margin: 10px;
  23054. border-radius: 5px;
  23055. background: #f2f2f2;
  23056. display: flex;
  23057. flex-direction: column;
  23058. flex-wrap: nowrap;
  23059. justify-content: flex-start;
  23060. align-items: flex-start;
  23061. transition: all 0.5s;
  23062. overflow: hidden;
  23063. height: 0;
  23064. background: #e7f3ff;
  23065. }
  23066. .twoChild > div:nth-child(1) {
  23067. margin-top: 5px;
  23068. }
  23069. .navChild {
  23070. width: 100%;
  23071. cursor: pointer;
  23072. margin-bottom: 10px;
  23073. position: relative;
  23074. }
  23075. .navChild img {
  23076. position: absolute;
  23077. right: 11px;
  23078. width: 15px;
  23079. top: 50%;
  23080. transform: translateY(-50%);
  23081. }
  23082. .navActive,
  23083. .toolActive {
  23084. height: auto !important;
  23085. overflow: auto !important;
  23086. /* padding-bottom: 16px; */
  23087. }
  23088. .toolActive {
  23089. padding: 0;
  23090. }
  23091. .navTask {
  23092. display: flex;
  23093. flex-direction: row;
  23094. flex-wrap: nowrap;
  23095. align-items: center;
  23096. align-content: flex-start;
  23097. height: 40px;
  23098. justify-content: flex-start;
  23099. padding: 0 10px;
  23100. width: 100%;
  23101. box-sizing: border-box;
  23102. }
  23103. .navTaskname {
  23104. white-space: nowrap;
  23105. text-overflow: ellipsis;
  23106. overflow: hidden;
  23107. word-break: break-all;
  23108. padding-left: 5px;
  23109. }
  23110. .openTaskActive {
  23111. /* background-color: #e0eafb !important;
  23112. color: #0061ff; */
  23113. color:#fff;
  23114. background: rgb(55, 129, 252) !important;
  23115. }
  23116. .iframeName {
  23117. margin: 5px 0;
  23118. border-left: 4px solid #41c4a4;
  23119. padding-left: 4px;
  23120. }
  23121. .toolTitle {
  23122. margin: 0px 0px 20px;
  23123. font-size: 20px;
  23124. font-weight: 500;
  23125. border-left: 4px solid #41c4a4;
  23126. padding-left: 4px;
  23127. }
  23128. .cru_selectBox {
  23129. overflow: auto;
  23130. width: 95%;
  23131. margin: 17px auto 0;
  23132. height: calc(100% - 40px - 21px - 20px - 17px);
  23133. background: #fff;
  23134. border-radius: 8px;
  23135. }
  23136. .cru_selectBox::-webkit-scrollbar,
  23137. .study_top::-webkit-scrollbar,
  23138. .textContent::-webkit-scrollbar {
  23139. /*滚动条整体样式*/
  23140. width: 6px;
  23141. /*高宽分别对应横竖滚动条的尺寸*/
  23142. height: 6px;
  23143. }
  23144. /*定义滚动条轨道 内阴影+圆角*/
  23145. .cru_selectBox::-webkit-scrollbar-track,
  23146. .study_top::-webkit-scrollbar-track,
  23147. .textContent::-webkit-scrollbar {
  23148. border-radius: 10px;
  23149. background-color: #b8bdc9;
  23150. }
  23151. /*定义滑块 内阴影+圆角*/
  23152. .cru_selectBox::-webkit-scrollbar-thumb,
  23153. .study_top::-webkit-scrollbar-thumb,
  23154. .textContent::-webkit-scrollbar-thumb {
  23155. border-radius: 10px;
  23156. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  23157. background-color: #2c5ab3;
  23158. }
  23159. .vedioBox {
  23160. border-radius: 0 0 20px 20px;
  23161. background: #fff;
  23162. overflow: auto;
  23163. }
  23164. .taskBox {
  23165. width: 98%;
  23166. background: #f0f4fa;
  23167. margin: 10px auto;
  23168. padding: 0 10px;
  23169. border-radius: 4px;
  23170. box-sizing: border-box;
  23171. }
  23172. .vedioTaskBox {
  23173. width: 100%;
  23174. display: flex;
  23175. flex-direction: row;
  23176. flex-wrap: nowrap;
  23177. align-items: flex-start;
  23178. position: relative;
  23179. }
  23180. .toolBox {
  23181. margin: 15px 0 0 25px;
  23182. display: flex;
  23183. position: relative;
  23184. padding: 18px 20px;
  23185. border-top-left-radius: 5px;
  23186. border-top-right-radius: 5px;
  23187. width: 90%;
  23188. }
  23189. .btnAll {
  23190. position: absolute;
  23191. right: 0;
  23192. display: flex;
  23193. flex-direction: row;
  23194. flex-wrap: nowrap;
  23195. align-items: center;
  23196. }
  23197. .btnLeft,
  23198. .btnRight {
  23199. display: flex;
  23200. flex-direction: row;
  23201. flex-wrap: nowrap;
  23202. align-items: center;
  23203. padding: 5px 0;
  23204. }
  23205. .btnLeft {
  23206. border-right: 1px solid #cad1dc;
  23207. }
  23208. .btnLeft > .custom-tooltip {
  23209. background: #3681fc;
  23210. color: #fff;
  23211. }
  23212. .last:hover {
  23213. background: #3383fa !important;
  23214. color: #fff;
  23215. border: 1px solid #3383fa !important;
  23216. }
  23217. .last,
  23218. .returnBtn1 {
  23219. width: 90px;
  23220. height: 36px;
  23221. background: #ffffff;
  23222. border-radius: 4px;
  23223. border: 1px solid #0061ff;
  23224. color: #0061ff;
  23225. cursor: pointer;
  23226. display: flex;
  23227. flex-direction: row;
  23228. flex-wrap: nowrap;
  23229. align-items: center;
  23230. justify-content: center;
  23231. margin-left: 12px;
  23232. }
  23233. .returnBtn1 {
  23234. background: #f0f4fa;
  23235. border-radius: 4px;
  23236. border: 1px solid #cad1dc;
  23237. margin: 0 12px;
  23238. }
  23239. .lastImg {
  23240. min-width: 15px;
  23241. width: 15px;
  23242. height: 15px;
  23243. display: flex;
  23244. }
  23245. .lastText {
  23246. padding: 0 5px 0 5px;
  23247. box-sizing: border-box;
  23248. font-size: 14px;
  23249. }
  23250. .lastImg > img {
  23251. width: 100%;
  23252. height: 100%;
  23253. }
  23254. /* .vedioTimeBox {
  23255. display: flex;
  23256. flex-direction: row;
  23257. align-items: center;
  23258. flex-wrap: nowrap;
  23259. position: relative;
  23260. } */
  23261. .navBox {
  23262. background: #fff;
  23263. height: calc(100% - 40px);
  23264. overflow-y: auto;
  23265. overflow-x: hidden;
  23266. }
  23267. .worksBox {
  23268. margin: 0 0 10px 25px;
  23269. border-bottom: 1px solid #eeeeee;
  23270. padding: 18px 20px;
  23271. border-radius: 4px;
  23272. width: 90%;
  23273. }
  23274. .worksBTitle {
  23275. font-size: 20px;
  23276. padding-bottom: 15px;
  23277. border-bottom: 1px solid #eeeeee;
  23278. display: flex;
  23279. align-items: center;
  23280. }
  23281. .greenBox {
  23282. width: 5px;
  23283. height: 30px;
  23284. background: #63b6fa;
  23285. margin-right: 5px;
  23286. }
  23287. .worksDetailBox {
  23288. display: flex;
  23289. width: 100%;
  23290. flex-direction: row;
  23291. flex-wrap: wrap;
  23292. align-items: flex-end;
  23293. justify-content: flex-start;
  23294. padding: 15px 5px;
  23295. box-sizing: border-box;
  23296. }
  23297. .works {
  23298. display: flex;
  23299. flex-direction: column;
  23300. flex-wrap: nowrap;
  23301. align-items: flex-start;
  23302. justify-content: flex-start;
  23303. align-content: center;
  23304. max-width: 240px;
  23305. width: calc(100% / 3 - 10px);
  23306. height: auto;
  23307. margin-right: 10px;
  23308. margin-bottom: 10px;
  23309. overflow: hidden;
  23310. height: 140px;
  23311. box-shadow: 0 0 6px 1px #dfdada;
  23312. border-radius: 15px;
  23313. }
  23314. .workImg {
  23315. width: 100%;
  23316. /* height: calc(100% - 40px); */
  23317. height: 105px;
  23318. position: relative;
  23319. }
  23320. .workImg > img {
  23321. width: 100%;
  23322. height: 100%;
  23323. object-fit: contain;
  23324. cursor: pointer;
  23325. }
  23326. .worksName {
  23327. height: 40px;
  23328. line-height: 40px;
  23329. display: flex;
  23330. width: 100%;
  23331. flex-direction: row;
  23332. flex-wrap: nowrap;
  23333. justify-content: space-between;
  23334. align-items: center;
  23335. margin: 0 0 0 10px;
  23336. }
  23337. .worksName > div:nth-child(1) {
  23338. width: 110px;
  23339. white-space: nowrap;
  23340. overflow: hidden;
  23341. text-overflow: ellipsis;
  23342. }
  23343. .worksName > div:nth-child(2) {
  23344. color: #b7b4b5;
  23345. }
  23346. .noWorksS {
  23347. padding: 15px 0;
  23348. display: flex;
  23349. flex-direction: row;
  23350. flex-wrap: wrap;
  23351. align-items: center;
  23352. justify-content: flex-start;
  23353. }
  23354. .noWorksName,
  23355. .isWorksName,
  23356. .isWorksName2 {
  23357. background: #ddebf8;
  23358. color: #000;
  23359. width: 90px;
  23360. height: 25px;
  23361. text-align: center;
  23362. line-height: 25px;
  23363. border-radius: 4px;
  23364. margin: 10px 15px 10px 0;
  23365. white-space: nowrap;
  23366. overflow: hidden;
  23367. padding: 5px;
  23368. text-overflow: ellipsis;
  23369. cursor: pointer;
  23370. border: 1px solid #ddebf8;
  23371. }
  23372. .noWorksName {
  23373. background: #fff;
  23374. color: #0061ff;
  23375. border: 1px solid #0061ff;
  23376. }
  23377. .noWorksName > span{
  23378. max-width: 100%;
  23379. display: block;
  23380. overflow: hidden;
  23381. text-overflow: ellipsis;
  23382. white-space: nowrap;
  23383. }
  23384. .noWorksName2 {
  23385. background: #fff;
  23386. color: #0061ff;
  23387. width: 90px;
  23388. height: 25px;
  23389. text-align: center;
  23390. line-height: 25px;
  23391. border-radius: 4px;
  23392. margin: 10px 15px 10px 0;
  23393. white-space: nowrap;
  23394. overflow: hidden;
  23395. padding: 5px;
  23396. text-overflow: ellipsis;
  23397. cursor: pointer;
  23398. border: 1px solid #0061ff;
  23399. }
  23400. .noWorksName2 > span {
  23401. max-width: 100%;
  23402. display: block;
  23403. overflow: hidden;
  23404. text-overflow: ellipsis;
  23405. white-space: nowrap;
  23406. }
  23407. .isWorksName2 {
  23408. width: 100px;
  23409. height: 40px;
  23410. line-height: 40px;
  23411. position: relative;
  23412. background: #dae6f9;
  23413. }
  23414. .isWorksName {
  23415. background: #e7ebf1 !important;
  23416. width: 100px;
  23417. height: 40px;
  23418. line-height: 40px;
  23419. position: relative;
  23420. color: #acb4bf;
  23421. border: 1px solid #cad1dc !important;
  23422. }
  23423. .isSelectName,
  23424. .noWorksName:hover {
  23425. background: #3383fa !important;
  23426. color: #fff !important;
  23427. border: 1px solid #3383fa !important;
  23428. }
  23429. .title {
  23430. background: #1e5cc9;
  23431. /* width: 98%; */
  23432. height: 45px;
  23433. color: #fff;
  23434. line-height: 45px;
  23435. padding-left: 20px;
  23436. box-sizing: border-box;
  23437. }
  23438. .textBox {
  23439. font-size: 20px;
  23440. width: 90%;
  23441. display: flex;
  23442. flex-direction: column;
  23443. align-items: center;
  23444. margin: 20px auto 0;
  23445. max-height: calc(100% - 75px);
  23446. overflow: auto;
  23447. }
  23448. .textContent {
  23449. font-size: 18px;
  23450. width: 95%;
  23451. max-width: 95%;
  23452. }
  23453. .answerBg {
  23454. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  23455. background-size: 100% 100%;
  23456. width: 100%;
  23457. height: 100%;
  23458. color: #fff;
  23459. text-align: center;
  23460. display: flex;
  23461. flex-direction: column;
  23462. flex-wrap: nowrap;
  23463. align-items: center;
  23464. position: relative;
  23465. justify-content: center;
  23466. }
  23467. /* .answerBg > div:nth-child(1) {
  23468. font-size: 22px;
  23469. padding: 25px 0 10px;
  23470. } */
  23471. .answerContent {
  23472. width: 215px;
  23473. max-height: 60px;
  23474. word-break: break-all;
  23475. text-align: center;
  23476. /* white-space: nowrap; */
  23477. overflow: hidden;
  23478. text-overflow: ellipsis;
  23479. /* padding: 23px 0 0; */
  23480. -webkit-line-clamp: 3;
  23481. -webkit-box-orient: vertical;
  23482. display: -webkit-box;
  23483. font-size: 15px;
  23484. cursor: pointer;
  23485. }
  23486. .elist_input_box {
  23487. display: flex;
  23488. align-items: flex-start;
  23489. flex-wrap: nowrap;
  23490. padding: 10px 0 15px 30px;
  23491. flex-direction: column;
  23492. }
  23493. .elist_input {
  23494. /* width: 40%; */
  23495. width: 45%;
  23496. margin: 20px;
  23497. }
  23498. .elist_input .elist_input_box input {
  23499. font: inherit;
  23500. color: currentColor;
  23501. width: 200px;
  23502. padding: 8px 14px;
  23503. display: block;
  23504. min-width: 0;
  23505. outline: none;
  23506. border: 1px solid rgba(0, 0, 0, 0.23);
  23507. border-radius: 4px;
  23508. box-sizing: border-box;
  23509. background: #fff;
  23510. margin: 0 20px 0 0;
  23511. }
  23512. .elist_input .elist_input_box span {
  23513. height: 36px;
  23514. line-height: 36px;
  23515. color: rgb(82, 82, 82);
  23516. }
  23517. .elist_input .elist_input_box .remove {
  23518. height: 20px;
  23519. width: 20px;
  23520. background-size: 100% 100%;
  23521. background-position: unset;
  23522. margin-left: 5px;
  23523. }
  23524. .elist_input_box >>> .el-rate {
  23525. display: flex;
  23526. height: 36px;
  23527. align-items: center;
  23528. }
  23529. .elist_input_box .elist_inptu_text {
  23530. min-height: 50px;
  23531. /* width: 500px;
  23532. max-height: 150px; */
  23533. width: 100%;
  23534. line-height: 50px;
  23535. color: rgb(82, 82, 82);
  23536. overflow: auto;
  23537. text-indent: 5px;
  23538. background: #f7f6f9;
  23539. border-radius: 10px;
  23540. }
  23541. .elist_input_box .elist_inptu_text input {
  23542. width: 500px;
  23543. }
  23544. .elist_input_box >>> .el-rate__icon {
  23545. font-size: 24px;
  23546. }
  23547. .isClick {
  23548. background: #4d9def;
  23549. }
  23550. .bzBox {
  23551. display: flex;
  23552. flex-direction: row;
  23553. align-items: center;
  23554. }
  23555. .bzBox .yCss {
  23556. width: 7px;
  23557. height: 7px;
  23558. background: #fff;
  23559. margin: 0 16px 0 6px;
  23560. border-radius: 50%;
  23561. border: 5px solid #3681fc;
  23562. z-index: 99;
  23563. }
  23564. .bzBox > div:nth-child(2) {
  23565. font-size: 18px;
  23566. font-weight: bold;
  23567. color: #0e1e33;
  23568. }
  23569. .navTitile {
  23570. padding: 0 0px 0 15px;
  23571. font-size: 16px;
  23572. font-weight: bold;
  23573. color: #0e1e33;
  23574. height: 40px;
  23575. line-height: 40px;
  23576. }
  23577. .isTypeOne {
  23578. width: 240px;
  23579. height: 170px;
  23580. /* border: 1px solid #f8f8f8; */
  23581. border-radius: 10px;
  23582. box-shadow: 0 0 6px 1px #dfdada;
  23583. }
  23584. .e_add_top {
  23585. display: flex;
  23586. justify-content: space-between;
  23587. padding: 10px 20px;
  23588. border-radius: 3px;
  23589. background: #fff;
  23590. }
  23591. .e_add_title2 {
  23592. display: flex;
  23593. align-items: center;
  23594. }
  23595. .e_add_title2 span {
  23596. width: 40px;
  23597. }
  23598. .e_add_title {
  23599. display: flex;
  23600. align-items: center;
  23601. color: #b8b8b8;
  23602. font-size: 18px;
  23603. position: relative;
  23604. height: 40px;
  23605. }
  23606. .e_add_title span {
  23607. margin-right: 10px;
  23608. }
  23609. .e_add_title .el_input {
  23610. width: 300px;
  23611. }
  23612. .e_add_title >>> .el-input__inner {
  23613. width: 400px;
  23614. }
  23615. /* .e_add_btn {
  23616. } */
  23617. .e_add_content {
  23618. display: flex;
  23619. width: 100%;
  23620. max-width: 650px;
  23621. height: 550px;
  23622. }
  23623. .e_add_list {
  23624. background: #fff;
  23625. height: 500px;
  23626. width: 210px;
  23627. position: relative;
  23628. margin: 15px 5px 0 0;
  23629. flex-shrink: 0;
  23630. display: flex;
  23631. flex-direction: column;
  23632. }
  23633. .e_add_list_title {
  23634. font-size: 20px;
  23635. width: 100%;
  23636. box-sizing: border-box;
  23637. padding: 15px 40px;
  23638. text-align: center;
  23639. border-bottom: 1px solid #eaeaea;
  23640. position: relative;
  23641. display: flex;
  23642. align-items: center;
  23643. justify-content: center;
  23644. height: 57px;
  23645. background: #f6f6f6;
  23646. }
  23647. .e_add_list_title span {
  23648. overflow: hidden;
  23649. white-space: nowrap;
  23650. text-overflow: ellipsis;
  23651. }
  23652. .e_add_list_title img {
  23653. position: absolute;
  23654. right: 15px;
  23655. width: 25px;
  23656. cursor: pointer;
  23657. top: 50%;
  23658. transform: translateY(-50%);
  23659. }
  23660. .e_add_list_body {
  23661. height: calc(100% - 187px);
  23662. overflow: auto;
  23663. }
  23664. .e_add_list_child {
  23665. width: 100%;
  23666. display: flex;
  23667. align-items: center;
  23668. justify-content: center;
  23669. position: relative;
  23670. box-sizing: border-box;
  23671. padding: 15px 40px;
  23672. text-align: center;
  23673. }
  23674. .e_add_list_child span {
  23675. overflow: hidden;
  23676. white-space: nowrap;
  23677. text-overflow: ellipsis;
  23678. cursor: pointer;
  23679. }
  23680. .e_add_list_child img {
  23681. position: absolute;
  23682. right: 10px;
  23683. width: 21px;
  23684. cursor: pointer;
  23685. top: 50%;
  23686. transform: translateY(-50%);
  23687. }
  23688. .e_add_list_child + .e_add_list_child {
  23689. border-top: 1px solid #eaeaea;
  23690. }
  23691. .e_add_list_child .active {
  23692. color: #409eff;
  23693. }
  23694. .e_add_list_btn {
  23695. position: absolute;
  23696. bottom: 0;
  23697. height: 50px;
  23698. background: rgb(120, 120, 254);
  23699. width: 100%;
  23700. color: #fff;
  23701. font-size: 16px;
  23702. text-align: center;
  23703. line-height: 50px;
  23704. cursor: pointer;
  23705. }
  23706. .e_add_list_detail {
  23707. position: absolute;
  23708. bottom: 0;
  23709. height: 130px;
  23710. background: rgb(120, 120, 254);
  23711. width: 100%;
  23712. color: #fff;
  23713. font-size: 16px;
  23714. display: flex;
  23715. align-items: center;
  23716. justify-content: center;
  23717. }
  23718. .e_add_list_detail textarea {
  23719. height: 90%;
  23720. width: 95%;
  23721. border: none;
  23722. resize: none;
  23723. outline: none;
  23724. padding: 5px;
  23725. box-sizing: border-box;
  23726. }
  23727. .e_add_list_pbox {
  23728. width: 100%;
  23729. max-width: 650px;
  23730. /* height: 600px; */
  23731. }
  23732. .e_add_list_pbox_title {
  23733. height: 50px;
  23734. background: #fff;
  23735. display: flex;
  23736. align-items: center;
  23737. width: 100%;
  23738. box-sizing: border-box;
  23739. padding: 0 20px;
  23740. }
  23741. .type_title {
  23742. font-size: 18px;
  23743. font-weight: 700;
  23744. }
  23745. .type_content {
  23746. font-size: 16px;
  23747. /* margin-left: 30px; */
  23748. }
  23749. .type_content span + span {
  23750. margin-left: 20px;
  23751. }
  23752. .type_content span {
  23753. cursor: pointer;
  23754. padding-bottom: 5px;
  23755. box-sizing: border-box;
  23756. }
  23757. .type_content .active {
  23758. color: #409eff;
  23759. border-bottom: 2px solid #409eff;
  23760. }
  23761. .e_add_list_pbox_content {
  23762. height: calc(100% - 50px);
  23763. display: flex;
  23764. align-items: center;
  23765. width: 100%;
  23766. background: #fff;
  23767. }
  23768. .evaCss {
  23769. display: flex;
  23770. flex-direction: row;
  23771. flex-wrap: nowrap;
  23772. align-items: flex-start;
  23773. padding: 0 0 20px;
  23774. }
  23775. .cru_line {
  23776. position: absolute;
  23777. bottom: 0px;
  23778. transition: all 0.5s;
  23779. left: 0px;
  23780. width: 125px;
  23781. margin-left: -25px;
  23782. }
  23783. .isNoMessage {
  23784. width: 20%;
  23785. margin: 25% auto 0;
  23786. }
  23787. .isNoMessage > img {
  23788. width: 100%;
  23789. height: 100%;
  23790. }
  23791. .fullStyle >>> .el-dialog__body {
  23792. height: 100% !important;
  23793. }
  23794. .fullStyle >>> .el-dialog,
  23795. .fullStyle {
  23796. width: 100% !important;
  23797. max-width: 100% !important;
  23798. height: 100% !important;
  23799. margin: 0 !important;
  23800. }
  23801. .full_diy >>> .el-dialog {
  23802. margin: 0 !important;
  23803. height: 100%;
  23804. padding: 4px;
  23805. }
  23806. .full_diy >>> .el-dialog__body {
  23807. height: calc(100% - 100px);
  23808. }
  23809. .full_diy2 >>> .el-dialog__body {
  23810. height: calc(100% - 50px);
  23811. padding: 0;
  23812. }
  23813. .switchCss {
  23814. /* width: 100%; */
  23815. display: flex;
  23816. flex-direction: row;
  23817. flex-wrap: nowrap;
  23818. align-items: center;
  23819. /* justify-content: center; */
  23820. }
  23821. .isClickNav {
  23822. /* color: #499eef; */
  23823. color: #000;
  23824. }
  23825. .commentImg {
  23826. width: 25px;
  23827. height: 25px;
  23828. cursor: pointer;
  23829. }
  23830. .commentImg > img {
  23831. width: 100%;
  23832. height: 100%;
  23833. }
  23834. .comment {
  23835. background: #f9f9f9;
  23836. border-radius: 0 0 4px 4px;
  23837. display: flex;
  23838. flex-direction: row;
  23839. flex-wrap: nowrap;
  23840. align-items: center;
  23841. justify-content: flex-end;
  23842. height: 35px;
  23843. }
  23844. .commentList {
  23845. display: flex;
  23846. flex-direction: row;
  23847. flex-wrap: nowrap;
  23848. align-items: center;
  23849. justify-content: center;
  23850. align-content: center;
  23851. /* margin-left: 15px; */
  23852. /* margin-left: 8px; */
  23853. }
  23854. .scoreImg {
  23855. width: 17px;
  23856. height: 17px;
  23857. }
  23858. .studentDetail {
  23859. display: flex;
  23860. flex-direction: row;
  23861. flex-wrap: nowrap;
  23862. /* align-items: center; */
  23863. align-items: flex-start;
  23864. }
  23865. .tx {
  23866. width: 50px;
  23867. }
  23868. .tx > img {
  23869. width: 100%;
  23870. height: 100%;
  23871. }
  23872. .nameAndTime {
  23873. display: flex;
  23874. flex-direction: column;
  23875. flex-wrap: nowrap;
  23876. align-items: flex-start;
  23877. margin-left: 10px;
  23878. }
  23879. .worksAnswer {
  23880. color: #4078dd;
  23881. margin: 10px 0;
  23882. font-size: 16px;
  23883. position: relative;
  23884. }
  23885. .worksAnswer > img {
  23886. width: 500px;
  23887. height: 300px;
  23888. object-fit: contain;
  23889. margin: 0 auto;
  23890. display: block;
  23891. }
  23892. .commentTop {
  23893. border-bottom: 1px solid #eaeaea;
  23894. padding-bottom: 10px;
  23895. }
  23896. .commentBox {
  23897. padding-top: 15px;
  23898. }
  23899. .pl {
  23900. font-size: 18px;
  23901. }
  23902. .plPerson {
  23903. width: 100%;
  23904. }
  23905. .plName {
  23906. display: flex;
  23907. flex-direction: row;
  23908. flex-wrap: nowrap;
  23909. align-items: baseline;
  23910. color: #78787a;
  23911. width: 100%;
  23912. }
  23913. .deleteComment {
  23914. cursor: pointer;
  23915. margin-left: auto;
  23916. color: #237ade;
  23917. }
  23918. .plContent {
  23919. margin-top: 5px;
  23920. }
  23921. .evalCss {
  23922. background: #fff;
  23923. font-size: 18px;
  23924. }
  23925. .nav {
  23926. color: #9d9d9d;
  23927. padding: 5px 0 15px 20px;
  23928. }
  23929. .middleBox {
  23930. padding: 5px 0 15px 20px;
  23931. }
  23932. .pfBox {
  23933. padding-bottom: 30px;
  23934. }
  23935. .nameAndrate {
  23936. display: flex;
  23937. flex-direction: row;
  23938. flex-wrap: nowrap;
  23939. align-items: center;
  23940. padding-bottom: 10px;
  23941. height: 30px;
  23942. line-height: 30px;
  23943. }
  23944. .nameAndrate > div {
  23945. margin-left: 10px;
  23946. color: #000;
  23947. height: 30px;
  23948. }
  23949. .nameAndrate >>> .el-rate__icon {
  23950. font-size: 28px !important;
  23951. }
  23952. .pfBox > div:nth-child(2) {
  23953. background: #f7f6f9;
  23954. width: 400px;
  23955. min-height: 45px;
  23956. border-radius: 10px;
  23957. font-size: 16px;
  23958. display: flex;
  23959. flex-wrap: wrap;
  23960. align-items: center;
  23961. padding: 10px 20px;
  23962. box-sizing: border-box;
  23963. color: #000;
  23964. }
  23965. .bz {
  23966. display: flex;
  23967. flex-direction: row;
  23968. flex-wrap: nowrap;
  23969. align-items: flex-start;
  23970. }
  23971. .bz > div {
  23972. padding: 0 10px;
  23973. }
  23974. .select_box2_title {
  23975. background: #fff;
  23976. border-radius: 5px;
  23977. padding: 15px 10px;
  23978. box-sizing: border-box;
  23979. margin-bottom: 10px;
  23980. display: flex;
  23981. flex-direction: row;
  23982. flex-wrap: nowrap;
  23983. align-items: center;
  23984. }
  23985. .select_box2_title > div:nth-child(2) {
  23986. margin-left: 10px;
  23987. color: #c4c4c4;
  23988. }
  23989. .select_box2_box {
  23990. display: flex;
  23991. height: 500px;
  23992. }
  23993. .select_box2_img {
  23994. width: calc(100% - 310px);
  23995. height: 100%;
  23996. overflow: auto;
  23997. background: #fff;
  23998. border-radius: 5px;
  23999. }
  24000. .select_box2_img img {
  24001. width: 100%;
  24002. }
  24003. .select_box2_answer {
  24004. background: #fff;
  24005. margin-left: 10px;
  24006. border-radius: 5px;
  24007. width: 300px;
  24008. overflow: auto;
  24009. height: 90%;
  24010. display: flex;
  24011. flex-direction: column;
  24012. align-items: flex-start;
  24013. padding-top: 10px;
  24014. box-sizing: border-box;
  24015. position: relative;
  24016. }
  24017. .select_answer_title {
  24018. padding: 0 0 15px 20px;
  24019. color: #c4c4c4;
  24020. }
  24021. .select_box2_answer_box {
  24022. margin: 0 0 10px 20px;
  24023. width: 85%;
  24024. display: flex;
  24025. flex-direction: row;
  24026. flex-wrap: nowrap;
  24027. align-items: center;
  24028. }
  24029. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  24030. color: #000;
  24031. }
  24032. .upAnswerCss {
  24033. position: absolute;
  24034. bottom: 15px;
  24035. right: 15px;
  24036. }
  24037. .upAnswerCss >>> .el-button {
  24038. width: 95px;
  24039. height: 35px;
  24040. line-height: 35px;
  24041. padding: 0;
  24042. }
  24043. .rightWidthCss {
  24044. width: 60%;
  24045. display: flex;
  24046. flex-direction: row;
  24047. align-items: flex-start;
  24048. }
  24049. .rightAnswer {
  24050. display: flex;
  24051. flex-direction: row;
  24052. flex-wrap: nowrap;
  24053. align-items: center;
  24054. color: red;
  24055. margin-bottom: 31px;
  24056. }
  24057. .rightAnswerCss {
  24058. display: flex;
  24059. flex-direction: column;
  24060. flex-wrap: nowrap;
  24061. padding-top: 60px;
  24062. }
  24063. .blueCss {
  24064. color: #767de1;
  24065. margin-left: 10px;
  24066. }
  24067. .redCss {
  24068. color: red;
  24069. }
  24070. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  24071. color: rgb(0 123 255) !important;
  24072. }
  24073. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  24074. color: rgb(0 123 255) !important;
  24075. }
  24076. .zuoyeYulan {
  24077. padding-top: 0;
  24078. font-size: 18px;
  24079. display: flex;
  24080. align-items: flex-end;
  24081. }
  24082. .buttonA {
  24083. margin-left: 10px;
  24084. padding: 0;
  24085. }
  24086. .displayBox {
  24087. margin-bottom: 10px;
  24088. display: block;
  24089. border-bottom: 3px solid #eee;
  24090. display: flex;
  24091. align-items: center;
  24092. }
  24093. .easy_comment {
  24094. width: calc(100% - 90px);
  24095. margin-left: 10px;
  24096. display: flex;
  24097. flex-wrap: wrap;
  24098. }
  24099. .easy_comment > div {
  24100. border: 1px solid #4a4a4a;
  24101. color: #666;
  24102. border-radius: 15px;
  24103. padding: 5px 10px;
  24104. font-size: 16px;
  24105. margin-bottom: 10px;
  24106. margin-right: 5px;
  24107. cursor: pointer;
  24108. }
  24109. .easy_comment div:hover {
  24110. border: 1px solid #f7ba2a;
  24111. color: #c69217;
  24112. }
  24113. .xuan_right_box {
  24114. padding: 10px 0;
  24115. background: #f0f4fa;
  24116. margin: 0 15px 0 25px;
  24117. border-bottom-left-radius: 5px;
  24118. border-bottom-right-radius: 5px;
  24119. width: 91.5%;
  24120. }
  24121. .tool_right_box {
  24122. display: flex;
  24123. align-items: center;
  24124. }
  24125. .tool_right_box + .tool_right_box {
  24126. margin-top: 10px;
  24127. }
  24128. .right_box_xuan {
  24129. border-radius: 5px;
  24130. padding: 5px;
  24131. margin-left: 10px;
  24132. min-width: 85px;
  24133. background: #fff;
  24134. color: #0061ff;
  24135. border: 1px solid #0061ff;
  24136. font-size: 14px;
  24137. }
  24138. .pButton:hover {
  24139. opacity: 1 !important;
  24140. }
  24141. .pButton {
  24142. position: fixed;
  24143. text-align: center;
  24144. cursor: pointer;
  24145. z-index: 999;
  24146. right: 20px;
  24147. top: 110px;
  24148. width: 50px;
  24149. height: 50px;
  24150. display: flex;
  24151. align-items: center;
  24152. justify-content: center;
  24153. border-radius: 5px;
  24154. }
  24155. .pzClass {
  24156. width: calc(100% - 340px);
  24157. }
  24158. .newDialogCss {
  24159. /* position: fixed;
  24160. right: 5%;
  24161. top: 50%;
  24162. width: 340px;
  24163. transform: translateY(-50%);
  24164. height: 60%;
  24165. box-shadow: 0px 0 8px 0px #555555;
  24166. border-radius: 15px;
  24167. z-index: 999; */
  24168. position: fixed;
  24169. right: 20px;
  24170. top: 101px;
  24171. width: 330px;
  24172. height: calc(100% - 80px);
  24173. z-index: 999;
  24174. background: #fff;
  24175. border-top-right-radius: 0px;
  24176. border-bottom-right-radius: 0px;
  24177. overflow: hidden;
  24178. }
  24179. .newDialogCss>.scoreList{
  24180. width:100%;
  24181. height:100%;
  24182. box-sizing:border-box;
  24183. padding:10px 15px;
  24184. overflow:auto;
  24185. padding-bottom:80px;
  24186. }
  24187. .pzTop {
  24188. color: #fff;
  24189. background: #000;
  24190. display: flex;
  24191. flex-direction: row;
  24192. flex-wrap: nowrap;
  24193. align-items: center;
  24194. justify-content: space-between;
  24195. height: 40px;
  24196. border-radius: 15px 15px 0 0;
  24197. user-select: none;
  24198. }
  24199. .pzTop2 .checkbox {
  24200. display: flex;
  24201. align-items: center;
  24202. padding: 5px 10px;
  24203. flex: 0 0 auto;
  24204. font-weight: bold;
  24205. border-bottom: 1px solid #eee;
  24206. justify-content: space-between;
  24207. }
  24208. .checkbox>.cb-tabList{
  24209. display:flex;
  24210. align-items:center;
  24211. }
  24212. .cb-tabList>div{
  24213. margin-right:20px;
  24214. font-weight:400;
  24215. cursor:pointer;
  24216. }
  24217. .cb-tabList>.cb-tabItem{
  24218. color:#1684FC;
  24219. position:relative;
  24220. }
  24221. .cb-tabItem::after{
  24222. content:"";
  24223. width:100%;
  24224. height:2px;
  24225. background:#1684FC;
  24226. position:absolute;
  24227. bottom:-5px;
  24228. left:0
  24229. }
  24230. .pzTop2 .check {
  24231. text-align: center;
  24232. cursor: pointer;
  24233. box-sizing: border-box;
  24234. display: flex;
  24235. }
  24236. .pzTop2 img {
  24237. width: 25px;
  24238. cursor: pointer;
  24239. }
  24240. .pzTop > div:nth-child(1) {
  24241. padding-left: 10px;
  24242. }
  24243. .pzTop > div:nth-child(2) {
  24244. width: 15px;
  24245. height: 15px;
  24246. padding-right: 10px;
  24247. cursor: pointer;
  24248. }
  24249. .pzTop > div:nth-child(2) > img {
  24250. width: 100%;
  24251. height: 100%;
  24252. }
  24253. .pzBox,
  24254. .noPzBox {
  24255. height: calc(100% - 60px);
  24256. /* background: #ededed; */
  24257. background: #fff;
  24258. /* border-radius: 0 0 15px 15px; */
  24259. }
  24260. .noPzBox {
  24261. display: flex;
  24262. flex-direction: column;
  24263. flex-wrap: nowrap;
  24264. justify-content: center;
  24265. align-items: center;
  24266. }
  24267. .pzList {
  24268. background: #f7f7f7;
  24269. width: 90%;
  24270. margin: 0 auto 15px;
  24271. border-radius: 5px;
  24272. }
  24273. .pzNavTop {
  24274. display: flex;
  24275. flex-direction: row;
  24276. flex-wrap: nowrap;
  24277. padding: 10px 10px 0 10px;
  24278. align-items: center;
  24279. }
  24280. .pzDelete {
  24281. cursor: pointer;
  24282. margin-left: auto;
  24283. font-size: 14px;
  24284. color: #afafaf;
  24285. }
  24286. .pzNavTop > div:nth-child(1) {
  24287. background: #3760af;
  24288. width: 35px;
  24289. height: 35px;
  24290. color: #fff;
  24291. text-align: center;
  24292. line-height: 35px;
  24293. border-radius: 50%;
  24294. font-size: 14px;
  24295. }
  24296. .pzNavTop > div:nth-child(2) {
  24297. font-size: 18px;
  24298. color: #959595;
  24299. margin-left: 5px;
  24300. }
  24301. .pzContent {
  24302. padding: 10px;
  24303. word-break: break-word;
  24304. }
  24305. .pzContent audio {
  24306. width: 100%;
  24307. }
  24308. .pzContent audio::-webkit-media-controls-panel {
  24309. background: #fff;
  24310. }
  24311. .pzContent >>> img {
  24312. max-width: 100%;
  24313. }
  24314. .pzListBox {
  24315. padding-top: 15px;
  24316. height: calc(100% - 110px);
  24317. overflow: auto;
  24318. }
  24319. .addPzButton {
  24320. position: relative;
  24321. margin-top: 3px;
  24322. width: 100%;
  24323. }
  24324. .addPzButton .img1 {
  24325. position: absolute;
  24326. top: 50%;
  24327. right: 25px;
  24328. transform: translateY(-50%);
  24329. height: 100%;
  24330. display: flex;
  24331. align-items: center;
  24332. }
  24333. .addPzButton .img1 div {
  24334. display: flex;
  24335. }
  24336. .addPzButton .img1 div img {
  24337. width: 28px;
  24338. margin-left: 10px;
  24339. cursor: pointer;
  24340. }
  24341. .addPzButton .img1 div span {
  24342. font-size: 14px;
  24343. margin: 4px 0 0 3px;
  24344. color: #afafaf;
  24345. }
  24346. .addPz {
  24347. background: #4b79ce;
  24348. width: 100px;
  24349. color: #fff;
  24350. font-size: 12px;
  24351. height: 30px;
  24352. margin: 0 auto;
  24353. text-align: center;
  24354. line-height: 30px;
  24355. border-radius: 10px;
  24356. cursor: pointer;
  24357. }
  24358. .addDialogCss {
  24359. position: fixed;
  24360. width: 600px;
  24361. height: 70%;
  24362. min-height: 450px;
  24363. box-shadow: 0px 0 8px 0px #555555;
  24364. border-radius: 15px;
  24365. z-index: 999;
  24366. left: 50%;
  24367. top: 50%;
  24368. margin: -18% 0 0 -300px;
  24369. }
  24370. .teacherPz {
  24371. display: flex;
  24372. flex-direction: row;
  24373. align-items: center;
  24374. flex-wrap: nowrap;
  24375. }
  24376. .teacherPzImg {
  24377. width: 30px;
  24378. height: 30px;
  24379. }
  24380. .teacherPzImg > img {
  24381. width: 100%;
  24382. height: 100%;
  24383. }
  24384. .addPzBox {
  24385. height: calc(100% - 40px);
  24386. background: #ededed;
  24387. border-bottom-left-radius: 15px;
  24388. border-bottom-right-radius: 15px;
  24389. }
  24390. .pzAudioClass {
  24391. margin: 15px 14px;
  24392. background: #fff;
  24393. height: 100%;
  24394. display: flex;
  24395. justify-content: center;
  24396. align-items: center;
  24397. }
  24398. .pzConText {
  24399. width: 95%;
  24400. height: 100%;
  24401. margin: 10px auto 0;
  24402. border: none;
  24403. background: #fff;
  24404. border-radius: 0px;
  24405. }
  24406. .pzConText >>> .text {
  24407. height: calc(100% - 82px);
  24408. }
  24409. .addTextCss {
  24410. background: #4b79ce;
  24411. width: 80px;
  24412. height: 30px;
  24413. text-align: center;
  24414. color: #fff;
  24415. line-height: 30px;
  24416. border-radius: 10px;
  24417. margin: 10px auto 0;
  24418. cursor: pointer;
  24419. }
  24420. .pzConText:focus-visible {
  24421. border: none !important;
  24422. }
  24423. .maxWidth {
  24424. width: 1000px;
  24425. }
  24426. .noPz {
  24427. width: 150px;
  24428. margin: 0 auto 20%;
  24429. }
  24430. .noPz > img {
  24431. width: 100%;
  24432. height: 100%;
  24433. }
  24434. .timeAndReply {
  24435. display: flex;
  24436. flex-direction: row;
  24437. flex-wrap: nowrap;
  24438. justify-content: space-between;
  24439. align-items: center;
  24440. font-size: 14px;
  24441. box-sizing: border-box;
  24442. padding: 0 10px 10px 0px;
  24443. }
  24444. .timeAndReply .time {
  24445. color: #bfbfbf;
  24446. padding: 0 0 0 10px;
  24447. box-sizing: border-box;
  24448. }
  24449. .timeAndReply > div:last-child {
  24450. cursor: pointer;
  24451. color: #777;
  24452. }
  24453. /* table 样式 */
  24454. .cont >>> table {
  24455. border-top: 1px solid #ccc;
  24456. border-left: 1px solid #ccc;
  24457. }
  24458. .cont >>> table td,
  24459. .cont >>> table th {
  24460. border-bottom: 1px solid #ccc;
  24461. border-right: 1px solid #ccc;
  24462. /* padding: 20px 5px; */
  24463. padding: 5px 10px;
  24464. max-width: 0px;
  24465. height: 30px;
  24466. vertical-align: baseline;
  24467. box-sizing: border-box;
  24468. }
  24469. .cont >>> table th {
  24470. border-bottom: 2px solid #ccc;
  24471. text-align: center;
  24472. }
  24473. /* blockquote 样式 */
  24474. .cont >>> blockquote {
  24475. display: block;
  24476. border-left: 8px solid #d0e5f2;
  24477. padding: 5px 10px;
  24478. margin: 10px 0;
  24479. line-height: 1.4;
  24480. font-size: 100%;
  24481. background-color: #f1f1f1;
  24482. }
  24483. /* code 样式 */
  24484. .cont >>> code {
  24485. display: inline-block;
  24486. /* *display: inline; */
  24487. zoom: 1;
  24488. background-color: #f1f1f1;
  24489. border-radius: 3px;
  24490. padding: 3px 5px;
  24491. margin: 0 3px;
  24492. }
  24493. .cont >>> pre code {
  24494. display: block;
  24495. }
  24496. /* ul ol 样式 */
  24497. .cont >>> ul,
  24498. ol {
  24499. margin: 10px 0 10px 20px;
  24500. }
  24501. .addPzCheck {
  24502. display: flex;
  24503. flex-direction: row;
  24504. flex-wrap: nowrap;
  24505. padding: 10px 15px 0;
  24506. }
  24507. .addPzCheck span {
  24508. cursor: pointer;
  24509. padding-bottom: 5px;
  24510. font-weight: bold;
  24511. }
  24512. .addPzCheck span + span {
  24513. margin-left: 10px;
  24514. }
  24515. .addPzCheck .isChooseActive {
  24516. color: #3e88f4;
  24517. border-bottom: 2px solid #2f80f3;
  24518. }
  24519. /* code 样式 */
  24520. .cont {
  24521. /* -webkit-user-modify: read-write; */
  24522. overflow-wrap: break-word;
  24523. -webkit-line-break: after-white-space;
  24524. word-break: break-word;
  24525. white-space: pre-line;
  24526. }
  24527. .scoreBox,
  24528. .scoreDetailBox {
  24529. display: flex;
  24530. align-items: center;
  24531. justify-content: flex-start;
  24532. margin-top: 20px;
  24533. font-size: 18px;
  24534. width: 100%;
  24535. }
  24536. .scoreBox .t,
  24537. .scoreDetailBox .t {
  24538. margin-right: 10px;
  24539. width: 100px;
  24540. text-align: right;
  24541. }
  24542. .scoreDetailBox {
  24543. align-items: flex-start;
  24544. }
  24545. .scoreDetailBox >>> .el-textarea {
  24546. width: calc(100% - 200px);
  24547. }
  24548. .scoreBox >>> .el-input {
  24549. width: 130px;
  24550. font-size: 38px;
  24551. }
  24552. .scoreBox >>> .el-input__inner {
  24553. height: 60px;
  24554. }
  24555. .answerScore {
  24556. position: absolute;
  24557. top: 10px;
  24558. right: 10px;
  24559. background: #0000008f;
  24560. border-radius: 5px;
  24561. padding: 3px 5px;
  24562. font-size: 14px;
  24563. color: #fff;
  24564. cursor: pointer;
  24565. }
  24566. .open_box .switch_box {
  24567. width: 100%;
  24568. margin: 0 auto;
  24569. display: flex;
  24570. justify-content: space-between;
  24571. }
  24572. .open_box .switch_box + .switch_box {
  24573. margin-top: 10px;
  24574. }
  24575. .deleteImg,.deleteImg1 {
  24576. width: 25px !important;
  24577. height: 25px !important;
  24578. cursor: pointer;
  24579. position: absolute;
  24580. top: 10px;
  24581. right: 10px;
  24582. }
  24583. .deleteImg2 {
  24584. width: 23px !important;
  24585. height: 23px !important;
  24586. top: 5px;
  24587. right: 5px;
  24588. }
  24589. .deleteImg1{
  24590. width: 23px !important;
  24591. height: 23px !important;
  24592. top: 5px !important;
  24593. right: 30px !important;
  24594. }
  24595. .rightW {
  24596. right: 40px;
  24597. }
  24598. .drawPBox {
  24599. display: flex;
  24600. flex-direction: column;
  24601. position: relative;
  24602. }
  24603. .drawPBox span {
  24604. font-size: 18px;
  24605. color: #606266;
  24606. padding-bottom: 10px;
  24607. margin: 10px 0;
  24608. border-bottom: 1px solid #eaeaea;
  24609. }
  24610. .drawPBox img {
  24611. width: 500px;
  24612. height: 300px;
  24613. object-fit: contain;
  24614. cursor: pointer;
  24615. margin: 0 auto;
  24616. }
  24617. .sentenBox {
  24618. background: #fff;
  24619. height: 450px;
  24620. overflow: auto;
  24621. background-image: url("../../assets/icon/conSentences/stuBg.png");
  24622. background-position: 102%;
  24623. background-repeat: no-repeat;
  24624. background-size: 60%;
  24625. }
  24626. .addSen {
  24627. background: #409efe;
  24628. width: 90px;
  24629. color: #fff;
  24630. height: 35px;
  24631. text-align: center;
  24632. line-height: 35px;
  24633. border-radius: 5px;
  24634. float: right;
  24635. margin: 10px 20px 0 0;
  24636. cursor: pointer;
  24637. }
  24638. .sentenTop {
  24639. display: flex;
  24640. flex-direction: row;
  24641. flex-wrap: nowrap;
  24642. align-items: center;
  24643. padding: 55px 0 0 20px;
  24644. box-sizing: border-box;
  24645. }
  24646. .sentenTop > div:nth-child(2) {
  24647. width: 300px;
  24648. margin: 0 15px;
  24649. }
  24650. .sentenTop > div:nth-child(3) {
  24651. background: #409efe;
  24652. color: #fff;
  24653. width: 65px;
  24654. height: 35px;
  24655. text-align: center;
  24656. line-height: 35px;
  24657. border-radius: 5px;
  24658. cursor: pointer;
  24659. }
  24660. .cardList,
  24661. .cardList1 {
  24662. padding: 10px 0 10px 0;
  24663. display: flex;
  24664. flex-direction: row;
  24665. flex-wrap: wrap;
  24666. align-items: center;
  24667. box-sizing: border-box;
  24668. border-bottom: 1px solid #f4f4f4;
  24669. width: 98%;
  24670. margin: 0 auto;
  24671. min-width: 60%;
  24672. max-width: 85%;
  24673. }
  24674. .cardList1 {
  24675. padding: 10px 0 10px 10px !important;
  24676. margin: 0 !important;
  24677. }
  24678. .cardBox {
  24679. display: flex;
  24680. flex-direction: row;
  24681. flex-wrap: wrap;
  24682. align-items: center;
  24683. align-content: center;
  24684. }
  24685. .cardBox > div {
  24686. margin-bottom: 10px;
  24687. }
  24688. .isCard,
  24689. .isChooseCard,
  24690. .noCard,
  24691. .isCard1 {
  24692. min-width: 130px;
  24693. width: auto;
  24694. height: 60px;
  24695. text-align: center;
  24696. line-height: 60px;
  24697. font-size: 20px;
  24698. cursor: pointer;
  24699. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  24700. background-size: cover;
  24701. transition: all 2s;
  24702. margin-right: 20px;
  24703. background-size: 100% 100%;
  24704. padding: 0 20px;
  24705. box-sizing: border-box;
  24706. }
  24707. .isCard > div,
  24708. .noCard > div,
  24709. .isCard1 > div {
  24710. white-space: nowrap;
  24711. overflow: hidden;
  24712. text-overflow: ellipsis;
  24713. width: 100%;
  24714. margin: 0 auto;
  24715. }
  24716. .noCard {
  24717. background-image: none;
  24718. }
  24719. .isCard1 {
  24720. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  24721. }
  24722. .isChooseCard {
  24723. background-image: none;
  24724. border: 1px dashed #b9b9b9;
  24725. border-radius: 10px;
  24726. }
  24727. .card {
  24728. width: 130px;
  24729. height: 60px;
  24730. }
  24731. .card > img {
  24732. width: 100%;
  24733. height: 100%;
  24734. }
  24735. .rightCardBox {
  24736. margin: 10px 0 0 10px;
  24737. }
  24738. .rightCardBox > div:nth-child(1) {
  24739. margin-bottom: 10px;
  24740. }
  24741. .cardCss {
  24742. display: flex;
  24743. flex-direction: column;
  24744. flex-wrap: nowrap;
  24745. align-items: center;
  24746. border-bottom: 3px solid #b4c3d3;
  24747. padding: 0 0 5px 0;
  24748. margin-right: 10px;
  24749. }
  24750. .cardCss > div:nth-child(2) {
  24751. background: #5b7b9d;
  24752. color: #fff;
  24753. width: 20px;
  24754. height: 20px;
  24755. border-radius: 50%;
  24756. text-align: center;
  24757. line-height: 20px;
  24758. }
  24759. .isWrong {
  24760. display: flex;
  24761. flex-direction: row;
  24762. flex-wrap: nowrap;
  24763. align-content: center;
  24764. align-items: center;
  24765. }
  24766. .answerRight {
  24767. width: 25%;
  24768. }
  24769. .isTj {
  24770. display: flex;
  24771. flex-direction: row;
  24772. flex-wrap: nowrap;
  24773. align-items: center;
  24774. }
  24775. .isTj > div:nth-child(2) {
  24776. color: #727070;
  24777. margin-left: 10px;
  24778. }
  24779. .isTjImg {
  24780. width: 30px;
  24781. height: 30px;
  24782. }
  24783. .isTjImg > img {
  24784. width: 100%;
  24785. height: 100%;
  24786. }
  24787. .cardAnswerBox {
  24788. font-size: 18px;
  24789. width: 97%;
  24790. border: 5px;
  24791. padding: 0;
  24792. border-radius: 5px;
  24793. margin: 10px auto;
  24794. word-break: break-word;
  24795. }
  24796. .w_name {
  24797. margin-bottom: 10px;
  24798. }
  24799. .w_name span {
  24800. font-size: 16px;
  24801. }
  24802. .w_teachert {
  24803. width: 50px !important;
  24804. position: absolute;
  24805. height: auto !important;
  24806. z-index: 10;
  24807. right: 25px;
  24808. top: -25px;
  24809. }
  24810. /* .group_workBox {
  24811. } */
  24812. .group_workBox + .group_workBox {
  24813. margin-top: 20px;
  24814. }
  24815. .group_box {
  24816. padding-bottom: 20px;
  24817. border-bottom: 2px solid #f0f0f0;
  24818. margin-top: 10px;
  24819. }
  24820. .group_title {
  24821. display: flex;
  24822. align-items: center;
  24823. justify-content: space-between;
  24824. width: 95%;
  24825. }
  24826. .group_name {
  24827. background-image: url(../../assets/icon/groupN.png);
  24828. width: 220px;
  24829. background-size: 100% 100%;
  24830. height: 67px;
  24831. padding: 0 20px 0 43px;
  24832. box-sizing: border-box;
  24833. line-height: 63px;
  24834. color: #fff;
  24835. overflow: hidden;
  24836. white-space: nowrap;
  24837. text-overflow: ellipsis;
  24838. }
  24839. .group_work {
  24840. width: 100%;
  24841. padding: 0 10px;
  24842. box-sizing: border-box;
  24843. display: flex;
  24844. flex-wrap: wrap;
  24845. }
  24846. .g_d_box {
  24847. display: flex;
  24848. flex-flow: wrap;
  24849. justify-content: space-around;
  24850. }
  24851. .g_d_box .isChair {
  24852. background-image: url(../../assets/avatar.png) !important;
  24853. }
  24854. .g_d_group {
  24855. width: 500px;
  24856. margin-bottom: 80px;
  24857. }
  24858. .g_d_group_chair {
  24859. display: flex;
  24860. align-items: center;
  24861. justify-content: center;
  24862. }
  24863. .g_d_group_chair > div + div {
  24864. margin-left: 30px;
  24865. }
  24866. .g_d_group_chair > div,
  24867. .g_d_group_chair2 > div {
  24868. display: flex;
  24869. flex-direction: column;
  24870. align-items: center;
  24871. }
  24872. .g_d_group_chair > div > span:nth-child(1),
  24873. .g_d_group_chair2 > div > span:nth-child(1) {
  24874. background-image: url(../../assets/icon/chair.png);
  24875. width: 50px;
  24876. height: 50px;
  24877. display: block;
  24878. background-size: 100% 100%;
  24879. }
  24880. .g_d_group_tableBox {
  24881. display: flex;
  24882. align-items: center;
  24883. justify-content: center;
  24884. }
  24885. .g_d_group_chair2 {
  24886. display: flex;
  24887. flex-direction: column;
  24888. align-items: center;
  24889. justify-content: center;
  24890. }
  24891. .g_d_group_chair2 > div + div {
  24892. margin-top: 10px;
  24893. }
  24894. .g_d_group_table {
  24895. background-image: url(../../assets/icon/groupBg.png);
  24896. width: 354px;
  24897. height: 196px;
  24898. background-size: 100% 100%;
  24899. display: flex;
  24900. align-items: center;
  24901. justify-content: center;
  24902. flex-direction: column;
  24903. color: #fff;
  24904. }
  24905. .g_d_group_table > div:nth-child(1) {
  24906. font-size: 24px;
  24907. margin-bottom: 5px;
  24908. }
  24909. .g_d_group_table > div:nth-child(2) div {
  24910. cursor: pointer;
  24911. background: #2e77bf;
  24912. padding: 4px 10px;
  24913. border-radius: 5px;
  24914. }
  24915. /* .groupBox {
  24916. } */
  24917. .groupContent + .groupContent {
  24918. margin-top: 30px;
  24919. }
  24920. .groupTitle {
  24921. font-size: 24px;
  24922. color: rgb(80, 80, 80);
  24923. margin-bottom: 20px;
  24924. }
  24925. .groupName {
  24926. display: flex;
  24927. align-items: center;
  24928. }
  24929. .groupn {
  24930. font-size: 15px;
  24931. margin-right: 10px;
  24932. }
  24933. .groupName + .groupName {
  24934. margin-top: 15px;
  24935. }
  24936. .groupBtn {
  24937. margin-left: 10px;
  24938. }
  24939. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  24940. text-align: left;
  24941. }
  24942. .g_d_btnBox {
  24943. display: flex;
  24944. justify-content: flex-end;
  24945. align-items: center;
  24946. margin-bottom: 20px;
  24947. }
  24948. .updateChair {
  24949. position: relative;
  24950. }
  24951. .updateChairBtn {
  24952. position: absolute;
  24953. width: 50px;
  24954. height: 50px;
  24955. overflow: hidden;
  24956. /* display: flex; */
  24957. align-items: center;
  24958. justify-content: center;
  24959. background: #00000087;
  24960. color: #fff;
  24961. border-radius: 50px;
  24962. display: none;
  24963. cursor: pointer;
  24964. }
  24965. .updateChair:hover .updateChairBtn {
  24966. display: flex;
  24967. }
  24968. .group_staic_box {
  24969. display: flex;
  24970. padding: 30px 40px 10px;
  24971. flex-wrap: wrap;
  24972. }
  24973. .group_staic {
  24974. /* width: 50%; */
  24975. margin-bottom: 20px;
  24976. display: flex;
  24977. align-items: center;
  24978. }
  24979. .group_staic span:nth-child(1) {
  24980. width: 150px;
  24981. text-align: right;
  24982. margin-right: 15px;
  24983. }
  24984. .group_staic span:nth-child(2) {
  24985. background: rgb(0 123 255);
  24986. color: #fff;
  24987. border-radius: 5px;
  24988. padding: 5px;
  24989. }
  24990. .codeFileBox {
  24991. height: 300px;
  24992. background: #fff;
  24993. display: flex;
  24994. align-items: center;
  24995. justify-content: center;
  24996. }
  24997. .codeFileBox img {
  24998. width: 200px;
  24999. margin: 0;
  25000. height: auto;
  25001. }
  25002. .codeFileBox div {
  25003. background: rgb(80, 142, 226);
  25004. color: #fff;
  25005. padding: 10px 20px;
  25006. border-radius: 25px;
  25007. cursor: pointer;
  25008. margin-left: 15px;
  25009. }
  25010. .radioBox {
  25011. display: flex;
  25012. flex-direction: column;
  25013. flex-wrap: nowrap;
  25014. align-items: flex-start;
  25015. }
  25016. .radioBox > div {
  25017. margin: 10px 0 0 10px;
  25018. }
  25019. /* .radioBox >>> .el-radio__input,
  25020. .radioBox >>> .el-checkbox__inner {
  25021. margin-left: 10px;
  25022. } */
  25023. .radioBox >>> .el-radio__label,
  25024. .radioBox >>> .el-checkbox__label {
  25025. display: flex;
  25026. align-items: center;
  25027. width: 100%;
  25028. }
  25029. .radioBox >>> .el-radio__label > span {
  25030. width: 100%;
  25031. display: -webkit-box;
  25032. overflow: hidden;
  25033. white-space: normal !important;
  25034. text-overflow: ellipsis;
  25035. word-wrap: break-word;
  25036. }
  25037. .inImg {
  25038. width: 100px;
  25039. cursor: pointer;
  25040. }
  25041. .inImg > img {
  25042. width: 100%;
  25043. height: 100%;
  25044. object-fit: cover;
  25045. }
  25046. .timuImgBox {
  25047. margin: 10px 0;
  25048. display: flex;
  25049. flex-direction: column;
  25050. flex-wrap: wrap;
  25051. align-items: flex-start;
  25052. }
  25053. .timuImg {
  25054. width: 150px;
  25055. margin: 5px 0;
  25056. cursor: pointer;
  25057. }
  25058. .timuImg > img {
  25059. width: 100%;
  25060. height: 100%;
  25061. object-fit: cover;
  25062. }
  25063. .worksTop {
  25064. display: flex;
  25065. flex-direction: row;
  25066. align-items: flex-end;
  25067. }
  25068. .worksTitle {
  25069. display: flex;
  25070. flex-direction: row;
  25071. flex-wrap: nowrap;
  25072. align-items: center;
  25073. }
  25074. .worksTitle::before,
  25075. .worksTop::before {
  25076. content: "";
  25077. display: block;
  25078. width: 3px;
  25079. height: 20px;
  25080. background: #0061ff;
  25081. border-radius: 3px;
  25082. margin: 0 5px 0 0;
  25083. }
  25084. .corOpen {
  25085. margin: 0 0 0 10px;
  25086. font-size: 14px;
  25087. cursor: pointer;
  25088. color: #505050;
  25089. }
  25090. .corOpen:hover {
  25091. color: #499eef;
  25092. }
  25093. .navCorOpenBox {
  25094. display: flex;
  25095. flex-direction: row;
  25096. align-items: center;
  25097. justify-content: space-between;
  25098. height: 55px;
  25099. background: #ffffff;
  25100. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  25101. border-radius: 8px 8px 0px 0px;
  25102. z-index: 9;
  25103. position: relative;
  25104. }
  25105. .navCorOpen {
  25106. padding-right: 15px;
  25107. cursor: pointer;
  25108. width: 45px;
  25109. display: flex;
  25110. }
  25111. .navCorOpen > img {
  25112. width: 100%;
  25113. height: 100%;
  25114. }
  25115. .mlImg {
  25116. width: 40px !important;
  25117. min-width: 40px;
  25118. cursor: pointer;
  25119. transform: rotate(180deg);
  25120. }
  25121. .mlImg > img {
  25122. width: 100%;
  25123. height: 100%;
  25124. }
  25125. .navLeftCss {
  25126. width: 100% !important;
  25127. left: 0 !important;
  25128. }
  25129. .isContentCss {
  25130. width: 100% !important;
  25131. }
  25132. .isAllWidth {
  25133. width: 100% !important;
  25134. }
  25135. .group_switch {
  25136. margin-right: 10px;
  25137. height: 30px;
  25138. display: flex;
  25139. align-items: center;
  25140. }
  25141. .group_switch > span {
  25142. margin-right: 5px;
  25143. }
  25144. .fileC_box {
  25145. padding-top: 15px;
  25146. }
  25147. .fileC_box > .fileC_title {
  25148. padding: 10px 5px 14px 10px;
  25149. border-top: 1px solid #cad1dc;
  25150. font-size: 14px;
  25151. font-weight: 400;
  25152. color: #cad1dc;
  25153. width: calc(100% - 20px);
  25154. margin: 0 auto;
  25155. box-sizing: border-box;
  25156. }
  25157. .pl_select_box {
  25158. height: 40px;
  25159. line-height: 40px;
  25160. width: 100%;
  25161. cursor: pointer;
  25162. padding: 0 20px;
  25163. box-sizing: border-box;
  25164. border-radius: 5px;
  25165. border: 1px solid #d6d6d6;
  25166. white-space: nowrap;
  25167. overflow: hidden;
  25168. text-overflow: ellipsis;
  25169. background: #fff;
  25170. text-align: left;
  25171. }
  25172. .newButton {
  25173. width: 102px;
  25174. height: 36px;
  25175. background: #e7ebf1;
  25176. border-radius: 4px;
  25177. color: #0e1e33;
  25178. font-weight: 400;
  25179. font-size: 14px;
  25180. border: none;
  25181. float: right;
  25182. margin-left: 10px;
  25183. }
  25184. .el-table >>> .even_row {
  25185. background-color: #f0f4fa;
  25186. }
  25187. .stageBoxCss,
  25188. .stageBoxIsCss {
  25189. display: flex;
  25190. flex-direction: row;
  25191. flex-wrap: nowrap;
  25192. align-items: center;
  25193. height: 50px;
  25194. border-bottom: 1px solid #e2f5fc;
  25195. cursor: pointer;
  25196. width: 100%;
  25197. }
  25198. .stageBoxIsCss {
  25199. background: #0061ff;
  25200. color: #fff;
  25201. border-radius: 8px;
  25202. }
  25203. .closeTri,
  25204. .closeTri1 {
  25205. min-width: 15px;
  25206. width: 15px;
  25207. height: 15px;
  25208. }
  25209. .closeTri1 {
  25210. padding-left: 10px;
  25211. cursor: pointer;
  25212. }
  25213. .closeTri > img,
  25214. .closeTri1 > img {
  25215. width: 100%;
  25216. height: 100%;
  25217. /* transition: all .5s; */
  25218. }
  25219. .noToolBlue {
  25220. min-width: 10px;
  25221. width: 10px;
  25222. height: 10px;
  25223. background: #0061ff;
  25224. border-radius: 50%;
  25225. margin-left: 13px;
  25226. }
  25227. .stageChild,
  25228. .toolChild {
  25229. height: 0;
  25230. overflow: hidden;
  25231. transition: all 0.5s;
  25232. }
  25233. /* .toolChild { */
  25234. /* margin: 0 0 0 17px;
  25235. padding: 0 0 0 20px;
  25236. border-left: 1px solid #d7d7d7; */
  25237. /* } */
  25238. .toolChild > div + div{
  25239. margin-top:5px;
  25240. }
  25241. .gjCss {
  25242. display: flex;
  25243. flex-direction: row;
  25244. flex-wrap: nowrap;
  25245. align-items: center;
  25246. padding: 10px 0 10px 40px;
  25247. box-sizing: border-box;
  25248. font-size: 14px;
  25249. cursor: pointer;
  25250. border-radius:5px;
  25251. }
  25252. .toolChild > div {
  25253. position: relative;
  25254. width: 100%;
  25255. }
  25256. /* .toolChild > div::before { */
  25257. /* content: "";
  25258. width: 15px;
  25259. height: 1px;
  25260. background: #cad1dc;
  25261. position: absolute;
  25262. top: 24px;
  25263. left: -20px;
  25264. display: block; */
  25265. /* } */
  25266. .isGjCss {
  25267. /* color: #0061ff; */
  25268. color:#fff;
  25269. background: rgb(55, 129, 252);
  25270. /* background-color: #e0eafb !important;
  25271. color: #0061ff !important; */
  25272. }
  25273. .navItem {
  25274. background: #ffffff;
  25275. border-radius: 4px;
  25276. width: 100%;
  25277. margin: 10px auto;
  25278. position: relative;
  25279. height: 40px;
  25280. display: flex;
  25281. flex-direction: row;
  25282. flex-wrap: nowrap;
  25283. align-items: center;
  25284. }
  25285. .navItemList {
  25286. display: flex;
  25287. flex-direction: row;
  25288. flex-wrap: nowrap;
  25289. align-items: center;
  25290. padding: 0 13px;
  25291. cursor: pointer;
  25292. width: calc(100% - 60px);
  25293. height: 100%;
  25294. }
  25295. .navItemList > div:first-child {
  25296. min-width: 60px;
  25297. }
  25298. .navItemList > div:last-child {
  25299. width: calc(100% - 80px);
  25300. white-space: nowrap;
  25301. overflow: hidden;
  25302. text-overflow: ellipsis;
  25303. word-break: break-word;
  25304. }
  25305. /* .isItemList > div {
  25306. color: #fff !important;
  25307. } */
  25308. .tool_work_box {
  25309. width: 100%;
  25310. padding: 0 37px 0;
  25311. box-sizing: border-box;
  25312. }
  25313. .tool_box {
  25314. width: 100%;
  25315. padding: 0 0 0 20px;
  25316. }
  25317. .tool_type_box {
  25318. display: flex;
  25319. flex-direction: row;
  25320. align-items: baseline;
  25321. flex-wrap: nowrap;
  25322. justify-content: flex-start;
  25323. position: relative;
  25324. }
  25325. .toolSort {
  25326. display: flex;
  25327. flex-direction: row;
  25328. flex-wrap: wrap;
  25329. justify-content: flex-start;
  25330. align-items: flex-start;
  25331. padding: 0 0 15px 0;
  25332. }
  25333. .toolSort > div {
  25334. margin: 0 10px 0 0;
  25335. width: 135px;
  25336. box-sizing: border-box;
  25337. border: 2px solid transparent;
  25338. }
  25339. .tools {
  25340. width: 100%;
  25341. display: flex;
  25342. flex-direction: column;
  25343. flex-wrap: nowrap;
  25344. align-items: flex-start;
  25345. }
  25346. .whiteBIcon {
  25347. width: fit-content;
  25348. cursor: pointer;
  25349. display: flex;
  25350. flex-direction: column;
  25351. flex-wrap: nowrap;
  25352. align-items: center;
  25353. font-size: 14px;
  25354. }
  25355. .tool:hover {
  25356. border: 2px solid #a5c7ff;
  25357. border-radius: 5px;
  25358. }
  25359. .whiteBIcon > img {
  25360. width: 65px;
  25361. height: 100%;
  25362. }
  25363. .whiteBIcon > img {
  25364. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  25365. border-radius: 15px;
  25366. }
  25367. .check {
  25368. /* width: 20px;
  25369. height: 20px; */
  25370. cursor: pointer;
  25371. margin: 10px 0;
  25372. position: absolute;
  25373. right: 2px;
  25374. top: -5px;
  25375. }
  25376. .noChoose,
  25377. .isChoose {
  25378. width: 15px;
  25379. height: 15px;
  25380. border-radius: 50%;
  25381. border: 1px solid #adadad;
  25382. }
  25383. .isChoose {
  25384. border: 4px solid #0363ff !important;
  25385. width: 10px;
  25386. height: 10px;
  25387. }
  25388. .isToolChoose {
  25389. border: 2px solid #5394ff !important;
  25390. border-radius: 5px;
  25391. box-shadow: 0 0 6px 0px #5394ff;
  25392. }
  25393. .checkDiv {
  25394. display: flex;
  25395. align-items: center;
  25396. }
  25397. .checkDiv span {
  25398. margin-left: 5px;
  25399. color: #858585;
  25400. }
  25401. .check img {
  25402. width: 20px;
  25403. height: 20px;
  25404. }
  25405. .lockTaskIcon {
  25406. width: 20px;
  25407. height: 20px;
  25408. position: absolute;
  25409. right: 10px;
  25410. top: 10px;
  25411. }
  25412. .lockTaskIcon > img {
  25413. width: 100%;
  25414. height: 100%;
  25415. }
  25416. .pick_box {
  25417. display: flex;
  25418. align-items: flex-start;
  25419. flex-wrap: wrap;
  25420. }
  25421. .selectBox {
  25422. width: 110px;
  25423. margin-left: 10px;
  25424. margin: 0 10px 0 auto;
  25425. }
  25426. .selectBox >>> .el-input__inner {
  25427. height: 30px;
  25428. line-height: 30px;
  25429. }
  25430. .selectBox >>> .el-input__icon {
  25431. line-height: 30px;
  25432. }
  25433. .sentenceTitle {
  25434. display: flex;
  25435. flex-direction: row;
  25436. flex-wrap: nowrap;
  25437. align-items: center;
  25438. }
  25439. .sentenceTitle::before {
  25440. content: attr(index);
  25441. background: #3681fc;
  25442. border-radius: 50%;
  25443. color: #fff;
  25444. width: 25px;
  25445. height: 25px;
  25446. min-width: 25px;
  25447. min-height: 25px;
  25448. text-align: center;
  25449. line-height: 25px;
  25450. margin-right: 5px;
  25451. }
  25452. .hfBox {
  25453. padding: 10px;
  25454. box-sizing: border-box;
  25455. }
  25456. .whoReplyWho {
  25457. display: flex;
  25458. flex-direction: row;
  25459. flex-wrap: nowrap;
  25460. align-items: baseline;
  25461. justify-content: flex-start;
  25462. }
  25463. .hfBottom {
  25464. display: flex;
  25465. flex-direction: row;
  25466. flex-wrap: nowrap;
  25467. align-items: center;
  25468. justify-content: space-between;
  25469. font-size: 14px;
  25470. }
  25471. .deleteHfItem {
  25472. cursor: pointer;
  25473. width: 20px;
  25474. height: 20px;
  25475. }
  25476. .deleteHfItem > img {
  25477. width: 100%;
  25478. height: 100%;
  25479. }
  25480. .whoReplyWho > .hfImg {
  25481. width: 12px;
  25482. height: 12px;
  25483. margin: 0 5px;
  25484. }
  25485. .whoReplyWho > .hfImg > img {
  25486. width: 100%;
  25487. height: 100%;
  25488. }
  25489. .hfContent {
  25490. padding-top: 10px;
  25491. box-sizing: border-box;
  25492. display: -webkit-box;
  25493. overflow: hidden;
  25494. white-space: normal !important;
  25495. text-overflow: ellipsis;
  25496. word-wrap: break-word;
  25497. -webkit-box-orient: vertical;
  25498. }
  25499. .hfTime {
  25500. text-align: left;
  25501. box-sizing: border-box;
  25502. padding: 10px 0 10px 0px;
  25503. color: #bfbfbf;
  25504. font-size: 14px;
  25505. }
  25506. .btnAllNT {
  25507. position: fixed;
  25508. bottom: 100px;
  25509. right: 40px;
  25510. z-index: 999;
  25511. display: flex;
  25512. flex-direction: row;
  25513. }
  25514. .btnAllNT > img {
  25515. cursor: pointer;
  25516. width: 80px;
  25517. }
  25518. .toolMask {
  25519. position: fixed;
  25520. width: 100%;
  25521. height: 100%;
  25522. background: #3f3c3c;
  25523. opacity: 0.5;
  25524. top: 0;
  25525. left: 0;
  25526. z-index: 999;
  25527. }
  25528. .addToolCss {
  25529. position: fixed;
  25530. z-index: 999;
  25531. background: #fff;
  25532. right: 5%;
  25533. bottom: 18%;
  25534. min-width: 1035px;
  25535. min-height: 300px;
  25536. border-radius: 10px;
  25537. box-shadow: 0 0 8px 1px #b2b2b2;
  25538. }
  25539. .toolTop {
  25540. display: flex;
  25541. flex-direction: row;
  25542. flex-wrap: nowrap;
  25543. justify-content: space-between;
  25544. align-items: center;
  25545. padding: 20px;
  25546. }
  25547. .toolTop > div:nth-child(2) {
  25548. width: 15px;
  25549. height: 15px;
  25550. padding-right: 10px;
  25551. cursor: pointer;
  25552. }
  25553. .toolTop > div:nth-child(2) > img {
  25554. width: 100%;
  25555. height: 100%;
  25556. }
  25557. .fullStyle>>>.el-dialog__body {
  25558. height: calc(100% - 125px) !important;
  25559. box-sizing: border-box;
  25560. padding: 30px 0 !important;
  25561. background: #fff !important;
  25562. }
  25563. .fullStyle>>>.el-dialog {
  25564. width: 100% !important;
  25565. max-width: 100% !important;
  25566. height: 100% !important;
  25567. margin: 0 !important;
  25568. }
  25569. .fullStyle {
  25570. width: 100% !important;
  25571. max-width: 100% !important;
  25572. height: 100% !important;
  25573. margin: 0 auto !important;
  25574. }
  25575. .fullStyle>>>.el-dialog__footer{
  25576. background: #fff !important;
  25577. }
  25578. .engUpBox {
  25579. width: 100%;
  25580. height: 100%;
  25581. }
  25582. .engTitle,
  25583. .engText {
  25584. display: flex;
  25585. flex-direction: row;
  25586. flex-wrap: nowrap;
  25587. align-items: flex-start;
  25588. padding: 0 20px 20px 20px;
  25589. box-sizing: border-box;
  25590. }
  25591. .engTitle > .div:first-child,
  25592. .engText > div:first-child {
  25593. min-width: 75px;
  25594. }
  25595. .correctBox{
  25596. width: 100%;
  25597. display: flex;
  25598. flex-direction: row;
  25599. flex-wrap: nowrap;
  25600. align-items: flex-start;
  25601. }
  25602. .oldBox{
  25603. width: 50%;
  25604. height: 100%;
  25605. display: flex;
  25606. flex-direction: column;
  25607. flex-wrap: nowrap;
  25608. align-items: center;
  25609. border-top: 1px solid #d9d9d9;
  25610. border-left: 1px solid #d9d9d9;
  25611. border-right: 1px solid #d9d9d9;
  25612. }
  25613. .oldBox>div:first-child{
  25614. width: 100%;
  25615. text-align: center;
  25616. background: #d9d9d9;
  25617. height: 35px;
  25618. line-height: 35px;
  25619. font-weight: bold;
  25620. }
  25621. .oldText{
  25622. width: 100%;
  25623. height: calc(100% - 35px);
  25624. overflow: auto;
  25625. margin: 10px 0;
  25626. display: flex;
  25627. flex-direction: column;
  25628. flex-wrap: nowrap;
  25629. align-content: center;
  25630. align-items: center;
  25631. }
  25632. .detailBox{
  25633. width: 50%;
  25634. padding: 10px;
  25635. background: #f6f6f6;
  25636. border-radius: 5px;
  25637. }
  25638. .oldDetail,.oldDetail1{
  25639. padding-bottom: 30px;
  25640. }
  25641. .oldImg{
  25642. width:30px;
  25643. height: 30px;
  25644. }
  25645. .oldImg>img{
  25646. width: 100%;
  25647. height: 100%;
  25648. }
  25649. .allName{
  25650. min-width: 200px;
  25651. white-space: nowrap;
  25652. overflow: hidden;
  25653. text-overflow: ellipsis;
  25654. word-break: break-word;
  25655. cursor: pointer;
  25656. text-align: center;
  25657. border: 1px solid #bcc2cc;
  25658. box-sizing: border-box;
  25659. }
  25660. .engUpTop{
  25661. max-height: 300px;
  25662. overflow: auto;
  25663. }
  25664. .isUpdateToolDetailClass{
  25665. padding: 0 !important;
  25666. }
  25667. .isUpdateToolDetailClass textarea{
  25668. padding:12px;
  25669. font-size: 16px;
  25670. min-height:100%;
  25671. width: 100%;
  25672. box-sizing:border-box;
  25673. outline: none;
  25674. border:none;
  25675. line-height: 30px;
  25676. resize: none;
  25677. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  25678. color: #838383;
  25679. }
  25680. .show_taskD {
  25681. min-width: fit-content;
  25682. margin-left: 10px;
  25683. display: flex;
  25684. align-items: center;
  25685. font-size: 14px;
  25686. cursor: pointer;
  25687. color: #717c8d;
  25688. }
  25689. .show_taskD > img {
  25690. width: 15px;
  25691. margin-right: 5px;
  25692. transition: 0.2s all;
  25693. transform: rotate(-90deg);
  25694. }
  25695. .show_taskD.show > img {
  25696. transform: rotate(0deg);
  25697. }
  25698. .dialog_diyCopy >>> .el-dialog__header {
  25699. display: none !important;
  25700. }
  25701. .dialog_diyCopy >>> .el-dialog__body {
  25702. padding: 0 !important;
  25703. height: 100% !important;
  25704. }
  25705. .confirmOpenDigCss > div{
  25706. font-size: 14px;
  25707. color: rgba(0, 0, 0, 0.6);
  25708. }
  25709. .confirmOpenDigCss >>> .el-dialog{
  25710. border-radius: 6px;
  25711. }
  25712. .confirmOpenDigCss >>> .el-dialog__body{
  25713. padding: 25px !important;
  25714. }
  25715. .confirmOpenDigCss > span{
  25716. font-size: 16px;
  25717. font-weight: 600;
  25718. color: rgba(0, 0, 0, 0.8);
  25719. }
  25720. .correctCss{
  25721. position: absolute;
  25722. bottom: -70px;
  25723. background: #409eff;
  25724. color: #fff;
  25725. }
  25726. div::-webkit-scrollbar {
  25727. width: 10px;
  25728. height: 6px;
  25729. }
  25730. .Ovh{
  25731. margin: 5px 0;
  25732. width: 4em;
  25733. -webkit-line-clamp: 2;
  25734. display: -webkit-box;
  25735. -webkit-box-orient: vertical;
  25736. overflow: hidden;
  25737. text-overflow: ellipsis;
  25738. }
  25739. .renderedFor >>> .katex {
  25740. font-size: 18px;
  25741. width: 100%;
  25742. white-space: normal;
  25743. font-family: '黑体' !important;
  25744. }
  25745. .renderedFor >>> .katex .base{
  25746. display: inline !important;
  25747. display: contents !important;
  25748. }
  25749. .renderedFor >>> .katex .base .cjk_fallback{
  25750. white-space: normal !important;
  25751. display: inline !important;
  25752. }
  25753. .notop >>> .vjs-fluid{
  25754. padding-top: 0 !important;
  25755. }
  25756. </style>