studyStudent.vue 892 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532
  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('cocorobo')!=-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) && (fullUrl.indexOf('cocorobo')!=-1)"
  10598. :src="fullUrl"
  10599. ></iframe>
  10600. <iframe
  10601. style="width: 100%; height: 100%; border: none"
  10602. security="restricted"
  10603. v-else
  10604. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10605. :src="fullUrl"
  10606. ></iframe>
  10607. </div>
  10608. <!-- <div slot="footer">
  10609. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  10610. </div> -->
  10611. </el-dialog>
  10612. <el-dialog
  10613. title="个人评价"
  10614. :visible.sync="studentEvalDialogVisible"
  10615. :append-to-body="true"
  10616. width="800px"
  10617. :before-close="handleClose"
  10618. class="dialog_diy"
  10619. >
  10620. <div class="evalCss">
  10621. <div class="nav">请选择星星进行评分</div>
  10622. <div class="middleBox" v-if="eScore.eStar">
  10623. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10624. <div class="nameAndrate">
  10625. <div>{{ e.value }}</div>
  10626. <el-rate
  10627. v-model="eScore.eStar[eIndex]"
  10628. :disabled="isStar"
  10629. ></el-rate>
  10630. </div>
  10631. <div v-if="e.detail">{{ e.detail }}</div>
  10632. </div>
  10633. <div class="easy_comment" v-if="false">
  10634. <div
  10635. v-for="(p, pIndex) in PlTextList"
  10636. :key="pIndex"
  10637. @click="fastText(p, 2)"
  10638. >
  10639. {{ p }}
  10640. </div>
  10641. </div>
  10642. <div class="bz">
  10643. <textarea
  10644. :disabled="isStar"
  10645. rows="4"
  10646. class="pj"
  10647. style="
  10648. padding: 10px 5px;
  10649. width: 70%;
  10650. background: #f7f6f9;
  10651. font-size: 14px;
  10652. text-indent: 10px;
  10653. "
  10654. cols
  10655. v-model="eScore.eBzText"
  10656. placeholder="请输入评价内容..."
  10657. ></textarea>
  10658. </div>
  10659. </div>
  10660. </div>
  10661. <div slot="footer">
  10662. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10663. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10664. >确 定</el-button
  10665. >
  10666. </div>
  10667. </el-dialog>
  10668. <el-dialog
  10669. title="个人评价"
  10670. :visible.sync="studentEvalDialogVisibleTeacher"
  10671. :append-to-body="true"
  10672. width="800px"
  10673. :before-close="handleClose"
  10674. class="dialog_diy"
  10675. >
  10676. <div class="w_name">
  10677. 学生姓名:<span>{{ sStudent.student }}</span>
  10678. </div>
  10679. <div class="evalCss">
  10680. <div class="nav">请选择星星进行评分</div>
  10681. <div class="middleBox" v-if="eScore.eStar">
  10682. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10683. <div class="nameAndrate">
  10684. <div>{{ e.value }}</div>
  10685. <el-rate
  10686. v-model="eScore.eStar[eIndex]"
  10687. :disabled="isStar"
  10688. ></el-rate>
  10689. </div>
  10690. <div v-if="e.detail">{{ e.detail }}</div>
  10691. </div>
  10692. <div class="easy_comment" v-if="false">
  10693. <div
  10694. v-for="(p, pIndex) in PlTextList"
  10695. :key="pIndex"
  10696. @click="fastText(p, 2)"
  10697. >
  10698. {{ p }}
  10699. </div>
  10700. </div>
  10701. <div class="bz">
  10702. <textarea
  10703. :disabled="isStar"
  10704. rows="4"
  10705. class="pj"
  10706. style="
  10707. padding: 10px 5px;
  10708. width: 70%;
  10709. background: #f7f6f9;
  10710. font-size: 14px;
  10711. text-indent: 10px;
  10712. "
  10713. cols
  10714. v-model="eScore.eBzText"
  10715. placeholder="请输入评价内容..."
  10716. ></textarea>
  10717. </div>
  10718. </div>
  10719. </div>
  10720. <div slot="footer">
  10721. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10722. >取 消</el-button
  10723. >
  10724. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10725. >确 定</el-button
  10726. >
  10727. </div>
  10728. </el-dialog>
  10729. <el-dialog
  10730. title="选择匹配"
  10731. :visible.sync="dialogVisibleSelect"
  10732. :append-to-body="true"
  10733. width="90%"
  10734. :before-close="handleClose"
  10735. class="dialog_diy dialog_diy3"
  10736. >
  10737. <div v-if="selectJson">
  10738. <div class="select_box2">
  10739. <div class="select_box2_title">
  10740. <div>选择匹配</div>
  10741. <div>请选择对应的答案进行答题!</div>
  10742. </div>
  10743. <div class="select_box2_box">
  10744. <div class="select_box2_img">
  10745. <img
  10746. :src="selectJson.url"
  10747. @click="previewImg(selectJson.url)"
  10748. alt=""
  10749. />
  10750. </div>
  10751. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10752. <div style="padding-top: 15px">
  10753. <div class="select_answer_title" v-if="isSelect">
  10754. {{ selectAnswer.stu }}
  10755. </div>
  10756. <div class="select_answer_title" v-else>
  10757. 根据题目选择对应答案
  10758. </div>
  10759. <div
  10760. class="select_box2_answer_box"
  10761. v-for="(item2, checkIndex) in selectJson.select"
  10762. :key="checkIndex"
  10763. >
  10764. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10765. <el-select
  10766. :disabled="isSelect"
  10767. v-model="selectAnswer.answer[checkIndex]"
  10768. placeholder="请选择正确答案"
  10769. >
  10770. <el-option
  10771. v-for="(e, eIndex) in selectJson.select"
  10772. :key="eIndex"
  10773. :label="e"
  10774. :value="eIndex"
  10775. >
  10776. </el-option>
  10777. </el-select>
  10778. </div>
  10779. </div>
  10780. <div
  10781. class="rightAnswerCss"
  10782. v-if="isSelect && (tType == 1 || tType == 4)"
  10783. >
  10784. <div
  10785. v-for="(a, aIndex) in selectJson.answer"
  10786. :key="aIndex"
  10787. class="rightAnswer"
  10788. >
  10789. <div
  10790. v-if="selectAnswer.answer[aIndex] === a"
  10791. style="color: #767de1"
  10792. >
  10793. 回答正确
  10794. </div>
  10795. <div v-else>回答错误</div>
  10796. <div
  10797. style="margin-left: 10px"
  10798. v-if="selectAnswer.answer[aIndex] !== a"
  10799. >
  10800. 正确答案:
  10801. </div>
  10802. <div
  10803. :class="
  10804. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10805. "
  10806. >
  10807. {{ selectJson.select[a] }}
  10808. </div>
  10809. </div>
  10810. </div>
  10811. </div>
  10812. <div class="upAnswerCss">
  10813. <el-button
  10814. type="primary"
  10815. @click="addSelectAnswer"
  10816. v-if="!isSelect"
  10817. >提交答案</el-button
  10818. >
  10819. </div>
  10820. </div>
  10821. </div>
  10822. </div>
  10823. </el-dialog>
  10824. <el-dialog
  10825. title="选择匹配"
  10826. :visible.sync="dialogVisibleSelectTeacher"
  10827. :append-to-body="true"
  10828. width="90%"
  10829. :before-close="handleClose"
  10830. class="dialog_diy dialog_diy3"
  10831. >
  10832. <div v-if="selectJson">
  10833. <div class="w_name">
  10834. 学生姓名:<span>{{ sStudent.student }}</span>
  10835. </div>
  10836. <div class="select_box2">
  10837. <div class="select_box2_title">
  10838. <div>选择匹配</div>
  10839. <div>请选择对应的答案进行答题!</div>
  10840. </div>
  10841. <div class="select_box2_box">
  10842. <div class="select_box2_img">
  10843. <img
  10844. :src="selectJson.url"
  10845. @click="previewImg(selectJson.url)"
  10846. alt=""
  10847. />
  10848. </div>
  10849. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10850. <div style="padding-top: 15px">
  10851. <div class="select_answer_title" v-if="isSelect">
  10852. {{ selectAnswer.stu }}
  10853. </div>
  10854. <div class="select_answer_title" v-else>
  10855. 根据题目选择对应答案
  10856. </div>
  10857. <div
  10858. class="select_box2_answer_box"
  10859. v-for="(item2, checkIndex) in selectJson.select"
  10860. :key="checkIndex"
  10861. >
  10862. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10863. <el-select
  10864. :disabled="isSelect"
  10865. v-model="selectAnswer.answer[checkIndex]"
  10866. placeholder="请选择正确答案"
  10867. >
  10868. <el-option
  10869. v-for="(e, eIndex) in selectJson.select"
  10870. :key="eIndex"
  10871. :label="e"
  10872. :value="eIndex"
  10873. >
  10874. </el-option>
  10875. </el-select>
  10876. </div>
  10877. </div>
  10878. <div
  10879. class="rightAnswerCss"
  10880. v-if="isSelect && (tType == 1 || tType == 4)"
  10881. >
  10882. <div
  10883. v-for="(a, aIndex) in selectJson.answer"
  10884. :key="aIndex"
  10885. class="rightAnswer"
  10886. >
  10887. <div
  10888. v-if="selectAnswer.answer[aIndex] === a"
  10889. style="color: #767de1"
  10890. >
  10891. 回答正确
  10892. </div>
  10893. <div v-else>回答错误</div>
  10894. <div
  10895. style="margin-left: 10px"
  10896. v-if="selectAnswer.answer[aIndex] !== a"
  10897. >
  10898. 正确答案:
  10899. </div>
  10900. <div
  10901. :class="
  10902. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10903. "
  10904. >
  10905. {{ selectJson.select[a] }}
  10906. </div>
  10907. </div>
  10908. </div>
  10909. </div>
  10910. <div class="upAnswerCss">
  10911. <el-button
  10912. type="primary"
  10913. @click="addSelectAnswerTeacher"
  10914. v-if="!isSelect"
  10915. >提交答案</el-button
  10916. >
  10917. </div>
  10918. </div>
  10919. </div>
  10920. </div>
  10921. </el-dialog>
  10922. <el-dialog
  10923. title="教师评分"
  10924. :visible.sync="dialogVisibleScore"
  10925. :append-to-body="true"
  10926. width="800px"
  10927. :before-close="handleClose"
  10928. class="dialog_diy"
  10929. >
  10930. <div>
  10931. <div class="studentDetail">
  10932. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10933. <div class="nameAndTime">
  10934. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10935. <div>{{ commentDetail.time }}</div>
  10936. </div>
  10937. </div>
  10938. <div
  10939. class="worksAnswer"
  10940. v-if="commentDetail.works && commentDetail.type == 2"
  10941. >
  10942. {{ JSON.parse(commentDetail.works)[0].answer }}
  10943. </div>
  10944. <div
  10945. class="worksAnswer"
  10946. v-if="commentDetail.works && commentDetail.type == 1"
  10947. >
  10948. <pdf
  10949. v-if="showPDF"
  10950. :pdfUrl="pptImgUrl"
  10951. style="width: 100%; height: 520px; overflow: auto"
  10952. :class="{ fullStyle: full }"
  10953. ></pdf>
  10954. <iframe
  10955. v-else
  10956. :src="pptImgUrl"
  10957. frameborder="0"
  10958. width="100%"
  10959. height="600"
  10960. :class="{ fullStyle: full }"
  10961. ></iframe>
  10962. </div>
  10963. <div
  10964. class="worksAnswer"
  10965. v-if="commentDetail.works && commentDetail.type == 0"
  10966. >
  10967. <img
  10968. :src="commentDetail.works"
  10969. alt=""
  10970. @click="previewImg(commentDetail.works)"
  10971. />
  10972. </div>
  10973. <div
  10974. class="worksAnswer"
  10975. v-if="commentDetail.works && commentDetail.type == 3"
  10976. >
  10977. <video-player
  10978. class="video-player vjs-custom-skin"
  10979. :playsinline="true"
  10980. :options="videoDetail"
  10981. @play="onPlayerPlay($event)"
  10982. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10983. ></video-player>
  10984. </div>
  10985. <div
  10986. class="worksAnswer codeFileBox"
  10987. v-if="commentDetail.works && commentDetail.type == 12"
  10988. @click="downloadFile(commentDetail.works)"
  10989. >
  10990. <img src="../../assets/icon/codeFile.png" />
  10991. <div>点击下载文件</div>
  10992. </div>
  10993. <div
  10994. class="worksAnswer codeFileBox"
  10995. v-if="commentDetail.works && commentDetail.type == 15"
  10996. @click="
  10997. openCocoPi(
  10998. 57,
  10999. commentIndexJson.toolIndex,
  11000. commentDetail.userid,
  11001. commentDetail.sName
  11002. )
  11003. "
  11004. >
  11005. <img src="../../assets/icon/codeFile.png" />
  11006. <div>点击打开CocoPi</div>
  11007. </div>
  11008. <div
  11009. class="worksAnswer"
  11010. v-if="commentDetail.works && commentDetail.type == 13"
  11011. >
  11012. <div v-html="JSON.parse(commentDetail.works).text"></div>
  11013. </div>
  11014. <div class="scoreBox">
  11015. <span class="t">请输入分数</span>
  11016. <el-input-number
  11017. :disabled="courseDetail.userid != userid"
  11018. v-model="wScore"
  11019. :controls="false"
  11020. :min="0"
  11021. :max="100"
  11022. ></el-input-number>
  11023. </div>
  11024. <div class="scoreDetailBox">
  11025. <span class="t">评分评论</span>
  11026. <el-input
  11027. type="textarea"
  11028. :rows="5"
  11029. :disabled="courseDetail.userid != userid"
  11030. resize="none"
  11031. v-model="scoreDetail"
  11032. placeholder="请输入对学生的评价"
  11033. >
  11034. </el-input>
  11035. </div>
  11036. </div>
  11037. <span slot="footer" class="dialog-footer">
  11038. <el-button
  11039. @click="
  11040. (dialogVisibleScore = false),
  11041. (commentIndexJson = {}),
  11042. videoDetail.sources && videoDetail.sources[0]
  11043. ? (videoDetail.sources[0].src = '')
  11044. : ''
  11045. "
  11046. >取 消</el-button
  11047. >
  11048. <el-button
  11049. type="primary"
  11050. v-if="courseDetail.userid == userid"
  11051. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  11052. >确 定
  11053. </el-button>
  11054. </span>
  11055. </el-dialog>
  11056. <el-dialog
  11057. title="排序"
  11058. :visible.sync="dialogVisibleSentence"
  11059. :append-to-body="true"
  11060. width="1000px"
  11061. :before-close="handleClose"
  11062. class="dialog_diy dialog_diy3"
  11063. >
  11064. <div>
  11065. <div class="sentenBox">
  11066. <div
  11067. v-for="(st, stIndex) in sentenceList"
  11068. :key="stIndex"
  11069. style="padding-bottom: 20px"
  11070. >
  11071. <div
  11072. style="padding: 15px 0 10px 20px"
  11073. class="sentenceTitle"
  11074. :index="stIndex + 1"
  11075. >
  11076. 题目{{ stIndex + 1 }}:请选择正确顺序
  11077. </div>
  11078. <div class="cardList" v-if="st.chooseSenList">
  11079. <div class="cardBox">
  11080. <div
  11081. v-for="(r, rIndex) in st.chooseSenList"
  11082. :key="rIndex"
  11083. @click="returnCard(r, stIndex, rIndex)"
  11084. >
  11085. <el-tooltip
  11086. class="item"
  11087. effect="light"
  11088. :content="r"
  11089. placement="top"
  11090. v-if="r != '' && r != undefined"
  11091. >
  11092. <div
  11093. :class="{
  11094. isCard: r,
  11095. isChooseCard: r == '' || r == undefined,
  11096. }"
  11097. >
  11098. <div>{{ r }}</div>
  11099. </div>
  11100. </el-tooltip>
  11101. <div
  11102. :class="{
  11103. isCard: r,
  11104. isChooseCard: r == '' || r == undefined,
  11105. }"
  11106. v-else
  11107. >
  11108. <div>{{ r }}</div>
  11109. </div>
  11110. </div>
  11111. </div>
  11112. </div>
  11113. <div class="cardList" v-if="st.addChangeSen">
  11114. <div class="cardBox">
  11115. <div
  11116. v-for="(s, sIndex) in st.addChangeSen"
  11117. :key="sIndex"
  11118. @click="setRightAnswer(s, stIndex, sIndex)"
  11119. >
  11120. <el-tooltip
  11121. class="item"
  11122. effect="light"
  11123. :content="s"
  11124. placement="top"
  11125. v-if="s != '' && s != undefined"
  11126. >
  11127. <div
  11128. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11129. >
  11130. <div>{{ s }}</div>
  11131. </div>
  11132. </el-tooltip>
  11133. <div
  11134. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11135. v-else
  11136. >
  11137. <div>{{ s }}</div>
  11138. </div>
  11139. </div>
  11140. </div>
  11141. </div>
  11142. </div>
  11143. </div>
  11144. </div>
  11145. <span slot="footer" class="dialog-footer">
  11146. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  11147. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  11148. </span>
  11149. </el-dialog>
  11150. <el-dialog
  11151. title="排序"
  11152. :visible.sync="dialogVisibleSentenceTeacher"
  11153. :append-to-body="true"
  11154. width="1000px"
  11155. :before-close="handleClose"
  11156. class="dialog_diy dialog_diy3"
  11157. >
  11158. <div>
  11159. <div class="w_name">
  11160. 学生姓名:<span>{{ sStudent.student }}</span>
  11161. </div>
  11162. <div class="sentenBox">
  11163. <div
  11164. v-for="(st, stIndex) in sentenceList"
  11165. :key="stIndex"
  11166. style="padding-bottom: 20px"
  11167. >
  11168. <div
  11169. style="padding: 15px 0 10px 20px"
  11170. class="sentenceTitle"
  11171. :index="stIndex + 1"
  11172. >
  11173. 题目{{ stIndex + 1 }}:请选择正确顺序
  11174. </div>
  11175. <div class="cardList" v-if="st.chooseSenList">
  11176. <div class="cardBox">
  11177. <div
  11178. v-for="(r, rIndex) in st.chooseSenList"
  11179. :key="rIndex"
  11180. @click="returnCard(r, stIndex, rIndex)"
  11181. >
  11182. <el-tooltip
  11183. class="item"
  11184. effect="light"
  11185. :content="r"
  11186. placement="top"
  11187. v-if="r != '' && r != undefined"
  11188. >
  11189. <div
  11190. :class="{
  11191. isCard: r,
  11192. isChooseCard: r == '' || r == undefined,
  11193. }"
  11194. >
  11195. <div>{{ r }}</div>
  11196. </div>
  11197. </el-tooltip>
  11198. <div
  11199. :class="{
  11200. isCard: r,
  11201. isChooseCard: r == '' || r == undefined,
  11202. }"
  11203. v-else
  11204. >
  11205. <div>{{ r }}</div>
  11206. </div>
  11207. </div>
  11208. </div>
  11209. </div>
  11210. <div class="cardList" v-if="st.addChangeSen">
  11211. <div class="cardBox">
  11212. <div
  11213. v-for="(s, sIndex) in st.addChangeSen"
  11214. :key="sIndex"
  11215. @click="setRightAnswer(s, stIndex, sIndex)"
  11216. >
  11217. <el-tooltip
  11218. class="item"
  11219. effect="light"
  11220. :content="s"
  11221. placement="top"
  11222. v-if="s != '' && s != undefined"
  11223. >
  11224. <div
  11225. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11226. >
  11227. <div>{{ s }}</div>
  11228. </div>
  11229. </el-tooltip>
  11230. <div
  11231. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11232. v-else
  11233. >
  11234. <div>{{ s }}</div>
  11235. </div>
  11236. </div>
  11237. </div>
  11238. </div>
  11239. </div>
  11240. </div>
  11241. </div>
  11242. <span slot="footer" class="dialog-footer">
  11243. <el-button @click="dialogVisibleSentenceTeacher = false"
  11244. >取 消</el-button
  11245. >
  11246. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  11247. </span>
  11248. </el-dialog>
  11249. <el-dialog
  11250. title="排序"
  11251. :visible.sync="dialogVisibleSentence1"
  11252. :append-to-body="true"
  11253. width="1000px"
  11254. :before-close="handleClose"
  11255. class="dialog_diy dialog_diy3"
  11256. >
  11257. <div>
  11258. <div class="sentenBox">
  11259. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11260. {{ sentenceList1.stuName }}的作业
  11261. </div>
  11262. <div
  11263. v-for="(st, stIndex) in sentenceList1"
  11264. :key="stIndex"
  11265. style="padding-bottom: 20px"
  11266. >
  11267. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11268. 第{{ stIndex + 1 }}题
  11269. </div>
  11270. <div class="isWrong">
  11271. <div class="cardList1" v-if="st.chooseSenList">
  11272. <div class="cardBox">
  11273. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  11274. <el-tooltip
  11275. class="item"
  11276. effect="light"
  11277. :content="s"
  11278. placement="top"
  11279. >
  11280. <div class="isCard">
  11281. <div>{{ s }}</div>
  11282. </div>
  11283. </el-tooltip>
  11284. </div>
  11285. </div>
  11286. <div class="cardAnswerBox">
  11287. 组成句子:{{ st.chooseSenList.join(" ") }}
  11288. </div>
  11289. </div>
  11290. <div v-if="tType == 2" class="isTj">
  11291. <div class="isTjImg">
  11292. <img src="../../assets/icon/conSentences/right.png" alt="" />
  11293. </div>
  11294. <div>已提交</div>
  11295. </div>
  11296. <div
  11297. class="answerRight isTj"
  11298. v-if="
  11299. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  11300. (tType == 1 || tType == 4)
  11301. "
  11302. >
  11303. <div class="isTjImg">
  11304. <img src="../../assets/icon/conSentences/right.png" alt="" />
  11305. </div>
  11306. <div>回答正确</div>
  11307. </div>
  11308. <div
  11309. class="answerRight isTj"
  11310. v-if="
  11311. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11312. (tType == 1 || tType == 4)
  11313. "
  11314. >
  11315. <div class="isTjImg">
  11316. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  11317. </div>
  11318. <div>回答错误</div>
  11319. </div>
  11320. </div>
  11321. <div
  11322. v-if="
  11323. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11324. (tType == 1 || tType == 4)
  11325. "
  11326. >
  11327. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  11328. <div
  11329. class="cardList"
  11330. v-if="st.rightAnswer"
  11331. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  11332. >
  11333. <div class="cardBox">
  11334. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  11335. <el-tooltip
  11336. class="item"
  11337. effect="light"
  11338. :content="r"
  11339. placement="top"
  11340. >
  11341. <div class="isCard1">
  11342. <div>{{ r }}</div>
  11343. </div>
  11344. </el-tooltip>
  11345. </div>
  11346. </div>
  11347. <div class="cardAnswerBox">
  11348. 组成句子:{{ st.rightAnswer.join(" ") }}
  11349. </div>
  11350. </div>
  11351. </div>
  11352. </div>
  11353. </div>
  11354. </div>
  11355. <span slot="footer" class="dialog-footer">
  11356. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  11357. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  11358. >确 定</el-button
  11359. >
  11360. </span>
  11361. </el-dialog>
  11362. <el-dialog
  11363. title="教师提交作业"
  11364. :visible.sync="dialogVisibleWorks"
  11365. :append-to-body="true"
  11366. width="500px"
  11367. :before-close="handleClose"
  11368. class="dialog_change"
  11369. >
  11370. <div class="marginT">
  11371. <div class="w_name">
  11372. 学生姓名:<span>{{ sStudent.student }}</span>
  11373. </div>
  11374. <div>上传文件</div>
  11375. <div style="display: flex; gap: 10px">
  11376. <div
  11377. class="chapter_add"
  11378. @click="addImg($event)"
  11379. v-if="studyJuri[0].cover.length == 0"
  11380. >
  11381. <div class="up_photo">
  11382. <img src="../../assets/icon/uploadImg.png" alt />
  11383. </div>
  11384. <!-- <input
  11385. type="file"
  11386. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11387. style="display: none"
  11388. @change="beforeUpload1($event, 1)"
  11389. /> -->
  11390. <input
  11391. type="file"
  11392. accept="*"
  11393. style="display: none"
  11394. @change="beforeUpload1($event, 1)"
  11395. />
  11396. <!-- <input
  11397. type="file"
  11398. accept="image/*"
  11399. capture="camera"
  11400. style="display: none"
  11401. @change="beforeUpload1($event, 1)"
  11402. /> -->
  11403. </div>
  11404. <div
  11405. class="chapter_add"
  11406. @click="addImg($event)"
  11407. v-if="studyJuri[0].cover.length == 0"
  11408. >
  11409. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  11410. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  11411. </div>
  11412. <input
  11413. type="file"
  11414. accept="image/*"
  11415. capture="camera"
  11416. style="display: none"
  11417. @change="beforeUpload1($event, 1)"
  11418. />
  11419. </div>
  11420. </div>
  11421. <!-- capture="camera" -->
  11422. <div
  11423. class="chapter_add"
  11424. style="
  11425. display: flex;
  11426. width: 100%;
  11427. flex-direction: row;
  11428. flex-wrap: wrap;
  11429. justify-content: flex-start;
  11430. padding: 15px 0;
  11431. "
  11432. v-if="studyJuri[0].cover.length > 0"
  11433. >
  11434. <div class="upCover">
  11435. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11436. <img :src="word" alt v-else-if="fileType == 1" />
  11437. <img :src="video" alt v-else-if="fileType == 2" />
  11438. <img :src="word2" alt v-else-if="fileType == 3" />
  11439. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11440. <div class="deleteWord" @click="clean(1)">
  11441. <img src="../../assets/icon/deleteWorks.png" alt />
  11442. </div>
  11443. </div>
  11444. </div>
  11445. </div>
  11446. <div
  11447. class="upload_send"
  11448. @click="addCourseWorksTeacher(taskCount)"
  11449. v-if="!proVisible"
  11450. >
  11451. 提交
  11452. </div>
  11453. </el-dialog>
  11454. <ImgDraw
  11455. :drawShow="drawShow"
  11456. @closeDraw="closeDraw"
  11457. @addImgDraw="addImgDraw"
  11458. :bg="bg"
  11459. ></ImgDraw>
  11460. <el-dialog
  11461. title="表格"
  11462. :visible.sync="dialogVisibleTable"
  11463. :append-to-body="true"
  11464. width="95%"
  11465. :before-close="handleClose"
  11466. class="dialog_diy"
  11467. >
  11468. <el-form>
  11469. <div
  11470. style="
  11471. display: flex;
  11472. align-items: center;
  11473. justify-content: space-between;
  11474. "
  11475. >
  11476. <span>表格内容</span>
  11477. <el-button type="primary" size="small" @click="returnTableText"
  11478. >还原模板</el-button
  11479. >
  11480. </div>
  11481. <Table
  11482. v-model="tableJson.text"
  11483. @change="change"
  11484. v-if="dialogVisibleTable"
  11485. ></Table>
  11486. </el-form>
  11487. <span slot="footer" class="dialog-footer">
  11488. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  11489. <el-button type="primary" @click="addTableWorks">确定</el-button>
  11490. </span>
  11491. </el-dialog>
  11492. <el-dialog
  11493. title="表格"
  11494. :visible.sync="dialogVisibleTableTeacher"
  11495. :append-to-body="true"
  11496. width="95%"
  11497. :before-close="handleClose"
  11498. class="dialog_diy"
  11499. >
  11500. <el-form>
  11501. <div class="w_name">
  11502. 学生姓名:<span>{{ sStudent.student }}</span>
  11503. </div>
  11504. <div>表格内容</div>
  11505. <Table
  11506. v-model="tableJson.text"
  11507. @change="change"
  11508. v-if="dialogVisibleTableTeacher"
  11509. ></Table>
  11510. </el-form>
  11511. <span slot="footer" class="dialog-footer">
  11512. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  11513. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  11514. </span>
  11515. </el-dialog>
  11516. <el-dialog
  11517. title="文档"
  11518. :visible.sync="dialogVisibleWord"
  11519. :append-to-body="true"
  11520. width="95%"
  11521. :before-close="handleClose"
  11522. class="dialog_diy"
  11523. >
  11524. <el-form>
  11525. <div
  11526. style="
  11527. display: flex;
  11528. align-items: center;
  11529. justify-content: space-between;
  11530. "
  11531. >
  11532. <span>文档内容</span>
  11533. <el-button type="primary" size="small" @click="returnWordText"
  11534. >还原模板</el-button
  11535. >
  11536. </div>
  11537. <editor-bar
  11538. v-model="wordJson.text"
  11539. v-if="dialogVisibleWord"
  11540. ></editor-bar>
  11541. </el-form>
  11542. <span slot="footer" class="dialog-footer">
  11543. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  11544. <el-button type="primary" @click="addWordWorks">确定</el-button>
  11545. </span>
  11546. </el-dialog>
  11547. <el-dialog
  11548. title="文档"
  11549. :visible.sync="dialogVisibleWordTeacher"
  11550. :append-to-body="true"
  11551. width="95%"
  11552. :before-close="handleClose"
  11553. class="dialog_diy"
  11554. >
  11555. <el-form>
  11556. <div class="w_name">
  11557. 学生姓名:<span>{{ sStudent.student }}</span>
  11558. </div>
  11559. <div>文档内容</div>
  11560. <editor-bar
  11561. v-model="wordJson.text"
  11562. v-if="dialogVisibleWordTeacher"
  11563. ></editor-bar>
  11564. </el-form>
  11565. <span slot="footer" class="dialog-footer">
  11566. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  11567. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  11568. </span>
  11569. </el-dialog>
  11570. <el-dialog
  11571. title="表格"
  11572. :visible.sync="dialogVisibleTable2"
  11573. :append-to-body="true"
  11574. width="95%"
  11575. :before-close="handleClose"
  11576. class="dialog_diy"
  11577. >
  11578. <el-form>
  11579. <div class="cont" v-html="tableJson.text"></div>
  11580. </el-form>
  11581. <span slot="footer" class="dialog-footer">
  11582. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  11583. </span>
  11584. </el-dialog>
  11585. <el-dialog
  11586. title="文档"
  11587. :visible.sync="dialogVisibleTable3"
  11588. :append-to-body="true"
  11589. width="95%"
  11590. :before-close="handleClose"
  11591. class="dialog_diy"
  11592. >
  11593. <el-form>
  11594. <div class="cont" v-html="tableJson.text"></div>
  11595. </el-form>
  11596. <span slot="footer" class="dialog-footer">
  11597. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  11598. </span>
  11599. </el-dialog>
  11600. <el-dialog
  11601. title="分组设置"
  11602. :visible.sync="dialogVisibleGroup"
  11603. :append-to-body="true"
  11604. width="95%"
  11605. :before-close="handleClose"
  11606. class="dialog_diy"
  11607. >
  11608. <div v-if="dialogVisibleGroup">
  11609. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  11610. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  11611. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  11612. </div>
  11613. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  11614. @click="lockChair">
  11615. 锁定位置
  11616. </div>
  11617. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  11618. 解锁位置
  11619. </div> -->
  11620. <div class="group_switch">
  11621. <span>开放选座</span>
  11622. <el-switch
  11623. v-model="islock"
  11624. active-text=""
  11625. class="switchCss"
  11626. @change="lockChair"
  11627. ></el-switch>
  11628. </div>
  11629. <div
  11630. type="primary"
  11631. @click="updateGroup"
  11632. class="returnBtn"
  11633. style="background-color: #225bc7"
  11634. >
  11635. 分组设置
  11636. </div>
  11637. </div>
  11638. <div>
  11639. <div
  11640. class="g_d_box"
  11641. v-if="groupJson.group && groupStudent[toolindex]"
  11642. >
  11643. <div
  11644. class="g_d_group"
  11645. v-for="(g, gindex) in groupJson.group"
  11646. :key="gindex"
  11647. >
  11648. <div class="g_d_group_chair">
  11649. <div v-if="groupJson.number > 1">
  11650. <span
  11651. :class="{
  11652. isChair:
  11653. groupStudent[toolindex][gindex] &&
  11654. groupStudent[toolindex][gindex][0],
  11655. updateChair:
  11656. courseDetail.userid == userid &&
  11657. groupStudent[toolindex][gindex] &&
  11658. groupStudent[toolindex][gindex][0] &&
  11659. groupJson.islock == 2,
  11660. }"
  11661. ><span
  11662. class="updateChairBtn"
  11663. @click="
  11664. updateGroupChair(
  11665. groupStudent[toolindex][gindex] &&
  11666. groupStudent[toolindex][gindex][0]
  11667. )
  11668. "
  11669. >修改</span
  11670. ></span
  11671. ><span>{{
  11672. groupStudent[toolindex][gindex] &&
  11673. groupStudent[toolindex][gindex][0]
  11674. ? groupStudent[toolindex][gindex] &&
  11675. groupStudent[toolindex][gindex][0].name
  11676. : "空位置"
  11677. }}</span>
  11678. </div>
  11679. <div v-if="groupJson.number > 4">
  11680. <span
  11681. :class="{
  11682. isChair:
  11683. groupStudent[toolindex][gindex] &&
  11684. groupStudent[toolindex][gindex][4],
  11685. updateChair:
  11686. courseDetail.userid == userid &&
  11687. groupStudent[toolindex][gindex] &&
  11688. groupStudent[toolindex][gindex][4] &&
  11689. groupJson.islock == 2,
  11690. }"
  11691. ><span
  11692. class="updateChairBtn"
  11693. @click="
  11694. updateGroupChair(
  11695. groupStudent[toolindex][gindex] &&
  11696. groupStudent[toolindex][gindex][4]
  11697. )
  11698. "
  11699. >修改</span
  11700. ></span
  11701. ><span>{{
  11702. groupStudent[toolindex][gindex] &&
  11703. groupStudent[toolindex][gindex][4]
  11704. ? groupStudent[toolindex][gindex] &&
  11705. groupStudent[toolindex][gindex][4].name
  11706. : "空位置"
  11707. }}</span>
  11708. </div>
  11709. <div v-if="groupJson.number > 8">
  11710. <span
  11711. :class="{
  11712. isChair:
  11713. groupStudent[toolindex][gindex] &&
  11714. groupStudent[toolindex][gindex][8],
  11715. updateChair:
  11716. courseDetail.userid == userid &&
  11717. groupStudent[toolindex][gindex] &&
  11718. groupStudent[toolindex][gindex][8] &&
  11719. groupJson.islock == 2,
  11720. }"
  11721. ><span
  11722. class="updateChairBtn"
  11723. @click="
  11724. updateGroupChair(
  11725. groupStudent[toolindex][gindex] &&
  11726. groupStudent[toolindex][gindex][8]
  11727. )
  11728. "
  11729. >修改</span
  11730. ></span
  11731. ><span>{{
  11732. groupStudent[toolindex][gindex] &&
  11733. groupStudent[toolindex][gindex][8]
  11734. ? groupStudent[toolindex][gindex] &&
  11735. groupStudent[toolindex][gindex][8].name
  11736. : "空位置"
  11737. }}</span>
  11738. </div>
  11739. </div>
  11740. <div class="g_d_group_tableBox">
  11741. <div class="g_d_group_chair2">
  11742. <div v-if="groupJson.number > 2">
  11743. <span
  11744. :class="{
  11745. isChair:
  11746. groupStudent[toolindex][gindex] &&
  11747. groupStudent[toolindex][gindex][2],
  11748. updateChair:
  11749. courseDetail.userid == userid &&
  11750. groupStudent[toolindex][gindex] &&
  11751. groupStudent[toolindex][gindex][2] &&
  11752. groupJson.islock == 2,
  11753. }"
  11754. ><span
  11755. class="updateChairBtn"
  11756. @click="
  11757. updateGroupChair(
  11758. groupStudent[toolindex][gindex] &&
  11759. groupStudent[toolindex][gindex][2]
  11760. )
  11761. "
  11762. >修改</span
  11763. ></span
  11764. ><span>{{
  11765. groupStudent[toolindex][gindex] &&
  11766. groupStudent[toolindex][gindex][2]
  11767. ? groupStudent[toolindex][gindex] &&
  11768. groupStudent[toolindex][gindex][2].name
  11769. : "空位置"
  11770. }}</span>
  11771. </div>
  11772. <div v-if="groupJson.number > 6">
  11773. <span
  11774. :class="{
  11775. isChair:
  11776. groupStudent[toolindex][gindex] &&
  11777. groupStudent[toolindex][gindex][6],
  11778. updateChair:
  11779. courseDetail.userid == userid &&
  11780. groupStudent[toolindex][gindex] &&
  11781. groupStudent[toolindex][gindex][6] &&
  11782. groupJson.islock == 2,
  11783. }"
  11784. ><span
  11785. class="updateChairBtn"
  11786. @click="
  11787. updateGroupChair(
  11788. groupStudent[toolindex][gindex] &&
  11789. groupStudent[toolindex][gindex][6]
  11790. )
  11791. "
  11792. >修改</span
  11793. ></span
  11794. ><span>{{
  11795. groupStudent[toolindex][gindex] &&
  11796. groupStudent[toolindex][gindex][6]
  11797. ? groupStudent[toolindex][gindex] &&
  11798. groupStudent[toolindex][gindex][6].name
  11799. : "空位置"
  11800. }}</span>
  11801. </div>
  11802. </div>
  11803. <div class="g_d_group_table">
  11804. <div>
  11805. {{ g.name }}
  11806. </div>
  11807. <div>
  11808. <div
  11809. v-if="
  11810. courseDetail.userid == userid && groupJson.islock == 2
  11811. "
  11812. @click="deleteGroupChair(gindex)"
  11813. >
  11814. 移除组员
  11815. </div>
  11816. <div
  11817. @click="selectGroup(gindex)"
  11818. v-else-if="
  11819. groupStudentUid[toolindex] &&
  11820. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11821. "
  11822. >
  11823. 加入分组
  11824. </div>
  11825. <div
  11826. @click="
  11827. exitGroup(
  11828. groupStudent[toolindex][gindex] &&
  11829. groupStudent[toolindex][gindex][
  11830. groupStudentUid[toolindex][gindex].indexOf(userid)
  11831. ].id
  11832. )
  11833. "
  11834. v-else-if="
  11835. groupStudentUid[toolindex] &&
  11836. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11837. "
  11838. >
  11839. 退出分组
  11840. </div>
  11841. </div>
  11842. </div>
  11843. <div class="g_d_group_chair2">
  11844. <div v-if="groupJson.number > 3">
  11845. <span
  11846. :class="{
  11847. isChair:
  11848. groupStudent[toolindex][gindex] &&
  11849. groupStudent[toolindex][gindex][3],
  11850. updateChair:
  11851. courseDetail.userid == userid &&
  11852. groupStudent[toolindex][gindex] &&
  11853. groupStudent[toolindex][gindex][3] &&
  11854. groupJson.islock == 2,
  11855. }"
  11856. ><span
  11857. class="updateChairBtn"
  11858. @click="
  11859. updateGroupChair(
  11860. groupStudent[toolindex][gindex] &&
  11861. groupStudent[toolindex][gindex][3]
  11862. )
  11863. "
  11864. >修改</span
  11865. ></span
  11866. ><span>{{
  11867. groupStudent[toolindex][gindex] &&
  11868. groupStudent[toolindex][gindex][3]
  11869. ? groupStudent[toolindex][gindex] &&
  11870. groupStudent[toolindex][gindex][3].name
  11871. : "空位置"
  11872. }}</span>
  11873. </div>
  11874. <div v-if="groupJson.number > 7">
  11875. <span
  11876. :class="{
  11877. isChair:
  11878. groupStudent[toolindex][gindex] &&
  11879. groupStudent[toolindex][gindex][7],
  11880. updateChair:
  11881. courseDetail.userid == userid &&
  11882. groupStudent[toolindex][gindex] &&
  11883. groupStudent[toolindex][gindex][7] &&
  11884. groupJson.islock == 2,
  11885. }"
  11886. ><span
  11887. class="updateChairBtn"
  11888. @click="
  11889. updateGroupChair(
  11890. groupStudent[toolindex][gindex] &&
  11891. groupStudent[toolindex][gindex][7]
  11892. )
  11893. "
  11894. >修改</span
  11895. ></span
  11896. ><span>{{
  11897. groupStudent[toolindex][gindex] &&
  11898. groupStudent[toolindex][gindex][7]
  11899. ? groupStudent[toolindex][gindex] &&
  11900. groupStudent[toolindex][gindex][7].name
  11901. : "空位置"
  11902. }}</span>
  11903. </div>
  11904. </div>
  11905. </div>
  11906. <div class="g_d_group_chair">
  11907. <div v-if="groupJson.number > 1">
  11908. <span
  11909. :class="{
  11910. isChair:
  11911. groupStudent[toolindex][gindex] &&
  11912. groupStudent[toolindex][gindex][1],
  11913. updateChair:
  11914. courseDetail.userid == userid &&
  11915. groupStudent[toolindex][gindex] &&
  11916. groupStudent[toolindex][gindex][1] &&
  11917. groupJson.islock == 2,
  11918. }"
  11919. ><span
  11920. class="updateChairBtn"
  11921. @click="
  11922. updateGroupChair(
  11923. groupStudent[toolindex][gindex] &&
  11924. groupStudent[toolindex][gindex][1]
  11925. )
  11926. "
  11927. >修改</span
  11928. ></span
  11929. ><span>{{
  11930. groupStudent[toolindex][gindex] &&
  11931. groupStudent[toolindex][gindex][1]
  11932. ? groupStudent[toolindex][gindex] &&
  11933. groupStudent[toolindex][gindex][1].name
  11934. : "空位置"
  11935. }}</span>
  11936. </div>
  11937. <div v-if="groupJson.number > 5">
  11938. <span
  11939. :class="{
  11940. isChair:
  11941. groupStudent[toolindex][gindex] &&
  11942. groupStudent[toolindex][gindex][5],
  11943. updateChair:
  11944. courseDetail.userid == userid &&
  11945. groupStudent[toolindex][gindex] &&
  11946. groupStudent[toolindex][gindex][5] &&
  11947. groupJson.islock == 2,
  11948. }"
  11949. ><span
  11950. class="updateChairBtn"
  11951. @click="
  11952. updateGroupChair(
  11953. groupStudent[toolindex][gindex] &&
  11954. groupStudent[toolindex][gindex][5]
  11955. )
  11956. "
  11957. >修改</span
  11958. ></span
  11959. ><span>{{
  11960. groupStudent[toolindex][gindex] &&
  11961. groupStudent[toolindex][gindex][5]
  11962. ? groupStudent[toolindex][gindex] &&
  11963. groupStudent[toolindex][gindex][5].name
  11964. : "空位置"
  11965. }}</span>
  11966. </div>
  11967. <div v-if="groupJson.number > 9">
  11968. <span
  11969. :class="{
  11970. isChair:
  11971. groupStudent[toolindex][gindex] &&
  11972. groupStudent[toolindex][gindex][9],
  11973. updateChair:
  11974. courseDetail.userid == userid &&
  11975. groupStudent[toolindex][gindex] &&
  11976. groupStudent[toolindex][gindex][9] &&
  11977. groupJson.islock == 2,
  11978. }"
  11979. ><span
  11980. class="updateChairBtn"
  11981. @click="
  11982. updateGroupChair(
  11983. groupStudent[toolindex][gindex] &&
  11984. groupStudent[toolindex][gindex][9]
  11985. )
  11986. "
  11987. >修改</span
  11988. ></span
  11989. ><span>{{
  11990. groupStudent[toolindex][gindex] &&
  11991. groupStudent[toolindex][gindex][9]
  11992. ? groupStudent[toolindex][gindex] &&
  11993. groupStudent[toolindex][gindex][9].name
  11994. : "空位置"
  11995. }}</span>
  11996. </div>
  11997. </div>
  11998. </div>
  11999. </div>
  12000. </div>
  12001. </div>
  12002. <span slot="footer" class="dialog-footer">
  12003. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  12004. </span>
  12005. </el-dialog>
  12006. <el-dialog
  12007. title="分组设置"
  12008. :visible.sync="dialogVisibleGroup2"
  12009. :append-to-body="true"
  12010. width="650px"
  12011. :before-close="handleClose"
  12012. class="dialog_diy"
  12013. >
  12014. <div class="groupBox">
  12015. <div v-if="groupJson2.group" class="groupContent">
  12016. <div class="groupTitle">请设置小组数量及名称</div>
  12017. <div
  12018. v-for="(item, index) in groupJson2.group"
  12019. :key="index"
  12020. class="groupName"
  12021. >
  12022. <span class="groupn">第{{ index + 1 }}组名称:</span>
  12023. <el-input
  12024. v-model="item.name"
  12025. placeholder="请输入名称..."
  12026. style="width: 250px"
  12027. ></el-input>
  12028. <!-- <div class="groupBtn">
  12029. <el-button type="primary" size="small" @click="addGroup(index)">
  12030. 添加</el-button>
  12031. <el-button type="primary" size="small" @click="deleteGroup(index)"
  12032. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  12033. </div> -->
  12034. </div>
  12035. </div>
  12036. <div class="groupContent">
  12037. <div class="groupTitle">请设置每组人数</div>
  12038. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  12039. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  12040. <el-input
  12041. v-model="groupJson2.number"
  12042. style="width: 150px"
  12043. placeholder="请输入2-10的数字"
  12044. @change="numberPan"
  12045. ></el-input>
  12046. </div>
  12047. </div>
  12048. <span slot="footer" class="dialog-footer">
  12049. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  12050. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  12051. </span>
  12052. </el-dialog>
  12053. <el-dialog
  12054. title="作业提交"
  12055. :visible.sync="dialogVisibleGroupWork"
  12056. :append-to-body="true"
  12057. width="500px"
  12058. :before-close="handleClose"
  12059. class="dialog_change"
  12060. >
  12061. <div class="marginT">
  12062. <div>上传文件</div>
  12063. <div
  12064. class="chapter_add"
  12065. @click="addImg($event)"
  12066. v-if="studyJuri[0].cover.length == 0"
  12067. >
  12068. <div class="up_photo">
  12069. <img src="../../assets/icon/uploadImg.png" alt />
  12070. </div>
  12071. <!-- <input
  12072. type="file"
  12073. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12074. style="display: none"
  12075. @change="beforeUpload1($event, 1)"
  12076. /> -->
  12077. <input
  12078. type="file"
  12079. accept="*"
  12080. style="display: none"
  12081. @change="beforeUpload1($event, 1)"
  12082. />
  12083. </div>
  12084. <!-- capture="camera" -->
  12085. <div
  12086. class="chapter_add"
  12087. style="
  12088. display: flex;
  12089. width: 100%;
  12090. flex-direction: row;
  12091. flex-wrap: wrap;
  12092. justify-content: flex-start;
  12093. padding: 15px 0;
  12094. "
  12095. v-if="studyJuri[0].cover.length > 0"
  12096. >
  12097. <div class="upCover">
  12098. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  12099. <img :src="word" alt v-else-if="fileType == 1" />
  12100. <img :src="video" alt v-else-if="fileType == 2" />
  12101. <img :src="word2" alt v-else-if="fileType == 3" />
  12102. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  12103. <div class="deleteWord" @click="clean(1)">
  12104. <img src="../../assets/icon/deleteWorks.png" alt />
  12105. </div>
  12106. </div>
  12107. </div>
  12108. </div>
  12109. <div
  12110. class="upload_send"
  12111. @click="addCourseWorks2(taskCount)"
  12112. v-if="!proVisible"
  12113. >
  12114. 提交
  12115. </div>
  12116. </el-dialog>
  12117. <el-dialog
  12118. title="修改分组"
  12119. :visible.sync="dialogVisibleUpdateGroup"
  12120. :append-to-body="true"
  12121. width="350px"
  12122. :before-close="handleClose"
  12123. class="dialog_diy"
  12124. >
  12125. <div>
  12126. <h2>
  12127. {{ this.updateGroupUser.name }}
  12128. </h2>
  12129. <div style="color: rgb(171 171 171); margin-top: 10px">
  12130. 请选择要进入的分组
  12131. </div>
  12132. <el-radio-group v-model="checkChair">
  12133. <el-radio
  12134. style="display: block; margin-top: 20px"
  12135. v-for="(item, index) in updateGroupArray"
  12136. :label="item.label"
  12137. :key="index"
  12138. >{{ item.name }}</el-radio
  12139. >
  12140. </el-radio-group>
  12141. </div>
  12142. <span slot="footer" class="dialog-footer">
  12143. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  12144. <el-button type="primary" @click="updateChair">确定</el-button>
  12145. </span>
  12146. </el-dialog>
  12147. <el-dialog
  12148. title="移除组员"
  12149. :visible.sync="dialogVisibleDeleteGroup"
  12150. :append-to-body="true"
  12151. width="350px"
  12152. :before-close="handleClose"
  12153. class="dialog_diy"
  12154. >
  12155. <div>
  12156. <h2>
  12157. {{ this.deleteGroupArray.name }}
  12158. </h2>
  12159. <div style="color: rgb(171 171 171); margin-top: 10px">
  12160. 请选择要删除的组员
  12161. </div>
  12162. <el-checkbox-group v-model="checkDeleteGroup">
  12163. <el-checkbox
  12164. style="display: flex; margin-top: 20px"
  12165. v-for="(item, index) in deleteGroupUser"
  12166. :label="item.userid"
  12167. :key="index"
  12168. >{{ item.name }}</el-checkbox
  12169. >
  12170. </el-checkbox-group>
  12171. </div>
  12172. <span slot="footer" class="dialog-footer">
  12173. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  12174. <el-button type="primary" @click="deleteChair">确定</el-button>
  12175. </span>
  12176. </el-dialog>
  12177. <el-dialog
  12178. title="批量上传"
  12179. :visible.sync="dialogVisiblePl"
  12180. :append-to-body="true"
  12181. width="700px"
  12182. :before-close="handleClose"
  12183. class="dialog_change"
  12184. >
  12185. <div class="marginT">
  12186. <div class="plworkBox">
  12187. <div
  12188. class="chapter_add"
  12189. style="
  12190. display: flex;
  12191. width: 150px;
  12192. flex-direction: row;
  12193. flex-wrap: wrap;
  12194. justify-content: flex-start;
  12195. margin: 0 10px 10px 0;
  12196. "
  12197. v-for="(item, index) in plworkFile"
  12198. :key="index"
  12199. >
  12200. <div class="upCover2">
  12201. <img
  12202. :src="item.url"
  12203. alt
  12204. v-if="item.fileType == 1"
  12205. @click="previewImg(item.url)"
  12206. />
  12207. <img :src="word" alt v-else-if="item.fileType == 4" />
  12208. <img :src="video" alt v-else />
  12209. <!-- <span class="picName">{{ item.name }}</span> -->
  12210. <!-- <el-input
  12211. v-model="item.username"
  12212. placeholder="请输入学生名字"
  12213. style="margin-top: 10px"
  12214. ></el-input> -->
  12215. <div
  12216. class="pl_select_box"
  12217. @click="
  12218. getUpdateMore(true, checkUpload(), item.username, index)
  12219. "
  12220. >
  12221. {{ getSName(item.username) }}
  12222. </div>
  12223. <!-- <el-select
  12224. style="margin-top: 10px"
  12225. v-model="item.username"
  12226. filterable
  12227. allow-create
  12228. placeholder="请选择学生"
  12229. >
  12230. <el-option
  12231. v-for="item1 in checkUpload()"
  12232. :key="item1.userid"
  12233. :label="item1.name ? item1.name : item1.username"
  12234. :value="item1.userid"
  12235. >
  12236. </el-option>
  12237. </el-select> -->
  12238. <div class="deleteWord" @click="clean2(index)">
  12239. <img src="../../assets/icon/deleteWorks.png" alt />
  12240. </div>
  12241. </div>
  12242. </div>
  12243. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  12244. <div class="up_photo2">
  12245. <img src="../../assets/icon/plwork.png" alt />
  12246. <span>点击上传文件</span>
  12247. </div>
  12248. <input
  12249. type="file"
  12250. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12251. multiple="multiple"
  12252. style="display: none"
  12253. @change="beforeUpload3($event, 6)"
  12254. />
  12255. </div>
  12256. </div>
  12257. </div>
  12258. <!-- capture="camera" -->
  12259. <div
  12260. class="upload_send"
  12261. @click="addCourseWorksPl(taskCount)"
  12262. v-if="!proVisible2"
  12263. >
  12264. 提交
  12265. </div>
  12266. </el-dialog>
  12267. <el-dialog
  12268. title="修改名称"
  12269. :visible.sync="dialogVisibleSname"
  12270. width="500px"
  12271. :before-close="handleClose"
  12272. class="dialog_diy"
  12273. center
  12274. >
  12275. <div
  12276. style="
  12277. text-align: center;
  12278. display: flex;
  12279. align-items: center;
  12280. justify-content: center;
  12281. "
  12282. >
  12283. <span class="tian1">名称</span>
  12284. <div
  12285. class="pl_select_box"
  12286. style="margin-left: 10px; width: 200px"
  12287. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  12288. >
  12289. {{ getSName(worksSName) }}
  12290. </div>
  12291. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  12292. placeholder="请选择学生">
  12293. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  12294. :value="item.userid">
  12295. </el-option>
  12296. </el-select> -->
  12297. <!-- <el-input
  12298. v-model="worksSName"
  12299. style="width: 250px; margin: 15px 0px"
  12300. ></el-input> -->
  12301. </div>
  12302. <span slot="footer" class="dialog-footer">
  12303. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  12304. <el-button type="primary" @click="updateName">确 定</el-button>
  12305. </span>
  12306. </el-dialog>
  12307. <el-dialog
  12308. title="英语写作"
  12309. :visible.sync="engDialogVisible"
  12310. :append-to-body="true"
  12311. width="800px"
  12312. :before-close="handleClose"
  12313. class="dialog_diy"
  12314. >
  12315. <onlineWrite
  12316. v-if="engDialogVisible"
  12317. :englishList="englishList"
  12318. :myAnswerList1="myAnswerList1"
  12319. ref="engJson"
  12320. ></onlineWrite>
  12321. <span slot="footer" class="dialog-footer" style="text-align: center;">
  12322. <el-button @click="engDialogVisible = false">取 消</el-button>
  12323. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  12324. </span>
  12325. </el-dialog>
  12326. <el-dialog
  12327. title="英语写作"
  12328. :visible.sync="engUpdateDialogVisible"
  12329. :append-to-body="true"
  12330. width="800px"
  12331. :before-close="handleClose"
  12332. class="dialog_diy fullStyle"
  12333. >
  12334. <div class="engUpBox">
  12335. <div class="engUpTop">
  12336. <div class="engTitle">
  12337. <div>作文题目:</div>
  12338. <div>{{ englishList1.engTitle }}</div>
  12339. </div>
  12340. <div class="engText">
  12341. <div>作文内容:</div>
  12342. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  12343. </div>
  12344. </div>
  12345. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  12346. <div class="oldBox">
  12347. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  12348. <div class="oldText">
  12349. <div class="detailBox">
  12350. <div class="oldDetail">
  12351. <div>标题:</div>
  12352. <div>{{ oldEnglishJson.engTitle }} </div>
  12353. </div>
  12354. <div class="oldDetail1">
  12355. <div>正文:</div>
  12356. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  12357. </div>
  12358. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  12359. <div>图片:</div>
  12360. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  12361. </div>
  12362. </div>
  12363. </div>
  12364. </div>
  12365. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  12366. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  12367. <div class="oldText">
  12368. <div class="detailBox" style="position: relative;">
  12369. <div class="oldDetail">
  12370. <div>标题:</div>
  12371. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12372. <div v-else v-html="newEnglishList.engTitle"></div>
  12373. </div>
  12374. <div class="oldDetail">
  12375. <div>正文:</div>
  12376. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12377. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12378. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  12379. </div>
  12380. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12381. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12382. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12383. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12384. </div>
  12385. </div>
  12386. </div>
  12387. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  12388. <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">
  12389. <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>
  12390. <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>
  12391. </div>
  12392. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  12393. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  12394. <div class="detailBox" style="position: relative;">
  12395. <div class="oldDetail">
  12396. <div>标题:</div>
  12397. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  12398. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  12399. </div>
  12400. <div class="oldDetail">
  12401. <div>正文:</div>
  12402. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  12403. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  12404. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(oldEnglishJson1.engText,correctWord)"></div> -->
  12405. </div>
  12406. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12407. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12408. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12409. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12410. </div>
  12411. </div>
  12412. <div class="oldText" v-else-if="newEngIndex == -1">
  12413. <div class="detailBox" style="position: relative;">
  12414. <div class="oldDetail">
  12415. <div>标题:</div>
  12416. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12417. <div v-else v-html="newEnglishList.engTitle"></div>
  12418. </div>
  12419. <div class="oldDetail">
  12420. <div>正文:</div>
  12421. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12422. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12423. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  12424. </div>
  12425. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12426. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12427. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12428. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12429. </div>
  12430. </div>
  12431. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  12432. <div class="detailBox" style="position: relative;">
  12433. <div class="oldDetail">
  12434. <div>标题:</div>
  12435. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12436. <div v-else>
  12437. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  12438. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12439. </div>
  12440. </div>
  12441. <div class="oldDetail">
  12442. <div>正文:</div>
  12443. <!-- <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engText"></div> -->
  12444. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12445. <div v-else>
  12446. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  12447. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12448. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList1[newEngIndex].cWork.engText,correctWord)"></div> -->
  12449. </div>
  12450. </div>
  12451. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12452. <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>
  12453. <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>
  12454. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12455. </div>
  12456. </div>
  12457. </div>
  12458. </div>
  12459. </div>
  12460. <span slot="footer" class="dialog-footer">
  12461. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  12462. <el-button type="primary" @click="addCorrect">确 定</el-button>
  12463. </span>
  12464. </el-dialog>
  12465. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  12466. <interVideo
  12467. :dialogVisibleVideo.sync="dialogVisibleVideo"
  12468. :videoJson="videoJson"
  12469. :userid="userid"
  12470. :id="id"
  12471. :courseType="courseType"
  12472. :taskCount="taskCount"
  12473. :toolindex="toolindex"
  12474. :videoType="videoType"
  12475. ></interVideo>
  12476. <UpdateMore
  12477. :dialogVisibleMember.sync="dialogVisibleMember"
  12478. :cList="uploadStudentJuri"
  12479. :userid="userid"
  12480. :searchTN="worksSName2"
  12481. @setPlname="setPlname"
  12482. ></UpdateMore>
  12483. <!-- <wordCloud
  12484. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  12485. :data="wordCloudData"
  12486. ></wordCloud> -->
  12487. <el-dialog
  12488. title="词云"
  12489. :visible.sync="dialogVisibleWordCloud"
  12490. width="30%"
  12491. class="dialog_diy"
  12492. :before-close="handleClose">
  12493. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  12494. </el-dialog>
  12495. <el-dialog
  12496. title="挑人"
  12497. :visible.sync="dialogVisiblePickPeople"
  12498. width="650px"
  12499. :before-close="handleClose"
  12500. class="dialog_diy"
  12501. center
  12502. >
  12503. <div class="pick_box">
  12504. <div
  12505. class="noWorksName"
  12506. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  12507. v-for="(item, index) in uploadStudentJuri"
  12508. :key="index"
  12509. @click="pickStudent(item)"
  12510. >
  12511. {{ item.name }}
  12512. </div>
  12513. </div>
  12514. </el-dialog>
  12515. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  12516. :englishVoiceJson='englishVoiceJson'
  12517. :userid="userid"
  12518. :id="id"
  12519. :courseType="courseType"
  12520. :taskCount="taskCount"
  12521. :toolindex="toolindex"
  12522. @selectSWorks="selectSWorks"
  12523. @selectStudent="selectStudent"
  12524. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  12525. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  12526. :userid="userid"
  12527. :dialogVisibleENScore.sync='dialogVisibleENScore'
  12528. :commentDetail="commentDetail"
  12529. :courseDetail="courseDetail"
  12530. :wScore="wScore"
  12531. :scoreDetail="scoreDetail"
  12532. @selectSWorks="selectSWorks"
  12533. @selectStudent="selectStudent"></checkEnglishVoice>
  12534. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  12535. <choseWorksDetailDialog
  12536. ref="choseWorksDetailDialogRef"
  12537. :worksStudentData="worksStudent"
  12538. :noWorksSData="noWorksS"
  12539. :chapInfoListData="chapInfoList"
  12540. :courseType="courseType"
  12541. :taskCount="taskCount"
  12542. :tType="tType"
  12543. :sIsOpen="sIsOpen"
  12544. :courseDetail="courseDetail"
  12545. :groupStudent2="groupStudent"
  12546. :groupStudentUid2="groupStudentUid"
  12547. :oid="oid"
  12548. :org="org"
  12549. @getCourseDetail="getCourseDetail"
  12550. @selectSLook="selectSLook"
  12551. @selectSWorks="selectSWorks"
  12552. @selectStudent="selectStudent"
  12553. @deleteWorks="deleteWorks"
  12554. @openTools="openTools"
  12555. @openWord="openWord"
  12556. @openScore="openScore"
  12557. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  12558. />
  12559. <el-dialog
  12560. :visible.sync="confirmOpenDig"
  12561. width="500px"
  12562. :modal="false"
  12563. class="confirmOpenDigCss dialog_diyCopy"
  12564. :before-close="handleClose">
  12565. <div style="display: flex;align-items: center;">
  12566. <img src="../../assets/icon/course/confirmOpenDig.svg" alt="">
  12567. <span>“{{ courseDetail.title }}”开课啦</span>
  12568. </div>
  12569. <div style="margin: 20px 0 35px;">
  12570. <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
  12571. <div>要认真听讲哦~</div>
  12572. </div>
  12573. <div style="text-align: center;">
  12574. <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
  12575. </div>
  12576. </el-dialog>
  12577. <appStoreC ref="appStoreC"
  12578. :sStudent="sStudent"
  12579. :courseType="courseType"
  12580. :taskCount="taskCount"
  12581. :toolindex="toolindex"
  12582. @selectSWorks="selectSWorks"
  12583. @selectStudent="selectStudent"
  12584. ></appStoreC>
  12585. <cocoFlowDia ref="cocoFlowDiaRef"></cocoFlowDia>
  12586. </div>
  12587. </template>
  12588. <script>
  12589. import "../../common/aws-sdk-2.235.1.min.js";
  12590. // import pdf from "../components/pdf3";
  12591. import pdf from "../components/vpdf";
  12592. import AskStatic from "../components/askStatic";
  12593. import AskStatic2 from "../components/askStatic2";
  12594. import AnswerData2 from "../components/answerData2";
  12595. import AnswerData from "../components/answerData";
  12596. import sortToolWorkShow from "../components/sortToolWorkShow.vue";
  12597. import EditorBar from "../tools/wangEnduit.vue";
  12598. import Table from "../tools/table.vue";
  12599. import Time from "../tools/time.vue";
  12600. import Mind from "../tools/jsmind.vue";
  12601. import Sunburst from "../tools/sunburst";
  12602. import SeeBoard from "../tools/seeBoard";
  12603. import * as imageConversion from "image-conversion";
  12604. import Audio from "../components/audio.vue";
  12605. import ImgDraw from "../tools/imgDraw/imgDraw";
  12606. import { Empty } from "element-ui";
  12607. import RecordRTC from "recordrtc";
  12608. import interVideo from "../interVideo/index.vue";
  12609. import UpdateMore from "../updateMore/updateMore.vue";
  12610. import wordCloud from "../wordCloud/index.vue";
  12611. import axios from "axios";
  12612. import JSZip from "jszip";
  12613. import FileSaver from "file-saver";
  12614. import onlineWrite from "./commpont/onlineWrite";
  12615. import englishEva from "../components/englishEva";
  12616. import * as Diff from 'diff'
  12617. import EnglishVoice from '../EnglishVoice2/index.vue'
  12618. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  12619. import correctText from '../components/correctText.vue'
  12620. import scoreItem from '../scoreList/scoreItem.vue'
  12621. import scoreZong from '../scoreZong/index.vue'
  12622. import classRoomHelper from '../classRoomHelper/index.vue'
  12623. import studentClassRoomHelper from '../classRoomHelper/studentIndex.vue'
  12624. import MarkdownIt from "markdown-it";
  12625. import statisticalAnalysis from '../components/statisticalAnalysis.vue'
  12626. import choseWorksDetailDialog from '../components/choseWorksDetailDialog.vue'
  12627. import { v4 as uuidv4 } from "uuid";
  12628. var OpenCC = require("opencc-js");
  12629. import choseWordCloud from '../components/choseWordCloud.vue'
  12630. import appStoreC from "../components/appStoreC.vue";
  12631. import cocoFlowDia from "../components/cocoFlowDia.vue";
  12632. import { myMixin } from "@/mixins/mixin.js"
  12633. import { tools as toolsList } from "@/common/tools2.js";
  12634. import katex from 'katex'
  12635. import 'katex/dist/katex.min.css'
  12636. let converter = OpenCC.Converter({
  12637. from: "hk",
  12638. to: "cn"
  12639. });
  12640. const getFile = (url) => {
  12641. return new Promise((resolve, reject) => {
  12642. var credentials = {
  12643. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  12644. secretAccessKey: "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",
  12645. }; //秘钥形式的登录上传
  12646. window.AWS.config.update(credentials);
  12647. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12648. let url2 = url;
  12649. let _url2 = "";
  12650. if (
  12651. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  12652. ) {
  12653. _url2 = url2.split(
  12654. "https://view.officeapps.live.com/op/view.aspx?src="
  12655. )[1];
  12656. } else {
  12657. _url2 = url2;
  12658. }
  12659. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  12660. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  12661. var params = {
  12662. Bucket: "ccrb",
  12663. Key: name
  12664. };
  12665. s3.getObject(params, function (err, data) {
  12666. if (err) {
  12667. console.log(err, err.stack)
  12668. resolve({ data: 1 });
  12669. }else {
  12670. resolve({ data: data.Body });
  12671. console.log(data);
  12672. } // sxuccessful response
  12673. });
  12674. // axios({
  12675. // method: "get",
  12676. // url,
  12677. // responseType: "blob",
  12678. // })
  12679. // .then((data) => {
  12680. // resolve({ data: data.data });
  12681. // })
  12682. // .catch((error) => {
  12683. // resolve({ data: 1 });
  12684. // // reject(error.toString());
  12685. // });
  12686. });
  12687. };
  12688. export default {
  12689. mixins: [ myMixin ],
  12690. components: {
  12691. choseWordCloud,
  12692. EditorBar,
  12693. Time,
  12694. pdf,
  12695. AskStatic,
  12696. AskStatic2,
  12697. Mind,
  12698. Sunburst,
  12699. SeeBoard,
  12700. AnswerData2,
  12701. AnswerData,
  12702. sortToolWorkShow,
  12703. Audio,
  12704. ImgDraw,
  12705. Table,
  12706. interVideo,
  12707. UpdateMore,
  12708. wordCloud,
  12709. onlineWrite,
  12710. englishEva,
  12711. EnglishVoice,
  12712. checkEnglishVoice,
  12713. correctText,
  12714. scoreItem,
  12715. classRoomHelper,
  12716. scoreZong,
  12717. statisticalAnalysis,
  12718. choseWorksDetailDialog,
  12719. appStoreC,
  12720. cocoFlowDia,
  12721. studentClassRoomHelper
  12722. },
  12723. data() {
  12724. return {
  12725. // 学校或者组织随机码
  12726. Code2:'',
  12727. startTime: "",
  12728. // 是否允许学生查看内容资料 2不可以 1可以
  12729. IsStulook:false,
  12730. homeWorkLoading:false,
  12731. toolsList: toolsList,
  12732. wordCloudKey: 0,
  12733. bg: null,
  12734. drawShow: false,
  12735. dialogVisible: false,
  12736. dialogVisiblePl: false,
  12737. commentDialogVisible: false,
  12738. dialogVisibleMember: false,
  12739. dialogVisibleWordCloud: false,
  12740. videoVisible: false,
  12741. isStar: false,
  12742. studentEvalDialogVisible: false,
  12743. studentEvalDialogVisibleTeacher: false,
  12744. dialogVisibleSelect: false,
  12745. dialogVisibleSelectTeacher: false,
  12746. dialogVisibleScore: false,
  12747. dialogVisibleENScore: false,
  12748. dialogVisibleSentence: false,
  12749. dialogVisibleSentenceTeacher: false,
  12750. dialogVisibleSentence1: false,
  12751. dialogVisibleWorks: false,
  12752. dialogVisibleTable: false,
  12753. dialogVisibleTableTeacher: false,
  12754. dialogVisibleWord: false,
  12755. dialogVisibleWordTeacher: false,
  12756. dialogVisibleTable2: false,
  12757. dialogVisibleTable3: false,
  12758. dialogVisibleGroupWork: false,
  12759. dialogVisibleUpdateGroup: false,
  12760. dialogVisibleDeleteGroup: false,
  12761. dialogVisibleSname: false,
  12762. dialogVisibleVideo: false,
  12763. dialogVisiblePickPeople: false,
  12764. worksSName: "",
  12765. classJuri: [],
  12766. uploadStudentJuri: [],
  12767. uploadCid: "",
  12768. snameWid: "",
  12769. sStudent: {},
  12770. sTool: "",
  12771. bzText: "",
  12772. commentDetail: [],
  12773. selectAnswer: [],
  12774. videoDetail: {},
  12775. selectJson: {},
  12776. eScore: { eBzText: "", eStar: [] },
  12777. id: this.$route.query.courseId,
  12778. userid: this.$route.query.userid,
  12779. classId: this.$route.query.cid,
  12780. role: this.$route.query.role,
  12781. // courseTypeLine: this.$route.query.type,
  12782. oid: this.$route.query.oid,
  12783. org: this.$route.query.org,
  12784. tType: this.$route.query.tType,
  12785. courseType: this.$route.query.type,
  12786. screenType: this.$route.query.screenType,
  12787. tcid2: this.$route.query.tcid,
  12788. tcid: "",
  12789. pptImgUrl: "",
  12790. pptImgUrl1: "",
  12791. commentText: "",
  12792. full: false,
  12793. sIsOpen: false,
  12794. IsLookOpen: false,
  12795. IsFollow: false,
  12796. pzDialog: false,
  12797. contentDialog: false,
  12798. mlDialog: false,
  12799. type: 1,
  12800. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12801. sentenceList1: [],
  12802. tableJson: [],
  12803. tableJsonO: [],
  12804. wordJson: [],
  12805. wordJsonO: [],
  12806. vedio: [],
  12807. text: [],
  12808. textList: [],
  12809. line: [],
  12810. lineList: [],
  12811. chapTools: [],
  12812. chapToolList: [],
  12813. file: [],
  12814. fileC: [],
  12815. vedioTime: [],
  12816. upToolImg: "",
  12817. preTime: 0,
  12818. rateList: {
  12819. ca: 0,
  12820. },
  12821. rateParams: [],
  12822. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12823. studyJuri: [
  12824. {
  12825. content: "",
  12826. cover: [],
  12827. upVedio: [],
  12828. upFile: [],
  12829. },
  12830. ],
  12831. isClose: 0,
  12832. plworkFile: [],
  12833. mr: require("../../assets/vedioPic.png"),
  12834. word: require("../../assets/icon/isWord.png"),
  12835. word2: require("../../assets/icon/word2.png"),
  12836. video: require("../../assets/icon/isVideo.png"),
  12837. noLikes: require("../../assets/icon/comment/noLikes.png"),
  12838. likes: require("../../assets/icon/comment/likes.png"),
  12839. scoreImg: require("../../assets/score.png"),
  12840. courseDetail: {},
  12841. reply: "",
  12842. isSelect: false,
  12843. chapInfo: [],
  12844. chapInfoList: [],
  12845. taskCount: 0,
  12846. imgList: [],
  12847. noImgList: [],
  12848. pzList: [],
  12849. timeWorkList: [],
  12850. PlTextList: [
  12851. "Excellent!",
  12852. "nice!",
  12853. "很有创意!",
  12854. "还不错哦~",
  12855. "继续努力哦~",
  12856. ],
  12857. isClickNav: "",
  12858. navId: "",
  12859. playerOptions: {
  12860. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12861. autoplay: false, //如果true,浏览器准备好时开始回放。
  12862. muted: false, // 默认情况下将会消除任何音频。
  12863. loop: false, // 导致视频一结束就重新开始。
  12864. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12865. language: "zh-CN",
  12866. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12867. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12868. sources: [
  12869. {
  12870. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12871. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12872. },
  12873. ],
  12874. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12875. // poster: dataRes.imgUrl, //你的封面地址
  12876. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12877. controlBar: {
  12878. timeDivider: true, //当前时间和持续时间的分隔符
  12879. durationDisplay: true, //显示持续时间
  12880. remainingTimeDisplay: false, //是否显示剩余时间功能
  12881. fullscreenToggle: true, //全屏按钮
  12882. },
  12883. },
  12884. playerOptions1: {
  12885. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12886. autoplay: false, //如果true,浏览器准备好时开始回放。
  12887. muted: false, // 默认情况下将会消除任何音频。
  12888. loop: false, // 导致视频一结束就重新开始。
  12889. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12890. language: "zh-CN",
  12891. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12892. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12893. sources: [
  12894. {
  12895. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12896. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12897. },
  12898. ],
  12899. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12900. // poster: dataRes.imgUrl, //你的封面地址
  12901. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12902. controlBar: {
  12903. timeDivider: true, //当前时间和持续时间的分隔符
  12904. durationDisplay: true, //显示持续时间
  12905. remainingTimeDisplay: false, //是否显示剩余时间功能
  12906. fullscreenToggle: true, //全屏按钮
  12907. },
  12908. },
  12909. playerO: {},
  12910. noneBtnImg: false,
  12911. proVisible: false,
  12912. proVisible2: false,
  12913. progress: 0,
  12914. isFinishSize: 0,
  12915. isAllSize: 0,
  12916. questionAnswer: "",
  12917. answerQ: "", //问答标题
  12918. rateJson: [],
  12919. wbCount: 0,
  12920. wordCount: 0,
  12921. mindCount: 0,
  12922. askCount: 0,
  12923. noteCount: 0,
  12924. mindNetWorkCount: 0,
  12925. libraryCount: 0,
  12926. workCount: 0,
  12927. timeCount: 0,
  12928. answerCount: 0,
  12929. trainCount: 0,
  12930. evalCount: 0,
  12931. dialogImageUrl: "",
  12932. pictureDialog: false,
  12933. toolTypeList: [],
  12934. dialogVisible1: false,
  12935. dialogVisible2: false,
  12936. dialogVisible3: false,
  12937. dialogVisible6: false,
  12938. dialogVisible4: false,
  12939. isNoHomeWork: false,
  12940. dialogVisible5: false,
  12941. dialogVisible5Teacher: false,
  12942. dialogVisibleChoice: false,
  12943. dialogVisibleChoiceTeacher: false,
  12944. answerDialogVisible: false,
  12945. answerDialogVisibleTeacher: false,
  12946. juriVisible: false,
  12947. timeDialogVisible: false,
  12948. replyDialogVisible: false,
  12949. toolDialogVisible: false,
  12950. engDialogVisible: false,
  12951. engUpdateDialogVisible:false,
  12952. engEvaDialogVisible: false,
  12953. evaEngJson: {
  12954. teacherJson: {},
  12955. studentJson: {},
  12956. message: {},
  12957. },
  12958. isNoUserid:false,
  12959. engListLength:0,
  12960. engWid:"",
  12961. newEnglishList:{
  12962. engTitle:"",
  12963. engText:"",
  12964. },
  12965. newEnglishList1:[],
  12966. oldEnglishJson:{},
  12967. oldEnglishJson1:{},
  12968. englishList1:{},
  12969. englishList:{},
  12970. myAnswerList1:{},
  12971. topHeight:0,
  12972. newEngIndex:-1,
  12973. englishToolIndex:0,
  12974. userMes:{},
  12975. englishToolIndex:0,
  12976. replyIndex: 0,
  12977. replyPid: "",
  12978. radio: [],
  12979. isAsk: false,
  12980. askJson: {
  12981. askCount: 1,
  12982. askTitle: "",
  12983. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12984. },
  12985. testJson: {},
  12986. englishList: {},
  12987. topHeight:0,
  12988. checkJson: [],
  12989. askList: [],
  12990. answerList: [],
  12991. navList: [],
  12992. addPzDialog: false,
  12993. pzConText: "",
  12994. worksStudent: [],
  12995. isCloseList: [],
  12996. workStudent: [],
  12997. groupStudent: [],
  12998. groupStudentUid: [],
  12999. noWorksS: [],
  13000. isWorksS: [],
  13001. noWorksStudent: [],
  13002. toolindex: 0,
  13003. toolDetailIndex: null,
  13004. groupIndex: 0,
  13005. workTypeB: false,
  13006. workTypeC: false,
  13007. isAnswer: false,
  13008. isHovered: false,
  13009. isHovered1: false,
  13010. isHovered2: false,
  13011. commentTagShow:0,
  13012. timer: null,
  13013. timer2: null,
  13014. opertimer: null,
  13015. showType: '',
  13016. fileType: 0,
  13017. showPDF: false,
  13018. noteName: "",
  13019. evaJuri: [],
  13020. evalua: "",
  13021. eTitle: "",
  13022. eName: "",
  13023. eJson: {},
  13024. fid: "", //一级
  13025. sid: "", //二级
  13026. tid: "", //二级
  13027. typeMode: 1,
  13028. eJSONNum: 0,
  13029. Etype: 1,
  13030. data: {
  13031. meta: {
  13032. name: "example",
  13033. author: "dd@163.com",
  13034. version: "0.2",
  13035. },
  13036. format: "node_array",
  13037. data: [{ id: "root", isroot: true, topic: "" }],
  13038. },
  13039. fullDialogVisible: false,
  13040. fulltype: "",
  13041. fullUrl: "",
  13042. commentIndexJson: {},
  13043. Stbodywidth: 0,
  13044. ispzType: 0,
  13045. pzType: 1,
  13046. wScore: 0,
  13047. scoreDetail: "",
  13048. videoStart: false,
  13049. recorder: null,
  13050. groupJson: {},
  13051. islock: false,
  13052. groupJson2: {},
  13053. dialogVisibleGroup: false,
  13054. dialogVisibleGroup2: false,
  13055. updateGroupArray: [],
  13056. updateGroupUser: {},
  13057. deleteGroupUser: [],
  13058. deleteGroupArray: {},
  13059. checkChair: "",
  13060. checkDeleteGroup: [],
  13061. inviteCode: "",
  13062. courseGroupStudent: [],
  13063. courseGroupStudentUid: [],
  13064. courseGroup: {},
  13065. isGroup: false,
  13066. toolIndex: null,
  13067. tool: {},
  13068. isWorkTool: [
  13069. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  13070. ], //, 40
  13071. videoJson: {},
  13072. videoType:0,
  13073. toolType: 0,
  13074. checktoolArray: [],
  13075. vChapterData: [],
  13076. isUpdateToolDetail: false,
  13077. isUpdateToolDetail1: false,
  13078. updateToolDetailInner: "",
  13079. checkboxList: [],
  13080. plIndex: "",
  13081. worksSName2: "",
  13082. worksSid: "",
  13083. wordCloudData: [],
  13084. isPickStudent: [],
  13085. pzStype: 1,
  13086. myAnList: {},
  13087. downLoading: false,
  13088. greyType: false,
  13089. correctWord: [],
  13090. EnglishVoiceDialog: false,
  13091. englishVoiceJson: {},
  13092. englishVoiceJsonWork:[],
  13093. scoreList:{
  13094. listdata:[],
  13095. isScoreList:[],
  13096. },
  13097. classRoomHelperWidth: '85px',
  13098. orgArray:[],
  13099. oidArray:[],
  13100. splitScreenData:{
  13101. isOpen:false,
  13102. userId:"",
  13103. uid:"",
  13104. myUid:"",
  13105. loading:false,
  13106. behavior:null,
  13107. },
  13108. confirmOpenDig:false,
  13109. confirmOpenDigData:'',
  13110. diffKey:"1",
  13111. getCourseGroupLoading: false,
  13112. selectSWorksLoading:false,
  13113. selectStudentLoading:false,
  13114. selectSLookLoading:false,
  13115. getPickLoading:false,
  13116. selectPzLoading:false,
  13117. getSplitScreenDataLoading:false,
  13118. };
  13119. },
  13120. methods: {
  13121. // 获取学校或组织随机码
  13122. getCode2(){
  13123. let params = {
  13124. oid: this.oid,
  13125. org: this.org
  13126. };
  13127. this.ajax
  13128. .get(this.$store.state.api + "getCode2", params)
  13129. .then(res => {
  13130. this.Code2 = res.data[0][0].code2
  13131. })
  13132. .catch(err => {
  13133. console.error(err);
  13134. });
  13135. },
  13136. //查看应用中心作业
  13137. openCocoFlow(w){
  13138. this.$refs.cocoFlowDiaRef.openAppWork(w)
  13139. },
  13140. getAIJ(){
  13141. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  13142. let oid = res.data[0];
  13143. let org = res.data[1];
  13144. let oidArray = [];
  13145. let orgArray = [];
  13146. oid.forEach(i=>oidArray.push(i.oid))
  13147. org.forEach(i=>orgArray.push(i.oid))
  13148. this.orgArray = orgArray;
  13149. this.oidArray = oidArray;
  13150. })
  13151. },
  13152. insertMemorandum(_html){//保存行为操作
  13153. //variable
  13154. //btn
  13155. let params = [{
  13156. uid:this.userid,
  13157. courseId:this.id+(this.tcid2?this.tcid2:''),
  13158. content:_html
  13159. }]
  13160. console.log(params)
  13161. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  13162. if(res.data==1){
  13163. console.log('保存操作成功')
  13164. }else{
  13165. console.log('保存操作失败')
  13166. }
  13167. }).catch(e=>{
  13168. console.log('保存操作失败')
  13169. console.log(e)
  13170. })
  13171. },
  13172. gx(){
  13173. this.$forceUpdate();
  13174. },
  13175. isUpdateCorrect(t,p){
  13176. if(this.greyType == false){
  13177. this.isUpdateText = t;
  13178. this.greyType = true;
  13179. }else{
  13180. if(p == 1){
  13181. this.newEnglishList.engText = this.isUpdateText;
  13182. }else if(p == 2){
  13183. this.oldEnglishJson1.engText = this.isUpdateText;
  13184. }else if(p == 3){
  13185. this.newEnglishList.engText = this.isUpdateText;
  13186. }else{
  13187. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  13188. }
  13189. this.greyType = false
  13190. }
  13191. },
  13192. aiCorrect(t,p){
  13193. let aiText = "";
  13194. const loading = this.$loading.service({
  13195. background: "rgba(255, 255, 255)",
  13196. target: document.querySelectorAll(".loadingText")[0],
  13197. });
  13198. let param = {
  13199. model: "gpt-3.5-turbo",
  13200. temperature: 0,
  13201. max_tokens: 2048,
  13202. top_p: 1,
  13203. frequency_penalty: 0,
  13204. presence_penalty: 0,
  13205. messages: [
  13206. {
  13207. role: "user",
  13208. content:
  13209. `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  13210. },
  13211. ],
  13212. uid: this.userid,
  13213. stream: false,
  13214. };
  13215. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  13216. (res) => {
  13217. if (
  13218. res.data.FunctionResponse &&
  13219. res.data.FunctionResponse.result &&
  13220. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  13221. ) {
  13222. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  13223. return;
  13224. }
  13225. aiText =
  13226. res.data.FunctionResponse.choices[0].message.content;
  13227. aiText = aiText.replace(/%/g,"%25");
  13228. // let w = "";
  13229. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  13230. // for(var k = 0;k<a.length;k++){
  13231. // //diffWordsWithSpace
  13232. // if(a.length > 1){
  13233. // if(a[k].added == true){
  13234. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  13235. // }else if(a[k].removed == true){
  13236. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  13237. // }else{
  13238. // w += '<span>' + a[k].value + '</span>';
  13239. // }
  13240. // }else{
  13241. // if(p == 1){
  13242. // w = this.newEnglishList.engText;
  13243. // }else if(p == 2){
  13244. // w = this.oldEnglishJson1.engText;
  13245. // }else if(p == 3){
  13246. // w = this.newEnglishList.engText;
  13247. // }else{
  13248. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  13249. // }
  13250. // }
  13251. // }
  13252. if(p == 1){
  13253. this.newEnglishList.engText = aiText;
  13254. }else if(p == 2){
  13255. this.oldEnglishJson1.engText = aiText;
  13256. }else if(p == 3){
  13257. this.newEnglishList.engText = aiText;
  13258. }else{
  13259. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  13260. }
  13261. loading.close();
  13262. },
  13263. (err) => {
  13264. console.log(err);
  13265. loading.close();
  13266. }
  13267. );
  13268. },
  13269. addToolChoose() {
  13270. if (!this.checktoolArray.length) {
  13271. this.$message.error("请选择要添加的任务");
  13272. return;
  13273. }
  13274. if (
  13275. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13276. this.taskCount
  13277. ].toolChoose[0].tool.length
  13278. ) {
  13279. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13280. this.taskCount
  13281. ].toolChoose[0].tool = this.checktoolArray;
  13282. } else {
  13283. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13284. this.taskCount
  13285. ].toolChoose.push({
  13286. tool: this.checktoolArray,
  13287. toolDetail: "",
  13288. toolType: 0,
  13289. askCount: 1,
  13290. askTitle: "",
  13291. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13292. });
  13293. }
  13294. let params = [
  13295. {
  13296. cid: this.id,
  13297. chapters: JSON.stringify(this.chapInfoList),
  13298. uid: this.userid,
  13299. unitIndex: this.courseType,
  13300. },
  13301. ];
  13302. this.ajax
  13303. .post(this.$store.state.api + "updateWorkNew4", params)
  13304. .then((res) => {
  13305. this.$message({
  13306. message: "添加成功",
  13307. type: "success",
  13308. });
  13309. this.checktoolArray = [];
  13310. this.getCourseDetail(2);
  13311. this.checkBz(
  13312. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13313. this.taskCount
  13314. ].toolChoose.length - 1
  13315. );
  13316. this.toolDialogVisible = false;
  13317. this.refreshCourse();
  13318. this.$forceUpdate();
  13319. })
  13320. .catch((err) => {
  13321. console.error(err);
  13322. });
  13323. },
  13324. checkBz(index) {
  13325. this.isUpdateToolDetail = false;
  13326. this.$forceUpdate();
  13327. setTimeout(() => {
  13328. document.scrollingElement.scrollTop =
  13329. document.querySelectorAll(".filebox")[index].offsetTop +
  13330. document.querySelector(".student_body").offsetTop;
  13331. }, 500);
  13332. },
  13333. updateToolDetail(i, type) {
  13334. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  13335. this.toolDetailIndex = i
  13336. this.isUpdateToolDetail1 = true;
  13337. setTimeout(() => {
  13338. this.updateToolDetailInner = JSON.parse(
  13339. JSON.stringify(
  13340. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13341. this.taskCount
  13342. ].toolChoose[i].toolDetail
  13343. )
  13344. );
  13345. document.querySelector(".checkTextArea").focus();
  13346. }, 0);
  13347. } else if((this.isUpdateToolDetail1 && type != 2)){
  13348. // this.toolDetailIndex = i;
  13349. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13350. this.taskCount
  13351. ].toolChoose[i].toolDetail = JSON.parse(
  13352. JSON.stringify(this.updateToolDetailInner)
  13353. );
  13354. let params = [
  13355. {
  13356. cid: this.id,
  13357. chapters: JSON.stringify(this.chapInfoList),
  13358. uid: this.userid,
  13359. unitIndex: this.courseType,
  13360. },
  13361. ];
  13362. this.ajax
  13363. .post(this.$store.state.api + "updateWorkNew4", params)
  13364. .then((res) => {
  13365. this.isUpdateToolDetail1 = false;
  13366. this.$message({
  13367. message: "修改成功",
  13368. type: "success",
  13369. });
  13370. this.toolDetailIndex = null;
  13371. this.updateToolDetailInner = "";
  13372. this.getCourseDetail(2);
  13373. this.$forceUpdate();
  13374. })
  13375. .catch((err) => {
  13376. console.error(err);
  13377. });
  13378. } else if((this.isUpdateToolDetail1 && type == 2)){
  13379. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13380. this.taskCount
  13381. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  13382. JSON.stringify(this.updateToolDetailInner)
  13383. );
  13384. let params = [
  13385. {
  13386. cid: this.id,
  13387. chapters: JSON.stringify(this.chapInfoList),
  13388. uid: this.userid,
  13389. unitIndex: this.courseType,
  13390. },
  13391. ];
  13392. this.ajax
  13393. .post(this.$store.state.api + "updateWorkNew4", params)
  13394. .then((res) => {
  13395. this.$message({
  13396. message: "修改成功",
  13397. type: "success",
  13398. });
  13399. this.toolDetailIndex = i;
  13400. this.isUpdateToolDetail1 = true;
  13401. setTimeout(() => {
  13402. this.updateToolDetailInner = JSON.parse(
  13403. JSON.stringify(
  13404. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13405. this.taskCount
  13406. ].toolChoose[i].toolDetail
  13407. )
  13408. );
  13409. document.querySelector(".checkTextArea").focus();
  13410. }, 0);
  13411. this.getCourseDetail(2);
  13412. this.$forceUpdate();
  13413. })
  13414. .catch((err) => {
  13415. console.error(err);
  13416. });
  13417. }
  13418. },
  13419. jumpGj(i, j, k, l) {
  13420. for (var z = 0; z < this.navList.length; z++) {
  13421. for (var q = 0; q < this.navList[z].task.length; q++) {
  13422. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  13423. this.navList[z].task[q].tool[w].isTool = false;
  13424. }
  13425. }
  13426. }
  13427. console.log(this.navList);
  13428. this.navList[i].task[j].tool[k].isTool =
  13429. !this.navList[i].task[j].tool[k].isTool;
  13430. var a = document.scrollingElement;
  13431. let target = document.querySelector(`#gj${k}`);
  13432. if (target) {
  13433. // target.scrollIntoView(true);
  13434. // setTimeout(() => {
  13435. // a.scrollTop = a.scrollTop - 150;
  13436. // }, 0);
  13437. target.scrollIntoView();
  13438. setTimeout(()=>{
  13439. let scrollBody = document.querySelector('.body_student').parentElement
  13440. scrollBody.scrollTop = scrollBody.scrollTop - 100
  13441. }, 0);
  13442. }
  13443. this.navId = ""
  13444. let flag = this.courseType == i;
  13445. let flag2 = this.taskCount == j
  13446. if (l) {
  13447. this.courseType = i;
  13448. // this.navId = l;
  13449. this.taskCount = j;
  13450. this.selectPz();
  13451. this.getHomeWork();
  13452. this.getCourseDetail(2);
  13453. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  13454. if(flag){
  13455. if(flag2){
  13456. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  13457. }else{
  13458. 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>`)
  13459. }
  13460. }else{
  13461. 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>`)
  13462. }
  13463. }
  13464. if ((this.courseDetail.userid == this.userid ||
  13465. (this.courseDetail.course_teacher &&
  13466. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) &&
  13467. this.IsFollow) {
  13468. this.setCTask();
  13469. }
  13470. // var b = this.$refs["bz" + k][0];
  13471. // a.scrollTop = b.offsetTop;
  13472. },
  13473. addTools2(i) {
  13474. if (i == 4) {
  13475. // this.openTools2(4);
  13476. this.$message.error("暂未开放");
  13477. return;
  13478. }
  13479. if (i == 45) {
  13480. // this.openTools2(45);
  13481. this.$message.error("暂未开放");
  13482. return;
  13483. }
  13484. if (i == 47) {
  13485. // this.openTools2(47);
  13486. this.$message.error("暂未开放");
  13487. return;
  13488. }
  13489. if (i == 49) {
  13490. // this.openTools2(49);
  13491. this.$message.error("暂未开放");
  13492. return;
  13493. }
  13494. if (i == 62) {
  13495. // this.openTools(itemTaskIndex, 62, toolIndex);
  13496. this.$message.error("暂未开放");
  13497. return;
  13498. }
  13499. if (i == 15) {
  13500. // this.openTools(itemTaskIndex, 15, toolIndex);
  13501. this.$message.error("暂未开放");
  13502. return;
  13503. }
  13504. if (i == 40) {
  13505. // this.openTools(itemTaskIndex, 40, toolIndex);
  13506. this.$message.error("暂未开放");
  13507. return;
  13508. }
  13509. if (i == 41) {
  13510. // this.openTools(itemTaskIndex, 41, toolIndex);
  13511. this.$message.error("暂未开放");
  13512. return;
  13513. }
  13514. if (i == 42) {
  13515. // this.openTools(itemTaskIndex, 42, toolIndex);
  13516. this.$message.error("暂未开放");
  13517. return;
  13518. }
  13519. if (this.checktoolArray.length > 0) {
  13520. if (this.checktoolArray.indexOf(i) != -1) {
  13521. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  13522. } else {
  13523. this.checktoolArray = [];
  13524. this.checktoolArray.push(i);
  13525. }
  13526. } else {
  13527. this.checktoolArray.push(i);
  13528. }
  13529. this.$forceUpdate();
  13530. },
  13531. jump() {
  13532. window.topU.postMessage({ tools: "43" }, "*");
  13533. },
  13534. getUpdateMore(f, checkboxList, searchTN, index) {
  13535. this.dialogVisibleMember = f;
  13536. this.checkboxList = checkboxList;
  13537. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  13538. this.plIndex = index;
  13539. },
  13540. setPlname(a) {
  13541. if (this.plworkFile.length) {
  13542. this.plworkFile[this.plIndex].username = a;
  13543. } else {
  13544. this.worksSName = a;
  13545. }
  13546. this.dialogVisibleMember = false;
  13547. },
  13548. previewImg(url,w) {
  13549. this.$hevueImgPreview(url);
  13550. if(w){
  13551. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  13552. }
  13553. },
  13554. checkImg(list) {
  13555. if (!list.length) {
  13556. return;
  13557. }
  13558. this.$hevueImgPreview({
  13559. multiple: true, // 开启多图预览模式
  13560. imgList: list, // 需要预览的多图数组
  13561. });
  13562. },
  13563. change(val) {
  13564. console.log(val);
  13565. },
  13566. goTo(path) {
  13567. this.$router.push(path);
  13568. },
  13569. handlePictureCardPreview(url) {
  13570. this.dialogImageUrl = url;
  13571. this.pictureDialog = true;
  13572. },
  13573. clean(type) {
  13574. if (type == 1) {
  13575. this.studyJuri[0].cover.splice(0, 1);
  13576. } else if (type == 2) {
  13577. this.studyJuri[0].upVedio.splice(0, 1);
  13578. } else {
  13579. this.studyJuri[0].upFile.splice(0, 1);
  13580. }
  13581. },
  13582. clean2(index) {
  13583. this.plworkFile.splice(index, 1);
  13584. },
  13585. handleClose(done) {
  13586. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  13587. this.videoDetail.sources[0].src = "";
  13588. }
  13589. this.commentIndexJson = {};
  13590. this.changeSplitScreenBehavior({code:99})
  13591. done();
  13592. },
  13593. fullTools() {
  13594. this.full = !this.full;
  13595. },
  13596. imgChange(file, fileList, type) {
  13597. if (type == 1) {
  13598. var _tmp = this.studyJuri[0].cover;
  13599. } else if (type == 2) {
  13600. var _tmp = this.studyJuri[0].upVedio;
  13601. } else {
  13602. var _tmp = this.studyJuri[0].upFile;
  13603. }
  13604. this.noneBtnImg = _tmp.length >= 1;
  13605. },
  13606. setContent(bool) {
  13607. this.contentDialog = bool;
  13608. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  13609. document.querySelector(".workd_media").style.height = "650px";
  13610. } else if (document.querySelector(".workd_media")) {
  13611. document.querySelector(".workd_media").style.height = "auto";
  13612. }
  13613. },
  13614. setContent2(bool) {
  13615. this.mlDialog = bool;
  13616. if (
  13617. bool &&
  13618. this.contentDialog &&
  13619. document.querySelector(".workd_media")
  13620. ) {
  13621. document.querySelector(".workd_media").style.height = "650px";
  13622. } else if (document.querySelector(".workd_media")) {
  13623. document.querySelector(".workd_media").style.height = "auto";
  13624. }
  13625. },
  13626. openToolAll() {
  13627. this.toolDialogVisible = true;
  13628. },
  13629. addImg(e) {
  13630. var el = e.currentTarget;
  13631. // this.$message.success('触发上传')
  13632. el.getElementsByTagName("input")[0].click();
  13633. e.target.value = "";
  13634. },
  13635. addSelectAnswer() {
  13636. let params = [
  13637. {
  13638. uid: this.userid,
  13639. cid: this.id,
  13640. stage: this.courseType,
  13641. task: this.taskCount,
  13642. tool: this.toolindex,
  13643. content: this.selectAnswer.answer,
  13644. type: 7,
  13645. },
  13646. ];
  13647. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13648. this.homeWorkLoading = true
  13649. this.ajax
  13650. .post(this.$store.state.api + "addCourseWorks", params)
  13651. .then((res) => {
  13652. this.$message({
  13653. message: "提交成功",
  13654. type: "success",
  13655. });
  13656. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, "success")
  13657. setTimeout(() => {
  13658. this.homeWorkLoading = false
  13659. }, 500);
  13660. this.dialogVisibleSelect = false;
  13661. // this.selectAnswer = {};
  13662. this.selectSWorks();
  13663. this.selectStudent();
  13664. })
  13665. .catch((err) => {
  13666. this.$message.error("提交失败");
  13667. console.error(err);
  13668. setTimeout(() => {
  13669. this.homeWorkLoading = false
  13670. }, 500);
  13671. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, err)
  13672. });
  13673. },
  13674. addSelectAnswerTeacher() {
  13675. let params = [
  13676. {
  13677. uid: this.sStudent.userid,
  13678. cid: this.id,
  13679. stage: this.courseType,
  13680. task: this.taskCount,
  13681. tool: this.toolindex,
  13682. content: this.selectAnswer.answer,
  13683. type: 7,
  13684. },
  13685. ];
  13686. this.ajax
  13687. .post(this.$store.state.api + "addCourseWorks", params)
  13688. .then((res) => {
  13689. this.$message({
  13690. message: "提交成功",
  13691. type: "success",
  13692. });
  13693. this.dialogVisibleSelectTeacher = false;
  13694. // this.selectAnswer = {};
  13695. this.selectSWorks();
  13696. this.selectStudent();
  13697. })
  13698. .catch((err) => {
  13699. this.$message.error("提交失败");
  13700. console.error(err);
  13701. });
  13702. },
  13703. addSenWorks() {
  13704. for (var i = 0; i < this.sentenceList.length; i++) {
  13705. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13706. if (
  13707. this.sentenceList[i].chooseSenList[j] == undefined ||
  13708. this.sentenceList[i].chooseSenList[j] == ""
  13709. ) {
  13710. this.$message.error("请将答案填写完整!");
  13711. return;
  13712. }
  13713. }
  13714. }
  13715. let params = [
  13716. {
  13717. uid: this.userid,
  13718. cid: this.id,
  13719. stage: this.courseType,
  13720. task: this.taskCount,
  13721. tool: this.toolindex,
  13722. content: JSON.stringify(this.sentenceList),
  13723. type: 9,
  13724. },
  13725. ];
  13726. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13727. this.homeWorkLoading = true
  13728. this.ajax
  13729. .post(this.$store.state.api + "addCourseWorks", params)
  13730. .then((res) => {
  13731. this.$message({
  13732. message: "提交成功",
  13733. type: "success",
  13734. });
  13735. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, "success")
  13736. setTimeout(() => {
  13737. this.homeWorkLoading = false
  13738. }, 500);
  13739. this.dialogVisibleSentence = false;
  13740. // this.selectAnswer = {};
  13741. this.selectSWorks();
  13742. this.selectStudent();
  13743. })
  13744. .catch((err) => {
  13745. this.$message.error("提交失败");
  13746. console.error(err);
  13747. setTimeout(() => {
  13748. this.homeWorkLoading = false
  13749. }, 500);
  13750. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, err)
  13751. });
  13752. },
  13753. addSenWorksTeacher() {
  13754. for (var i = 0; i < this.sentenceList.length; i++) {
  13755. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13756. if (
  13757. this.sentenceList[i].chooseSenList[j] == undefined ||
  13758. this.sentenceList[i].chooseSenList[j] == ""
  13759. ) {
  13760. this.$message.error("请将答案填写完整!");
  13761. return;
  13762. }
  13763. }
  13764. }
  13765. let params = [
  13766. {
  13767. uid: this.sStudent.userid,
  13768. cid: this.id,
  13769. stage: this.courseType,
  13770. task: this.taskCount,
  13771. tool: this.toolindex,
  13772. content: JSON.stringify(this.sentenceList),
  13773. type: 9,
  13774. },
  13775. ];
  13776. this.ajax
  13777. .post(this.$store.state.api + "addCourseWorks", params)
  13778. .then((res) => {
  13779. this.$message({
  13780. message: "提交成功",
  13781. type: "success",
  13782. });
  13783. this.dialogVisibleSentenceTeacher = false;
  13784. // this.selectAnswer = {};
  13785. this.selectSWorks();
  13786. this.selectStudent();
  13787. })
  13788. .catch((err) => {
  13789. this.$message.error("提交失败");
  13790. console.error(err);
  13791. });
  13792. },
  13793. returnTableText() {
  13794. this.$confirm("确定还原此模板吗?", "提示", {
  13795. confirmButtonText: "确定",
  13796. cancelButtonText: "取消",
  13797. type: "warning",
  13798. })
  13799. .then(() => {
  13800. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13801. })
  13802. .catch(() => {});
  13803. },
  13804. addTableWorks() {
  13805. let params = [
  13806. {
  13807. uid: this.userid,
  13808. cid: this.id,
  13809. stage: this.courseType,
  13810. task: this.taskCount,
  13811. tool: this.toolindex,
  13812. content: JSON.stringify(this.tableJson),
  13813. type: 10,
  13814. },
  13815. ];
  13816. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13817. this.homeWorkLoading = true
  13818. this.ajax
  13819. .post(this.$store.state.api + "addCourseWorks", params)
  13820. .then((res) => {
  13821. this.$message({
  13822. message: "提交成功",
  13823. type: "success",
  13824. });
  13825. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, "success")
  13826. setTimeout(() => {
  13827. this.homeWorkLoading = false
  13828. }, 500);
  13829. this.dialogVisibleTable = false;
  13830. // this.selectAnswer = {};
  13831. this.selectSWorks();
  13832. this.selectStudent();
  13833. })
  13834. .catch((err) => {
  13835. this.$message.error("提交失败");
  13836. console.error(err);
  13837. setTimeout(() => {
  13838. this.homeWorkLoading = false
  13839. }, 500);
  13840. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, err)
  13841. });
  13842. },
  13843. tableRowClassName({ row, rowIndex }) {
  13844. if ((rowIndex + 1) % 2 === 0) {
  13845. return "even_row";
  13846. } else {
  13847. return "";
  13848. }
  13849. },
  13850. addTableWorksTeacher() {
  13851. let params = [
  13852. {
  13853. uid: this.sStudent.userid,
  13854. cid: this.id,
  13855. stage: this.courseType,
  13856. task: this.taskCount,
  13857. tool: this.toolindex,
  13858. content: JSON.stringify(this.tableJson),
  13859. type: 10,
  13860. },
  13861. ];
  13862. this.ajax
  13863. .post(this.$store.state.api + "addCourseWorks", params)
  13864. .then((res) => {
  13865. this.$message({
  13866. message: "提交成功",
  13867. type: "success",
  13868. });
  13869. this.dialogVisibleTableTeacher = false;
  13870. // this.selectAnswer = {};
  13871. this.selectSWorks();
  13872. this.selectStudent();
  13873. })
  13874. .catch((err) => {
  13875. this.$message.error("提交失败");
  13876. console.error(err);
  13877. });
  13878. },
  13879. returnWordText() {
  13880. this.$confirm("确定还原此模板吗?", "提示", {
  13881. confirmButtonText: "确定",
  13882. cancelButtonText: "取消",
  13883. type: "warning",
  13884. })
  13885. .then(() => {
  13886. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13887. })
  13888. .catch(() => {});
  13889. },
  13890. addWordWorks() {
  13891. let params = [
  13892. {
  13893. uid: this.userid,
  13894. cid: this.id,
  13895. stage: this.courseType,
  13896. task: this.taskCount,
  13897. tool: this.toolindex,
  13898. content: JSON.stringify(this.wordJson),
  13899. type: 13,
  13900. atool: 52,
  13901. },
  13902. ];
  13903. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13904. this.homeWorkLoading = true
  13905. this.ajax
  13906. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13907. .then((res) => {
  13908. this.$message({
  13909. message: "提交成功",
  13910. type: "success",
  13911. });
  13912. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, "success")
  13913. setTimeout(() => {
  13914. this.homeWorkLoading = false
  13915. }, 500);
  13916. this.dialogVisibleWord = false;
  13917. // this.selectAnswer = {};
  13918. this.selectSWorks();
  13919. this.selectStudent();
  13920. })
  13921. .catch((err) => {
  13922. this.$message.error("提交失败");
  13923. console.error(err);
  13924. setTimeout(() => {
  13925. this.homeWorkLoading = false
  13926. }, 500);
  13927. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, err)
  13928. });
  13929. },
  13930. addWordWorksTeacher() {
  13931. let params = [
  13932. {
  13933. uid: this.sStudent.userid,
  13934. cid: this.id,
  13935. stage: this.courseType,
  13936. task: this.taskCount,
  13937. tool: this.toolindex,
  13938. content: JSON.stringify(this.wordJson),
  13939. type: 13,
  13940. atool: 52,
  13941. },
  13942. ];
  13943. this.ajax
  13944. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13945. .then((res) => {
  13946. this.$message({
  13947. message: "提交成功",
  13948. type: "success",
  13949. });
  13950. this.dialogVisibleWordTeacher = false;
  13951. // this.selectAnswer = {};
  13952. this.selectSWorks();
  13953. this.selectStudent();
  13954. })
  13955. .catch((err) => {
  13956. this.$message.error("提交失败");
  13957. console.error(err);
  13958. });
  13959. },
  13960. addCourseWorks(i) {
  13961. var typesql;
  13962. if (this.fileType === 0) {
  13963. typesql = 1;
  13964. } else if (this.fileType === 1) {
  13965. typesql = 4;
  13966. } else if (this.fileType === 2) {
  13967. typesql = 5;
  13968. } else if (this.fileType === 3) {
  13969. typesql = 12;
  13970. }
  13971. if (!this.studyJuri[0].cover[0].url) {
  13972. this.$message.error("请上传文件");
  13973. return;
  13974. }
  13975. let params = [
  13976. {
  13977. uid: this.userid,
  13978. cid: this.id,
  13979. stage: this.courseType,
  13980. task: i,
  13981. tool: this.toolindex,
  13982. content: this.studyJuri[0].cover[0].url,
  13983. type: typesql,
  13984. },
  13985. ];
  13986. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13987. this.homeWorkLoading = true
  13988. this.ajax
  13989. .post(this.$store.state.api + "addCourseWorksR", params)
  13990. .then((res) => {
  13991. this.$message({
  13992. message: "提交成功",
  13993. type: "success",
  13994. });
  13995. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, "success")
  13996. setTimeout(() => {
  13997. this.homeWorkLoading = false
  13998. }, 500);
  13999. this.studyJuri[0].cover = [];
  14000. this.dialogVisible = false;
  14001. this.getCourseDetail(2);
  14002. })
  14003. .catch((err) => {
  14004. this.$message.error("提交失败");
  14005. console.error(err);
  14006. setTimeout(() => {
  14007. this.homeWorkLoading = false
  14008. }, 500);
  14009. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, err)
  14010. });
  14011. },
  14012. addCourseWorksPl(i) {
  14013. let _files = this.plworkFile;
  14014. var c = 1;
  14015. for (var k = 0; k < _files.length; k++) {
  14016. if (!_files[k].username) {
  14017. c = 2;
  14018. }
  14019. }
  14020. if (c == 2) {
  14021. this.$message.error("请填写学生姓名");
  14022. return;
  14023. }
  14024. let params = [
  14025. {
  14026. ateacher: this.userid,
  14027. cid: this.id,
  14028. stage: this.courseType,
  14029. task: i,
  14030. tool: this.toolindex,
  14031. content: JSON.stringify(_files),
  14032. },
  14033. ];
  14034. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  14035. this.homeWorkLoading = true
  14036. this.ajax
  14037. .post(this.$store.state.api + "addCourseWorksPl", params)
  14038. .then((res) => {
  14039. this.$message({
  14040. message: "提交成功",
  14041. type: "success",
  14042. });
  14043. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, "success")
  14044. setTimeout(() => {
  14045. this.homeWorkLoading = false
  14046. }, 500);
  14047. this.plworkFile = [];
  14048. this.dialogVisiblePl = false;
  14049. this.getCourseDetail(2);
  14050. })
  14051. .catch((err) => {
  14052. this.$message.error("提交失败");
  14053. console.error(err);
  14054. setTimeout(() => {
  14055. this.homeWorkLoading = false
  14056. }, 500);
  14057. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, err)
  14058. });
  14059. },
  14060. addCourseWorks2(i) {
  14061. var typesql;
  14062. if (this.fileType === 0) {
  14063. typesql = 0;
  14064. } else if (this.fileType === 1) {
  14065. typesql = 1;
  14066. } else if (this.fileType === 2) {
  14067. typesql = 3;
  14068. } else if (this.fileType === 3) {
  14069. typesql = 12;
  14070. }
  14071. if (!this.studyJuri[0].cover[0].url) {
  14072. this.$message.error("请上传文件");
  14073. return;
  14074. }
  14075. let params = [
  14076. {
  14077. uid: this.userid,
  14078. cid: this.id,
  14079. stage: this.courseType,
  14080. task: i,
  14081. tool: this.toolindex,
  14082. content: JSON.stringify({
  14083. type: typesql,
  14084. groupIndex: this.groupIndex,
  14085. url: this.studyJuri[0].cover[0].url,
  14086. }),
  14087. type: 11,
  14088. atool: 49,
  14089. text: "",
  14090. },
  14091. ];
  14092. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  14093. this.homeWorkLoading = true
  14094. this.ajax
  14095. .post(this.$store.state.api + "addCourseWorks5", params)
  14096. .then((res) => {
  14097. this.$message({
  14098. message: "提交成功",
  14099. type: "success",
  14100. });
  14101. setTimeout(() => {
  14102. this.homeWorkLoading = false
  14103. }, 500);
  14104. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  14105. type: typesql,
  14106. groupIndex: this.groupIndex,
  14107. url: this.studyJuri[0].cover[0].url,
  14108. }),type: "course_tool_sub" }, "success")
  14109. this.studyJuri[0].cover = [];
  14110. this.dialogVisibleGroupWork = false;
  14111. this.getCourseDetail(2);
  14112. })
  14113. .catch((err) => {
  14114. this.$message.error("提交失败");
  14115. console.error(err);
  14116. setTimeout(() => {
  14117. this.homeWorkLoading = false
  14118. }, 500);
  14119. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  14120. type: typesql,
  14121. groupIndex: this.groupIndex,
  14122. url: this.studyJuri[0].cover[0].url,
  14123. }),type: "course_tool_sub" }, err)
  14124. });
  14125. },
  14126. addEnglishWork() {
  14127. this.myAnList = this.$refs['engJson'].myAnswerList;
  14128. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  14129. this.$message.error("请输入作文标题和正文!");
  14130. return;
  14131. }
  14132. let params = [
  14133. {
  14134. uid: this.userid,
  14135. cid: this.id,
  14136. stage: this.courseType,
  14137. task: this.taskCount,
  14138. tool: this.englishToolIndex,
  14139. content: JSON.stringify(this.myAnList),
  14140. type: 16,
  14141. atool: 69,
  14142. text: "",
  14143. },
  14144. ];
  14145. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  14146. this.homeWorkLoading = true
  14147. this.ajax
  14148. .post(this.$store.state.api + "addCourseWorks5", params)
  14149. .then((res) => {
  14150. this.$message({
  14151. message: "提交成功",
  14152. type: "success",
  14153. });
  14154. setTimeout(() => {
  14155. this.homeWorkLoading = false
  14156. }, 500);
  14157. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  14158. data: JSON.stringify(this.myAnList),
  14159. type: "course_tool_sub" }, "success")
  14160. this.myAnList = {};
  14161. this.englishList = {};
  14162. this.englishToolIndex = 0;
  14163. this.engDialogVisible = false;
  14164. this.selectSWorks();
  14165. this.selectStudent();
  14166. })
  14167. .catch((err) => {
  14168. this.$message.error("提交失败");
  14169. console.error(err);
  14170. setTimeout(() => {
  14171. this.homeWorkLoading = false
  14172. }, 500);
  14173. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  14174. data: JSON.stringify(this.myAnList),
  14175. type: "course_tool_sub" }, err)
  14176. });
  14177. },
  14178. addCourseWorksGong(i, data, tool) {
  14179. let params = [
  14180. {
  14181. uid: this.userid,
  14182. cid: this.id,
  14183. stage: this.courseType,
  14184. task: this.taskCount,
  14185. tool: i,
  14186. content: data,
  14187. type: 12,
  14188. atool: tool,
  14189. text: "",
  14190. },
  14191. ];
  14192. this.ajax
  14193. .post(this.$store.state.api + "addCourseWorks5", params)
  14194. .then((res) => {
  14195. this.$message({
  14196. message: "提交成功",
  14197. type: "success",
  14198. });
  14199. this.studyJuri[0].cover = [];
  14200. this.selectSWorks();
  14201. this.selectStudent();
  14202. })
  14203. .catch((err) => {
  14204. this.$message.error("提交失败");
  14205. console.error(err);
  14206. });
  14207. },
  14208. addCourseWorksGongTeacher(i, data, tool) {
  14209. let params = [
  14210. {
  14211. uid: this.sStudent.userid,
  14212. cid: this.id,
  14213. stage: this.courseType,
  14214. task: this.taskCount,
  14215. tool: i,
  14216. content: data,
  14217. type: 12,
  14218. atool: tool,
  14219. text: "",
  14220. },
  14221. ];
  14222. this.ajax
  14223. .post(this.$store.state.api + "addCourseWorks5", params)
  14224. .then((res) => {
  14225. this.$message({
  14226. message: "提交成功",
  14227. type: "success",
  14228. });
  14229. this.studyJuri[0].cover = [];
  14230. this.dialogVisibleWorks = false;
  14231. this.selectSWorks();
  14232. this.selectStudent();
  14233. })
  14234. .catch((err) => {
  14235. this.$message.error("提交失败");
  14236. console.error(err);
  14237. });
  14238. },
  14239. addCourseWorksGongPl(i, data, tool, type) {
  14240. let params = [
  14241. {
  14242. uid: this.sStudent.userid,
  14243. cid: this.id,
  14244. stage: this.courseType,
  14245. task: this.taskCount,
  14246. tool: i,
  14247. content: data,
  14248. type: type,
  14249. atool: tool,
  14250. text: "",
  14251. },
  14252. ];
  14253. this.ajax
  14254. .post(this.$store.state.api + "addCourseWorks5", params)
  14255. .then((res) => {
  14256. this.$message({
  14257. message: "提交成功",
  14258. type: "success",
  14259. });
  14260. this.studyJuri[0].cover = [];
  14261. this.dialogVisibleWorks = false;
  14262. this.selectSWorks();
  14263. this.selectStudent();
  14264. })
  14265. .catch((err) => {
  14266. this.$message.error("提交失败");
  14267. console.error(err);
  14268. });
  14269. },
  14270. addCourseWorksTeacher(i) {
  14271. var typesql;
  14272. if (this.sTool == 32) {
  14273. this.addCourseWorksGongTeacher(
  14274. this.toolindex,
  14275. this.studyJuri[0].cover[0].url,
  14276. this.sTool
  14277. );
  14278. return;
  14279. }
  14280. if (this.fileType === 0) {
  14281. typesql = 1;
  14282. } else if (this.fileType === 1) {
  14283. typesql = 4;
  14284. } else if (this.fileType === 2) {
  14285. typesql = 5;
  14286. } else if (this.fileType === 3) {
  14287. typesql = 12;
  14288. }
  14289. if (this.sTool == 50) {
  14290. this.addCourseWorksGongPl(
  14291. this.toolindex,
  14292. this.studyJuri[0].cover[0].url,
  14293. this.sTool,
  14294. typesql
  14295. );
  14296. return;
  14297. }
  14298. if (!this.studyJuri[0].cover[0].url) {
  14299. this.$message.error("请上传文件");
  14300. return;
  14301. }
  14302. let params = [
  14303. {
  14304. uid: this.sStudent.userid,
  14305. cid: this.id,
  14306. stage: this.courseType,
  14307. task: i,
  14308. tool: this.toolindex,
  14309. content: this.studyJuri[0].cover[0].url,
  14310. type: typesql,
  14311. ateacher: this.userid,
  14312. },
  14313. ];
  14314. this.ajax
  14315. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  14316. .then((res) => {
  14317. this.$message({
  14318. message: "提交成功",
  14319. type: "success",
  14320. });
  14321. this.studyJuri[0].cover = [];
  14322. this.dialogVisibleWorks = false;
  14323. this.getCourseDetail(2);
  14324. })
  14325. .catch((err) => {
  14326. this.$message.error("提交失败");
  14327. console.error(err);
  14328. });
  14329. },
  14330. selectUploadStudent(type) {
  14331. const loading = this.$loading.service({
  14332. background: "rgba(255, 255, 255, 0.7)",
  14333. target: document.body,
  14334. });
  14335. let params = {
  14336. cid: this.uploadCid,
  14337. oid: this.oid,
  14338. cn: "",
  14339. };
  14340. this.ajax
  14341. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14342. .then((res) => {
  14343. loading.close();
  14344. var studentK = [];
  14345. if (this.isWorksS[this.toolindex].length > 0) {
  14346. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  14347. studentK.push(this.isWorksS[this.toolindex][z].uid);
  14348. }
  14349. studentK = studentK.join(",");
  14350. }
  14351. this.uploadStudentJuri = res.data[0].filter((el) => {
  14352. return studentK.indexOf(el.userid) == -1;
  14353. });
  14354. if (this.worksSName && this.worksSid) {
  14355. this.uploadStudentJuri.push({
  14356. userid: this.worksSid,
  14357. name: this.worksSName,
  14358. });
  14359. }
  14360. if (type == 1) {
  14361. this.plworkFile = [];
  14362. this.dialogVisibleSname = true;
  14363. } else if (type == 2) {
  14364. this.dialogVisiblePl = true;
  14365. }
  14366. })
  14367. .catch((err) => {
  14368. loading.close();
  14369. console.error(err);
  14370. });
  14371. },
  14372. selectPickStudent() {
  14373. const loading = this.$loading.service({
  14374. background: "rgba(255, 255, 255, 0.7)",
  14375. target: document.body,
  14376. });
  14377. let params = {
  14378. cid: this.uploadCid,
  14379. oid: this.oid,
  14380. cn: "",
  14381. };
  14382. this.ajax
  14383. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14384. .then((res) => {
  14385. loading.close();
  14386. this.uploadStudentJuri = res.data[0];
  14387. this.dialogVisiblePickPeople = true;
  14388. })
  14389. .catch((err) => {
  14390. loading.close();
  14391. console.error(err);
  14392. });
  14393. },
  14394. arrayToArray(arrayo, arrayt) {
  14395. let array1 = arrayo;
  14396. let array2 = arrayt;
  14397. let commonElements = [];
  14398. for (let i = 0; i < array1.length; i++) {
  14399. for (let j = 0; j < array2.length; j++) {
  14400. if (array1[i] === array2[j]) {
  14401. commonElements.push(array1[i]);
  14402. }
  14403. }
  14404. }
  14405. return commonElements;
  14406. },
  14407. selectWorksStudent() {
  14408. let params = {
  14409. oid: this.oid,
  14410. cid: this.courseDetail.juri,
  14411. };
  14412. this.ajax
  14413. .get(this.$store.state.api + "selectWorksStudent", params)
  14414. .then((res) => {
  14415. var a = res.data[0];
  14416. for (var i = 0; i < this.isWorksS.length; i++) {
  14417. this.noWorksS[i] = [];
  14418. var studentK = [];
  14419. if (this.isWorksS[i].length > 0) {
  14420. for (var z = 0; z < this.isWorksS[i].length; z++) {
  14421. studentK.push(this.isWorksS[i][z].uid);
  14422. }
  14423. studentK = studentK.join(",");
  14424. for (var j = 0; j < a.length; j++) {
  14425. if (studentK.indexOf(a[j].userid) == -1) {
  14426. if (this.tcid) {
  14427. // a[j].classid.indexOf(this.tcid) != -1
  14428. if (
  14429. this.arrayToArray(
  14430. a[j].classid.split(","),
  14431. this.tcid.split(",")
  14432. ).length
  14433. ) {
  14434. this.noWorksS[i].push({
  14435. student: a[j].name,
  14436. userid: a[j].userid,
  14437. });
  14438. }
  14439. } else {
  14440. this.noWorksS[i].push({
  14441. student: a[j].name,
  14442. userid: a[j].userid,
  14443. });
  14444. }
  14445. }
  14446. }
  14447. } else {
  14448. for (var k = 0; k < a.length; k++) {
  14449. if (this.tcid) {
  14450. if (
  14451. this.arrayToArray(
  14452. a[k].classid.split(","),
  14453. this.tcid.split(",")
  14454. ).length
  14455. ) {
  14456. this.noWorksS[i].push({
  14457. student: a[k].name,
  14458. userid: a[k].userid,
  14459. });
  14460. }
  14461. } else {
  14462. this.noWorksS[i].push({
  14463. student: a[k].name,
  14464. userid: a[k].userid,
  14465. });
  14466. }
  14467. }
  14468. }
  14469. }
  14470. this.$forceUpdate();
  14471. if (
  14472. Object.keys(this.commentDetail).length &&
  14473. Object.keys(this.commentIndexJson).length &&
  14474. !this.dialogVisibleScore && !this.dialogVisibleENScore
  14475. ) {
  14476. let a = 1;
  14477. let c = this.commentIndexJson;
  14478. if (
  14479. this.commentIndexJson.gindex ||
  14480. this.commentIndexJson.gindex === 0
  14481. ) {
  14482. for (
  14483. var i = 0;
  14484. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  14485. i++
  14486. ) {
  14487. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  14488. groupA: for (var k = 0; k < _el.length; k++) {
  14489. let el = _el[k];
  14490. if (el.wid == this.commentDetail.wid) {
  14491. a = 2;
  14492. this.commentOther(
  14493. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  14494. this.commentIndexJson.toolIndex,
  14495. k,
  14496. this.commentIndexJson.gindex
  14497. );
  14498. break groupA;
  14499. }
  14500. }
  14501. }
  14502. if (a === 1) {
  14503. this.commentDetail = [];
  14504. this.commentIndexJson = {};
  14505. this.commentDialogVisible = false;
  14506. this.$message("此作业已被删除");
  14507. }
  14508. } else {
  14509. if (this.isGroup && this.commentIndexJson.gid) {
  14510. groupA: for (
  14511. var i = 0;
  14512. i < this.courseGroup.group.length;
  14513. i++
  14514. ) {
  14515. let _group = this.courseGroup.group[i];
  14516. if (_group.id == this.commentIndexJson.gid) {
  14517. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  14518. for (var k = 0; k < _el2.length; k++) {
  14519. let el2 = _el2[k];
  14520. if (el2.wid == this.commentDetail.wid) {
  14521. a = 2;
  14522. this.commentOther(
  14523. _el2[k],
  14524. this.commentIndexJson.toolIndex,
  14525. k,
  14526. null,
  14527. this.commentIndexJson.gid
  14528. );
  14529. break groupA;
  14530. }
  14531. }
  14532. }
  14533. }
  14534. }
  14535. if (a == 1) {
  14536. for (
  14537. var i = 0;
  14538. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  14539. i++
  14540. ) {
  14541. let el =
  14542. this.worksStudent[this.commentIndexJson.toolIndex][i];
  14543. if (el.wid == this.commentDetail.wid) {
  14544. a = 2;
  14545. this.commentOther(
  14546. this.worksStudent[this.commentIndexJson.toolIndex][i],
  14547. this.commentIndexJson.toolIndex,
  14548. i
  14549. );
  14550. break;
  14551. }
  14552. }
  14553. }
  14554. if (a === 1) {
  14555. this.commentDetail = [];
  14556. this.commentIndexJson = {};
  14557. this.commentDialogVisible = false;
  14558. this.$message("此作业已被删除");
  14559. }
  14560. }
  14561. }
  14562. })
  14563. .catch((err) => {
  14564. console.error(err);
  14565. });
  14566. },
  14567. selectStudent() {
  14568. if(this.selectStudentLoading) return
  14569. this.selectStudentLoading = true
  14570. //学生查看自己作业
  14571. let params = {
  14572. uid: this.userid,
  14573. cid: this.id,
  14574. s: this.courseType,
  14575. t: this.taskCount,
  14576. };
  14577. this.ajax
  14578. .get(this.$store.state.api + "selectStudentWorks", params)
  14579. .then((res) => {
  14580. var a =
  14581. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14582. this.taskCount
  14583. ].toolChoose;
  14584. var b = res.data[0];
  14585. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14586. var y = [
  14587. "AVI",
  14588. "NAVI",
  14589. "MPEG",
  14590. "ASF",
  14591. "MOV",
  14592. "WMV",
  14593. "3GP",
  14594. "RM",
  14595. "RMVB",
  14596. "FLV",
  14597. "F4V",
  14598. "H.264",
  14599. "H.265",
  14600. "REAL VIDEO",
  14601. "MKV",
  14602. "WebM",
  14603. "HDDVD",
  14604. "MP4",
  14605. "MPG",
  14606. "M4V",
  14607. "MGV",
  14608. "OGV",
  14609. "QTM",
  14610. "STR",
  14611. "AMC",
  14612. "DVX",
  14613. "EVO",
  14614. "DAT",
  14615. "OGG",
  14616. "OGM",
  14617. ];
  14618. for (var i = 0; i < a.length; i++) {
  14619. this.workStudent[i] = [];
  14620. for (var j = 0; j < b.length; j++) {
  14621. if (i == b[j].tool) {
  14622. if (
  14623. (b[j].type == 1 ||
  14624. b[j].type == 4 ||
  14625. b[j].type == 5 ||
  14626. b[j].type == 6 ||
  14627. b[j].type == 12 ||
  14628. b[j].type == 7) &&
  14629. a[i].tool[0] != 15 &&
  14630. a[i].tool[0] != 4 &&
  14631. a[i].tool[0] != 45 &&
  14632. a[i].tool[0] != 50 &&
  14633. a[i].tool[0] != 32 &&
  14634. a[i].tool[0] != 57 &&
  14635. a[i].tool[0] != 52 &&
  14636. a[i].tool[0] != 69
  14637. ) {
  14638. if (
  14639. c.indexOf(
  14640. b[j].content
  14641. .split(".")
  14642. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14643. ) != -1 &&
  14644. a[i].tool[0] == 16 &&
  14645. b[j].atool != 50
  14646. ) {
  14647. this.workStudent[i].push({
  14648. works: b[j].content,
  14649. sName: b[j].name,
  14650. score: b[j].score,
  14651. img: b[j].img,
  14652. type: 1,
  14653. time: b[j].time,
  14654. userid: b[j].userid,
  14655. wid: b[j].id,
  14656. });
  14657. } else if (
  14658. y.indexOf(
  14659. b[j].content
  14660. .split(".")
  14661. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14662. ) != -1 &&
  14663. a[i].tool[0] == 16 &&
  14664. b[j].atool != 50
  14665. ) {
  14666. this.workStudent[i].push({
  14667. userid: b[j].userid,
  14668. wid: b[j].id,
  14669. works: b[j].content,
  14670. sName: b[j].name,
  14671. score: b[j].score,
  14672. img: b[j].img,
  14673. type: 3,
  14674. time: b[j].time,
  14675. });
  14676. } else if (b[j].type == 6 && b[j].atool != 50) {
  14677. this.workStudent[i].push({
  14678. userid: b[j].userid,
  14679. wid: b[j].id,
  14680. works: b[j].content,
  14681. sName: b[j].name,
  14682. score: b[j].score,
  14683. img: b[j].img,
  14684. type: 4,
  14685. time: b[j].time,
  14686. });
  14687. } else if (b[j].type == 7 && b[j].atool != 50) {
  14688. this.workStudent[i].push({
  14689. userid: b[j].userid,
  14690. wid: b[j].id,
  14691. works: b[j].content,
  14692. sName: b[j].name,
  14693. score: b[j].score,
  14694. img: b[j].img,
  14695. type: 5,
  14696. time: b[j].time,
  14697. });
  14698. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14699. this.workStudent[i].push({
  14700. works: b[j].content,
  14701. sName: b[j].name,
  14702. score: b[j].score,
  14703. img: b[j].img,
  14704. type: 12,
  14705. time: b[j].time,
  14706. userid: b[j].userid,
  14707. wid: b[j].id,
  14708. });
  14709. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14710. this.workStudent[i].push({
  14711. works: b[j].content,
  14712. sName: b[j].name,
  14713. score: b[j].score,
  14714. img: b[j].img,
  14715. type: 0,
  14716. time: b[j].time,
  14717. userid: b[j].userid,
  14718. wid: b[j].id,
  14719. });
  14720. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14721. this.workStudent[i].push({
  14722. works: b[j].content,
  14723. sName: b[j].name,
  14724. score: b[j].score,
  14725. img: b[j].img,
  14726. type: 0,
  14727. time: b[j].time,
  14728. userid: b[j].userid,
  14729. wid: b[j].id,
  14730. });
  14731. }
  14732. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14733. this.workStudent[i].push({
  14734. works: b[j].content,
  14735. sName: b[j].name,
  14736. score: b[j].score,
  14737. img: b[j].img,
  14738. type: 2,
  14739. time: b[j].time,
  14740. userid: b[j].userid,
  14741. wid: b[j].id,
  14742. });
  14743. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  14744. this.workStudent[i].push({
  14745. works: b[j].content,
  14746. sName: b[j].name,
  14747. score: b[j].score,
  14748. img: b[j].img,
  14749. type: 20,
  14750. time: b[j].time,
  14751. userid: b[j].userid,
  14752. wid: b[j].id,
  14753. });
  14754. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14755. //问卷
  14756. this.workStudent[i].push({
  14757. works: b[j].content,
  14758. sName: b[j].name,
  14759. score: b[j].score,
  14760. img: b[j].img,
  14761. type: 2,
  14762. time: b[j].time,
  14763. userid: b[j].userid,
  14764. wid: b[j].id,
  14765. });
  14766. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14767. //选择题
  14768. this.workStudent[i].push({
  14769. works: b[j].content,
  14770. sName: b[j].name,
  14771. score: b[j].score,
  14772. img: b[j].img,
  14773. type: 8,
  14774. time: b[j].time,
  14775. userid: b[j].userid,
  14776. wid: b[j].id,
  14777. });
  14778. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14779. //选择题
  14780. this.workStudent[i].push({
  14781. works: b[j].content,
  14782. sName: b[j].name,
  14783. score: b[j].score,
  14784. img: b[j].img,
  14785. type: 9,
  14786. time: b[j].time,
  14787. userid: b[j].userid,
  14788. wid: b[j].id,
  14789. });
  14790. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14791. //选择题
  14792. this.workStudent[i].push({
  14793. works: b[j].content,
  14794. sName: b[j].name,
  14795. score: b[j].score,
  14796. img: b[j].img,
  14797. type: 10,
  14798. time: b[j].time,
  14799. userid: b[j].userid,
  14800. wid: b[j].id,
  14801. });
  14802. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14803. //选择题
  14804. this.workStudent[i].push({
  14805. works: b[j].content,
  14806. sName: b[j].name,
  14807. score: b[j].score,
  14808. img: b[j].img,
  14809. type: 13,
  14810. time: b[j].time,
  14811. userid: b[j].userid,
  14812. wid: b[j].id,
  14813. });
  14814. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  14815. //选择题
  14816. this.workStudent[i].push({
  14817. works: b[j].content,
  14818. sName: b[j].name,
  14819. score: b[j].score,
  14820. img: b[j].img,
  14821. type: 12,
  14822. time: b[j].time,
  14823. userid: b[j].userid,
  14824. wid: b[j].id,
  14825. });
  14826. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  14827. //选择题
  14828. this.workStudent[i].push({
  14829. works: b[j].content,
  14830. sName: b[j].name,
  14831. score: b[j].score,
  14832. img: b[j].img,
  14833. type: 12,
  14834. time: b[j].time,
  14835. userid: b[j].userid,
  14836. wid: b[j].id,
  14837. });
  14838. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  14839. //选择题
  14840. this.workStudent[i].push({
  14841. works: b[j].content,
  14842. sName: b[j].name,
  14843. score: b[j].score,
  14844. img: b[j].img,
  14845. type: 15,
  14846. time: b[j].time,
  14847. userid: b[j].userid,
  14848. wid: b[j].id,
  14849. });
  14850. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14851. //英语写作
  14852. this.workStudent[i].push({
  14853. works: b[j].content,
  14854. sName: b[j].name,
  14855. score: b[j].score,
  14856. img: b[j].img,
  14857. type: 16,
  14858. time: b[j].time,
  14859. userid: b[j].userid,
  14860. wid: b[j].id,
  14861. aiCode: b[j].aiCode,
  14862. teacherCode: b[j].teacherCode
  14863. });
  14864. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14865. //英语口语
  14866. this.workStudent[i].push({
  14867. works: b[j].content,
  14868. sName: b[j].name,
  14869. score: b[j].score,
  14870. img: b[j].img,
  14871. type: 17,
  14872. time: b[j].time,
  14873. userid: b[j].userid,
  14874. wid: b[j].id,
  14875. });
  14876. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14877. //交互视频
  14878. this.workStudent[i].push({
  14879. works: b[j].content,
  14880. sName: b[j].name,
  14881. score: b[j].score,
  14882. img: b[j].img,
  14883. type: 14,
  14884. time: b[j].time,
  14885. userid: b[j].userid,
  14886. wid: b[j].id,
  14887. });
  14888. }
  14889. }
  14890. }
  14891. }
  14892. this.selectStudentLoading = false
  14893. })
  14894. .catch((err) => {
  14895. this.selectStudentLoading = false
  14896. console.error(err);
  14897. });
  14898. },
  14899. openVideo(w) {
  14900. this.videoDetail = {};
  14901. this.playerOptions1.sources[0].src = w.works;
  14902. this.videoDetail = this.playerOptions1;
  14903. this.videoVisible = true;
  14904. },
  14905. isLikes(wid, uid, t, c, isLikes,sName) {
  14906. if (isLikes == false) {
  14907. let params = [
  14908. {
  14909. wid: wid,
  14910. lid: uid,
  14911. t: t,
  14912. c: c,
  14913. },
  14914. ];
  14915. this.ajax
  14916. .post(this.$store.state.api + "insertComment", params)
  14917. .then((res) => {
  14918. this.$message({
  14919. message: "点赞成功",
  14920. type: "success",
  14921. });
  14922. this.selectSWorks();
  14923. this.selectStudent();
  14924. if(this.tType!=2){
  14925. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14926. }
  14927. })
  14928. .catch((err) => {
  14929. this.$message.error("点赞失败");
  14930. console.error(err);
  14931. });
  14932. } else {
  14933. let params = {
  14934. wid: wid,
  14935. lid: uid,
  14936. type: t,
  14937. };
  14938. this.ajax
  14939. .get(this.$store.state.api + "deleteComment", params)
  14940. .then((res) => {
  14941. this.$message({
  14942. message: "取消点赞成功",
  14943. type: "success",
  14944. });
  14945. this.selectSWorks();
  14946. this.selectStudent();
  14947. })
  14948. .catch((err) => {
  14949. console.error(err);
  14950. });
  14951. }
  14952. },
  14953. deleteComment(wid) {
  14954. this.$confirm("确定删除此评论吗?", "提示", {
  14955. confirmButtonText: "确定",
  14956. cancelButtonText: "取消",
  14957. type: "warning",
  14958. })
  14959. .then(() => {
  14960. let params = {
  14961. id: wid,
  14962. };
  14963. this.ajax
  14964. .get(this.$store.state.api + "deleteComment2", params)
  14965. .then((res) => {
  14966. this.$message({
  14967. message: "删除评论成功",
  14968. type: "success",
  14969. });
  14970. this.selectSWorks();
  14971. this.selectStudent();
  14972. })
  14973. .catch((err) => {
  14974. console.error(err);
  14975. });
  14976. })
  14977. .catch(() => {});
  14978. },
  14979. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14980. this.commentIndexJson = {
  14981. toolIndex: toolIndex,
  14982. wIndex: wIndex,
  14983. gindex: gindex,
  14984. gid: gid,
  14985. };
  14986. this.commentDetail = [];
  14987. this.commentDialogVisible = true;
  14988. this.commentDetail = w;
  14989. if (w.works && w.type == 1) {
  14990. // this.pptImgUrl = "";
  14991. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14992. if (
  14993. a.indexOf(
  14994. w.works
  14995. .split(".")
  14996. [w.works.split(".").length - 1].toLocaleUpperCase()
  14997. ) != -1
  14998. ) {
  14999. let _uuurl = await this.checkLink(w.works);
  15000. console.log(_uuurl)
  15001. this.pptImgUrl =
  15002. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  15003. this.showPDF = false;
  15004. } else if (
  15005. w.works
  15006. .split(".")
  15007. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15008. ) {
  15009. this.pptImgUrl = w.works;
  15010. this.showPDF = true;
  15011. }
  15012. } else if (w.works && w.type == 3) {
  15013. this.videoDetail = {};
  15014. this.playerOptions1.sources[0].src = w.works;
  15015. this.videoDetail = this.playerOptions1;
  15016. // this.videoVisible = true;
  15017. } else if (w.works && w.type == 4) {
  15018. this.eScore = JSON.parse(w.works);
  15019. this.rateJson =
  15020. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15021. this.taskCount
  15022. ].toolChoose[toolIndex].rateJson;
  15023. } else if (w.works && w.type == 10) {
  15024. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  15025. } else if (w.works && w.type == 13) {
  15026. this.wordJson =
  15027. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15028. this.taskCount
  15029. ].toolChoose[toolIndex].wordJson;
  15030. }
  15031. },
  15032. async openScore(w, index) {
  15033. this.wScore = 0;
  15034. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  15035. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  15036. this.commentDetail = [];
  15037. if(w.type == 17){
  15038. this.dialogVisibleENScore = true;
  15039. }else{
  15040. this.dialogVisibleScore = true;
  15041. }
  15042. this.commentDetail = w;
  15043. if (w.works && w.type == 1) {
  15044. this.pptImgUrl = "";
  15045. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  15046. if (
  15047. a.indexOf(
  15048. w.works
  15049. .split(".")
  15050. [w.works.split(".").length - 1].toLocaleUpperCase()
  15051. ) != -1
  15052. ) {
  15053. let _uuurl = await this.checkLink(w.works);
  15054. console.log(_uuurl)
  15055. this.pptImgUrl =
  15056. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  15057. this.showPDF = false;
  15058. } else if (
  15059. w.works
  15060. .split(".")
  15061. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15062. ) {
  15063. this.pptImgUrl = w.works;
  15064. this.showPDF = true;
  15065. }
  15066. } else if (w.works && w.type == 3) {
  15067. this.videoDetail = {};
  15068. this.playerOptions1.sources[0].src = w.works;
  15069. this.videoDetail = this.playerOptions1;
  15070. }else if(w.type == 17){
  15071. let englishVoiceJson = {}
  15072. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15073. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  15074. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  15075. .toolChoose[index].englishVoiceJson
  15076. : {};
  15077. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  15078. }
  15079. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15080. },
  15081. addComment(wid, uid, t,detail) {
  15082. if (this.commentText == "") {
  15083. this.$message.error("请输入评论");
  15084. return;
  15085. }
  15086. let params2 = [
  15087. {
  15088. wid: wid,
  15089. lid: uid,
  15090. t: t,
  15091. },
  15092. ];
  15093. this.ajax
  15094. .post(this.$store.state.api + "getComment", params2)
  15095. .then((res) => {
  15096. if (res.data[0].length > 0) {
  15097. this.$message.error("一个作业只能评论一条");
  15098. } else {
  15099. let params = [
  15100. {
  15101. wid: wid,
  15102. lid: uid,
  15103. t: t,
  15104. c: this.commentText,
  15105. },
  15106. ];
  15107. this.ajax
  15108. .post(this.$store.state.api + "insertComment", params)
  15109. .then((res) => {
  15110. this.$message({
  15111. message: "评论成功",
  15112. type: "success",
  15113. });
  15114. this.commentText = "";
  15115. this.selectSWorks();
  15116. this.selectStudent();
  15117. if(this.tType!=2){
  15118. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  15119. }
  15120. })
  15121. .catch((err) => {
  15122. this.$message.error("评论失败");
  15123. console.error(err);
  15124. });
  15125. }
  15126. })
  15127. .catch((err) => {
  15128. // this.$message.error("评论失败");
  15129. console.error(err);
  15130. });
  15131. },
  15132. scoreWork(wid,sName) {
  15133. if (this.wScore == 0) {
  15134. this.$message.error("请评分");
  15135. return;
  15136. }
  15137. let params = [
  15138. {
  15139. wid: wid,
  15140. score: JSON.stringify({
  15141. wScore: this.wScore,
  15142. detail: this.scoreDetail,
  15143. }),
  15144. },
  15145. ];
  15146. this.ajax
  15147. .post(this.$store.state.api + "scoreWork", params)
  15148. .then((res) => {
  15149. this.$message({
  15150. message: "评分成功",
  15151. type: "success",
  15152. });
  15153. this.wScore = 0;
  15154. this.scoreDetail = "";
  15155. this.dialogVisibleScore = false;
  15156. this.selectSWorks();
  15157. this.selectStudent();
  15158. if(this.tType!=2){
  15159. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  15160. }
  15161. })
  15162. .catch((err) => {
  15163. this.$message.error("评分失败");
  15164. console.error(err);
  15165. });
  15166. },
  15167. openXz(w, i) {
  15168. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15169. .taskJson[this.taskCount].toolChoose[i].selectJson
  15170. ? JSON.parse(
  15171. JSON.stringify(
  15172. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15173. this.taskCount
  15174. ].toolChoose[i].selectJson
  15175. )
  15176. )
  15177. : { url: "", select: [], answer: [] };
  15178. var a = w.works.split(",");
  15179. for (var k = 0; k < a.length; k++) {
  15180. a[k] = parseInt(a[k]);
  15181. }
  15182. this.selectAnswer = { answer: a, stu: w.sName };
  15183. this.isSelect = true;
  15184. this.dialogVisibleSelect = true;
  15185. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15186. },
  15187. openSen(w, i) {
  15188. this.sentenceList1 = JSON.parse(w.works);
  15189. this.sentenceList1.stuName = w.sName;
  15190. this.dialogVisibleSentence1 = true;
  15191. },
  15192. openPj(w, toolindex) {
  15193. this.isStar = true;
  15194. this.eScore = JSON.parse(w);
  15195. this.rateJson =
  15196. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15197. this.taskCount
  15198. ].toolChoose[toolindex].rateJson;
  15199. this.studentEvalDialogVisible = true;
  15200. },
  15201. openEnglishEva(id,i){
  15202. let params = {
  15203. wid: id
  15204. };
  15205. this.ajax
  15206. .get(this.$store.state.api + "selectEngWork", params)
  15207. .then((res) => {
  15208. this.evaEngJson.message = res.data[0][0];
  15209. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  15210. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  15211. .toolChoose[i].englishList;
  15212. this.engEvaDialogVisible = true;
  15213. })
  15214. .catch((err) => {
  15215. console.error(err);
  15216. });
  15217. },
  15218. deleteWorks(id) {
  15219. this.$confirm("确定删除此作业吗?", "提示", {
  15220. confirmButtonText: "确定",
  15221. cancelButtonText: "取消",
  15222. type: "warning",
  15223. })
  15224. .then(() => {
  15225. let params = [
  15226. {
  15227. id: id,
  15228. },
  15229. ];
  15230. this.ajax
  15231. .post(this.$store.state.api + "deleteCourseWork", params)
  15232. .then((res) => {
  15233. this.$message({
  15234. message: "删除成功",
  15235. type: "success",
  15236. });
  15237. this.selectStudent();
  15238. this.selectSWorks();
  15239. this.selectSLook();
  15240. })
  15241. .catch((err) => {
  15242. this.$message.error("网络异常");
  15243. console.error(err);
  15244. });
  15245. })
  15246. .catch(() => {});
  15247. },
  15248. selectSWorks(gindex) {
  15249. if(this.selectSWorksLoading) return
  15250. this.selectSWorksLoading = true
  15251. //教师查看全部作业
  15252. let params = {
  15253. cid: this.id,
  15254. s: this.courseType,
  15255. t: this.taskCount,
  15256. };
  15257. this.ajax
  15258. .get(this.$store.state.api + "selectSWorks", params)
  15259. .then((res) => {
  15260. var a =
  15261. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15262. this.taskCount
  15263. ].toolChoose;
  15264. var b = res.data[0];
  15265. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15266. var y = [
  15267. "AVI",
  15268. "NAVI",
  15269. "MPEG",
  15270. "ASF",
  15271. "MOV",
  15272. "WMV",
  15273. "3GP",
  15274. "RM",
  15275. "RMVB",
  15276. "FLV",
  15277. "F4V",
  15278. "H.264",
  15279. "H.265",
  15280. "REAL VIDEO",
  15281. "MKV",
  15282. "WebM",
  15283. "HDDVD",
  15284. "MP4",
  15285. "MPG",
  15286. "M4V",
  15287. "MGV",
  15288. "OGV",
  15289. "QTM",
  15290. "STR",
  15291. "AMC",
  15292. "DVX",
  15293. "EVO",
  15294. "DAT",
  15295. "OGG",
  15296. "OGM",
  15297. ];
  15298. var d = res.data[1];
  15299. var e = res.data[2];
  15300. var f = res.data[3];
  15301. let _worksStudent = [];
  15302. var _worksStudent2 = [];
  15303. for (var i = 0; i < a.length; i++) {
  15304. _worksStudent[i] = [];
  15305. _worksStudent2[i] = [];
  15306. if (
  15307. !this.isCloseList[i] ||
  15308. this.isCloseList[i].isClose == undefined
  15309. ) {
  15310. this.isCloseList[i] = { isClose: 0 };
  15311. }
  15312. this.groupStudent[i] = [];
  15313. this.groupStudentUid[i] = [];
  15314. if (this.isGroup) {
  15315. for (
  15316. var groupI = 0;
  15317. groupI < this.courseGroup.group.length;
  15318. groupI++
  15319. ) {
  15320. this.courseGroup.group[groupI].works[i] = [];
  15321. }
  15322. }
  15323. this.isWorksS[i] = [];
  15324. this.checkJson[i] = [];
  15325. if (a[i].tool[0] == 49) {
  15326. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  15327. this.groupStudent[i][gA] = [];
  15328. this.groupStudentUid[i][gA] = [];
  15329. _worksStudent[i][gA] = [];
  15330. _worksStudent2[i][gA] = [];
  15331. this.isCloseList[i][gA] = [];
  15332. for (var g = 0; g < f.length; g++) {
  15333. if (
  15334. f[g].ttype == 2 &&
  15335. this.tcid &&
  15336. this.arrayToArray(
  15337. (f[g].classid ? f[g].classid.split(",") : []),
  15338. this.tcid.split(",")
  15339. ).length == 0
  15340. ) {
  15341. continue;
  15342. }
  15343. let _classId = this.arrayToArray(
  15344. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15345. this.classId ? this.classId.split(",") : []
  15346. )
  15347. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  15348. (f[g].classid ? f[g].classid.split(",") : []),
  15349. this.tcid.split(",")
  15350. ).length !== 0 || this.arrayToArray(
  15351. (f[g].classid ? f[g].classid.split(",") : []),
  15352. _classId
  15353. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  15354. this.groupStudent[i][gA].push(f[g]);
  15355. this.groupStudentUid[i][gA].push(f[g].userid);
  15356. }
  15357. }
  15358. }
  15359. this.$forceUpdate();
  15360. }
  15361. for (var j = 0; j < b.length; j++) {
  15362. if (
  15363. b[j].ttype == 2 &&
  15364. this.tcid &&
  15365. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  15366. .length == 0
  15367. ) {
  15368. continue;
  15369. }
  15370. var likesCount = 0;
  15371. var commentCount = 0;
  15372. var isLikes = false;
  15373. var commentJson = [];
  15374. var likeJson = [];
  15375. var data = b[j];
  15376. if (i == b[j].tool) {
  15377. if (data.type == 2 && a[i].tool[0] == 4) {
  15378. // if(JSON.parse(data.content)[0].anwer){
  15379. var checkL =
  15380. JSON.parse(data.content)[0].anwer instanceof Array
  15381. ? JSON.parse(data.content)[0].anwer
  15382. : JSON.parse(data.content)[0].anwer.split(",");
  15383. for (var z = 0; z < checkL.length; z++) {
  15384. if (!this.checkJson[i][z]) {
  15385. this.checkJson[i].push({
  15386. checkCount: [],
  15387. checkPerson: [],
  15388. rightPerson: [],
  15389. });
  15390. }
  15391. if (!this.checkJson[i][z].checkCount.length) {
  15392. this.checkJson[i][z].checkCount = [];
  15393. let _askItemCount = JSON.parse(data.content)[0].askJson
  15394. .askJson[z].askItem;
  15395. for (var aic = 0; aic < _askItemCount; aic++) {
  15396. this.checkJson[i][z].checkCount.push(0);
  15397. }
  15398. }
  15399. if (checkL[z] instanceof Array) {
  15400. if (
  15401. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  15402. checkL[z].sort().join(",")
  15403. ) {
  15404. this.checkJson[i][z].rightPerson.push(data.name);
  15405. }
  15406. for (var q = 0; q < checkL[z].length; q++) {
  15407. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15408. ? this.checkJson[i][z].checkPerson[
  15409. parseInt(checkL[z][q])
  15410. ].push(data.name)
  15411. : (this.checkJson[i][z].checkPerson[
  15412. parseInt(checkL[z][q])
  15413. ] = [data.name]);
  15414. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15415. ? this.checkJson[i][z].checkCount[
  15416. parseInt(checkL[z][q])
  15417. ]++
  15418. : (this.checkJson[i][z].checkCount[
  15419. parseInt(checkL[z][q])
  15420. ] = 1);
  15421. }
  15422. } else {
  15423. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  15424. this.checkJson[i][z].rightPerson.push(data.name);
  15425. }
  15426. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  15427. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  15428. ? this.checkJson[i][z].checkPerson[
  15429. parseInt(checkL[z])
  15430. ].push(data.name)
  15431. : (this.checkJson[i][z].checkPerson[
  15432. parseInt(checkL[z])
  15433. ] = [data.name]);
  15434. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  15435. ? this.checkJson[i][z].checkCount[
  15436. parseInt(checkL[z])
  15437. ]++
  15438. : (this.checkJson[i][z].checkCount[
  15439. parseInt(checkL[z])
  15440. ] = 1);
  15441. }
  15442. }
  15443. }
  15444. } else if (data.type == 8 && a[i].tool[0] == 45) {
  15445. var checkL = JSON.parse(data.content)[0].anwer;
  15446. if(a[i].testJson.testCount != JSON.parse(data.content)[0].testJson.testCount){
  15447. continue
  15448. }
  15449. console.log('选择题')
  15450. for (var z = 0; z < checkL.length; z++) {
  15451. if (!this.checkJson[i][z]) {
  15452. this.checkJson[i].push({
  15453. checkCount: [],
  15454. checkPerson: [],
  15455. rightPerson: [],
  15456. });
  15457. }
  15458. if (!this.checkJson[i][z].checkCount.length) {
  15459. this.checkJson[i][z].checkCount = [];
  15460. let _askItemCount = JSON.parse(data.content)[0].testJson
  15461. .testJson[z].testItem;
  15462. for (var aic = 0; aic < _askItemCount; aic++) {
  15463. this.checkJson[i][z].checkCount.push(0);
  15464. }
  15465. }
  15466. if (checkL[z] instanceof Array) {
  15467. if (
  15468. JSON.parse(data.content)[0]
  15469. .testJson.testJson[z].answer.sort()
  15470. .join(",") == checkL[z].sort().join(",")
  15471. ) {
  15472. this.checkJson[i][z].rightPerson.push(data.name);
  15473. }
  15474. for (var q = 0; q < checkL[z].length; q++) {
  15475. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15476. ? this.checkJson[i][z].checkPerson[
  15477. parseInt(checkL[z][q])
  15478. ].push(data.name)
  15479. : (this.checkJson[i][z].checkPerson[
  15480. parseInt(checkL[z][q])
  15481. ] = [data.name]);
  15482. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15483. ? this.checkJson[i][z].checkCount[
  15484. parseInt(checkL[z][q])
  15485. ]++
  15486. : (this.checkJson[i][z].checkCount[
  15487. parseInt(checkL[z][q])
  15488. ] = 1);
  15489. }
  15490. } else {
  15491. if (
  15492. JSON.parse(data.content)[0].testJson.testJson[z]
  15493. .answer == checkL[z]
  15494. ) {
  15495. this.checkJson[i][z].rightPerson.push(data.name);
  15496. }
  15497. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  15498. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  15499. ? this.checkJson[i][z].checkPerson[
  15500. parseInt(checkL[z])
  15501. ].push(data.name)
  15502. : (this.checkJson[i][z].checkPerson[
  15503. parseInt(checkL[z])
  15504. ] = [data.name]);
  15505. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  15506. ? this.checkJson[i][z].checkCount[
  15507. parseInt(checkL[z])
  15508. ]++
  15509. : (this.checkJson[i][z].checkCount[
  15510. parseInt(checkL[z])
  15511. ] = 1);
  15512. }
  15513. }
  15514. }
  15515. } else if (data.type == 9 && a[i].tool[0] == 47) {
  15516. var checkL = JSON.parse(data.content);
  15517. for (var z = 0; z < checkL.length; z++) {
  15518. if (!this.checkJson[i][z]) {
  15519. this.checkJson[i].push({
  15520. checkCount: [],
  15521. checkPerson: [],
  15522. rightPerson: [],
  15523. });
  15524. }
  15525. this.checkJson[i][z].checkPerson.push(data.name);
  15526. if (
  15527. checkL[z].chooseSenList.toString() ==
  15528. checkL[z].rightAnswer.toString()
  15529. ) {
  15530. this.checkJson[i][z].rightPerson.push(data.name);
  15531. }
  15532. }
  15533. }
  15534. for (var k = 0; k < d.length; k++) {
  15535. //点赞
  15536. if (d[k].workId == b[j].id) {
  15537. likesCount++;
  15538. likeJson.push(d[k])
  15539. if (d[k].likesId == this.userid) {
  15540. isLikes = true;
  15541. }
  15542. }
  15543. }
  15544. for (var l = 0; l < e.length; l++) {
  15545. //评论
  15546. if (e[l].workId == b[j].id) {
  15547. if (e[l].comment != "") {
  15548. commentCount++;
  15549. commentJson.push({
  15550. commentText: e[l].comment,
  15551. commentTime: e[l].commentTime,
  15552. commentPeople: e[l].commentPeople,
  15553. userid: e[l].userid,
  15554. wid: e[l].id,
  15555. });
  15556. }
  15557. }
  15558. }
  15559. if (
  15560. (b[j].type == 1 ||
  15561. b[j].type == 4 ||
  15562. b[j].type == 5 ||
  15563. b[j].type == 6 ||
  15564. b[j].type == 12 ||
  15565. b[j].type == 7) &&
  15566. a[i].tool[0] != 15 &&
  15567. a[i].tool[0] != 4 &&
  15568. a[i].tool[0] != 45 &&
  15569. a[i].tool[0] != 50 &&
  15570. a[i].tool[0] != 32 &&
  15571. a[i].tool[0] != 57 &&
  15572. a[i].tool[0] != 52
  15573. ) {
  15574. if (
  15575. c.indexOf(
  15576. b[j].content
  15577. .split(".")
  15578. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15579. ) != -1 &&
  15580. a[i].tool[0] == 16 &&
  15581. b[j].atool != 50
  15582. ) {
  15583. let _works = {
  15584. userid: b[j].userid,
  15585. ateacher: b[j].ateacher,
  15586. wid: b[j].id,
  15587. works: b[j].content,
  15588. sName: b[j].name,
  15589. type: 1,
  15590. ttype:b[j].ttype,
  15591. time: b[j].time,
  15592. score: b[j].score,
  15593. img: b[j].img,
  15594. likesCount: likesCount,
  15595. commentCount: commentCount,
  15596. isLikes: isLikes,
  15597. commentJson: commentJson,
  15598. likeJson:likeJson
  15599. };
  15600. if (this.isGroup) {
  15601. let isGw = 1;
  15602. for (
  15603. var groupI = 0;
  15604. groupI < this.courseGroup.group.length;
  15605. groupI++
  15606. ) {
  15607. let gid = this.courseGroup.group[groupI].id;
  15608. if (
  15609. this.courseGroupStudentUid[gid].indexOf(
  15610. b[j].userid
  15611. ) != -1
  15612. ) {
  15613. isGw = 2;
  15614. this.courseGroup.group[groupI].works[i].push(_works);
  15615. break;
  15616. }
  15617. }
  15618. if (isGw == 1) {
  15619. _worksStudent[i].push(_works);
  15620. }
  15621. } else {
  15622. _worksStudent[i].push(_works);
  15623. }
  15624. _worksStudent2[i].push(_works);
  15625. this.isWorksS[i].push({
  15626. uid: b[j].userid,
  15627. sName: b[j].name,
  15628. });
  15629. } else if (
  15630. y.indexOf(
  15631. b[j].content
  15632. .split(".")
  15633. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15634. ) != -1 &&
  15635. a[i].tool[0] == 16 &&
  15636. b[j].atool != 50
  15637. ) {
  15638. let _works = {
  15639. userid: b[j].userid,
  15640. ateacher: b[j].ateacher,
  15641. wid: b[j].id,
  15642. works: b[j].content,
  15643. sName: b[j].name,
  15644. type: 3,
  15645. ttype:b[j].ttype,
  15646. time: b[j].time,
  15647. score: b[j].score,
  15648. img: b[j].img,
  15649. likesCount: likesCount,
  15650. commentCount: commentCount,
  15651. isLikes: isLikes,
  15652. commentJson: commentJson,
  15653. likeJson:likeJson
  15654. };
  15655. if (this.isGroup) {
  15656. let isGw = 1;
  15657. for (
  15658. var groupI = 0;
  15659. groupI < this.courseGroup.group.length;
  15660. groupI++
  15661. ) {
  15662. let gid = this.courseGroup.group[groupI].id;
  15663. if (
  15664. this.courseGroupStudentUid[gid].indexOf(
  15665. b[j].userid
  15666. ) != -1
  15667. ) {
  15668. isGw = 2;
  15669. this.courseGroup.group[groupI].works[i].push(_works);
  15670. break;
  15671. }
  15672. }
  15673. if (isGw == 1) {
  15674. _worksStudent[i].push(_works);
  15675. }
  15676. } else {
  15677. _worksStudent[i].push(_works);
  15678. }
  15679. _worksStudent2[i].push(_works);
  15680. this.isWorksS[i].push({
  15681. uid: b[j].userid,
  15682. sName: b[j].name,
  15683. });
  15684. } else if (b[j].type == 6 && b[j].atool != 50) {
  15685. let _works = {
  15686. userid: b[j].userid,
  15687. ateacher: b[j].ateacher,
  15688. wid: b[j].id,
  15689. works: b[j].content,
  15690. sName: b[j].name,
  15691. type: 4,
  15692. ttype:b[j].ttype,
  15693. time: b[j].time,
  15694. score: b[j].score,
  15695. img: b[j].img,
  15696. likesCount: likesCount,
  15697. commentCount: commentCount,
  15698. isLikes: isLikes,
  15699. commentJson: commentJson,
  15700. likeJson:likeJson
  15701. };
  15702. _worksStudent[i].push(_works);
  15703. _worksStudent2[i].push(_works);
  15704. this.isWorksS[i].push({
  15705. uid: b[j].userid,
  15706. sName: b[j].name,
  15707. });
  15708. } else if (b[j].type == 7 && b[j].atool != 50) {
  15709. let _work = {
  15710. userid: b[j].userid,
  15711. ateacher: b[j].ateacher,
  15712. wid: b[j].id,
  15713. works: b[j].content,
  15714. sName: b[j].name,
  15715. type: 5,
  15716. ttype:b[j].ttype,
  15717. time: b[j].time,
  15718. score: b[j].score,
  15719. img: b[j].img,
  15720. likesCount: likesCount,
  15721. commentCount: commentCount,
  15722. isLikes: isLikes,
  15723. commentJson: commentJson,
  15724. likeJson:likeJson
  15725. };
  15726. _worksStudent[i].push(_work);
  15727. _worksStudent2[i].push(_work);
  15728. this.isWorksS[i].push({
  15729. uid: b[j].userid,
  15730. sName: b[j].name,
  15731. });
  15732. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  15733. let _works = {
  15734. userid: b[j].userid,
  15735. ateacher: b[j].ateacher,
  15736. wid: b[j].id,
  15737. works: b[j].content,
  15738. sName: b[j].name,
  15739. type: 12,
  15740. ttype:b[j].ttype,
  15741. time: b[j].time,
  15742. score: b[j].score,
  15743. img: b[j].img,
  15744. likesCount: likesCount,
  15745. commentCount: commentCount,
  15746. isLikes: isLikes,
  15747. commentJson: commentJson,
  15748. likeJson:likeJson
  15749. };
  15750. if (this.isGroup) {
  15751. let isGw = 1;
  15752. for (
  15753. var groupI = 0;
  15754. groupI < this.courseGroup.group.length;
  15755. groupI++
  15756. ) {
  15757. let gid = this.courseGroup.group[groupI].id;
  15758. if (
  15759. this.courseGroupStudentUid[gid].indexOf(
  15760. b[j].userid
  15761. ) != -1
  15762. ) {
  15763. isGw = 2;
  15764. this.courseGroup.group[groupI].works[i].push(_works);
  15765. break;
  15766. }
  15767. }
  15768. if (isGw == 1) {
  15769. _worksStudent[i].push(_works);
  15770. }
  15771. } else {
  15772. _worksStudent[i].push(_works);
  15773. }
  15774. _worksStudent2[i].push(_works);
  15775. this.isWorksS[i].push({
  15776. uid: b[j].userid,
  15777. sName: b[j].name,
  15778. });
  15779. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  15780. let _works = {
  15781. userid: b[j].userid,
  15782. ateacher: b[j].ateacher,
  15783. wid: b[j].id,
  15784. works: b[j].content,
  15785. sName: b[j].name,
  15786. type: 0,
  15787. ttype:b[j].ttype,
  15788. time: b[j].time,
  15789. score: b[j].score,
  15790. img: b[j].img,
  15791. likesCount: likesCount,
  15792. commentCount: commentCount,
  15793. isLikes: isLikes,
  15794. commentJson: commentJson,
  15795. likeJson:likeJson
  15796. };
  15797. if (this.isGroup) {
  15798. let isGw = 1;
  15799. for (
  15800. var groupI = 0;
  15801. groupI < this.courseGroup.group.length;
  15802. groupI++
  15803. ) {
  15804. let gid = this.courseGroup.group[groupI].id;
  15805. if (
  15806. this.courseGroupStudentUid[gid].indexOf(
  15807. b[j].userid
  15808. ) != -1
  15809. ) {
  15810. isGw = 2;
  15811. this.courseGroup.group[groupI].works[i].push(_works);
  15812. break;
  15813. }
  15814. }
  15815. if (isGw == 1) {
  15816. _worksStudent[i].push(_works);
  15817. }
  15818. } else {
  15819. _worksStudent[i].push(_works);
  15820. }
  15821. _worksStudent2[i].push(_works);
  15822. this.isWorksS[i].push({
  15823. uid: b[j].userid,
  15824. sName: b[j].name,
  15825. });
  15826. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  15827. let _works = {
  15828. userid: b[j].userid,
  15829. ateacher: b[j].ateacher,
  15830. wid: b[j].id,
  15831. works: b[j].content,
  15832. sName: b[j].name,
  15833. type: 0,
  15834. ttype:b[j].ttype,
  15835. time: b[j].time,
  15836. score: b[j].score,
  15837. img: b[j].img,
  15838. likesCount: likesCount,
  15839. commentCount: commentCount,
  15840. isLikes: isLikes,
  15841. commentJson: commentJson,
  15842. likeJson:likeJson
  15843. };
  15844. if (this.isGroup) {
  15845. let isGw = 1;
  15846. for (
  15847. var groupI = 0;
  15848. groupI < this.courseGroup.group.length;
  15849. groupI++
  15850. ) {
  15851. let gid = this.courseGroup.group[groupI].id;
  15852. if (
  15853. this.courseGroupStudentUid[gid].indexOf(
  15854. b[j].userid
  15855. ) != -1
  15856. ) {
  15857. isGw = 2;
  15858. this.courseGroup.group[groupI].works[i].push(_works);
  15859. break;
  15860. }
  15861. }
  15862. if (isGw == 1) {
  15863. _worksStudent[i].push(_works);
  15864. }
  15865. } else {
  15866. _worksStudent[i].push(_works);
  15867. }
  15868. _worksStudent2[i].push(_works);
  15869. this.isWorksS[i].push({
  15870. uid: b[j].userid,
  15871. sName: b[j].name,
  15872. });
  15873. }
  15874. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15875. let _works = {
  15876. userid: b[j].userid,
  15877. ateacher: b[j].ateacher,
  15878. wid: b[j].id,
  15879. works: b[j].content,
  15880. sName: b[j].name,
  15881. type: 2,
  15882. ttype:b[j].ttype,
  15883. time: b[j].time,
  15884. score: b[j].score,
  15885. img: b[j].img,
  15886. likesCount: likesCount,
  15887. commentCount: commentCount,
  15888. isLikes: isLikes,
  15889. commentJson: commentJson,
  15890. likeJson:likeJson
  15891. };
  15892. if (this.isGroup) {
  15893. let isGw = 1;
  15894. for (
  15895. var groupI = 0;
  15896. groupI < this.courseGroup.group.length;
  15897. groupI++
  15898. ) {
  15899. let gid = this.courseGroup.group[groupI].id;
  15900. if (
  15901. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15902. -1
  15903. ) {
  15904. isGw = 2;
  15905. this.courseGroup.group[groupI].works[i].push(_works);
  15906. break;
  15907. }
  15908. }
  15909. if (isGw == 1) {
  15910. _worksStudent[i].push(_works);
  15911. }
  15912. } else {
  15913. _worksStudent[i].push(_works);
  15914. }
  15915. _worksStudent2[i].push(_works);
  15916. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15917. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  15918. let _works = {
  15919. userid: b[j].userid,
  15920. ateacher: b[j].ateacher,
  15921. wid: b[j].id,
  15922. works: b[j].content,
  15923. sName: b[j].name,
  15924. type: 20,
  15925. ttype:b[j].ttype,
  15926. time: b[j].time,
  15927. score: b[j].score,
  15928. img: b[j].img,
  15929. likesCount: likesCount,
  15930. commentCount: commentCount,
  15931. isLikes: isLikes,
  15932. commentJson: commentJson,
  15933. likeJson:likeJson
  15934. };
  15935. if (this.isGroup) {
  15936. let isGw = 1;
  15937. for (
  15938. var groupI = 0;
  15939. groupI < this.courseGroup.group.length;
  15940. groupI++
  15941. ) {
  15942. let gid = this.courseGroup.group[groupI].id;
  15943. if (
  15944. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15945. -1
  15946. ) {
  15947. isGw = 2;
  15948. this.courseGroup.group[groupI].works[i].push(_works);
  15949. break;
  15950. }
  15951. }
  15952. if (isGw == 1) {
  15953. _worksStudent[i].push(_works);
  15954. }
  15955. } else {
  15956. _worksStudent[i].push(_works);
  15957. }
  15958. _worksStudent2[i].push(_works);
  15959. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15960. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15961. //问卷
  15962. let _work = {
  15963. userid: b[j].userid,
  15964. ateacher: b[j].ateacher,
  15965. wid: b[j].id,
  15966. works: b[j].content,
  15967. sName: b[j].name,
  15968. type: 2,
  15969. ttype:b[j].ttype,
  15970. time: b[j].time,
  15971. score: b[j].score,
  15972. img: b[j].img,
  15973. likesCount: likesCount,
  15974. commentCount: commentCount,
  15975. isLikes: isLikes,
  15976. commentJson: commentJson,
  15977. likeJson:likeJson
  15978. };
  15979. _worksStudent[i].push(_work);
  15980. _worksStudent2[i].push(_work);
  15981. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15982. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15983. //选择题
  15984. let _work = {
  15985. userid: b[j].userid,
  15986. ateacher: b[j].ateacher,
  15987. wid: b[j].id,
  15988. works: b[j].content,
  15989. sName: b[j].name,
  15990. type: 8,
  15991. ttype:b[j].ttype,
  15992. time: b[j].time,
  15993. score: b[j].score,
  15994. img: b[j].img,
  15995. likesCount: likesCount,
  15996. commentCount: commentCount,
  15997. isLikes: isLikes,
  15998. commentJson: commentJson,
  15999. likeJson:likeJson
  16000. };
  16001. _worksStudent[i].push(_work);
  16002. _worksStudent2[i].push(_work);
  16003. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16004. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  16005. //选择题
  16006. let _work = {
  16007. userid: b[j].userid,
  16008. ateacher: b[j].ateacher,
  16009. wid: b[j].id,
  16010. works: b[j].content,
  16011. sName: b[j].name,
  16012. type: 9,
  16013. ttype:b[j].ttype,
  16014. time: b[j].time,
  16015. score: b[j].score,
  16016. img: b[j].img,
  16017. likesCount: likesCount,
  16018. commentCount: commentCount,
  16019. isLikes: isLikes,
  16020. commentJson: commentJson,
  16021. likeJson:likeJson
  16022. };
  16023. _worksStudent[i].push(_work);
  16024. _worksStudent2[i].push(_work);
  16025. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16026. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  16027. //选择题
  16028. let _work = {
  16029. userid: b[j].userid,
  16030. ateacher: b[j].ateacher,
  16031. wid: b[j].id,
  16032. works: b[j].content,
  16033. sName: b[j].name,
  16034. type: 10,
  16035. ttype:b[j].ttype,
  16036. time: b[j].time,
  16037. score: b[j].score,
  16038. img: b[j].img,
  16039. likesCount: likesCount,
  16040. commentCount: commentCount,
  16041. isLikes: isLikes,
  16042. commentJson: commentJson,
  16043. likeJson:likeJson
  16044. };
  16045. _worksStudent[i].push(_work);
  16046. _worksStudent2[i].push(_work);
  16047. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16048. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  16049. //选择题
  16050. let _work = {
  16051. userid: b[j].userid,
  16052. ateacher: b[j].ateacher,
  16053. wid: b[j].id,
  16054. works: b[j].content,
  16055. sName: b[j].name,
  16056. type: 13,
  16057. ttype:b[j].ttype,
  16058. time: b[j].time,
  16059. score: b[j].score,
  16060. img: b[j].img,
  16061. likesCount: likesCount,
  16062. commentCount: commentCount,
  16063. isLikes: isLikes,
  16064. commentJson: commentJson,
  16065. likeJson:likeJson
  16066. };
  16067. _worksStudent[i].push(_work);
  16068. _worksStudent2[i].push(_work);
  16069. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16070. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  16071. //选择题
  16072. let _work = {
  16073. userid: b[j].userid,
  16074. ateacher: b[j].ateacher,
  16075. wid: b[j].id,
  16076. works: b[j].content,
  16077. sName: b[j].name,
  16078. type: 16,
  16079. ttype:b[j].ttype,
  16080. time: b[j].time,
  16081. score: b[j].score,
  16082. img: b[j].img,
  16083. likesCount: likesCount,
  16084. commentCount: commentCount,
  16085. isLikes: isLikes,
  16086. commentJson: commentJson,
  16087. aiCode: b[j].aiCode,
  16088. teacherCode: b[j].teacherCode,
  16089. likeJson:likeJson
  16090. };
  16091. _worksStudent[i].push(_work);
  16092. _worksStudent2[i].push(_work);
  16093. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16094. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  16095. //英语口语
  16096. let _work = {
  16097. userid: b[j].userid,
  16098. ateacher: b[j].ateacher,
  16099. wid: b[j].id,
  16100. works: b[j].content,
  16101. sName: b[j].name,
  16102. type: 17,
  16103. ttype:b[j].ttype,
  16104. time: b[j].time,
  16105. score: b[j].score,
  16106. img: b[j].img,
  16107. likesCount: likesCount,
  16108. commentCount: commentCount,
  16109. isLikes: isLikes,
  16110. commentJson: commentJson,
  16111. likeJson:likeJson
  16112. };
  16113. _worksStudent[i].push(_work);
  16114. _worksStudent2[i].push(_work);
  16115. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16116. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  16117. //交互视频
  16118. let _work = {
  16119. userid: b[j].userid,
  16120. ateacher: b[j].ateacher,
  16121. wid: b[j].id,
  16122. works: b[j].content,
  16123. sName: b[j].name,
  16124. type: 14,
  16125. ttype:b[j].ttype,
  16126. time: b[j].time,
  16127. score: b[j].score,
  16128. img: b[j].img,
  16129. likesCount: likesCount,
  16130. commentCount: commentCount,
  16131. isLikes: isLikes,
  16132. commentJson: commentJson,
  16133. likeJson:likeJson
  16134. };
  16135. _worksStudent[i].push(_work);
  16136. _worksStudent2[i].push(_work);
  16137. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16138. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  16139. let _gindex = JSON.parse(b[j].content);
  16140. if (
  16141. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  16142. b[j].userid
  16143. ) != -1
  16144. ) {
  16145. let _work = {
  16146. userid: b[j].userid,
  16147. ateacher: b[j].ateacher,
  16148. wid: b[j].id,
  16149. works: _gindex.url,
  16150. sName: b[j].name,
  16151. type: _gindex.type,
  16152. ttype:b[j].ttype,
  16153. time: b[j].time,
  16154. score: b[j].score,
  16155. img: b[j].img,
  16156. likesCount: likesCount,
  16157. commentCount: commentCount,
  16158. isLikes: isLikes,
  16159. commentJson: commentJson,
  16160. likeJson:likeJson
  16161. };
  16162. _worksStudent[i][_gindex.groupIndex].push(_work);
  16163. _worksStudent2[i][_gindex.groupIndex].push(_work);
  16164. }
  16165. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16166. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  16167. let _work = {
  16168. userid: b[j].userid,
  16169. ateacher: b[j].ateacher,
  16170. wid: b[j].id,
  16171. works: b[j].content,
  16172. sName: b[j].name ? b[j].name : b[j].userid,
  16173. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  16174. ttype:b[j].ttype,
  16175. time: b[j].time,
  16176. score: b[j].score,
  16177. img: b[j].img,
  16178. likesCount: likesCount,
  16179. commentCount: commentCount,
  16180. isLikes: isLikes,
  16181. commentJson: commentJson,
  16182. likeJson:likeJson
  16183. };
  16184. _worksStudent[i].push(_work);
  16185. _worksStudent2[i].push(_work);
  16186. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16187. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  16188. let _work = {
  16189. userid: b[j].userid,
  16190. ateacher: b[j].ateacher,
  16191. wid: b[j].id,
  16192. works: b[j].content,
  16193. sName: b[j].name ? b[j].name : b[j].userid,
  16194. type: 12,
  16195. ttype:b[j].ttype,
  16196. time: b[j].time,
  16197. score: b[j].score,
  16198. img: b[j].img,
  16199. likesCount: likesCount,
  16200. commentCount: commentCount,
  16201. isLikes: isLikes,
  16202. commentJson: commentJson,
  16203. likeJson:likeJson
  16204. };
  16205. _worksStudent[i].push(_work);
  16206. _worksStudent2[i].push(_work);
  16207. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16208. } else if (
  16209. a[i].tool[0] == 57 &&
  16210. b[j].atool == 57 &&
  16211. b[j].type == 12
  16212. ) {
  16213. let _work = {
  16214. userid: b[j].userid,
  16215. ateacher: b[j].ateacher,
  16216. wid: b[j].id,
  16217. works: b[j].content,
  16218. sName: b[j].name ? b[j].name : b[j].userid,
  16219. type: 12,
  16220. ttype:b[j].ttype,
  16221. time: b[j].time,
  16222. score: b[j].score,
  16223. img: b[j].img,
  16224. likesCount: likesCount,
  16225. commentCount: commentCount,
  16226. isLikes: isLikes,
  16227. commentJson: commentJson,
  16228. likeJson:likeJson
  16229. };
  16230. _worksStudent[i].push(_work);
  16231. _worksStudent2[i].push(_work);
  16232. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16233. } else if (
  16234. a[i].tool[0] == 57 &&
  16235. b[j].atool == 57 &&
  16236. b[j].type == 15
  16237. ) {
  16238. let _work = {
  16239. userid: b[j].userid,
  16240. ateacher: b[j].ateacher,
  16241. wid: b[j].id,
  16242. works: b[j].content,
  16243. sName: b[j].name ? b[j].name : b[j].userid,
  16244. type: 15,
  16245. ttype:b[j].ttype,
  16246. time: b[j].time,
  16247. score: b[j].score,
  16248. img: b[j].img,
  16249. likesCount: likesCount,
  16250. commentCount: commentCount,
  16251. isLikes: isLikes,
  16252. commentJson: commentJson,
  16253. likeJson:likeJson
  16254. };
  16255. _worksStudent[i].push(_work);
  16256. _worksStudent2[i].push(_work);
  16257. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16258. }
  16259. }
  16260. }
  16261. if (_worksStudent[i] && _worksStudent[i].length) {
  16262. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  16263. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  16264. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  16265. var scoreA = parseFloat(jscoreA);
  16266. var scoreB = parseFloat(jscoreB);
  16267. if (scoreA == scoreB) {
  16268. return b.likesCount - a.likesCount;
  16269. }
  16270. return scoreB - scoreA;
  16271. });
  16272. if (this.isGroup) {
  16273. for (
  16274. var groupI = 0;
  16275. groupI < this.courseGroup.group.length;
  16276. groupI++
  16277. ) {
  16278. this.courseGroup.group[groupI].works[i] =
  16279. this.courseGroup.group[groupI].works[i].sort(function (
  16280. a,
  16281. b
  16282. ) {
  16283. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  16284. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  16285. var scoreA = parseFloat(jscoreA);
  16286. var scoreB = parseFloat(jscoreB);
  16287. if (scoreA == scoreB) {
  16288. return b.likesCount - a.likesCount;
  16289. }
  16290. return scoreB - scoreA;
  16291. });
  16292. }
  16293. }
  16294. }
  16295. }
  16296. this.timeWorkList = _worksStudent2;
  16297. for (var i = 0; i < a.length; i++) {
  16298. for (var j = 0; j < b.length; j++) {
  16299. var data = b[j];
  16300. if (i == b[j].tool) {
  16301. if (data.type == 2 || data.type == 8) {
  16302. for (var z = 0; z < this.checkJson[i].length; z++) {
  16303. this.checkJson[i][z].checkPerent = [];
  16304. this.checkJson[i][z].right = Math.round(
  16305. (this.checkJson[i][z].rightPerson.length /
  16306. parseInt(_worksStudent[i].length)) *
  16307. 100
  16308. );
  16309. let aaaa = this.checkJson[i][z];
  16310. for (
  16311. var k = 0;
  16312. k < this.checkJson[i][z].checkCount.length;
  16313. k++
  16314. ) {
  16315. this.checkJson[i][z].checkPerent.push(
  16316. Math.round(
  16317. (this.checkJson[i][z].checkCount[k] /
  16318. parseInt(_worksStudent[i].length)) *
  16319. 100
  16320. )
  16321. );
  16322. }
  16323. }
  16324. } else if (data.type == 9) {
  16325. for (var z = 0; z < this.checkJson[i].length; z++) {
  16326. this.checkJson[i][z].checkPerent = [];
  16327. this.checkJson[i][z].right = Math.round(
  16328. (this.checkJson[i][z].rightPerson.length /
  16329. this.checkJson[i][z].checkPerson.length) *
  16330. 100
  16331. );
  16332. }
  16333. }
  16334. }
  16335. }
  16336. }
  16337. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  16338. this.joinGroup(gindex);
  16339. }
  16340. this.worksStudent = _worksStudent;
  16341. this.selectWorksStudent();
  16342. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  16343. this.$nextTick(()=>{
  16344. setTimeout(()=>{
  16345. setTimeout(()=>{
  16346. this.panToolHeight('tool-'+ci);
  16347. }, 500)
  16348. }, 0)
  16349. })
  16350. }
  16351. this.selectSWorksLoading = false
  16352. })
  16353. .catch((err) => {
  16354. this.selectSWorksLoading = false
  16355. console.error(err);
  16356. });
  16357. },
  16358. pngToWhiteBg(file) {
  16359. const _file = file;
  16360. let read = new FileReader();
  16361. read.readAsDataURL(file); // 文件转base64
  16362. return new Promise((resolve, reject) => {
  16363. read.onload = (e) => {
  16364. let img = new Image();
  16365. img.src = e.target.result;
  16366. img.onload = async () => {
  16367. // 生成canvas
  16368. let canvas = document.createElement("canvas");
  16369. let context = canvas.getContext("2d");
  16370. // 绘制图片到canvas上
  16371. canvas.width = img.width;
  16372. canvas.height = img.height;
  16373. // 在canvas绘制前填充白色背景
  16374. context.fillStyle = "#fff";
  16375. context.fillRect(0, 0, canvas.width, canvas.height);
  16376. context.drawImage(img, 0, 0);
  16377. let base64 = canvas.toDataURL(file["type"], 1);
  16378. let newFile = this.dataUrlToFile(base64, _file);
  16379. resolve(newFile);
  16380. };
  16381. };
  16382. });
  16383. },
  16384. dataUrlToFile(dataurl, file) {
  16385. let arr = dataurl.split(","),
  16386. mime = arr[0].match(/:(.*?);/)[1],
  16387. bstr = atob(arr[1]),
  16388. n = bstr.length,
  16389. u8arr = new Uint8Array(n);
  16390. while (n--) {
  16391. u8arr[n] = bstr.charCodeAt(n);
  16392. }
  16393. // return new Blob([u8arr], { type: mime });
  16394. return new File([new Blob([u8arr], { type: mime })], file.name, {
  16395. type: mime,
  16396. });
  16397. },
  16398. async beforeUpload1(event, type, i) {
  16399. // this.$message.success('进入上传')
  16400. var file = "";
  16401. if (type == 5) {
  16402. file = event;
  16403. } else {
  16404. file = event.target.files[0];
  16405. }
  16406. var credentials = {
  16407. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16408. secretAccessKey: "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",
  16409. }; //秘钥形式的登录上传
  16410. window.AWS.config.update(credentials);
  16411. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16412. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16413. var _this = this;
  16414. _this.progress = 0;
  16415. _this.proVisible = true;
  16416. _this.isFinishSize = 0;
  16417. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  16418. var b = [
  16419. "DOC",
  16420. "DOCX",
  16421. "DOCM",
  16422. "DOTM",
  16423. "DOTX",
  16424. "PPTX",
  16425. "PPSX",
  16426. "PPT",
  16427. "PPS",
  16428. "PPTM",
  16429. "POTM",
  16430. "PPAM",
  16431. "POTX",
  16432. "PPSM",
  16433. ];
  16434. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16435. var photoA = [
  16436. "BMP",
  16437. "GIF",
  16438. "PNG",
  16439. "JPEG",
  16440. "JPEG",
  16441. "JPG",
  16442. "TIF",
  16443. "PCX",
  16444. "TGA",
  16445. "EXIF",
  16446. "FPX",
  16447. "SVG",
  16448. "APNG",
  16449. ];
  16450. // if (
  16451. // b.indexOf(
  16452. // file.name
  16453. // .split(".")
  16454. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16455. // ) != -1
  16456. // ) {
  16457. // if (file.size / 1024 / 1024 > 10) {
  16458. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  16459. // return;
  16460. // }
  16461. // } else if (
  16462. // excelA.indexOf(
  16463. // file.name
  16464. // .split(".")
  16465. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16466. // ) != "-1"
  16467. // ) {
  16468. // if (file.size / 1024 / 1024 > 5) {
  16469. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  16470. // return;
  16471. // }
  16472. // }
  16473. if (
  16474. photoA.indexOf(
  16475. file.name
  16476. .split(".")
  16477. [file.name.split(".").length - 1].toLocaleUpperCase()
  16478. ) != -1 &&
  16479. type != 4
  16480. ) {
  16481. // const blob = await imageConversion.compress(file, 0.8)
  16482. file = await this.pngToWhiteBg(file);
  16483. const blob = await imageConversion.compressAccurately(file, 256);
  16484. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16485. file = new File([blob], file.name, { type: file.type });
  16486. }
  16487. if (file) {
  16488. var params = {
  16489. Key:
  16490. file.name.split(".")[0] +
  16491. new Date().getTime() +
  16492. "." +
  16493. file.name.split(".")[file.name.split(".").length - 1],
  16494. ContentType: file.type,
  16495. Body: file,
  16496. "Access-Control-Allow-Credentials": "*",
  16497. ACL: "public-read",
  16498. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16499. var options = {
  16500. // partSize: 2048 * 1024 * 1024,
  16501. partSize: 1024 * 1024 * 1024,
  16502. queueSize: 2,
  16503. leavePartsOnError: true,
  16504. };
  16505. bucket
  16506. .upload(params, options)
  16507. .on("httpUploadProgress", function (evt) {
  16508. //这里可以写进度条
  16509. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16510. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  16511. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  16512. })
  16513. .send(function (err, data) {
  16514. _this.progress = 100;
  16515. _this.isFinishSize = _this.isAllSize;
  16516. setTimeout(() => {
  16517. _this.proVisible = false;
  16518. }, 1000);
  16519. if (err) {
  16520. var a = _this.$refs.upload1.uploadFiles;
  16521. a.splice(a.length - 1, a.length);
  16522. _this.$message.error("上传失败");
  16523. } else {
  16524. // _this.$message.success('上传成功')
  16525. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16526. var c = [
  16527. "AVI",
  16528. "NAVI",
  16529. "MPEG",
  16530. "ASF",
  16531. "MOV",
  16532. "WMV",
  16533. "3GP",
  16534. "RM",
  16535. "RMVB",
  16536. "FLV",
  16537. "F4V",
  16538. "H.264",
  16539. "H.265",
  16540. "REAL VIDEO",
  16541. "MKV",
  16542. "WebM",
  16543. "HDDVD",
  16544. "MP4",
  16545. "MPG",
  16546. "M4V",
  16547. "MGV",
  16548. "OGV",
  16549. "QTM",
  16550. "STR",
  16551. "AMC",
  16552. "DVX",
  16553. "EVO",
  16554. "DAT",
  16555. "OGG",
  16556. "OGM",
  16557. ];
  16558. if (type == 1) {
  16559. _this.studyJuri[0].cover.push({
  16560. name: file.name,
  16561. url: data.Location,
  16562. uid: file.uid,
  16563. });
  16564. if (
  16565. c.indexOf(
  16566. _this.studyJuri[0].cover[0].url
  16567. .split(".")
  16568. [
  16569. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16570. ].toLocaleUpperCase()
  16571. ) != -1
  16572. ) {
  16573. _this.fileType = 2;
  16574. } else if (
  16575. b.indexOf(
  16576. _this.studyJuri[0].cover[0].url
  16577. .split(".")
  16578. [
  16579. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16580. ].toLocaleUpperCase()
  16581. ) != -1
  16582. ) {
  16583. _this.fileType = 1;
  16584. } else if (
  16585. photoA.indexOf(
  16586. _this.studyJuri[0].cover[0].url
  16587. .split(".")
  16588. [
  16589. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16590. ].toLocaleUpperCase()
  16591. ) != -1
  16592. ) {
  16593. _this.fileType = 0;
  16594. } else {
  16595. _this.fileType = 3;
  16596. }
  16597. _this.imgChange(null, null, type);
  16598. } else if (type == 2) {
  16599. _this.upToolImg = data.Location;
  16600. _this.imgChange(null, null, type);
  16601. _this.addCourseWorks(i);
  16602. } else if (type == 4) {
  16603. _this.addPz("3", data.Location);
  16604. } else if (type == 5) {
  16605. _this.addImgDrawImG(data.Location);
  16606. } else if (type == 6) {
  16607. var _ftype = 1;
  16608. if (
  16609. c.indexOf(
  16610. data.Location.split(".")[
  16611. data.Location.split(".").length - 1
  16612. ].toLocaleUpperCase()
  16613. ) != -1
  16614. ) {
  16615. _ftype = 5;
  16616. } else if (
  16617. b.indexOf(
  16618. data.Location.split(".")[
  16619. data.Location.split(".").length - 1
  16620. ].toLocaleUpperCase()
  16621. ) != -1
  16622. ) {
  16623. _ftype = 4;
  16624. } else {
  16625. _ftype = 1;
  16626. }
  16627. _this.plworkFile.push({
  16628. name: file.name,
  16629. url: data.Location,
  16630. uid: file.uid,
  16631. fileType: _ftype,
  16632. username:
  16633. _this.plworkFile.length > 10
  16634. ? _this.plworkFile.length + 1
  16635. : "0" + (_this.plworkFile.length + 1),
  16636. });
  16637. } else if (type == 7) {
  16638. _this.addCourseWorksGong(i, data.Location, 32);
  16639. } else if (type == 8) {
  16640. _this.addCourseWorksGong(i, data.Location, 57);
  16641. }
  16642. _this.imgChange(null, null, type);
  16643. console.log(data.Location);
  16644. // _this.$message.success('上传成功'+data.Location)
  16645. }
  16646. });
  16647. }
  16648. },
  16649. async beforeUpload3(event, type, i) {
  16650. // this.$message.success('进入上传')
  16651. let file = "";
  16652. let cfindex2 = 0;
  16653. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  16654. file = event.target.files[cfindex];
  16655. var credentials = {
  16656. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16657. secretAccessKey: "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",
  16658. }; //秘钥形式的登录上传
  16659. window.AWS.config.update(credentials);
  16660. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16661. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16662. var _this = this;
  16663. // _this.progress = 0;
  16664. _this.proVisible2 = true;
  16665. var b = [
  16666. "DOC",
  16667. "DOCX",
  16668. "DOCM",
  16669. "DOTM",
  16670. "DOTX",
  16671. "PPTX",
  16672. "PPSX",
  16673. "PPT",
  16674. "PPS",
  16675. "PPTM",
  16676. "POTM",
  16677. "PPAM",
  16678. "POTX",
  16679. "PPSM",
  16680. ];
  16681. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16682. var photoA = [
  16683. "BMP",
  16684. "GIF",
  16685. "PNG",
  16686. "JPEG",
  16687. "JPG",
  16688. "TIF",
  16689. "PCX",
  16690. "TGA",
  16691. "EXIF",
  16692. "FPX",
  16693. "SVG",
  16694. "APNG",
  16695. ];
  16696. if (
  16697. photoA.indexOf(
  16698. file.name
  16699. .split(".")
  16700. [file.name.split(".").length - 1].toLocaleUpperCase()
  16701. ) != -1 &&
  16702. type != 4
  16703. ) {
  16704. // const blob = await imageConversion.compress(file, 0.8)
  16705. file = await this.pngToWhiteBg(file);
  16706. const blob = await imageConversion.compressAccurately(file, 256);
  16707. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16708. file = new File([blob], file.name, { type: file.type });
  16709. }
  16710. if (file) {
  16711. var params = {
  16712. Key:
  16713. file.name.split(".")[0] +
  16714. new Date().getTime() +
  16715. "." +
  16716. file.name.split(".")[file.name.split(".").length - 1],
  16717. ContentType: file.type,
  16718. Body: file,
  16719. "Access-Control-Allow-Credentials": "*",
  16720. ACL: "public-read",
  16721. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16722. var options = {
  16723. // partSize: 2048 * 1024 * 1024,
  16724. partSize: 1024 * 1024 * 1024,
  16725. queueSize: 2,
  16726. leavePartsOnError: true,
  16727. };
  16728. bucket
  16729. .upload(params, options)
  16730. .on("httpUploadProgress", function (evt) {
  16731. //这里可以写进度条
  16732. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16733. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16734. })
  16735. .send(function (err, data) {
  16736. // _this.progress = 100;
  16737. cfindex2++;
  16738. setTimeout(() => {
  16739. if (
  16740. cfindex2 == event.target.files.length - 1 ||
  16741. cfindex2 > event.target.files.length - 1
  16742. ) {
  16743. _this.proVisible2 = false;
  16744. }
  16745. }, 1000);
  16746. if (err) {
  16747. var a = _this.$refs.upload1.uploadFiles;
  16748. a.splice(a.length - 1, a.length);
  16749. _this.$message.error("上传失败");
  16750. } else {
  16751. // _this.$message.success('上传成功')
  16752. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16753. var c = [
  16754. "AVI",
  16755. "NAVI",
  16756. "MPEG",
  16757. "ASF",
  16758. "MOV",
  16759. "WMV",
  16760. "3GP",
  16761. "RM",
  16762. "RMVB",
  16763. "FLV",
  16764. "F4V",
  16765. "H.264",
  16766. "H.265",
  16767. "REAL VIDEO",
  16768. "MKV",
  16769. "WebM",
  16770. "HDDVD",
  16771. "MP4",
  16772. "MPG",
  16773. "M4V",
  16774. "MGV",
  16775. "OGV",
  16776. "QTM",
  16777. "STR",
  16778. "AMC",
  16779. "DVX",
  16780. "EVO",
  16781. "DAT",
  16782. "OGG",
  16783. "OGM",
  16784. ];
  16785. if (type == 1) {
  16786. _this.studyJuri[0].cover.push({
  16787. name: file.name,
  16788. url: data.Location,
  16789. uid: file.uid,
  16790. });
  16791. if (
  16792. c.indexOf(
  16793. _this.studyJuri[0].cover[0].url
  16794. .split(".")
  16795. [
  16796. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16797. ].toLocaleUpperCase()
  16798. ) != -1
  16799. ) {
  16800. _this.fileType = 2;
  16801. } else if (
  16802. b.indexOf(
  16803. _this.studyJuri[0].cover[0].url
  16804. .split(".")
  16805. [
  16806. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16807. ].toLocaleUpperCase()
  16808. ) != -1
  16809. ) {
  16810. _this.fileType = 1;
  16811. } else {
  16812. _this.fileType = 0;
  16813. }
  16814. _this.imgChange(null, null, type);
  16815. } else if (type == 2) {
  16816. _this.upToolImg = data.Location;
  16817. _this.imgChange(null, null, type);
  16818. _this.addCourseWorks(i);
  16819. } else if (type == 4) {
  16820. _this.addPz("3", data.Location);
  16821. } else if (type == 5) {
  16822. _this.addImgDrawImG(data.Location);
  16823. } else if (type == 6) {
  16824. var _ftype = 1;
  16825. if (
  16826. c.indexOf(
  16827. data.Location.split(".")[
  16828. data.Location.split(".").length - 1
  16829. ].toLocaleUpperCase()
  16830. ) != -1
  16831. ) {
  16832. _ftype = 5;
  16833. } else if (
  16834. b.indexOf(
  16835. data.Location.split(".")[
  16836. data.Location.split(".").length - 1
  16837. ].toLocaleUpperCase()
  16838. ) != -1
  16839. ) {
  16840. _ftype = 4;
  16841. } else {
  16842. _ftype = 1;
  16843. }
  16844. _this.plworkFile.push({
  16845. name: file.name,
  16846. url: data.Location,
  16847. uid: file.uid,
  16848. fileType: _ftype,
  16849. username:
  16850. _this.plworkFile.length + 1 > 9
  16851. ? _this.plworkFile.length + 1
  16852. : "0" + (_this.plworkFile.length + 1),
  16853. });
  16854. }
  16855. _this.imgChange(null, null, type);
  16856. console.log(data.Location);
  16857. // _this.$message.success('上传成功'+data.Location)
  16858. }
  16859. });
  16860. }
  16861. }
  16862. },
  16863. beforeUpload2(event, type) {
  16864. var file = event.target.files[0];
  16865. var credentials = {
  16866. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16867. secretAccessKey: "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",
  16868. }; //秘钥形式的登录上传
  16869. window.AWS.config.update(credentials);
  16870. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16871. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16872. var _this = this;
  16873. _this.progress = 0;
  16874. _this.proVisible = true;
  16875. if (file) {
  16876. var params = {
  16877. Key:
  16878. file.name.split(".")[0] +
  16879. new Date().getTime() +
  16880. "." +
  16881. file.name.split(".")[file.name.split(".").length - 1],
  16882. ContentType: file.type,
  16883. Body: file,
  16884. "Access-Control-Allow-Credentials": "*",
  16885. ACL: "public-read",
  16886. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16887. var options = {
  16888. partSize: 2048 * 1024 * 1024,
  16889. queueSize: 2,
  16890. leavePartsOnError: true,
  16891. };
  16892. bucket
  16893. .upload(params, options)
  16894. .on("httpUploadProgress", function (evt) {
  16895. //这里可以写进度条
  16896. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16897. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16898. })
  16899. .send(function (err, data) {
  16900. _this.progress = 100;
  16901. setTimeout(() => {
  16902. _this.proVisible = false;
  16903. }, 1000);
  16904. if (err) {
  16905. var a = _this.$refs.upload1.uploadFiles;
  16906. a.splice(a.length - 1, a.length);
  16907. _this.$message.error("上传失败");
  16908. } else {
  16909. if (type == 2) {
  16910. _this.studyJuri[0].upVedio.push({
  16911. name: file.name,
  16912. url: data.Location,
  16913. uid: file.uid,
  16914. });
  16915. _this.imgChange(null, null, type);
  16916. } else if (type == 3) {
  16917. _this.studyJuri[0].upFile.push({
  16918. name: file.name,
  16919. url: data.Location,
  16920. uid: file.uid,
  16921. });
  16922. _this.imgChange(null, null, type);
  16923. }
  16924. console.log(data.Location);
  16925. }
  16926. });
  16927. }
  16928. },
  16929. allScrell() {
  16930. window.topU.postMessage({ allScreen: this.screenType }, "*");
  16931. },
  16932. nextOrpreSteps(t) {
  16933. if (this.IsFollow && this.tType == 2) {
  16934. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16935. return;
  16936. }
  16937. var b = this.chapInfoList.length - 1;
  16938. if (t == 0) {
  16939. if (this.courseType == 0) {
  16940. if (this.taskCount == 0) {
  16941. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16942. if (this.IsLookOpen) {
  16943. if (
  16944. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16945. ) {
  16946. if (
  16947. this.courseDetail.userid != this.userid &&
  16948. (!this.courseDetail.course_teacher ||
  16949. (this.courseDetail.course_teacher &&
  16950. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16951. ) {
  16952. this.$message.error("任务未解锁");
  16953. } else {
  16954. this.$message.error("上一任务未解锁");
  16955. }
  16956. return;
  16957. }
  16958. }
  16959. this.navList[this.courseType].isOpen = false;
  16960. this.courseType = b;
  16961. this.taskCount =
  16962. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16963. .length - 1;
  16964. this.navList[this.courseType].isOpen = true;
  16965. } else {
  16966. this.taskCount--;
  16967. }
  16968. } else {
  16969. if (this.taskCount == 0) {
  16970. this.navList[this.courseType].isOpen = false;
  16971. this.courseType--;
  16972. this.taskCount =
  16973. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16974. .length - 1;
  16975. this.navList[this.courseType].isOpen = true;
  16976. } else {
  16977. this.taskCount--;
  16978. }
  16979. }
  16980. } else {
  16981. if (this.courseType == b) {
  16982. if (
  16983. this.taskCount ==
  16984. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16985. 1
  16986. ) {
  16987. this.navList[this.courseType].isOpen = false;
  16988. this.courseType = 0;
  16989. this.taskCount = 0;
  16990. this.navList[this.courseType].isOpen = true;
  16991. } else {
  16992. var bbb = parseInt(this.taskCount) + 1;
  16993. if (
  16994. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16995. .isLook &&
  16996. this.courseDetail.userid != this.userid &&
  16997. (!this.courseDetail.course_teacher ||
  16998. (this.courseDetail.course_teacher &&
  16999. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  17000. this.IsLookOpen
  17001. ) {
  17002. this.$message.error("任务未解锁");
  17003. return;
  17004. }
  17005. this.taskCount++;
  17006. if (this.IsLookOpen) {
  17007. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17008. this.taskCount
  17009. ].isLook = true;
  17010. this.addCourseState(3);
  17011. }
  17012. }
  17013. } else {
  17014. if (
  17015. this.taskCount ==
  17016. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  17017. 1
  17018. ) {
  17019. var bbb = parseInt(this.courseType) + 1;
  17020. if (
  17021. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  17022. this.courseDetail.userid != this.userid &&
  17023. (!this.courseDetail.course_teacher ||
  17024. (this.courseDetail.course_teacher &&
  17025. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  17026. this.IsLookOpen
  17027. ) {
  17028. this.$message.error("任务未解锁");
  17029. return;
  17030. }
  17031. this.navList[this.courseType].isOpen = false;
  17032. this.courseType++;
  17033. this.taskCount = 0;
  17034. this.navList[this.courseType].isOpen = true;
  17035. } else {
  17036. var bbb = parseInt(this.taskCount) + 1;
  17037. if (
  17038. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  17039. .isLook &&
  17040. this.courseDetail.userid != this.userid &&
  17041. (!this.courseDetail.course_teacher ||
  17042. (this.courseDetail.course_teacher &&
  17043. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  17044. this.IsLookOpen
  17045. ) {
  17046. this.$message.error("任务未解锁");
  17047. return;
  17048. }
  17049. this.taskCount++;
  17050. }
  17051. if (this.IsLookOpen) {
  17052. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17053. this.taskCount
  17054. ].isLook = true;
  17055. this.addCourseState(3);
  17056. }
  17057. }
  17058. // if (
  17059. // this.taskCount ==
  17060. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  17061. // ) {
  17062. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  17063. // } else {
  17064. // this.taskCount++;
  17065. // }
  17066. }
  17067. document.scrollingElement.scrollTop = 0;
  17068. // this.showType = 7;
  17069. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17070. // if (this.vedio[this.taskCount].length > 0) {
  17071. // var a =
  17072. // document.getElementsByClassName("box_course")[this.taskCount]
  17073. // .offsetHeight;
  17074. // document.getElementsByClassName("vedioList")[
  17075. // this.taskCount
  17076. // ].style.height = a + "px";
  17077. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  17078. // a - 40 + "px";
  17079. // }
  17080. this.isNoHomeWork = false;
  17081. (this.studyJuri = [
  17082. {
  17083. content: "",
  17084. cover: [],
  17085. upVedio: [],
  17086. upFile: [],
  17087. },
  17088. ]),
  17089. (this.radio = []);
  17090. this.isClickNav = "";
  17091. this.selectPz();
  17092. this.getHomeWork();
  17093. this.getCourseDetail(2);
  17094. this.$forceUpdate();
  17095. if ((this.courseDetail.userid == this.userid ||
  17096. (this.courseDetail.course_teacher &&
  17097. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  17098. this.setCTask();
  17099. }
  17100. },
  17101. openTask(s, n, i) {
  17102. if (this.IsFollow && this.tType == 2) {
  17103. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  17104. return;
  17105. }
  17106. if (this.IsLookOpen &&
  17107. this.courseDetail.userid != this.userid &&
  17108. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  17109. if (
  17110. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  17111. this.courseDetail.userid != this.userid &&
  17112. (!this.courseDetail.course_teacher ||
  17113. (this.courseDetail.course_teacher &&
  17114. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  17115. ) {
  17116. this.$message.error("任务未解锁");
  17117. return;
  17118. }
  17119. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  17120. if (
  17121. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  17122. .isLook
  17123. ) {
  17124. this.$message.error("上一任务未解锁");
  17125. return;
  17126. }
  17127. } else if (s > this.courseType) {
  17128. if (n > 0) {
  17129. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  17130. this.$message.error("上一任务未解锁");
  17131. return;
  17132. }
  17133. } else {
  17134. if (
  17135. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  17136. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  17137. ].isLook
  17138. ) {
  17139. this.$message.error("上一任务未解锁");
  17140. return;
  17141. }
  17142. }
  17143. }
  17144. }
  17145. if (this.navList[s].task[n].isOpen == true) {
  17146. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  17147. return;
  17148. }
  17149. let flag = this.courseType==s;
  17150. this.courseType = s;
  17151. this.navId = i;
  17152. this.taskCount = n;
  17153. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  17154. this.navList[this.courseType].task[this.taskCount].isOpen =
  17155. !this.navList[this.courseType].task[this.taskCount].isOpen;
  17156. if (this.IsLookOpen) {
  17157. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17158. this.taskCount
  17159. ].isLook = true;
  17160. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  17161. this.addCourseState(3,yym);
  17162. }
  17163. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  17164. this.isCloseList[ci].isClose = 0;
  17165. this.isCloseList[ci].isCloseBoolean = false;
  17166. this.$nextTick(()=>{
  17167. setTimeout(()=>{
  17168. setTimeout(()=>{
  17169. this.panToolHeight('tool-'+ci);
  17170. }, 0)
  17171. }, 0)
  17172. })
  17173. }
  17174. // this.showType = 7;
  17175. this.isNoHomeWork = false;
  17176. (this.studyJuri = [
  17177. {
  17178. content: "",
  17179. cover: [],
  17180. upVedio: [],
  17181. upFile: [],
  17182. },
  17183. ]),
  17184. (this.radio = []);
  17185. document.scrollingElement.scrollTop = 0;
  17186. // setTimeout(() => {
  17187. // let a = document.getElementById(i);
  17188. // if (a.offsetTop - 110 == 0) {
  17189. // window.scrollTo(0, 0);
  17190. // } else {
  17191. // window.scrollTo(0, a.offsetTop);
  17192. // }
  17193. // }, 0);
  17194. for (var z = 0; z < this.navList.length; z++) {
  17195. for (var q = 0; q < this.navList[z].task.length; q++) {
  17196. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  17197. this.navList[z].task[q].tool[w].isTool = false;
  17198. }
  17199. }
  17200. }
  17201. this.selectPz();
  17202. this.getHomeWork();
  17203. this.getCourseDetail(2);
  17204. if ((this.courseDetail.userid == this.userid ||
  17205. (this.courseDetail.course_teacher &&
  17206. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  17207. this.setCTask();
  17208. }
  17209. if(flag){
  17210. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  17211. }else{
  17212. 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>`)
  17213. }
  17214. },
  17215. get(i) {
  17216. if (this.IsFollow && this.tType == 2) {
  17217. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  17218. return;
  17219. }
  17220. // for(var k=0;k<this.navList.length;k++){
  17221. // this.navList[k].isOpen = false;
  17222. // }
  17223. // this.navList[i].isOpen = true;
  17224. this.navList[i].isOpen = !this.navList[i].isOpen;
  17225. if (this.navList[i].isOpen) {
  17226. this.openTask(i, 0, i + "-0");
  17227. }
  17228. },
  17229. addQuestion() {
  17230. this.answerList.push({
  17231. answerTitle: this.answerQ,
  17232. answer: this.questionAnswer,
  17233. });
  17234. let params = [
  17235. {
  17236. uid: this.userid,
  17237. cid: this.id,
  17238. stage: this.courseType,
  17239. task: this.taskCount,
  17240. tool: this.toolindex,
  17241. content: JSON.stringify(this.answerList),
  17242. type: 3,
  17243. },
  17244. ];
  17245. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17246. this.homeWorkLoading = true
  17247. this.ajax
  17248. .post(this.$store.state.api + "addCourseWorks", params)
  17249. .then((res) => {
  17250. this.$message({
  17251. message: "提交成功",
  17252. type: "success",
  17253. });
  17254. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, "success")
  17255. setTimeout(() => {
  17256. this.homeWorkLoading = false
  17257. }, 500);
  17258. this.answerList = [];
  17259. this.answerDialogVisible = false;
  17260. this.selectStudent();
  17261. this.selectSWorks();
  17262. this.selectSLook();
  17263. })
  17264. .catch((err) => {
  17265. this.$message.error("提交失败");
  17266. console.error(err);
  17267. setTimeout(() => {
  17268. this.homeWorkLoading = false
  17269. }, 500);
  17270. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
  17271. });
  17272. },
  17273. addQuestionTeacher() {
  17274. this.answerList.push({
  17275. answerTitle: this.answerQ,
  17276. answer: this.questionAnswer,
  17277. });
  17278. let params = [
  17279. {
  17280. uid: this.sStudent.userid,
  17281. cid: this.id,
  17282. stage: this.courseType,
  17283. task: this.taskCount,
  17284. tool: this.toolindex,
  17285. content: JSON.stringify(this.answerList),
  17286. type: 3,
  17287. ateacher: this.userid,
  17288. },
  17289. ];
  17290. this.ajax
  17291. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  17292. .then((res) => {
  17293. this.$message({
  17294. message: "提交成功",
  17295. type: "success",
  17296. });
  17297. this.answerList = [];
  17298. this.questionAnswer = "";
  17299. this.answerDialogVisibleTeacher = false;
  17300. this.selectStudent();
  17301. this.selectSWorks();
  17302. this.selectSLook();
  17303. })
  17304. .catch((err) => {
  17305. this.$message.error("提交失败");
  17306. console.error(err);
  17307. });
  17308. },
  17309. refreshCourse() {
  17310. // window.location.reload();
  17311. this.navList = [];
  17312. this.getCourseDetail(1);
  17313. },
  17314. getCourseDetail(type, gindex) {
  17315. let loading;
  17316. if (type != 2) {
  17317. loading = this.$loading.service({
  17318. background: "rgba(255, 255, 255, 0.7)",
  17319. target: document.querySelector(".student_table"),
  17320. });
  17321. }
  17322. this.downLoading = false
  17323. // this.navList[0].isOpen = false;
  17324. // this.navList[this.courseType].isOpen = true;
  17325. // this.courseType = this.courseTypeLine;
  17326. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17327. let params = {
  17328. courseId: this.id,
  17329. };
  17330. this.ajax
  17331. .get(this.$store.state.api + "selectCourseDetail3", params)
  17332. .then((res) => {
  17333. if ((this.courseDetail.userid == this.userid ||
  17334. (this.courseDetail.course_teacher &&
  17335. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  17336. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  17337. }
  17338. if (type != 2) {
  17339. loading.close();
  17340. if (
  17341. this.courseType >
  17342. JSON.parse(res.data[0][0].chapters).length - 1
  17343. ) {
  17344. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  17345. }
  17346. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17347. .chapterInfo[0].taskJson;
  17348. var b = [
  17349. "AVI",
  17350. "NAVI",
  17351. "MPEG",
  17352. "ASF",
  17353. "MOV",
  17354. "WMV",
  17355. "3GP",
  17356. "RM",
  17357. "RMVB",
  17358. "FLV",
  17359. "F4V",
  17360. "H.264",
  17361. "H.265",
  17362. "REAL VIDEO",
  17363. "MKV",
  17364. "WebM",
  17365. "HDDVD",
  17366. "MP4",
  17367. "MPG",
  17368. "M4V",
  17369. "MGV",
  17370. "OGV",
  17371. "QTM",
  17372. "STR",
  17373. "AMC",
  17374. "DVX",
  17375. "EVO",
  17376. "DAT",
  17377. "OGG",
  17378. "OGM",
  17379. "MP3",
  17380. ];
  17381. let _chapterData = [];
  17382. for (var i = 0; i < a.length; i++) {
  17383. var c = a[i].chapterData;
  17384. this.vedio[i] = [];
  17385. this.textList[i] = [];
  17386. this.lineList[i] = [];
  17387. this.chapToolList[i] = [];
  17388. this.file[i] = [];
  17389. this.fileC[i] = [];
  17390. _chapterData[i] = c.filter((el) => {
  17391. return el.type != 12;
  17392. });
  17393. this.fileC[i] = c.filter((el) => {
  17394. return el.type == 12;
  17395. });
  17396. if (this.tType == 2) {
  17397. if (this.fileC[i].length) {
  17398. let yym1 = this.fileC[i].filter(e=>{
  17399. if(!converter(e.name).includes(converter("教案"))){
  17400. return e
  17401. }
  17402. })
  17403. this.fileC[i] = yym1
  17404. }
  17405. }
  17406. // else if (c[j].type == 12) {
  17407. // this.fileC[i].push(c[j]);
  17408. // }
  17409. for (var j = 0; j < c.length; j++) {
  17410. if (c[j].type == 7) {
  17411. this.chapToolList[i].push(c[j]);
  17412. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  17413. this.lineList[i].push(c[j]);
  17414. } else if (c[j].type == 6) {
  17415. this.textList[i].push(c[j]);
  17416. } else {
  17417. if (
  17418. b.indexOf(
  17419. c[j].url
  17420. .split(".")
  17421. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17422. ) != -1
  17423. ) {
  17424. this.vedio[i].push(c[j]);
  17425. } else {
  17426. this.file[i].push(c[j]);
  17427. }
  17428. }
  17429. }
  17430. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17431. d.sources[0].src =
  17432. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17433. this.playerO[i] = d;
  17434. }
  17435. this.courseDetail = res.data[0][0];
  17436. if(this.tType == 2){
  17437. this.tcid = this.arrayToArray(
  17438. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17439. this.classId ? this.classId.split(",") : []
  17440. ).join(",");
  17441. }else{
  17442. this.tcid = this.arrayToArray(
  17443. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17444. this.tcid2 ? this.tcid2.split(",") : []
  17445. ).join(",");
  17446. }
  17447. this.evalua = res.data[0][0].evaId;
  17448. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  17449. this.courseType
  17450. ];
  17451. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17452. if (this.tcid && res.data[1].length) {
  17453. let _inviteA = [];
  17454. for (var ik = 0; ik < res.data[1].length; ik++) {
  17455. _inviteA.push({
  17456. cid: res.data[1][ik].classid,
  17457. ic: res.data[1][ik].code,
  17458. });
  17459. }
  17460. for (var ik = 0; ik < _inviteA.length; ik++) {
  17461. if (
  17462. this.arrayToArray(
  17463. _inviteA[ik].cid.split(","),
  17464. this.tcid.split(",")
  17465. ).length
  17466. ) {
  17467. this.inviteCode = _inviteA[ik].ic;
  17468. break;
  17469. }
  17470. }
  17471. }
  17472. for (var l = 0; l < this.chapInfoList.length; l++) {
  17473. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17474. for (var m = 0; m < w.length; m++) {
  17475. w[m].id = l + "-" + m;
  17476. }
  17477. }
  17478. let taskCount = 0;
  17479. if (
  17480. _chapterData[taskCount].length &&
  17481. _chapterData[taskCount][0].type == 2
  17482. ) {
  17483. this.showType = 0;
  17484. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  17485. } else {
  17486. if (_chapterData[taskCount].length > 0) {
  17487. let _url = _chapterData[taskCount][0].url;
  17488. if (
  17489. _chapterData[taskCount][0].type == 8 ||
  17490. _chapterData[taskCount][0].type == 14 ||
  17491. _chapterData[taskCount][0].type == 15
  17492. ) {
  17493. this.showType = 2;
  17494. if (
  17495. _url.indexOf("https://") == -1 &&
  17496. _url.indexOf("http://") == -1
  17497. ) {
  17498. _url = "https://" + _url;
  17499. }
  17500. this.pptImgUrl1 = _url;
  17501. } else if (_chapterData[taskCount][0].type == 3) {
  17502. if (
  17503. _url
  17504. .split(".")
  17505. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17506. ) {
  17507. this.showType = 3;
  17508. this.pptImgUrl1 = _url;
  17509. } else if (
  17510. this.isAssetTypeAnImage(
  17511. _url
  17512. .split(".")
  17513. [_url.split(".").length - 1].toLocaleLowerCase()
  17514. )
  17515. ) {
  17516. this.showType = 4;
  17517. this.pptImgUrl1 = _url;
  17518. } else {
  17519. this.showType = 2;
  17520. this.pptImgUrl1 =
  17521. "https://view.officeapps.live.com/op/view.aspx?src=" +
  17522. encodeURIComponent(_url);
  17523. }
  17524. } else if (_chapterData[taskCount][0].type == 13) {
  17525. this.showType = 4;
  17526. this.pptImgUrl1 = _url;
  17527. } else if (_chapterData[taskCount][0].type == 6) {
  17528. this.showType = 1;
  17529. this.text = this.textList[taskCount][0];
  17530. } else if (_chapterData[taskCount][0].type == 16) {
  17531. this.showType = 16;
  17532. this.pptImgUrl1 = _url;
  17533. } else if (_chapterData[taskCount][0].type == 17) {
  17534. this.showType = 16;
  17535. this.pptImgUrl1 = _url;
  17536. }
  17537. }
  17538. }
  17539. this.isClickNav = 0;
  17540. if (
  17541. !_chapterData[taskCount].length ||
  17542. _chapterData[taskCount][0].type == 12
  17543. ) {
  17544. this.isClickNav = "";
  17545. this.showType = "";
  17546. }
  17547. if (this.tType == 2) {
  17548. _chapterData.forEach((e,i)=>{
  17549. if (e.length) {
  17550. let yym = e.filter(k=>{
  17551. if(!converter(k.name).includes(converter("教案"))){
  17552. return k
  17553. }
  17554. })
  17555. _chapterData[i] = yym
  17556. }
  17557. })
  17558. }
  17559. this.vChapterData = _chapterData;
  17560. } else {
  17561. // this.showType = 0;
  17562. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17563. .chapterInfo[0].taskJson;
  17564. var b = [
  17565. "AVI",
  17566. "NAVI",
  17567. "MPEG",
  17568. "ASF",
  17569. "MOV",
  17570. "WMV",
  17571. "3GP",
  17572. "RM",
  17573. "RMVB",
  17574. "FLV",
  17575. "F4V",
  17576. "H.264",
  17577. "H.265",
  17578. "REAL VIDEO",
  17579. "MKV",
  17580. "WebM",
  17581. "HDDVD",
  17582. "MP4",
  17583. "MPG",
  17584. "M4V",
  17585. "MGV",
  17586. "OGV",
  17587. "QTM",
  17588. "STR",
  17589. "AMC",
  17590. "DVX",
  17591. "EVO",
  17592. "DAT",
  17593. "OGG",
  17594. "OGM",
  17595. "MP3",
  17596. ];
  17597. let _chapterData = [];
  17598. for (var i = 0; i < a.length; i++) {
  17599. var c = a[i].chapterData;
  17600. this.vedio[i] = [];
  17601. this.textList[i] = [];
  17602. this.lineList[i] = [];
  17603. this.chapToolList[i] = [];
  17604. this.file[i] = [];
  17605. this.fileC[i] = [];
  17606. _chapterData[i] = c.filter((el) => {
  17607. return el.type != 12;
  17608. });
  17609. this.fileC[i] = c.filter((el) => {
  17610. return el.type == 12;
  17611. });
  17612. if (this.tType == 2) {
  17613. if (this.fileC[i].length) {
  17614. let yym1 = this.fileC[i].filter(e=>{
  17615. if(!converter(e.name).includes(converter("教案"))){
  17616. return e
  17617. }
  17618. })
  17619. this.fileC[i] = yym1
  17620. }
  17621. }
  17622. for (var j = 0; j < c.length; j++) {
  17623. if (c[j].type == 7) {
  17624. this.chapToolList[i].push(c[j]);
  17625. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  17626. this.lineList[i].push(c[j]);
  17627. } else if (c[j].type == 6) {
  17628. this.textList[i].push(c[j]);
  17629. } else {
  17630. if (
  17631. b.indexOf(
  17632. c[j].url
  17633. .split(".")
  17634. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17635. ) != -1
  17636. ) {
  17637. this.vedio[i].push(c[j]);
  17638. } else {
  17639. this.file[i].push(c[j]);
  17640. }
  17641. }
  17642. }
  17643. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17644. d.sources[0].src =
  17645. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17646. this.playerO[i] = d;
  17647. }
  17648. let taskCount = 0;
  17649. if (
  17650. _chapterData[taskCount].length &&
  17651. _chapterData[taskCount][0].type == 2
  17652. ) {
  17653. // this.showType = 0;
  17654. // this.pptImgUrl1 = _chapterData[taskCount][0].url;
  17655. } else {
  17656. if (_chapterData[taskCount].length > 0) {
  17657. let _url = _chapterData[taskCount][0].url;
  17658. if (
  17659. _chapterData[taskCount][0].type == 8 ||
  17660. _chapterData[taskCount][0].type == 14||
  17661. _chapterData[taskCount][0].type == 15
  17662. ) {
  17663. // this.showType = 2;
  17664. if (
  17665. _url.indexOf("https://") == -1 &&
  17666. _url.indexOf("http://") == -1
  17667. ) {
  17668. _url = "https://" + _url;
  17669. }
  17670. // this.pptImgUrl1 = _url;
  17671. } else if (_chapterData[taskCount][0].type == 3) {
  17672. if (
  17673. _url
  17674. .split(".")
  17675. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17676. ) {
  17677. // this.showType = 3;
  17678. // this.pptImgUrl1 = _url;
  17679. } else if (
  17680. this.isAssetTypeAnImage(
  17681. _url
  17682. .split(".")
  17683. [_url.split(".").length - 1].toLocaleLowerCase()
  17684. )
  17685. ) {
  17686. // this.showType = 4;
  17687. // this.pptImgUrl1 = _url;
  17688. } else {
  17689. // this.showType = 2;
  17690. // this.pptImgUrl1 =
  17691. // "https://view.officeapps.live.com/op/view.aspx?src=" +
  17692. // encodeURIComponent(_url);
  17693. }
  17694. } else if (_chapterData[taskCount][0].type == 13) {
  17695. // this.showType = 4;
  17696. // this.pptImgUrl1 = _url;
  17697. } else if (_chapterData[taskCount][0].type == 6) {
  17698. this.showType = 1;
  17699. this.text = this.textList[taskCount][0];
  17700. } else if (_chapterData[taskCount][0].type == 16) {
  17701. this.showType = 16;
  17702. this.pptImgUrl1 = _url;
  17703. } else if (_chapterData[taskCount][0].type == 17) {
  17704. this.showType = 16;
  17705. this.pptImgUrl1 = _url;
  17706. }
  17707. }
  17708. }
  17709. this.isClickNav = 0;
  17710. if (
  17711. !_chapterData[taskCount].length ||
  17712. _chapterData[taskCount][0].type == 12
  17713. ) {
  17714. this.isClickNav = "";
  17715. // this.showType = "";
  17716. }
  17717. if (this.tType == 2) {
  17718. _chapterData.forEach((e,i)=>{
  17719. if (e.length) {
  17720. let yym = e.filter(k=>{
  17721. if(!converter(k.name).includes(converter("教案"))){
  17722. return k
  17723. }
  17724. })
  17725. _chapterData[i] = yym
  17726. }
  17727. })
  17728. }
  17729. this.vChapterData = _chapterData;
  17730. this.$forceUpdate();
  17731. }
  17732. // else {
  17733. // this.courseDetail = res.data[0][0];
  17734. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17735. // }
  17736. // 判断进入课程是否是创建老师,如果去创建老师,就自动开启下面两个按钮
  17737. if (type == 10) {
  17738. console.log('this.courseDetail.userid',this.courseDetail.userid);
  17739. console.log('this.userid',this.userid);
  17740. if (this.courseDetail.userid == this.userid) {
  17741. // 开局关闭学生查看内容
  17742. this.StulookMode(true)
  17743. // 开局打开跟随模式
  17744. this.followingMode(true)
  17745. }
  17746. }
  17747. let _this = this;
  17748. if (_this.timer) {
  17749. clearInterval(_this.timer);
  17750. _this.timer = null;
  17751. }
  17752. if (_this.tcid) {
  17753. _this.getCourseGroup(gindex);
  17754. } else {
  17755. _this.selectSWorks(gindex);
  17756. }
  17757. _this.selectStudent();
  17758. _this.selectSLook();
  17759. _this.getPick();
  17760. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17761. // _this.setCTask();
  17762. // }
  17763. if (_this.dialogVisibleGroup) {
  17764. _this.groupJson =
  17765. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17766. _this.taskCount
  17767. ].toolChoose[_this.toolindex].groupJson;
  17768. }
  17769. _this.$nextTick(() => {
  17770. setTimeout(() => {
  17771. _this.checkEva();
  17772. }, 1000);
  17773. });
  17774. _this.timer = setInterval(function () {
  17775. // _this.getCourseDetail(2);
  17776. if (_this.tcid) {
  17777. _this.getCourseGroup();
  17778. } else {
  17779. _this.selectSWorks();
  17780. }
  17781. _this.selectStudent();
  17782. _this.selectSLook();
  17783. _this.getPick();
  17784. // _this.getSplitScreenData();//获取分屏数据
  17785. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17786. // _this.setCTask();
  17787. // }
  17788. if (_this.dialogVisibleGroup) {
  17789. _this.groupJson =
  17790. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17791. _this.taskCount
  17792. ].toolChoose[_this.toolindex].groupJson;
  17793. }
  17794. if (_this.tType == 4 || _this.ispzType == 4) {
  17795. _this.selectPz();
  17796. }
  17797. }, 5000);
  17798. if (_this.timer2 == null) {
  17799. _this.timer2 = setInterval(()=> {
  17800. _this.getSplitScreenData();//获取分屏数据
  17801. }, 5000);
  17802. }
  17803. _this.$nextTick(function () {
  17804. setTimeout(() => {
  17805. const element = document.getElementsByClassName("pb_body")[0];
  17806. if (element) {
  17807. element.style.minHeight = 'unset'
  17808. // 或者:element.style.removeProperty("min-height");
  17809. }
  17810. // var a =
  17811. // document.getElementsByClassName("box_course")[0].offsetHeight;
  17812. // document.getElementsByClassName("vedioList")[0].style.height =
  17813. // a + "px";
  17814. // document.getElementsByClassName("navBox")[0].style.height =
  17815. // a - 40 + "px";
  17816. // if (_this.vedio[_this.taskCount].length > 0) {
  17817. // _this.vedioTime = [];
  17818. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17819. // _this.vedioTime[i] = document.getElementsByClassName(
  17820. // "vjs-duration-display"
  17821. // )[i].textContent;
  17822. // }
  17823. // }
  17824. }, 1000);
  17825. });
  17826. })
  17827. .catch((err) => {
  17828. loading.close();
  17829. console.error(err);
  17830. });
  17831. },
  17832. getCourseGroup(gindex) {
  17833. if(this.getCourseGroupLoading) return
  17834. this.getCourseGroupLoading = true
  17835. let params = {
  17836. cid: this.id,
  17837. classid: this.tcid ? this.tcid : "1",
  17838. };
  17839. this.ajax
  17840. .get(this.$store.state.api + "getCourseGroup", params)
  17841. .then((res) => {
  17842. if (res.data && res.data[0].length) {
  17843. if (!this.isGroup) {
  17844. let courseGroup = JSON.parse(res.data[0][0].group);
  17845. courseGroup.group = courseGroup.group.filter((el) => {
  17846. el.works = [];
  17847. return el;
  17848. });
  17849. if (courseGroup.isopen == 2) {
  17850. this.isGroup = false;
  17851. this.selectSWorks(gindex);
  17852. return;
  17853. }
  17854. this.courseGroup = courseGroup;
  17855. let groupPerson = res.data[1];
  17856. let group = JSON.parse(res.data[0][0].group).group;
  17857. let courseGroupStudent = {};
  17858. let courseGroupStudentUid = {};
  17859. for (var i = 0; i < group.length; i++) {
  17860. courseGroupStudent[group[i].id] = [];
  17861. courseGroupStudentUid[group[i].id] = [];
  17862. for (var j = 0; j < groupPerson.length; j++) {
  17863. if (groupPerson[j].groupCid == group[i].id) {
  17864. courseGroupStudent[group[i].id].push(groupPerson[j]);
  17865. courseGroupStudentUid[group[i].id].push(
  17866. groupPerson[j].userid
  17867. );
  17868. }
  17869. }
  17870. }
  17871. this.courseGroupStudent = courseGroupStudent;
  17872. this.courseGroupStudentUid = courseGroupStudentUid;
  17873. }
  17874. if (this.courseGroup.isopen == 2) {
  17875. this.isGroup = false;
  17876. } else {
  17877. this.isGroup = true;
  17878. }
  17879. this.selectSWorks(gindex);
  17880. } else {
  17881. this.selectSWorks(gindex);
  17882. this.isGroup = false;
  17883. }
  17884. this.getCourseGroupLoading = false
  17885. })
  17886. .catch((err) => {
  17887. this.getCourseGroupLoading = false
  17888. // this.$message.error("网络不佳");
  17889. console.error(err);
  17890. });
  17891. },
  17892. setOperationTime() {
  17893. let _this = this;
  17894. if (_this.opertimer) {
  17895. clearInterval(_this.opertimer);
  17896. _this.opertimer = null;
  17897. }
  17898. _this.opertimer = setInterval(() => {
  17899. _this.setoTime("600");
  17900. }, 600000);
  17901. },
  17902. setoTime(time) {
  17903. let params = [
  17904. {
  17905. uid: this.userid,
  17906. cid: this.id,
  17907. type: "2",
  17908. time: time,
  17909. },
  17910. ];
  17911. this.ajax
  17912. .post(this.$store.state.api + "addOperationTimeT2", params)
  17913. .then((res) => {})
  17914. .catch((err) => {
  17915. console.error(err);
  17916. });
  17917. },
  17918. addPz(type, content) {
  17919. if (type == "1" && this.pzConText == "") {
  17920. this.$message.error("评论不能为空!");
  17921. return;
  17922. }
  17923. let params = [
  17924. {
  17925. cid: this.id,
  17926. uid: this.userid,
  17927. s: this.courseType,
  17928. t: this.taskCount,
  17929. c: type == "1" ? this.pzConText : content,
  17930. type: type,
  17931. },
  17932. ];
  17933. this.ajax
  17934. .post(this.$store.state.api + "addPz2", params)
  17935. .then((res) => {
  17936. this.$message({
  17937. message: "添加成功",
  17938. type: "success",
  17939. });
  17940. this.pzConText = "";
  17941. this.addPzDialog = false;
  17942. this.selectPz();
  17943. if(this.tType!=2){
  17944. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  17945. }
  17946. })
  17947. .catch((err) => {
  17948. this.$message.error("添加失败");
  17949. console.error(err);
  17950. });
  17951. },
  17952. setReplyIndex(id, i) {
  17953. this.replyIndex = i;
  17954. this.replyPid = id;
  17955. this.replyDialogVisible = true;
  17956. },
  17957. addHf() {
  17958. if (this.reply == "") {
  17959. this.$message.error("回复不能为空!");
  17960. return;
  17961. }
  17962. let params = [
  17963. {
  17964. cid: this.id,
  17965. uid: this.userid,
  17966. s: this.courseType,
  17967. t: this.taskCount,
  17968. type: "1",
  17969. ct: 2,
  17970. pid: this.replyPid,
  17971. c: this.reply,
  17972. },
  17973. ];
  17974. this.ajax
  17975. .post(this.$store.state.api + "addHf", params)
  17976. .then((res) => {
  17977. this.reply = "";
  17978. this.$message({
  17979. message: "回复成功",
  17980. type: "success",
  17981. });
  17982. this.replyDialogVisible = false;
  17983. this.selectPz();
  17984. })
  17985. .catch((err) => {
  17986. this.$message.error("回复失败");
  17987. console.error(err);
  17988. });
  17989. },
  17990. deletePz(id) {
  17991. this.$confirm("确定删除此评论吗?", "提示", {
  17992. confirmButtonText: "确定",
  17993. cancelButtonText: "取消",
  17994. type: "warning",
  17995. })
  17996. .then(() => {
  17997. let params = [
  17998. {
  17999. id: id,
  18000. },
  18001. ];
  18002. this.ajax
  18003. .post(this.$store.state.api + "deletePz", params)
  18004. .then((res) => {
  18005. this.$message({
  18006. message: "删除成功",
  18007. type: "success",
  18008. });
  18009. this.selectPz();
  18010. })
  18011. .catch((err) => {
  18012. this.$message.error("网络异常");
  18013. console.error(err);
  18014. });
  18015. })
  18016. .catch(() => {});
  18017. },
  18018. deleteReply(id) {
  18019. this.$confirm("确定删除此回复吗?", "提示", {
  18020. confirmButtonText: "确定",
  18021. cancelButtonText: "取消",
  18022. type: "warning",
  18023. })
  18024. .then(() => {
  18025. let params = [
  18026. {
  18027. id: id,
  18028. },
  18029. ];
  18030. this.ajax
  18031. .post(this.$store.state.api + "deleteReply", params)
  18032. .then((res) => {
  18033. this.$message({
  18034. message: "删除成功",
  18035. type: "success",
  18036. });
  18037. this.selectPz();
  18038. })
  18039. .catch((err) => {
  18040. this.$message.error("网络异常");
  18041. console.error(err);
  18042. });
  18043. })
  18044. .catch(() => {});
  18045. },
  18046. setPz() {
  18047. if (this.ispzType == 4) {
  18048. this.ispzType = 0;
  18049. this.pzDialog = false;
  18050. return;
  18051. }
  18052. this.ispzType = 4;
  18053. this.pzDialog = true;
  18054. this.selectPz();
  18055. },
  18056. selectPz() {
  18057. if(this.selectPzLoading) return
  18058. this.selectPzLoading = true
  18059. let params = {
  18060. cid: this.id,
  18061. s: this.courseType,
  18062. t: this.taskCount,
  18063. type: this.pzStype,
  18064. uid: this.userid,
  18065. };
  18066. this.ajax
  18067. .get(this.$store.state.api + "selectPzListType", params)
  18068. .then((res) => {
  18069. this.pzList = res.data[0];
  18070. var a = res.data[1];
  18071. for (var i = 0; i < a.length; i++) {
  18072. for (var j = 0; j < this.pzList.length; j++) {
  18073. if (!this.pzList[j].hfList) {
  18074. this.pzList[j].hfList = [];
  18075. }
  18076. if (a[i].pid == this.pzList[j].id) {
  18077. this.pzList[j].hfList.push(a[i]);
  18078. }
  18079. }
  18080. }
  18081. this.selectPzLoading = false
  18082. })
  18083. .catch((err) => {
  18084. this.selectPzLoading = false
  18085. console.error(err);
  18086. });
  18087. },
  18088. // selectHf() {
  18089. // let params = {
  18090. // cid: this.id,
  18091. // s: this.courseType,
  18092. // t: this.taskCount,
  18093. // };
  18094. // this.ajax
  18095. // .get(this.$store.state.api + "selectHfList", params)
  18096. // .then((res) => {
  18097. // var a = res.data[0];
  18098. // for (var i = 0; i < a.length; i++) {
  18099. // for (var j = 0; j < this.pzList.length; j++) {
  18100. // if (!this.pzList[i].hfList) {
  18101. // this.pzList[i].hfList = [];
  18102. // }
  18103. // if (a[i].pid == this.pzList[j].id) {
  18104. // this.pzList[i].hfList.push(a[i]);
  18105. // }
  18106. // }
  18107. // }
  18108. // })
  18109. // .catch((err) => {
  18110. // console.error(err);
  18111. // });
  18112. // },
  18113. updateSLook() {
  18114. let params = {
  18115. sopen: this.sIsOpen == false ? 1 : 2,
  18116. cid: this.id,
  18117. };
  18118. this.ajax
  18119. .get(this.$store.state.api + "updateCourseSLook", params)
  18120. .then((res) => {
  18121. if (this.sIsOpen == true) {
  18122. this.$message({
  18123. message: "权限设置成功",
  18124. type: "success",
  18125. });
  18126. } else {
  18127. this.$message({
  18128. message: "权限关闭成功",
  18129. type: "success",
  18130. });
  18131. }
  18132. })
  18133. .catch((err) => {
  18134. console.error(err);
  18135. });
  18136. },
  18137. updateIsStulook(){
  18138. let params = [
  18139. {
  18140. sopen: this.IsStulook == false ? 2 : 1,
  18141. cid: this.id
  18142. }
  18143. ];
  18144. this.ajax
  18145. .post(this.$store.state.api + "updateCourseStulook", params)
  18146. .then(res => {
  18147. if (this.IsStulook == true) {
  18148. this.$message({
  18149. message: "学生查看内容资料权限已开启",
  18150. type: "success"
  18151. });
  18152. } else {
  18153. this.$message({
  18154. message: "关闭学生查看内容资料权限",
  18155. type: "success"
  18156. });
  18157. }
  18158. // this.setCTask();
  18159. })
  18160. .catch(err => {
  18161. console.error(err);
  18162. });
  18163. },
  18164. updateFollow() {
  18165. let params = [
  18166. {
  18167. sopen: this.IsFollow == false ? 1 : 2,
  18168. cid: this.id,
  18169. },
  18170. ];
  18171. this.ajax
  18172. .post(this.$store.state.api + "updateCourseFollow", params)
  18173. .then((res) => {
  18174. if (this.IsFollow == true) {
  18175. this.$message({
  18176. message: "跟随模式已开启",
  18177. type: "success",
  18178. });
  18179. } else {
  18180. this.$message({
  18181. message: "跟随模式已关闭",
  18182. type: "success",
  18183. });
  18184. }
  18185. this.setCTask();
  18186. })
  18187. .catch((err) => {
  18188. console.error(err);
  18189. });
  18190. },
  18191. setCTask() {
  18192. let params = [
  18193. {
  18194. sopen: this.courseType + "-" + this.taskCount,
  18195. cid: this.id,
  18196. },
  18197. ];
  18198. this.ajax
  18199. .post(this.$store.state.api + "updateCourseFollowC", params)
  18200. .then((res) => {})
  18201. .catch((err) => {
  18202. console.error(err);
  18203. });
  18204. },
  18205. updateLookOpen() {
  18206. let params = [
  18207. {
  18208. sopen: this.IsLookOpen == false ? 1 : 2,
  18209. cid: this.id,
  18210. },
  18211. ];
  18212. this.ajax
  18213. .post(this.$store.state.api + "updateCourseLookOpen", params)
  18214. .then((res) => {
  18215. if (this.IsLookOpen == true) {
  18216. // if (this.courseType != 0 && this.taskCount != 0) {
  18217. // this.openTask(0, 0, "0-0");
  18218. // }
  18219. this.$message({
  18220. message: "权限设置成功",
  18221. type: "success",
  18222. });
  18223. } else {
  18224. this.$message({
  18225. message: "权限关闭成功",
  18226. type: "success",
  18227. });
  18228. }
  18229. this.getCourseState(2);
  18230. })
  18231. .catch((err) => {
  18232. console.error(err);
  18233. });
  18234. },
  18235. selectSLook() {
  18236. if(this.selectSLookLoading) return
  18237. this.selectSLookLoading = true
  18238. let params = {
  18239. cid: this.id,
  18240. };
  18241. this.ajax
  18242. .get(this.$store.state.api + "selectCourseSLook", params)
  18243. .then((res) => {
  18244. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  18245. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  18246. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  18247. this.IsStulook = res.data[0][0].isStulook == 2 ? false : true;
  18248. if (!this.IsLookOpen) {
  18249. this.setNavList();
  18250. }else {
  18251. this.getCourseState(1);
  18252. }
  18253. if ((this.IsFollow && this.tType == 2)) {
  18254. this.setContent2(false);
  18255. let _followC = res.data[0][0].followC.split("-");
  18256. if (
  18257. this.courseType != _followC[0] ||
  18258. this.taskCount != _followC[1]
  18259. ) {
  18260. this.navList[this.courseType].isOpen = false;
  18261. this.courseType = _followC[0];
  18262. this.navList[this.courseType].isOpen = true;
  18263. this.taskCount = parseInt(_followC[1]);
  18264. this.navId = res.data[0][0].followC;
  18265. document.scrollingElement.scrollTop = 0;
  18266. this.getCourseDetail(2);
  18267. }
  18268. }
  18269. this.selectSLookLoading = false
  18270. })
  18271. .catch((err) => {
  18272. this.selectSLookLoading = false
  18273. console.error(err);
  18274. });
  18275. },
  18276. setNavList() {
  18277. if (this.navList.length == 0) {
  18278. this.navList = [];
  18279. var copyList = [];
  18280. for (var l = 0; l < this.chapInfoList.length; l++) {
  18281. var q = this.chapInfoList[l].dyName;
  18282. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18283. var e;
  18284. copyList.push({
  18285. dyName: q,
  18286. isOpen: l === 0 ? true : false,
  18287. task: [],
  18288. });
  18289. for (var r = 0; r < w.length; r++) {
  18290. e = w[r].task;
  18291. if (this.chapInfoList[l].easy == 1) {
  18292. copyList[l].task.push({
  18293. taskName: q,
  18294. id: l + "-" + r,
  18295. isLook: w[r].isLook,
  18296. isOpen: r === 0 ? true : false,
  18297. tool: [],
  18298. });
  18299. } else {
  18300. copyList[l].task.push({
  18301. taskName: e,
  18302. id: l + "-" + r,
  18303. isLook: w[r].isLook,
  18304. isOpen: r === 0 ? true : false,
  18305. tool: [],
  18306. });
  18307. }
  18308. var t = w[r].toolChoose;
  18309. for (var k = 0; k < t.length; k++) {
  18310. var tool = t[k].tool[0];
  18311. copyList[l].task[r].tool.push({
  18312. tool: tool,
  18313. isTool: false,
  18314. });
  18315. }
  18316. // this.navId = this.navId ? this.navId : l + "-" + r;
  18317. // this.navId = l + "-" + r;
  18318. }
  18319. }
  18320. this.navList = copyList;
  18321. this.navList[0].isOpen = false;
  18322. this.navList[this.courseType].isOpen = true;
  18323. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  18324. } else {
  18325. this.setNavList2();
  18326. }
  18327. },
  18328. setNavList2() {
  18329. for (var l = 0; l < this.chapInfoList.length; l++) {
  18330. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18331. for (var r = 0; r < w.length; r++) {
  18332. this.navList[l].task[r].isLook = w[r].isLook;
  18333. }
  18334. }
  18335. if (
  18336. this.IsLookOpen &&
  18337. !this.navList[this.courseType].task[this.taskCount].isLook
  18338. ) {
  18339. this.openTask(0, 0, "0-0");
  18340. }
  18341. this.$forceUpdate();
  18342. },
  18343. getCourseState(type) {
  18344. let params = {
  18345. cid: this.id,
  18346. };
  18347. this.ajax
  18348. .get(this.$store.state.api + "getCourseState", params)
  18349. .then((res) => {
  18350. // if (res.data[0].length > 0) {
  18351. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  18352. // }
  18353. if (res.data[0].length > 0 && type == 1) {
  18354. this.chapInfoList = JSON.parse(res.data[0][0].state);
  18355. this.setNavList();
  18356. this.$forceUpdate();
  18357. } else if (res.data[0].length > 0 && type == 2) {
  18358. this.addCourseState(2);
  18359. } else {
  18360. // this.addCourseState(1);
  18361. }
  18362. })
  18363. .catch((err) => {
  18364. console.error(err);
  18365. });
  18366. },
  18367. addCourseState(type,val = '') {
  18368. let _state = val ? val : this.chapInfoList;
  18369. // this.courseType this.taskCount
  18370. if (type == 1 || type == 2) {
  18371. for (var i = 0; i < _state.length; i++) {
  18372. let el = _state[i].chapterInfo[0].taskJson;
  18373. for (var j = 0; j < el.length; j++) {
  18374. // if (i == 0 && j == 0) {
  18375. // el[j].isLook = true;
  18376. // } else {
  18377. // el[j].isLook = false;
  18378. // }
  18379. if (
  18380. this.courseType > i ||
  18381. (this.courseType == i && this.taskCount + 1 > j)
  18382. ) {
  18383. el[j].isLook = true;
  18384. } else {
  18385. el[j].isLook = false;
  18386. }
  18387. }
  18388. }
  18389. }
  18390. let params = [
  18391. {
  18392. cid: this.id,
  18393. state: JSON.stringify(_state),
  18394. },
  18395. ];
  18396. this.ajax
  18397. .post(
  18398. this.$store.state.api +
  18399. (type == 1 ? "addCourseState" : "updateCourseSate"),
  18400. params
  18401. )
  18402. .then((res) => {
  18403. if (this.IsLookOpen) {
  18404. this.setNavList();
  18405. }
  18406. if (type == 3 && type == 2) {
  18407. this.getCourseState(1);
  18408. }
  18409. })
  18410. .catch((err) => {
  18411. console.error(err);
  18412. });
  18413. },
  18414. getHomeWork() {
  18415. let params = {
  18416. cid: this.id,
  18417. stage: this.courseType,
  18418. task: this.taskCount,
  18419. uid: this.userid,
  18420. };
  18421. this.ajax
  18422. .get(this.$store.state.api + "selectWork", params)
  18423. .then((res) => {
  18424. if (res.data[0].length > 0) {
  18425. this.studyJuri = JSON.parse(res.data[0][0].content);
  18426. this.isNoHomeWork = true;
  18427. }
  18428. })
  18429. .catch((err) => {
  18430. console.error(err);
  18431. });
  18432. },
  18433. isAssetTypeAnImage(ext) {
  18434. return (
  18435. [
  18436. "png",
  18437. "jpg",
  18438. "jpeg",
  18439. "bmp",
  18440. "gif",
  18441. "webp",
  18442. "psd",
  18443. "svg",
  18444. "tiff",
  18445. ].indexOf(ext) !== -1
  18446. );
  18447. },
  18448. switchVideo(media) {
  18449. this.playerO = {};
  18450. this.playerOptions.poster = "";
  18451. this.playerOptions.sources[0].src = media;
  18452. this.playerO = this.playerOptions;
  18453. },
  18454. onPlayerPlay() {},
  18455. onPlayerTimeupdate(player) {
  18456. let gklog = player.cache_.currentTime; //当前播放的秒数
  18457. let a = player.cache_.duration; //视频的总时长
  18458. let gklog2 = parseInt(gklog);
  18459. // if(gklog2 == '3'){
  18460. // player.pause()
  18461. // setTimeout(()=>{
  18462. // player.currentTime(gklog2+1)
  18463. // player.play()
  18464. // },1000)
  18465. // }
  18466. console.log(" onPlayerTimeupdate!", gklog);
  18467. console.log(" onPlayerTimeupdate!", gklog2);
  18468. },
  18469. lookVedio(u, i) {
  18470. this.isClickNav = "";
  18471. // this.playerOptions.sources[0].src = u;
  18472. var d = JSON.parse(JSON.stringify(this.playerOptions));
  18473. d.sources[0].src = u;
  18474. this.playerO[0] = d;
  18475. this.showType = 0;
  18476. // this.isClickNav = "video" + i;
  18477. this.isClickNav = i;
  18478. this.$forceUpdate();
  18479. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  18480. },
  18481. lookText(i, t) {
  18482. this.isClickNav = "";
  18483. // this.text = this.textList[i][t];
  18484. this.text = this.vChapterData[i][t];
  18485. // this.dialogVisible1 = true;
  18486. this.showType = 1;
  18487. // this.isClickNav = "text" + t;
  18488. this.isClickNav = t;
  18489. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  18490. },
  18491. lookTools(i, t) {
  18492. this.chapTools = this.chapToolList[i][t];
  18493. this.dialogVisible2 = true;
  18494. },
  18495. async openFile(f) {
  18496. this.pptImgUrl = "";
  18497. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18498. if (
  18499. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  18500. -1
  18501. ) {
  18502. let _uuurl = await this.checkLink(f);
  18503. console.log(_uuurl)
  18504. this.pptImgUrl =
  18505. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18506. this.showPDF = false;
  18507. this.dialogVisible3 = true;
  18508. } else if (
  18509. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18510. ) {
  18511. this.pptImgUrl = f;
  18512. this.showPDF = true;
  18513. this.dialogVisible3 = true;
  18514. }
  18515. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  18516. },
  18517. openTable(f) {
  18518. this.tableJson = JSON.parse(f.works);
  18519. this.dialogVisibleTable2 = true;
  18520. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18521. },
  18522. openWord(f) {
  18523. this.tableJson = JSON.parse(f.works);
  18524. this.dialogVisibleTable3 = true;
  18525. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18526. },
  18527. doUrl(url, i) {
  18528. this.isClickNav = "";
  18529. this.pptImgUrl1 = "";
  18530. this.showType = 2;
  18531. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  18532. url = "https://" + url;
  18533. }
  18534. this.pptImgUrl1 = "";
  18535. this.diffKey = new Date().getTime();
  18536. setTimeout(() => {
  18537. this.pptImgUrl1 = url;
  18538. }, 500);
  18539. // this.isClickNav = "line" + i;
  18540. this.isClickNav = i;
  18541. this.$forceUpdate();
  18542. },
  18543. checkPhoto(f, i) {
  18544. this.showType = 4;
  18545. this.pptImgUrl1 = f.url;
  18546. this.isClickNav = i;
  18547. this.$forceUpdate();
  18548. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18549. },
  18550. checkHtml(f, i){
  18551. this.showType = 16;
  18552. this.pptImgUrl1 = f.url;
  18553. this.isClickNav = i;
  18554. this.$forceUpdate();
  18555. },
  18556. async downFile(f, i) {
  18557. this.isClickNav = "";
  18558. this.pptImgUrl1 = "";
  18559. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  18560. if (
  18561. a.indexOf(
  18562. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  18563. ) != -1
  18564. ) {
  18565. let _uuurl = await this.checkLink(f.url);
  18566. console.log(_uuurl)
  18567. this.pptImgUrl1 =
  18568. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18569. // this.dialogVisible3 = true;
  18570. this.showType = 2;
  18571. } else if (
  18572. this.isAssetTypeAnImage(
  18573. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  18574. )
  18575. ) {
  18576. this.showType = 4;
  18577. this.pptImgUrl1 = f.url;
  18578. } else if (
  18579. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18580. "PDF"
  18581. ) {
  18582. this.pptImgUrl1 = f.url;
  18583. // this.dialogVisible3 = true;
  18584. this.showType = 3;
  18585. } else {
  18586. window.open(this.file[i].url);
  18587. }
  18588. // this.isClickNav = "word" + i;
  18589. this.isClickNav = i;
  18590. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18591. },
  18592. downFileList(i) {
  18593. window.open(this.noImgList[i].url);
  18594. },
  18595. openAddWork() {
  18596. this.dialogVisible = true;
  18597. },
  18598. addBzWorks() {
  18599. let params = [
  18600. {
  18601. uid: this.userid,
  18602. cid: this.id,
  18603. stage: this.courseType,
  18604. task: this.taskCount,
  18605. tool: this.toolindex,
  18606. content: JSON.stringify(this.eScore),
  18607. type: 6,
  18608. },
  18609. ];
  18610. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18611. this.homeWorkLoading = true
  18612. this.ajax
  18613. .post(this.$store.state.api + "addCourseWorks", params)
  18614. .then((res) => {
  18615. this.$message({
  18616. message: "提交成功",
  18617. type: "success",
  18618. });
  18619. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
  18620. setTimeout(() => {
  18621. this.homeWorkLoading = false
  18622. }, 500);
  18623. this.eScore = { eBzText: "", eStar: [] };
  18624. this.studentEvalDialogVisible = false;
  18625. this.selectSWorks();
  18626. })
  18627. .catch((err) => {
  18628. this.$message.error("提交失败");
  18629. console.error(err);
  18630. setTimeout(() => {
  18631. this.homeWorkLoading = false
  18632. }, 500);
  18633. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
  18634. });
  18635. },
  18636. addBzWorksTeacher() {
  18637. let params = [
  18638. {
  18639. uid: this.sStudent.userid,
  18640. cid: this.id,
  18641. stage: this.courseType,
  18642. task: this.taskCount,
  18643. tool: this.toolindex,
  18644. content: JSON.stringify(this.eScore),
  18645. type: 6,
  18646. },
  18647. ];
  18648. this.ajax
  18649. .post(this.$store.state.api + "addCourseWorks", params)
  18650. .then((res) => {
  18651. this.$message({
  18652. message: "提交成功",
  18653. type: "success",
  18654. });
  18655. this.eScore = { eBzText: "", eStar: [] };
  18656. this.studentEvalDialogVisibleTeacher = false;
  18657. this.selectSWorks();
  18658. })
  18659. .catch((err) => {
  18660. this.$message.error("提交失败");
  18661. console.error(err);
  18662. });
  18663. },
  18664. addStudentAsk() {
  18665. if (!this.radio.length) {
  18666. this.$message.error("请选择选项");
  18667. return;
  18668. }
  18669. for (var i = 0; i < this.askJson.askCount; i++) {
  18670. if (
  18671. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18672. (this.radio[i] !== 0 && !this.radio[i])
  18673. ) {
  18674. this.$message.error("请选择选项");
  18675. return;
  18676. }
  18677. }
  18678. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18679. let params = [
  18680. {
  18681. uid: this.userid,
  18682. cid: this.id,
  18683. stage: this.courseType,
  18684. task: this.taskCount,
  18685. tool: this.toolindex,
  18686. content: JSON.stringify(this.askList),
  18687. type: 2,
  18688. },
  18689. ];
  18690. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18691. this.homeWorkLoading = true
  18692. this.ajax
  18693. .post(this.$store.state.api + "addCourseWorks", params)
  18694. .then((res) => {
  18695. this.$message({
  18696. message: "提交成功",
  18697. type: "success",
  18698. });
  18699. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18700. setTimeout(() => {
  18701. this.homeWorkLoading = false
  18702. }, 500);
  18703. this.askList = [];
  18704. this.dialogVisible5 = false;
  18705. this.selectStudent();
  18706. this.selectSWorks();
  18707. this.selectSLook();
  18708. })
  18709. .catch((err) => {
  18710. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18711. setTimeout(() => {
  18712. this.homeWorkLoading = false
  18713. }, 500);
  18714. this.$message.error("提交失败");
  18715. console.error(err);
  18716. });
  18717. },
  18718. addStudentAskTeacher() {
  18719. if (!this.radio.length) {
  18720. this.$message.error("请选择选项");
  18721. return;
  18722. }
  18723. for (var i = 0; i < this.askJson.askCount; i++) {
  18724. if (
  18725. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18726. (this.radio[i] !== 0 && !this.radio[i])
  18727. ) {
  18728. this.$message.error("请选择选项");
  18729. return;
  18730. }
  18731. }
  18732. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18733. let params = [
  18734. {
  18735. uid: this.sStudent.userid,
  18736. cid: this.id,
  18737. stage: this.courseType,
  18738. task: this.taskCount,
  18739. tool: this.toolindex,
  18740. content: JSON.stringify(this.askList),
  18741. type: 2,
  18742. },
  18743. ];
  18744. this.ajax
  18745. .post(this.$store.state.api + "addCourseWorks", params)
  18746. .then((res) => {
  18747. this.$message({
  18748. message: "提交成功",
  18749. type: "success",
  18750. });
  18751. this.askList = [];
  18752. this.dialogVisible5Teacher = false;
  18753. this.selectStudent();
  18754. this.selectSWorks();
  18755. this.selectSLook();
  18756. })
  18757. .catch((err) => {
  18758. this.$message.error("提交失败");
  18759. console.error(err);
  18760. });
  18761. },
  18762. addStudentTest() {
  18763. if (!this.radio.length) {
  18764. this.$message.error("请选择选项");
  18765. return;
  18766. }
  18767. for (var i = 0; i < this.testJson.testCount; i++) {
  18768. if (
  18769. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18770. (this.radio[i] !== 0 && !this.radio[i])
  18771. ) {
  18772. this.$message.error("请选择选项");
  18773. return;
  18774. }
  18775. }
  18776. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18777. let params = [
  18778. {
  18779. uid: this.userid,
  18780. cid: this.id,
  18781. stage: this.courseType,
  18782. task: this.taskCount,
  18783. tool: this.toolindex,
  18784. content: JSON.stringify(this.askList),
  18785. type: 8,
  18786. },
  18787. ];
  18788. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18789. this.homeWorkLoading = true
  18790. this.ajax
  18791. .post(this.$store.state.api + "addCourseWorks", params)
  18792. .then((res) => {
  18793. this.$message({
  18794. message: "提交成功",
  18795. type: "success",
  18796. });
  18797. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18798. setTimeout(() => {
  18799. this.homeWorkLoading = false
  18800. }, 500);
  18801. this.askList = [];
  18802. this.dialogVisibleChoice = false;
  18803. this.selectStudent();
  18804. this.selectSWorks();
  18805. this.selectSLook();
  18806. })
  18807. .catch((err) => {
  18808. this.$message.error("提交失败");
  18809. console.error(err);
  18810. setTimeout(() => {
  18811. this.homeWorkLoading = false
  18812. }, 500);
  18813. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18814. });
  18815. },
  18816. addStudentTestTeacher() {
  18817. if (!this.radio.length) {
  18818. this.$message.error("请选择选项");
  18819. return;
  18820. }
  18821. for (var i = 0; i < this.testJson.testCount; i++) {
  18822. if (
  18823. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18824. (this.radio[i] !== 0 && !this.radio[i])
  18825. ) {
  18826. this.$message.error("请选择选项");
  18827. return;
  18828. }
  18829. }
  18830. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18831. let params = [
  18832. {
  18833. uid: this.sStudent.userid,
  18834. cid: this.id,
  18835. stage: this.courseType,
  18836. task: this.taskCount,
  18837. tool: this.toolindex,
  18838. content: JSON.stringify(this.askList),
  18839. type: 8,
  18840. },
  18841. ];
  18842. this.ajax
  18843. .post(this.$store.state.api + "addCourseWorks", params)
  18844. .then((res) => {
  18845. this.$message({
  18846. message: "提交成功",
  18847. type: "success",
  18848. });
  18849. this.askList = [];
  18850. this.dialogVisibleChoiceTeacher = false;
  18851. this.selectStudent();
  18852. this.selectSWorks();
  18853. this.selectSLook();
  18854. })
  18855. .catch((err) => {
  18856. this.$message.error("提交失败");
  18857. console.error(err);
  18858. });
  18859. },
  18860. addWork() {
  18861. if (this.studyJuri[0].content == "") {
  18862. this.$message.error("请将信息填写完整");
  18863. return;
  18864. } else if (this.studyJuri[0].cover.length == 0) {
  18865. this.$message.error("请将信息填写完整");
  18866. return;
  18867. } else if (this.studyJuri[0].upVedio.length == 0) {
  18868. this.$message.error("请将信息填写完整");
  18869. return;
  18870. }
  18871. if (this.isNoHomeWork) {
  18872. this.$confirm(
  18873. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  18874. "提示",
  18875. {
  18876. confirmButtonText: "确定",
  18877. cancelButtonText: "取消",
  18878. type: "warning",
  18879. }
  18880. )
  18881. .then(() => {
  18882. let params = [
  18883. {
  18884. uid: this.userid,
  18885. cid: this.id,
  18886. stage: this.courseType,
  18887. task: this.taskCount,
  18888. content: JSON.stringify(this.studyJuri),
  18889. },
  18890. ];
  18891. this.ajax
  18892. .post(this.$store.state.api + "addWorks", params)
  18893. .then((res) => {
  18894. this.$message({
  18895. message: "提交成功",
  18896. type: "success",
  18897. });
  18898. this.isNoHomeWork = true;
  18899. this.dialogVisible = false;
  18900. })
  18901. .catch((err) => {
  18902. this.$message.error("提交失败");
  18903. console.error(err);
  18904. });
  18905. })
  18906. .catch(() => {});
  18907. } else {
  18908. let params = [
  18909. {
  18910. uid: this.userid,
  18911. cid: this.id,
  18912. stage: this.courseType,
  18913. task: this.taskCount,
  18914. content: JSON.stringify(this.studyJuri),
  18915. },
  18916. ];
  18917. this.ajax
  18918. .post(this.$store.state.api + "addWorks", params)
  18919. .then((res) => {
  18920. this.$message({
  18921. message: "提交成功",
  18922. type: "success",
  18923. });
  18924. this.isNoHomeWork = true;
  18925. this.dialogVisible = false;
  18926. })
  18927. .catch((err) => {
  18928. this.$message.error("提交失败");
  18929. console.error(err);
  18930. });
  18931. }
  18932. },
  18933. selectCount() {
  18934. let params = {
  18935. cid: this.id,
  18936. chid: this.courseType,
  18937. uid: this.userid,
  18938. };
  18939. this.ajax
  18940. .get(this.$store.state.api + "selectToolsCount", params)
  18941. .then((res) => {
  18942. for (var i = 0; i < res.data[0].length; i++) {
  18943. if (res.data[0][i].tools == 1) {
  18944. this.wbCount = res.data[0][i].count;
  18945. } else if (res.data[0][i].tools == 2) {
  18946. this.wordCount = res.data[0][i].count;
  18947. } else if (res.data[0][i].tools == 3) {
  18948. this.mindCount = res.data[0][i].count;
  18949. } else if (res.data[0][i].tools == 4) {
  18950. this.askCount = res.data[0][i].count;
  18951. } else if (res.data[0][i].tools == 6) {
  18952. this.noteCount = res.data[0][i].count;
  18953. } else if (res.data[0][i].tools == 7) {
  18954. this.mindNetWorkCount = res.data[0][i].count;
  18955. } else if (res.data[0][i].tools == 8) {
  18956. this.libraryCount = res.data[0][i].count;
  18957. } else if (res.data[0][i].tools == 16) {
  18958. this.workCount = res.data[0][i].count;
  18959. } else if (res.data[0][i].tools == 10) {
  18960. this.timeCount = res.data[0][i].count;
  18961. } else if (res.data[0][i].tools == 15) {
  18962. this.answerCount = res.data[0][i].count;
  18963. } else if (res.data[0][i].tools == 18) {
  18964. this.trainCount = res.data[0][i].count;
  18965. }
  18966. }
  18967. })
  18968. .catch((err) => {
  18969. console.error(err);
  18970. });
  18971. },
  18972. openTools(t, i, index, c, sName,id) {
  18973. var z = JSON.parse(c);
  18974. this.noteName = sName;
  18975. if (t == 4) {
  18976. this.radio = [];
  18977. this.isAnswer = false;
  18978. let b = z[0].anwer;
  18979. this.radio = b;
  18980. this.askJson = z[0].askJson;
  18981. this.isAnswer = true;
  18982. this.dialogVisible5 = true;
  18983. } else if (t == 45) {
  18984. this.radio = [];
  18985. this.isAnswer = false;
  18986. let b = z[0].anwer;
  18987. this.radio = b;
  18988. this.testJson = z[0].testJson;
  18989. this.isAnswer = true;
  18990. this.dialogVisibleChoice = true;
  18991. }else if(t == 69){
  18992. this.oldEnglishJson1 = {}
  18993. this.oldEnglishJson = {}
  18994. this.englishList1 = {}
  18995. this.newEngIndex = -1;
  18996. this.isNoUserid = false;
  18997. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18998. .toolChoose[i].englishList;
  18999. this.oldEnglishJson = z;
  19000. this.engWid = id;
  19001. this.newEnglishList = { engTitle:"",engText:"" }
  19002. this.newEnglishList1 = []
  19003. this.selectEngC(id,z);
  19004. }else if(t == 62){
  19005. this.videoType = 1;
  19006. this.videoJson = {};
  19007. this.videoJson = JSON.parse(c);
  19008. // this.videoJson =
  19009. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19010. // index
  19011. // ].toolChoose[i].videoJson;
  19012. this.dialogVisibleVideo = true;
  19013. }
  19014. // else if (t == 15) {
  19015. // this.answerQ = "";
  19016. // this.questionAnswer = "";
  19017. // this.answerQ = z[0].answerTitle;
  19018. // this.questionAnswer = z[0].answer;
  19019. // this.answerDialogVisible = true;
  19020. // }
  19021. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  19022. },
  19023. fastText(p, t) {
  19024. if (t == 1) {
  19025. this.commentText += p;
  19026. } else {
  19027. this.eScore.eBzText += p;
  19028. }
  19029. },
  19030. addTools(t, i, index) {
  19031. var a = 0;
  19032. // this.taskCount = index;
  19033. this.toolindex = i;
  19034. if (t == 1) {
  19035. if (this.wbCount > 0) {
  19036. this.updateCount(this.wbCount, t);
  19037. } else {
  19038. this.wbCount++;
  19039. a = this.wbCount;
  19040. this.toolsCount(a, t);
  19041. }
  19042. window.topU.postMessage(
  19043. {
  19044. tools: "1",
  19045. cid: this.id,
  19046. stage: this.courseType,
  19047. task: this.taskCount,
  19048. tool: i,
  19049. },
  19050. "*"
  19051. );
  19052. } else if (t == 2) {
  19053. if (this.wordCount > 0) {
  19054. this.updateCount(this.wordCount, t);
  19055. } else {
  19056. this.wordCount++;
  19057. a = this.wordCount;
  19058. this.toolsCount(a, t);
  19059. }
  19060. window.topU.postMessage({ tools: "2" }, "*");
  19061. } else if (t == 3) {
  19062. if (this.mindCount > 0) {
  19063. this.updateCount(this.mindCount, t);
  19064. } else {
  19065. this.mindCount++;
  19066. a = this.mindCount;
  19067. this.toolsCount(a, t);
  19068. }
  19069. window.topU.postMessage(
  19070. {
  19071. tools: "3",
  19072. cid: this.id,
  19073. stage: this.courseType,
  19074. task: this.taskCount,
  19075. tool: i,
  19076. },
  19077. "*"
  19078. );
  19079. } else if (t == 4) {
  19080. this.radio = [];
  19081. this.noteName = "";
  19082. this.isAnswer = false;
  19083. if (this.askCount > 0) {
  19084. this.updateCount(this.askCount, t);
  19085. } else {
  19086. this.askCount++;
  19087. a = this.askCount;
  19088. this.toolsCount(a, t);
  19089. }
  19090. if (!this.dialogVisible2) {
  19091. this.askJson.askJson =
  19092. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19093. index
  19094. ].toolChoose[i].askJson;
  19095. this.askJson.askTitle =
  19096. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19097. index
  19098. ].toolChoose[i].askTitle;
  19099. this.askJson.askCount =
  19100. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19101. index
  19102. ].toolChoose[i].askCount;
  19103. } else {
  19104. this.askJson.askJson = this.chapTools.askJson.askJson;
  19105. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  19106. this.askJson.askCount = this.chapTools.askJson.askCount;
  19107. }
  19108. for (var k = 0; k < this.askJson.askJson.length; k++) {
  19109. if (this.askJson.askJson[k].type == "2") {
  19110. this.radio.push([]);
  19111. } else {
  19112. this.radio.push("");
  19113. }
  19114. }
  19115. this.dialogVisible5 = true;
  19116. // window.topU.postMessage({ tools: "4" }, "*");
  19117. } else if (t == 45) {
  19118. this.noteName = "";
  19119. this.radio = [];
  19120. this.isAnswer = false;
  19121. if (this.askCount > 0) {
  19122. this.updateCount(this.askCount, t);
  19123. } else {
  19124. this.askCount++;
  19125. a = this.askCount;
  19126. this.toolsCount(a, t);
  19127. }
  19128. this.testJson =
  19129. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19130. index
  19131. ].toolChoose[i].testJson;
  19132. for (var k = 0; k < this.testJson.testJson.length; k++) {
  19133. if (this.testJson.testJson[k].type == "2") {
  19134. this.radio.push([]);
  19135. } else {
  19136. this.radio.push("");
  19137. }
  19138. }
  19139. this.dialogVisibleChoice = true;
  19140. // window.topU.postMessage({ tools: "4" }, "*");
  19141. } else if (t == 5) {
  19142. if (this.scoreCount > 0) {
  19143. this.updateCount(this.scoreCount, t);
  19144. } else {
  19145. this.scoreCount++;
  19146. a = this.scoreCount;
  19147. this.toolsCount(a, t);
  19148. }
  19149. this.dialogVisible4 = true;
  19150. // window.topU.postMessage({ tools: "5" }, "*");
  19151. } else if (t == 6) {
  19152. if (this.noteCount > 0) {
  19153. this.updateCount(this.noteCount, t);
  19154. } else {
  19155. this.noteCount++;
  19156. a = this.noteCount;
  19157. this.toolsCount(a, t);
  19158. }
  19159. window.topU.postMessage(
  19160. {
  19161. tools: "6",
  19162. cid: this.id,
  19163. stage: this.courseType,
  19164. task: this.taskCount,
  19165. tool: i,
  19166. },
  19167. "*"
  19168. );
  19169. } else if (t == 7) {
  19170. if (this.mindNetWorkCount > 0) {
  19171. this.updateCount(this.mindNetWorkCount, t);
  19172. } else {
  19173. this.mindNetWorkCount++;
  19174. a = this.mindNetWorkCount;
  19175. this.toolsCount(a, t);
  19176. }
  19177. window.topU.postMessage(
  19178. {
  19179. tools: "7",
  19180. cid: this.id,
  19181. stage: this.courseType,
  19182. task: this.taskCount,
  19183. tool: i,
  19184. },
  19185. "*"
  19186. );
  19187. } else if (t == 16) {
  19188. if (this.workCount > 0) {
  19189. this.updateCount(this.workCount, t);
  19190. } else {
  19191. this.workCount++;
  19192. a = this.workCount;
  19193. this.toolsCount(a, t);
  19194. }
  19195. this.dialogVisible = true;
  19196. } else if (t == 50) {
  19197. if (this.tType == 2) {
  19198. this.$message.error("不支持学生使用");
  19199. return;
  19200. }
  19201. this.plworkFile = [];
  19202. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19203. if (!this.uploadCid) {
  19204. this.$message.error(
  19205. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19206. );
  19207. return;
  19208. }
  19209. // this.uploadCid =
  19210. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19211. // index
  19212. // ].toolChoose[i].uploadJson[0];
  19213. this.selectUploadStudent(2);
  19214. } else if (t == 8) {
  19215. if (this.libraryCount > 0) {
  19216. this.updateCount(this.libraryCount, t);
  19217. } else {
  19218. this.libraryCount++;
  19219. a = this.libraryCount;
  19220. this.toolsCount(a, t);
  19221. }
  19222. window.topU.postMessage({ tools: "8" }, "*");
  19223. } else if (t == 17) {
  19224. if (this.libraryCount > 0) {
  19225. this.updateCount(this.libraryCount, t);
  19226. } else {
  19227. this.libraryCount++;
  19228. a = this.libraryCount;
  19229. this.toolsCount(a, t);
  19230. }
  19231. window.topU.postMessage({ tools: "17" }, "*");
  19232. } else if (t == 18) {
  19233. if (this.trainCount > 0) {
  19234. this.updateCount(this.trainCount, t);
  19235. } else {
  19236. this.trainCount++;
  19237. a = this.trainCount;
  19238. this.toolsCount(a, t);
  19239. }
  19240. window.topU.postMessage({ tools: "18" }, "*");
  19241. } else if (t == 10) {
  19242. if (this.timeCount > 0) {
  19243. this.updateCount(this.timeCount, t);
  19244. } else {
  19245. this.timeCount++;
  19246. a = this.timeCount;
  19247. this.toolsCount(a, t);
  19248. }
  19249. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  19250. .taskJson[index].toolChoose[i].preTime
  19251. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19252. .toolChoose[i].preTime
  19253. : "";
  19254. this.timeDialogVisible = true;
  19255. } else if (t == 15) {
  19256. this.answerQ = "";
  19257. this.questionAnswer = "";
  19258. if (this.answerCount > 0) {
  19259. this.updateCount(this.answerCount, t);
  19260. } else {
  19261. this.answerCount++;
  19262. a = this.answerCount;
  19263. this.toolsCount(a, t);
  19264. }
  19265. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19266. .taskJson[index].toolChoose[i].answerQ
  19267. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19268. .toolChoose[i].answerQ
  19269. : "";
  19270. this.answerDialogVisible = true;
  19271. } else if (t == 21) {
  19272. window.topU.postMessage({ tools: "21" }, "*");
  19273. } else if (t == 22) {
  19274. window.topU.postMessage({ tools: "22" }, "*");
  19275. } else if (t == 23) {
  19276. window.topU.postMessage({ tools: "23" }, "*");
  19277. } else if (t == 24) {
  19278. window.topU.postMessage({ tools: "24" }, "*");
  19279. } else if (t == 25) {
  19280. window.topU.postMessage({ tools: "25" }, "*");
  19281. } else if (t == 31) {
  19282. window.topU.postMessage({ tools: "31" }, "*");
  19283. } else if (t == 28) {
  19284. window.topU.postMessage({ tools: "28" }, "*");
  19285. } else if (t == 37) {
  19286. window.topU.postMessage({ tools: "37" }, "*");
  19287. } else if (t == 38) {
  19288. window.topU.postMessage({ tools: "38" }, "*");
  19289. } else if (t == 39) {
  19290. window.topU.postMessage({ tools: "39" }, "*");
  19291. } else if (t == 32) {
  19292. window.topU.postMessage({ tools: "32" }, "*");
  19293. } else if (t == 66) {
  19294. window.topU.postMessage({ tools: "66" }, "*");
  19295. } else if (t == 67) {
  19296. window.topU.postMessage({ tools: "67" }, "*");
  19297. } else if (t == 68) {
  19298. window.topU.postMessage({ tools: "68" }, "*");
  19299. } else if (t == 57) {
  19300. // window.topU.postMessage({ tools: "57" }, "*");
  19301. window.topU.postMessage(
  19302. {
  19303. tools: "57u",
  19304. cid: this.id,
  19305. stage: this.courseType,
  19306. task: this.taskCount,
  19307. tool: i,
  19308. },
  19309. "*"
  19310. );
  19311. } else if (t == 58) {
  19312. window.topU.postMessage({ tools: "58" }, "*");
  19313. } else if (t == 59) {
  19314. window.topU.postMessage({ tools: "59" }, "*");
  19315. } else if (t == 60) {
  19316. window.topU.postMessage({ tools: "60" }, "*");
  19317. } else if (t == 61) {
  19318. window.topU.postMessage({ tools: "61" }, "*");
  19319. } else if (t == 63) {
  19320. window.topU.postMessage({ tools: "63" }, "*");
  19321. } else if (t == 71) {
  19322. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  19323. // this.$message.error("该工具不可使用");
  19324. // return
  19325. // }
  19326. window.topU.postMessage({ tools: "71" }, "*");
  19327. } else if (t == 72) {
  19328. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  19329. .taskJson[index].toolChoose[i].appJson
  19330. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19331. .toolChoose[i].appJson
  19332. : "";
  19333. if(!item || !item.url){
  19334. this.$message.error("应用连接为空, 请到课程管理中添加");
  19335. return;
  19336. }
  19337. if (!document.fullscreenElement) {
  19338. this.enterFullScreen();
  19339. }
  19340. this.$refs.appStoreC.getData(item.url,this.userid)
  19341. // window.topU.postMessage({ tools: "72", data: item }, "*");
  19342. // window.open(item.url, "_blank");
  19343. } else if (t == 69) {
  19344. if (this.worksStudent[i].length) {
  19345. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19346. if (this.userid == this.worksStudent[i][k].userid) {
  19347. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  19348. break;
  19349. } else {
  19350. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  19351. }
  19352. }
  19353. } else {
  19354. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  19355. }
  19356. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  19357. .taskJson[index].toolChoose[i].englishList
  19358. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19359. .toolChoose[i].englishList
  19360. : {};
  19361. this.englishToolIndex = i;
  19362. this.myAnList = this.myAnswerList1;
  19363. this.engDialogVisible = true;
  19364. } else if (t == 70) {
  19365. if (this.worksStudent[i].length) {
  19366. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19367. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  19368. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  19369. break;
  19370. } else {
  19371. this.englishVoiceJsonWork = [];
  19372. }
  19373. }
  19374. } else {
  19375. this.englishVoiceJsonWork = [];
  19376. }
  19377. let englishVoiceJson = {}
  19378. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19379. .taskJson[index].toolChoose[i].englishVoiceJson
  19380. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19381. .toolChoose[i].englishVoiceJson
  19382. : {};
  19383. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  19384. this.EnglishVoiceDialog = true;
  19385. } else if (t == 65) {
  19386. if (this.tType == 2) {
  19387. this.$message.error("不支持学生使用");
  19388. return;
  19389. }
  19390. this.uploadCid = this.tcid;
  19391. if (!this.uploadCid) {
  19392. this.$message.error(
  19393. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  19394. );
  19395. return;
  19396. }
  19397. this.selectPickStudent();
  19398. } else if (t == 26) {
  19399. window.topU.postMessage(
  19400. {
  19401. tools: "26",
  19402. cid: this.id,
  19403. stage: this.courseType,
  19404. task: this.taskCount,
  19405. tool: i,
  19406. },
  19407. "*"
  19408. );
  19409. } else if (t == 40) {
  19410. if (this.evalCount > 0) {
  19411. this.updateCount(this.evalCount, t);
  19412. } else {
  19413. this.evalCount++;
  19414. a = this.evalCount;
  19415. this.toolsCount(a, t);
  19416. }
  19417. this.eScore = { eBzText: "", eStar: [] };
  19418. if (this.worksStudent[i].length) {
  19419. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19420. if (this.userid == this.worksStudent[i][k].userid) {
  19421. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19422. this.rateJson =
  19423. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19424. index
  19425. ].toolChoose[i].rateJson;
  19426. break;
  19427. } else {
  19428. this.rateJson =
  19429. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19430. index
  19431. ].toolChoose[i].rateJson;
  19432. }
  19433. }
  19434. } else {
  19435. this.rateJson =
  19436. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19437. index
  19438. ].toolChoose[i].rateJson;
  19439. }
  19440. this.isStar = false;
  19441. this.studentEvalDialogVisible = true;
  19442. } else if (t == 41) {
  19443. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19444. .taskJson[index].toolChoose[i].selectJson
  19445. ? JSON.parse(
  19446. JSON.stringify(
  19447. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19448. index
  19449. ].toolChoose[i].selectJson
  19450. )
  19451. )
  19452. : { url: "", select: [], answer: [] };
  19453. if (this.worksStudent[i].length) {
  19454. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19455. if (this.userid == this.worksStudent[i][k].userid) {
  19456. var a = this.worksStudent[i][k].works.split(",");
  19457. for (var ki = 0; ki < a.length; ki++) {
  19458. a[ki] = parseInt(a[ki]);
  19459. }
  19460. this.selectAnswer = {
  19461. answer: a,
  19462. stu: this.worksStudent[i][k].sName,
  19463. };
  19464. break;
  19465. } else {
  19466. this.selectAnswer = { answer: [], stu: "" };
  19467. }
  19468. }
  19469. } else {
  19470. this.selectAnswer = { answer: [], stu: "" };
  19471. }
  19472. this.isSelect = false;
  19473. this.dialogVisibleSelect = true;
  19474. } else if (t == 44) {
  19475. window.topU.postMessage({ tools: "44" }, "*");
  19476. } else if (t == 47) {
  19477. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19478. .taskJson[index].toolChoose[i].sentenceList
  19479. ? JSON.parse(
  19480. JSON.stringify(
  19481. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19482. index
  19483. ].toolChoose[i].sentenceList
  19484. )
  19485. )
  19486. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19487. for (var q = 0; q < this.sentenceList.length; q++) {
  19488. this.sentenceList[q].chooseSenList = [];
  19489. this.sentenceList[q].addChangeSen = [];
  19490. this.sentenceList[q].addChangeSen = JSON.parse(
  19491. JSON.stringify(this.sentenceList[q].addSentence)
  19492. );
  19493. this.sentenceList[q].chooseSenList.length =
  19494. this.sentenceList[q].rightAnswer.length;
  19495. }
  19496. this.dialogVisibleSentence = true;
  19497. } else if (t == 48) {
  19498. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19499. .taskJson[index].toolChoose[i].tableJson
  19500. ? JSON.parse(
  19501. JSON.stringify(
  19502. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19503. index
  19504. ].toolChoose[i].tableJson
  19505. )
  19506. )
  19507. : { text: "" };
  19508. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  19509. if (this.worksStudent[i].length) {
  19510. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19511. if (this.userid == this.worksStudent[i][k].userid) {
  19512. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19513. break;
  19514. }
  19515. }
  19516. }
  19517. this.dialogVisibleTable = true;
  19518. } else if (t == 52) {
  19519. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19520. .taskJson[index].toolChoose[i].wordJson
  19521. ? JSON.parse(
  19522. JSON.stringify(
  19523. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19524. index
  19525. ].toolChoose[i].wordJson
  19526. )
  19527. )
  19528. : { text: "" };
  19529. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  19530. if (this.worksStudent[i].length) {
  19531. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19532. if (this.userid == this.worksStudent[i][k].userid) {
  19533. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19534. break;
  19535. }
  19536. }
  19537. }
  19538. this.dialogVisibleWord = true;
  19539. } else if (t == 49) {
  19540. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  19541. return
  19542. }
  19543. this.groupJson =
  19544. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19545. index
  19546. ].toolChoose[i].groupJson;
  19547. this.islock = this.groupJson.islock == 1 ? true : false;
  19548. this.dialogVisibleGroup = true;
  19549. } else if (t == 62) {
  19550. this.videoType = 0;
  19551. this.videoJson = {};
  19552. this.videoJson =
  19553. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19554. index
  19555. ].toolChoose[i].videoJson;
  19556. this.dialogVisibleVideo = true;
  19557. }
  19558. this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
  19559. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  19560. },
  19561. teacherWorkSubmit(t, i, index, s) {
  19562. console.log('t',t);
  19563. if(t == 72) return
  19564. this.sStudent = s;
  19565. this.toolindex = i;
  19566. this.sTool = t;
  19567. if (this.tType !== "1" && this.tType !== "4") {
  19568. return;
  19569. }
  19570. if (t == 16 || t == 32 || t == 50) {
  19571. this.dialogVisibleWorks = true;
  19572. } else if (t == 15) {
  19573. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19574. .taskJson[index].toolChoose[i].answerQ
  19575. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19576. .toolChoose[i].answerQ
  19577. : "";
  19578. this.questionAnswer = "";
  19579. this.answerDialogVisibleTeacher = true; //问答
  19580. } else if (t == 52) {
  19581. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19582. .taskJson[index].toolChoose[i].wordJson
  19583. ? JSON.parse(
  19584. JSON.stringify(
  19585. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19586. index
  19587. ].toolChoose[i].wordJson
  19588. )
  19589. )
  19590. : { text: "" };
  19591. if (this.worksStudent[i].length) {
  19592. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19593. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19594. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19595. break;
  19596. }
  19597. }
  19598. }
  19599. this.dialogVisibleWordTeacher = true; //文档
  19600. } else if (t == 4) {
  19601. this.radio = [];
  19602. this.noteName = "";
  19603. this.isAnswer = false;
  19604. if (this.askCount > 0) {
  19605. this.updateCount(this.askCount, t);
  19606. } else {
  19607. this.askCount++;
  19608. a = this.askCount;
  19609. this.toolsCount(a, t);
  19610. }
  19611. if (!this.dialogVisible2) {
  19612. this.askJson.askJson =
  19613. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19614. index
  19615. ].toolChoose[i].askJson;
  19616. this.askJson.askTitle =
  19617. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19618. index
  19619. ].toolChoose[i].askTitle;
  19620. this.askJson.askCount =
  19621. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19622. index
  19623. ].toolChoose[i].askCount;
  19624. } else {
  19625. this.askJson.askJson = this.chapTools.askJson.askJson;
  19626. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  19627. this.askJson.askCount = this.chapTools.askJson.askCount;
  19628. }
  19629. for (var k = 0; k < this.askJson.askJson.length; k++) {
  19630. if (this.askJson.askJson[k].type == "2") {
  19631. this.radio.push([]);
  19632. } else {
  19633. this.radio.push("");
  19634. }
  19635. }
  19636. this.dialogVisible5Teacher = true;
  19637. } else if (t == 45) {
  19638. this.noteName = "";
  19639. this.radio = [];
  19640. this.isAnswer = false;
  19641. if (this.askCount > 0) {
  19642. this.updateCount(this.askCount, t);
  19643. } else {
  19644. this.askCount++;
  19645. a = this.askCount;
  19646. this.toolsCount(a, t);
  19647. }
  19648. this.testJson =
  19649. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19650. index
  19651. ].toolChoose[i].testJson;
  19652. for (var k = 0; k < this.testJson.testJson.length; k++) {
  19653. if (this.testJson.testJson[k].type == "2") {
  19654. this.radio.push([]);
  19655. } else {
  19656. this.radio.push("");
  19657. }
  19658. }
  19659. this.dialogVisibleChoiceTeacher = true;
  19660. } else if (t == 41) {
  19661. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19662. .taskJson[index].toolChoose[i].selectJson
  19663. ? JSON.parse(
  19664. JSON.stringify(
  19665. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19666. index
  19667. ].toolChoose[i].selectJson
  19668. )
  19669. )
  19670. : { url: "", select: [], answer: [] };
  19671. if (this.worksStudent[i].length) {
  19672. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19673. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19674. var a = this.worksStudent[i][k].works.split(",");
  19675. for (var ki = 0; ki < a.length; ki++) {
  19676. a[ki] = parseInt(a[ki]);
  19677. }
  19678. this.selectAnswer = {
  19679. answer: a,
  19680. stu: this.worksStudent[i][k].sName,
  19681. };
  19682. break;
  19683. } else {
  19684. this.selectAnswer = { answer: [], stu: "" };
  19685. }
  19686. }
  19687. } else {
  19688. this.selectAnswer = { answer: [], stu: "" };
  19689. }
  19690. this.isSelect = false;
  19691. this.dialogVisibleSelectTeacher = true;
  19692. } else if (t == 47) {
  19693. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19694. .taskJson[index].toolChoose[i].sentenceList
  19695. ? JSON.parse(
  19696. JSON.stringify(
  19697. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19698. index
  19699. ].toolChoose[i].sentenceList
  19700. )
  19701. )
  19702. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19703. for (var q = 0; q < this.sentenceList.length; q++) {
  19704. this.sentenceList[q].chooseSenList = [];
  19705. this.sentenceList[q].addChangeSen = [];
  19706. this.sentenceList[q].addChangeSen = JSON.parse(
  19707. JSON.stringify(this.sentenceList[q].addSentence)
  19708. );
  19709. this.sentenceList[q].chooseSenList.length =
  19710. this.sentenceList[q].rightAnswer.length;
  19711. }
  19712. this.dialogVisibleSentenceTeacher = true;
  19713. } else if (t == 48) {
  19714. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19715. .taskJson[index].toolChoose[i].tableJson
  19716. ? JSON.parse(
  19717. JSON.stringify(
  19718. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19719. index
  19720. ].toolChoose[i].tableJson
  19721. )
  19722. )
  19723. : { text: "" };
  19724. if (this.worksStudent[i].length) {
  19725. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19726. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19727. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19728. break;
  19729. }
  19730. }
  19731. }
  19732. this.dialogVisibleTableTeacher = true;
  19733. } else if (t == 40) {
  19734. if (this.evalCount > 0) {
  19735. this.updateCount(this.evalCount, t);
  19736. } else {
  19737. this.evalCount++;
  19738. a = this.evalCount;
  19739. this.toolsCount(a, t);
  19740. }
  19741. this.eScore = { eBzText: "", eStar: [] };
  19742. if (this.worksStudent[i].length) {
  19743. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19744. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19745. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19746. this.rateJson =
  19747. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19748. index
  19749. ].toolChoose[i].rateJson;
  19750. break;
  19751. } else {
  19752. this.rateJson =
  19753. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19754. index
  19755. ].toolChoose[i].rateJson;
  19756. }
  19757. }
  19758. } else {
  19759. this.rateJson =
  19760. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19761. index
  19762. ].toolChoose[i].rateJson;
  19763. }
  19764. this.isStar = false;
  19765. this.studentEvalDialogVisibleTeacher = true;
  19766. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  19767. window.topU.postMessage(
  19768. {
  19769. tools: t + "teacher",
  19770. cid: this.id,
  19771. stage: this.courseType,
  19772. task: this.taskCount,
  19773. tool: i,
  19774. student: this.sStudent,
  19775. },
  19776. "*"
  19777. );
  19778. }else if (t == 72) {
  19779. if (!document.fullscreenElement) {
  19780. this.enterFullScreen();
  19781. }
  19782. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  19783. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  19784. }
  19785. },
  19786. openCocoPi(tool, i, uid, uname) {
  19787. let student = {
  19788. userid: uid,
  19789. student: uname,
  19790. };
  19791. if (tool == 57) {
  19792. window.topU.postMessage(
  19793. {
  19794. tools: tool + "teacher",
  19795. cid: this.id,
  19796. stage: this.courseType,
  19797. task: this.taskCount,
  19798. tool: i,
  19799. student: student,
  19800. },
  19801. "*"
  19802. );
  19803. }
  19804. },
  19805. setRightAnswer(s, i, j) {
  19806. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  19807. if (
  19808. this.sentenceList[i].chooseSenList[q] == undefined ||
  19809. this.sentenceList[i].chooseSenList[q] == ""
  19810. ) {
  19811. this.sentenceList[i].chooseSenList[q] = s;
  19812. this.sentenceList[i].addChangeSen[j] = "";
  19813. break;
  19814. }
  19815. }
  19816. this.$forceUpdate();
  19817. },
  19818. returnCard(r, i, j) {
  19819. var a = this.sentenceList[i].addSentence.indexOf(r);
  19820. this.sentenceList[i].chooseSenList[j] = "";
  19821. this.sentenceList[i].addChangeSen[a] = r;
  19822. this.$forceUpdate();
  19823. },
  19824. // addSentenceTool() {
  19825. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19826. // this.taskCount
  19827. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  19828. // this.sentenceList = [
  19829. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  19830. // ];
  19831. // this.dialogVisibleSentence = false;
  19832. // },
  19833. toolsCount(a, t) {
  19834. let params = {
  19835. cid: this.id,
  19836. chid: this.courseType,
  19837. uid: this.userid,
  19838. tid: t,
  19839. count: a,
  19840. };
  19841. this.ajax
  19842. .get(this.$store.state.api + "insertToolsCount", params)
  19843. .then((res) => {
  19844. this.selectCount();
  19845. })
  19846. .catch((err) => {
  19847. console.error(err);
  19848. });
  19849. },
  19850. updateCount(c, t) {
  19851. c++;
  19852. let params = {
  19853. cid: this.id,
  19854. chid: this.courseType,
  19855. uid: this.userid,
  19856. tid: t,
  19857. count: c,
  19858. };
  19859. this.ajax
  19860. .get(this.$store.state.api + "updateToolsCount", params)
  19861. .then((res) => {
  19862. this.selectCount();
  19863. })
  19864. .catch((err) => {
  19865. console.error(err);
  19866. });
  19867. },
  19868. checkEva() {
  19869. if (this.evalua != "") {
  19870. for (var i = 0; i < this.evaJuri.length; i++) {
  19871. if (this.evalua == this.evaJuri[i].id) {
  19872. this.eTitle = this.evaJuri[i].title;
  19873. this.eJson = JSON.parse(this.evaJuri[i].content);
  19874. }
  19875. }
  19876. this.$forceUpdate();
  19877. setTimeout(() => {
  19878. this.setMindData();
  19879. }, 0);
  19880. }
  19881. },
  19882. selectEva() {
  19883. let params = {
  19884. oid: this.oid,
  19885. };
  19886. this.ajax
  19887. .get(this.$store.state.api + "selectAllEvaluation", params)
  19888. .then((res) => {
  19889. this.evaJuri = res.data[0];
  19890. })
  19891. .catch((err) => {
  19892. console.error(err);
  19893. });
  19894. },
  19895. setMindData() {
  19896. this.data.data = [];
  19897. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  19898. let _eJson = Object.keys(this.eJson);
  19899. let _e = this.eJson;
  19900. for (let i = 0; i < _eJson.length; i++) {
  19901. let element = _e[_eJson[i]];
  19902. this.data.data.push({
  19903. id: element.id,
  19904. parentid: "root",
  19905. topic: element.name,
  19906. });
  19907. let _eJsonc = Object.keys(element.child);
  19908. let _e2 = element.child;
  19909. for (let j = 0; j < _eJsonc.length; j++) {
  19910. let _ec = _e2[_eJsonc[j]];
  19911. this.data.data.push({
  19912. id: _ec.id,
  19913. parentid: element.id,
  19914. topic: _ec.name,
  19915. });
  19916. let _eJsonz = Object.keys(_ec.child);
  19917. let _e3 = _ec.child;
  19918. for (let z = 0; z < _eJsonz.length; z++) {
  19919. let _ez = _e3[_eJsonz[z]];
  19920. this.data.data.push({
  19921. id: _ez.id,
  19922. parentid: _ec.id,
  19923. topic: _ez.name,
  19924. });
  19925. }
  19926. }
  19927. }
  19928. this.$forceUpdate();
  19929. },
  19930. checkFileFull(type, url) {
  19931. this.fullDialogVisible = true;
  19932. this.fulltype = type;
  19933. this.fullUrl = url;
  19934. },
  19935. async checkFileFull1(t, f) {
  19936. this.fullDialogVisible = true;
  19937. if (t == 6) {
  19938. this.fulltype = 1;
  19939. console.log('checkFileFull1',f);
  19940. this.fullUrl = JSON.parse(JSON.stringify(f));
  19941. } else if (t == 8) {
  19942. this.fulltype = 2;
  19943. this.fullUrl = f.url;
  19944. } else if (t == 16) {
  19945. this.fulltype = 16;
  19946. this.fullUrl = f.url;
  19947. } else if (t == 15) {
  19948. this.fulltype = 4;
  19949. this.fullUrl = f.url;
  19950. } else if (
  19951. t == 3 &&
  19952. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  19953. "PDF"
  19954. ) {
  19955. this.fulltype = 3;
  19956. this.fullUrl = f.url;
  19957. } else if (t == 3) {
  19958. this.fulltype = 2;
  19959. let _uuurl = await this.checkLink(f.url);
  19960. console.log(_uuurl)
  19961. this.fullUrl =
  19962. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  19963. }
  19964. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  19965. },
  19966. openSname(n, id, i, uid) {
  19967. this.snameWid = id;
  19968. this.worksSName = n;
  19969. this.worksSid = uid == n ? "" : uid;
  19970. this.toolindex = i;
  19971. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19972. if (!this.uploadCid) {
  19973. this.$message.error(
  19974. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19975. );
  19976. return;
  19977. }
  19978. this.selectUploadStudent(1);
  19979. },
  19980. updateName() {
  19981. let params = {
  19982. n: this.worksSName,
  19983. cid: this.snameWid,
  19984. };
  19985. this.ajax
  19986. .get(this.$store.state.api + "updateCourseWorksName", params)
  19987. .then((res) => {
  19988. this.$message({
  19989. message: "修改成功",
  19990. type: "success",
  19991. });
  19992. this.dialogVisibleSname = false;
  19993. this.getCourseDetail(2);
  19994. this.snameWid = "";
  19995. this.worksSName = "";
  19996. })
  19997. .catch((err) => {
  19998. console.error(err);
  19999. });
  20000. },
  20001. downloadFile2(f) {
  20002. // const loading = this.$loading.service({
  20003. // background: "rgba(255, 255, 255, 0.7)",
  20004. // target: document.body,
  20005. // text: "文件加载中...",
  20006. // });
  20007. // let url2 = f.url;
  20008. // let _url2 = "";
  20009. // if (
  20010. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20011. // ) {
  20012. // _url2 = url2.split(
  20013. // "https://view.officeapps.live.com/op/view.aspx?src="
  20014. // )[1];
  20015. // } else {
  20016. // _url2 = url2;
  20017. // }
  20018. // let params = {
  20019. // url: _url2,
  20020. // name: f.name,
  20021. // };
  20022. // this.ajax
  20023. // .get(this.$store.state.api + "download", params)
  20024. // .then((res) => {
  20025. // loading.close();
  20026. // let content = res.data.data.data;
  20027. // let ab = new ArrayBuffer(content.length);
  20028. // let view = new Uint8Array(ab);
  20029. // for (var i = 0; i < content.length; ++i) {
  20030. // view[i] = content[i];
  20031. // }
  20032. // let elink = document.createElement("a");
  20033. // elink.download = f.name;
  20034. // elink.style.display = "none";
  20035. // let blob = new Blob([ab], {
  20036. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  20037. // });
  20038. // elink.href = URL.createObjectURL(blob);
  20039. // document.body.appendChild(elink);
  20040. // elink.click();
  20041. // document.body.removeChild(elink);
  20042. // })
  20043. // .catch((err) => {
  20044. // loading.close();
  20045. // console.error(err);
  20046. // });
  20047. var credentials = {
  20048. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20049. secretAccessKey: "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",
  20050. }; //秘钥形式的登录上传
  20051. window.AWS.config.update(credentials);
  20052. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20053. let url2 = f.url;
  20054. let _url2 = "";
  20055. if (
  20056. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20057. ) {
  20058. _url2 = url2.split(
  20059. "https://view.officeapps.live.com/op/view.aspx?src="
  20060. )[1];
  20061. } else {
  20062. _url2 = url2;
  20063. }
  20064. let _this = this;
  20065. _this.downLoading = true
  20066. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  20067. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  20068. var params = {
  20069. Bucket: "ccrb",
  20070. Key: name
  20071. };
  20072. s3.getObject(params, function (err, data) {
  20073. _this.downLoading = false
  20074. if (err) console.log(err, err.stack); // an error occurred
  20075. else {
  20076. let url = window.URL.createObjectURL(new Blob([data.Body]));
  20077. let a = document.createElement("a");
  20078. a.name = f.name;
  20079. a.href = url;
  20080. a.download = f.name;
  20081. a.click();
  20082. console.log(data);
  20083. } // sxuccessful response
  20084. });
  20085. return;
  20086. let url = f.url;
  20087. let _url = "";
  20088. if (
  20089. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20090. ) {
  20091. _url = url.split(
  20092. "https://view.officeapps.live.com/op/view.aspx?src="
  20093. )[1];
  20094. } else {
  20095. _url = url;
  20096. }
  20097. _this.downLoading = true
  20098. // const loading = _this.$loading.service({
  20099. // background: "rgba(255, 255, 255, 0.7)",
  20100. // target: document.body,
  20101. // text: "文件加载中...",
  20102. // });
  20103. let x = new XMLHttpRequest();
  20104. x.open("GET", _url, true);
  20105. x.responseType = "blob";
  20106. x.onload = function () {
  20107. _this.downLoading = false
  20108. // loading.close();
  20109. let url = window.URL.createObjectURL(new Blob([x.response]));
  20110. let a = document.createElement("a");
  20111. a.name = f.name;
  20112. a.href = url;
  20113. a.download = f.name;
  20114. a.click();
  20115. };
  20116. x.send();
  20117. },
  20118. downloadFile(url,uid) {
  20119. if (this.tType == 1 || this.userid == uid) {
  20120. var credentials = {
  20121. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20122. secretAccessKey: "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",
  20123. }; //秘钥形式的登录上传
  20124. window.AWS.config.update(credentials);
  20125. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20126. let url2 = url;
  20127. let _url2 = "";
  20128. if (
  20129. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20130. ) {
  20131. _url2 = url2.split(
  20132. "https://view.officeapps.live.com/op/view.aspx?src="
  20133. )[1];
  20134. } else {
  20135. _url2 = url2;
  20136. }
  20137. const loading2 = this.$loading.service({
  20138. background: "rgba(255, 255, 255, 0.7)",
  20139. target: document.body,
  20140. text: "文件加载中...",
  20141. });
  20142. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  20143. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  20144. var params = {
  20145. Bucket: "ccrb",
  20146. Key: name
  20147. };
  20148. s3.getObject(params, function (err, data) {
  20149. loading2.close();
  20150. if (err) console.log(err, err.stack); // an error occurred
  20151. else {
  20152. let url = window.URL.createObjectURL(new Blob([data.Body]));
  20153. let a = document.createElement("a");
  20154. a.name = name;
  20155. a.href = url;
  20156. a.download = name;
  20157. a.click();
  20158. console.log(data);
  20159. } // sxuccessful response
  20160. });
  20161. }
  20162. return;
  20163. let _this = this;
  20164. let _url = "";
  20165. if (
  20166. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20167. ) {
  20168. _url = url.split(
  20169. "https://view.officeapps.live.com/op/view.aspx?src="
  20170. )[1];
  20171. } else {
  20172. _url = url;
  20173. }
  20174. const x = new XMLHttpRequest();
  20175. x.open("GET", _url, true);
  20176. x.responseType = "blob";
  20177. // this.downLoading = true
  20178. const loading = _this.$loading.service({
  20179. background: "rgba(255, 255, 255, 0.7)",
  20180. target: document.body,
  20181. text: "文件加载中...",
  20182. });
  20183. // _this.$message.success("文件下载中...");
  20184. x.onload = function (e) {
  20185. this.downLoading = false
  20186. loading.close();
  20187. let content = x.response;
  20188. let elink = document.createElement("a");
  20189. elink.download = decodeURI(
  20190. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  20191. );
  20192. elink.style.display = "none";
  20193. let blob = new Blob([content]);
  20194. elink.href = URL.createObjectURL(blob);
  20195. document.body.appendChild(elink);
  20196. elink.click();
  20197. document.body.removeChild(elink);
  20198. };
  20199. x.send();
  20200. },
  20201. openLine(url) {
  20202. window.open(url);
  20203. },
  20204. resize() {
  20205. if (document.getElementsByClassName("box_course").length) {
  20206. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20207. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20208. if (this.showType == 2 || this.showType == 3) {
  20209. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  20210. document.getElementsByClassName("navBox")[0].style.height =
  20211. a - 40 + 0+ "px";
  20212. }
  20213. } else {
  20214. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  20215. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  20216. }
  20217. }
  20218. }
  20219. this.Stbodywidth =
  20220. document.getElementsByClassName("student_body").length &&
  20221. document.getElementsByClassName("student_body")[0].offsetWidth;
  20222. },
  20223. closeDraw() {
  20224. this.bg = null;
  20225. this.drawShow = false;
  20226. },
  20227. showPicturePaint(url) {
  20228. let params = {
  20229. img: url,
  20230. };
  20231. this.ajax
  20232. .get(this.$store.state.api + "imgToBase64", params)
  20233. .then((res) => {
  20234. this.drawShow = true;
  20235. this.bg = res.data[0].img;
  20236. })
  20237. .catch((err) => {
  20238. console.error(err);
  20239. });
  20240. },
  20241. addImgDraw(base64) {
  20242. let file = { name: "批注图.png" };
  20243. let img = this.dataUrlToFile(base64, file);
  20244. this.beforeUpload1(img, 5);
  20245. },
  20246. addImgDrawImG(url) {
  20247. // console.log(url);
  20248. let params = [
  20249. {
  20250. wid: this.commentDetail.wid,
  20251. img: url,
  20252. },
  20253. ];
  20254. this.ajax
  20255. .post(this.$store.state.api + "updateCourseWorks", params)
  20256. .then((res) => {
  20257. this.$message({
  20258. message: "提交成功",
  20259. type: "success",
  20260. });
  20261. this.drawShow = false;
  20262. this.bg = "";
  20263. this.selectSWorks();
  20264. this.selectStudent();
  20265. })
  20266. .catch((err) => {
  20267. this.$message.error("提交失败");
  20268. console.error(err);
  20269. });
  20270. },
  20271. deletePicturePaint() {
  20272. this.$confirm("确定删除此批注吗?", "提示", {
  20273. confirmButtonText: "确定",
  20274. cancelButtonText: "取消",
  20275. type: "warning",
  20276. })
  20277. .then(() => {
  20278. let params = [
  20279. {
  20280. wid: this.commentDetail.wid,
  20281. img: "",
  20282. },
  20283. ];
  20284. this.ajax
  20285. .post(this.$store.state.api + "updateCourseWorks", params)
  20286. .then((res) => {
  20287. this.$message({
  20288. message: "删除成功",
  20289. type: "success",
  20290. });
  20291. this.selectSWorks();
  20292. this.selectStudent();
  20293. })
  20294. .catch((err) => {
  20295. this.$message.error("删除失败");
  20296. console.error(err);
  20297. });
  20298. })
  20299. .catch(() => {});
  20300. },
  20301. getAudioVideo(constraintsData) {
  20302. if (navigator.mediaDevices === undefined) {
  20303. navigator.mediaDevices = {};
  20304. }
  20305. if (navigator.mediaDevices.getUserMedia === undefined) {
  20306. navigator.mediaDevices.getUserMedia = function (constraints) {
  20307. // 首先,如果有getUserMedia的话,就获得它
  20308. var getUserMedia =
  20309. navigator.getUserMedia ||
  20310. navigator.webkitGetUserMedia ||
  20311. navigator.mozGetUserMedia ||
  20312. navigator.msGetUserMedia;
  20313. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  20314. if (!getUserMedia) {
  20315. return Promise.reject({ code: 404 });
  20316. }
  20317. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  20318. return new Promise(function (resolve, reject) {
  20319. getUserMedia.call(navigator, constraints, resolve, reject);
  20320. });
  20321. };
  20322. }
  20323. return navigator.mediaDevices.getUserMedia(constraintsData);
  20324. },
  20325. /**
  20326. * 开始录制
  20327. */
  20328. startRecording(callback) {
  20329. let _function = (screenStream) => {
  20330. this.addStreamStopListener(screenStream, () => {
  20331. console.log("流停止监听");
  20332. this.stopRecording();
  20333. this.$emit("streamStop", {});
  20334. // this.stopRecording();
  20335. });
  20336. var options = {
  20337. type: "video",
  20338. mimeType: "video/webm",
  20339. disableLogs: false,
  20340. getNativeBlob: false, // enable it for longer recordings
  20341. ignoreMutedMedia: false,
  20342. };
  20343. // this.video.srcObject = screenStream;
  20344. this.recorder = RecordRTC(screenStream, options);
  20345. this.recorder.startRecording();
  20346. this.recorder.screen = screenStream;
  20347. this.videoStart = true;
  20348. // callback(true);
  20349. };
  20350. this.getAudioVideo({ audio: true })
  20351. .then((res) => {
  20352. this.captureScreen(_function, true);
  20353. console.log("已点击允许,开启成功");
  20354. })
  20355. .catch((err) => {
  20356. // console.log('浏览器不支持,请更换浏览器')
  20357. // } else {
  20358. this.captureScreen(_function, false);
  20359. console.log("请检查是否存在麦克风");
  20360. });
  20361. },
  20362. /**
  20363. * 停止录制
  20364. */
  20365. stopRecording(callback) {
  20366. this.recorder.stopRecording(() => {
  20367. // this.video.src = this.video.srcObject = null;
  20368. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  20369. const url = URL.createObjectURL(this.recorder.getBlob());
  20370. const a = document.createElement("a"); //this.fileName+
  20371. let videoFile = new File(
  20372. [this.recorder.getBlob()],
  20373. this.courseDetail.title + "录屏.mp4",
  20374. {
  20375. type: "video/mp4",
  20376. }
  20377. );
  20378. let downloadUrl = URL.createObjectURL(videoFile);
  20379. if(this.$refs.classRoomHelperRef){
  20380. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  20381. }
  20382. document.body.appendChild(a);
  20383. a.style.display = "none";
  20384. a.href = url;
  20385. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  20386. a.click();
  20387. this.recorder.screen.stop();
  20388. this.recorder.destroy();
  20389. this.recorder = null;
  20390. this.videoStart = false;
  20391. // callback(false);
  20392. });
  20393. },
  20394. //初始化
  20395. captureScreen(callback, type) {
  20396. if (navigator.getDisplayMedia) {
  20397. //录制结束,文件下载
  20398. navigator
  20399. .getDisplayMedia({
  20400. video: true,
  20401. })
  20402. .then((screenStream) => {
  20403. if (type) {
  20404. navigator.mediaDevices
  20405. .getUserMedia({ audio: true })
  20406. .then((mic) => {
  20407. screenStream.addTrack(mic.getTracks()[0]);
  20408. callback(screenStream);
  20409. });
  20410. } else {
  20411. callback(screenStream);
  20412. }
  20413. })
  20414. .catch(function (error) {
  20415. console.log("error", error);
  20416. });
  20417. } else if (navigator.mediaDevices.getDisplayMedia) {
  20418. navigator.mediaDevices
  20419. .getDisplayMedia({
  20420. video: true,
  20421. })
  20422. .then((screenStream) => {
  20423. if (type) {
  20424. navigator.mediaDevices
  20425. .getUserMedia({ audio: true })
  20426. .then((mic) => {
  20427. screenStream.addTrack(mic.getTracks()[0]);
  20428. callback(screenStream);
  20429. });
  20430. } else {
  20431. callback(screenStream);
  20432. }
  20433. })
  20434. .catch(function (error) {
  20435. console.log("error", error);
  20436. });
  20437. } else {
  20438. var error = "getDisplayMedia API are not supported in this browser.";
  20439. console.log("error", error);
  20440. alert(error);
  20441. }
  20442. },
  20443. //流监听
  20444. addStreamStopListener(stream, callback) {
  20445. stream.addEventListener(
  20446. "ended",
  20447. function () {
  20448. callback();
  20449. callback = function () {};
  20450. },
  20451. false
  20452. );
  20453. stream.addEventListener(
  20454. "inactive",
  20455. function () {
  20456. callback();
  20457. callback = function () {};
  20458. },
  20459. false
  20460. );
  20461. stream.getTracks().forEach(function (track) {
  20462. track.addEventListener(
  20463. "ended",
  20464. function () {
  20465. callback();
  20466. callback = function () {};
  20467. },
  20468. false
  20469. );
  20470. track.addEventListener(
  20471. "inactive",
  20472. function () {
  20473. callback();
  20474. callback = function () {};
  20475. },
  20476. false
  20477. );
  20478. });
  20479. },
  20480. updateGroup() {
  20481. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20482. this.dialogVisibleGroup2 = true;
  20483. },
  20484. numberPan() {
  20485. if (
  20486. /[^\d]/.test(this.groupJson.number) ||
  20487. this.groupJson.number < 2 ||
  20488. this.groupJson.number > 10
  20489. ) {
  20490. this.$message.error("请输入2-10的数字");
  20491. this.groupJson.number = "";
  20492. }
  20493. },
  20494. updateGroupJson() {
  20495. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  20496. if (
  20497. this.groupStudentUid[this.toolindex][i].length >
  20498. this.groupJson2.number
  20499. ) {
  20500. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  20501. return;
  20502. }
  20503. }
  20504. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  20505. this.islock = this.groupJson.islock == 1 ? true : false;
  20506. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20507. this.taskCount
  20508. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  20509. let params = [
  20510. {
  20511. cid: this.id,
  20512. chapters: JSON.stringify(this.chapInfoList),
  20513. uid: this.userid,
  20514. unitIndex: this.courseType,
  20515. },
  20516. ];
  20517. this.ajax
  20518. .post(this.$store.state.api + "updateWorkNew4", params)
  20519. .then((res) => {
  20520. this.$message.success("设置成功");
  20521. this.getCourseDetail(2);
  20522. this.dialogVisibleGroup2 = false;
  20523. this.groupJson2 = {};
  20524. this.$forceUpdate();
  20525. })
  20526. .catch((err) => {
  20527. this.$message.error("网络不佳");
  20528. console.error(err);
  20529. });
  20530. },
  20531. lockChair() {
  20532. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20533. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  20534. this.updateGroupJson();
  20535. },
  20536. selectGroup(index) {
  20537. this.getCourseDetail(2, index);
  20538. },
  20539. joinGroup(index) {
  20540. if (this.groupJson.islock == 2) {
  20541. this.$message.error("位置已被锁定,无法加入");
  20542. return;
  20543. }
  20544. if (
  20545. this.groupStudent[this.toolindex][index].length >
  20546. this.groupJson.number ||
  20547. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  20548. ) {
  20549. this.$message.error("位置已满,无法加入");
  20550. return;
  20551. }
  20552. let params = [
  20553. {
  20554. cid: this.id,
  20555. stage: this.courseType,
  20556. task: this.taskCount,
  20557. tool: this.toolindex,
  20558. g: index,
  20559. uid: this.userid,
  20560. },
  20561. ];
  20562. this.ajax
  20563. .post(this.$store.state.api + "joinGroup", params)
  20564. .then((res) => {
  20565. this.$message.success("加入成功");
  20566. this.getCourseDetail(2);
  20567. })
  20568. .catch((err) => {
  20569. this.$message.error("网络不佳");
  20570. console.error(err);
  20571. });
  20572. },
  20573. exitGroup(id) {
  20574. if (this.groupJson.islock == 2) {
  20575. this.$message.error("位置已被锁定,无法退出");
  20576. return;
  20577. }
  20578. let params = [
  20579. {
  20580. gid: id,
  20581. },
  20582. ];
  20583. this.ajax
  20584. .post(this.$store.state.api + "exitGroup", params)
  20585. .then((res) => {
  20586. this.$message.success("退出成功");
  20587. this.getCourseDetail(2);
  20588. })
  20589. .catch((err) => {
  20590. this.$message.error("网络不佳");
  20591. console.error(err);
  20592. });
  20593. },
  20594. groupUpload(index, task, gindex) {
  20595. this.taskCount = task;
  20596. this.toolindex = index;
  20597. this.groupIndex = gindex;
  20598. this.dialogVisibleGroupWork = true;
  20599. },
  20600. updateGroupChair(user) {
  20601. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  20602. el.label = index;
  20603. return index != user.group;
  20604. });
  20605. this.updateGroupUser = user;
  20606. this.dialogVisibleUpdateGroup = true;
  20607. },
  20608. updateChair() {
  20609. if (
  20610. this.groupStudent[this.toolindex][this.checkChair].length >
  20611. this.groupJson.number ||
  20612. this.groupStudent[this.toolindex][this.checkChair].length ==
  20613. this.groupJson.number
  20614. ) {
  20615. this.$message.error("位置已满,无法加入");
  20616. return;
  20617. }
  20618. let params = [
  20619. {
  20620. cid: this.id,
  20621. stage: this.courseType,
  20622. task: this.taskCount,
  20623. tool: this.toolindex,
  20624. g: this.checkChair,
  20625. uid: this.updateGroupUser.userid,
  20626. },
  20627. ];
  20628. this.ajax
  20629. .post(this.$store.state.api + "joinGroup", params)
  20630. .then((res) => {
  20631. this.$message.success("修改成功");
  20632. this.updateGroupUser = {};
  20633. this.checkChair = "";
  20634. this.updateGroupArray = {};
  20635. this.dialogVisibleUpdateGroup = false;
  20636. this.getCourseDetail(2);
  20637. })
  20638. .catch((err) => {
  20639. this.$message.error("网络不佳");
  20640. console.error(err);
  20641. });
  20642. },
  20643. deleteGroupChair(gindex) {
  20644. this.checkDeleteGroup = [];
  20645. this.deleteGroupUser = JSON.parse(
  20646. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  20647. );
  20648. this.deleteGroupArray = this.groupJson.group[gindex];
  20649. this.groupIndex = gindex;
  20650. this.dialogVisibleDeleteGroup = true;
  20651. },
  20652. async deleteChair() {
  20653. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  20654. const gid =
  20655. this.groupStudent[this.toolindex][this.groupIndex][
  20656. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  20657. this.checkDeleteGroup[i]
  20658. )
  20659. ];
  20660. let params = [
  20661. {
  20662. gid: gid.id,
  20663. },
  20664. ];
  20665. var a = await this.deleteChairA(params);
  20666. if (i == this.checkDeleteGroup.length - 1) {
  20667. this.$message.success("退出成功");
  20668. this.dialogVisibleDeleteGroup = false;
  20669. this.deleteGroupUser = [];
  20670. this.deleteGroupArray = {};
  20671. this.groupIndex = "";
  20672. this.checkDeleteGroup = [];
  20673. this.getCourseDetail(2);
  20674. }
  20675. }
  20676. },
  20677. deleteChairA(params) {
  20678. return new Promise((resolve, reject) => {
  20679. this.ajax
  20680. .post(this.$store.state.api + "exitGroup", params)
  20681. .then((res) => {
  20682. resolve(1);
  20683. })
  20684. .catch((err) => {
  20685. this.$message.error("网络不佳");
  20686. console.error(err);
  20687. });
  20688. });
  20689. },
  20690. contract(i) {
  20691. if (this.isCloseList[i].isClose == 0) {
  20692. this.isCloseList[i].isClose = 1;
  20693. } else {
  20694. this.isCloseList[i].isClose = 0;
  20695. }
  20696. this.$forceUpdate();
  20697. },
  20698. openWordCloud(toolindex) {
  20699. this.wordCloudData = '';
  20700. let array = [];
  20701. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  20702. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  20703. array.push({ name: works });
  20704. }
  20705. if (this.isGroup) {
  20706. for (var i = 0; i < this.courseGroup.group.length; i++) {
  20707. let works = this.courseGroup.group[i].works[toolindex];
  20708. for (var j = 0; j < works.length; j++) {
  20709. let answer = JSON.parse(works[j].works)[0].answer;
  20710. array.push({ name: answer });
  20711. }
  20712. }
  20713. }
  20714. let _result = ''
  20715. array.forEach(e=>{
  20716. _result +=e.name+','
  20717. })
  20718. this.wordCloudData = _result;
  20719. this.dialogVisibleWordCloud = true;
  20720. this.wordCloudKey += 1;
  20721. },
  20722. uploadWorks(i) {
  20723. this.$confirm("确定导出作业吗?", "提示", {
  20724. confirmButtonText: "确定",
  20725. cancelButtonText: "取消",
  20726. type: "warning",
  20727. })
  20728. .then(() => {
  20729. const loading = this.$loading.service({
  20730. background: "rgba(255, 255, 255, 0.7)",
  20731. target: document.body,
  20732. text: "文件加载中...",
  20733. });
  20734. const _worksStudent = this.worksStudent;
  20735. let url = [];
  20736. var counts = {};
  20737. for (var l = 0; l < _worksStudent[i].length; l++) {
  20738. var item = _worksStudent[i][l];
  20739. var name = item.sName;
  20740. if (!counts.hasOwnProperty(name)) {
  20741. counts[name] = 0;
  20742. } else {
  20743. counts[name]++;
  20744. }
  20745. if (counts[name] > 0) {
  20746. item.sName += " (" + counts[name] + ")";
  20747. }
  20748. }
  20749. for (var l = 0; l < _worksStudent[i].length; l++) {
  20750. var item = _worksStudent[i][l];
  20751. if (
  20752. item.works.indexOf(
  20753. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  20754. ) !== -1 &&
  20755. item.works.indexOf("img") === -1
  20756. ) {
  20757. url.push({ name: item.sName, url: item.works });
  20758. }
  20759. }
  20760. // var toolList = [
  20761. // { name: "电子白板", tool: 1 },
  20762. // { name: "思维导图", tool: 3 },
  20763. // { name: "协同文档", tool: 6 },
  20764. // { name: "思维网格", tool: 7 },
  20765. // { name: "素材库", tool: 8 },
  20766. // { name: "学习资料", tool: 17 },
  20767. // { name: "便签", tool: 2 },
  20768. // { name: "问卷调查", tool: 4 },
  20769. // { name: "选择题", tool: 45 },
  20770. // { name: "倒计时", tool: 10 },
  20771. // { name: "问答", tool: 15 },
  20772. // { name: "课程设计", tool: 26 },
  20773. // { name: "训练服务器", tool: 18 },
  20774. // { name: "作业提交", tool: 16 },
  20775. // { name: "批量上传", tool: 50 },
  20776. // { name: "AIoT Blockly", tool: 21 },
  20777. // { name: "AI Python", tool: 23 },
  20778. // { name: "AI Blockly", tool: 24 },
  20779. // { name: "目标管理", tool: 25 },
  20780. // { name: "数学画板", tool: 31 },
  20781. // { name: "翻译", tool: 28 },
  20782. // { name: "魔盒识字", tool: 37 },
  20783. // { name: "数学画板", tool: 31 },
  20784. // { name: "24点", tool: 38 },
  20785. // { name: "GeoGebra", tool: 39 },
  20786. // { name: "源码编辑", tool: 32 },
  20787. // { name: "个人评价", tool: 40 },
  20788. // { name: "选择匹配", tool: 41 },
  20789. // { name: "汉字宫", tool: 44 },
  20790. // { name: "排序", tool: 47 },
  20791. // { name: "表格", tool: 48 },
  20792. // { name: "文档", tool: 52 },
  20793. // { name: "学生分组", tool: 49 },
  20794. // { name: "CocoPi", tool: 57 },
  20795. // { name: "模拟驾驶", tool: 58 },
  20796. // { name: "路径搜索", tool: 59 },
  20797. // { name: "深度学习", tool: 60 },
  20798. // { name: "全历史", tool: 61 },
  20799. // { name: "交互视频", tool: 62 },
  20800. // { name: "海龟编程", tool: 63 },
  20801. // { name: "挑人", tool: 65 },
  20802. // { name: "公式编辑", tool: 66 },
  20803. // { name: "分子结构", tool: 67 },
  20804. // { name: "时间轴", tool: 68 },
  20805. // ];
  20806. // var toolName = "";
  20807. // for(var w = 0;w<toolList.length;w++){
  20808. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  20809. // toolName = toolList[w].name;
  20810. // }
  20811. // }
  20812. console.log(url);
  20813. this.downLoadAll(url, loading);
  20814. })
  20815. .catch(() => {});
  20816. },
  20817. downLoadAll(url, loading) {
  20818. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  20819. const zip = new JSZip();
  20820. const cache = {};
  20821. const promises = [];
  20822. data.forEach((item) => {
  20823. const promise = getFile(item.url).then((data) => {
  20824. if (data.data != 1) {
  20825. // 下载文件, 并存成ArrayBuffer对象
  20826. const file_name =
  20827. item.name +
  20828. "." +
  20829. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  20830. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  20831. cache[file_name] = data.data;
  20832. }
  20833. });
  20834. promises.push(promise);
  20835. });
  20836. Promise.all(promises).then(() => {
  20837. zip.generateAsync({ type: "blob" }).then((content) => {
  20838. // 生成二进制流
  20839. FileSaver.saveAs(
  20840. content,
  20841. this.courseDetail.title + "-" + "作业提交工具.zip"
  20842. ); // 利用file-saver保存文件 自定义文件名
  20843. setTimeout(() => {
  20844. loading.close();
  20845. }, 2000);
  20846. });
  20847. });
  20848. },
  20849. pickStudent(stu) {
  20850. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  20851. return;
  20852. }
  20853. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  20854. confirmButtonText: "确定",
  20855. cancelButtonText: "取消",
  20856. type: "warning",
  20857. })
  20858. .then(() => {
  20859. let params = [
  20860. {
  20861. uid: stu.userid,
  20862. cid: this.id,
  20863. stage: this.courseType,
  20864. task: this.taskCount,
  20865. tool: this.toolindex,
  20866. },
  20867. ];
  20868. this.ajax
  20869. .post(this.$store.state.api + "updateCoursePick", params)
  20870. .then((res) => {
  20871. this.$message.success("操作成功");
  20872. this.getPick();
  20873. })
  20874. .catch((err) => {
  20875. this.$message.error("网络不佳");
  20876. console.error(err);
  20877. });
  20878. })
  20879. .catch(() => {});
  20880. },
  20881. selectUser(){
  20882. let params = {
  20883. userid: this.userid,
  20884. };
  20885. this.ajax
  20886. .get(this.$store.state.api + "selectUser", params)
  20887. .then((res) => {
  20888. this.userMes = res.data[0];
  20889. })
  20890. .catch((err) => {
  20891. console.error(err);
  20892. });
  20893. },
  20894. setEngText(i){
  20895. this.newEngIndex = i;
  20896. this.$forceUpdate();
  20897. },
  20898. addCorrect(){
  20899. this.$confirm("你确定提交批改嘛?", "提示", {
  20900. confirmButtonText: "确定",
  20901. showCancelButton: false,
  20902. closeOnClickModal: false,
  20903. type: "warning",
  20904. })
  20905. .then(() => {
  20906. let params = {
  20907. cid: this.id,
  20908. s: parseInt(this.courseType),
  20909. t: this.taskCount,
  20910. tool: this.toolindex,
  20911. wid: this.engWid,
  20912. c: this.userid,
  20913. 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) : "",
  20914. };
  20915. this.ajax
  20916. .get(this.$store.state.api + "addEngC", params)
  20917. .then((res) => {
  20918. this.$message.success("提交成功");
  20919. this.engUpdateDialogVisible = false;
  20920. })
  20921. .catch((err) => {
  20922. console.error(err);
  20923. });
  20924. })
  20925. .catch(() => {});
  20926. },
  20927. selectEngC(id,z){
  20928. let params = {
  20929. workid: id,
  20930. };
  20931. this.ajax
  20932. .get(this.$store.state.api + "selectEngC", params)
  20933. .then((res) => {
  20934. if(res.data[0].length == 0){
  20935. this.newEnglishList.engTitle = z.engTitle;
  20936. this.newEnglishList.engText = z.engText;
  20937. }else{
  20938. var a = res.data[0];
  20939. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  20940. if(this.userMes[0].type == 2){
  20941. var snum = 0;
  20942. for(var i = 0;i<a.length;i++){
  20943. if(this.userMes[0].userid == a[i].correct){
  20944. this.newEnglishList = JSON.parse(a[i].cWork);
  20945. snum = 1;
  20946. }
  20947. }
  20948. if(snum == 0){
  20949. this.newEnglishList = { engTitle:"",engText:"" };
  20950. this.newEnglishList.engTitle = z.engTitle;
  20951. this.newEnglishList.engText = z.engText;
  20952. }
  20953. }else if(this.userMes[0].type == 1){
  20954. var num = 0;
  20955. for(var w= 0;w<a.length;w++){
  20956. if(this.userMes[0].userid == a[w].correct){
  20957. num = 1;
  20958. }
  20959. }
  20960. if(num == 0){
  20961. this.isNoUserid = true;
  20962. var c = JSON.parse(JSON.stringify(z));
  20963. this.oldEnglishJson1 = c;
  20964. }else{
  20965. this.isNoUserid = false;
  20966. }
  20967. var b = a.sort((item, index) => {
  20968. console.log(item)
  20969. if (item.correct === this.userMes[0].userid) {
  20970. return -1; // 将a移到前面
  20971. } else if (index.correct === this.userMes[0].userid) {
  20972. return 1; // 将b移到前面
  20973. } else {
  20974. return 0; // 保持默认顺序
  20975. }
  20976. });
  20977. for(var p = 0;p<b.length;p++){
  20978. for(var y = 0;y<ppp.length;y++){
  20979. if(b[p].id == ppp[y].id){
  20980. b[p].cWork = JSON.parse(ppp[y].cWork);
  20981. break
  20982. }
  20983. }
  20984. }
  20985. this.newEnglishList1 = b;
  20986. }
  20987. }
  20988. this.greyType = false;
  20989. setTimeout(() => {
  20990. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20991. if(this.newEnglishList1.length > 0){
  20992. if(this.isNoUserid == true){
  20993. this.engListLength = this.newEnglishList1.length + 1;
  20994. this.newEngIndex = -1;
  20995. }else{
  20996. this.engListLength = this.newEnglishList1.length;
  20997. this.newEngIndex = 0;
  20998. }
  20999. }
  21000. if(this.userMes[0].type == 2){
  21001. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  21002. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  21003. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  21004. }else if(this.newEngIndex == -1){
  21005. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  21006. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  21007. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  21008. }
  21009. }, 500);
  21010. this.engUpdateDialogVisible = true;
  21011. this.$forceUpdate();
  21012. })
  21013. .catch((err) => {
  21014. console.error(err);
  21015. });
  21016. },
  21017. getPick() {
  21018. if(this.getPickLoading) return
  21019. this.getPickLoading = true
  21020. let params = {
  21021. cid: this.id,
  21022. };
  21023. this.ajax
  21024. .get(this.$store.state.api + "getPick", params)
  21025. .then((res) => {
  21026. let array = [];
  21027. for (var i = 0; i < res.data[0].length; i++) {
  21028. array.push(res.data[0][i].userid);
  21029. }
  21030. this.isPickStudent = array;
  21031. if (array.indexOf(this.userid) !== -1) {
  21032. this.$confirm("你被老师选到啦!", "提示", {
  21033. confirmButtonText: "确定",
  21034. showCancelButton: false,
  21035. closeOnClickModal: false,
  21036. type: "warning",
  21037. })
  21038. .then(() => {
  21039. let pa = [
  21040. {
  21041. uid: this.userid,
  21042. cid: this.id,
  21043. },
  21044. ];
  21045. this.ajax
  21046. .post(this.$store.state.api + "deletePick", pa)
  21047. .then((res) => {
  21048. this.getPick();
  21049. })
  21050. .catch((err) => {
  21051. this.$message.error("网络不佳");
  21052. console.error(err);
  21053. });
  21054. })
  21055. .catch(() => {});
  21056. }
  21057. this.getPickLoading = false
  21058. })
  21059. .catch((err) => {
  21060. this.getPickLoading = false
  21061. this.$message.error("网络不佳");
  21062. console.error(err);
  21063. });
  21064. },
  21065. foldEva() {
  21066. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  21067. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  21068. } else {
  21069. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  21070. setTimeout(() => {
  21071. this.checkEva();
  21072. setTimeout(() => {
  21073. this.checkEva();
  21074. }, 500);
  21075. }, 0);
  21076. }
  21077. this.$forceUpdate();
  21078. },
  21079. panToolHeight(tool) {
  21080. var _tool = document.querySelectorAll('#'+tool)[0]
  21081. var _toolA = _tool ? _tool.offsetHeight : 0
  21082. var _toolC = 0
  21083. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  21084. let boolean2 = (_toolA > _toolC) ? true : false
  21085. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  21086. this.$forceUpdate();
  21087. },
  21088. async checkLink(url) {
  21089. // console.log(url)
  21090. let _url = url
  21091. try {
  21092. const response = await fetch(url);
  21093. if(!response.ok){
  21094. _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]))
  21095. }
  21096. // console.log(response.ok)
  21097. } catch (error) {
  21098. console.error('Error checking link:', error);
  21099. // console.log(false)
  21100. _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]))
  21101. }
  21102. // console.log(_url)
  21103. return _url
  21104. },
  21105. getScoreList(){
  21106. let params = {
  21107. cid: this.id,
  21108. };
  21109. this.ajax
  21110. .get(this.$store.state.api + "selectTestCourseByCid", params)
  21111. .then((res) => {
  21112. let result = res.data;
  21113. this.scoreList.datalist = result[0];
  21114. this.scoreList.isScoreList = result[1];
  21115. })
  21116. .catch((err) => {
  21117. console.error(err);
  21118. });
  21119. },
  21120. setClassRoomHelperWidth(width){
  21121. this.classRoomHelperWidth = width
  21122. },
  21123. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  21124. this.$refs.choseWorksDetailDialogRef.open({
  21125. toolType:tooc,
  21126. tType: this.tType,
  21127. toolIndex: toolIndex
  21128. });
  21129. this.changeSplitScreenBehavior({
  21130. code: 1,
  21131. form: {
  21132. toolType:tooc,
  21133. toolIndex: toolIndex,
  21134. courseType: this.courseType,
  21135. taskCount: this.taskCount,
  21136. type: 0
  21137. }
  21138. });
  21139. },
  21140. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  21141. this.$refs.statisticalAnalysisRef.open({
  21142. worksStudent: this.worksStudent[toolIndex],
  21143. tType: this.tType,
  21144. toolIndex: toolIndex
  21145. });
  21146. this.changeSplitScreenBehavior({
  21147. code: 2,
  21148. form: {
  21149. toolType:4,
  21150. courseType: this.courseType,
  21151. taskCount: this.taskCount,
  21152. toolIndex: toolIndex,
  21153. type: 0
  21154. }
  21155. });
  21156. },
  21157. statisticalAnalysisRefresh(toolIndex) {
  21158. this.$refs.statisticalAnalysisRef.refreshData({
  21159. worksStudent: this.worksStudent[toolIndex],
  21160. tType: this.tType,
  21161. toolIndex: toolIndex
  21162. });
  21163. },
  21164. async splitScreenBehavior(type = 0) {
  21165. // return;
  21166. if (this.splitScreenData.loading)
  21167. return this.$message.info("操作过快,请稍等");
  21168. if (type == 0) {
  21169. //关闭分屏
  21170. this.splitScreenData.isOpen = false;
  21171. // this.splitScreenData.userId = "";
  21172. // this.splitScreenData.uid = "";
  21173. this.splitScreenData.behavior = null;
  21174. await this.updateSplitScreenData(1);
  21175. this.$message.success("已关闭分屏模式");
  21176. this.studentFreePreview(false);
  21177. this.OpenJobPreview(false);
  21178. // this.followingMode(false);
  21179. } else if (type == 1) {
  21180. //开启分屏
  21181. this.splitScreenData.isOpen = true;
  21182. this.splitScreenData.userId = this.userid;
  21183. this.splitScreenData.uid = this.splitScreenData.myUid;
  21184. this.splitScreenData.behavior = null;
  21185. let status = await this.updateSplitScreenData(0);
  21186. this.changeSplitScreenBehavior({form:{}})
  21187. if (status == 1) {
  21188. this.$message.success("已开启分屏");
  21189. this.studentFreePreview(false);
  21190. this.OpenJobPreview(true);
  21191. // this.followingMode(true);
  21192. } else {
  21193. this.splitScreenData.isOpen = false;
  21194. this.splitScreenData.userId = "";
  21195. this.splitScreenData.uid = "";
  21196. this.splitScreenData.behavior = null;
  21197. this.$message.success("分屏开启失败");
  21198. }
  21199. }
  21200. },
  21201. enterFullScreen() {
  21202. let element = document.documentElement;
  21203. if (element.requestFullscreen) {
  21204. element.requestFullscreen();
  21205. } else if (element.mozRequestFullScreen) { /* Firefox */
  21206. element.mozRequestFullScreen();
  21207. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  21208. element.webkitRequestFullscreen();
  21209. } else if (element.msRequestFullscreen) { /* IE/Edge */
  21210. element.msRequestFullscreen();
  21211. }
  21212. },
  21213. exitFullScreen() {
  21214. if (document.exitFullscreen) {
  21215. document.exitFullscreen();
  21216. } else if (document.mozCancelFullScreen) { /* Firefox */
  21217. document.mozCancelFullScreen();
  21218. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  21219. document.webkitExitFullscreen();
  21220. } else if (document.msExitFullscreen) { /* IE/Edge */
  21221. document.msExitFullscreen();
  21222. }
  21223. },
  21224. confirmOpen(){
  21225. this.splitScreenData.isOpen = true;
  21226. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  21227. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  21228. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  21229. this.confirmOpenDig = false
  21230. if (!document.fullscreenElement) {
  21231. this.enterFullScreen();
  21232. }
  21233. // if (this.timer2) {
  21234. // clearInterval(this.timer2);
  21235. // this.timer2 = null;
  21236. // }
  21237. // this.timer2 = setInterval(()=> {
  21238. // this.getSplitScreenData();//获取分屏数据
  21239. // }, 1000);
  21240. this.$message.success("分屏模式已开启");
  21241. },
  21242. getSplitScreenData() {
  21243. // return;
  21244. // if (this.tType != 1) return;
  21245. if(this.getSplitScreenDataLoading) return
  21246. this.getSplitScreenDataLoading = true
  21247. let params = {
  21248. cid: this.id
  21249. };
  21250. this.ajax
  21251. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  21252. .then(async res => {
  21253. let data = res.data[0][0]["splitScreenData"];
  21254. console.log("获取了分屏数:", data);
  21255. if (data) {
  21256. data = JSON.parse(data);
  21257. if (
  21258. !this.splitScreenData.isOpen &&
  21259. data.isOpen &&
  21260. this.splitScreenData.myUid == data.uid
  21261. ) {
  21262. this.splitScreenData.isOpen = false;
  21263. this.splitScreenData.userId = "";
  21264. this.splitScreenData.uid = "";
  21265. this.splitScreenData.behavior = null;
  21266. await this.updateSplitScreenData(1);
  21267. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  21268. this.confirmOpenDig = true
  21269. this.confirmOpenDigData = data
  21270. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  21271. this.splitScreenData.isOpen = false;
  21272. this.splitScreenData.userId = "";
  21273. this.splitScreenData.uid = "";
  21274. this.splitScreenData.behavior = null;
  21275. this.$message.error("已结束分屏模式");
  21276. } else if (this.splitScreenData.isOpen && data.isOpen) {
  21277. this.splitScreenData.isOpen = true;
  21278. this.splitScreenData.uid = data.uid;
  21279. this.splitScreenData.userId = data.userId;
  21280. this.splitScreenData.behavior = data.behavior;
  21281. }
  21282. this.doSplitScreenBehavior();
  21283. } else {
  21284. if (this.splitScreenData.isOpen) {
  21285. this.splitScreenData.isOpen = false;
  21286. this.splitScreenData.userId = "";
  21287. this.splitScreenData.uid = "";
  21288. this.splitScreenData.behavior = null;
  21289. this.$message.error("已结束分屏模式");
  21290. // if (this.timer2) {
  21291. // clearInterval(this.timer2);
  21292. // this.timer2 = null;
  21293. // }
  21294. // this.timer2 = setInterval(()=> {
  21295. // this.getSplitScreenData();//获取分屏数据
  21296. // }, 5000);
  21297. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  21298. confirmButtonText: '确定', //确认按钮的文字
  21299. showCancelButton: false, //是否显示取消按钮
  21300. showClose: false, //是否显示关闭按钮
  21301. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  21302. type: "warning",
  21303. })
  21304. .then(() => {
  21305. if (document.fullscreenElement) {
  21306. this.exitFullScreen();
  21307. }
  21308. })
  21309. .catch(() => {});
  21310. }
  21311. }
  21312. this.getSplitScreenDataLoading = false
  21313. })
  21314. .catch(e => {
  21315. this.getSplitScreenDataLoading = false
  21316. console.log("获取分屏数出错:", e);
  21317. });
  21318. },
  21319. doSplitScreenBehavior() {
  21320. if (
  21321. this.splitScreenData.isOpen &&
  21322. this.splitScreenData.uid != this.splitScreenData.myUid
  21323. ) {
  21324. let behavior = this.splitScreenData.behavior;
  21325. if (behavior) {
  21326. if (behavior.code === 99) {
  21327. //初始化
  21328. this.fullDialogVisible = false;
  21329. if(this.$refs.choseWorksDetailDialogRef.show){
  21330. this.$refs.choseWorksDetailDialogRef.close();
  21331. }
  21332. if(this.$refs.statisticalAnalysisRef.show){
  21333. this.$refs.statisticalAnalysisRef.close();
  21334. }
  21335. }
  21336. if (behavior.code === 0) {
  21337. //开启内容列表弹窗
  21338. this.checkFileFull1(behavior.form.t, behavior.form.f);
  21339. }else{
  21340. this.fullDialogVisible = false;
  21341. }
  21342. if (behavior.code === 1) {
  21343. //关于选择题的作业详细的操作
  21344. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  21345. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  21346. this.courseType = behavior.form.courseType;
  21347. this.taskCount = behavior.form.taskCount;
  21348. }
  21349. this.$nextTick(() => {
  21350. if (this.$refs.choseWorksDetailDialogRef.show) {
  21351. //已经打开了
  21352. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  21353. } else {
  21354. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  21355. }
  21356. });
  21357. }else{
  21358. this.$refs.choseWorksDetailDialogRef.close()
  21359. }
  21360. if(behavior.code === 2){
  21361. if(this.$refs.statisticalAnalysisRef.show){
  21362. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  21363. }else{
  21364. this.$refs.statisticalAnalysisRef.open({
  21365. worksStudent: this.worksStudent[behavior.form.toolIndex],
  21366. tType: this.tType,
  21367. toolIndex: behavior.form.toolIndex
  21368. });
  21369. }
  21370. }else{
  21371. this.$refs.statisticalAnalysisRef.close();
  21372. }
  21373. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  21374. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  21375. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  21376. if (behavior.form.courseType != this.courseType ||
  21377. behavior.form.taskCount != this.taskCount ||
  21378. behavior.form.toolType != this.toolindex
  21379. ) {
  21380. var a = document.scrollingElement;
  21381. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  21382. if (target) {
  21383. target.scrollIntoView(true);
  21384. setTimeout(()=>{
  21385. let scrollBody = document.querySelector('.body_student').parentElement
  21386. scrollBody.scrollTop = scrollBody.scrollTop - 100
  21387. }, 0);
  21388. // setTimeout(() => {
  21389. // a.scrollTop = 0
  21390. // }, 0);
  21391. }
  21392. }
  21393. if(this.courseType !=behavior.form.courseType){
  21394. this.courseType = behavior.form.courseType;
  21395. }
  21396. if(this.taskCount !=behavior.form.taskCount){
  21397. this.taskCount = behavior.form.taskCount;
  21398. }
  21399. if((behavior.form.toolType || behavior.form.toolType == 0) && (this.toolindex != behavior.form.toolType)){
  21400. this.toolindex = behavior.form.toolType;
  21401. }
  21402. // if(behavior.form.navId){
  21403. // this.navId = behavior.form.navId
  21404. // }
  21405. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  21406. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  21407. console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  21408. this.getCourseDetail()
  21409. }
  21410. this.setContent2(false)
  21411. }
  21412. } else {
  21413. }
  21414. }
  21415. },
  21416. updateSplitScreenData(empty = 0) {
  21417. return new Promise(resolve => {
  21418. if(this.userid!==this.courseDetail.userid){
  21419. if(!this.courseDetail.userid){
  21420. return setTimeout(()=>{
  21421. this.updateSplitScreenData(empty)
  21422. },2000)
  21423. }
  21424. return;
  21425. };
  21426. if (
  21427. this.splitScreenData.uid == this.splitScreenData.myUid &&
  21428. this.splitScreenData.userId == this.userid
  21429. ) {
  21430. this.splitScreenData.loading = true;
  21431. let params = [
  21432. {
  21433. cid: this.id,
  21434. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  21435. }
  21436. ];
  21437. this.ajax
  21438. .post(
  21439. this.$store.state.api + "update_courseSplitScreenData",
  21440. params
  21441. )
  21442. .then(res => {
  21443. this.splitScreenData.loading = false;
  21444. if (res.data == 1) {
  21445. resolve(1);
  21446. console.log("修改分屏数据成功");
  21447. }
  21448. })
  21449. .catch(e => {
  21450. this.splitScreenData.loading = false;
  21451. console.log("修改分屏数据失败", e);
  21452. resoleve(0);
  21453. });
  21454. } else if (empty == 2 && this.tType == 1) {
  21455. let params = [
  21456. {
  21457. cid: this.id,
  21458. nData: ""
  21459. }
  21460. ];
  21461. return this.ajax
  21462. .post(
  21463. this.$store.state.api + "update_courseSplitScreenData",
  21464. params
  21465. )
  21466. .then(_ => resolve(1))
  21467. .catch(_ => resolve(0));
  21468. } else {
  21469. return resolve(0);
  21470. }
  21471. });
  21472. },
  21473. changeSplitScreenBehavior(newValue) {
  21474. if (
  21475. this.splitScreenData.isOpen &&
  21476. this.splitScreenData.uid == this.splitScreenData.myUid
  21477. ) {
  21478. let _behavior = null;
  21479. if(!newValue){
  21480. _behavior = {}
  21481. }else{
  21482. _behavior = newValue
  21483. }
  21484. if(_behavior.form){
  21485. _behavior.form.taskCount = this.taskCount;
  21486. _behavior.form.courseType = this.courseType
  21487. }else{
  21488. _behavior.form = {
  21489. taskCount:this.taskCount,
  21490. courseType:this.courseType
  21491. }
  21492. }
  21493. this.splitScreenData.behavior = _behavior;
  21494. this.updateSplitScreenData(0);
  21495. }
  21496. },
  21497. studentFreePreview(flag) {
  21498. this.IsLookOpen = flag;
  21499. this.followingMode(flag)
  21500. this.updateLookOpen();
  21501. },
  21502. OpenJobPreview(flag) {
  21503. this.sIsOpen = flag;
  21504. this.updateSLook();
  21505. },
  21506. followingMode(flag) {
  21507. this.IsFollow = flag;
  21508. this.updateFollow();
  21509. },
  21510. StulookMode(flag) {
  21511. this.IsStulook = flag;
  21512. this.updateIsStulook();
  21513. }
  21514. },
  21515. directives: {
  21516. // 使用局部注册指令的方式
  21517. resize: {
  21518. // 指令的名称
  21519. bind(el, binding) {
  21520. // el为绑定的元素,binding为绑定给指令的对象
  21521. let width = "",
  21522. height = "";
  21523. function isReize() {
  21524. const style = document.defaultView.getComputedStyle(el);
  21525. if (width !== style.width || height !== style.height) {
  21526. binding.value(); // 关键
  21527. }
  21528. width = style.width;
  21529. height = style.height;
  21530. }
  21531. el.__vueSetInterval__ = setInterval(isReize, 300);
  21532. },
  21533. unbind(el) {
  21534. clearInterval(el.__vueSetInterval__);
  21535. },
  21536. },
  21537. autoHeight: {
  21538. update(el, binding) {
  21539. const { value } = binding
  21540. if (value && typeof value === 'number') {
  21541. el.style.height = `${value}px`
  21542. } else {
  21543. el.style.height = 'auto'
  21544. }
  21545. },
  21546. componentUpdated(el) {
  21547. el.style.height = `${el.scrollHeight + 5}px`
  21548. },
  21549. },
  21550. },
  21551. beforeDestroy() {
  21552. window.onresize = null;
  21553. clearInterval(this.timer);
  21554. this.timer = null;
  21555. clearInterval(this.timer2);
  21556. this.timer2 = null;
  21557. clearInterval(this.opertimer);
  21558. this.opertimer = null;
  21559. this.updateSplitScreenData(1);
  21560. if(this.courseDetail.userid == this.userid && this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  21561. let endTime = new Date().toLocaleString("zh-CN", {
  21562. hour12: false,
  21563. timeZone: "Asia/Shanghai"
  21564. }).replace(/\//g, "-")
  21565. let courseTime = Math.floor((new Date(endTime) - new Date(this.startTime)) / (1000 * 60))
  21566. this.syncClassData({
  21567. courseId: this.id,
  21568. title: this.courseDetail.title,
  21569. courseGrade: this.tcid2 ? this.tcid2 : '',
  21570. courseTime: courseTime,
  21571. startTime: this.startTime,
  21572. endTime: endTime,
  21573. })
  21574. console.log('同步数据')
  21575. }
  21576. },
  21577. computed: {
  21578. renderedFormula2() {
  21579. return function(val){
  21580. // 处理换行符和HTML实体
  21581. const normalized = val
  21582. .replace(/&amp;/g, '&')
  21583. .replace(/<br\/?>/g, '\n');
  21584. // 匹配行内公式($...$)和块级公式($$...$$)
  21585. return normalized.replace(/(\${1,2})([^$]+)(\${1,2})/g, (_, delim, expr) => {
  21586. try {
  21587. return katex.renderToString(expr.trim(), {
  21588. displayMode: false,
  21589. throwOnError: false,
  21590. macros: {
  21591. '\\aligned': '\\begin{aligned}#1\\end{aligned}'
  21592. }
  21593. });
  21594. } catch (e) {
  21595. console.warn('KaTeX渲染失败:', e);
  21596. return `<span style="color:red">${expr}</span>`;
  21597. }
  21598. })
  21599. }
  21600. },
  21601. renderedFormula() {
  21602. return function(val){
  21603. try {
  21604. // 判断是否含有HTML标签,<tag ...>...</tag>
  21605. const hasTag = /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g.test(val);
  21606. if (!hasTag) {
  21607. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  21608. // 纯文本,整体渲染
  21609. try {
  21610. return katex.renderToString(val.trim(), {
  21611. throwOnError: false,
  21612. strict: false,
  21613. output: "htmlAndMathml"
  21614. });
  21615. } catch (e) {
  21616. return val; // 渲染失败原样输出
  21617. }
  21618. } else {
  21619. // 有标签,对每个标签内容渲染
  21620. return val.replace(
  21621. /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g,
  21622. (match, tag, attrs, inner) => {
  21623. let html;
  21624. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  21625. try {
  21626. html = katex.renderToString(inner.trim(), {
  21627. throwOnError: false,
  21628. strict: false,
  21629. output: "htmlAndMathml"
  21630. });
  21631. } catch (e) {
  21632. html = inner;
  21633. }
  21634. return `<${tag}${attrs}>${html}</${tag}>`;
  21635. }
  21636. );
  21637. }
  21638. } catch (e) {
  21639. console.error('KaTeX渲染错误:', e);
  21640. return val;
  21641. }
  21642. }
  21643. },
  21644. isAndroid() {
  21645. return /Android/i.test(navigator.userAgent);
  21646. },
  21647. getHeight(){
  21648. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  21649. },
  21650. contentConvent() {
  21651. return function (c) {
  21652. return c
  21653. ? c
  21654. .replaceAll(/\r\n/g, "<br/>")
  21655. .replaceAll(/\n/g, "<br/>")
  21656. .replaceAll(/\s/g, "&nbsp")
  21657. : "";
  21658. };
  21659. },
  21660. MarkdownT() {
  21661. return function (c) {
  21662. let md = new MarkdownIt();
  21663. return c
  21664. ? md.render(c) : "";
  21665. };
  21666. },
  21667. commentRight(){
  21668. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  21669. return "35px";
  21670. }
  21671. return `calc(${this.classRoomHelperWidth} + 5px)`
  21672. // if(this.$refs["classRoomHelperRef"].type==0){
  21673. // return "100px";
  21674. // }else if(this.$refs["classRoomHelperRef"].type==1){
  21675. // return "502px"
  21676. // }else{
  21677. // return "0px"
  21678. // }
  21679. },
  21680. checkUpload() {
  21681. return function () {
  21682. var studentK = [];
  21683. if (this.plworkFile.length > 0) {
  21684. for (var z = 0; z < this.plworkFile.length; z++) {
  21685. studentK.push(this.plworkFile[z].username);
  21686. }
  21687. studentK = studentK.join(",");
  21688. }
  21689. var a = this.uploadStudentJuri.filter((el) => {
  21690. return studentK.indexOf(el.userid) == -1;
  21691. });
  21692. return a;
  21693. };
  21694. },
  21695. getSName() {
  21696. return function (name) {
  21697. var check = name;
  21698. this.uploadStudentJuri.forEach((el) => {
  21699. if (el.userid == check) {
  21700. check = el.name ? el.name : el.username;
  21701. }
  21702. });
  21703. return check;
  21704. };
  21705. },
  21706. getImgList() {
  21707. return function (val) {
  21708. let srcList = []; // 定义一个数组用来接收后面的img地址
  21709. val.replace(
  21710. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  21711. function (match, capture) {
  21712. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  21713. srcList.push(capture);
  21714. }
  21715. );
  21716. return srcList;
  21717. };
  21718. },
  21719. retrnToolHeight(){
  21720. return function (tool) {
  21721. var _tool = document.querySelectorAll('#'+tool)[0]
  21722. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  21723. };
  21724. },
  21725. Correct() {
  21726. return function (c,d) {
  21727. let w = "";
  21728. let a = this.correctWord;
  21729. for(var k = 0;k<a.length;k++){
  21730. //diffWordsWithSpace
  21731. if(a.length > 1){
  21732. if(a[k].added == true){
  21733. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21734. }else if(a[k].removed == true){
  21735. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21736. }else{
  21737. w += '<span>' + a[k].value + '</span>';
  21738. }
  21739. }else{
  21740. w = c
  21741. }
  21742. console.log("👇👇!+++==")
  21743. console.log(w)
  21744. //diffChars方法
  21745. // if(w == ""){
  21746. // if(a.length > 1){
  21747. // if(a[k].added == true){
  21748. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21749. // }else if(a[k].removed == true){
  21750. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21751. // }
  21752. // }else{
  21753. // w = c
  21754. // }
  21755. // }else{
  21756. // if(k == a.length - 1){
  21757. // if(a[k].added == true){
  21758. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21759. // }else if(a[k].removed == true){
  21760. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21761. // }
  21762. // }else{
  21763. // if(a[k].added == true){
  21764. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21765. // }else if(a[k].removed == true){
  21766. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21767. // }
  21768. // }
  21769. // }
  21770. }
  21771. c = w;
  21772. return c;
  21773. };
  21774. },
  21775. },
  21776. mounted() {
  21777. this.setoTime("1");
  21778. this.startTime = new Date().toLocaleString("zh-CN", {
  21779. hour12: false,
  21780. timeZone: "Asia/Shanghai"
  21781. }).replace(/\//g, "-")
  21782. // if (this.tType == 1) {
  21783. // // 开局关闭学生查看内容
  21784. // this.StulookMode(false)
  21785. // // 开局打开跟随模式
  21786. // this.followingMode(true)
  21787. // }
  21788. document.body.addEventListener("click", (e) => {
  21789. if (this.isUpdateToolDetail1) {
  21790. this.updateToolDetail(this.toolDetailIndex);
  21791. }
  21792. });
  21793. try {
  21794. if (this.screenType == 2) {
  21795. window.topU.postMessage({ allScreen: 4 }, "*");
  21796. } else if (this.screenType == 3) {
  21797. window.topU.postMessage({ allScreen: 5 }, "*");
  21798. } else if (this.screenType == 1) {
  21799. window.topU.postMessage({ allScreen: 6 }, "*");
  21800. }
  21801. } catch (error) {
  21802. console.log(error)
  21803. }
  21804. this.getCode2()
  21805. this.setOperationTime();
  21806. this.selectEva();
  21807. this.getCourseDetail(10);
  21808. this.selectCount();
  21809. this.getHomeWork();
  21810. this.selectUser();
  21811. this.getAIJ();
  21812. this.contentDialog = false;
  21813. this.setContent2(true);
  21814. if (this.tType == 4) {
  21815. this.pzDialog = true;
  21816. this.selectPz();
  21817. }
  21818. // 获取评分列表
  21819. this.getScoreList()
  21820. this.updateSplitScreenData(2);
  21821. this.splitScreenData.myUid = uuidv4();
  21822. document.scrollingElement.scrollTop = 0;
  21823. window.addEventListener("resize", () => {
  21824. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  21825. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  21826. if (this.showType == 2 || this.showType == 3) {
  21827. document.getElementsByClassName("navBox")[0].style.height =
  21828. a - 40 + 0+ "px";
  21829. } else {
  21830. document.getElementsByClassName("navBox")[0].style.height =
  21831. a - 40 + "px";
  21832. }
  21833. });
  21834. // let _this = this;
  21835. // setTimeout(() => {
  21836. // _this.vedioTime = [];
  21837. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21838. // _this.vedioTime[i] = document.getElementsByClassName(
  21839. // "vjs-duration-display"
  21840. // )[i].textContent;
  21841. // }
  21842. // }, 1000);
  21843. },
  21844. };
  21845. </script>
  21846. <style scoped>
  21847. @media screen and (max-width: 1280px) {
  21848. /* .courseIndex > div:first-child(2) {
  21849. width: 15% !important;
  21850. } */
  21851. /* .navText {
  21852. width: 120px !important;
  21853. } */
  21854. .evaCss {
  21855. flex-direction: column !important;
  21856. align-items: center !important;
  21857. }
  21858. .elist_input {
  21859. width: 90% !important;
  21860. }
  21861. .dialog_diy1 >>> .el-dialog {
  21862. width: 100% !important;
  21863. }
  21864. .rightWidthCss {
  21865. width: 100% !important;
  21866. }
  21867. .dialog_diy3 >>> .el-dialog {
  21868. width: 100% !important;
  21869. }
  21870. .addToolCss {
  21871. right: 0 !important;
  21872. width: 100% !important;
  21873. min-width: unset !important;
  21874. }
  21875. }
  21876. .evaCssMax {
  21877. flex-direction: column !important;
  21878. align-items: center !important;
  21879. }
  21880. .dialog_diy >>> .el-dialog {
  21881. margin-top: 10vh !important;
  21882. }
  21883. .body_student {
  21884. width: 77%;
  21885. height: 100%;
  21886. position: absolute;
  21887. left: 22%;
  21888. top: 0;
  21889. }
  21890. .student_head {
  21891. width: 100%;
  21892. margin: 20px auto 0;
  21893. padding-bottom: 20px;
  21894. display: flex;
  21895. flex-direction: column;
  21896. flex-wrap: nowrap;
  21897. align-items: flex-start;
  21898. justify-content: flex-start;
  21899. }
  21900. .pb_left {
  21901. width: 15%;
  21902. margin-right: 10px;
  21903. background: rgb(255, 255, 255);
  21904. position: fixed;
  21905. height: calc(100% - 40px);
  21906. border-radius: 20px;
  21907. padding-bottom: 15px;
  21908. box-sizing: border-box;
  21909. }
  21910. .wheel > img,
  21911. .project > img,
  21912. .star > img,
  21913. .evaluate > img,
  21914. .up_photo > img,
  21915. .chapter_add > img,
  21916. .deleteWord > img,
  21917. .question > img,
  21918. .homework > img {
  21919. width: 100%;
  21920. height: 100%;
  21921. }
  21922. .upCover > img {
  21923. width: 131px;
  21924. height: 69px;
  21925. object-fit: cover;
  21926. }
  21927. .upCover {
  21928. width: calc(100% / 3.5);
  21929. position: relative;
  21930. margin: 0 15px 10px 0;
  21931. display: flex;
  21932. flex-direction: column;
  21933. flex-wrap: nowrap;
  21934. justify-content: center;
  21935. align-content: center;
  21936. align-items: center;
  21937. height: fit-content;
  21938. }
  21939. .upCover2 {
  21940. width: 100%;
  21941. position: relative;
  21942. margin: 0 15px 10px 0;
  21943. display: flex;
  21944. flex-direction: column;
  21945. flex-wrap: nowrap;
  21946. justify-content: center;
  21947. align-content: center;
  21948. align-items: center;
  21949. }
  21950. .upCover2 > img {
  21951. width: 100%;
  21952. height: 90px;
  21953. object-fit: contain;
  21954. }
  21955. .chapter_add {
  21956. width: 120px;
  21957. position: relative;
  21958. text-align: center;
  21959. }
  21960. .isAddThings {
  21961. margin-top: 20px;
  21962. position: relative;
  21963. text-align: center;
  21964. background: #f7f8fa;
  21965. height: 90px;
  21966. width: 90px;
  21967. display: flex;
  21968. flex-direction: column;
  21969. justify-content: center;
  21970. }
  21971. .deleteWord {
  21972. width: 22px;
  21973. height: 22px;
  21974. position: absolute;
  21975. right: -5px;
  21976. top: -5px;
  21977. cursor: pointer;
  21978. }
  21979. .box_course {
  21980. /* width: 60%; */
  21981. width: calc(100% - 300px);
  21982. }
  21983. .wheel {
  21984. width: 100%;
  21985. /* height: 100%; */
  21986. height: 650px;
  21987. }
  21988. .right_box {
  21989. display: flex;
  21990. flex-direction: column;
  21991. margin-left: 30px;
  21992. justify-content: space-around;
  21993. }
  21994. .right_box_title {
  21995. font-size: 23px;
  21996. }
  21997. .people {
  21998. display: flex;
  21999. }
  22000. .student_body {
  22001. width: 100%;
  22002. margin: 0 auto;
  22003. margin-top: 10px;
  22004. padding: 0 0 20px;
  22005. }
  22006. .study_top {
  22007. margin-top: 100px;
  22008. width: 100%;
  22009. height: auto;
  22010. padding-bottom: 20px;
  22011. margin-left: 2px;
  22012. min-height: 90%;
  22013. }
  22014. .study_top .checkbox {
  22015. display: flex;
  22016. align-items: center;
  22017. padding: 15px 0 15px 30px;
  22018. flex: 0 0 auto;
  22019. font-weight: bold;
  22020. border-bottom: 1px solid #eee;
  22021. }
  22022. .study_top .check {
  22023. padding-bottom: 5px;
  22024. text-align: center;
  22025. cursor: pointer;
  22026. height: 30px;
  22027. box-sizing: border-box;
  22028. display: flex;
  22029. }
  22030. .study_top .checked {
  22031. border-bottom: 4px solid #3fc6a0;
  22032. padding-bottom: 5px;
  22033. color: #3fc6a0;
  22034. display: flex;
  22035. height: 35px;
  22036. }
  22037. .study_top .checked > div,
  22038. .study_top .check > div {
  22039. margin-right: 5px;
  22040. }
  22041. .videoTop {
  22042. display: flex;
  22043. flex-direction: row;
  22044. justify-content: space-between;
  22045. background: #fff;
  22046. align-items: center;
  22047. width: 95%;
  22048. padding: 20px;
  22049. }
  22050. .filebox {
  22051. display: flex;
  22052. flex-wrap: wrap;
  22053. flex-direction: column;
  22054. padding: 0 0 5px;
  22055. position: relative;
  22056. }
  22057. .filebox:before {
  22058. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  22059. position: absolute;
  22060. top: 20px;
  22061. left: 13px;
  22062. border-left: 2px dotted #cad1dc;
  22063. height: calc(100% - 15px);
  22064. }
  22065. .toolHeng2 > div:last-child::before {
  22066. height: calc(100% - 43px);
  22067. }
  22068. .filebox .tooldetail {
  22069. width: calc(100%);
  22070. margin: 0px 12px;
  22071. padding: 12px;
  22072. line-height: 30px;
  22073. word-break: break-word;
  22074. background: #ffffff;
  22075. border-radius: 8px 8px 8px 8px;
  22076. opacity: 1;
  22077. border: 1px solid #cad1dc;
  22078. overflow:hidden;
  22079. box-sizing:border-box;
  22080. }
  22081. .pb_content >>> .katex {
  22082. font-size: 16px;
  22083. width: 100%;
  22084. white-space: normal;
  22085. }
  22086. .pb_content >>> .katex .base{
  22087. display: inline !important;
  22088. display: contents !important;
  22089. }
  22090. .pb_content >>> .katex .base .cjk_fallback{
  22091. white-space: normal !important;
  22092. display: inline !important;
  22093. }
  22094. .file {
  22095. display: flex;
  22096. flex-direction: column;
  22097. align-items: center;
  22098. justify-content: center;
  22099. cursor: pointer;
  22100. width: 200px;
  22101. }
  22102. .file div {
  22103. margin-top: 10px;
  22104. width: 150px;
  22105. text-align: center;
  22106. overflow: hidden;
  22107. white-space: nowrap;
  22108. text-overflow: ellipsis;
  22109. }
  22110. .media {
  22111. display: flex;
  22112. flex-direction: column;
  22113. align-items: center;
  22114. justify-content: center;
  22115. margin: 0 20px 20px 0;
  22116. cursor: pointer;
  22117. margin: 12px 0 5px 15px;
  22118. overflow: hidden;
  22119. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  22120. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  22121. box-sizing: border-box;
  22122. }
  22123. .media img {
  22124. height: 90px;
  22125. width: 160px;
  22126. object-fit: cover;
  22127. }
  22128. .media .title {
  22129. padding: 5px;
  22130. text-align: left;
  22131. width: 100%;
  22132. box-sizing: border-box;
  22133. }
  22134. .media .btn {
  22135. width: 100%;
  22136. height: 35px;
  22137. line-height: 35px;
  22138. color: #fff;
  22139. background: #606060;
  22140. text-align: center;
  22141. overflow: hidden;
  22142. white-space: nowrap;
  22143. text-overflow: ellipsis;
  22144. }
  22145. .detail_content_top {
  22146. width: 100%;
  22147. padding: 25px 0 25px 0;
  22148. }
  22149. .detail_title {
  22150. text-align: center;
  22151. font-size: 24px;
  22152. }
  22153. .detail_time {
  22154. font-size: 13px;
  22155. padding: 15px 0 0 40px;
  22156. }
  22157. .detail_content {
  22158. line-height: 2pc;
  22159. width: 90%;
  22160. margin: 0 auto;
  22161. padding-top: 30px;
  22162. text-indent: 30px;
  22163. overflow: auto;
  22164. height: 200px;
  22165. }
  22166. .score_box >>> .el-rate {
  22167. margin-left: 10px;
  22168. }
  22169. .dialog_change >>> .el-dialog {
  22170. border-radius: 5px;
  22171. }
  22172. .dialog_change >>> .el-dialog__header {
  22173. background: #f2f2f2;
  22174. text-align: center;
  22175. }
  22176. .dialog_change >>> .el-dialog__title {
  22177. line-height: 5px;
  22178. }
  22179. .dialog_change >>> .el-dialog__body {
  22180. background: #fff;
  22181. padding: 10px 20px;
  22182. }
  22183. .score_box {
  22184. display: flex;
  22185. align-items: center;
  22186. margin-bottom: 18px;
  22187. margin-top: 20px;
  22188. }
  22189. .up_photo {
  22190. width: 120px;
  22191. cursor: pointer;
  22192. margin-top: 10px;
  22193. }
  22194. .up_photo2 {
  22195. width: 180px;
  22196. box-sizing: border-box;
  22197. min-width: 180px;
  22198. height: 180px;
  22199. max-height: 180px;
  22200. min-height: 180px;
  22201. cursor: pointer;
  22202. display: flex;
  22203. flex-direction: column;
  22204. align-items: center;
  22205. justify-content: center;
  22206. background: rgb(242, 246, 255);
  22207. /* padding: 25px; */
  22208. margin-bottom: 10px;
  22209. }
  22210. .up_photo2 img {
  22211. width: 50%;
  22212. height: auto;
  22213. }
  22214. .up_photo2 span {
  22215. color: #898989;
  22216. }
  22217. .plworkBox {
  22218. display: flex;
  22219. align-items: center;
  22220. margin-top: 10px;
  22221. flex-wrap: wrap;
  22222. }
  22223. .upload_send {
  22224. margin: 30px auto 30px;
  22225. width: 60%;
  22226. background: #3681fc;
  22227. text-align: center;
  22228. height: 35px;
  22229. line-height: 35px;
  22230. color: #fff;
  22231. border-radius: 5px;
  22232. cursor: pointer;
  22233. }
  22234. .marginT {
  22235. margin-top: 20px;
  22236. }
  22237. .cd_content_steps {
  22238. display: flex;
  22239. width: 90%;
  22240. justify-content: space-around;
  22241. border-top: 1px solid #eeeeee;
  22242. }
  22243. .cd_steps_box {
  22244. display: flex;
  22245. justify-content: center;
  22246. align-items: center;
  22247. flex-direction: column;
  22248. cursor: pointer;
  22249. }
  22250. .first {
  22251. display: flex;
  22252. align-items: center;
  22253. margin: 15px 0 20px 0;
  22254. font-size: 20px;
  22255. }
  22256. .first > div:nth-child(2) {
  22257. font-size: 16px !important;
  22258. padding-left: 10px;
  22259. line-height: 26px;
  22260. box-sizing: border-box;
  22261. }
  22262. .blue_box_one {
  22263. text-align: center;
  22264. color: #fff;
  22265. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  22266. border-radius: 7px;
  22267. margin: 10px;
  22268. cursor: pointer;
  22269. width: 95%;
  22270. height: 45px;
  22271. display: flex;
  22272. flex-direction: row;
  22273. justify-content: flex-start;
  22274. align-items: center;
  22275. }
  22276. .blue_box_one > div:nth-child(1) {
  22277. line-height: 30px;
  22278. margin: 0 5px 0 10px;
  22279. width: 30%;
  22280. min-width: 70px;
  22281. border-radius: 4px;
  22282. }
  22283. .blue_box_one > div:nth-child(2) {
  22284. white-space: nowrap;
  22285. text-overflow: ellipsis;
  22286. overflow: hidden;
  22287. word-break: break-all;
  22288. width: 70%;
  22289. text-align: left;
  22290. margin-right: 10px;
  22291. max-width: calc(100% - 85px);
  22292. }
  22293. .blue_box_one > div:nth-child(2):hover {
  22294. overflow: hidden;
  22295. text-overflow: ellipsis;
  22296. white-space: nowrap;
  22297. cursor: pointer;
  22298. }
  22299. .upFile {
  22300. margin: 0 auto;
  22301. width: 120px;
  22302. background: #3681fc;
  22303. color: #fff;
  22304. height: 30px;
  22305. text-align: center;
  22306. line-height: 30px;
  22307. border-radius: 5px;
  22308. font-size: 14px;
  22309. cursor: pointer;
  22310. }
  22311. .courseTitle {
  22312. width: 85%;
  22313. margin: 10px auto 26px auto;
  22314. display: flex;
  22315. flex-direction: row;
  22316. align-items: center;
  22317. justify-content: space-between;
  22318. text-align: center;
  22319. }
  22320. .courseTitle .ctitle {
  22321. font-size: 20px;
  22322. font-weight: bold;
  22323. color: #0e1e33;
  22324. white-space: nowrap;
  22325. overflow: hidden;
  22326. text-overflow: ellipsis;
  22327. }
  22328. .inviteBox {
  22329. font-size: 14px;
  22330. /* margin-top: 5px; */
  22331. color: #00000099;
  22332. text-align: center;
  22333. }
  22334. .courseTitle >>> .el-tooltip {
  22335. width: 100%;
  22336. white-space: nowrap;
  22337. overflow: hidden;
  22338. text-overflow: ellipsis;
  22339. word-break: break-word;
  22340. }
  22341. .ml {
  22342. margin-left: 20px;
  22343. color: #5b7dba;
  22344. border-left: 3px solid #5b7dba;
  22345. padding-left: 5px;
  22346. font-weight: bold;
  22347. }
  22348. .return {
  22349. width: 2rem;
  22350. height: 2rem;
  22351. cursor: pointer;
  22352. }
  22353. .return > img {
  22354. width: 100%;
  22355. height: 100%;
  22356. }
  22357. .returnBtn {
  22358. width: 86px;
  22359. height: 36px;
  22360. background: #3681fc;
  22361. border-radius: 4px;
  22362. color: #fff;
  22363. text-align: center;
  22364. line-height: 36px;
  22365. margin-right: 20px;
  22366. cursor: pointer;
  22367. font-size: 14px;
  22368. font-weight: 400;
  22369. display: flex;
  22370. flex-direction: row;
  22371. flex-wrap: nowrap;
  22372. align-items: center;
  22373. justify-content: center;
  22374. }
  22375. .reBtnIcon,
  22376. .commentIcon,
  22377. .vedioIcon,
  22378. .vedioIcon1 {
  22379. /* width: 36px; */
  22380. height: 36px;
  22381. border-radius: 4px;
  22382. position: relative;
  22383. /* background: #e0eafb; */
  22384. background: #0061ff;
  22385. cursor: pointer;
  22386. margin-right: 12px;
  22387. display: flex;
  22388. align-items: center;
  22389. padding: 0 10px;
  22390. box-sizing: border-box;
  22391. font-size: 14px;
  22392. color: #fff;
  22393. }
  22394. .reBtnIcon::before,
  22395. .commentIcon::before,
  22396. .vedioIcon::before,
  22397. .vedioIcon1::before {
  22398. content: "";
  22399. display: block;
  22400. background-size: 100% 100%;
  22401. background-repeat: no-repeat;
  22402. width: 20px;
  22403. height: 20px;
  22404. margin-right: 5px;
  22405. /* position: absolute; */
  22406. /* top: 8px;
  22407. left: 8px; */
  22408. }
  22409. .vedioIcon1 {
  22410. background: #f63564;
  22411. }
  22412. .reBtnIcon::before {
  22413. background-image: url("../../assets/icon/newIcons/refresh.png");
  22414. }
  22415. .commentIcon::before {
  22416. background-image: url("../../assets/icon/newIcons/comment.png");
  22417. }
  22418. .vedioIcon::before {
  22419. background-image: url("../../assets/icon/newIcons/transcribe.png");
  22420. }
  22421. .vedioIcon1::before {
  22422. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  22423. background-image: url("../../assets/icon/newIcons/transcribe.png");
  22424. }
  22425. .tool {
  22426. display: flex;
  22427. flex-direction: column;
  22428. flex-wrap: nowrap;
  22429. width: 13%;
  22430. margin: 0 30px;
  22431. align-items: center;
  22432. position: relative;
  22433. padding: 10px 25px;
  22434. cursor: pointer;
  22435. }
  22436. .whiteBIcon {
  22437. width: 150px;
  22438. }
  22439. .whiteBIcon > img {
  22440. width: 100%;
  22441. height: 100%;
  22442. }
  22443. .mask {
  22444. background-color: rgba(0, 0, 0, 0);
  22445. position: fixed;
  22446. top: 0;
  22447. left: 0;
  22448. width: 100%;
  22449. height: 100%;
  22450. z-index: 20000;
  22451. display: flex;
  22452. align-items: center;
  22453. justify-content: center;
  22454. }
  22455. .progressBox {
  22456. width: 500px;
  22457. height: 180px;
  22458. background: #fff;
  22459. border-radius: 10px;
  22460. box-shadow: 0 0 6px 1px #bfbfbf;
  22461. display: flex;
  22462. align-items: center;
  22463. justify-content: center;
  22464. flex-direction: column;
  22465. position: relative;
  22466. color: #6c6c6c;
  22467. }
  22468. .progressBox >>> .el-progress-bar__outer {
  22469. background-color: #d1dfff !important;
  22470. }
  22471. .progressBox .lbox {
  22472. height: 50px;
  22473. font-size: 19px;
  22474. display: flex;
  22475. align-items: center;
  22476. color: #747474;
  22477. }
  22478. .progressBox .lbox img {
  22479. width: 40px;
  22480. margin-right: 20px;
  22481. }
  22482. .closeCss {
  22483. position: absolute;
  22484. top: 8px;
  22485. right: 8px;
  22486. cursor: pointer;
  22487. width: 20px;
  22488. height: 20px;
  22489. }
  22490. .closeCss > img {
  22491. width: 100%;
  22492. height: 100%;
  22493. }
  22494. .uploadVedio {
  22495. display: flex;
  22496. flex-direction: column;
  22497. flex-wrap: nowrap;
  22498. justify-content: center;
  22499. align-items: center;
  22500. margin: 0 15px 10px 0;
  22501. }
  22502. .uploadVedio > img {
  22503. width: 30px;
  22504. height: 30px;
  22505. }
  22506. .uploadVedio > span {
  22507. white-space: nowrap;
  22508. overflow: hidden;
  22509. text-overflow: ellipsis;
  22510. width: 75px;
  22511. margin-top: 7px;
  22512. }
  22513. .picName {
  22514. white-space: nowrap;
  22515. overflow: hidden;
  22516. text-overflow: ellipsis;
  22517. width: 75px;
  22518. margin-top: 7px;
  22519. }
  22520. .new_top {
  22521. display: flex;
  22522. background: #fff;
  22523. flex-direction: row;
  22524. justify-content: flex-start;
  22525. align-items: center;
  22526. height: 60px;
  22527. position: fixed;
  22528. top: 20px;
  22529. left: 22%;
  22530. width: 77%;
  22531. z-index: 999;
  22532. border-radius: 12px 12px 0 0;
  22533. border-bottom: 1px solid #cad1dc;
  22534. padding: 10px 0;
  22535. }
  22536. .new_topFixed {
  22537. width: 100%;
  22538. height: 40px;
  22539. position: fixed;
  22540. top: 0px;
  22541. display: block;
  22542. background: #f2f2f2;
  22543. z-index: 998;
  22544. }
  22545. .before {
  22546. position: absolute;
  22547. background: #c3dad4;
  22548. width: 6px;
  22549. height: 100%;
  22550. }
  22551. .courseIndex {
  22552. display: flex;
  22553. flex-direction: row;
  22554. align-items: center;
  22555. width: calc(100% - 745px);
  22556. }
  22557. .courseIndex > div:nth-child(1) {
  22558. margin: 0 0 0 10px;
  22559. font-size: 20px;
  22560. min-width: 100px;
  22561. font-weight: bold;
  22562. border-left: 4px solid #3363b9;
  22563. height: 32px;
  22564. text-align: center;
  22565. line-height: 35px;
  22566. }
  22567. .courseIndex > div:nth-child(2) {
  22568. font-size: 20px;
  22569. /* width: 300px; */
  22570. max-width: calc(100% - 105px);
  22571. white-space: nowrap;
  22572. overflow: hidden;
  22573. text-overflow: ellipsis;
  22574. }
  22575. .courseIndex > div:nth-child(3) {
  22576. border-bottom: 1px solid #d7d7d7;
  22577. padding-bottom: 5px;
  22578. background: #3681fc;
  22579. width: 55px;
  22580. min-width: 55px;
  22581. border-radius: 5px;
  22582. color: #fff;
  22583. text-align: center;
  22584. height: 20px;
  22585. line-height: 26px;
  22586. font-size: 14px;
  22587. margin: 0 0 0 10px;
  22588. }
  22589. .course_text {
  22590. padding: 20px 0 0 15px;
  22591. text-indent: 30px;
  22592. width: 80%;
  22593. min-height: 20px;
  22594. }
  22595. .vedioList {
  22596. background: #f2f2f2;
  22597. border: 1px solid #ececec;
  22598. /* width: 38.8%; */
  22599. /* width: 300px; */
  22600. width: 100%;
  22601. height: 445px;
  22602. border-radius: 10px;
  22603. overflow: hidden;
  22604. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  22605. }
  22606. .vedioNav {
  22607. margin: 10px 0 0 15px;
  22608. border-bottom: 1px solid #d7d7d7;
  22609. padding-bottom: 5px;
  22610. background: #3681fc;
  22611. width: 55px;
  22612. min-width: 55px;
  22613. border-radius: 5px;
  22614. color: #fff;
  22615. text-align: center;
  22616. height: 20px;
  22617. line-height: 26px;
  22618. font-size: 14px;
  22619. }
  22620. .queTop {
  22621. display: flex;
  22622. padding: 20px 0 20px 30px;
  22623. width: 100%;
  22624. flex-direction: row;
  22625. justify-content: flex-start;
  22626. align-items: center;
  22627. box-sizing: border-box;
  22628. }
  22629. .queTopTitle {
  22630. display: flex;
  22631. flex-direction: row;
  22632. flex-wrap: nowrap;
  22633. align-items: center;
  22634. font-weight: bold;
  22635. font-size: 20px;
  22636. color: rgb(14, 30, 51);
  22637. }
  22638. .queTopTitle::before {
  22639. content: "";
  22640. width: 2px;
  22641. height: 22px;
  22642. background: #3681fc;
  22643. border-radius: 3px;
  22644. display: block;
  22645. margin: 2px 6px 0 0;
  22646. }
  22647. .queTopRight {
  22648. display: flex;
  22649. flex-direction: row;
  22650. flex-wrap: nowrap;
  22651. align-items: center;
  22652. }
  22653. .queTopClose {
  22654. margin-right: 20px;
  22655. cursor: pointer;
  22656. position: relative;
  22657. display: flex;
  22658. }
  22659. .closeImg,
  22660. .openImg {
  22661. width: 25px;
  22662. height: 25px;
  22663. position: absolute;
  22664. left: -20px;
  22665. top: -1px;
  22666. }
  22667. .closeImg > img,
  22668. .openImg > img {
  22669. width: 100%;
  22670. height: 100%;
  22671. }
  22672. .question {
  22673. width: 40px;
  22674. margin-right: 10px;
  22675. margin-top: 7px;
  22676. }
  22677. .queTitle {
  22678. margin-left: 5px;
  22679. font-size: 25px;
  22680. display: flex;
  22681. align-items: center;
  22682. }
  22683. .addEditor {
  22684. width: 100px;
  22685. height: 30px;
  22686. background: #42cda6;
  22687. color: #fff;
  22688. border-radius: 5px;
  22689. text-align: center;
  22690. line-height: 30px;
  22691. box-shadow: 1px 3px 6px 1px #bfbfbf;
  22692. cursor: pointer;
  22693. }
  22694. /* .vedioName {
  22695. cursor: pointer;
  22696. margin: 0px 0px 10px 5px;
  22697. white-space: nowrap;
  22698. overflow: hidden;
  22699. text-overflow: ellipsis;
  22700. width: 100%;
  22701. } */
  22702. .vedioTime {
  22703. width: 35px;
  22704. position: absolute;
  22705. color: #fff;
  22706. bottom: 0px;
  22707. right: 0px;
  22708. text-align: center;
  22709. background: #46411f;
  22710. height: 20px;
  22711. font-size: 14px;
  22712. line-height: 20px;
  22713. }
  22714. .homework {
  22715. width: 200px;
  22716. display: flex;
  22717. flex-direction: column;
  22718. flex-wrap: nowrap;
  22719. align-items: center;
  22720. cursor: pointer;
  22721. }
  22722. .homebox {
  22723. display: flex;
  22724. flex-wrap: wrap;
  22725. flex-direction: row;
  22726. justify-content: flex-start;
  22727. align-items: center;
  22728. padding: 15px 0;
  22729. }
  22730. .isChooseActive {
  22731. color: #3681fc !important;
  22732. font-weight: bold !important;
  22733. }
  22734. .chooseWho {
  22735. display: flex;
  22736. width: 100%;
  22737. flex-direction: row;
  22738. flex-wrap: nowrap;
  22739. justify-content: flex-start;
  22740. padding-bottom: 10px;
  22741. }
  22742. .chooseWho > div {
  22743. cursor: pointer;
  22744. padding-bottom: 10px;
  22745. margin: 0 30px 0 0;
  22746. font-weight: 400;
  22747. color: #0e1e33;
  22748. }
  22749. .addPoint > div > img {
  22750. cursor: pointer;
  22751. width: 85px;
  22752. border-radius: 15px;
  22753. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  22754. }
  22755. .addPoint > div {
  22756. display: flex;
  22757. flex-direction: column;
  22758. flex-wrap: nowrap;
  22759. align-items: center;
  22760. }
  22761. .isBorder > div {
  22762. margin: 0 0 10px 0;
  22763. align-items: flex-start !important;
  22764. }
  22765. .noiframeBox {
  22766. display: flex;
  22767. flex-wrap: wrap;
  22768. }
  22769. .iframeBox iframe {
  22770. width: 100%;
  22771. height: 800px;
  22772. border: none;
  22773. margin-bottom: 20px;
  22774. border: 1px solid #ccc;
  22775. }
  22776. .upload_toolBtn {
  22777. background: #3681fc;
  22778. color: #fff;
  22779. width: 110px;
  22780. text-align: center;
  22781. height: 35px;
  22782. line-height: 35px;
  22783. font-size: 14px;
  22784. border-radius: 5px;
  22785. cursor: pointer;
  22786. position: absolute;
  22787. right: 10px;
  22788. bottom: 0;
  22789. }
  22790. .binfo_input,
  22791. .pj {
  22792. font: inherit;
  22793. color: currentColor;
  22794. width: 100%;
  22795. margin: 0;
  22796. padding: 15px 14px;
  22797. display: block;
  22798. min-width: 0;
  22799. outline: none;
  22800. box-sizing: content-box;
  22801. background: none;
  22802. -webkit-tap-highlight-color: transparent;
  22803. border: 1px solid rgba(0, 0, 0, 0.23);
  22804. border-radius: 4px;
  22805. box-sizing: border-box;
  22806. resize: none;
  22807. }
  22808. .binfo_input:focus-visible {
  22809. border: 1px solid rgba(61, 103, 188);
  22810. }
  22811. .dialog_diy >>> .el-dialog__header,
  22812. .dialog_diy1 >>> .el-dialog__header {
  22813. background: #454545 !important;
  22814. padding: 15px 20px;
  22815. }
  22816. .dialog_diy >>> .el-dialog__title,
  22817. .dialog_diy1 >>> .el-dialog__title {
  22818. color: #fff;
  22819. }
  22820. .dialog_diy >>> .el-dialog__headerbtn,
  22821. .dialog_diy1 >>> .el-dialog__headerbtn {
  22822. top: 19px;
  22823. }
  22824. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  22825. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  22826. color: #fff;
  22827. }
  22828. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  22829. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  22830. color: #fff;
  22831. }
  22832. .dialog_diy1 >>> .el-dialog__body {
  22833. padding: 0;
  22834. }
  22835. .dialog_diy >>> .el-dialog__body,
  22836. .dialog_diy >>> .el-dialog__footer,
  22837. .dialog_diy1 >>> .el-dialog__footer {
  22838. background: #fafafa;
  22839. }
  22840. .a_addBox {
  22841. padding: 0 0 0 15px;
  22842. }
  22843. .a_add_box {
  22844. padding: 10px;
  22845. background: #fff;
  22846. margin-bottom: 10px;
  22847. border-radius: 5px;
  22848. box-shadow: 0 0 5px 0 #d5d5d5;
  22849. }
  22850. .a_add_head {
  22851. display: flex;
  22852. align-items: flex-start;
  22853. /* justify-content: space-between; */
  22854. flex-direction: column;
  22855. /* flex-direction: row; */
  22856. margin: 10px 0 20px 0;
  22857. font-size: 18px;
  22858. width: 100%;
  22859. }
  22860. .askIndex {
  22861. background: #3681fc;
  22862. border-radius: 50%;
  22863. color: #fff;
  22864. width: 25px;
  22865. height: 25px;
  22866. min-width: 25px;
  22867. min-height: 25px;
  22868. text-align: center;
  22869. line-height: 25px;
  22870. margin-right: 5px;
  22871. }
  22872. .a_add_head .a_add_head_input {
  22873. width: 300px;
  22874. }
  22875. .a_add_head .a_add_head_div {
  22876. display: flex;
  22877. align-items: center;
  22878. justify-content: space-between;
  22879. }
  22880. .a_add_body {
  22881. display: flex;
  22882. align-items: center;
  22883. }
  22884. .a_add_input {
  22885. display: flex;
  22886. align-items: center;
  22887. flex-wrap: wrap;
  22888. width: 100%;
  22889. }
  22890. .a_add_input >>> .el-radio-group,
  22891. .a_add_input >>> .el-checkbox-group {
  22892. width: 100%;
  22893. }
  22894. .a_add_input >>> .el-radio,
  22895. .a_add_input >>> .el-checkbox {
  22896. display: flex;
  22897. flex-direction: row;
  22898. flex-wrap: nowrap;
  22899. align-items: center;
  22900. padding: 15px 0;
  22901. }
  22902. .a_add_input >>> .el-radio:not(:last-child),
  22903. .a_add_input >>> .el-checkbox:not(:last-child) {
  22904. width: 100%;
  22905. border-bottom: 1px solid #efefef;
  22906. }
  22907. .redioStyle >>> .el-radio__label {
  22908. font-size: 18px;
  22909. }
  22910. .redioStyle >>> .el-radio__label > span,
  22911. .redioStyle >>> .el-checkbox__label > span {
  22912. word-break: break-all;
  22913. white-space: normal;
  22914. }
  22915. .redioStyle >>> .el-checkbox__label {
  22916. font-size: 18px;
  22917. }
  22918. .toolHeng2 {
  22919. width: 100%;
  22920. padding-left: 15px;
  22921. box-sizing: border-box;
  22922. }
  22923. .workNav {
  22924. font-size: 20px;
  22925. font-weight: bold;
  22926. color: #0e1e33;
  22927. display: flex;
  22928. flex-direction: row;
  22929. flex-wrap: nowrap;
  22930. align-items: center;
  22931. padding: 15px 0 15px 0;
  22932. }
  22933. .workNav::before {
  22934. content: "";
  22935. width: 2px;
  22936. height: 22px;
  22937. background: #3681fc;
  22938. border-radius: 3px;
  22939. display: block;
  22940. margin: 2px 6px 0 0;
  22941. }
  22942. .toolHeng {
  22943. display: flex;
  22944. flex-direction: row;
  22945. flex-wrap: wrap;
  22946. justify-content: flex-start;
  22947. align-items: center;
  22948. width: 100%;
  22949. }
  22950. .toolHeng > div {
  22951. padding-left: 20px;
  22952. }
  22953. .isWidth {
  22954. width: 20%;
  22955. }
  22956. .textTitle {
  22957. display: flex;
  22958. flex-direction: row;
  22959. flex-wrap: nowrap;
  22960. align-items: center;
  22961. width: 95%;
  22962. }
  22963. .textTitle >>> .el-form-item__label {
  22964. font-size: 22px;
  22965. color: #918f8f;
  22966. width: 100px;
  22967. }
  22968. .textTitle >>> .el-form-item__content {
  22969. width: calc(100% - 100px);
  22970. }
  22971. .textCss >>> .el-dialog {
  22972. width: 800px !important;
  22973. height: 400px;
  22974. background: #fafafa;
  22975. }
  22976. .textCss >>> .el-dialog__body {
  22977. margin: 55px 8% 0 8%;
  22978. padding: 0 !important;
  22979. }
  22980. .textCss >>> .el-dialog__footer {
  22981. padding-top: 38px;
  22982. }
  22983. .toolsCss >>> .el-dialog__body {
  22984. padding: 20px;
  22985. }
  22986. .lineCss >>> .el-dialog__body {
  22987. display: flex;
  22988. flex-direction: row;
  22989. align-items: center;
  22990. justify-content: center;
  22991. }
  22992. .newNav {
  22993. display: flex;
  22994. flex-direction: row;
  22995. align-items: baseline;
  22996. justify-content: flex-start;
  22997. }
  22998. .navListItem {
  22999. width: calc(100% - 20px);
  23000. height: 50px;
  23001. margin: 0px auto 10px;
  23002. display: flex;
  23003. flex-direction: row;
  23004. flex-wrap: nowrap;
  23005. align-items: center;
  23006. justify-content: space-between;
  23007. background: #f0f4fa;
  23008. border-radius: 6px 6px 6px 6px;
  23009. }
  23010. .navText {
  23011. cursor: pointer;
  23012. white-space: nowrap;
  23013. overflow: hidden;
  23014. text-overflow: ellipsis;
  23015. width: 220px;
  23016. padding: 0 10px;
  23017. font-weight: 400;
  23018. color: #0e1e33;
  23019. }
  23020. .downIcon {
  23021. width: 20px;
  23022. min-width: 20px;
  23023. height: 20px;
  23024. margin-right: 15px;
  23025. cursor: pointer;
  23026. }
  23027. .downIcon > img {
  23028. width: 100%;
  23029. height: 100%;
  23030. }
  23031. .noVedio {
  23032. display: flex;
  23033. flex-direction: row;
  23034. justify-content: center;
  23035. align-content: center;
  23036. }
  23037. .noNavText {
  23038. cursor: pointer;
  23039. margin: 0px 0px 10px 5px;
  23040. width: 112px;
  23041. }
  23042. .listNoVedio {
  23043. margin: 0 0 0 30px;
  23044. width: 97%;
  23045. }
  23046. .video-player >>> .video-js {
  23047. height: 100%;
  23048. }
  23049. .hangVedioList {
  23050. width: 90% !important;
  23051. height: 150px !important;
  23052. margin: 20px 0 0 30px;
  23053. }
  23054. .hangVedio {
  23055. width: 100%;
  23056. height: 170px !important;
  23057. align-items: flex-start !important;
  23058. }
  23059. .hangHand {
  23060. height: 150px !important;
  23061. }
  23062. .twoChild {
  23063. width: 95%;
  23064. margin: 10px;
  23065. border-radius: 5px;
  23066. background: #f2f2f2;
  23067. display: flex;
  23068. flex-direction: column;
  23069. flex-wrap: nowrap;
  23070. justify-content: flex-start;
  23071. align-items: flex-start;
  23072. transition: all 0.5s;
  23073. overflow: hidden;
  23074. height: 0;
  23075. background: #e7f3ff;
  23076. }
  23077. .twoChild > div:nth-child(1) {
  23078. margin-top: 5px;
  23079. }
  23080. .navChild {
  23081. width: 100%;
  23082. cursor: pointer;
  23083. margin-bottom: 10px;
  23084. position: relative;
  23085. }
  23086. .navChild img {
  23087. position: absolute;
  23088. right: 11px;
  23089. width: 15px;
  23090. top: 50%;
  23091. transform: translateY(-50%);
  23092. }
  23093. .navActive,
  23094. .toolActive {
  23095. height: auto !important;
  23096. overflow: auto !important;
  23097. /* padding-bottom: 16px; */
  23098. }
  23099. .toolActive {
  23100. padding: 0;
  23101. }
  23102. .navTask {
  23103. display: flex;
  23104. flex-direction: row;
  23105. flex-wrap: nowrap;
  23106. align-items: center;
  23107. align-content: flex-start;
  23108. height: 40px;
  23109. justify-content: flex-start;
  23110. padding: 0 10px;
  23111. width: 100%;
  23112. box-sizing: border-box;
  23113. }
  23114. .navTaskname {
  23115. white-space: nowrap;
  23116. text-overflow: ellipsis;
  23117. overflow: hidden;
  23118. word-break: break-all;
  23119. padding-left: 5px;
  23120. }
  23121. .openTaskActive {
  23122. /* background-color: #e0eafb !important;
  23123. color: #0061ff; */
  23124. color:#fff;
  23125. background: rgb(55, 129, 252) !important;
  23126. }
  23127. .iframeName {
  23128. margin: 5px 0;
  23129. border-left: 4px solid #41c4a4;
  23130. padding-left: 4px;
  23131. }
  23132. .toolTitle {
  23133. margin: 0px 0px 20px;
  23134. font-size: 20px;
  23135. font-weight: 500;
  23136. border-left: 4px solid #41c4a4;
  23137. padding-left: 4px;
  23138. }
  23139. .cru_selectBox {
  23140. overflow: auto;
  23141. width: 95%;
  23142. margin: 17px auto 0;
  23143. height: calc(100% - 40px - 21px - 20px - 17px);
  23144. background: #fff;
  23145. border-radius: 8px;
  23146. }
  23147. .cru_selectBox::-webkit-scrollbar,
  23148. .study_top::-webkit-scrollbar,
  23149. .textContent::-webkit-scrollbar {
  23150. /*滚动条整体样式*/
  23151. width: 6px;
  23152. /*高宽分别对应横竖滚动条的尺寸*/
  23153. height: 6px;
  23154. }
  23155. /*定义滚动条轨道 内阴影+圆角*/
  23156. .cru_selectBox::-webkit-scrollbar-track,
  23157. .study_top::-webkit-scrollbar-track,
  23158. .textContent::-webkit-scrollbar {
  23159. border-radius: 10px;
  23160. background-color: #b8bdc9;
  23161. }
  23162. /*定义滑块 内阴影+圆角*/
  23163. .cru_selectBox::-webkit-scrollbar-thumb,
  23164. .study_top::-webkit-scrollbar-thumb,
  23165. .textContent::-webkit-scrollbar-thumb {
  23166. border-radius: 10px;
  23167. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  23168. background-color: #2c5ab3;
  23169. }
  23170. .vedioBox {
  23171. border-radius: 0 0 20px 20px;
  23172. background: #fff;
  23173. overflow: auto;
  23174. }
  23175. .taskBox {
  23176. width: 98%;
  23177. background: #f0f4fa;
  23178. margin: 10px auto;
  23179. padding: 0 10px;
  23180. border-radius: 4px;
  23181. box-sizing: border-box;
  23182. }
  23183. .vedioTaskBox {
  23184. width: 100%;
  23185. display: flex;
  23186. flex-direction: row;
  23187. flex-wrap: nowrap;
  23188. align-items: flex-start;
  23189. position: relative;
  23190. }
  23191. .toolBox {
  23192. margin: 15px 0 0 25px;
  23193. display: flex;
  23194. position: relative;
  23195. padding: 18px 20px;
  23196. border-top-left-radius: 5px;
  23197. border-top-right-radius: 5px;
  23198. width: 90%;
  23199. }
  23200. .btnAll {
  23201. position: absolute;
  23202. right: 0;
  23203. display: flex;
  23204. flex-direction: row;
  23205. flex-wrap: nowrap;
  23206. align-items: center;
  23207. }
  23208. .btnLeft,
  23209. .btnRight {
  23210. display: flex;
  23211. flex-direction: row;
  23212. flex-wrap: nowrap;
  23213. align-items: center;
  23214. padding: 5px 0;
  23215. }
  23216. .btnLeft {
  23217. border-right: 1px solid #cad1dc;
  23218. }
  23219. .btnLeft > .custom-tooltip {
  23220. background: #3681fc;
  23221. color: #fff;
  23222. }
  23223. .last:hover {
  23224. background: #3383fa !important;
  23225. color: #fff;
  23226. border: 1px solid #3383fa !important;
  23227. }
  23228. .last,
  23229. .returnBtn1 {
  23230. width: 90px;
  23231. height: 36px;
  23232. background: #ffffff;
  23233. border-radius: 4px;
  23234. border: 1px solid #0061ff;
  23235. color: #0061ff;
  23236. cursor: pointer;
  23237. display: flex;
  23238. flex-direction: row;
  23239. flex-wrap: nowrap;
  23240. align-items: center;
  23241. justify-content: center;
  23242. margin-left: 12px;
  23243. }
  23244. .returnBtn1 {
  23245. background: #f0f4fa;
  23246. border-radius: 4px;
  23247. border: 1px solid #cad1dc;
  23248. margin: 0 12px;
  23249. }
  23250. .lastImg {
  23251. min-width: 15px;
  23252. width: 15px;
  23253. height: 15px;
  23254. display: flex;
  23255. }
  23256. .lastText {
  23257. padding: 0 5px 0 5px;
  23258. box-sizing: border-box;
  23259. font-size: 14px;
  23260. }
  23261. .lastImg > img {
  23262. width: 100%;
  23263. height: 100%;
  23264. }
  23265. /* .vedioTimeBox {
  23266. display: flex;
  23267. flex-direction: row;
  23268. align-items: center;
  23269. flex-wrap: nowrap;
  23270. position: relative;
  23271. } */
  23272. .navBox {
  23273. background: #fff;
  23274. height: calc(100% - 40px);
  23275. overflow-y: auto;
  23276. overflow-x: hidden;
  23277. }
  23278. .worksBox {
  23279. margin: 0 0 10px 25px;
  23280. border-bottom: 1px solid #eeeeee;
  23281. padding: 18px 20px;
  23282. border-radius: 4px;
  23283. width: 90%;
  23284. }
  23285. .worksBTitle {
  23286. font-size: 20px;
  23287. padding-bottom: 15px;
  23288. border-bottom: 1px solid #eeeeee;
  23289. display: flex;
  23290. align-items: center;
  23291. }
  23292. .greenBox {
  23293. width: 5px;
  23294. height: 30px;
  23295. background: #63b6fa;
  23296. margin-right: 5px;
  23297. }
  23298. .worksDetailBox {
  23299. display: flex;
  23300. width: 100%;
  23301. flex-direction: row;
  23302. flex-wrap: wrap;
  23303. align-items: flex-end;
  23304. justify-content: flex-start;
  23305. padding: 15px 5px;
  23306. box-sizing: border-box;
  23307. }
  23308. .works {
  23309. display: flex;
  23310. flex-direction: column;
  23311. flex-wrap: nowrap;
  23312. align-items: flex-start;
  23313. justify-content: flex-start;
  23314. align-content: center;
  23315. max-width: 240px;
  23316. width: calc(100% / 3 - 10px);
  23317. height: auto;
  23318. margin-right: 10px;
  23319. margin-bottom: 10px;
  23320. overflow: hidden;
  23321. height: 140px;
  23322. box-shadow: 0 0 6px 1px #dfdada;
  23323. border-radius: 15px;
  23324. }
  23325. .workImg {
  23326. width: 100%;
  23327. /* height: calc(100% - 40px); */
  23328. height: 105px;
  23329. position: relative;
  23330. }
  23331. .workImg > img {
  23332. width: 100%;
  23333. height: 100%;
  23334. object-fit: contain;
  23335. cursor: pointer;
  23336. }
  23337. .worksName {
  23338. height: 40px;
  23339. line-height: 40px;
  23340. display: flex;
  23341. width: 100%;
  23342. flex-direction: row;
  23343. flex-wrap: nowrap;
  23344. justify-content: space-between;
  23345. align-items: center;
  23346. margin: 0 0 0 10px;
  23347. }
  23348. .worksName > div:nth-child(1) {
  23349. width: 110px;
  23350. white-space: nowrap;
  23351. overflow: hidden;
  23352. text-overflow: ellipsis;
  23353. }
  23354. .worksName > div:nth-child(2) {
  23355. color: #b7b4b5;
  23356. }
  23357. .noWorksS {
  23358. padding: 15px 0;
  23359. display: flex;
  23360. flex-direction: row;
  23361. flex-wrap: wrap;
  23362. align-items: center;
  23363. justify-content: flex-start;
  23364. }
  23365. .noWorksName,
  23366. .isWorksName,
  23367. .isWorksName2 {
  23368. background: #ddebf8;
  23369. color: #000;
  23370. width: 90px;
  23371. height: 25px;
  23372. text-align: center;
  23373. line-height: 25px;
  23374. border-radius: 4px;
  23375. margin: 10px 15px 10px 0;
  23376. white-space: nowrap;
  23377. overflow: hidden;
  23378. padding: 5px;
  23379. text-overflow: ellipsis;
  23380. cursor: pointer;
  23381. border: 1px solid #ddebf8;
  23382. }
  23383. .noWorksName {
  23384. background: #fff;
  23385. color: #0061ff;
  23386. border: 1px solid #0061ff;
  23387. }
  23388. .noWorksName > span{
  23389. max-width: 100%;
  23390. display: block;
  23391. overflow: hidden;
  23392. text-overflow: ellipsis;
  23393. white-space: nowrap;
  23394. }
  23395. .noWorksName2 {
  23396. background: #fff;
  23397. color: #0061ff;
  23398. width: 90px;
  23399. height: 25px;
  23400. text-align: center;
  23401. line-height: 25px;
  23402. border-radius: 4px;
  23403. margin: 10px 15px 10px 0;
  23404. white-space: nowrap;
  23405. overflow: hidden;
  23406. padding: 5px;
  23407. text-overflow: ellipsis;
  23408. cursor: pointer;
  23409. border: 1px solid #0061ff;
  23410. }
  23411. .noWorksName2 > span {
  23412. max-width: 100%;
  23413. display: block;
  23414. overflow: hidden;
  23415. text-overflow: ellipsis;
  23416. white-space: nowrap;
  23417. }
  23418. .isWorksName2 {
  23419. width: 100px;
  23420. height: 40px;
  23421. line-height: 40px;
  23422. position: relative;
  23423. background: #dae6f9;
  23424. }
  23425. .isWorksName {
  23426. background: #e7ebf1 !important;
  23427. width: 100px;
  23428. height: 40px;
  23429. line-height: 40px;
  23430. position: relative;
  23431. color: #acb4bf;
  23432. border: 1px solid #cad1dc !important;
  23433. }
  23434. .isSelectName,
  23435. .noWorksName:hover {
  23436. background: #3383fa !important;
  23437. color: #fff !important;
  23438. border: 1px solid #3383fa !important;
  23439. }
  23440. .title {
  23441. background: #1e5cc9;
  23442. /* width: 98%; */
  23443. height: 45px;
  23444. color: #fff;
  23445. line-height: 45px;
  23446. padding-left: 20px;
  23447. box-sizing: border-box;
  23448. }
  23449. .textBox {
  23450. font-size: 20px;
  23451. width: 90%;
  23452. display: flex;
  23453. flex-direction: column;
  23454. align-items: center;
  23455. margin: 20px auto 0;
  23456. max-height: calc(100% - 75px);
  23457. overflow: auto;
  23458. }
  23459. .textContent {
  23460. font-size: 18px;
  23461. width: 95%;
  23462. max-width: 95%;
  23463. }
  23464. .answerBg {
  23465. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  23466. background-size: 100% 100%;
  23467. width: 100%;
  23468. height: 100%;
  23469. color: #fff;
  23470. text-align: center;
  23471. display: flex;
  23472. flex-direction: column;
  23473. flex-wrap: nowrap;
  23474. align-items: center;
  23475. position: relative;
  23476. justify-content: center;
  23477. }
  23478. /* .answerBg > div:nth-child(1) {
  23479. font-size: 22px;
  23480. padding: 25px 0 10px;
  23481. } */
  23482. .answerContent {
  23483. width: 215px;
  23484. max-height: 60px;
  23485. word-break: break-all;
  23486. text-align: center;
  23487. /* white-space: nowrap; */
  23488. overflow: hidden;
  23489. text-overflow: ellipsis;
  23490. /* padding: 23px 0 0; */
  23491. -webkit-line-clamp: 3;
  23492. -webkit-box-orient: vertical;
  23493. display: -webkit-box;
  23494. font-size: 15px;
  23495. cursor: pointer;
  23496. }
  23497. .elist_input_box {
  23498. display: flex;
  23499. align-items: flex-start;
  23500. flex-wrap: nowrap;
  23501. padding: 10px 0 15px 30px;
  23502. flex-direction: column;
  23503. }
  23504. .elist_input {
  23505. /* width: 40%; */
  23506. width: 45%;
  23507. margin: 20px;
  23508. }
  23509. .elist_input .elist_input_box input {
  23510. font: inherit;
  23511. color: currentColor;
  23512. width: 200px;
  23513. padding: 8px 14px;
  23514. display: block;
  23515. min-width: 0;
  23516. outline: none;
  23517. border: 1px solid rgba(0, 0, 0, 0.23);
  23518. border-radius: 4px;
  23519. box-sizing: border-box;
  23520. background: #fff;
  23521. margin: 0 20px 0 0;
  23522. }
  23523. .elist_input .elist_input_box span {
  23524. height: 36px;
  23525. line-height: 36px;
  23526. color: rgb(82, 82, 82);
  23527. }
  23528. .elist_input .elist_input_box .remove {
  23529. height: 20px;
  23530. width: 20px;
  23531. background-size: 100% 100%;
  23532. background-position: unset;
  23533. margin-left: 5px;
  23534. }
  23535. .elist_input_box >>> .el-rate {
  23536. display: flex;
  23537. height: 36px;
  23538. align-items: center;
  23539. }
  23540. .elist_input_box .elist_inptu_text {
  23541. min-height: 50px;
  23542. /* width: 500px;
  23543. max-height: 150px; */
  23544. width: 100%;
  23545. line-height: 50px;
  23546. color: rgb(82, 82, 82);
  23547. overflow: auto;
  23548. text-indent: 5px;
  23549. background: #f7f6f9;
  23550. border-radius: 10px;
  23551. }
  23552. .elist_input_box .elist_inptu_text input {
  23553. width: 500px;
  23554. }
  23555. .elist_input_box >>> .el-rate__icon {
  23556. font-size: 24px;
  23557. }
  23558. .isClick {
  23559. background: #4d9def;
  23560. }
  23561. .bzBox {
  23562. display: flex;
  23563. flex-direction: row;
  23564. align-items: center;
  23565. }
  23566. .bzBox .yCss {
  23567. width: 7px;
  23568. height: 7px;
  23569. background: #fff;
  23570. margin: 0 16px 0 6px;
  23571. border-radius: 50%;
  23572. border: 5px solid #3681fc;
  23573. z-index: 99;
  23574. }
  23575. .bzBox > div:nth-child(2) {
  23576. font-size: 18px;
  23577. font-weight: bold;
  23578. color: #0e1e33;
  23579. }
  23580. .navTitile {
  23581. padding: 0 0px 0 15px;
  23582. font-size: 16px;
  23583. font-weight: bold;
  23584. color: #0e1e33;
  23585. height: 40px;
  23586. line-height: 40px;
  23587. }
  23588. .isTypeOne {
  23589. width: 240px;
  23590. height: 170px;
  23591. /* border: 1px solid #f8f8f8; */
  23592. border-radius: 10px;
  23593. box-shadow: 0 0 6px 1px #dfdada;
  23594. }
  23595. .e_add_top {
  23596. display: flex;
  23597. justify-content: space-between;
  23598. padding: 10px 20px;
  23599. border-radius: 3px;
  23600. background: #fff;
  23601. }
  23602. .e_add_title2 {
  23603. display: flex;
  23604. align-items: center;
  23605. }
  23606. .e_add_title2 span {
  23607. width: 40px;
  23608. }
  23609. .e_add_title {
  23610. display: flex;
  23611. align-items: center;
  23612. color: #b8b8b8;
  23613. font-size: 18px;
  23614. position: relative;
  23615. height: 40px;
  23616. }
  23617. .e_add_title span {
  23618. margin-right: 10px;
  23619. }
  23620. .e_add_title .el_input {
  23621. width: 300px;
  23622. }
  23623. .e_add_title >>> .el-input__inner {
  23624. width: 400px;
  23625. }
  23626. /* .e_add_btn {
  23627. } */
  23628. .e_add_content {
  23629. display: flex;
  23630. width: 100%;
  23631. max-width: 650px;
  23632. height: 550px;
  23633. }
  23634. .e_add_list {
  23635. background: #fff;
  23636. height: 500px;
  23637. width: 210px;
  23638. position: relative;
  23639. margin: 15px 5px 0 0;
  23640. flex-shrink: 0;
  23641. display: flex;
  23642. flex-direction: column;
  23643. }
  23644. .e_add_list_title {
  23645. font-size: 20px;
  23646. width: 100%;
  23647. box-sizing: border-box;
  23648. padding: 15px 40px;
  23649. text-align: center;
  23650. border-bottom: 1px solid #eaeaea;
  23651. position: relative;
  23652. display: flex;
  23653. align-items: center;
  23654. justify-content: center;
  23655. height: 57px;
  23656. background: #f6f6f6;
  23657. }
  23658. .e_add_list_title span {
  23659. overflow: hidden;
  23660. white-space: nowrap;
  23661. text-overflow: ellipsis;
  23662. }
  23663. .e_add_list_title img {
  23664. position: absolute;
  23665. right: 15px;
  23666. width: 25px;
  23667. cursor: pointer;
  23668. top: 50%;
  23669. transform: translateY(-50%);
  23670. }
  23671. .e_add_list_body {
  23672. height: calc(100% - 187px);
  23673. overflow: auto;
  23674. }
  23675. .e_add_list_child {
  23676. width: 100%;
  23677. display: flex;
  23678. align-items: center;
  23679. justify-content: center;
  23680. position: relative;
  23681. box-sizing: border-box;
  23682. padding: 15px 40px;
  23683. text-align: center;
  23684. }
  23685. .e_add_list_child span {
  23686. overflow: hidden;
  23687. white-space: nowrap;
  23688. text-overflow: ellipsis;
  23689. cursor: pointer;
  23690. }
  23691. .e_add_list_child img {
  23692. position: absolute;
  23693. right: 10px;
  23694. width: 21px;
  23695. cursor: pointer;
  23696. top: 50%;
  23697. transform: translateY(-50%);
  23698. }
  23699. .e_add_list_child + .e_add_list_child {
  23700. border-top: 1px solid #eaeaea;
  23701. }
  23702. .e_add_list_child .active {
  23703. color: #409eff;
  23704. }
  23705. .e_add_list_btn {
  23706. position: absolute;
  23707. bottom: 0;
  23708. height: 50px;
  23709. background: rgb(120, 120, 254);
  23710. width: 100%;
  23711. color: #fff;
  23712. font-size: 16px;
  23713. text-align: center;
  23714. line-height: 50px;
  23715. cursor: pointer;
  23716. }
  23717. .e_add_list_detail {
  23718. position: absolute;
  23719. bottom: 0;
  23720. height: 130px;
  23721. background: rgb(120, 120, 254);
  23722. width: 100%;
  23723. color: #fff;
  23724. font-size: 16px;
  23725. display: flex;
  23726. align-items: center;
  23727. justify-content: center;
  23728. }
  23729. .e_add_list_detail textarea {
  23730. height: 90%;
  23731. width: 95%;
  23732. border: none;
  23733. resize: none;
  23734. outline: none;
  23735. padding: 5px;
  23736. box-sizing: border-box;
  23737. }
  23738. .e_add_list_pbox {
  23739. width: 100%;
  23740. max-width: 650px;
  23741. /* height: 600px; */
  23742. }
  23743. .e_add_list_pbox_title {
  23744. height: 50px;
  23745. background: #fff;
  23746. display: flex;
  23747. align-items: center;
  23748. width: 100%;
  23749. box-sizing: border-box;
  23750. padding: 0 20px;
  23751. }
  23752. .type_title {
  23753. font-size: 18px;
  23754. font-weight: 700;
  23755. }
  23756. .type_content {
  23757. font-size: 16px;
  23758. /* margin-left: 30px; */
  23759. }
  23760. .type_content span + span {
  23761. margin-left: 20px;
  23762. }
  23763. .type_content span {
  23764. cursor: pointer;
  23765. padding-bottom: 5px;
  23766. box-sizing: border-box;
  23767. }
  23768. .type_content .active {
  23769. color: #409eff;
  23770. border-bottom: 2px solid #409eff;
  23771. }
  23772. .e_add_list_pbox_content {
  23773. height: calc(100% - 50px);
  23774. display: flex;
  23775. align-items: center;
  23776. width: 100%;
  23777. background: #fff;
  23778. }
  23779. .evaCss {
  23780. display: flex;
  23781. flex-direction: row;
  23782. flex-wrap: nowrap;
  23783. align-items: flex-start;
  23784. padding: 0 0 20px;
  23785. }
  23786. .cru_line {
  23787. position: absolute;
  23788. bottom: 0px;
  23789. transition: all 0.5s;
  23790. left: 0px;
  23791. width: 125px;
  23792. margin-left: -25px;
  23793. }
  23794. .isNoMessage {
  23795. width: 20%;
  23796. margin: 25% auto 0;
  23797. }
  23798. .isNoMessage > img {
  23799. width: 100%;
  23800. height: 100%;
  23801. }
  23802. .fullStyle >>> .el-dialog__body {
  23803. height: 100% !important;
  23804. }
  23805. .fullStyle >>> .el-dialog,
  23806. .fullStyle {
  23807. width: 100% !important;
  23808. max-width: 100% !important;
  23809. height: 100% !important;
  23810. margin: 0 !important;
  23811. }
  23812. .full_diy >>> .el-dialog {
  23813. margin: 0 !important;
  23814. height: 100%;
  23815. padding: 4px;
  23816. }
  23817. .full_diy >>> .el-dialog__body {
  23818. height: calc(100% - 100px);
  23819. }
  23820. .full_diy2 >>> .el-dialog__body {
  23821. height: calc(100% - 50px);
  23822. padding: 0;
  23823. }
  23824. .switchCss {
  23825. /* width: 100%; */
  23826. display: flex;
  23827. flex-direction: row;
  23828. flex-wrap: nowrap;
  23829. align-items: center;
  23830. /* justify-content: center; */
  23831. }
  23832. .isClickNav {
  23833. /* color: #499eef; */
  23834. color: #000;
  23835. }
  23836. .commentImg {
  23837. width: 25px;
  23838. height: 25px;
  23839. cursor: pointer;
  23840. }
  23841. .commentImg > img {
  23842. width: 100%;
  23843. height: 100%;
  23844. }
  23845. .comment {
  23846. background: #f9f9f9;
  23847. border-radius: 0 0 4px 4px;
  23848. display: flex;
  23849. flex-direction: row;
  23850. flex-wrap: nowrap;
  23851. align-items: center;
  23852. justify-content: flex-end;
  23853. height: 35px;
  23854. }
  23855. .commentList {
  23856. display: flex;
  23857. flex-direction: row;
  23858. flex-wrap: nowrap;
  23859. align-items: center;
  23860. justify-content: center;
  23861. align-content: center;
  23862. /* margin-left: 15px; */
  23863. /* margin-left: 8px; */
  23864. }
  23865. .scoreImg {
  23866. width: 17px;
  23867. height: 17px;
  23868. }
  23869. .studentDetail {
  23870. display: flex;
  23871. flex-direction: row;
  23872. flex-wrap: nowrap;
  23873. /* align-items: center; */
  23874. align-items: flex-start;
  23875. }
  23876. .tx {
  23877. width: 50px;
  23878. }
  23879. .tx > img {
  23880. width: 100%;
  23881. height: 100%;
  23882. }
  23883. .nameAndTime {
  23884. display: flex;
  23885. flex-direction: column;
  23886. flex-wrap: nowrap;
  23887. align-items: flex-start;
  23888. margin-left: 10px;
  23889. }
  23890. .worksAnswer {
  23891. color: #4078dd;
  23892. margin: 10px 0;
  23893. font-size: 16px;
  23894. position: relative;
  23895. }
  23896. .worksAnswer > img {
  23897. width: 500px;
  23898. height: 300px;
  23899. object-fit: contain;
  23900. margin: 0 auto;
  23901. display: block;
  23902. }
  23903. .commentTop {
  23904. border-bottom: 1px solid #eaeaea;
  23905. padding-bottom: 10px;
  23906. }
  23907. .commentBox {
  23908. padding-top: 15px;
  23909. }
  23910. .pl {
  23911. font-size: 18px;
  23912. }
  23913. .plPerson {
  23914. width: 100%;
  23915. }
  23916. .plName {
  23917. display: flex;
  23918. flex-direction: row;
  23919. flex-wrap: nowrap;
  23920. align-items: baseline;
  23921. color: #78787a;
  23922. width: 100%;
  23923. }
  23924. .deleteComment {
  23925. cursor: pointer;
  23926. margin-left: auto;
  23927. color: #237ade;
  23928. }
  23929. .plContent {
  23930. margin-top: 5px;
  23931. }
  23932. .evalCss {
  23933. background: #fff;
  23934. font-size: 18px;
  23935. }
  23936. .nav {
  23937. color: #9d9d9d;
  23938. padding: 5px 0 15px 20px;
  23939. }
  23940. .middleBox {
  23941. padding: 5px 0 15px 20px;
  23942. }
  23943. .pfBox {
  23944. padding-bottom: 30px;
  23945. }
  23946. .nameAndrate {
  23947. display: flex;
  23948. flex-direction: row;
  23949. flex-wrap: nowrap;
  23950. align-items: center;
  23951. padding-bottom: 10px;
  23952. height: 30px;
  23953. line-height: 30px;
  23954. }
  23955. .nameAndrate > div {
  23956. margin-left: 10px;
  23957. color: #000;
  23958. height: 30px;
  23959. }
  23960. .nameAndrate >>> .el-rate__icon {
  23961. font-size: 28px !important;
  23962. }
  23963. .pfBox > div:nth-child(2) {
  23964. background: #f7f6f9;
  23965. width: 400px;
  23966. min-height: 45px;
  23967. border-radius: 10px;
  23968. font-size: 16px;
  23969. display: flex;
  23970. flex-wrap: wrap;
  23971. align-items: center;
  23972. padding: 10px 20px;
  23973. box-sizing: border-box;
  23974. color: #000;
  23975. }
  23976. .bz {
  23977. display: flex;
  23978. flex-direction: row;
  23979. flex-wrap: nowrap;
  23980. align-items: flex-start;
  23981. }
  23982. .bz > div {
  23983. padding: 0 10px;
  23984. }
  23985. .select_box2_title {
  23986. background: #fff;
  23987. border-radius: 5px;
  23988. padding: 15px 10px;
  23989. box-sizing: border-box;
  23990. margin-bottom: 10px;
  23991. display: flex;
  23992. flex-direction: row;
  23993. flex-wrap: nowrap;
  23994. align-items: center;
  23995. }
  23996. .select_box2_title > div:nth-child(2) {
  23997. margin-left: 10px;
  23998. color: #c4c4c4;
  23999. }
  24000. .select_box2_box {
  24001. display: flex;
  24002. height: 500px;
  24003. }
  24004. .select_box2_img {
  24005. width: calc(100% - 310px);
  24006. height: 100%;
  24007. overflow: auto;
  24008. background: #fff;
  24009. border-radius: 5px;
  24010. }
  24011. .select_box2_img img {
  24012. width: 100%;
  24013. }
  24014. .select_box2_answer {
  24015. background: #fff;
  24016. margin-left: 10px;
  24017. border-radius: 5px;
  24018. width: 300px;
  24019. overflow: auto;
  24020. height: 90%;
  24021. display: flex;
  24022. flex-direction: column;
  24023. align-items: flex-start;
  24024. padding-top: 10px;
  24025. box-sizing: border-box;
  24026. position: relative;
  24027. }
  24028. .select_answer_title {
  24029. padding: 0 0 15px 20px;
  24030. color: #c4c4c4;
  24031. }
  24032. .select_box2_answer_box {
  24033. margin: 0 0 10px 20px;
  24034. width: 85%;
  24035. display: flex;
  24036. flex-direction: row;
  24037. flex-wrap: nowrap;
  24038. align-items: center;
  24039. }
  24040. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  24041. color: #000;
  24042. }
  24043. .upAnswerCss {
  24044. position: absolute;
  24045. bottom: 15px;
  24046. right: 15px;
  24047. }
  24048. .upAnswerCss >>> .el-button {
  24049. width: 95px;
  24050. height: 35px;
  24051. line-height: 35px;
  24052. padding: 0;
  24053. }
  24054. .rightWidthCss {
  24055. width: 60%;
  24056. display: flex;
  24057. flex-direction: row;
  24058. align-items: flex-start;
  24059. }
  24060. .rightAnswer {
  24061. display: flex;
  24062. flex-direction: row;
  24063. flex-wrap: nowrap;
  24064. align-items: center;
  24065. color: red;
  24066. margin-bottom: 31px;
  24067. }
  24068. .rightAnswerCss {
  24069. display: flex;
  24070. flex-direction: column;
  24071. flex-wrap: nowrap;
  24072. padding-top: 60px;
  24073. }
  24074. .blueCss {
  24075. color: #767de1;
  24076. margin-left: 10px;
  24077. }
  24078. .redCss {
  24079. color: red;
  24080. }
  24081. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  24082. color: rgb(0 123 255) !important;
  24083. }
  24084. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  24085. color: rgb(0 123 255) !important;
  24086. }
  24087. .zuoyeYulan {
  24088. padding-top: 0;
  24089. font-size: 18px;
  24090. display: flex;
  24091. align-items: flex-end;
  24092. }
  24093. .buttonA {
  24094. margin-left: 10px;
  24095. padding: 0;
  24096. }
  24097. .displayBox {
  24098. margin-bottom: 10px;
  24099. display: block;
  24100. border-bottom: 3px solid #eee;
  24101. display: flex;
  24102. align-items: center;
  24103. }
  24104. .easy_comment {
  24105. width: calc(100% - 90px);
  24106. margin-left: 10px;
  24107. display: flex;
  24108. flex-wrap: wrap;
  24109. }
  24110. .easy_comment > div {
  24111. border: 1px solid #4a4a4a;
  24112. color: #666;
  24113. border-radius: 15px;
  24114. padding: 5px 10px;
  24115. font-size: 16px;
  24116. margin-bottom: 10px;
  24117. margin-right: 5px;
  24118. cursor: pointer;
  24119. }
  24120. .easy_comment div:hover {
  24121. border: 1px solid #f7ba2a;
  24122. color: #c69217;
  24123. }
  24124. .xuan_right_box {
  24125. padding: 10px 0;
  24126. background: #f0f4fa;
  24127. margin: 0 15px 0 25px;
  24128. border-bottom-left-radius: 5px;
  24129. border-bottom-right-radius: 5px;
  24130. width: 91.5%;
  24131. }
  24132. .tool_right_box {
  24133. display: flex;
  24134. align-items: center;
  24135. }
  24136. .tool_right_box + .tool_right_box {
  24137. margin-top: 10px;
  24138. }
  24139. .right_box_xuan {
  24140. border-radius: 5px;
  24141. padding: 5px;
  24142. margin-left: 10px;
  24143. min-width: 85px;
  24144. background: #fff;
  24145. color: #0061ff;
  24146. border: 1px solid #0061ff;
  24147. font-size: 14px;
  24148. }
  24149. .pButton:hover {
  24150. opacity: 1 !important;
  24151. }
  24152. .pButton {
  24153. position: fixed;
  24154. text-align: center;
  24155. cursor: pointer;
  24156. z-index: 999;
  24157. right: 20px;
  24158. top: 110px;
  24159. width: 50px;
  24160. height: 50px;
  24161. display: flex;
  24162. align-items: center;
  24163. justify-content: center;
  24164. border-radius: 5px;
  24165. }
  24166. .pzClass {
  24167. width: calc(100% - 340px);
  24168. }
  24169. .newDialogCss {
  24170. /* position: fixed;
  24171. right: 5%;
  24172. top: 50%;
  24173. width: 340px;
  24174. transform: translateY(-50%);
  24175. height: 60%;
  24176. box-shadow: 0px 0 8px 0px #555555;
  24177. border-radius: 15px;
  24178. z-index: 999; */
  24179. position: fixed;
  24180. right: 20px;
  24181. top: 101px;
  24182. width: 330px;
  24183. height: calc(100% - 80px);
  24184. z-index: 999;
  24185. background: #fff;
  24186. border-top-right-radius: 0px;
  24187. border-bottom-right-radius: 0px;
  24188. overflow: hidden;
  24189. }
  24190. .newDialogCss>.scoreList{
  24191. width:100%;
  24192. height:100%;
  24193. box-sizing:border-box;
  24194. padding:10px 15px;
  24195. overflow:auto;
  24196. padding-bottom:80px;
  24197. }
  24198. .pzTop {
  24199. color: #fff;
  24200. background: #000;
  24201. display: flex;
  24202. flex-direction: row;
  24203. flex-wrap: nowrap;
  24204. align-items: center;
  24205. justify-content: space-between;
  24206. height: 40px;
  24207. border-radius: 15px 15px 0 0;
  24208. user-select: none;
  24209. }
  24210. .pzTop2 .checkbox {
  24211. display: flex;
  24212. align-items: center;
  24213. padding: 5px 10px;
  24214. flex: 0 0 auto;
  24215. font-weight: bold;
  24216. border-bottom: 1px solid #eee;
  24217. justify-content: space-between;
  24218. }
  24219. .checkbox>.cb-tabList{
  24220. display:flex;
  24221. align-items:center;
  24222. }
  24223. .cb-tabList>div{
  24224. margin-right:20px;
  24225. font-weight:400;
  24226. cursor:pointer;
  24227. }
  24228. .cb-tabList>.cb-tabItem{
  24229. color:#1684FC;
  24230. position:relative;
  24231. }
  24232. .cb-tabItem::after{
  24233. content:"";
  24234. width:100%;
  24235. height:2px;
  24236. background:#1684FC;
  24237. position:absolute;
  24238. bottom:-5px;
  24239. left:0
  24240. }
  24241. .pzTop2 .check {
  24242. text-align: center;
  24243. cursor: pointer;
  24244. box-sizing: border-box;
  24245. display: flex;
  24246. }
  24247. .pzTop2 img {
  24248. width: 25px;
  24249. cursor: pointer;
  24250. }
  24251. .pzTop > div:nth-child(1) {
  24252. padding-left: 10px;
  24253. }
  24254. .pzTop > div:nth-child(2) {
  24255. width: 15px;
  24256. height: 15px;
  24257. padding-right: 10px;
  24258. cursor: pointer;
  24259. }
  24260. .pzTop > div:nth-child(2) > img {
  24261. width: 100%;
  24262. height: 100%;
  24263. }
  24264. .pzBox,
  24265. .noPzBox {
  24266. height: calc(100% - 60px);
  24267. /* background: #ededed; */
  24268. background: #fff;
  24269. /* border-radius: 0 0 15px 15px; */
  24270. }
  24271. .noPzBox {
  24272. display: flex;
  24273. flex-direction: column;
  24274. flex-wrap: nowrap;
  24275. justify-content: center;
  24276. align-items: center;
  24277. }
  24278. .pzList {
  24279. background: #f7f7f7;
  24280. width: 90%;
  24281. margin: 0 auto 15px;
  24282. border-radius: 5px;
  24283. }
  24284. .pzNavTop {
  24285. display: flex;
  24286. flex-direction: row;
  24287. flex-wrap: nowrap;
  24288. padding: 10px 10px 0 10px;
  24289. align-items: center;
  24290. }
  24291. .pzDelete {
  24292. cursor: pointer;
  24293. margin-left: auto;
  24294. font-size: 14px;
  24295. color: #afafaf;
  24296. }
  24297. .pzNavTop > div:nth-child(1) {
  24298. background: #3760af;
  24299. width: 35px;
  24300. height: 35px;
  24301. color: #fff;
  24302. text-align: center;
  24303. line-height: 35px;
  24304. border-radius: 50%;
  24305. font-size: 14px;
  24306. }
  24307. .pzNavTop > div:nth-child(2) {
  24308. font-size: 18px;
  24309. color: #959595;
  24310. margin-left: 5px;
  24311. }
  24312. .pzContent {
  24313. padding: 10px;
  24314. word-break: break-word;
  24315. }
  24316. .pzContent audio {
  24317. width: 100%;
  24318. }
  24319. .pzContent audio::-webkit-media-controls-panel {
  24320. background: #fff;
  24321. }
  24322. .pzContent >>> img {
  24323. max-width: 100%;
  24324. }
  24325. .pzListBox {
  24326. padding-top: 15px;
  24327. height: calc(100% - 110px);
  24328. overflow: auto;
  24329. }
  24330. .addPzButton {
  24331. position: relative;
  24332. margin-top: 3px;
  24333. width: 100%;
  24334. }
  24335. .addPzButton .img1 {
  24336. position: absolute;
  24337. top: 50%;
  24338. right: 25px;
  24339. transform: translateY(-50%);
  24340. height: 100%;
  24341. display: flex;
  24342. align-items: center;
  24343. }
  24344. .addPzButton .img1 div {
  24345. display: flex;
  24346. }
  24347. .addPzButton .img1 div img {
  24348. width: 28px;
  24349. margin-left: 10px;
  24350. cursor: pointer;
  24351. }
  24352. .addPzButton .img1 div span {
  24353. font-size: 14px;
  24354. margin: 4px 0 0 3px;
  24355. color: #afafaf;
  24356. }
  24357. .addPz {
  24358. background: #4b79ce;
  24359. width: 100px;
  24360. color: #fff;
  24361. font-size: 12px;
  24362. height: 30px;
  24363. margin: 0 auto;
  24364. text-align: center;
  24365. line-height: 30px;
  24366. border-radius: 10px;
  24367. cursor: pointer;
  24368. }
  24369. .addDialogCss {
  24370. position: fixed;
  24371. width: 600px;
  24372. height: 70%;
  24373. min-height: 450px;
  24374. box-shadow: 0px 0 8px 0px #555555;
  24375. border-radius: 15px;
  24376. z-index: 999;
  24377. left: 50%;
  24378. top: 50%;
  24379. margin: -18% 0 0 -300px;
  24380. }
  24381. .teacherPz {
  24382. display: flex;
  24383. flex-direction: row;
  24384. align-items: center;
  24385. flex-wrap: nowrap;
  24386. }
  24387. .teacherPzImg {
  24388. width: 30px;
  24389. height: 30px;
  24390. }
  24391. .teacherPzImg > img {
  24392. width: 100%;
  24393. height: 100%;
  24394. }
  24395. .addPzBox {
  24396. height: calc(100% - 40px);
  24397. background: #ededed;
  24398. border-bottom-left-radius: 15px;
  24399. border-bottom-right-radius: 15px;
  24400. }
  24401. .pzAudioClass {
  24402. margin: 15px 14px;
  24403. background: #fff;
  24404. height: 100%;
  24405. display: flex;
  24406. justify-content: center;
  24407. align-items: center;
  24408. }
  24409. .pzConText {
  24410. width: 95%;
  24411. height: 100%;
  24412. margin: 10px auto 0;
  24413. border: none;
  24414. background: #fff;
  24415. border-radius: 0px;
  24416. }
  24417. .pzConText >>> .text {
  24418. height: calc(100% - 82px);
  24419. }
  24420. .addTextCss {
  24421. background: #4b79ce;
  24422. width: 80px;
  24423. height: 30px;
  24424. text-align: center;
  24425. color: #fff;
  24426. line-height: 30px;
  24427. border-radius: 10px;
  24428. margin: 10px auto 0;
  24429. cursor: pointer;
  24430. }
  24431. .pzConText:focus-visible {
  24432. border: none !important;
  24433. }
  24434. .maxWidth {
  24435. width: 1000px;
  24436. }
  24437. .noPz {
  24438. width: 150px;
  24439. margin: 0 auto 20%;
  24440. }
  24441. .noPz > img {
  24442. width: 100%;
  24443. height: 100%;
  24444. }
  24445. .timeAndReply {
  24446. display: flex;
  24447. flex-direction: row;
  24448. flex-wrap: nowrap;
  24449. justify-content: space-between;
  24450. align-items: center;
  24451. font-size: 14px;
  24452. box-sizing: border-box;
  24453. padding: 0 10px 10px 0px;
  24454. }
  24455. .timeAndReply .time {
  24456. color: #bfbfbf;
  24457. padding: 0 0 0 10px;
  24458. box-sizing: border-box;
  24459. }
  24460. .timeAndReply > div:last-child {
  24461. cursor: pointer;
  24462. color: #777;
  24463. }
  24464. /* table 样式 */
  24465. .cont >>> table {
  24466. border-top: 1px solid #ccc;
  24467. border-left: 1px solid #ccc;
  24468. }
  24469. .cont >>> table td,
  24470. .cont >>> table th {
  24471. border-bottom: 1px solid #ccc;
  24472. border-right: 1px solid #ccc;
  24473. /* padding: 20px 5px; */
  24474. padding: 5px 10px;
  24475. max-width: 0px;
  24476. height: 30px;
  24477. vertical-align: baseline;
  24478. box-sizing: border-box;
  24479. }
  24480. .cont >>> table th {
  24481. border-bottom: 2px solid #ccc;
  24482. text-align: center;
  24483. }
  24484. /* blockquote 样式 */
  24485. .cont >>> blockquote {
  24486. display: block;
  24487. border-left: 8px solid #d0e5f2;
  24488. padding: 5px 10px;
  24489. margin: 10px 0;
  24490. line-height: 1.4;
  24491. font-size: 100%;
  24492. background-color: #f1f1f1;
  24493. }
  24494. /* code 样式 */
  24495. .cont >>> code {
  24496. display: inline-block;
  24497. /* *display: inline; */
  24498. zoom: 1;
  24499. background-color: #f1f1f1;
  24500. border-radius: 3px;
  24501. padding: 3px 5px;
  24502. margin: 0 3px;
  24503. }
  24504. .cont >>> pre code {
  24505. display: block;
  24506. }
  24507. /* ul ol 样式 */
  24508. .cont >>> ul,
  24509. ol {
  24510. margin: 10px 0 10px 20px;
  24511. }
  24512. .addPzCheck {
  24513. display: flex;
  24514. flex-direction: row;
  24515. flex-wrap: nowrap;
  24516. padding: 10px 15px 0;
  24517. }
  24518. .addPzCheck span {
  24519. cursor: pointer;
  24520. padding-bottom: 5px;
  24521. font-weight: bold;
  24522. }
  24523. .addPzCheck span + span {
  24524. margin-left: 10px;
  24525. }
  24526. .addPzCheck .isChooseActive {
  24527. color: #3e88f4;
  24528. border-bottom: 2px solid #2f80f3;
  24529. }
  24530. /* code 样式 */
  24531. .cont {
  24532. /* -webkit-user-modify: read-write; */
  24533. overflow-wrap: break-word;
  24534. -webkit-line-break: after-white-space;
  24535. word-break: break-word;
  24536. white-space: pre-line;
  24537. }
  24538. .scoreBox,
  24539. .scoreDetailBox {
  24540. display: flex;
  24541. align-items: center;
  24542. justify-content: flex-start;
  24543. margin-top: 20px;
  24544. font-size: 18px;
  24545. width: 100%;
  24546. }
  24547. .scoreBox .t,
  24548. .scoreDetailBox .t {
  24549. margin-right: 10px;
  24550. width: 100px;
  24551. text-align: right;
  24552. }
  24553. .scoreDetailBox {
  24554. align-items: flex-start;
  24555. }
  24556. .scoreDetailBox >>> .el-textarea {
  24557. width: calc(100% - 200px);
  24558. }
  24559. .scoreBox >>> .el-input {
  24560. width: 130px;
  24561. font-size: 38px;
  24562. }
  24563. .scoreBox >>> .el-input__inner {
  24564. height: 60px;
  24565. }
  24566. .answerScore {
  24567. position: absolute;
  24568. top: 10px;
  24569. right: 10px;
  24570. background: #0000008f;
  24571. border-radius: 5px;
  24572. padding: 3px 5px;
  24573. font-size: 14px;
  24574. color: #fff;
  24575. cursor: pointer;
  24576. }
  24577. .open_box .switch_box {
  24578. width: 100%;
  24579. margin: 0 auto;
  24580. display: flex;
  24581. justify-content: space-between;
  24582. }
  24583. .open_box .switch_box + .switch_box {
  24584. margin-top: 10px;
  24585. }
  24586. .deleteImg,.deleteImg1 {
  24587. width: 25px !important;
  24588. height: 25px !important;
  24589. cursor: pointer;
  24590. position: absolute;
  24591. top: 10px;
  24592. right: 10px;
  24593. }
  24594. .deleteImg2 {
  24595. width: 23px !important;
  24596. height: 23px !important;
  24597. top: 5px;
  24598. right: 5px;
  24599. }
  24600. .deleteImg1{
  24601. width: 23px !important;
  24602. height: 23px !important;
  24603. top: 5px !important;
  24604. right: 30px !important;
  24605. }
  24606. .rightW {
  24607. right: 40px;
  24608. }
  24609. .drawPBox {
  24610. display: flex;
  24611. flex-direction: column;
  24612. position: relative;
  24613. }
  24614. .drawPBox span {
  24615. font-size: 18px;
  24616. color: #606266;
  24617. padding-bottom: 10px;
  24618. margin: 10px 0;
  24619. border-bottom: 1px solid #eaeaea;
  24620. }
  24621. .drawPBox img {
  24622. width: 500px;
  24623. height: 300px;
  24624. object-fit: contain;
  24625. cursor: pointer;
  24626. margin: 0 auto;
  24627. }
  24628. .sentenBox {
  24629. background: #fff;
  24630. height: 450px;
  24631. overflow: auto;
  24632. background-image: url("../../assets/icon/conSentences/stuBg.png");
  24633. background-position: 102%;
  24634. background-repeat: no-repeat;
  24635. background-size: 60%;
  24636. }
  24637. .addSen {
  24638. background: #409efe;
  24639. width: 90px;
  24640. color: #fff;
  24641. height: 35px;
  24642. text-align: center;
  24643. line-height: 35px;
  24644. border-radius: 5px;
  24645. float: right;
  24646. margin: 10px 20px 0 0;
  24647. cursor: pointer;
  24648. }
  24649. .sentenTop {
  24650. display: flex;
  24651. flex-direction: row;
  24652. flex-wrap: nowrap;
  24653. align-items: center;
  24654. padding: 55px 0 0 20px;
  24655. box-sizing: border-box;
  24656. }
  24657. .sentenTop > div:nth-child(2) {
  24658. width: 300px;
  24659. margin: 0 15px;
  24660. }
  24661. .sentenTop > div:nth-child(3) {
  24662. background: #409efe;
  24663. color: #fff;
  24664. width: 65px;
  24665. height: 35px;
  24666. text-align: center;
  24667. line-height: 35px;
  24668. border-radius: 5px;
  24669. cursor: pointer;
  24670. }
  24671. .cardList,
  24672. .cardList1 {
  24673. padding: 10px 0 10px 0;
  24674. display: flex;
  24675. flex-direction: row;
  24676. flex-wrap: wrap;
  24677. align-items: center;
  24678. box-sizing: border-box;
  24679. border-bottom: 1px solid #f4f4f4;
  24680. width: 98%;
  24681. margin: 0 auto;
  24682. min-width: 60%;
  24683. max-width: 85%;
  24684. }
  24685. .cardList1 {
  24686. padding: 10px 0 10px 10px !important;
  24687. margin: 0 !important;
  24688. }
  24689. .cardBox {
  24690. display: flex;
  24691. flex-direction: row;
  24692. flex-wrap: wrap;
  24693. align-items: center;
  24694. align-content: center;
  24695. }
  24696. .cardBox > div {
  24697. margin-bottom: 10px;
  24698. }
  24699. .isCard,
  24700. .isChooseCard,
  24701. .noCard,
  24702. .isCard1 {
  24703. min-width: 130px;
  24704. width: auto;
  24705. height: 60px;
  24706. text-align: center;
  24707. line-height: 60px;
  24708. font-size: 20px;
  24709. cursor: pointer;
  24710. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  24711. background-size: cover;
  24712. transition: all 2s;
  24713. margin-right: 20px;
  24714. background-size: 100% 100%;
  24715. padding: 0 20px;
  24716. box-sizing: border-box;
  24717. }
  24718. .isCard > div,
  24719. .noCard > div,
  24720. .isCard1 > div {
  24721. white-space: nowrap;
  24722. overflow: hidden;
  24723. text-overflow: ellipsis;
  24724. width: 100%;
  24725. margin: 0 auto;
  24726. }
  24727. .noCard {
  24728. background-image: none;
  24729. }
  24730. .isCard1 {
  24731. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  24732. }
  24733. .isChooseCard {
  24734. background-image: none;
  24735. border: 1px dashed #b9b9b9;
  24736. border-radius: 10px;
  24737. }
  24738. .card {
  24739. width: 130px;
  24740. height: 60px;
  24741. }
  24742. .card > img {
  24743. width: 100%;
  24744. height: 100%;
  24745. }
  24746. .rightCardBox {
  24747. margin: 10px 0 0 10px;
  24748. }
  24749. .rightCardBox > div:nth-child(1) {
  24750. margin-bottom: 10px;
  24751. }
  24752. .cardCss {
  24753. display: flex;
  24754. flex-direction: column;
  24755. flex-wrap: nowrap;
  24756. align-items: center;
  24757. border-bottom: 3px solid #b4c3d3;
  24758. padding: 0 0 5px 0;
  24759. margin-right: 10px;
  24760. }
  24761. .cardCss > div:nth-child(2) {
  24762. background: #5b7b9d;
  24763. color: #fff;
  24764. width: 20px;
  24765. height: 20px;
  24766. border-radius: 50%;
  24767. text-align: center;
  24768. line-height: 20px;
  24769. }
  24770. .isWrong {
  24771. display: flex;
  24772. flex-direction: row;
  24773. flex-wrap: nowrap;
  24774. align-content: center;
  24775. align-items: center;
  24776. }
  24777. .answerRight {
  24778. width: 25%;
  24779. }
  24780. .isTj {
  24781. display: flex;
  24782. flex-direction: row;
  24783. flex-wrap: nowrap;
  24784. align-items: center;
  24785. }
  24786. .isTj > div:nth-child(2) {
  24787. color: #727070;
  24788. margin-left: 10px;
  24789. }
  24790. .isTjImg {
  24791. width: 30px;
  24792. height: 30px;
  24793. }
  24794. .isTjImg > img {
  24795. width: 100%;
  24796. height: 100%;
  24797. }
  24798. .cardAnswerBox {
  24799. font-size: 18px;
  24800. width: 97%;
  24801. border: 5px;
  24802. padding: 0;
  24803. border-radius: 5px;
  24804. margin: 10px auto;
  24805. word-break: break-word;
  24806. }
  24807. .w_name {
  24808. margin-bottom: 10px;
  24809. }
  24810. .w_name span {
  24811. font-size: 16px;
  24812. }
  24813. .w_teachert {
  24814. width: 50px !important;
  24815. position: absolute;
  24816. height: auto !important;
  24817. z-index: 10;
  24818. right: 25px;
  24819. top: -25px;
  24820. }
  24821. /* .group_workBox {
  24822. } */
  24823. .group_workBox + .group_workBox {
  24824. margin-top: 20px;
  24825. }
  24826. .group_box {
  24827. padding-bottom: 20px;
  24828. border-bottom: 2px solid #f0f0f0;
  24829. margin-top: 10px;
  24830. }
  24831. .group_title {
  24832. display: flex;
  24833. align-items: center;
  24834. justify-content: space-between;
  24835. width: 95%;
  24836. }
  24837. .group_name {
  24838. background-image: url(../../assets/icon/groupN.png);
  24839. width: 220px;
  24840. background-size: 100% 100%;
  24841. height: 67px;
  24842. padding: 0 20px 0 43px;
  24843. box-sizing: border-box;
  24844. line-height: 63px;
  24845. color: #fff;
  24846. overflow: hidden;
  24847. white-space: nowrap;
  24848. text-overflow: ellipsis;
  24849. }
  24850. .group_work {
  24851. width: 100%;
  24852. padding: 0 10px;
  24853. box-sizing: border-box;
  24854. display: flex;
  24855. flex-wrap: wrap;
  24856. }
  24857. .g_d_box {
  24858. display: flex;
  24859. flex-flow: wrap;
  24860. justify-content: space-around;
  24861. }
  24862. .g_d_box .isChair {
  24863. background-image: url(../../assets/avatar.png) !important;
  24864. }
  24865. .g_d_group {
  24866. width: 500px;
  24867. margin-bottom: 80px;
  24868. }
  24869. .g_d_group_chair {
  24870. display: flex;
  24871. align-items: center;
  24872. justify-content: center;
  24873. }
  24874. .g_d_group_chair > div + div {
  24875. margin-left: 30px;
  24876. }
  24877. .g_d_group_chair > div,
  24878. .g_d_group_chair2 > div {
  24879. display: flex;
  24880. flex-direction: column;
  24881. align-items: center;
  24882. }
  24883. .g_d_group_chair > div > span:nth-child(1),
  24884. .g_d_group_chair2 > div > span:nth-child(1) {
  24885. background-image: url(../../assets/icon/chair.png);
  24886. width: 50px;
  24887. height: 50px;
  24888. display: block;
  24889. background-size: 100% 100%;
  24890. }
  24891. .g_d_group_tableBox {
  24892. display: flex;
  24893. align-items: center;
  24894. justify-content: center;
  24895. }
  24896. .g_d_group_chair2 {
  24897. display: flex;
  24898. flex-direction: column;
  24899. align-items: center;
  24900. justify-content: center;
  24901. }
  24902. .g_d_group_chair2 > div + div {
  24903. margin-top: 10px;
  24904. }
  24905. .g_d_group_table {
  24906. background-image: url(../../assets/icon/groupBg.png);
  24907. width: 354px;
  24908. height: 196px;
  24909. background-size: 100% 100%;
  24910. display: flex;
  24911. align-items: center;
  24912. justify-content: center;
  24913. flex-direction: column;
  24914. color: #fff;
  24915. }
  24916. .g_d_group_table > div:nth-child(1) {
  24917. font-size: 24px;
  24918. margin-bottom: 5px;
  24919. }
  24920. .g_d_group_table > div:nth-child(2) div {
  24921. cursor: pointer;
  24922. background: #2e77bf;
  24923. padding: 4px 10px;
  24924. border-radius: 5px;
  24925. }
  24926. /* .groupBox {
  24927. } */
  24928. .groupContent + .groupContent {
  24929. margin-top: 30px;
  24930. }
  24931. .groupTitle {
  24932. font-size: 24px;
  24933. color: rgb(80, 80, 80);
  24934. margin-bottom: 20px;
  24935. }
  24936. .groupName {
  24937. display: flex;
  24938. align-items: center;
  24939. }
  24940. .groupn {
  24941. font-size: 15px;
  24942. margin-right: 10px;
  24943. }
  24944. .groupName + .groupName {
  24945. margin-top: 15px;
  24946. }
  24947. .groupBtn {
  24948. margin-left: 10px;
  24949. }
  24950. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  24951. text-align: left;
  24952. }
  24953. .g_d_btnBox {
  24954. display: flex;
  24955. justify-content: flex-end;
  24956. align-items: center;
  24957. margin-bottom: 20px;
  24958. }
  24959. .updateChair {
  24960. position: relative;
  24961. }
  24962. .updateChairBtn {
  24963. position: absolute;
  24964. width: 50px;
  24965. height: 50px;
  24966. overflow: hidden;
  24967. /* display: flex; */
  24968. align-items: center;
  24969. justify-content: center;
  24970. background: #00000087;
  24971. color: #fff;
  24972. border-radius: 50px;
  24973. display: none;
  24974. cursor: pointer;
  24975. }
  24976. .updateChair:hover .updateChairBtn {
  24977. display: flex;
  24978. }
  24979. .group_staic_box {
  24980. display: flex;
  24981. padding: 30px 40px 10px;
  24982. flex-wrap: wrap;
  24983. }
  24984. .group_staic {
  24985. /* width: 50%; */
  24986. margin-bottom: 20px;
  24987. display: flex;
  24988. align-items: center;
  24989. }
  24990. .group_staic span:nth-child(1) {
  24991. width: 150px;
  24992. text-align: right;
  24993. margin-right: 15px;
  24994. }
  24995. .group_staic span:nth-child(2) {
  24996. background: rgb(0 123 255);
  24997. color: #fff;
  24998. border-radius: 5px;
  24999. padding: 5px;
  25000. }
  25001. .codeFileBox {
  25002. height: 300px;
  25003. background: #fff;
  25004. display: flex;
  25005. align-items: center;
  25006. justify-content: center;
  25007. }
  25008. .codeFileBox img {
  25009. width: 200px;
  25010. margin: 0;
  25011. height: auto;
  25012. }
  25013. .codeFileBox div {
  25014. background: rgb(80, 142, 226);
  25015. color: #fff;
  25016. padding: 10px 20px;
  25017. border-radius: 25px;
  25018. cursor: pointer;
  25019. margin-left: 15px;
  25020. }
  25021. .radioBox {
  25022. display: flex;
  25023. flex-direction: column;
  25024. flex-wrap: nowrap;
  25025. align-items: flex-start;
  25026. }
  25027. .radioBox > div {
  25028. margin: 10px 0 0 10px;
  25029. }
  25030. /* .radioBox >>> .el-radio__input,
  25031. .radioBox >>> .el-checkbox__inner {
  25032. margin-left: 10px;
  25033. } */
  25034. .radioBox >>> .el-radio__label,
  25035. .radioBox >>> .el-checkbox__label {
  25036. display: flex;
  25037. align-items: center;
  25038. width: 100%;
  25039. }
  25040. .radioBox >>> .el-radio__label > span {
  25041. width: 100%;
  25042. display: -webkit-box;
  25043. overflow: hidden;
  25044. white-space: normal !important;
  25045. text-overflow: ellipsis;
  25046. word-wrap: break-word;
  25047. }
  25048. .inImg {
  25049. width: 100px;
  25050. cursor: pointer;
  25051. }
  25052. .inImg > img {
  25053. width: 100%;
  25054. height: 100%;
  25055. object-fit: cover;
  25056. }
  25057. .timuImgBox {
  25058. margin: 10px 0;
  25059. display: flex;
  25060. flex-direction: column;
  25061. flex-wrap: wrap;
  25062. align-items: flex-start;
  25063. }
  25064. .timuImg {
  25065. width: 150px;
  25066. margin: 5px 0;
  25067. cursor: pointer;
  25068. }
  25069. .timuImg > img {
  25070. width: 100%;
  25071. height: 100%;
  25072. object-fit: cover;
  25073. }
  25074. .worksTop {
  25075. display: flex;
  25076. flex-direction: row;
  25077. align-items: flex-end;
  25078. }
  25079. .worksTitle {
  25080. display: flex;
  25081. flex-direction: row;
  25082. flex-wrap: nowrap;
  25083. align-items: center;
  25084. }
  25085. .worksTitle::before,
  25086. .worksTop::before {
  25087. content: "";
  25088. display: block;
  25089. width: 3px;
  25090. height: 20px;
  25091. background: #0061ff;
  25092. border-radius: 3px;
  25093. margin: 0 5px 0 0;
  25094. }
  25095. .corOpen {
  25096. margin: 0 0 0 10px;
  25097. font-size: 14px;
  25098. cursor: pointer;
  25099. color: #505050;
  25100. }
  25101. .corOpen:hover {
  25102. color: #499eef;
  25103. }
  25104. .navCorOpenBox {
  25105. display: flex;
  25106. flex-direction: row;
  25107. align-items: center;
  25108. justify-content: space-between;
  25109. height: 55px;
  25110. background: #ffffff;
  25111. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  25112. border-radius: 8px 8px 0px 0px;
  25113. z-index: 9;
  25114. position: relative;
  25115. }
  25116. .navCorOpen {
  25117. padding-right: 15px;
  25118. cursor: pointer;
  25119. width: 45px;
  25120. display: flex;
  25121. }
  25122. .navCorOpen > img {
  25123. width: 100%;
  25124. height: 100%;
  25125. }
  25126. .mlImg {
  25127. width: 40px !important;
  25128. min-width: 40px;
  25129. cursor: pointer;
  25130. transform: rotate(180deg);
  25131. }
  25132. .mlImg > img {
  25133. width: 100%;
  25134. height: 100%;
  25135. }
  25136. .navLeftCss {
  25137. width: 100% !important;
  25138. left: 0 !important;
  25139. }
  25140. .isContentCss {
  25141. width: 100% !important;
  25142. }
  25143. .isAllWidth {
  25144. width: 100% !important;
  25145. }
  25146. .group_switch {
  25147. margin-right: 10px;
  25148. height: 30px;
  25149. display: flex;
  25150. align-items: center;
  25151. }
  25152. .group_switch > span {
  25153. margin-right: 5px;
  25154. }
  25155. .fileC_box {
  25156. padding-top: 15px;
  25157. }
  25158. .fileC_box > .fileC_title {
  25159. padding: 10px 5px 14px 10px;
  25160. border-top: 1px solid #cad1dc;
  25161. font-size: 14px;
  25162. font-weight: 400;
  25163. color: #cad1dc;
  25164. width: calc(100% - 20px);
  25165. margin: 0 auto;
  25166. box-sizing: border-box;
  25167. }
  25168. .pl_select_box {
  25169. height: 40px;
  25170. line-height: 40px;
  25171. width: 100%;
  25172. cursor: pointer;
  25173. padding: 0 20px;
  25174. box-sizing: border-box;
  25175. border-radius: 5px;
  25176. border: 1px solid #d6d6d6;
  25177. white-space: nowrap;
  25178. overflow: hidden;
  25179. text-overflow: ellipsis;
  25180. background: #fff;
  25181. text-align: left;
  25182. }
  25183. .newButton {
  25184. width: 102px;
  25185. height: 36px;
  25186. background: #e7ebf1;
  25187. border-radius: 4px;
  25188. color: #0e1e33;
  25189. font-weight: 400;
  25190. font-size: 14px;
  25191. border: none;
  25192. float: right;
  25193. margin-left: 10px;
  25194. }
  25195. .el-table >>> .even_row {
  25196. background-color: #f0f4fa;
  25197. }
  25198. .stageBoxCss,
  25199. .stageBoxIsCss {
  25200. display: flex;
  25201. flex-direction: row;
  25202. flex-wrap: nowrap;
  25203. align-items: center;
  25204. height: 50px;
  25205. border-bottom: 1px solid #e2f5fc;
  25206. cursor: pointer;
  25207. width: 100%;
  25208. }
  25209. .stageBoxIsCss {
  25210. background: #0061ff;
  25211. color: #fff;
  25212. border-radius: 8px;
  25213. }
  25214. .closeTri,
  25215. .closeTri1 {
  25216. min-width: 15px;
  25217. width: 15px;
  25218. height: 15px;
  25219. }
  25220. .closeTri1 {
  25221. padding-left: 10px;
  25222. cursor: pointer;
  25223. }
  25224. .closeTri > img,
  25225. .closeTri1 > img {
  25226. width: 100%;
  25227. height: 100%;
  25228. /* transition: all .5s; */
  25229. }
  25230. .noToolBlue {
  25231. min-width: 10px;
  25232. width: 10px;
  25233. height: 10px;
  25234. background: #0061ff;
  25235. border-radius: 50%;
  25236. margin-left: 13px;
  25237. }
  25238. .stageChild,
  25239. .toolChild {
  25240. height: 0;
  25241. overflow: hidden;
  25242. transition: all 0.5s;
  25243. }
  25244. /* .toolChild { */
  25245. /* margin: 0 0 0 17px;
  25246. padding: 0 0 0 20px;
  25247. border-left: 1px solid #d7d7d7; */
  25248. /* } */
  25249. .toolChild > div + div{
  25250. margin-top:5px;
  25251. }
  25252. .gjCss {
  25253. display: flex;
  25254. flex-direction: row;
  25255. flex-wrap: nowrap;
  25256. align-items: center;
  25257. padding: 10px 0 10px 40px;
  25258. box-sizing: border-box;
  25259. font-size: 14px;
  25260. cursor: pointer;
  25261. border-radius:5px;
  25262. }
  25263. .toolChild > div {
  25264. position: relative;
  25265. width: 100%;
  25266. }
  25267. /* .toolChild > div::before { */
  25268. /* content: "";
  25269. width: 15px;
  25270. height: 1px;
  25271. background: #cad1dc;
  25272. position: absolute;
  25273. top: 24px;
  25274. left: -20px;
  25275. display: block; */
  25276. /* } */
  25277. .isGjCss {
  25278. /* color: #0061ff; */
  25279. color:#fff;
  25280. background: rgb(55, 129, 252);
  25281. /* background-color: #e0eafb !important;
  25282. color: #0061ff !important; */
  25283. }
  25284. .navItem {
  25285. background: #ffffff;
  25286. border-radius: 4px;
  25287. width: 100%;
  25288. margin: 10px auto;
  25289. position: relative;
  25290. height: 40px;
  25291. display: flex;
  25292. flex-direction: row;
  25293. flex-wrap: nowrap;
  25294. align-items: center;
  25295. }
  25296. .navItemList {
  25297. display: flex;
  25298. flex-direction: row;
  25299. flex-wrap: nowrap;
  25300. align-items: center;
  25301. padding: 0 13px;
  25302. cursor: pointer;
  25303. width: calc(100% - 60px);
  25304. height: 100%;
  25305. }
  25306. .navItemList > div:first-child {
  25307. min-width: 60px;
  25308. }
  25309. .navItemList > div:last-child {
  25310. width: calc(100% - 80px);
  25311. white-space: nowrap;
  25312. overflow: hidden;
  25313. text-overflow: ellipsis;
  25314. word-break: break-word;
  25315. }
  25316. /* .isItemList > div {
  25317. color: #fff !important;
  25318. } */
  25319. .tool_work_box {
  25320. width: 100%;
  25321. padding: 0 37px 0;
  25322. box-sizing: border-box;
  25323. }
  25324. .tool_box {
  25325. width: 100%;
  25326. padding: 0 0 0 20px;
  25327. }
  25328. .tool_type_box {
  25329. display: flex;
  25330. flex-direction: row;
  25331. align-items: baseline;
  25332. flex-wrap: nowrap;
  25333. justify-content: flex-start;
  25334. position: relative;
  25335. }
  25336. .toolSort {
  25337. display: flex;
  25338. flex-direction: row;
  25339. flex-wrap: wrap;
  25340. justify-content: flex-start;
  25341. align-items: flex-start;
  25342. padding: 0 0 15px 0;
  25343. }
  25344. .toolSort > div {
  25345. margin: 0 10px 0 0;
  25346. width: 135px;
  25347. box-sizing: border-box;
  25348. border: 2px solid transparent;
  25349. }
  25350. .tools {
  25351. width: 100%;
  25352. display: flex;
  25353. flex-direction: column;
  25354. flex-wrap: nowrap;
  25355. align-items: flex-start;
  25356. }
  25357. .whiteBIcon {
  25358. width: fit-content;
  25359. cursor: pointer;
  25360. display: flex;
  25361. flex-direction: column;
  25362. flex-wrap: nowrap;
  25363. align-items: center;
  25364. font-size: 14px;
  25365. }
  25366. .tool:hover {
  25367. border: 2px solid #a5c7ff;
  25368. border-radius: 5px;
  25369. }
  25370. .whiteBIcon > img {
  25371. width: 65px;
  25372. height: 100%;
  25373. }
  25374. .whiteBIcon > img {
  25375. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  25376. border-radius: 15px;
  25377. }
  25378. .check {
  25379. /* width: 20px;
  25380. height: 20px; */
  25381. cursor: pointer;
  25382. margin: 10px 0;
  25383. position: absolute;
  25384. right: 2px;
  25385. top: -5px;
  25386. }
  25387. .noChoose,
  25388. .isChoose {
  25389. width: 15px;
  25390. height: 15px;
  25391. border-radius: 50%;
  25392. border: 1px solid #adadad;
  25393. }
  25394. .isChoose {
  25395. border: 4px solid #0363ff !important;
  25396. width: 10px;
  25397. height: 10px;
  25398. }
  25399. .isToolChoose {
  25400. border: 2px solid #5394ff !important;
  25401. border-radius: 5px;
  25402. box-shadow: 0 0 6px 0px #5394ff;
  25403. }
  25404. .checkDiv {
  25405. display: flex;
  25406. align-items: center;
  25407. }
  25408. .checkDiv span {
  25409. margin-left: 5px;
  25410. color: #858585;
  25411. }
  25412. .check img {
  25413. width: 20px;
  25414. height: 20px;
  25415. }
  25416. .lockTaskIcon {
  25417. width: 20px;
  25418. height: 20px;
  25419. position: absolute;
  25420. right: 10px;
  25421. top: 10px;
  25422. }
  25423. .lockTaskIcon > img {
  25424. width: 100%;
  25425. height: 100%;
  25426. }
  25427. .pick_box {
  25428. display: flex;
  25429. align-items: flex-start;
  25430. flex-wrap: wrap;
  25431. }
  25432. .selectBox {
  25433. width: 110px;
  25434. margin-left: 10px;
  25435. margin: 0 10px 0 auto;
  25436. }
  25437. .selectBox >>> .el-input__inner {
  25438. height: 30px;
  25439. line-height: 30px;
  25440. }
  25441. .selectBox >>> .el-input__icon {
  25442. line-height: 30px;
  25443. }
  25444. .sentenceTitle {
  25445. display: flex;
  25446. flex-direction: row;
  25447. flex-wrap: nowrap;
  25448. align-items: center;
  25449. }
  25450. .sentenceTitle::before {
  25451. content: attr(index);
  25452. background: #3681fc;
  25453. border-radius: 50%;
  25454. color: #fff;
  25455. width: 25px;
  25456. height: 25px;
  25457. min-width: 25px;
  25458. min-height: 25px;
  25459. text-align: center;
  25460. line-height: 25px;
  25461. margin-right: 5px;
  25462. }
  25463. .hfBox {
  25464. padding: 10px;
  25465. box-sizing: border-box;
  25466. }
  25467. .whoReplyWho {
  25468. display: flex;
  25469. flex-direction: row;
  25470. flex-wrap: nowrap;
  25471. align-items: baseline;
  25472. justify-content: flex-start;
  25473. }
  25474. .hfBottom {
  25475. display: flex;
  25476. flex-direction: row;
  25477. flex-wrap: nowrap;
  25478. align-items: center;
  25479. justify-content: space-between;
  25480. font-size: 14px;
  25481. }
  25482. .deleteHfItem {
  25483. cursor: pointer;
  25484. width: 20px;
  25485. height: 20px;
  25486. }
  25487. .deleteHfItem > img {
  25488. width: 100%;
  25489. height: 100%;
  25490. }
  25491. .whoReplyWho > .hfImg {
  25492. width: 12px;
  25493. height: 12px;
  25494. margin: 0 5px;
  25495. }
  25496. .whoReplyWho > .hfImg > img {
  25497. width: 100%;
  25498. height: 100%;
  25499. }
  25500. .hfContent {
  25501. padding-top: 10px;
  25502. box-sizing: border-box;
  25503. display: -webkit-box;
  25504. overflow: hidden;
  25505. white-space: normal !important;
  25506. text-overflow: ellipsis;
  25507. word-wrap: break-word;
  25508. -webkit-box-orient: vertical;
  25509. }
  25510. .hfTime {
  25511. text-align: left;
  25512. box-sizing: border-box;
  25513. padding: 10px 0 10px 0px;
  25514. color: #bfbfbf;
  25515. font-size: 14px;
  25516. }
  25517. .btnAllNT {
  25518. position: fixed;
  25519. bottom: 100px;
  25520. right: 40px;
  25521. z-index: 999;
  25522. display: flex;
  25523. flex-direction: row;
  25524. }
  25525. .btnAllNT > img {
  25526. cursor: pointer;
  25527. width: 80px;
  25528. }
  25529. .toolMask {
  25530. position: fixed;
  25531. width: 100%;
  25532. height: 100%;
  25533. background: #3f3c3c;
  25534. opacity: 0.5;
  25535. top: 0;
  25536. left: 0;
  25537. z-index: 999;
  25538. }
  25539. .addToolCss {
  25540. position: fixed;
  25541. z-index: 999;
  25542. background: #fff;
  25543. right: 5%;
  25544. bottom: 18%;
  25545. min-width: 1035px;
  25546. min-height: 300px;
  25547. border-radius: 10px;
  25548. box-shadow: 0 0 8px 1px #b2b2b2;
  25549. }
  25550. .toolTop {
  25551. display: flex;
  25552. flex-direction: row;
  25553. flex-wrap: nowrap;
  25554. justify-content: space-between;
  25555. align-items: center;
  25556. padding: 20px;
  25557. }
  25558. .toolTop > div:nth-child(2) {
  25559. width: 15px;
  25560. height: 15px;
  25561. padding-right: 10px;
  25562. cursor: pointer;
  25563. }
  25564. .toolTop > div:nth-child(2) > img {
  25565. width: 100%;
  25566. height: 100%;
  25567. }
  25568. .fullStyle>>>.el-dialog__body {
  25569. height: calc(100% - 125px) !important;
  25570. box-sizing: border-box;
  25571. padding: 30px 0 !important;
  25572. background: #fff !important;
  25573. }
  25574. .fullStyle>>>.el-dialog {
  25575. width: 100% !important;
  25576. max-width: 100% !important;
  25577. height: 100% !important;
  25578. margin: 0 !important;
  25579. }
  25580. .fullStyle {
  25581. width: 100% !important;
  25582. max-width: 100% !important;
  25583. height: 100% !important;
  25584. margin: 0 auto !important;
  25585. }
  25586. .fullStyle>>>.el-dialog__footer{
  25587. background: #fff !important;
  25588. }
  25589. .engUpBox {
  25590. width: 100%;
  25591. height: 100%;
  25592. }
  25593. .engTitle,
  25594. .engText {
  25595. display: flex;
  25596. flex-direction: row;
  25597. flex-wrap: nowrap;
  25598. align-items: flex-start;
  25599. padding: 0 20px 20px 20px;
  25600. box-sizing: border-box;
  25601. }
  25602. .engTitle > .div:first-child,
  25603. .engText > div:first-child {
  25604. min-width: 75px;
  25605. }
  25606. .correctBox{
  25607. width: 100%;
  25608. display: flex;
  25609. flex-direction: row;
  25610. flex-wrap: nowrap;
  25611. align-items: flex-start;
  25612. }
  25613. .oldBox{
  25614. width: 50%;
  25615. height: 100%;
  25616. display: flex;
  25617. flex-direction: column;
  25618. flex-wrap: nowrap;
  25619. align-items: center;
  25620. border-top: 1px solid #d9d9d9;
  25621. border-left: 1px solid #d9d9d9;
  25622. border-right: 1px solid #d9d9d9;
  25623. }
  25624. .oldBox>div:first-child{
  25625. width: 100%;
  25626. text-align: center;
  25627. background: #d9d9d9;
  25628. height: 35px;
  25629. line-height: 35px;
  25630. font-weight: bold;
  25631. }
  25632. .oldText{
  25633. width: 100%;
  25634. height: calc(100% - 35px);
  25635. overflow: auto;
  25636. margin: 10px 0;
  25637. display: flex;
  25638. flex-direction: column;
  25639. flex-wrap: nowrap;
  25640. align-content: center;
  25641. align-items: center;
  25642. }
  25643. .detailBox{
  25644. width: 50%;
  25645. padding: 10px;
  25646. background: #f6f6f6;
  25647. border-radius: 5px;
  25648. }
  25649. .oldDetail,.oldDetail1{
  25650. padding-bottom: 30px;
  25651. }
  25652. .oldImg{
  25653. width:30px;
  25654. height: 30px;
  25655. }
  25656. .oldImg>img{
  25657. width: 100%;
  25658. height: 100%;
  25659. }
  25660. .allName{
  25661. min-width: 200px;
  25662. white-space: nowrap;
  25663. overflow: hidden;
  25664. text-overflow: ellipsis;
  25665. word-break: break-word;
  25666. cursor: pointer;
  25667. text-align: center;
  25668. border: 1px solid #bcc2cc;
  25669. box-sizing: border-box;
  25670. }
  25671. .engUpTop{
  25672. max-height: 300px;
  25673. overflow: auto;
  25674. }
  25675. .isUpdateToolDetailClass{
  25676. padding: 0 !important;
  25677. }
  25678. .isUpdateToolDetailClass textarea{
  25679. padding:12px;
  25680. font-size: 16px;
  25681. min-height:100%;
  25682. width: 100%;
  25683. box-sizing:border-box;
  25684. outline: none;
  25685. border:none;
  25686. line-height: 30px;
  25687. resize: none;
  25688. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  25689. color: #838383;
  25690. }
  25691. .show_taskD {
  25692. min-width: fit-content;
  25693. margin-left: 10px;
  25694. display: flex;
  25695. align-items: center;
  25696. font-size: 14px;
  25697. cursor: pointer;
  25698. color: #717c8d;
  25699. }
  25700. .show_taskD > img {
  25701. width: 15px;
  25702. margin-right: 5px;
  25703. transition: 0.2s all;
  25704. transform: rotate(-90deg);
  25705. }
  25706. .show_taskD.show > img {
  25707. transform: rotate(0deg);
  25708. }
  25709. .dialog_diyCopy >>> .el-dialog__header {
  25710. display: none !important;
  25711. }
  25712. .dialog_diyCopy >>> .el-dialog__body {
  25713. padding: 0 !important;
  25714. height: 100% !important;
  25715. }
  25716. .confirmOpenDigCss > div{
  25717. font-size: 14px;
  25718. color: rgba(0, 0, 0, 0.6);
  25719. }
  25720. .confirmOpenDigCss >>> .el-dialog{
  25721. border-radius: 6px;
  25722. }
  25723. .confirmOpenDigCss >>> .el-dialog__body{
  25724. padding: 25px !important;
  25725. }
  25726. .confirmOpenDigCss > span{
  25727. font-size: 16px;
  25728. font-weight: 600;
  25729. color: rgba(0, 0, 0, 0.8);
  25730. }
  25731. .correctCss{
  25732. position: absolute;
  25733. bottom: -70px;
  25734. background: #409eff;
  25735. color: #fff;
  25736. }
  25737. div::-webkit-scrollbar {
  25738. width: 10px;
  25739. height: 6px;
  25740. }
  25741. .Ovh{
  25742. margin: 5px 0;
  25743. width: 4em;
  25744. -webkit-line-clamp: 2;
  25745. display: -webkit-box;
  25746. -webkit-box-orient: vertical;
  25747. overflow: hidden;
  25748. text-overflow: ellipsis;
  25749. }
  25750. .renderedFor >>> .katex {
  25751. font-size: 18px;
  25752. width: 100%;
  25753. white-space: normal;
  25754. font-family: '黑体' !important;
  25755. }
  25756. .renderedFor >>> .katex .base{
  25757. display: inline !important;
  25758. display: contents !important;
  25759. }
  25760. .renderedFor >>> .katex .base .cjk_fallback{
  25761. white-space: normal !important;
  25762. display: inline !important;
  25763. }
  25764. .notop >>> .vjs-fluid{
  25765. padding-top: 0 !important;
  25766. }
  25767. </style>