studyStudent.vue 892 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526
  1. <template>
  2. <div class="pb_content" style="height: 100%;overflow: unset;">
  3. <!-- 极简模式 -->
  4. <div
  5. class="pb_content_body"
  6. style="
  7. display: flex;
  8. height: 100%;
  9. position: relative;
  10. padding: 20px 0 20px 20px;
  11. box-sizing: border-box;
  12. overflow: auto;
  13. "
  14. >
  15. <!-- <div class="btnAllNT">
  16. <img
  17. v-if="
  18. courseDetail.userid == userid ||
  19. (courseDetail.course_teacher &&
  20. courseDetail.course_teacher.indexOf(userid) != -1)
  21. "
  22. src="../../assets/icon/learn/addTool.png"
  23. @click="openToolAll"
  24. style="position: relative"
  25. />
  26. <img
  27. src="../../assets/icon/learn/last.png"
  28. @click="nextOrpreSteps(0)"
  29. />
  30. <img
  31. src="../../assets/icon/learn/next.png"
  32. @click="nextOrpreSteps(1)"
  33. />
  34. <img
  35. src="../../assets/icon/learn/return.png"
  36. @click.stop="
  37. goTo(
  38. '/courseDetail?userid=' +
  39. userid +
  40. '&oid=' +
  41. oid +
  42. '&org=' +
  43. org +
  44. '&cid=' +
  45. classId +
  46. '&courseId=' +
  47. id +
  48. '&tType=' +
  49. tType +
  50. '&screenType=' +
  51. screenType
  52. )
  53. "
  54. />
  55. </div> -->
  56. <div
  57. class="pButton"
  58. style="left: 0; top: 140px"
  59. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  60. @click="setContent2(true)"
  61. >
  62. <!-- 批 , getCourseDetail()-->
  63. <img
  64. src="../../assets/icon/newIcons/isRight.png"
  65. style="width: 45px"
  66. alt=""
  67. />
  68. </div>
  69. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  70. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  71. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  72. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  73. <div
  74. style="
  75. max-width: calc(100% - 40px);
  76. width: auto;
  77. white-space: nowrap;
  78. overflow: hidden;
  79. text-overflow: ellipsis;
  80. word-break: break-word;
  81. display: block;
  82. "
  83. >
  84. <el-tooltip
  85. effect="light"
  86. :content="courseDetail.title"
  87. placement="top"
  88. >
  89. <div class="ctitle">
  90. {{ courseDetail.title }}
  91. </div>
  92. </el-tooltip>
  93. </div>
  94. <el-tooltip effect="light" content="收缩" placement="top">
  95. <div class="mlImg" @click="setContent2(false)">
  96. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  97. </div>
  98. </el-tooltip>
  99. </div>
  100. <div
  101. class="inviteBox"
  102. v-if="tcid && inviteCode"
  103. style="padding: 0 0 8px 0"
  104. >
  105. <div>
  106. <span>识别码:{{ Code2 ? Code2 + inviteCode : inviteCode }}</span>
  107. <!-- <span>识别码:{{ inviteCode }}</span> -->
  108. </div>
  109. </div>
  110. </div>
  111. <div class="cru_selectBox">
  112. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  113. <div class="stageChild" :class="{ navActive: item.isOpen }">
  114. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  115. <div
  116. class="navItem"
  117. :class="{
  118. openTaskActive:
  119. navIndex == taskCount &&
  120. nav.id == navId &&
  121. stageIndex == courseType,
  122. }"
  123. >
  124. <div v-if="nav.tool[0].tool != undefined">
  125. <div
  126. class="closeTri1"
  127. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  128. @click="openTask(stageIndex, navIndex, nav.id)"
  129. >
  130. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../../assets/icon/newIcons/bDown2.png" alt />
  131. </div>
  132. <div
  133. class="closeTri1"
  134. v-else
  135. @click="openTask(stageIndex, navIndex, nav.id)"
  136. >
  137. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../../assets/icon/newIcons/right.png" alt />
  138. </div>
  139. </div>
  140. <div v-else class="noToolBlue"></div>
  141. <div
  142. @click="openTask(stageIndex, navIndex, nav.id)"
  143. class="navItemList"
  144. :class="{
  145. isItemList:
  146. navIndex == taskCount &&
  147. nav.id == navId &&
  148. stageIndex == courseType,
  149. }"
  150. >
  151. <div>任务{{ navIndex + 1 }}:</div>
  152. <el-tooltip
  153. effect="light"
  154. :content="nav.taskName"
  155. placement="top"
  156. >
  157. <div
  158. :style="{
  159. width:
  160. IsLookOpen && !nav.isLook
  161. ? 'calc(100% - 75px)'
  162. : 'auto',
  163. }"
  164. >
  165. {{ nav.taskName }}
  166. </div>
  167. </el-tooltip>
  168. </div>
  169. <div class="lockTaskIcon">
  170. <img
  171. src="../../assets/lock.png"
  172. v-if="IsLookOpen && !nav.isLook && courseDetail.userid != userid &&
  173. courseDetail.course_teacher.indexOf(userid) ==-1"
  174. alt=""
  175. />
  176. </div>
  177. </div>
  178. <div
  179. v-if="nav.tool[0].tool != undefined"
  180. class="toolChild"
  181. :class="{ toolActive: nav.isOpen }"
  182. >
  183. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  184. <div
  185. class="gjCss"
  186. :class="{
  187. isGjCss: t.isTool,
  188. }"
  189. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  190. >
  191. <div>工具{{ toolIndex2 + 1 }}:</div>
  192. <div v-if="t.tool == 58">模拟驾驶</div>
  193. <div v-if="t.tool == 59">路径搜索</div>
  194. <div v-if="t.tool == 60">深度学习</div>
  195. <div v-if="t.tool == 10">倒计时</div>
  196. <div v-if="t.tool == 65">挑人</div>
  197. <div v-if="t.tool == 7">思维网格</div>
  198. <div v-if="t.tool == 1">电子白板</div>
  199. <div v-if="t.tool == 52">文档</div>
  200. <div v-if="t.tool == 3">思维导图</div>
  201. <div v-if="t.tool == 48">表格</div>
  202. <div v-if="t.tool == 49">学生分组</div>
  203. <div v-if="t.tool == 4">问卷调查</div>
  204. <div v-if="t.tool == 45">选择题</div>
  205. <div v-if="t.tool == 15">问答</div>
  206. <div v-if="t.tool == 16">作业提交</div>
  207. <div v-if="t.tool == 50">批量上传</div>
  208. <div v-if="t.tool == 41">选择匹配</div>
  209. <div v-if="t.tool == 47">排序</div>
  210. <div v-if="t.tool == 40">个人评价</div>
  211. <div v-if="t.tool == 18">训练平台</div>
  212. <div v-if="t.tool == 21">AIoT Blockly</div>
  213. <div v-if="t.tool == 23">AI Python</div>
  214. <div v-if="t.tool == 24">AI Blockly</div>
  215. <div v-if="t.tool == 32">源码编辑</div>
  216. <div v-if="t.tool == 57">CocoPi</div>
  217. <div v-if="t.tool == 63">海龟编程</div>
  218. <div v-if="t.tool == 28">翻译</div>
  219. <div v-if="t.tool == 31">数字画板</div>
  220. <div v-if="t.tool == 39">GeoGebra</div>
  221. <div v-if="t.tool == 66">公式编辑</div>
  222. <div v-if="t.tool == 67">分子结构</div>
  223. <div v-if="t.tool == 68">时间轴</div>
  224. <div v-if="t.tool == 69">英语写作</div>
  225. <div v-if="t.tool == 70">英语口语</div>
  226. <div v-if="t.tool == 25">目标管理</div>
  227. <div v-if="t.tool == 26">课程设计</div>
  228. <div v-if="t.tool == 62">交互视频</div>
  229. <div v-if="t.tool == 71">AI智能体</div>
  230. <div v-if="t.tool == 72">应用中心</div>
  231. <div v-if="t.tool == 73">PPT</div>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. </div>
  239. </div>
  240. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  241. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }"></div>
  242. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 47px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 18px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  243. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid))? '100%' : 'calc(100% - 745px)'}">
  244. <div>任务{{ taskCount + 1 }}</div>
  245. <el-tooltip
  246. effect="light"
  247. :content="
  248. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  249. "
  250. placement="top"
  251. >
  252. <div>
  253. {{
  254. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  255. .task
  256. }}
  257. </div>
  258. </el-tooltip>
  259. </div>
  260. <!-- v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'" -->
  261. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid)">
  262. <div class="btnLeft">
  263. <el-tooltip effect="light" content="刷新" placement="top">
  264. <div class="reBtnIcon" @click="refreshCourse">
  265. <span>刷新</span>
  266. </div>
  267. </el-tooltip>
  268. <el-tooltip effect="light" content="评论" placement="top">
  269. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  270. <span>评论</span>
  271. </div>
  272. </el-tooltip>
  273. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  274. <el-tooltip effect="light" content="录制" placement="top">
  275. <div class="vedioIcon" @click="startRecording">
  276. <span>录制</span>
  277. </div>
  278. </el-tooltip>
  279. </div>
  280. <div v-else-if="tType == 1 || tType == 4">
  281. <el-tooltip effect="light" content="下载" placement="top">
  282. <div class="vedioIcon1" @click="stopRecording">
  283. <span>下载</span>
  284. </div>
  285. </el-tooltip>
  286. </div>
  287. </div>
  288. <div class="btnRight">
  289. <div
  290. class="last"
  291. @click="nextOrpreSteps(0)"
  292. v-if="!(IsFollow && tType == 2)"
  293. @mouseover="isHovered = true"
  294. @mouseout="isHovered = false"
  295. >
  296. <div class="lastImg">
  297. <img
  298. :src="
  299. isHovered
  300. ? require('../../assets/icon/newIcons/whiteLast.png')
  301. : require('../../assets/icon/newIcons/last.png')
  302. "
  303. alt=""
  304. />
  305. </div>
  306. <div class="lastText">上一步</div>
  307. </div>
  308. <div
  309. class="last"
  310. @click="nextOrpreSteps(1)"
  311. v-if="!(IsFollow && tType == 2)"
  312. @mouseover="isHovered1 = true"
  313. @mouseout="isHovered1 = false"
  314. >
  315. <div class="lastText">下一步</div>
  316. <div class="lastImg">
  317. <img
  318. :src="
  319. isHovered1
  320. ? require('../../assets/icon/newIcons/whiteNext.png')
  321. : require('../../assets/icon/newIcons/next.png')
  322. "
  323. alt=""
  324. />
  325. </div>
  326. </div>
  327. <div
  328. class="last"
  329. @click="juriVisible = true"
  330. v-if="tType == 1"
  331. @mouseover="isHovered2 = true"
  332. @mouseout="isHovered2 = false"
  333. >
  334. <div class="lastImg">
  335. <img
  336. :src="
  337. isHovered2
  338. ? require('../../assets/icon/newIcons/whiteLock.png')
  339. : require('../../assets/icon/newIcons/lock.png')
  340. "
  341. alt=""
  342. />
  343. </div>
  344. <div class="lastText">权限</div>
  345. </div>
  346. <div
  347. class="returnBtn1 returnIcon"
  348. @click.stop="
  349. goTo(
  350. '/courseDetail?userid=' +
  351. userid +
  352. '&oid=' +
  353. oid +
  354. '&org=' +
  355. org +
  356. '&cid=' +
  357. classId +
  358. '&courseId=' +
  359. id +
  360. '&tType=' +
  361. tType +
  362. '&screenType=' +
  363. screenType
  364. )
  365. "
  366. >
  367. <div class="lastImg">
  368. <img src="../../assets/icon/newIcon/return.png" alt="" />
  369. </div>
  370. <div class="lastText" style="color: #000">返回</div>
  371. </div>
  372. </div>
  373. <!-- <div
  374. class="returnBtn lockIcon"
  375. @click="juriVisible = true"
  376. v-if="tType == 1"
  377. >
  378. 权限
  379. </div>
  380. <div
  381. class="returnBtn vedioIcon"
  382. @click="startRecording"
  383. v-if="!videoStart && (tType == 1 || tType == 4)"
  384. >
  385. 录制
  386. </div>
  387. <div
  388. class="returnBtn"
  389. @click="stopRecording"
  390. v-else-if="tType == 1 || tType == 4"
  391. style="background: #ee5255"
  392. >
  393. 下载
  394. </div>
  395. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  396. 评论
  397. </div>
  398. <div
  399. class="returnBtn"
  400. @click="nextOrpreSteps(0)"
  401. v-if="!(IsFollow && tType == 2)"
  402. >
  403. 上一步
  404. </div>
  405. <div
  406. class="returnBtn"
  407. @click="nextOrpreSteps(1)"
  408. v-if="!(IsFollow && tType == 2)"
  409. >
  410. 下一步
  411. </div>
  412. <div class="returnBtn" @click="refreshCourse">刷新</div>
  413. <div
  414. class="returnBtn returnIcon"
  415. @click.stop="
  416. goTo(
  417. '/courseDetail?userid=' +
  418. userid +
  419. '&oid=' +
  420. oid +
  421. '&org=' +
  422. org +
  423. '&cid=' +
  424. classId +
  425. '&courseId=' +
  426. id +
  427. '&tType=' +
  428. tType +
  429. '&screenType=' +
  430. screenType
  431. )
  432. "
  433. >
  434. 返回
  435. </div> -->
  436. </div>
  437. </div>
  438. <!-- !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  439. .taskDetail3 && -->
  440. <div
  441. class="isNoMessage"
  442. v-if="
  443. chapInfoList[courseType].chapterInfo[0].taskJson[0]
  444. .chapterData.length == 0 &&
  445. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  446. .toolChoose[0].tool.length == 0 &&
  447. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  448. .taskDetail == '' &&
  449. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  450. .eList &&
  451. !(
  452. courseDetail.userid == userid ||
  453. (courseDetail.course_teacher &&
  454. courseDetail.course_teacher.indexOf(userid) != -1)
  455. )
  456. "
  457. >
  458. <img src="../../assets/icon/isNoMessage.png" alt />
  459. </div>
  460. <div class="study_top" :class="{ pzClass: pzDialog }">
  461. <!-- chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  462. .taskDetail3 || -->
  463. <div
  464. class="vedioBox"
  465. v-if="
  466. (chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  467. .taskDetail != '' ||
  468. vChapterData[0].length > 0 ||
  469. fileC[0].length > 0) && (tType == 1 || (tType == 2 && IsStulook))
  470. "
  471. style="border-radius: 0 0 20px 20px"
  472. >
  473. <!-- <div
  474. class="taskBox"
  475. v-if="
  476. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  477. .taskDetail3
  478. "
  479. >
  480. <div
  481. style="
  482. display: flex;
  483. flex-wrap: nowrap;
  484. flex-direction: column;
  485. position: relative;
  486. "
  487. >
  488. <div
  489. style="
  490. padding: 15px 0;
  491. line-height: 29px;
  492. font-size: 18px;
  493. color: #0e1e33;
  494. "
  495. class="cont"
  496. v-if="
  497. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  498. .taskDetail3 != ''
  499. "
  500. v-html="
  501. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  502. .taskDetail3
  503. ? MarkdownT(chapInfoList[courseType].chapterInfo[0].taskJson[
  504. taskCount
  505. ].taskDetail3)
  506. : '暂无描述'
  507. "
  508. ></div>
  509. </div>
  510. </div> -->
  511. <div
  512. class="taskBox"
  513. v-if="
  514. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  515. .taskDetail != ''
  516. "
  517. >
  518. <div
  519. style="
  520. display: flex;
  521. flex-wrap: nowrap;
  522. flex-direction: column;
  523. position: relative;
  524. "
  525. class="renderedFor"
  526. >
  527. <div
  528. style="
  529. padding: 15px 0;
  530. line-height: 29px;
  531. font-size: 18px;
  532. color: #0e1e33;
  533. "
  534. class="cont"
  535. v-if="
  536. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  537. .taskDetail != ''
  538. "
  539. v-html="
  540. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  541. .taskDetail
  542. ? renderedFormula2(chapInfoList[courseType].chapterInfo[0].taskJson[
  543. taskCount
  544. ].taskDetail)
  545. : '暂无描述'
  546. "
  547. ></div>
  548. </div>
  549. </div>
  550. <div
  551. class="student_head"
  552. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  553. >
  554. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  555. <div
  556. :class="
  557. contentDialog == false
  558. ? 'box_course isContentCss'
  559. : 'box_course'
  560. "
  561. v-if="
  562. vChapterData.length > 0 &&
  563. vChapterData[0] &&
  564. showType !== ''
  565. "
  566. >
  567. <div class="wheel" style="height: auto" v-if="showType === 0">
  568. <div
  569. class="workd_media"
  570. style="height: 650px; width: calc(100% - 50px)"
  571. >
  572. <video-player
  573. class="video-player vjs-custom-skin notop"
  574. :class="contentDialog == false ? 'isAllWidth' : ''"
  575. :playsinline="true"
  576. :options="playerO[0]"
  577. @play="onPlayerPlay($event)"
  578. style="width: 100%; height: 650px; margin: 0 0 0 30px"
  579. ></video-player>
  580. </div>
  581. </div>
  582. <div
  583. class="wheel"
  584. v-if="showType == 1"
  585. style="
  586. box-shadow: 0 0 6px 1px #f2f2f2;
  587. width: 95%;
  588. margin: 0 auto;
  589. background: #f1f1f1;
  590. "
  591. >
  592. <div class="title">查看文档</div>
  593. <el-form class="textBox">
  594. <el-form-item class="textTitle">
  595. <div style="font-size: 22px">
  596. {{ text.name }}
  597. </div>
  598. </el-form-item>
  599. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  600. <div v-html="text.url" class="textContent cont"></div>
  601. </el-form>
  602. </div>
  603. <div
  604. class="wheel"
  605. v-if="
  606. pptImgUrl1.indexOf(
  607. 'https://view.officeapps.live.com/op/view.aspx?src='
  608. ) != -1 && showType == 2
  609. "
  610. style="width: 95%; margin: 0 auto"
  611. >
  612. <iframe
  613. style="width: 100%; height: 100%; border: none"
  614. :src="pptImgUrl1"
  615. ></iframe>
  616. </div>
  617. <div
  618. class="wheel"
  619. v-else-if="showType == 2"
  620. style="width: 95%; margin: 0 auto"
  621. >
  622. <iframe
  623. style="width: 100%; height: 100%; border: none"
  624. :key="diffKey"
  625. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  626. v-if="pptImgUrl1.indexOf('cocorobo')!=-1"
  627. :src="pptImgUrl1"
  628. ></iframe>
  629. <iframe
  630. style="width: 100%; height: 100%; border: none"
  631. security="restricted"
  632. v-else
  633. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  634. :src="pptImgUrl1"
  635. ></iframe>
  636. </div>
  637. <div
  638. class="wheel"
  639. v-if="showType === 16"
  640. style="width: 95%; margin: 0 auto"
  641. >
  642. <iframe
  643. style="width: 100%; height: 100%; border: none"
  644. :src="pptImgUrl1"
  645. ></iframe>
  646. </div>
  647. <div
  648. class="wheel"
  649. v-if="showType == 3"
  650. style="width: 95%; margin: 0 auto"
  651. >
  652. <pdf
  653. :pdfUrl="pptImgUrl1"
  654. style="width: 100%; height: 100%; overflow: auto"
  655. ></pdf>
  656. </div>
  657. <div
  658. class="wheel"
  659. v-if="showType == 4"
  660. style="width: 95%; margin: 0 auto"
  661. >
  662. <el-image
  663. :src="pptImgUrl1"
  664. fit="contain"
  665. style="width: 100%; height: 100%; cursor: pointer"
  666. @click="previewImg(pptImgUrl1)"
  667. ></el-image>
  668. </div>
  669. </div>
  670. <div
  671. class="pButton"
  672. style="position: absolute; right: 20px; top: 0; z-index: 998"
  673. v-if="!contentDialog"
  674. @click="setContent(true)"
  675. >
  676. <!-- 批 -->
  677. <img
  678. src="../../assets/icon/newIcons/isLeft.png"
  679. style="width: 45px"
  680. alt=""
  681. />
  682. </div>
  683. <div
  684. v-if="contentDialog == true"
  685. :style="{
  686. width:
  687. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  688. showType === ''
  689. ? 'calc(100%)'
  690. : '300px',
  691. margin:
  692. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  693. showType === ''
  694. ? '0 15px'
  695. : '0 15px 0 0',
  696. }"
  697. >
  698. <div
  699. class="vedioList"
  700. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  701. style="height: 650px"
  702. >
  703. <div class="navCorOpenBox">
  704. <div class="navTitile">内容列表:</div>
  705. <div class="navCorOpen" @click="setContent(false)">
  706. <img
  707. src="../../assets/icon/newIcons/isRight.png"
  708. alt=""
  709. />
  710. </div>
  711. </div>
  712. <div class="navBox">
  713. <div
  714. v-show="
  715. vChapterData[0].length > 0 || fileC[0].length > 0
  716. "
  717. style="padding: 10px 0 25px 0"
  718. >
  719. <div
  720. class="vedioTimeBox"
  721. v-for="(vitem, vindex) in vChapterData[0]"
  722. :key="vindex + '1'"
  723. >
  724. <div class="navListItem" v-if="vitem.type == 2">
  725. <div
  726. @click="lookVedio(vitem.url, vindex)"
  727. class="navText"
  728. :class="isClickNav == vindex ? 'isClickNav' : ''"
  729. >
  730. <span v-if="vitem.text">{{ vitem.text }}-</span
  731. >{{ vitem.name }}
  732. </div>
  733. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  734. <img
  735. src="../../assets/icon/newIcon/down.png"
  736. alt
  737. />
  738. </div> -->
  739. </div>
  740. <div class="navListItem" v-if="vitem.type == 6">
  741. <div
  742. @click="lookText(0, vindex)"
  743. class="navText"
  744. :class="isClickNav == vindex ? 'isClickNav' : ''"
  745. >
  746. {{ vitem.name }}.doc
  747. </div>
  748. <div
  749. class="downIcon"
  750. @click="checkFileFull1(vitem.type, vitem)"
  751. >
  752. <img
  753. src="../../assets/icon/newIcon/allScreen.png"
  754. alt
  755. />
  756. </div>
  757. </div>
  758. <div
  759. class="navListItem"
  760. v-if="vitem.type == 8 || vitem.type == 14 || vitem.type == 15"
  761. >
  762. <div
  763. @click="doUrl(vitem.url, vindex)"
  764. class="navText"
  765. :class="isClickNav == vindex ? 'isClickNav' : ''"
  766. >
  767. {{ vitem.title ? vitem.title : vitem.url }}
  768. </div>
  769. <div
  770. class="downIcon"
  771. @click="checkFileFull1(vitem.type, vitem)"
  772. >
  773. <img
  774. src="../../assets/icon/newIcon/allScreen.png"
  775. alt
  776. />
  777. </div>
  778. </div>
  779. <div class="navListItem" v-if="vitem.type == 3">
  780. <div
  781. @click="downFile(vitem, vindex)"
  782. class="navText"
  783. :class="isClickNav == vindex ? 'isClickNav' : ''"
  784. >
  785. <span v-if="vitem.text">{{ vitem.text }}-</span
  786. >{{ vitem.name }}
  787. </div>
  788. <div
  789. class="downIcon"
  790. @click="checkFileFull1(vitem.type, vitem)"
  791. >
  792. <img
  793. src="../../assets/icon/newIcon/allScreen.png"
  794. alt
  795. />
  796. </div>
  797. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  798. <img
  799. src="../../assets/icon/newIcon/down.png"
  800. alt
  801. />
  802. </div> -->
  803. </div>
  804. <div class="navListItem" v-if="vitem.type == 12">
  805. <div class="navText" @click="downloadFile2(vitem)">
  806. <span v-if="vitem.text">{{ vitem.text }}-</span
  807. >{{ vitem.name }}
  808. </div>
  809. <div
  810. class="downIcon"
  811. @click="checkFileFull1(vitem.type, vitem)"
  812. >
  813. <img
  814. src="../../assets/icon/newIcon/allScreen.png"
  815. alt
  816. />
  817. </div>
  818. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  819. <img
  820. src="../../assets/icon/newIcon/down.png"
  821. alt
  822. />
  823. </div> -->
  824. </div>
  825. <div class="navListItem" v-if="vitem.type == 13">
  826. <div
  827. class="navText"
  828. @click="checkPhoto(vitem, vindex)"
  829. :class="isClickNav == vindex ? 'isClickNav' : ''"
  830. >
  831. {{ vitem.name }}
  832. </div>
  833. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  834. <img
  835. src="../../assets/icon/newIcon/down.png"
  836. alt
  837. />
  838. </div> -->
  839. </div>
  840. <div class="navListItem" v-if="vitem.type == 16">
  841. <div
  842. class="navText"
  843. @click="checkHtml(vitem, vindex)"
  844. :class="isClickNav == vindex ? 'isClickNav' : ''"
  845. >
  846. {{ vitem.name }}
  847. </div>
  848. <div
  849. class="downIcon"
  850. @click="checkFileFull1(vitem.type, vitem)"
  851. >
  852. <img
  853. src="../../assets/icon/newIcon/allScreen.png"
  854. alt
  855. />
  856. </div>
  857. </div>
  858. <div class="navListItem" v-if="vitem.type == 17">
  859. <div
  860. class="navText"
  861. @click="checkHtml(vitem, vindex)"
  862. :class="isClickNav == vindex ? 'isClickNav' : ''"
  863. >
  864. {{ vitem.name }}
  865. </div>
  866. <div
  867. class="downIcon"
  868. @click="checkFileFull1(vitem.type, vitem)"
  869. >
  870. <img
  871. src="../../assets/icon/newIcon/allScreen.png"
  872. alt
  873. />
  874. </div>
  875. </div>
  876. </div>
  877. <div class="fileC_box" v-if="fileC[0].length > 0">
  878. <div class="fileC_title">以下文件不支持预览</div>
  879. <div
  880. class="vedioTimeBox"
  881. v-for="(vitem, vindex) in fileC[0]"
  882. :key="vindex + '1'"
  883. >
  884. <div class="navListItem" v-if="vitem.type == 12">
  885. <div class="navText" style="color: #acb4bf">
  886. <span v-if="vitem.text">{{ vitem.text }}-</span
  887. >{{ vitem.name }}
  888. </div>
  889. <!-- <div
  890. class="downIcon"
  891. @click="downloadFile2(vitem)"
  892. >
  893. <img
  894. src="../../assets/icon/newIcon/down.png"
  895. alt
  896. />
  897. </div> -->
  898. </div>
  899. </div>
  900. </div>
  901. </div>
  902. </div>
  903. </div>
  904. </div>
  905. </div>
  906. <div style="width: calc(100% - 315px)">
  907. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  908. <!-- <el-button
  909. type="primary"
  910. class="newButton"
  911. @click="checkFileFull(showType, pptImgUrl1)"
  912. >全屏查看</el-button
  913. >
  914. <el-button
  915. type="primary"
  916. class="newButton"
  917. @click="downloadFile(pptImgUrl1)"
  918. v-if="showType != 2"
  919. >文件下载</el-button
  920. > -->
  921. <el-button
  922. v-if="
  923. showType == 2 &&
  924. pptImgUrl1.indexOf(
  925. 'https://view.officeapps.live.com/op/view.aspx?src='
  926. ) == -1
  927. "
  928. type="primary"
  929. class="newButton"
  930. @click="openLine(pptImgUrl1)"
  931. >打开链接
  932. </el-button>
  933. </div>
  934. <!-- <div
  935. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  936. v-if="showType == 1"
  937. >
  938. <el-button
  939. type="primary"
  940. class="newButton"
  941. @click="checkFileFull(showType, text)"
  942. >全屏查看</el-button
  943. >
  944. </div> -->
  945. </div>
  946. </div>
  947. </div>
  948. <div class="student_body" v-resize="resize">
  949. <div
  950. class="vedioBox"
  951. :style="{
  952. borderRadius:
  953. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  954. .taskDetail == '' &&
  955. vChapterData[taskCount].length == 0 &&
  956. fileC[taskCount].length == 0
  957. ? '0 0 20px 20px'
  958. : '20px',
  959. }"
  960. v-if="
  961. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  962. .toolChoose[0].tool &&
  963. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  964. .toolChoose[0].tool.length > 0
  965. "
  966. >
  967. <div
  968. class="toolHeng2"
  969. style="position: relative"
  970. v-if="
  971. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  972. .toolChoose[0].tool &&
  973. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  974. .toolChoose[0].tool.length &&
  975. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  976. .toolChoose[0].tool.length > 0
  977. "
  978. >
  979. <div class="workNav">工作区</div>
  980. <div
  981. class="filebox"
  982. style="flex-wrap: nowrap"
  983. v-for="(tool, toolIndex) in chapInfoList[courseType]
  984. .chapterInfo[0].taskJson[taskCount].toolChoose"
  985. :key="toolIndex"
  986. >
  987. <div class="bzBox">
  988. <div class="yCss"></div>
  989. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  990. 工具{{ toolIndex + 1 }}
  991. </div>
  992. <div
  993. v-if="timeWorkList[toolIndex].length > 0"
  994. style="margin: 0 0 0 10px"
  995. >
  996. {{
  997. timeWorkList[toolIndex][0].time
  998. ? "时间:" + timeWorkList[toolIndex][0].time
  999. : ""
  1000. }}
  1001. </div>
  1002. </div>
  1003. <div class="toolBox">
  1004. <div>
  1005. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  1006. :key="indexTool"-->
  1007. <!-- <div class="iframeBox">
  1008. <div
  1009. class="addPoint isBorder"
  1010. v-for="(tooC, toolCIndex) in tool.tool"
  1011. :key="toolCIndex"
  1012. >
  1013. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  1014. <div
  1015. class="iframeName"
  1016. >
  1017. 电子白板
  1018. </div>
  1019. <iframe
  1020. src="https://iwb.cocorobo.cn/"
  1021. ref="whiteBoard"
  1022. ></iframe>
  1023. </div>
  1024. </div>
  1025. </div>-->
  1026. <div class="noiframeBox">
  1027. <div
  1028. class="addPoint"
  1029. v-for="(tooC, toolCIndex) in tool.tool"
  1030. :key="toolCIndex"
  1031. >
  1032. <div v-if="tooC == 1">
  1033. <img
  1034. src="../../assets/icon/secondToolList/whiteBoard.png"
  1035. alt
  1036. @click="addTools(tooC, toolIndex, taskCount)"
  1037. />
  1038. <div style="margin: 5px 0">电子白板</div>
  1039. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  1040. style="position: absolute;right: 33px;top: -30px;">
  1041. 分析
  1042. </div>
  1043. </div>
  1044. <div v-if="tooC == 3">
  1045. <img
  1046. src="../../assets/icon/secondToolList/mindMapping.png"
  1047. alt
  1048. @click="addTools(tooC, toolIndex, taskCount)"
  1049. />
  1050. <div style="margin: 5px 0">思维导图</div>
  1051. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  1052. style="position: absolute;right: 33px;top: -30px;">
  1053. 分析
  1054. </div>
  1055. </div>
  1056. <div v-if="tooC == 6">
  1057. <img
  1058. src="../../assets/icon/secondToolList/doc.png"
  1059. alt
  1060. @click="addTools(tooC, toolIndex, taskCount)"
  1061. />
  1062. <div style="margin: 5px 0">协同文档</div>
  1063. </div>
  1064. <div v-if="tooC == 7">
  1065. <img
  1066. src="../../assets/icon/secondToolList/mindNetwork.png"
  1067. alt
  1068. @click="addTools(tooC, toolIndex, taskCount)"
  1069. />
  1070. <div style="margin: 5px 0">思维网格</div>
  1071. <!-- && worksStudent[toolIndex].length>0 -->
  1072. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1073. style="position: absolute;right: 33px;top: -30px;">
  1074. 分析
  1075. </div>
  1076. </div>
  1077. <div v-if="tooC == 8">
  1078. <img
  1079. src="../../assets/icon/secondToolList/library.png"
  1080. alt
  1081. @click="addTools(tooC, toolIndex, taskCount)"
  1082. />
  1083. <div style="margin: 5px 0">素材库</div>
  1084. </div>
  1085. <div v-if="tooC == 17">
  1086. <img
  1087. src="../../assets/icon/secondToolList/library.png"
  1088. alt
  1089. @click="addTools(tooC, toolIndex, taskCount)"
  1090. />
  1091. <div style="margin: 5px 0">学习资料</div>
  1092. </div>
  1093. <div v-if="tooC == 2">
  1094. <img
  1095. @click="addTools(tooC, toolIndex, taskCount)"
  1096. src="../../assets/icon/secondToolList/note.png"
  1097. alt
  1098. />
  1099. <div style="margin: 5px 0">便签</div>
  1100. </div>
  1101. <div v-if="tooC == 4">
  1102. <img
  1103. @click="addTools(tooC, toolIndex, taskCount)"
  1104. src="../../assets/icon/thirdToolList/ask.png"
  1105. alt
  1106. />
  1107. <div style="margin: 5px 0">问卷调查</div>
  1108. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1109. style="position: absolute;right: 153px;top: -30px;">
  1110. 分析
  1111. </div>
  1112. <div class="upload_toolBtn" v-if="tType==='1'" @click="openStatisticalAnalysis(tooC,toolIndex,taskCount)"
  1113. style="position: absolute;right: 33px;top: -30px;">
  1114. 统计分析
  1115. </div>
  1116. </div>
  1117. <div v-if="tooC == 45">
  1118. <img
  1119. @click="addTools(tooC, toolIndex, taskCount)"
  1120. src="../../assets/icon/thirdToolList/choose.png"
  1121. alt
  1122. />
  1123. <div style="margin: 5px 0">选择题</div>
  1124. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,45)"
  1125. style="position: absolute;right: 33px;top: -30px;">
  1126. 分析
  1127. </div>
  1128. </div>
  1129. <!-- <div v-if="tooC == 5">
  1130. <img
  1131. @click="addTools(tooC, toolIndex, taskCount)"
  1132. src="../../assets/icon/thirdToolList/score.png"
  1133. alt
  1134. />
  1135. <div style="margin: 5px 0">量规评分</div>
  1136. </div> -->
  1137. <div v-if="tooC == 10">
  1138. <img
  1139. @click="addTools(tooC, toolIndex, taskCount)"
  1140. src="../../assets/icon/thirdToolList/time.png"
  1141. alt
  1142. />
  1143. <div style="margin: 5px 0">倒计时</div>
  1144. </div>
  1145. <div v-if="tooC == 15">
  1146. <img
  1147. @click="addTools(tooC, toolIndex, taskCount)"
  1148. src="../../assets/icon/thirdToolList/answer.png"
  1149. alt
  1150. />
  1151. <div style="margin: 5px 0">问答</div>
  1152. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1153. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1154. 分析
  1155. </div>
  1156. </div>
  1157. <div v-if="tooC == 26">
  1158. <img
  1159. @click="addTools(tooC, toolIndex, taskCount)"
  1160. src="../../assets/icon/thirdToolList/courseDesign.png"
  1161. alt
  1162. />
  1163. <div style="margin: 5px 0">课程设计</div>
  1164. </div>
  1165. <div v-if="tooC == 18">
  1166. <img
  1167. @click="addTools(tooC, toolIndex, taskCount)"
  1168. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1169. alt
  1170. />
  1171. <div style="margin: 5px 0">训练服务器</div>
  1172. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,18)"
  1173. style="position: absolute;right: 33px;top: -30px;">
  1174. 分析
  1175. </div>
  1176. </div>
  1177. <div v-if="tooC == 16">
  1178. <img
  1179. @click="addTools(tooC, toolIndex, taskCount)"
  1180. src="../../assets/icon/thirdToolList/work.png"
  1181. alt
  1182. />
  1183. <div style="margin: 5px 0">作业提交</div>
  1184. </div>
  1185. <div v-if="tooC == 50">
  1186. <img
  1187. @click="addTools(tooC, toolIndex, taskCount)"
  1188. src="../../assets/icon/thirdToolList/plwork.png"
  1189. alt
  1190. />
  1191. <div style="margin: 5px 0">批量上传</div>
  1192. </div>
  1193. <div v-if="tooC == 21">
  1194. <img
  1195. @click="addTools(tooC, toolIndex, taskCount)"
  1196. src="../../assets/icon/fourthToolList/program.png"
  1197. alt
  1198. />
  1199. <div style="margin: 5px 0">AIoT Blockly</div>
  1200. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,21)"
  1201. style="position: absolute;right: 33px;top: -30px;">
  1202. 分析
  1203. </div>
  1204. </div>
  1205. <!-- <div v-if="tooC == 22">
  1206. <img
  1207. @click="addTools(tooC, toolIndex, taskCount)"
  1208. src="../../assets/icon/fourthToolList/program.png"
  1209. alt
  1210. />
  1211. <div style="margin: 5px 0">AI体验</div>
  1212. </div> -->
  1213. <div v-if="tooC == 23">
  1214. <img
  1215. @click="addTools(tooC, toolIndex, taskCount)"
  1216. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1217. alt
  1218. />
  1219. <div style="margin: 5px 0">AI Python</div>
  1220. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,23)"
  1221. style="position: absolute;right: 33px;top: -30px;">
  1222. 分析
  1223. </div>
  1224. </div>
  1225. <div v-if="tooC == 24">
  1226. <img
  1227. @click="addTools(tooC, toolIndex, taskCount)"
  1228. src="../../assets/icon/fourthToolList/AIprogram.png"
  1229. alt
  1230. />
  1231. <div style="margin: 5px 0">AI Blockly</div>
  1232. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,24)"
  1233. style="position: absolute;right: 33px;top: -30px;">
  1234. 分析
  1235. </div>
  1236. </div>
  1237. <div v-if="tooC == 25">
  1238. <img
  1239. @click="addTools(tooC, toolIndex, taskCount)"
  1240. src="../../assets/icon/thirdToolList/evalua.png"
  1241. alt
  1242. />
  1243. <div style="margin: 5px 0">目标管理</div>
  1244. </div>
  1245. <div v-if="tooC == 31">
  1246. <img
  1247. @click="addTools(tooC, toolIndex, taskCount)"
  1248. src="../../assets/icon/secondToolList/networkPanel.png"
  1249. alt
  1250. />
  1251. <div style="margin: 5px 0">数学画板</div>
  1252. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,31)"
  1253. style="position: absolute;right: 33px;top: -30px;">
  1254. 分析
  1255. </div>
  1256. </div>
  1257. <div v-if="tooC == 28">
  1258. <img
  1259. @click="addTools(tooC, toolIndex, taskCount)"
  1260. src="../../assets/icon/secondToolList/translation.png"
  1261. alt
  1262. />
  1263. <div style="margin: 5px 0">翻译</div>
  1264. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,28)"
  1265. style="position: absolute;right: 33px;top: -30px;">
  1266. 分析
  1267. </div>
  1268. </div>
  1269. <div v-if="tooC == 37">
  1270. <img
  1271. @click="addTools(tooC, toolIndex, taskCount)"
  1272. src="../../assets/icon/secondToolList/mohe.png"
  1273. alt
  1274. />
  1275. <div style="margin: 5px 0">魔盒识字</div>
  1276. </div>
  1277. <div v-if="tooC == 38">
  1278. <img
  1279. @click="addTools(tooC, toolIndex, taskCount)"
  1280. src="../../assets/icon/secondToolList/24game.png"
  1281. alt
  1282. />
  1283. <div style="margin: 5px 0">24点</div>
  1284. </div>
  1285. <div v-if="tooC == 39">
  1286. <img
  1287. @click="addTools(tooC, toolIndex, taskCount)"
  1288. src="../../assets/icon/secondToolList/GeoGebra.png"
  1289. alt
  1290. />
  1291. <div style="margin: 5px 0">GeoGebra</div>
  1292. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,39)"
  1293. style="position: absolute;right: 33px;top: -30px;">
  1294. 分析
  1295. </div>
  1296. </div>
  1297. <div v-if="tooC == 32">
  1298. <img
  1299. @click="addTools(tooC, toolIndex, taskCount)"
  1300. src="../../assets/icon/thirdToolList/code.png"
  1301. alt
  1302. />
  1303. <div style="margin: 5px 0">源码编辑</div>
  1304. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,32)"
  1305. style="position: absolute;right: 153px;top: -42px;">
  1306. 分析
  1307. </div>
  1308. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1309. style="position: absolute;left: 110px;bottom: 30px;">
  1310. 上传文件
  1311. <input type="file" accept="*" style="display: none"
  1312. @change="beforeUpload1($event, 7, toolIndex)" />
  1313. </div> -->
  1314. </div>
  1315. <div v-if="tooC == 40">
  1316. <img
  1317. @click="addTools(tooC, toolIndex, taskCount)"
  1318. src="../../assets/icon/secondToolList/eval.png"
  1319. alt
  1320. />
  1321. <div style="margin: 5px 0">个人评价</div>
  1322. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1323. style="position: absolute;right: 33px;top: -30px;">
  1324. 分析
  1325. </div>
  1326. </div>
  1327. <div v-if="tooC == 41">
  1328. <img
  1329. @click="addTools(tooC, toolIndex, taskCount)"
  1330. src="../../assets/icon/thirdToolList/select.png"
  1331. alt
  1332. />
  1333. <div style="margin: 5px 0">选择匹配</div>
  1334. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1335. style="position: absolute;right: 33px;top: -30px;">
  1336. 分析
  1337. </div>
  1338. </div>
  1339. <div v-if="tooC == 44">
  1340. <img
  1341. @click="addTools(tooC, toolIndex, taskCount)"
  1342. src="../../assets/icon/thirdToolList/hanClass.png"
  1343. alt
  1344. />
  1345. <div style="margin: 5px 0">汉字宫</div>
  1346. </div>
  1347. <div v-if="tooC == 47">
  1348. <img
  1349. @click="addTools(tooC, toolIndex, taskCount)"
  1350. src="../../assets/icon/fourthToolList/conSentences.png"
  1351. alt
  1352. />
  1353. <div style="margin: 5px 0">排序</div>
  1354. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1355. style="position: absolute;right: 33px;top: -30px;">
  1356. 分析
  1357. </div>
  1358. </div>
  1359. <div v-if="tooC == 48">
  1360. <img
  1361. @click="addTools(tooC, toolIndex, taskCount)"
  1362. src="../../assets/icon/fourthToolList/table.png"
  1363. alt
  1364. />
  1365. <div style="margin: 5px 0">表格</div>
  1366. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1367. style="position: absolute;right: 33px;top: -30px;">
  1368. 分析
  1369. </div>
  1370. </div>
  1371. <div v-if="tooC == 52">
  1372. <img
  1373. @click="addTools(tooC, toolIndex, taskCount)"
  1374. src="../../assets/icon/fourthToolList/text.png"
  1375. alt
  1376. />
  1377. <div style="margin: 5px 0">文档</div>
  1378. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1379. style="position: absolute;right: 33px;top: -30px;">
  1380. 分析
  1381. </div>
  1382. </div>
  1383. <div v-if="tooC == 49">
  1384. <img
  1385. @click="addTools(tooC, toolIndex, taskCount)"
  1386. src="../../assets/icon/fourthToolList/group.png"
  1387. alt
  1388. />
  1389. <div style="margin: 5px 0">学生分组</div>
  1390. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1391. style="position: absolute;right: 33px;top: -30px;">
  1392. 分析
  1393. </div>
  1394. </div>
  1395. <div v-if="tooC == 57">
  1396. <img
  1397. @click="addTools(tooC, toolIndex, taskCount)"
  1398. src="../../assets/icon/fourthToolList/cocopi.png"
  1399. alt
  1400. />
  1401. <div style="margin: 5px 0">CocoPi</div>
  1402. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1403. style="position: absolute;right: 33px;top: -30px;">
  1404. 分析
  1405. </div>
  1406. </div>
  1407. <div v-if="tooC == 58">
  1408. <img
  1409. @click="addTools(tooC, toolIndex, taskCount)"
  1410. src="../../assets/icon/fourthToolList/car.png"
  1411. alt
  1412. />
  1413. <div style="margin: 5px 0">模拟驾驶</div>
  1414. </div>
  1415. <div v-if="tooC == 59">
  1416. <img
  1417. @click="addTools(tooC, toolIndex, taskCount)"
  1418. src="../../assets/icon/fourthToolList/lineSearch.png"
  1419. alt
  1420. />
  1421. <div style="margin: 5px 0">路径搜索</div>
  1422. </div>
  1423. <div v-if="tooC == 60">
  1424. <img
  1425. @click="addTools(tooC, toolIndex, taskCount)"
  1426. src="../../assets/icon/fourthToolList/deepLearning.png"
  1427. alt
  1428. />
  1429. <div style="margin: 5px 0">深度学习</div>
  1430. </div>
  1431. <div v-if="tooC == 61">
  1432. <img
  1433. @click="addTools(tooC, toolIndex, taskCount)"
  1434. src="../../assets/icon/fourthToolList/allHistory.png"
  1435. alt
  1436. />
  1437. <div style="margin: 5px 0">全历史</div>
  1438. </div>
  1439. <div v-if="tooC == 62">
  1440. <img
  1441. @click="addTools(tooC, toolIndex, taskCount)"
  1442. src="../../assets/icon/fourthToolList/interVideo.png"
  1443. alt
  1444. />
  1445. <div style="margin: 5px 0">交互视频</div>
  1446. </div>
  1447. <div v-if="tooC == 63">
  1448. <img
  1449. @click="addTools(tooC, toolIndex, taskCount)"
  1450. src="../../assets/icon/fourthToolList/Wood.png"
  1451. alt
  1452. />
  1453. <div style="margin: 5px 0">海龟编程</div>
  1454. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,63)"
  1455. style="position: absolute;right: 33px;top: -30px;">
  1456. 分析
  1457. </div>
  1458. </div>
  1459. <div v-if="tooC == 71">
  1460. <img
  1461. @click="addTools(tooC, toolIndex, taskCount)"
  1462. src="../../assets/icon/fourthToolList/chatgpt.png"
  1463. alt
  1464. />
  1465. <div style="margin: 5px 0">AI智能体</div>
  1466. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,71)"
  1467. style="position: absolute;right: 33px;top: -30px;">
  1468. 分析
  1469. </div>
  1470. </div>
  1471. <div v-if="tooC == 72">
  1472. <img
  1473. style="height: 85px;object-fit: cover;"
  1474. v-if="tool.appJson && tool.appJson.json && tool.appJson.json.icon"
  1475. @click="addTools(tooC, toolIndex, taskCount)"
  1476. :src="tool.appJson.json.icon"
  1477. alt
  1478. />
  1479. <img
  1480. v-else
  1481. @click="addTools(tooC, toolIndex, taskCount)"
  1482. src="../../assets/icon/firstToolList/appStore.png"
  1483. alt
  1484. />
  1485. <el-tooltip :content="tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'" placement="top" effect="dark">
  1486. <!-- content to trigger tooltip here -->
  1487. <div class="Ovh">
  1488. {{tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'}}
  1489. </div>
  1490. </el-tooltip>
  1491. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,72)"
  1492. style="position: absolute;right: 33px;top: -30px;">
  1493. 分析
  1494. </div>
  1495. </div>
  1496. <div v-if="tooC == 73">
  1497. <img
  1498. src="../../assets/icon/secondToolList/ppt.png"
  1499. alt
  1500. @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,73)"
  1501. />
  1502. <div style="margin: 5px 0">PPT</div>
  1503. </div>
  1504. <div v-if="tooC == 65">
  1505. <img
  1506. @click="addTools(tooC, toolIndex, taskCount)"
  1507. src="../../assets/icon/firstToolList/pickPeople.png"
  1508. alt
  1509. />
  1510. <div style="margin: 5px 0">挑人</div>
  1511. </div>
  1512. <div v-if="tooC == 66">
  1513. <img
  1514. @click="addTools(tooC, toolIndex, taskCount)"
  1515. src="../../assets/icon/secondToolList/formulaEdi.png"
  1516. alt
  1517. />
  1518. <div style="margin: 5px 0">公式编辑</div>
  1519. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,66)"
  1520. style="position: absolute;right: 33px;top: -30px;">
  1521. 分析
  1522. </div>
  1523. </div>
  1524. <div v-if="tooC == 67">
  1525. <img
  1526. @click="addTools(tooC, toolIndex, taskCount)"
  1527. src="../../assets/icon/secondToolList/molStr.png"
  1528. alt
  1529. />
  1530. <div style="margin: 5px 0">分子结构</div>
  1531. </div>
  1532. <div v-if="tooC == 68">
  1533. <img
  1534. @click="addTools(tooC, toolIndex, taskCount)"
  1535. src="../../assets/icon/secondToolList/timeAxis.png"
  1536. alt
  1537. />
  1538. <div style="margin: 5px 0">时间轴</div>
  1539. <!-- <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,68)"
  1540. style="position: absolute;right: 33px;top: -30px;">
  1541. 分析
  1542. </div> -->
  1543. </div>
  1544. <div v-if="tooC == 69">
  1545. <img
  1546. @click="addTools(tooC, toolIndex, taskCount)"
  1547. src="../../assets/icon/secondToolList/english.png"
  1548. alt
  1549. />
  1550. <div style="margin: 5px 0">英语写作</div>
  1551. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1552. style="position: absolute;right: 33px;top: -30px;">
  1553. 分析
  1554. </div>
  1555. </div>
  1556. <div v-if="tooC == 70">
  1557. <img
  1558. @click="addTools(tooC, toolIndex, taskCount)"
  1559. src="../../assets/icon/thirdToolList/englishVoice.png"
  1560. alt
  1561. />
  1562. <div style="margin: 5px 0">英语口语</div>
  1563. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1564. style="position: absolute;right: 33px;top: -30px;">
  1565. 分析
  1566. </div>
  1567. </div>
  1568. </div>
  1569. </div>
  1570. </div>
  1571. <div class="tooldetail renderedFor" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1572. <!-- <div class="toolTitle">工具描述</div> -->
  1573. <!-- @click.stop="updateToolDetail(toolIndex, 2)" 点击开启修改-->
  1574. <div style="height:100%;"
  1575. v-html="renderedFormula(tool.toolDetail)"
  1576. v-if="toolDetailIndex != toolIndex"
  1577. ></div>
  1578. <div v-else @click.stop="" style="height:100%;">
  1579. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1580. </div>
  1581. </div>
  1582. <el-button
  1583. type="primary"
  1584. v-if="tool.tool[0] == 32"
  1585. style="position: absolute; right: 30px; top: -45px"
  1586. @click="addImg($event)"
  1587. >上传作业<input
  1588. type="file"
  1589. accept="*"
  1590. style="display: none"
  1591. @change="beforeUpload1($event, 7, toolIndex)"
  1592. /></el-button>
  1593. <el-button
  1594. type="primary"
  1595. v-if="tool.tool[0] == 15"
  1596. style="position: absolute; right: 30px; top: -45px"
  1597. @click="openWordCloud(toolIndex)"
  1598. >生成词云</el-button
  1599. >
  1600. <el-button
  1601. type="primary"
  1602. v-if="
  1603. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0 && tType==1 && tType==1
  1604. "
  1605. style="position: absolute; right: 30px; top: -45px"
  1606. @click="uploadWorks(toolIndex)"
  1607. >导出作业</el-button
  1608. >
  1609. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1610. position: absolute;
  1611. right: 30px;
  1612. transform: translateY(-130%);
  1613. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1614. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1615. </div>
  1616. <div
  1617. v-if="
  1618. tType &&
  1619. tType == 2 &&
  1620. !sIsOpen &&
  1621. tool.tool.indexOf(16) != -1
  1622. "
  1623. class="worksBox"
  1624. >
  1625. <div
  1626. class="zuoyeYulan"
  1627. v-if="workStudent[toolIndex].length > 0"
  1628. >
  1629. <span class="worksTitle">作业预览</span>
  1630. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1631. </div>
  1632. <div
  1633. class="worksDetailBox"
  1634. v-if="workStudent[toolIndex].length > 0"
  1635. >
  1636. <div
  1637. class="works"
  1638. style="
  1639. width: 200px;
  1640. height: 140px;
  1641. margin: 10px 10px 10px 0;
  1642. box-shadow: 0 0 6px 1px #dfdada;
  1643. "
  1644. v-for="(w, wIndex) in workStudent[toolIndex]"
  1645. :key="wIndex"
  1646. >
  1647. <div class="workImg" v-if="w.type == 0">
  1648. <img
  1649. :src="w.works"
  1650. @click="previewImg(w.works,w)"
  1651. alt
  1652. />
  1653. <div
  1654. class="answerScore"
  1655. v-if="w.score"
  1656. @click.stop="openScore(w)"
  1657. :class="{
  1658. rightW:
  1659. w.userid == userid || tType == 1 || tType == 4,
  1660. }"
  1661. >
  1662. {{ JSON.parse(w.score).wScore }}分
  1663. </div>
  1664. <div
  1665. class="answerScore"
  1666. @click.stop="openScore(w)"
  1667. v-else-if="courseDetail.userid == userid"
  1668. :class="{
  1669. rightW:
  1670. w.userid == userid || tType == 1 || tType == 4,
  1671. }"
  1672. >
  1673. 评分
  1674. </div>
  1675. <img
  1676. class="deleteImg"
  1677. src="../../assets/deleteworks.png"
  1678. v-if="
  1679. w.userid == userid || tType == 1 || tType == 4
  1680. "
  1681. @click.stop="deleteWorks(w.wid)"
  1682. alt
  1683. />
  1684. </div>
  1685. <div class="workImg" v-if="w.type == 1">
  1686. <img :src="word" @click="openFile(w.works)" alt />
  1687. <div
  1688. class="answerScore"
  1689. v-if="w.score"
  1690. @click.stop="openScore(w)"
  1691. :class="{
  1692. rightW:
  1693. w.userid == userid || tType == 1 || tType == 4,
  1694. }"
  1695. >
  1696. {{ JSON.parse(w.score).wScore }}分
  1697. </div>
  1698. <div
  1699. class="answerScore"
  1700. @click.stop="openScore(w)"
  1701. v-else-if="courseDetail.userid == userid"
  1702. :class="{
  1703. rightW:
  1704. w.userid == userid || tType == 1 || tType == 4,
  1705. }"
  1706. >
  1707. 评分
  1708. </div>
  1709. <img
  1710. class="deleteImg"
  1711. src="../../assets/deleteworks.png"
  1712. v-if="
  1713. w.userid == userid || tType == 1 || tType == 4
  1714. "
  1715. @click.stop="deleteWorks(w.wid)"
  1716. alt
  1717. />
  1718. </div>
  1719. <div class="workImg" v-if="w.type == 3">
  1720. <img
  1721. style="cursor: pointer"
  1722. :src="video"
  1723. @click="openVideo(w)"
  1724. alt
  1725. />
  1726. <div
  1727. class="answerScore"
  1728. v-if="w.score"
  1729. @click.stop="openScore(w)"
  1730. :class="{
  1731. rightW:
  1732. w.userid == userid || tType == 1 || tType == 4,
  1733. }"
  1734. >
  1735. {{ JSON.parse(w.score).wScore }}分
  1736. </div>
  1737. <div
  1738. class="answerScore"
  1739. @click.stop="openScore(w)"
  1740. v-else-if="courseDetail.userid == userid"
  1741. :class="{
  1742. rightW:
  1743. w.userid == userid || tType == 1 || tType == 4,
  1744. }"
  1745. >
  1746. 评分
  1747. </div>
  1748. <img
  1749. class="deleteImg"
  1750. src="../../assets/deleteworks.png"
  1751. v-if="
  1752. w.userid == userid || tType == 1 || tType == 4
  1753. "
  1754. @click.stop="deleteWorks(w.wid)"
  1755. alt
  1756. />
  1757. </div>
  1758. <div class="workImg" v-if="w.type == 12">
  1759. <img
  1760. style="cursor: pointer"
  1761. :src="word2"
  1762. @click="downloadFile(w.works,w.userid)"
  1763. alt
  1764. />
  1765. <div
  1766. class="answerScore"
  1767. v-if="w.score"
  1768. @click.stop="openScore(w)"
  1769. :class="{
  1770. rightW:
  1771. w.userid == userid || tType == 1 || tType == 4,
  1772. }"
  1773. >
  1774. {{ JSON.parse(w.score).wScore }}分
  1775. </div>
  1776. <div
  1777. class="answerScore"
  1778. @click.stop="openScore(w)"
  1779. v-else-if="courseDetail.userid == userid"
  1780. :class="{
  1781. rightW:
  1782. w.userid == userid || tType == 1 || tType == 4,
  1783. }"
  1784. >
  1785. 评分
  1786. </div>
  1787. <img
  1788. class="deleteImg"
  1789. src="../../assets/deleteworks.png"
  1790. v-if="
  1791. w.userid == userid || tType == 1 || tType == 4
  1792. "
  1793. @click.stop="deleteWorks(w.wid)"
  1794. alt
  1795. />
  1796. </div>
  1797. <div class="worksName">
  1798. <div>{{ w.sName }}</div>
  1799. </div>
  1800. </div>
  1801. </div>
  1802. </div>
  1803. <div
  1804. v-if="
  1805. tType &&
  1806. tType == 2 &&
  1807. !sIsOpen &&
  1808. tool.tool.indexOf(32) != -1
  1809. "
  1810. class="worksBox"
  1811. >
  1812. <div
  1813. class="zuoyeYulan"
  1814. v-if="workStudent[toolIndex].length > 0"
  1815. >
  1816. <span class="worksTitle">作业预览</span>
  1817. </div>
  1818. <div
  1819. class="worksDetailBox"
  1820. v-if="workStudent[toolIndex].length > 0"
  1821. >
  1822. <div
  1823. class="works"
  1824. style="
  1825. width: 200px;
  1826. height: 140px;
  1827. margin: 10px 10px 10px 0;
  1828. box-shadow: 0 0 6px 1px #dfdada;
  1829. "
  1830. v-for="(w, wIndex) in workStudent[toolIndex]"
  1831. :key="wIndex"
  1832. >
  1833. <div class="workImg">
  1834. <img
  1835. :src="word2"
  1836. @click="downloadFile(w.works,w.userid)"
  1837. alt
  1838. />
  1839. <div
  1840. class="answerScore"
  1841. v-if="w.score"
  1842. @click.stop="openScore(w)"
  1843. :class="{
  1844. rightW:
  1845. w.userid == userid || tType == 1 || tType == 4,
  1846. }"
  1847. >
  1848. {{ JSON.parse(w.score).wScore }}分
  1849. </div>
  1850. <div
  1851. class="answerScore"
  1852. @click.stop="openScore(w)"
  1853. v-else-if="courseDetail.userid == userid"
  1854. :class="{
  1855. rightW:
  1856. w.userid == userid || tType == 1 || tType == 4,
  1857. }"
  1858. >
  1859. 评分
  1860. </div>
  1861. <img
  1862. class="deleteImg"
  1863. src="../../assets/deleteworks.png"
  1864. v-if="
  1865. w.userid == userid || tType == 1 || tType == 4
  1866. "
  1867. @click.stop="deleteWorks(w.wid)"
  1868. alt
  1869. />
  1870. </div>
  1871. <div class="worksName">
  1872. <div>{{ w.sName }}</div>
  1873. </div>
  1874. </div>
  1875. </div>
  1876. </div>
  1877. <div
  1878. v-if="
  1879. tType &&
  1880. tType == 2 &&
  1881. !sIsOpen &&
  1882. tool.tool.indexOf(57) != -1
  1883. "
  1884. class="worksBox"
  1885. >
  1886. <div
  1887. class="zuoyeYulan"
  1888. v-if="workStudent[toolIndex].length > 0"
  1889. >
  1890. <span class="worksTitle">作业预览</span>
  1891. </div>
  1892. <div
  1893. class="worksDetailBox"
  1894. v-if="workStudent[toolIndex].length > 0"
  1895. >
  1896. <div
  1897. class="works"
  1898. style="
  1899. width: 200px;
  1900. height: 140px;
  1901. margin: 10px 10px 10px 0;
  1902. box-shadow: 0 0 6px 1px #dfdada;
  1903. "
  1904. v-for="(w, wIndex) in workStudent[toolIndex]"
  1905. :key="wIndex"
  1906. >
  1907. <div class="workImg">
  1908. <img
  1909. :src="word2"
  1910. @click="downloadFile(w.works,w.userid)"
  1911. v-if="w.type == 12"
  1912. alt
  1913. />
  1914. <img
  1915. :src="word2"
  1916. @click="
  1917. openCocoPi(57, toolIndex, w.userid, w.sName)
  1918. "
  1919. v-else-if="w.type == 15"
  1920. alt
  1921. />
  1922. <div
  1923. class="answerScore"
  1924. v-if="w.score"
  1925. @click.stop="openScore(w)"
  1926. :class="{
  1927. rightW:
  1928. w.userid == userid || tType == 1 || tType == 4,
  1929. }"
  1930. >
  1931. {{ JSON.parse(w.score).wScore }}分
  1932. </div>
  1933. <div
  1934. class="answerScore"
  1935. @click.stop="openScore(w)"
  1936. v-else-if="courseDetail.userid == userid"
  1937. :class="{
  1938. rightW:
  1939. w.userid == userid || tType == 1 || tType == 4,
  1940. }"
  1941. >
  1942. 评分
  1943. </div>
  1944. <img
  1945. class="deleteImg"
  1946. src="../../assets/deleteworks.png"
  1947. v-if="
  1948. w.userid == userid || tType == 1 || tType == 4
  1949. "
  1950. @click.stop="deleteWorks(w.wid)"
  1951. alt
  1952. />
  1953. </div>
  1954. <div class="worksName">
  1955. <div>{{ w.sName }}</div>
  1956. </div>
  1957. </div>
  1958. </div>
  1959. </div>
  1960. <div
  1961. v-if="
  1962. tType &&
  1963. tType == 2 &&
  1964. !sIsOpen &&
  1965. tool.tool.indexOf(4) != -1
  1966. "
  1967. class="worksBox"
  1968. >
  1969. <div
  1970. class="zuoyeYulan"
  1971. v-if="workStudent[toolIndex].length > 0"
  1972. >
  1973. <span class="worksTitle">作业预览</span>
  1974. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1975. </div>
  1976. <div
  1977. class="worksDetailBox"
  1978. v-if="workStudent[toolIndex].length > 0"
  1979. >
  1980. <div
  1981. class="isWorksName2"
  1982. v-for="(w, wIndex) in workStudent[toolIndex]"
  1983. :key="wIndex"
  1984. @click="
  1985. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1986. "
  1987. >
  1988. {{ w.sName }}
  1989. <img
  1990. class="deleteImg deleteImg2"
  1991. src="../../assets/deleteworks.png"
  1992. v-if="w.userid == userid || tType == 1 || tType == 4"
  1993. @click.stop="deleteWorks(w.wid)"
  1994. alt
  1995. />
  1996. </div>
  1997. <!-- <div
  1998. class="works"
  1999. style="
  2000. width: 200px;
  2001. height: 140px;
  2002. border-radius: 10px;
  2003. box-shadow: 0 0 6px 1px #dfdada;
  2004. overflow: hidden;
  2005. "
  2006. v-for="(w, wIndex) in workStudent[toolIndex]"
  2007. :key="wIndex"
  2008. >
  2009. <div class="workImg">
  2010. <img
  2011. src="../../assets/icon/works/noImg.png"
  2012. @click="
  2013. openTools(
  2014. 4,
  2015. toolIndex,
  2016. taskCount,
  2017. w.works,
  2018. w.sName
  2019. )
  2020. "
  2021. alt
  2022. />
  2023. </div>
  2024. <div class="worksName">
  2025. <div>{{ w.sName }}</div>
  2026. <div>{{ w.time }}</div>
  2027. </div>
  2028. </div> -->
  2029. </div>
  2030. </div>
  2031. <div
  2032. v-if="
  2033. tType &&
  2034. ((tType == 2 && sIsOpen == true) ||
  2035. tType == 1 ||
  2036. tType == 4) &&
  2037. tool.tool.indexOf(62) != -1
  2038. "
  2039. class="worksBox"
  2040. >
  2041. <div
  2042. class="zuoyeYulan"
  2043. v-if="
  2044. worksStudent.length &&
  2045. worksStudent[toolIndex].length > 0
  2046. "
  2047. >
  2048. <div class="worksTop">
  2049. <div>作业预览</div>
  2050. <div
  2051. class="corOpen"
  2052. @click="contract(toolIndex)"
  2053. v-if="
  2054. (isCloseList[toolIndex].isCloseBoolean) &&
  2055. isCloseList[toolIndex].isClose == 0
  2056. "
  2057. >
  2058. 折叠
  2059. </div>
  2060. <div
  2061. class="corOpen"
  2062. @click="contract(toolIndex)"
  2063. v-if="isCloseList[toolIndex].isClose == 1"
  2064. >
  2065. 展开
  2066. </div>
  2067. </div>
  2068. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2069. </div>
  2070. <div>
  2071. <div
  2072. :id="'tool-' + toolIndex"
  2073. :style="{
  2074. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2075. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2076. }"
  2077. class="worksDetailBox"
  2078. v-if="
  2079. worksStudent.length &&
  2080. worksStudent[toolIndex].length > 0
  2081. "
  2082. >
  2083. <div
  2084. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2085. :key="wIndex"
  2086. class="isWorksName2"
  2087. @click="
  2088. openTools(
  2089. 62,
  2090. toolIndex,
  2091. taskCount,
  2092. w.works,
  2093. w.sName
  2094. )
  2095. "
  2096. >
  2097. {{ w.sName }}
  2098. <img
  2099. class="deleteImg deleteImg2"
  2100. src="../../assets/deleteworks.png"
  2101. v-if="
  2102. w.userid == userid || tType == 1 || tType == 4
  2103. "
  2104. @click.stop="deleteWorks(w.wid)"
  2105. alt
  2106. />
  2107. </div>
  2108. </div>
  2109. </div>
  2110. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2111. 未提交
  2112. </div>
  2113. <div
  2114. class="noWorksS"
  2115. v-if="noWorksS && noWorksS[toolIndex].length"
  2116. >
  2117. <div
  2118. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2119. :key="sIndex"
  2120. class="noWorksName"
  2121. >
  2122. <el-tooltip effect="dark" :content="s.student" placement="top">
  2123. <span>{{ s.student }}</span>
  2124. </el-tooltip>
  2125. </div>
  2126. </div>
  2127. </div>
  2128. <div
  2129. v-if="
  2130. tType &&
  2131. tType == 2 &&
  2132. !sIsOpen &&
  2133. tool.tool.indexOf(62) != -1
  2134. "
  2135. class="worksBox"
  2136. >
  2137. <div
  2138. class="zuoyeYulan"
  2139. v-if="workStudent[toolIndex].length > 0"
  2140. >
  2141. <span class="worksTitle">作业预览</span>
  2142. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2143. </div>
  2144. <div
  2145. class="worksDetailBox"
  2146. v-if="workStudent[toolIndex].length > 0"
  2147. >
  2148. <div
  2149. class="isWorksName2"
  2150. v-for="(w, wIndex) in workStudent[toolIndex]"
  2151. :key="wIndex"
  2152. @click="
  2153. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2154. "
  2155. >
  2156. {{ w.sName }}
  2157. <img
  2158. class="deleteImg deleteImg2"
  2159. src="../../assets/deleteworks.png"
  2160. v-if="w.userid == userid || tType == 1 || tType == 4"
  2161. @click.stop="deleteWorks(w.wid)"
  2162. alt
  2163. />
  2164. </div>
  2165. </div>
  2166. </div>
  2167. <div
  2168. v-if="
  2169. tType &&
  2170. tType == 2 &&
  2171. !sIsOpen &&
  2172. tool.tool.indexOf(45) != -1
  2173. "
  2174. class="worksBox"
  2175. >
  2176. <div
  2177. class="zuoyeYulan"
  2178. v-if="workStudent[toolIndex].length > 0"
  2179. >
  2180. <span class="worksTitle">作业预览</span>
  2181. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2182. </div>
  2183. <div
  2184. class="worksDetailBox"
  2185. v-if="workStudent[toolIndex].length > 0"
  2186. >
  2187. <div
  2188. class="isWorksName2"
  2189. v-for="(w, wIndex) in workStudent[toolIndex]"
  2190. :key="wIndex"
  2191. @click="
  2192. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2193. "
  2194. >
  2195. {{ w.sName }}
  2196. <img
  2197. class="deleteImg deleteImg2"
  2198. src="../../assets/deleteworks.png"
  2199. v-if="w.userid == userid || tType == 1 || tType == 4"
  2200. @click.stop="deleteWorks(w.wid)"
  2201. alt
  2202. />
  2203. </div>
  2204. </div>
  2205. </div>
  2206. <div
  2207. v-if="
  2208. tType &&
  2209. tType == 2 &&
  2210. !sIsOpen &&
  2211. tool.tool.indexOf(69) != -1
  2212. "
  2213. class="worksBox"
  2214. >
  2215. <div
  2216. class="zuoyeYulan"
  2217. v-if="workStudent[toolIndex].length > 0"
  2218. >
  2219. <span class="worksTitle">作业预览</span>
  2220. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2221. </div>
  2222. <div
  2223. class="worksDetailBox"
  2224. v-if="workStudent[toolIndex].length > 0"
  2225. >
  2226. <div
  2227. class="isWorksName2"
  2228. v-for="(w, wIndex) in workStudent[toolIndex]"
  2229. :key="wIndex"
  2230. @click="
  2231. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2232. "
  2233. >
  2234. {{ w.sName }}
  2235. <img
  2236. class="deleteImg deleteImg2"
  2237. src="../../assets/deleteworks.png"
  2238. v-if="w.userid == userid || tType == 1 || tType == 4"
  2239. @click.stop="deleteWorks(w.wid)"
  2240. alt
  2241. />
  2242. </div>
  2243. </div>
  2244. </div>
  2245. <div
  2246. v-if="
  2247. tType &&
  2248. tType == 2 &&
  2249. !sIsOpen &&
  2250. tool.tool.indexOf(15) != -1
  2251. "
  2252. class="worksBox"
  2253. >
  2254. <div
  2255. class="zuoyeYulan"
  2256. v-if="workStudent[toolIndex].length > 0"
  2257. >
  2258. <span class="worksTitle">作业预览</span>
  2259. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2260. </div>
  2261. <div
  2262. class="worksDetailBox"
  2263. v-if="workStudent[toolIndex].length > 0"
  2264. >
  2265. <div
  2266. class="works"
  2267. v-for="(w, wIndex) in workStudent[toolIndex]"
  2268. :key="wIndex"
  2269. >
  2270. <div class="workImg">
  2271. <!-- <img
  2272. src="../../assets/icon/works/noImg.png"
  2273. @click="openTools(15, toolIndex, taskCount, w.works)"
  2274. alt=""
  2275. />-->
  2276. <div class="answerBg">
  2277. <!-- <div>{{ w.sName }}</div> -->
  2278. <el-tooltip
  2279. class="item"
  2280. effect="light"
  2281. :content="JSON.parse(w.works)[0].answer"
  2282. placement="top"
  2283. >
  2284. <div class="answerContent">
  2285. {{ JSON.parse(w.works)[0].answer }}
  2286. </div>
  2287. </el-tooltip>
  2288. <div
  2289. class="answerScore"
  2290. v-if="w.score"
  2291. @click.stop="openScore(w)"
  2292. :class="{
  2293. rightW:
  2294. w.userid == userid ||
  2295. tType == 1 ||
  2296. tType == 4,
  2297. }"
  2298. >
  2299. {{ JSON.parse(w.score).wScore }}分
  2300. </div>
  2301. <div
  2302. class="answerScore"
  2303. @click.stop="openScore(w)"
  2304. v-else-if="courseDetail.userid == userid"
  2305. :class="{
  2306. rightW:
  2307. w.userid == userid ||
  2308. tType == 1 ||
  2309. tType == 4,
  2310. }"
  2311. >
  2312. 评分
  2313. </div>
  2314. <img
  2315. class="deleteImg"
  2316. src="../../assets/deleteworks.png"
  2317. v-if="
  2318. w.userid == userid || tType == 1 || tType == 4
  2319. "
  2320. @click.stop="deleteWorks(w.wid)"
  2321. alt
  2322. />
  2323. </div>
  2324. <div class="comment">
  2325. <div class="worksName">
  2326. <div>{{ w.sName }}</div>
  2327. </div>
  2328. </div>
  2329. </div>
  2330. </div>
  2331. </div>
  2332. </div>
  2333. <div
  2334. v-if="
  2335. tType &&
  2336. tType == 2 &&
  2337. !sIsOpen &&
  2338. tool.tool.indexOf(1) != -1
  2339. "
  2340. class="worksBox"
  2341. >
  2342. <div
  2343. class="zuoyeYulan"
  2344. v-if="workStudent[toolIndex].length > 0"
  2345. >
  2346. <span class="worksTitle">作业预览</span>
  2347. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2348. </div>
  2349. <div
  2350. class="worksDetailBox"
  2351. v-if="workStudent[toolIndex].length > 0"
  2352. >
  2353. <div
  2354. class="works"
  2355. style="
  2356. width: 200px;
  2357. height: 140px;
  2358. margin: 10px 10px 10px 0;
  2359. box-shadow: 0 0 6px 1px #dfdada;
  2360. "
  2361. v-for="(w, wIndex) in workStudent[toolIndex]"
  2362. :key="wIndex"
  2363. >
  2364. <div class="workImg">
  2365. <img
  2366. :src="w.works"
  2367. @click="previewImg(w.works,w)"
  2368. alt
  2369. />
  2370. <div
  2371. class="answerScore"
  2372. v-if="w.score"
  2373. @click.stop="openScore(w)"
  2374. :class="{
  2375. rightW:
  2376. w.userid == userid || tType == 1 || tType == 4,
  2377. }"
  2378. >
  2379. {{ JSON.parse(w.score).wScore }}分
  2380. </div>
  2381. <div
  2382. class="answerScore"
  2383. @click.stop="openScore(w)"
  2384. v-else-if="courseDetail.userid == userid"
  2385. :class="{
  2386. rightW:
  2387. w.userid == userid || tType == 1 || tType == 4,
  2388. }"
  2389. >
  2390. 评分
  2391. </div>
  2392. <img
  2393. class="deleteImg"
  2394. src="../../assets/deleteworks.png"
  2395. v-if="
  2396. w.userid == userid || tType == 1 || tType == 4
  2397. "
  2398. @click.stop="deleteWorks(w.wid)"
  2399. alt
  2400. />
  2401. </div>
  2402. <div class="worksName">
  2403. <div>{{ w.sName }}</div>
  2404. </div>
  2405. </div>
  2406. </div>
  2407. </div>
  2408. <div
  2409. v-if="
  2410. tType &&
  2411. tType == 2 &&
  2412. !sIsOpen &&
  2413. tool.tool.indexOf(3) != -1
  2414. "
  2415. class="worksBox"
  2416. >
  2417. <div
  2418. class="zuoyeYulan"
  2419. v-if="workStudent[toolIndex].length > 0"
  2420. >
  2421. <span class="worksTitle">作业预览</span>
  2422. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2423. </div>
  2424. <div
  2425. class="worksDetailBox"
  2426. v-if="workStudent[toolIndex].length > 0"
  2427. >
  2428. <div
  2429. class="works"
  2430. style="
  2431. width: 200px;
  2432. height: 140px;
  2433. margin: 10px 10px 10px 0;
  2434. box-shadow: 0 0 6px 1px #dfdada;
  2435. "
  2436. v-for="(w, wIndex) in workStudent[toolIndex]"
  2437. :key="wIndex"
  2438. >
  2439. <div class="workImg">
  2440. <img
  2441. :src="w.works"
  2442. @click="previewImg(w.works,w)"
  2443. alt
  2444. />
  2445. <div
  2446. class="answerScore"
  2447. v-if="w.score"
  2448. @click.stop="openScore(w)"
  2449. :class="{
  2450. rightW:
  2451. w.userid == userid || tType == 1 || tType == 4,
  2452. }"
  2453. >
  2454. {{ JSON.parse(w.score).wScore }}分
  2455. </div>
  2456. <div
  2457. class="answerScore"
  2458. @click.stop="openScore(w)"
  2459. v-else-if="courseDetail.userid == userid"
  2460. :class="{
  2461. rightW:
  2462. w.userid == userid || tType == 1 || tType == 4,
  2463. }"
  2464. >
  2465. 评分
  2466. </div>
  2467. <img
  2468. class="deleteImg"
  2469. src="../../assets/deleteworks.png"
  2470. v-if="
  2471. w.userid == userid || tType == 1 || tType == 4
  2472. "
  2473. @click.stop="deleteWorks(w.wid)"
  2474. alt
  2475. />
  2476. </div>
  2477. <div class="worksName">
  2478. <div>{{ w.sName }}</div>
  2479. </div>
  2480. </div>
  2481. </div>
  2482. </div>
  2483. <div
  2484. v-if="
  2485. tType &&
  2486. tType == 2 &&
  2487. !sIsOpen &&
  2488. tool.tool.indexOf(6) != -1
  2489. "
  2490. class="worksBox"
  2491. >
  2492. <div
  2493. class="zuoyeYulan"
  2494. v-if="workStudent[toolIndex].length > 0"
  2495. >
  2496. <span class="worksTitle">作业预览</span>
  2497. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2498. </div>
  2499. <div
  2500. class="worksDetailBox"
  2501. v-if="workStudent[toolIndex].length > 0"
  2502. >
  2503. <div
  2504. class="works"
  2505. style="
  2506. width: 200px;
  2507. height: 140px;
  2508. margin: 10px 10px 10px 0;
  2509. box-shadow: 0 0 6px 1px #dfdada;
  2510. "
  2511. v-for="(w, wIndex) in workStudent[toolIndex]"
  2512. :key="wIndex"
  2513. >
  2514. <div class="workImg">
  2515. <img
  2516. :src="w.works"
  2517. @click="previewImg(w.works,w)"
  2518. alt
  2519. />
  2520. <div
  2521. class="answerScore"
  2522. v-if="w.score"
  2523. @click.stop="openScore(w)"
  2524. :class="{
  2525. rightW:
  2526. w.userid == userid || tType == 1 || tType == 4,
  2527. }"
  2528. >
  2529. {{ JSON.parse(w.score).wScore }}分
  2530. </div>
  2531. <div
  2532. class="answerScore"
  2533. @click.stop="openScore(w)"
  2534. v-else-if="courseDetail.userid == userid"
  2535. :class="{
  2536. rightW:
  2537. w.userid == userid || tType == 1 || tType == 4,
  2538. }"
  2539. >
  2540. 评分
  2541. </div>
  2542. <img
  2543. class="deleteImg"
  2544. src="../../assets/deleteworks.png"
  2545. v-if="
  2546. w.userid == userid || tType == 1 || tType == 4
  2547. "
  2548. @click.stop="deleteWorks(w.wid)"
  2549. alt
  2550. />
  2551. </div>
  2552. <div class="worksName">
  2553. <div>{{ w.sName }}</div>
  2554. </div>
  2555. </div>
  2556. </div>
  2557. </div>
  2558. <div
  2559. v-if="
  2560. tType &&
  2561. tType == 2 &&
  2562. !sIsOpen &&
  2563. tool.tool.indexOf(7) != -1
  2564. "
  2565. class="worksBox"
  2566. >
  2567. <div
  2568. class="zuoyeYulan"
  2569. v-if="workStudent[toolIndex].length > 0"
  2570. >
  2571. <span class="worksTitle">作业预览</span>
  2572. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2573. </div>
  2574. <div
  2575. class="worksDetailBox"
  2576. v-if="workStudent[toolIndex].length > 0"
  2577. >
  2578. <div
  2579. class="works"
  2580. style="
  2581. width: 200px;
  2582. height: 140px;
  2583. margin: 10px 10px 10px 0;
  2584. box-shadow: 0 0 6px 1px #dfdada;
  2585. "
  2586. v-for="(w, wIndex) in workStudent[toolIndex]"
  2587. :key="wIndex"
  2588. >
  2589. <div class="workImg">
  2590. <img
  2591. :src="w.works"
  2592. @click="previewImg(w.works,w)"
  2593. alt
  2594. />
  2595. <div
  2596. class="answerScore"
  2597. v-if="w.score"
  2598. @click.stop="openScore(w)"
  2599. :class="{
  2600. rightW:
  2601. w.userid == userid || tType == 1 || tType == 4,
  2602. }"
  2603. >
  2604. {{ JSON.parse(w.score).wScore }}分
  2605. </div>
  2606. <div
  2607. class="answerScore"
  2608. @click.stop="openScore(w)"
  2609. v-else-if="courseDetail.userid == userid"
  2610. :class="{
  2611. rightW:
  2612. w.userid == userid || tType == 1 || tType == 4,
  2613. }"
  2614. >
  2615. 评分
  2616. </div>
  2617. <img
  2618. class="deleteImg"
  2619. src="../../assets/deleteworks.png"
  2620. v-if="
  2621. w.userid == userid || tType == 1 || tType == 4
  2622. "
  2623. @click.stop="deleteWorks(w.wid)"
  2624. alt
  2625. />
  2626. </div>
  2627. <div class="worksName">
  2628. <div>{{ w.sName }}</div>
  2629. </div>
  2630. </div>
  2631. </div>
  2632. </div>
  2633. <div
  2634. v-if="
  2635. tType &&
  2636. tType == 2 &&
  2637. !sIsOpen &&
  2638. tool.tool.indexOf(26) != -1
  2639. "
  2640. class="worksBox"
  2641. >
  2642. <div
  2643. class="zuoyeYulan"
  2644. v-if="workStudent[toolIndex].length > 0"
  2645. >
  2646. <span class="worksTitle">作业预览</span>
  2647. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2648. </div>
  2649. <div
  2650. class="worksDetailBox"
  2651. v-if="workStudent[toolIndex].length > 0"
  2652. >
  2653. <div
  2654. class="works"
  2655. style="
  2656. width: 200px;
  2657. height: 140px;
  2658. margin: 10px 10px 10px 0;
  2659. box-shadow: 0 0 6px 1px #dfdada;
  2660. "
  2661. v-for="(w, wIndex) in workStudent[toolIndex]"
  2662. :key="wIndex"
  2663. >
  2664. <div class="workImg">
  2665. <img
  2666. :src="w.works"
  2667. @click="previewImg(w.works,w)"
  2668. alt
  2669. />
  2670. <img
  2671. class="deleteImg"
  2672. src="../../assets/deleteworks.png"
  2673. v-if="
  2674. w.userid == userid || tType == 1 || tType == 4
  2675. "
  2676. @click.stop="deleteWorks(w.wid)"
  2677. alt
  2678. />
  2679. </div>
  2680. <div class="worksName">
  2681. <div>{{ w.sName }}</div>
  2682. </div>
  2683. </div>
  2684. </div>
  2685. </div>
  2686. <div
  2687. v-if="
  2688. tType &&
  2689. ((tType == 2 && sIsOpen == true) ||
  2690. tType == 1 ||
  2691. tType == 4) &&
  2692. tool.tool.indexOf(16) != -1
  2693. "
  2694. class="worksBox"
  2695. >
  2696. <div
  2697. class="zuoyeYulan"
  2698. v-if="
  2699. (worksStudent.length &&
  2700. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2701. "
  2702. >
  2703. <div class="worksTop">
  2704. <div>作业预览</div>
  2705. <div
  2706. class="corOpen"
  2707. @click="contract(toolIndex)"
  2708. v-if="
  2709. (isCloseList[toolIndex].isCloseBoolean) &&
  2710. isCloseList[toolIndex].isClose == 0
  2711. "
  2712. >
  2713. 折叠
  2714. </div>
  2715. <div
  2716. class="corOpen"
  2717. @click="contract(toolIndex)"
  2718. v-if="isCloseList[toolIndex].isClose == 1"
  2719. >
  2720. 展开
  2721. </div>
  2722. </div>
  2723. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2724. </div>
  2725. <div
  2726. class="group_workBox"
  2727. v-for="(g, gindex) in courseGroup.group"
  2728. :key="gindex"
  2729. >
  2730. <div class="group_box">
  2731. <div class="group_title">
  2732. <el-tooltip
  2733. class="item"
  2734. effect="light"
  2735. :content="g.name"
  2736. placement="top"
  2737. >
  2738. <div class="group_name">{{ g.name }}</div>
  2739. </el-tooltip>
  2740. </div>
  2741. <div
  2742. class="group_work"
  2743. v-if="
  2744. g.works &&
  2745. g.works.length &&
  2746. g.works[toolIndex].length
  2747. "
  2748. >
  2749. <div
  2750. class="works"
  2751. style="
  2752. width: 200px;
  2753. height: 140px;
  2754. margin: 10px 10px 10px 0;
  2755. border-radius: 15px;
  2756. box-shadow: 0 0 6px 1px #dfdada;
  2757. "
  2758. v-for="(w, wIndex) in g.works[toolIndex]"
  2759. :key="wIndex"
  2760. :class="w.type == 1 ? 'isTypeOne' : ''"
  2761. >
  2762. <div class="workImg" v-if="w.type == 0">
  2763. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2764. <img
  2765. :src="w.works"
  2766. @click="previewImg(w.works,w)"
  2767. alt
  2768. />
  2769. <div
  2770. class="answerScore"
  2771. v-if="w.score"
  2772. @click.stop="openScore(w)"
  2773. :class="{
  2774. rightW:
  2775. w.userid == userid ||
  2776. tType == 1 ||
  2777. tType == 4 ||
  2778. w.ateacher == userid,
  2779. }"
  2780. >
  2781. {{ JSON.parse(w.score).wScore }}分
  2782. </div>
  2783. <div
  2784. class="answerScore"
  2785. @click.stop="openScore(w)"
  2786. v-else-if="courseDetail.userid == userid"
  2787. :class="{
  2788. rightW:
  2789. w.userid == userid ||
  2790. tType == 1 ||
  2791. tType == 4 ||
  2792. w.ateacher == userid,
  2793. }"
  2794. >
  2795. 评分
  2796. </div>
  2797. <img
  2798. class="deleteImg"
  2799. src="../../assets/deleteworks.png"
  2800. v-if="
  2801. w.userid == userid || tType == 1 || tType == 4
  2802. "
  2803. @click.stop="deleteWorks(w.wid)"
  2804. alt
  2805. />
  2806. </div>
  2807. <div class="workImg" v-if="w.type == 1">
  2808. <img :src="word" @click="openFile(w.works)" alt />
  2809. <!-- @click="openFile(w.works)" -->
  2810. <div
  2811. class="answerScore"
  2812. v-if="w.score"
  2813. @click.stop="openScore(w)"
  2814. :class="{
  2815. rightW:
  2816. w.userid == userid ||
  2817. tType == 1 ||
  2818. tType == 4 ||
  2819. w.ateacher == userid,
  2820. }"
  2821. >
  2822. {{ JSON.parse(w.score).wScore }}分
  2823. </div>
  2824. <div
  2825. class="answerScore"
  2826. @click.stop="openScore(w)"
  2827. v-else-if="courseDetail.userid == userid"
  2828. :class="{
  2829. rightW:
  2830. w.userid == userid ||
  2831. tType == 1 ||
  2832. tType == 4 ||
  2833. w.ateacher == userid,
  2834. }"
  2835. >
  2836. 评分
  2837. </div>
  2838. <img
  2839. class="deleteImg"
  2840. src="../../assets/deleteworks.png"
  2841. v-if="
  2842. w.userid == userid || tType == 1 || tType == 4
  2843. "
  2844. @click.stop="deleteWorks(w.wid)"
  2845. alt
  2846. />
  2847. </div>
  2848. <div class="workImg" v-if="w.type == 3">
  2849. <img
  2850. style="cursor: pointer"
  2851. :src="video"
  2852. @click="openVideo(w)"
  2853. alt
  2854. />
  2855. <!-- @click="openVideo(w.works)" -->
  2856. <div
  2857. class="answerScore"
  2858. v-if="w.score"
  2859. @click.stop="openScore(w)"
  2860. :class="{
  2861. rightW:
  2862. w.userid == userid ||
  2863. tType == 1 ||
  2864. tType == 4 ||
  2865. w.ateacher == userid,
  2866. }"
  2867. >
  2868. {{ JSON.parse(w.score).wScore }}分
  2869. </div>
  2870. <div
  2871. class="answerScore"
  2872. @click.stop="openScore(w)"
  2873. v-else-if="courseDetail.userid == userid"
  2874. :class="{
  2875. rightW:
  2876. w.userid == userid ||
  2877. tType == 1 ||
  2878. tType == 4 ||
  2879. w.ateacher == userid,
  2880. }"
  2881. >
  2882. 评分
  2883. </div>
  2884. <img
  2885. class="deleteImg"
  2886. src="../../assets/deleteworks.png"
  2887. v-if="
  2888. w.userid == userid || tType == 1 || tType == 4
  2889. "
  2890. @click.stop="deleteWorks(w.wid)"
  2891. alt
  2892. />
  2893. </div>
  2894. <div class="workImg" v-if="w.type == 12">
  2895. <img
  2896. style="cursor: pointer"
  2897. :src="word2"
  2898. @click="downloadFile(w.works,w.userid)"
  2899. alt
  2900. />
  2901. <!-- @click="openVideo(w.works)" -->
  2902. <div
  2903. class="answerScore"
  2904. v-if="w.score"
  2905. @click.stop="openScore(w)"
  2906. :class="{
  2907. rightW:
  2908. w.userid == userid ||
  2909. tType == 1 ||
  2910. tType == 4 ||
  2911. w.ateacher == userid,
  2912. }"
  2913. >
  2914. {{ JSON.parse(w.score).wScore }}分
  2915. </div>
  2916. <div
  2917. class="answerScore"
  2918. @click.stop="openScore(w)"
  2919. v-else-if="courseDetail.userid == userid"
  2920. :class="{
  2921. rightW:
  2922. w.userid == userid ||
  2923. tType == 1 ||
  2924. tType == 4 ||
  2925. w.ateacher == userid,
  2926. }"
  2927. >
  2928. 评分
  2929. </div>
  2930. <img
  2931. class="deleteImg"
  2932. src="../../assets/deleteworks.png"
  2933. v-if="
  2934. w.userid == userid || tType == 1 || tType == 4
  2935. "
  2936. @click.stop="deleteWorks(w.wid)"
  2937. alt
  2938. />
  2939. </div>
  2940. <div class="comment" style="min-width: 200px">
  2941. <div class="worksName">
  2942. <div>{{ w.sName }}</div>
  2943. </div>
  2944. <div class="commentList">
  2945. <div class="commentList">
  2946. <div
  2947. class="commentImg"
  2948. @click="
  2949. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2950. "
  2951. >
  2952. <img
  2953. :src="w.isLikes == true ? likes : noLikes"
  2954. alt=""
  2955. />
  2956. </div>
  2957. <div>{{ w.likesCount }}</div>
  2958. </div>
  2959. <div
  2960. class="commentList"
  2961. style="margin-right: 15px"
  2962. >
  2963. <div
  2964. class="commentImg"
  2965. @click="
  2966. commentOther(
  2967. w,
  2968. toolIndex,
  2969. wIndex,
  2970. null,
  2971. g.id
  2972. )
  2973. "
  2974. >
  2975. <img
  2976. src="../../assets/icon/comment/comment.png"
  2977. alt=""
  2978. />
  2979. </div>
  2980. <div>{{ w.commentCount }}</div>
  2981. </div>
  2982. </div>
  2983. </div>
  2984. </div>
  2985. </div>
  2986. <div class="group_work" v-else>暂无提交作业</div>
  2987. </div>
  2988. </div>
  2989. <div
  2990. :id="'tool-' + toolIndex"
  2991. :style="{
  2992. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2993. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2994. }"
  2995. class="worksDetailBox"
  2996. v-if="
  2997. worksStudent.length &&
  2998. worksStudent[toolIndex].length > 0
  2999. "
  3000. >
  3001. <div
  3002. class="works"
  3003. style="
  3004. width: 200px;
  3005. height: 140px;
  3006. margin: 10px 10px 10px 0;
  3007. border-radius: 15px;
  3008. box-shadow: 0 0 6px 1px #dfdada;
  3009. "
  3010. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3011. :key="wIndex"
  3012. :class="w.type == 1 ? 'isTypeOne' : ''"
  3013. >
  3014. <div class="workImg" v-if="w.type == 0">
  3015. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3016. <img
  3017. :src="w.works"
  3018. @click="previewImg(w.works,w)"
  3019. alt
  3020. />
  3021. <div
  3022. class="answerScore"
  3023. v-if="w.score"
  3024. @click.stop="openScore(w)"
  3025. :class="{
  3026. rightW:
  3027. w.userid == userid ||
  3028. tType == 1 ||
  3029. tType == 4 ||
  3030. w.ateacher == userid,
  3031. }"
  3032. >
  3033. {{ JSON.parse(w.score).wScore }}分
  3034. </div>
  3035. <div
  3036. class="answerScore"
  3037. @click.stop="openScore(w)"
  3038. v-else-if="courseDetail.userid == userid"
  3039. :class="{
  3040. rightW:
  3041. w.userid == userid ||
  3042. tType == 1 ||
  3043. tType == 4 ||
  3044. w.ateacher == userid,
  3045. }"
  3046. >
  3047. 评分
  3048. </div>
  3049. <img
  3050. class="deleteImg"
  3051. src="../../assets/deleteworks.png"
  3052. v-if="
  3053. w.userid == userid || tType == 1 || tType == 4
  3054. "
  3055. @click.stop="deleteWorks(w.wid)"
  3056. alt
  3057. />
  3058. </div>
  3059. <div class="workImg" v-if="w.type == 1">
  3060. <img :src="word" @click="openFile(w.works)" alt />
  3061. <!-- @click="openFile(w.works)" -->
  3062. <div
  3063. class="answerScore"
  3064. v-if="w.score"
  3065. @click.stop="openScore(w)"
  3066. :class="{
  3067. rightW:
  3068. w.userid == userid ||
  3069. tType == 1 ||
  3070. tType == 4 ||
  3071. w.ateacher == userid,
  3072. }"
  3073. >
  3074. {{ JSON.parse(w.score).wScore }}分
  3075. </div>
  3076. <div
  3077. class="answerScore"
  3078. @click.stop="openScore(w)"
  3079. v-else-if="courseDetail.userid == userid"
  3080. :class="{
  3081. rightW:
  3082. w.userid == userid ||
  3083. tType == 1 ||
  3084. tType == 4 ||
  3085. w.ateacher == userid,
  3086. }"
  3087. >
  3088. 评分
  3089. </div>
  3090. <img
  3091. class="deleteImg"
  3092. src="../../assets/deleteworks.png"
  3093. v-if="
  3094. w.userid == userid || tType == 1 || tType == 4
  3095. "
  3096. @click.stop="deleteWorks(w.wid)"
  3097. alt
  3098. />
  3099. </div>
  3100. <div class="workImg" v-if="w.type == 3">
  3101. <img
  3102. style="cursor: pointer"
  3103. :src="video"
  3104. @click="openVideo(w)"
  3105. alt
  3106. />
  3107. <!-- @click="openVideo(w.works)" -->
  3108. <div
  3109. class="answerScore"
  3110. v-if="w.score"
  3111. @click.stop="openScore(w)"
  3112. :class="{
  3113. rightW:
  3114. w.userid == userid ||
  3115. tType == 1 ||
  3116. tType == 4 ||
  3117. w.ateacher == userid,
  3118. }"
  3119. >
  3120. {{ JSON.parse(w.score).wScore }}分
  3121. </div>
  3122. <div
  3123. class="answerScore"
  3124. @click.stop="openScore(w)"
  3125. v-else-if="courseDetail.userid == userid"
  3126. :class="{
  3127. rightW:
  3128. w.userid == userid ||
  3129. tType == 1 ||
  3130. tType == 4 ||
  3131. w.ateacher == userid,
  3132. }"
  3133. >
  3134. 评分
  3135. </div>
  3136. <img
  3137. class="deleteImg"
  3138. src="../../assets/deleteworks.png"
  3139. v-if="
  3140. w.userid == userid || tType == 1 || tType == 4
  3141. "
  3142. @click.stop="deleteWorks(w.wid)"
  3143. alt
  3144. />
  3145. </div>
  3146. <div class="workImg" v-if="w.type == 12">
  3147. <img
  3148. style="cursor: pointer"
  3149. :src="word2"
  3150. @click="downloadFile(w.works,w.userid)"
  3151. alt
  3152. />
  3153. <!-- @click="openVideo(w.works)" -->
  3154. <div
  3155. class="answerScore"
  3156. v-if="w.score"
  3157. @click.stop="openScore(w)"
  3158. :class="{
  3159. rightW:
  3160. w.userid == userid ||
  3161. tType == 1 ||
  3162. tType == 4 ||
  3163. w.ateacher == userid,
  3164. }"
  3165. >
  3166. {{ JSON.parse(w.score).wScore }}分
  3167. </div>
  3168. <div
  3169. class="answerScore"
  3170. @click.stop="openScore(w)"
  3171. v-else-if="courseDetail.userid == userid"
  3172. :class="{
  3173. rightW:
  3174. w.userid == userid ||
  3175. tType == 1 ||
  3176. tType == 4 ||
  3177. w.ateacher == userid,
  3178. }"
  3179. >
  3180. 评分
  3181. </div>
  3182. <img
  3183. class="deleteImg"
  3184. src="../../assets/deleteworks.png"
  3185. v-if="
  3186. w.userid == userid || tType == 1 || tType == 4
  3187. "
  3188. @click.stop="deleteWorks(w.wid)"
  3189. alt
  3190. />
  3191. </div>
  3192. <div class="comment" style="min-width: 200px">
  3193. <div class="worksName">
  3194. <div>{{ w.sName }}</div>
  3195. </div>
  3196. <div class="commentList">
  3197. <div class="commentList">
  3198. <div
  3199. class="commentImg"
  3200. @click="
  3201. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3202. "
  3203. >
  3204. <img
  3205. :src="w.isLikes == true ? likes : noLikes"
  3206. alt=""
  3207. />
  3208. </div>
  3209. <div>{{ w.likesCount }}</div>
  3210. </div>
  3211. <div class="commentList" style="margin-right: 15px">
  3212. <div
  3213. class="commentImg"
  3214. @click="commentOther(w, toolIndex, wIndex)"
  3215. >
  3216. <img
  3217. src="../../assets/icon/comment/comment.png"
  3218. alt=""
  3219. />
  3220. </div>
  3221. <div>{{ w.commentCount }}</div>
  3222. </div>
  3223. </div>
  3224. </div>
  3225. </div>
  3226. </div>
  3227. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3228. 未提交
  3229. </div>
  3230. <div
  3231. class="noWorksS"
  3232. v-if="noWorksS && noWorksS[toolIndex].length"
  3233. >
  3234. <div
  3235. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3236. :key="sIndex"
  3237. class="noWorksName"
  3238. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3239. >
  3240. <el-tooltip effect="dark" :content="s.student" placement="top">
  3241. <span>{{ s.student }}</span>
  3242. </el-tooltip>
  3243. </div>
  3244. </div>
  3245. </div>
  3246. <div
  3247. v-if="
  3248. tType &&
  3249. ((tType == 2 && sIsOpen == true) ||
  3250. tType == 1 ||
  3251. tType == 4) &&
  3252. tool.tool.indexOf(70) != -1
  3253. "
  3254. class="worksBox"
  3255. >
  3256. <div
  3257. class="zuoyeYulan"
  3258. v-if="
  3259. (worksStudent.length &&
  3260. worksStudent[toolIndex].length > 0)
  3261. "
  3262. >
  3263. <div class="worksTop">
  3264. <div>作业预览</div>
  3265. <div
  3266. class="corOpen"
  3267. @click="contract(toolIndex)"
  3268. v-if="
  3269. (isCloseList[toolIndex].isCloseBoolean) &&
  3270. isCloseList[toolIndex].isClose == 0
  3271. "
  3272. >
  3273. 折叠
  3274. </div>
  3275. <div
  3276. class="corOpen"
  3277. @click="contract(toolIndex)"
  3278. v-if="isCloseList[toolIndex].isClose == 1"
  3279. >
  3280. 展开
  3281. </div>
  3282. </div>
  3283. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3284. </div>
  3285. <div
  3286. :id="'tool-' + toolIndex"
  3287. :style="{
  3288. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3289. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3290. }"
  3291. class="worksDetailBox"
  3292. v-if="
  3293. worksStudent.length &&
  3294. worksStudent[toolIndex].length > 0
  3295. "
  3296. >
  3297. <div
  3298. class="works"
  3299. style="
  3300. width: 200px;
  3301. height: 140px;
  3302. margin: 10px 10px 10px 0;
  3303. border-radius: 15px;
  3304. box-shadow: 0 0 6px 1px #dfdada;
  3305. "
  3306. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3307. :key="wIndex"
  3308. :class="w.type == 1 ? 'isTypeOne' : ''"
  3309. >
  3310. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3311. <img :src="word" alt />
  3312. <img
  3313. class="deleteImg"
  3314. src="../../assets/deleteworks.png"
  3315. v-if="
  3316. w.userid == userid || tType == 1 || tType == 4
  3317. "
  3318. @click.stop="deleteWorks(w.wid)"
  3319. alt
  3320. />
  3321. </div>
  3322. <div class="comment" style="min-width: 200px">
  3323. <div class="worksName">
  3324. <div>{{ w.sName }}</div>
  3325. </div>
  3326. </div>
  3327. </div>
  3328. </div>
  3329. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3330. 未提交
  3331. </div>
  3332. <div
  3333. class="noWorksS"
  3334. v-if="noWorksS && noWorksS[toolIndex].length"
  3335. >
  3336. <div
  3337. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3338. :key="sIndex"
  3339. class="noWorksName"
  3340. >
  3341. <el-tooltip effect="dark" :content="s.student" placement="top">
  3342. <span>{{ s.student }}</span>
  3343. </el-tooltip>
  3344. </div>
  3345. </div>
  3346. </div>
  3347. <div
  3348. v-if="
  3349. tType &&
  3350. tType == 2 &&
  3351. !sIsOpen &&
  3352. tool.tool.indexOf(70) != -1
  3353. "
  3354. class="worksBox"
  3355. >
  3356. <div
  3357. class="zuoyeYulan"
  3358. v-if="workStudent[toolIndex].length > 0"
  3359. >
  3360. <span class="worksTitle">作业预览</span>
  3361. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3362. </div>
  3363. <div
  3364. class="worksDetailBox"
  3365. v-if="workStudent[toolIndex].length > 0"
  3366. >
  3367. <div
  3368. class="works"
  3369. style="
  3370. width: 200px;
  3371. height: 140px;
  3372. margin: 10px 10px 10px 0;
  3373. box-shadow: 0 0 6px 1px #dfdada;
  3374. "
  3375. v-for="(w, wIndex) in workStudent[toolIndex]"
  3376. :key="wIndex"
  3377. >
  3378. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3379. <img :src="word" alt />
  3380. <img
  3381. class="deleteImg"
  3382. src="../../assets/deleteworks.png"
  3383. v-if="
  3384. w.userid == userid || tType == 1 || tType == 4
  3385. "
  3386. @click.stop="deleteWorks(w.wid)"
  3387. alt
  3388. />
  3389. </div>
  3390. <div class="worksName">
  3391. <div>{{ w.sName }}</div>
  3392. </div>
  3393. </div>
  3394. </div>
  3395. </div>
  3396. <div
  3397. v-if="
  3398. tType &&
  3399. ((tType == 2 && sIsOpen == true) ||
  3400. tType == 1 ||
  3401. tType == 4) &&
  3402. tool.tool.indexOf(32) != -1
  3403. "
  3404. class="worksBox"
  3405. >
  3406. <div
  3407. class="zuoyeYulan"
  3408. v-if="
  3409. worksStudent.length &&
  3410. worksStudent[toolIndex].length > 0
  3411. "
  3412. >
  3413. <div class="worksTop">
  3414. <div>作业预览</div>
  3415. <div
  3416. class="corOpen"
  3417. @click="contract(toolIndex)"
  3418. v-if="
  3419. (isCloseList[toolIndex].isCloseBoolean) &&
  3420. isCloseList[toolIndex].isClose == 0
  3421. "
  3422. >
  3423. 折叠
  3424. </div>
  3425. <div
  3426. class="corOpen"
  3427. @click="contract(toolIndex)"
  3428. v-if="isCloseList[toolIndex].isClose == 1"
  3429. >
  3430. 展开
  3431. </div>
  3432. </div>
  3433. </div>
  3434. <div
  3435. :id="'tool-' + toolIndex"
  3436. :style="{
  3437. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3438. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3439. }"
  3440. class="worksDetailBox"
  3441. v-if="
  3442. worksStudent.length &&
  3443. worksStudent[toolIndex].length > 0
  3444. "
  3445. >
  3446. <div
  3447. class="works"
  3448. style="
  3449. width: 200px;
  3450. height: 140px;
  3451. margin: 10px 10px 10px 0;
  3452. border-radius: 15px;
  3453. box-shadow: 0 0 6px 1px #dfdada;
  3454. "
  3455. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3456. :key="wIndex"
  3457. :class="w.type == 1 ? 'isTypeOne' : ''"
  3458. >
  3459. <div class="workImg">
  3460. <img
  3461. :src="word2"
  3462. @click="downloadFile(w.works,w.userid)"
  3463. alt
  3464. />
  3465. <div
  3466. class="answerScore"
  3467. v-if="w.score"
  3468. @click.stop="openScore(w)"
  3469. :class="{
  3470. rightW:
  3471. w.userid == userid ||
  3472. tType == 1 ||
  3473. tType == 4 ||
  3474. w.ateacher == userid,
  3475. }"
  3476. >
  3477. {{ JSON.parse(w.score).wScore }}分
  3478. </div>
  3479. <div
  3480. class="answerScore"
  3481. @click.stop="openScore(w)"
  3482. v-else-if="courseDetail.userid == userid"
  3483. :class="{
  3484. rightW:
  3485. w.userid == userid ||
  3486. tType == 1 ||
  3487. tType == 4 ||
  3488. w.ateacher == userid,
  3489. }"
  3490. >
  3491. 评分
  3492. </div>
  3493. <img
  3494. class="deleteImg"
  3495. src="../../assets/deleteworks.png"
  3496. v-if="
  3497. w.userid == userid || tType == 1 || tType == 4
  3498. "
  3499. @click.stop="deleteWorks(w.wid)"
  3500. alt
  3501. />
  3502. </div>
  3503. <div class="comment" style="min-width: 200px">
  3504. <div class="worksName">
  3505. <div>{{ w.sName }}</div>
  3506. </div>
  3507. <div class="commentList">
  3508. <div class="commentList">
  3509. <div
  3510. class="commentImg"
  3511. @click="
  3512. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3513. "
  3514. >
  3515. <img
  3516. :src="w.isLikes == true ? likes : noLikes"
  3517. alt=""
  3518. />
  3519. </div>
  3520. <div>{{ w.likesCount }}</div>
  3521. </div>
  3522. <div class="commentList" style="margin-right: 15px">
  3523. <div
  3524. class="commentImg"
  3525. @click="commentOther(w, toolIndex, wIndex)"
  3526. >
  3527. <img
  3528. src="../../assets/icon/comment/comment.png"
  3529. alt=""
  3530. />
  3531. </div>
  3532. <div>{{ w.commentCount }}</div>
  3533. </div>
  3534. </div>
  3535. </div>
  3536. </div>
  3537. </div>
  3538. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3539. 未提交
  3540. </div>
  3541. <div
  3542. class="noWorksS"
  3543. v-if="noWorksS && noWorksS[toolIndex].length"
  3544. >
  3545. <div
  3546. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3547. :key="sIndex"
  3548. class="noWorksName"
  3549. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3550. >
  3551. <el-tooltip effect="dark" :content="s.student" placement="top">
  3552. <span>{{ s.student }}</span>
  3553. </el-tooltip>
  3554. </div>
  3555. </div>
  3556. </div>
  3557. <div
  3558. v-if="
  3559. tType &&
  3560. ((tType == 2 && sIsOpen == true) ||
  3561. tType == 1 ||
  3562. tType == 4) &&
  3563. tool.tool.indexOf(57) != -1
  3564. "
  3565. class="worksBox"
  3566. >
  3567. <div
  3568. class="zuoyeYulan"
  3569. v-if="
  3570. worksStudent.length &&
  3571. worksStudent[toolIndex].length > 0
  3572. "
  3573. >
  3574. <div class="worksTop">
  3575. <div>作业预览</div>
  3576. <div
  3577. class="corOpen"
  3578. @click="contract(toolIndex)"
  3579. v-if="
  3580. (isCloseList[toolIndex].isCloseBoolean) &&
  3581. isCloseList[toolIndex].isClose == 0
  3582. "
  3583. >
  3584. 折叠
  3585. </div>
  3586. <div
  3587. class="corOpen"
  3588. @click="contract(toolIndex)"
  3589. v-if="isCloseList[toolIndex].isClose == 1"
  3590. >
  3591. 展开
  3592. </div>
  3593. </div>
  3594. </div>
  3595. <div
  3596. :id="'tool-' + toolIndex"
  3597. :style="{
  3598. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3599. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3600. }"
  3601. class="worksDetailBox"
  3602. v-if="
  3603. worksStudent.length &&
  3604. worksStudent[toolIndex].length > 0
  3605. "
  3606. >
  3607. <div
  3608. class="works"
  3609. style="
  3610. width: 200px;
  3611. height: 140px;
  3612. margin: 10px 10px 10px 0;
  3613. border-radius: 15px;
  3614. box-shadow: 0 0 6px 1px #dfdada;
  3615. "
  3616. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3617. :key="wIndex"
  3618. :class="w.type == 1 ? 'isTypeOne' : ''"
  3619. >
  3620. <div class="workImg">
  3621. <img
  3622. :src="word2"
  3623. @click="downloadFile(w.works,w.userid)"
  3624. v-if="w.type == 12"
  3625. alt
  3626. />
  3627. <img
  3628. :src="word2"
  3629. @click="
  3630. openCocoPi(57, toolIndex, w.userid, w.sName)
  3631. "
  3632. v-else-if="w.type == 15"
  3633. alt
  3634. />
  3635. <div
  3636. class="answerScore"
  3637. v-if="w.score"
  3638. @click.stop="openScore(w)"
  3639. :class="{
  3640. rightW:
  3641. w.userid == userid ||
  3642. tType == 1 ||
  3643. tType == 4 ||
  3644. w.ateacher == userid,
  3645. }"
  3646. >
  3647. {{ JSON.parse(w.score).wScore }}分
  3648. </div>
  3649. <div
  3650. class="answerScore"
  3651. @click.stop="openScore(w)"
  3652. v-else-if="courseDetail.userid == userid"
  3653. :class="{
  3654. rightW:
  3655. w.userid == userid ||
  3656. tType == 1 ||
  3657. tType == 4 ||
  3658. w.ateacher == userid,
  3659. }"
  3660. >
  3661. 评分
  3662. </div>
  3663. <img
  3664. class="deleteImg"
  3665. src="../../assets/deleteworks.png"
  3666. v-if="
  3667. w.userid == userid || tType == 1 || tType == 4
  3668. "
  3669. @click.stop="deleteWorks(w.wid)"
  3670. alt
  3671. />
  3672. </div>
  3673. <div class="comment" style="min-width: 200px">
  3674. <div class="worksName">
  3675. <div>{{ w.sName }}</div>
  3676. </div>
  3677. <div class="commentList">
  3678. <div class="commentList">
  3679. <div
  3680. class="commentImg"
  3681. @click="
  3682. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3683. "
  3684. >
  3685. <img
  3686. :src="w.isLikes == true ? likes : noLikes"
  3687. alt=""
  3688. />
  3689. </div>
  3690. <div>{{ w.likesCount }}</div>
  3691. </div>
  3692. <div class="commentList" style="margin-right: 15px">
  3693. <div
  3694. class="commentImg"
  3695. @click="commentOther(w, toolIndex, wIndex)"
  3696. >
  3697. <img
  3698. src="../../assets/icon/comment/comment.png"
  3699. alt=""
  3700. />
  3701. </div>
  3702. <div>{{ w.commentCount }}</div>
  3703. </div>
  3704. </div>
  3705. </div>
  3706. </div>
  3707. </div>
  3708. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3709. 未提交
  3710. </div>
  3711. <div
  3712. class="noWorksS"
  3713. v-if="noWorksS && noWorksS[toolIndex].length"
  3714. >
  3715. <div
  3716. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3717. :key="sIndex"
  3718. class="noWorksName"
  3719. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3720. >
  3721. <el-tooltip effect="dark" :content="s.student" placement="top">
  3722. <span>{{ s.student }}</span>
  3723. </el-tooltip>
  3724. </div>
  3725. </div>
  3726. </div>
  3727. <div
  3728. v-if="
  3729. tType &&
  3730. ((tType == 2 && sIsOpen == true) ||
  3731. tType == 1 ||
  3732. tType == 4) &&
  3733. tool.tool.indexOf(72) != -1
  3734. "
  3735. class="worksBox"
  3736. >
  3737. <div
  3738. class="zuoyeYulan"
  3739. v-if="
  3740. worksStudent.length &&
  3741. worksStudent[toolIndex].length > 0
  3742. "
  3743. >
  3744. <div class="worksTop">
  3745. <div>作业预览</div>
  3746. <div
  3747. class="corOpen"
  3748. @click="contract(toolIndex)"
  3749. v-if="
  3750. isCloseList[toolIndex].isCloseBoolean &&
  3751. isCloseList[toolIndex].isClose == 0
  3752. "
  3753. >
  3754. 折叠
  3755. </div>
  3756. <div
  3757. class="corOpen"
  3758. @click="contract(toolIndex)"
  3759. v-if="isCloseList[toolIndex].isClose == 1"
  3760. >
  3761. 展开
  3762. </div>
  3763. </div>
  3764. </div>
  3765. <div
  3766. :id="'tool-' + toolIndex"
  3767. :style="{
  3768. height:
  3769. isCloseList[toolIndex].isClose == 1
  3770. ? retrnToolHeight('tool-' + toolIndex)
  3771. : 'auto',
  3772. overflow:
  3773. isCloseList[toolIndex].isClose == 1
  3774. ? 'hidden'
  3775. : 'unset'
  3776. }"
  3777. class="worksDetailBox"
  3778. v-if="
  3779. worksStudent.length &&
  3780. worksStudent[toolIndex].length > 0
  3781. "
  3782. >
  3783. <div
  3784. class="works"
  3785. style="
  3786. width: 200px;
  3787. height: 140px;
  3788. margin: 10px 10px 10px 0;
  3789. border-radius: 15px;
  3790. box-shadow: 0 0 6px 1px #dfdada;
  3791. "
  3792. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3793. :key="wIndex"
  3794. :class="w.type == 1 ? 'isTypeOne' : ''"
  3795. >
  3796. <div class="workImg">
  3797. <!-- <img
  3798. :src="word2"
  3799. @click="downloadFile(w.works)"
  3800. v-if="w.type == 12"
  3801. alt
  3802. /> -->
  3803. <img
  3804. :src="word2"
  3805. @click="
  3806. openCocoFlow(w)
  3807. "
  3808. alt
  3809. />
  3810. <div
  3811. class="answerScore"
  3812. v-if="w.score"
  3813. @click.stop="openScore(w)"
  3814. :class="{
  3815. rightW:
  3816. w.userid == userid ||
  3817. tType == 1 ||
  3818. tType == 4 ||
  3819. w.ateacher == userid
  3820. }"
  3821. >
  3822. {{ JSON.parse(w.score).wScore }}分
  3823. </div>
  3824. <div
  3825. class="answerScore"
  3826. @click.stop="openScore(w)"
  3827. v-else-if="
  3828. courseDetail.userid == userid &&
  3829. courseDetail.state != 5 &&
  3830. chapInfoList[courseType].chapterInfo[0]
  3831. .taskJson[taskCount].eList &&
  3832. chapInfoList[courseType].chapterInfo[0]
  3833. .taskJson[taskCount].eList.length
  3834. "
  3835. :class="{
  3836. rightW:
  3837. w.userid == userid ||
  3838. tType == 1 ||
  3839. tType == 4 ||
  3840. w.ateacher == userid
  3841. }"
  3842. >
  3843. 评分
  3844. </div>
  3845. <img
  3846. class="deleteImg"
  3847. src="../../assets/deleteworks.png"
  3848. v-if="
  3849. w.userid == userid || tType == 1 || tType == 4
  3850. "
  3851. @click.stop="deleteWorks(w.wid)"
  3852. alt
  3853. />
  3854. </div>
  3855. <div class="comment" style="min-width: 200px">
  3856. <div class="worksName">
  3857. <div>{{ w.sName }}</div>
  3858. </div>
  3859. <div class="commentList">
  3860. <div class="commentList">
  3861. <div
  3862. class="commentImg"
  3863. @click="
  3864. isLikes(
  3865. w.wid,
  3866. userid,
  3867. 1,
  3868. null,
  3869. w.isLikes,
  3870. w.sName
  3871. )
  3872. "
  3873. >
  3874. <img
  3875. :src="w.isLikes == true ? likes : noLikes"
  3876. alt=""
  3877. />
  3878. </div>
  3879. <div>{{ w.likesCount }}</div>
  3880. </div>
  3881. <div class="commentList" style="margin-right: 15px">
  3882. <div
  3883. class="commentImg"
  3884. @click="commentOther(w, toolIndex, wIndex)"
  3885. >
  3886. <img
  3887. src="../../assets/icon/comment/comment.png"
  3888. alt=""
  3889. />
  3890. </div>
  3891. <div>{{ w.commentCount }}</div>
  3892. </div>
  3893. </div>
  3894. </div>
  3895. </div>
  3896. </div>
  3897. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3898. 未提交
  3899. </div>
  3900. <div
  3901. class="noWorksS"
  3902. v-if="noWorksS && noWorksS[toolIndex].length"
  3903. >
  3904. <div
  3905. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3906. :key="sIndex"
  3907. class="noWorksName2"
  3908. @click="teacherWorkSubmit(72, toolIndex, taskCount, s)"
  3909. >
  3910. <el-tooltip
  3911. effect="dark"
  3912. :content="s.student"
  3913. placement="top"
  3914. >
  3915. <span>{{ s.student }}</span>
  3916. </el-tooltip>
  3917. </div>
  3918. </div>
  3919. </div>
  3920. <div
  3921. v-if="
  3922. tType &&
  3923. tType == 2 &&
  3924. !sIsOpen &&
  3925. tool.tool.indexOf(72) != -1
  3926. "
  3927. class="worksBox"
  3928. >
  3929. <div
  3930. class="zuoyeYulan"
  3931. v-if="workStudent[toolIndex].length > 0"
  3932. >
  3933. <span class="worksTitle">作业预览</span>
  3934. </div>
  3935. <div
  3936. class="worksDetailBox"
  3937. v-if="workStudent[toolIndex].length > 0"
  3938. >
  3939. <div
  3940. class="works"
  3941. style="
  3942. width: 200px;
  3943. height: 140px;
  3944. margin: 10px 10px 10px 0;
  3945. box-shadow: 0 0 6px 1px #dfdada;
  3946. "
  3947. v-for="(w, wIndex) in workStudent[toolIndex]"
  3948. :key="wIndex"
  3949. >
  3950. <div class="workImg">
  3951. <!-- <img
  3952. :src="word2"
  3953. @click="downloadFile(w.works)"
  3954. v-if="w.type == 12"
  3955. alt
  3956. /> -->
  3957. <img
  3958. :src="word2"
  3959. @click="
  3960. openCocoFlow(w)
  3961. "
  3962. alt
  3963. />
  3964. <div
  3965. class="answerScore"
  3966. v-if="w.score"
  3967. @click.stop="openScore(w)"
  3968. :class="{
  3969. rightW:
  3970. w.userid == userid || tType == 1 || tType == 4
  3971. }"
  3972. >
  3973. {{ JSON.parse(w.score).wScore }}分
  3974. </div>
  3975. <div
  3976. class="answerScore"
  3977. @click.stop="openScore(w)"
  3978. v-else-if="courseDetail.userid == userid"
  3979. :class="{
  3980. rightW:
  3981. w.userid == userid || tType == 1 || tType == 4
  3982. }"
  3983. >
  3984. 评分
  3985. </div>
  3986. <img
  3987. class="deleteImg"
  3988. src="../../assets/deleteworks.png"
  3989. v-if="
  3990. w.userid == userid || tType == 1 || tType == 4
  3991. "
  3992. @click.stop="deleteWorks(w.wid)"
  3993. alt
  3994. />
  3995. </div>
  3996. <div class="worksName">
  3997. <div>{{ w.sName }}</div>
  3998. </div>
  3999. </div>
  4000. </div>
  4001. </div>
  4002. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  4003. <div
  4004. class="zuoyeYulan"
  4005. v-if="
  4006. worksStudent.length &&
  4007. worksStudent[toolIndex].length > 0
  4008. "
  4009. >
  4010. <span class="worksTitle">作业预览</span>
  4011. <div
  4012. class="corOpen"
  4013. @click="contract(toolIndex)"
  4014. v-if="
  4015. (isCloseList[toolIndex].isCloseBoolean) &&
  4016. isCloseList[toolIndex].isClose == 0
  4017. "
  4018. >
  4019. 折叠
  4020. </div>
  4021. <div
  4022. class="corOpen"
  4023. @click="contract(toolIndex)"
  4024. v-if="isCloseList[toolIndex].isClose == 1"
  4025. >
  4026. 展开
  4027. </div>
  4028. </div>
  4029. <div
  4030. :id="'tool-' + toolIndex"
  4031. :style="{
  4032. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4033. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4034. }"
  4035. class="worksDetailBox"
  4036. v-if="
  4037. worksStudent.length &&
  4038. worksStudent[toolIndex].length > 0
  4039. "
  4040. >
  4041. <div
  4042. class="works"
  4043. style="
  4044. width: 200px;
  4045. height: 140px;
  4046. margin: 10px 10px 10px 0;
  4047. border-radius: 15px;
  4048. box-shadow: 0 0 6px 1px #dfdada;
  4049. "
  4050. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4051. :key="wIndex"
  4052. :class="w.type == 1 ? 'isTypeOne' : ''"
  4053. >
  4054. <div class="workImg" v-if="w.type == 0">
  4055. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  4056. <img
  4057. :src="w.works"
  4058. @click="previewImg(w.works,w)"
  4059. alt
  4060. />
  4061. <div
  4062. class="answerScore"
  4063. v-if="w.score"
  4064. @click.stop="openScore(w)"
  4065. :class="{
  4066. rightW:
  4067. w.userid == userid ||
  4068. tType == 1 ||
  4069. tType == 4 ||
  4070. w.ateacher == userid,
  4071. }"
  4072. >
  4073. {{ JSON.parse(w.score).wScore }}分
  4074. </div>
  4075. <div
  4076. class="answerScore"
  4077. @click.stop="openScore(w)"
  4078. v-else-if="courseDetail.userid == userid"
  4079. :class="{
  4080. rightW:
  4081. w.userid == userid ||
  4082. tType == 1 ||
  4083. tType == 4 ||
  4084. w.ateacher == userid,
  4085. }"
  4086. >
  4087. 评分
  4088. </div>
  4089. <img
  4090. class="deleteImg"
  4091. src="../../assets/deleteworks.png"
  4092. v-if="
  4093. w.userid == userid || tType == 1 || tType == 4
  4094. "
  4095. @click.stop="deleteWorks(w.wid)"
  4096. alt
  4097. />
  4098. </div>
  4099. <div
  4100. class="workImg"
  4101. style="cursor: pointer"
  4102. v-if="w.type == 1"
  4103. >
  4104. <img :src="word" @click="openFile(w.works)" alt />
  4105. <!-- @click="openFile(w.works)" -->
  4106. <div
  4107. class="answerScore"
  4108. v-if="w.score"
  4109. @click.stop="openScore(w)"
  4110. :class="{
  4111. rightW:
  4112. w.userid == userid ||
  4113. tType == 1 ||
  4114. tType == 4 ||
  4115. w.ateacher == userid,
  4116. }"
  4117. >
  4118. {{ JSON.parse(w.score).wScore }}分
  4119. </div>
  4120. <div
  4121. class="answerScore"
  4122. @click.stop="openScore(w)"
  4123. v-else-if="courseDetail.userid == userid"
  4124. :class="{
  4125. rightW:
  4126. w.userid == userid ||
  4127. tType == 1 ||
  4128. tType == 4 ||
  4129. w.ateacher == userid,
  4130. }"
  4131. >
  4132. 评分
  4133. </div>
  4134. <img
  4135. class="deleteImg"
  4136. src="../../assets/deleteworks.png"
  4137. v-if="
  4138. w.userid == userid || tType == 1 || tType == 4
  4139. "
  4140. @click.stop="deleteWorks(w.wid)"
  4141. alt
  4142. />
  4143. </div>
  4144. <div class="workImg" v-if="w.type == 3">
  4145. <img
  4146. style="cursor: pointer"
  4147. :src="video"
  4148. @click="openVideo(w)"
  4149. alt
  4150. />
  4151. <!-- @click="openVideo(w.works)" -->
  4152. <div
  4153. class="answerScore"
  4154. v-if="w.score"
  4155. @click.stop="openScore(w)"
  4156. :class="{
  4157. rightW:
  4158. w.userid == userid ||
  4159. tType == 1 ||
  4160. tType == 4 ||
  4161. w.ateacher == userid,
  4162. }"
  4163. >
  4164. {{ JSON.parse(w.score).wScore }}分
  4165. </div>
  4166. <div
  4167. class="answerScore"
  4168. @click.stop="openScore(w)"
  4169. v-else-if="courseDetail.userid == userid"
  4170. :class="{
  4171. rightW:
  4172. w.userid == userid ||
  4173. tType == 1 ||
  4174. tType == 4 ||
  4175. w.ateacher == userid,
  4176. }"
  4177. >
  4178. 评分
  4179. </div>
  4180. <img
  4181. class="deleteImg"
  4182. src="../../assets/deleteworks.png"
  4183. v-if="
  4184. w.userid == userid || tType == 1 || tType == 4
  4185. "
  4186. @click.stop="deleteWorks(w.wid)"
  4187. alt
  4188. />
  4189. </div>
  4190. <div class="comment" style="min-width: 200px">
  4191. <div class="worksName">
  4192. <div
  4193. style="cursor: pointer"
  4194. @click="
  4195. openSname(w.sName, w.wid, toolIndex, w.userid)
  4196. "
  4197. >
  4198. {{ w.sName }}
  4199. </div>
  4200. </div>
  4201. <div class="commentList">
  4202. <div class="commentList">
  4203. <div
  4204. class="commentImg"
  4205. @click="
  4206. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4207. "
  4208. >
  4209. <img
  4210. :src="w.isLikes == true ? likes : noLikes"
  4211. alt=""
  4212. />
  4213. </div>
  4214. <div>{{ w.likesCount }}</div>
  4215. </div>
  4216. <div class="commentList" style="margin-right: 15px">
  4217. <div
  4218. class="commentImg"
  4219. @click="commentOther(w, toolIndex, wIndex)"
  4220. >
  4221. <img
  4222. src="../../assets/icon/comment/comment.png"
  4223. alt=""
  4224. />
  4225. </div>
  4226. <div>{{ w.commentCount }}</div>
  4227. </div>
  4228. </div>
  4229. </div>
  4230. </div>
  4231. </div>
  4232. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4233. 未提交
  4234. </div>
  4235. <div
  4236. class="noWorksS"
  4237. v-if="noWorksS && noWorksS[toolIndex].length"
  4238. >
  4239. <div
  4240. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4241. :key="sIndex"
  4242. class="noWorksName"
  4243. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  4244. >
  4245. <el-tooltip effect="dark" :content="s.student" placement="top">
  4246. <span>{{ s.student }}</span>
  4247. </el-tooltip>
  4248. </div>
  4249. </div>
  4250. </div>
  4251. <div
  4252. v-if="
  4253. tType &&
  4254. ((tType == 2 && sIsOpen == true) ||
  4255. tType == 1 ||
  4256. tType == 4) &&
  4257. tool.tool.indexOf(4) != -1 &&
  4258. (tool.askJson[0].answer ||
  4259. tool.askJson[0].answer === 0) &&
  4260. checkJson[toolIndex].length
  4261. "
  4262. class="xuan_right_box"
  4263. >
  4264. <div
  4265. class="tool_right_box"
  4266. v-for="(item, index) in tool.askJson"
  4267. :key="index"
  4268. >
  4269. <div style="width: calc(100% - 30px);">
  4270. <el-tooltip
  4271. effect="light"
  4272. :content="index + 1 + '、' + item.askstitle"
  4273. placement="top"
  4274. popper-class="text_tooltip"
  4275. >
  4276. <div
  4277. style="
  4278. width: calc(100% - 130px);
  4279. display: block;
  4280. white-space: nowrap;
  4281. overflow: hidden;
  4282. text-overflow: ellipsis;
  4283. word-break: break-word;
  4284. cursor: pointer;
  4285. "
  4286. >
  4287. {{ index + 1 + "、" + item.askstitle }}
  4288. </div>
  4289. </el-tooltip>
  4290. </div>
  4291. <div class="right_box_xuan">
  4292. <span>正确率</span>
  4293. <span>{{
  4294. (checkJson[toolIndex][index].right
  4295. ? checkJson[toolIndex][index].right
  4296. : 0) + "%"
  4297. }}</span>
  4298. </div>
  4299. </div>
  4300. </div>
  4301. <div
  4302. class="xuan_right_box"
  4303. style="background: unset; padding: 0 10px"
  4304. v-if="
  4305. tType &&
  4306. ((tType == 2 && sIsOpen == true) ||
  4307. tType == 1 ||
  4308. tType == 4) &&
  4309. tool.tool.indexOf(4) != -1
  4310. "
  4311. >
  4312. <AskStatic
  4313. v-if="
  4314. worksStudent.length &&
  4315. worksStudent[toolIndex].length > 0
  4316. "
  4317. :askJSON="tool"
  4318. :checkJson="checkJson[toolIndex]"
  4319. ></AskStatic>
  4320. </div>
  4321. <div
  4322. v-if="
  4323. tType &&
  4324. ((tType == 2 && sIsOpen == true) ||
  4325. tType == 1 ||
  4326. tType == 4) &&
  4327. tool.tool.indexOf(4) != -1
  4328. "
  4329. class="worksBox"
  4330. >
  4331. <div
  4332. class="zuoyeYulan"
  4333. v-if="
  4334. worksStudent.length &&
  4335. worksStudent[toolIndex].length > 0
  4336. "
  4337. >
  4338. <div class="worksTop">
  4339. <div>作业预览</div>
  4340. <div
  4341. class="corOpen"
  4342. @click="contract(toolIndex)"
  4343. v-if="
  4344. (isCloseList[toolIndex].isCloseBoolean) &&
  4345. isCloseList[toolIndex].isClose == 0
  4346. "
  4347. >
  4348. 折叠
  4349. </div>
  4350. <div
  4351. class="corOpen"
  4352. @click="contract(toolIndex)"
  4353. v-if="isCloseList[toolIndex].isClose == 1"
  4354. >
  4355. 展开
  4356. </div>
  4357. </div>
  4358. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4359. </div>
  4360. <div>
  4361. <div
  4362. :id="'tool-' + toolIndex"
  4363. :style="{
  4364. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4365. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4366. }"
  4367. class="worksDetailBox"
  4368. v-if="
  4369. worksStudent.length &&
  4370. worksStudent[toolIndex].length > 0
  4371. "
  4372. >
  4373. <div
  4374. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4375. :key="wIndex"
  4376. class="isWorksName2"
  4377. @click="
  4378. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4379. "
  4380. >
  4381. {{ w.sName }}
  4382. <img
  4383. class="deleteImg deleteImg2"
  4384. src="../../assets/deleteworks.png"
  4385. v-if="
  4386. w.userid == userid || tType == 1 || tType == 4
  4387. "
  4388. @click.stop="deleteWorks(w.wid)"
  4389. alt
  4390. />
  4391. </div>
  4392. <!-- <div class="works" style="
  4393. width: 200px;
  4394. height: 140px;
  4395. border-radius: 10px;
  4396. box-shadow: 0 0 6px 1px #dfdada;
  4397. overflow: hidden;
  4398. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  4399. <div class="workImg">
  4400. <img src="../../assets/icon/works/noImg.png" @click="
  4401. openTools(
  4402. 4,
  4403. toolIndex,
  4404. taskCount,
  4405. w.works,
  4406. w.sName
  4407. )
  4408. " alt />
  4409. </div>
  4410. <div class="worksName">
  4411. <div>{{ w.sName }}</div>
  4412. <div>{{ w.time }}</div>
  4413. </div>
  4414. </div> -->
  4415. </div>
  4416. </div>
  4417. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4418. 未提交
  4419. </div>
  4420. <div
  4421. class="noWorksS"
  4422. v-if="noWorksS && noWorksS[toolIndex].length"
  4423. >
  4424. <div
  4425. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4426. :key="sIndex"
  4427. class="noWorksName"
  4428. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4429. >
  4430. <el-tooltip effect="dark" :content="s.student" placement="top">
  4431. <span>{{ s.student }}</span>
  4432. </el-tooltip>
  4433. </div>
  4434. </div>
  4435. </div>
  4436. <div
  4437. v-if="
  4438. tType &&
  4439. ((tType == 2 && sIsOpen == true) ||
  4440. tType == 1 ||
  4441. tType == 4) &&
  4442. tool.tool.indexOf(45) != -1 &&
  4443. (tool.testJson.testJson[0].answer ||
  4444. tool.testJson.testJson[0].answer === 0) &&
  4445. checkJson[toolIndex].length
  4446. "
  4447. class="xuan_right_box"
  4448. >
  4449. <div
  4450. class="tool_right_box"
  4451. v-for="(item, index) in tool.testJson.testJson"
  4452. :key="index"
  4453. >
  4454. <div class="right_box_xuan" style="margin-right: 10px">
  4455. <span>正确率</span>
  4456. <span>{{
  4457. (checkJson[toolIndex][index].right
  4458. ? checkJson[toolIndex][index].right
  4459. : 0) + "%"
  4460. }}</span>
  4461. </div>
  4462. <div style="width: calc(100% - 30px);">
  4463. <el-tooltip
  4464. effect="light"
  4465. :content="index + 1 + '、' + item.teststitle"
  4466. placement="top"
  4467. popper-class="text_tooltip"
  4468. >
  4469. <div
  4470. style="
  4471. width: calc(100% - 130px);
  4472. display: flex;
  4473. white-space: nowrap;
  4474. overflow: hidden;
  4475. text-overflow: ellipsis;
  4476. word-break: break-word;
  4477. cursor: pointer;
  4478. "
  4479. class="renderedFor"
  4480. >
  4481. {{ index + 1 + "、" }} <span v-html="renderedFormula(item.teststitle)"></span>
  4482. </div>
  4483. </el-tooltip>
  4484. </div>
  4485. </div>
  4486. </div>
  4487. <div
  4488. class="xuan_right_box"
  4489. style="background: unset; padding: 0 10px; width: 91.5%"
  4490. v-if="
  4491. tType &&
  4492. ((tType == 2 && sIsOpen == true) ||
  4493. tType == 1 ||
  4494. tType == 4) &&
  4495. tool.tool.indexOf(45) != -1
  4496. "
  4497. >
  4498. <AskStatic2
  4499. v-if="
  4500. worksStudent.length &&
  4501. worksStudent[toolIndex].length > 0
  4502. "
  4503. :askJSON="tool"
  4504. :checkJson="checkJson[toolIndex]"
  4505. ></AskStatic2>
  4506. </div>
  4507. <div
  4508. v-if="
  4509. tType &&
  4510. ((tType == 2 && sIsOpen == true) ||
  4511. tType == 1 ||
  4512. tType == 4) &&
  4513. tool.tool.indexOf(45) != -1
  4514. "
  4515. class="worksBox"
  4516. >
  4517. <div
  4518. class="zuoyeYulan"
  4519. v-if="
  4520. worksStudent.length &&
  4521. worksStudent[toolIndex].length > 0
  4522. "
  4523. >
  4524. <div class="worksTop">
  4525. <div>作业预览</div>
  4526. <div
  4527. class="corOpen"
  4528. @click="contract(toolIndex)"
  4529. v-if="
  4530. (isCloseList[toolIndex].isCloseBoolean) &&
  4531. isCloseList[toolIndex].isClose == 0
  4532. "
  4533. >
  4534. 折叠
  4535. </div>
  4536. <div
  4537. class="corOpen"
  4538. @click="contract(toolIndex)"
  4539. v-if="isCloseList[toolIndex].isClose == 1"
  4540. >
  4541. 展开
  4542. </div>
  4543. </div>
  4544. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4545. </div>
  4546. <div>
  4547. <div
  4548. :id="'tool-' + toolIndex"
  4549. :style="{
  4550. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4551. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4552. }"
  4553. class="worksDetailBox"
  4554. v-if="
  4555. worksStudent.length &&
  4556. worksStudent[toolIndex].length > 0
  4557. "
  4558. >
  4559. <div
  4560. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4561. :key="wIndex"
  4562. class="isWorksName2"
  4563. @click="
  4564. openTools(
  4565. 45,
  4566. toolIndex,
  4567. taskCount,
  4568. w.works,
  4569. w.sName
  4570. )
  4571. "
  4572. >
  4573. {{ w.sName }}
  4574. <img
  4575. class="deleteImg deleteImg2"
  4576. src="../../assets/deleteworks.png"
  4577. v-if="
  4578. w.userid == userid || tType == 1 || tType == 4
  4579. "
  4580. @click.stop="deleteWorks(w.wid)"
  4581. alt
  4582. />
  4583. </div>
  4584. </div>
  4585. </div>
  4586. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4587. 未提交
  4588. </div>
  4589. <div
  4590. class="noWorksS"
  4591. v-if="noWorksS && noWorksS[toolIndex].length"
  4592. >
  4593. <div
  4594. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4595. :key="sIndex"
  4596. class="noWorksName"
  4597. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4598. >
  4599. <el-tooltip effect="dark" :content="s.student" placement="top">
  4600. <span>{{ s.student }}</span>
  4601. </el-tooltip>
  4602. </div>
  4603. </div>
  4604. </div>
  4605. <div
  4606. v-if="
  4607. tType &&
  4608. ((tType == 2 && sIsOpen == true) ||
  4609. tType == 1 ||
  4610. tType == 4) &&
  4611. tool.tool.indexOf(69) != -1
  4612. "
  4613. class="worksBox"
  4614. >
  4615. <div
  4616. class="zuoyeYulan"
  4617. v-if="
  4618. worksStudent.length &&
  4619. worksStudent[toolIndex].length > 0
  4620. "
  4621. >
  4622. <div class="worksTop">
  4623. <div>作业预览</div>
  4624. <div
  4625. class="corOpen"
  4626. @click="contract(toolIndex)"
  4627. v-if="
  4628. (isCloseList[toolIndex].isCloseBoolean) &&
  4629. isCloseList[toolIndex].isClose == 0
  4630. "
  4631. >
  4632. 折叠
  4633. </div>
  4634. <div
  4635. class="corOpen"
  4636. @click="contract(toolIndex)"
  4637. v-if="isCloseList[toolIndex].isClose == 1"
  4638. >
  4639. 展开
  4640. </div>
  4641. </div>
  4642. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4643. </div>
  4644. <div>
  4645. <div
  4646. :id="'tool-' + toolIndex"
  4647. :style="{
  4648. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4649. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4650. }"
  4651. class="worksDetailBox"
  4652. v-if="
  4653. worksStudent.length &&
  4654. worksStudent[toolIndex].length > 0
  4655. "
  4656. >
  4657. <div
  4658. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4659. :key="wIndex"
  4660. class="isWorksName2"
  4661. style="width: 160px;height: 65px;line-height: 65px;"
  4662. @click="
  4663. openTools(
  4664. 69,
  4665. toolIndex,
  4666. taskCount,
  4667. w.works,
  4668. w.sName,
  4669. w.wid
  4670. )
  4671. "
  4672. >
  4673. {{ w.sName }}
  4674. <img
  4675. class="deleteImg1"
  4676. src="../../assets/evaEnglish.png"
  4677. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4678. alt
  4679. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4680. />
  4681. <img
  4682. class="deleteImg deleteImg2"
  4683. src="../../assets/deleteworks.png"
  4684. v-if="
  4685. w.userid == userid || tType == 1 || tType == 4
  4686. "
  4687. @click.stop="deleteWorks(w.wid)"
  4688. alt
  4689. />
  4690. </div>
  4691. </div>
  4692. </div>
  4693. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4694. 未提交
  4695. </div>
  4696. <div
  4697. class="noWorksS"
  4698. v-if="noWorksS && noWorksS[toolIndex].length"
  4699. >
  4700. <div
  4701. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4702. :key="sIndex"
  4703. class="noWorksName"
  4704. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4705. >
  4706. <el-tooltip effect="dark" :content="s.student" placement="top">
  4707. <span>{{ s.student }}</span>
  4708. </el-tooltip>
  4709. </div>
  4710. </div>
  4711. </div>
  4712. <div
  4713. v-if="
  4714. tType &&
  4715. ((tType == 2 && sIsOpen == true) ||
  4716. tType == 1 ||
  4717. tType == 4) &&
  4718. tool.tool.indexOf(15) != -1
  4719. "
  4720. class="worksBox"
  4721. >
  4722. <div
  4723. class="zuoyeYulan"
  4724. v-if="
  4725. (worksStudent.length &&
  4726. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4727. "
  4728. >
  4729. <div class="worksTop">
  4730. <div>作业预览</div>
  4731. <div
  4732. class="corOpen"
  4733. @click="contract(toolIndex)"
  4734. v-if="
  4735. (isCloseList[toolIndex].isCloseBoolean) &&
  4736. isCloseList[toolIndex].isClose == 0
  4737. "
  4738. >
  4739. 折叠
  4740. </div>
  4741. <div
  4742. class="corOpen"
  4743. @click="contract(toolIndex)"
  4744. v-if="isCloseList[toolIndex].isClose == 1"
  4745. >
  4746. 展开
  4747. </div>
  4748. </div>
  4749. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4750. </div>
  4751. <div
  4752. class="group_workBox"
  4753. v-for="(g, gindex) in courseGroup.group"
  4754. :key="gindex"
  4755. >
  4756. <div class="group_box">
  4757. <div class="group_title">
  4758. <el-tooltip
  4759. class="item"
  4760. effect="light"
  4761. :content="g.name"
  4762. placement="top"
  4763. >
  4764. <div class="group_name">{{ g.name }}</div>
  4765. </el-tooltip>
  4766. </div>
  4767. <div
  4768. class="group_work"
  4769. v-if="
  4770. g.works &&
  4771. g.works.length &&
  4772. g.works[toolIndex].length
  4773. "
  4774. >
  4775. <div
  4776. class="works"
  4777. v-for="(w, wIndex) in g.works[toolIndex]"
  4778. :key="wIndex"
  4779. >
  4780. <div
  4781. class="workImg"
  4782. style="
  4783. border-radius: 15px;
  4784. box-shadow: 0px 0px 5px 5px #eee;
  4785. "
  4786. >
  4787. <div
  4788. class="answerBg"
  4789. style="border-radius: 15px 15px 0 0"
  4790. @click="
  4791. commentOther(w, toolIndex, wIndex, null, g.id)
  4792. "
  4793. >
  4794. <div class="answerContent">
  4795. {{ JSON.parse(w.works)[0].answer }}
  4796. </div>
  4797. <div
  4798. class="answerScore"
  4799. v-if="w.score"
  4800. @click.stop="openScore(w)"
  4801. :class="{
  4802. rightW:
  4803. w.userid == userid ||
  4804. tType == 1 ||
  4805. tType == 4,
  4806. }"
  4807. >
  4808. {{ JSON.parse(w.score).wScore }}分
  4809. </div>
  4810. <div
  4811. class="answerScore"
  4812. @click.stop="openScore(w)"
  4813. v-else-if="courseDetail.userid == userid"
  4814. :class="{
  4815. rightW:
  4816. w.userid == userid ||
  4817. tType == 1 ||
  4818. tType == 4,
  4819. }"
  4820. >
  4821. 评分
  4822. </div>
  4823. <img
  4824. class="deleteImg"
  4825. src="../../assets/deleteworks.png"
  4826. v-if="
  4827. w.userid == userid ||
  4828. tType == 1 ||
  4829. tType == 4
  4830. "
  4831. @click.stop="deleteWorks(w.wid)"
  4832. alt
  4833. />
  4834. </div>
  4835. <div class="comment">
  4836. <div class="worksName">
  4837. <div>{{ w.sName }}</div>
  4838. </div>
  4839. <div class="commentList">
  4840. <div
  4841. class="commentImg"
  4842. @click="
  4843. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4844. "
  4845. >
  4846. <img
  4847. :src="w.isLikes == true ? likes : noLikes"
  4848. alt=""
  4849. />
  4850. </div>
  4851. <div>{{ w.likesCount }}</div>
  4852. </div>
  4853. <div
  4854. class="commentList"
  4855. style="margin-right: 15px"
  4856. >
  4857. <div
  4858. class="commentImg"
  4859. @click="
  4860. commentOther(
  4861. w,
  4862. toolIndex,
  4863. wIndex,
  4864. null,
  4865. g.id
  4866. )
  4867. "
  4868. >
  4869. <img
  4870. src="../../assets/icon/comment/comment.png"
  4871. alt=""
  4872. />
  4873. </div>
  4874. <div>{{ w.commentCount }}</div>
  4875. </div>
  4876. </div>
  4877. </div>
  4878. </div>
  4879. </div>
  4880. <div class="group_work" v-else>暂无提交作业</div>
  4881. </div>
  4882. </div>
  4883. <div
  4884. :id="'tool-' + toolIndex"
  4885. :style="{
  4886. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4887. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4888. }"
  4889. class="worksDetailBox"
  4890. v-if="
  4891. worksStudent.length &&
  4892. worksStudent[toolIndex].length > 0
  4893. "
  4894. >
  4895. <div
  4896. class="works"
  4897. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4898. :key="wIndex"
  4899. >
  4900. <div
  4901. class="workImg"
  4902. style="
  4903. border-radius: 15px;
  4904. box-shadow: 0px 0px 5px 5px #eee;
  4905. "
  4906. >
  4907. <!-- <img
  4908. src="../../assets/icon/works/noImg.png"
  4909. @click="openTools(15, toolIndex, taskCount, w.works)"
  4910. alt=""
  4911. />-->
  4912. <div
  4913. class="answerBg"
  4914. style="border-radius: 15px 15px 0 0"
  4915. @click="commentOther(w, toolIndex, wIndex)"
  4916. >
  4917. <!-- <div>{{ w.sName }}</div> -->
  4918. <div class="answerContent">
  4919. {{ JSON.parse(w.works)[0].answer }}
  4920. </div>
  4921. <div
  4922. class="answerScore"
  4923. v-if="w.score"
  4924. @click.stop="openScore(w)"
  4925. :class="{
  4926. rightW:
  4927. w.userid == userid ||
  4928. tType == 1 ||
  4929. tType == 4,
  4930. }"
  4931. >
  4932. {{ JSON.parse(w.score).wScore }}分
  4933. </div>
  4934. <div
  4935. class="answerScore"
  4936. @click.stop="openScore(w)"
  4937. v-else-if="courseDetail.userid == userid"
  4938. :class="{
  4939. rightW:
  4940. w.userid == userid ||
  4941. tType == 1 ||
  4942. tType == 4,
  4943. }"
  4944. >
  4945. 评分
  4946. </div>
  4947. <img
  4948. class="deleteImg"
  4949. src="../../assets/deleteworks.png"
  4950. v-if="
  4951. w.userid == userid || tType == 1 || tType == 4
  4952. "
  4953. @click.stop="deleteWorks(w.wid)"
  4954. alt
  4955. />
  4956. </div>
  4957. <div class="comment">
  4958. <div class="worksName">
  4959. <div>{{ w.sName }}</div>
  4960. </div>
  4961. <div class="commentList">
  4962. <div
  4963. class="commentImg"
  4964. @click="
  4965. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4966. "
  4967. >
  4968. <img
  4969. :src="w.isLikes == true ? likes : noLikes"
  4970. alt=""
  4971. />
  4972. </div>
  4973. <div>{{ w.likesCount }}</div>
  4974. </div>
  4975. <div class="commentList" style="margin-right: 15px">
  4976. <div
  4977. class="commentImg"
  4978. @click="commentOther(w, toolIndex, wIndex)"
  4979. >
  4980. <img
  4981. src="../../assets/icon/comment/comment.png"
  4982. alt=""
  4983. />
  4984. </div>
  4985. <div>{{ w.commentCount }}</div>
  4986. </div>
  4987. </div>
  4988. </div>
  4989. </div>
  4990. </div>
  4991. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4992. 未提交
  4993. </div>
  4994. <div
  4995. class="noWorksS"
  4996. v-if="noWorksS && noWorksS[toolIndex].length"
  4997. >
  4998. <div
  4999. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5000. :key="sIndex"
  5001. class="noWorksName"
  5002. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  5003. >
  5004. <el-tooltip effect="dark" :content="s.student" placement="top">
  5005. <span>{{ s.student }}</span>
  5006. </el-tooltip>
  5007. </div>
  5008. </div>
  5009. </div>
  5010. <div
  5011. v-if="
  5012. tType &&
  5013. ((tType == 2 && sIsOpen == true) ||
  5014. tType == 1 ||
  5015. tType == 4) &&
  5016. tool.tool.indexOf(1) != -1
  5017. "
  5018. class="worksBox"
  5019. >
  5020. <div
  5021. class="zuoyeYulan"
  5022. v-if="
  5023. (worksStudent.length &&
  5024. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5025. "
  5026. >
  5027. <div class="worksTop">
  5028. <div>作业预览</div>
  5029. <div
  5030. class="corOpen"
  5031. @click="contract(toolIndex)"
  5032. v-if="
  5033. (isCloseList[toolIndex].isCloseBoolean) &&
  5034. isCloseList[toolIndex].isClose == 0
  5035. "
  5036. >
  5037. 折叠
  5038. </div>
  5039. <div
  5040. class="corOpen"
  5041. @click="contract(toolIndex)"
  5042. v-if="isCloseList[toolIndex].isClose == 1"
  5043. >
  5044. 展开
  5045. </div>
  5046. </div>
  5047. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5048. </div>
  5049. <div
  5050. class="group_workBox"
  5051. v-for="(g, gindex) in courseGroup.group"
  5052. :key="gindex"
  5053. >
  5054. <div class="group_box">
  5055. <div class="group_title">
  5056. <el-tooltip
  5057. class="item"
  5058. effect="light"
  5059. :content="g.name"
  5060. placement="top"
  5061. >
  5062. <div class="group_name">{{ g.name }}</div>
  5063. </el-tooltip>
  5064. </div>
  5065. <div
  5066. class="group_work"
  5067. v-if="
  5068. g.works &&
  5069. g.works.length &&
  5070. g.works[toolIndex].length
  5071. "
  5072. >
  5073. <div
  5074. class="works"
  5075. style="
  5076. width: 200px;
  5077. height: 140px;
  5078. margin: 10px 10px 10px 0;
  5079. border-radius: 15px;
  5080. box-shadow: 0 0 6px 1px #dfdada;
  5081. "
  5082. v-for="(w, wIndex) in g.works[toolIndex]"
  5083. :key="wIndex"
  5084. :class="w.type == 1 ? 'isTypeOne' : ''"
  5085. >
  5086. <div class="workImg">
  5087. <img
  5088. :src="w.works"
  5089. @click="previewImg(w.works,w)"
  5090. alt
  5091. />
  5092. <div
  5093. class="answerScore"
  5094. v-if="w.score"
  5095. @click.stop="openScore(w)"
  5096. :class="{
  5097. rightW:
  5098. w.userid == userid ||
  5099. tType == 1 ||
  5100. tType == 4,
  5101. }"
  5102. >
  5103. {{ JSON.parse(w.score).wScore }}分
  5104. </div>
  5105. <div
  5106. class="answerScore"
  5107. @click.stop="openScore(w)"
  5108. v-else-if="courseDetail.userid == userid"
  5109. :class="{
  5110. rightW:
  5111. w.userid == userid ||
  5112. tType == 1 ||
  5113. tType == 4,
  5114. }"
  5115. >
  5116. 评分
  5117. </div>
  5118. <img
  5119. class="deleteImg"
  5120. src="../../assets/deleteworks.png"
  5121. v-if="
  5122. w.userid == userid || tType == 1 || tType == 4
  5123. "
  5124. @click.stop="deleteWorks(w.wid)"
  5125. alt
  5126. />
  5127. </div>
  5128. <div class="comment" style="min-width: 200px">
  5129. <div class="worksName">
  5130. <div>{{ w.sName }}</div>
  5131. </div>
  5132. <div class="commentList">
  5133. <div class="commentList">
  5134. <div
  5135. class="commentImg"
  5136. @click="
  5137. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5138. "
  5139. >
  5140. <img
  5141. :src="w.isLikes == true ? likes : noLikes"
  5142. alt=""
  5143. />
  5144. </div>
  5145. <div>{{ w.likesCount }}</div>
  5146. </div>
  5147. <div
  5148. class="commentList"
  5149. style="margin-right: 15px"
  5150. >
  5151. <div
  5152. class="commentImg"
  5153. @click="
  5154. commentOther(
  5155. w,
  5156. toolIndex,
  5157. wIndex,
  5158. null,
  5159. g.id
  5160. )
  5161. "
  5162. >
  5163. <img
  5164. src="../../assets/icon/comment/comment.png"
  5165. alt=""
  5166. />
  5167. </div>
  5168. <div>{{ w.commentCount }}</div>
  5169. </div>
  5170. </div>
  5171. </div>
  5172. </div>
  5173. </div>
  5174. <div class="group_work" v-else>暂无提交作业</div>
  5175. </div>
  5176. </div>
  5177. <div
  5178. :id="'tool-' + toolIndex"
  5179. :style="{
  5180. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5181. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5182. }"
  5183. class="worksDetailBox"
  5184. v-if="
  5185. worksStudent.length &&
  5186. worksStudent[toolIndex].length > 0
  5187. "
  5188. >
  5189. <div
  5190. class="works"
  5191. style="
  5192. width: 200px;
  5193. height: 140px;
  5194. margin: 10px 10px 10px 0;
  5195. border-radius: 15px;
  5196. box-shadow: 0 0 6px 1px #dfdada;
  5197. "
  5198. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5199. :key="wIndex"
  5200. >
  5201. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  5202. <div class="workImg">
  5203. <img
  5204. :src="w.works"
  5205. @click="previewImg(w.works,w)"
  5206. alt
  5207. />
  5208. <div
  5209. class="answerScore"
  5210. v-if="w.score"
  5211. @click.stop="openScore(w)"
  5212. :class="{
  5213. rightW:
  5214. w.userid == userid || tType == 1 || tType == 4,
  5215. }"
  5216. >
  5217. {{ JSON.parse(w.score).wScore }}分
  5218. </div>
  5219. <div
  5220. class="answerScore"
  5221. @click.stop="openScore(w)"
  5222. v-else-if="courseDetail.userid == userid"
  5223. :class="{
  5224. rightW:
  5225. w.userid == userid || tType == 1 || tType == 4,
  5226. }"
  5227. >
  5228. 评分
  5229. </div>
  5230. <img
  5231. class="deleteImg"
  5232. src="../../assets/deleteworks.png"
  5233. v-if="
  5234. w.userid == userid || tType == 1 || tType == 4
  5235. "
  5236. @click.stop="deleteWorks(w.wid)"
  5237. alt
  5238. />
  5239. </div>
  5240. <div class="comment" style="min-width: 200px">
  5241. <div class="worksName">
  5242. <div>{{ w.sName }}</div>
  5243. </div>
  5244. <div class="commentList">
  5245. <div class="commentList">
  5246. <div
  5247. class="commentImg"
  5248. @click="
  5249. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5250. "
  5251. >
  5252. <img
  5253. :src="w.isLikes == true ? likes : noLikes"
  5254. alt=""
  5255. />
  5256. </div>
  5257. <div>{{ w.likesCount }}</div>
  5258. </div>
  5259. <div class="commentList" style="margin-right: 15px">
  5260. <div
  5261. class="commentImg"
  5262. @click="commentOther(w, toolIndex, wIndex)"
  5263. >
  5264. <img
  5265. src="../../assets/icon/comment/comment.png"
  5266. alt=""
  5267. />
  5268. </div>
  5269. <div>{{ w.commentCount }}</div>
  5270. </div>
  5271. </div>
  5272. </div>
  5273. </div>
  5274. </div>
  5275. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5276. 未提交
  5277. </div>
  5278. <div
  5279. class="noWorksS"
  5280. v-if="noWorksS && noWorksS[toolIndex].length"
  5281. >
  5282. <div
  5283. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5284. :key="sIndex"
  5285. class="noWorksName"
  5286. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  5287. >
  5288. <el-tooltip effect="dark" :content="s.student" placement="top">
  5289. <span>{{ s.student }}</span>
  5290. </el-tooltip>
  5291. </div>
  5292. </div>
  5293. </div>
  5294. <div
  5295. v-if="
  5296. tType &&
  5297. ((tType == 2 && sIsOpen == true) ||
  5298. tType == 1 ||
  5299. tType == 4) &&
  5300. tool.tool.indexOf(3) != -1
  5301. "
  5302. class="worksBox"
  5303. >
  5304. <div
  5305. class="zuoyeYulan"
  5306. v-if="
  5307. (worksStudent.length &&
  5308. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5309. "
  5310. >
  5311. <div class="worksTop">
  5312. <div>作业预览</div>
  5313. <div
  5314. class="corOpen"
  5315. @click="contract(toolIndex)"
  5316. v-if="
  5317. (isCloseList[toolIndex].isCloseBoolean) &&
  5318. isCloseList[toolIndex].isClose == 0
  5319. "
  5320. >
  5321. 折叠
  5322. </div>
  5323. <div
  5324. class="corOpen"
  5325. @click="contract(toolIndex)"
  5326. v-if="isCloseList[toolIndex].isClose == 1"
  5327. >
  5328. 展开
  5329. </div>
  5330. </div>
  5331. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5332. </div>
  5333. <div
  5334. class="group_workBox"
  5335. v-for="(g, gindex) in courseGroup.group"
  5336. :key="gindex"
  5337. >
  5338. <div class="group_box">
  5339. <div class="group_title">
  5340. <el-tooltip
  5341. class="item"
  5342. effect="light"
  5343. :content="g.name"
  5344. placement="top"
  5345. >
  5346. <div class="group_name">{{ g.name }}</div>
  5347. </el-tooltip>
  5348. </div>
  5349. <div
  5350. class="group_work"
  5351. v-if="
  5352. g.works &&
  5353. g.works.length &&
  5354. g.works[toolIndex].length
  5355. "
  5356. >
  5357. <div
  5358. class="works"
  5359. style="
  5360. width: 200px;
  5361. height: 140px;
  5362. margin: 10px 10px 10px 0;
  5363. border-radius: 15px;
  5364. box-shadow: 0 0 6px 1px #dfdada;
  5365. "
  5366. v-for="(w, wIndex) in g.works[toolIndex]"
  5367. :key="wIndex"
  5368. :class="w.type == 1 ? 'isTypeOne' : ''"
  5369. >
  5370. <div class="workImg">
  5371. <img
  5372. :src="w.works"
  5373. @click="previewImg(w.works,w)"
  5374. alt
  5375. />
  5376. <div
  5377. class="answerScore"
  5378. v-if="w.score"
  5379. @click.stop="openScore(w)"
  5380. :class="{
  5381. rightW:
  5382. w.userid == userid ||
  5383. tType == 1 ||
  5384. tType == 4,
  5385. }"
  5386. >
  5387. {{ JSON.parse(w.score).wScore }}分
  5388. </div>
  5389. <div
  5390. class="answerScore"
  5391. @click.stop="openScore(w)"
  5392. v-else-if="courseDetail.userid == userid"
  5393. :class="{
  5394. rightW:
  5395. w.userid == userid ||
  5396. tType == 1 ||
  5397. tType == 4,
  5398. }"
  5399. >
  5400. 评分
  5401. </div>
  5402. <img
  5403. class="deleteImg"
  5404. src="../../assets/deleteworks.png"
  5405. v-if="
  5406. w.userid == userid || tType == 1 || tType == 4
  5407. "
  5408. @click.stop="deleteWorks(w.wid)"
  5409. alt
  5410. />
  5411. </div>
  5412. <div class="comment" style="min-width: 200px">
  5413. <div class="worksName">
  5414. <div>{{ w.sName }}</div>
  5415. </div>
  5416. <div class="commentList">
  5417. <div class="commentList">
  5418. <div
  5419. class="commentImg"
  5420. @click="
  5421. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5422. "
  5423. >
  5424. <img
  5425. :src="w.isLikes == true ? likes : noLikes"
  5426. alt=""
  5427. />
  5428. </div>
  5429. <div>{{ w.likesCount }}</div>
  5430. </div>
  5431. <div
  5432. class="commentList"
  5433. style="margin-right: 15px"
  5434. >
  5435. <div
  5436. class="commentImg"
  5437. @click="
  5438. commentOther(
  5439. w,
  5440. toolIndex,
  5441. wIndex,
  5442. null,
  5443. g.id
  5444. )
  5445. "
  5446. >
  5447. <img
  5448. src="../../assets/icon/comment/comment.png"
  5449. alt=""
  5450. />
  5451. </div>
  5452. <div>{{ w.commentCount }}</div>
  5453. </div>
  5454. </div>
  5455. </div>
  5456. </div>
  5457. </div>
  5458. <div class="group_work" v-else>暂无提交作业</div>
  5459. </div>
  5460. </div>
  5461. <div
  5462. :id="'tool-' + toolIndex"
  5463. :style="{
  5464. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5465. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5466. }"
  5467. class="worksDetailBox"
  5468. v-if="
  5469. worksStudent.length &&
  5470. worksStudent[toolIndex].length > 0
  5471. "
  5472. >
  5473. <div
  5474. class="works"
  5475. style="
  5476. width: 200px;
  5477. height: 140px;
  5478. margin: 10px 10px 10px 0;
  5479. border-radius: 15px;
  5480. box-shadow: 0 0 6px 1px #dfdada;
  5481. "
  5482. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5483. :key="wIndex"
  5484. >
  5485. <!-- @click="previewImg(w.works)" -->
  5486. <div class="workImg">
  5487. <img
  5488. :src="w.works"
  5489. @click="previewImg(w.works,w)"
  5490. alt
  5491. />
  5492. <div
  5493. class="answerScore"
  5494. v-if="w.score"
  5495. @click.stop="openScore(w)"
  5496. :class="{
  5497. rightW:
  5498. w.userid == userid || tType == 1 || tType == 4,
  5499. }"
  5500. >
  5501. {{ JSON.parse(w.score).wScore }}分
  5502. </div>
  5503. <div
  5504. class="answerScore"
  5505. @click.stop="openScore(w)"
  5506. v-else-if="courseDetail.userid == userid"
  5507. :class="{
  5508. rightW:
  5509. w.userid == userid || tType == 1 || tType == 4,
  5510. }"
  5511. >
  5512. 评分
  5513. </div>
  5514. <img
  5515. class="deleteImg"
  5516. src="../../assets/deleteworks.png"
  5517. v-if="
  5518. w.userid == userid || tType == 1 || tType == 4
  5519. "
  5520. @click.stop="deleteWorks(w.wid)"
  5521. alt
  5522. />
  5523. </div>
  5524. <div class="comment" style="min-width: 200px">
  5525. <div class="worksName">
  5526. <div>{{ w.sName }}</div>
  5527. </div>
  5528. <div class="commentList">
  5529. <div class="commentList">
  5530. <div
  5531. class="commentImg"
  5532. @click="
  5533. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5534. "
  5535. >
  5536. <img
  5537. :src="w.isLikes == true ? likes : noLikes"
  5538. alt=""
  5539. />
  5540. </div>
  5541. <div>{{ w.likesCount }}</div>
  5542. </div>
  5543. <div class="commentList" style="margin-right: 15px">
  5544. <div
  5545. class="commentImg"
  5546. @click="commentOther(w, toolIndex, wIndex)"
  5547. >
  5548. <img
  5549. src="../../assets/icon/comment/comment.png"
  5550. alt=""
  5551. />
  5552. </div>
  5553. <div>{{ w.commentCount }}</div>
  5554. </div>
  5555. </div>
  5556. </div>
  5557. </div>
  5558. </div>
  5559. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5560. 未提交
  5561. </div>
  5562. <div
  5563. class="noWorksS"
  5564. v-if="noWorksS && noWorksS[toolIndex].length"
  5565. >
  5566. <div
  5567. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5568. :key="sIndex"
  5569. class="noWorksName"
  5570. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5571. >
  5572. <el-tooltip effect="dark" :content="s.student" placement="top">
  5573. <span>{{ s.student }}</span>
  5574. </el-tooltip>
  5575. </div>
  5576. </div>
  5577. </div>
  5578. <div
  5579. v-if="
  5580. tType &&
  5581. ((tType == 2 && sIsOpen == true) ||
  5582. tType == 1 ||
  5583. tType == 4) &&
  5584. tool.tool.indexOf(6) != -1
  5585. "
  5586. class="worksBox"
  5587. >
  5588. <div
  5589. class="zuoyeYulan"
  5590. v-if="
  5591. (worksStudent.length &&
  5592. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5593. "
  5594. >
  5595. <div class="worksTop">
  5596. <div>作业预览</div>
  5597. <div
  5598. class="corOpen"
  5599. @click="contract(toolIndex)"
  5600. v-if="
  5601. (isCloseList[toolIndex].isCloseBoolean) &&
  5602. isCloseList[toolIndex].isClose == 0
  5603. "
  5604. >
  5605. 折叠
  5606. </div>
  5607. <div
  5608. class="corOpen"
  5609. @click="contract(toolIndex)"
  5610. v-if="isCloseList[toolIndex].isClose == 1"
  5611. >
  5612. 展开
  5613. </div>
  5614. </div>
  5615. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5616. </div>
  5617. <div
  5618. class="group_workBox"
  5619. v-for="(g, gindex) in courseGroup.group"
  5620. :key="gindex"
  5621. >
  5622. <div class="group_box">
  5623. <div class="group_title">
  5624. <el-tooltip
  5625. class="item"
  5626. effect="light"
  5627. :content="g.name"
  5628. placement="top"
  5629. >
  5630. <div class="group_name">{{ g.name }}</div>
  5631. </el-tooltip>
  5632. </div>
  5633. <div
  5634. class="group_work"
  5635. v-if="
  5636. g.works &&
  5637. g.works.length &&
  5638. g.works[toolIndex].length
  5639. "
  5640. >
  5641. <div
  5642. class="works"
  5643. style="
  5644. width: 200px;
  5645. height: 140px;
  5646. margin: 10px 10px 10px 0;
  5647. border-radius: 15px;
  5648. box-shadow: 0 0 6px 1px #dfdada;
  5649. "
  5650. v-for="(w, wIndex) in g.works[toolIndex]"
  5651. :key="wIndex"
  5652. :class="w.type == 1 ? 'isTypeOne' : ''"
  5653. >
  5654. <div class="workImg">
  5655. <img
  5656. :src="w.works"
  5657. @click="previewImg(w.works,w)"
  5658. alt
  5659. />
  5660. <div
  5661. class="answerScore"
  5662. v-if="w.score"
  5663. @click.stop="openScore(w)"
  5664. :class="{
  5665. rightW:
  5666. w.userid == userid ||
  5667. tType == 1 ||
  5668. tType == 4,
  5669. }"
  5670. >
  5671. {{ JSON.parse(w.score).wScore }}分
  5672. </div>
  5673. <div
  5674. class="answerScore"
  5675. @click.stop="openScore(w)"
  5676. v-else-if="courseDetail.userid == userid"
  5677. :class="{
  5678. rightW:
  5679. w.userid == userid ||
  5680. tType == 1 ||
  5681. tType == 4,
  5682. }"
  5683. >
  5684. 评分
  5685. </div>
  5686. <img
  5687. class="deleteImg"
  5688. src="../../assets/deleteworks.png"
  5689. v-if="
  5690. w.userid == userid || tType == 1 || tType == 4
  5691. "
  5692. @click.stop="deleteWorks(w.wid)"
  5693. alt
  5694. />
  5695. </div>
  5696. <div class="comment" style="min-width: 200px">
  5697. <div class="worksName">
  5698. <div>{{ w.sName }}</div>
  5699. </div>
  5700. <div class="commentList">
  5701. <div class="commentList">
  5702. <div
  5703. class="commentImg"
  5704. @click="
  5705. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5706. "
  5707. >
  5708. <img
  5709. :src="w.isLikes == true ? likes : noLikes"
  5710. alt=""
  5711. />
  5712. </div>
  5713. <div>{{ w.likesCount }}</div>
  5714. </div>
  5715. <div
  5716. class="commentList"
  5717. style="margin-right: 15px"
  5718. >
  5719. <div
  5720. class="commentImg"
  5721. @click="
  5722. commentOther(
  5723. w,
  5724. toolIndex,
  5725. wIndex,
  5726. null,
  5727. g.id
  5728. )
  5729. "
  5730. >
  5731. <img
  5732. src="../../assets/icon/comment/comment.png"
  5733. alt=""
  5734. />
  5735. </div>
  5736. <div>{{ w.commentCount }}</div>
  5737. </div>
  5738. </div>
  5739. </div>
  5740. </div>
  5741. </div>
  5742. <div class="group_work" v-else>暂无提交作业</div>
  5743. </div>
  5744. </div>
  5745. <div
  5746. :id="'tool-' + toolIndex"
  5747. :style="{
  5748. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5749. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5750. }"
  5751. class="worksDetailBox"
  5752. v-if="
  5753. worksStudent.length &&
  5754. worksStudent[toolIndex].length > 0
  5755. "
  5756. >
  5757. <div
  5758. class="works"
  5759. style="
  5760. width: 200px;
  5761. height: 140px;
  5762. margin: 10px 10px 10px 0;
  5763. border-radius: 15px;
  5764. box-shadow: 0 0 6px 1px #dfdada;
  5765. "
  5766. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5767. :key="wIndex"
  5768. >
  5769. <!-- @click="previewImg(w.works)" -->
  5770. <div class="workImg">
  5771. <img
  5772. :src="w.works"
  5773. @click="previewImg(w.works,w)"
  5774. alt
  5775. />
  5776. <div
  5777. class="answerScore"
  5778. v-if="w.score"
  5779. @click.stop="openScore(w)"
  5780. :class="{
  5781. rightW:
  5782. w.userid == userid || tType == 1 || tType == 4,
  5783. }"
  5784. >
  5785. {{ JSON.parse(w.score).wScore }}分
  5786. </div>
  5787. <div
  5788. class="answerScore"
  5789. @click.stop="openScore(w)"
  5790. v-else-if="courseDetail.userid == userid"
  5791. :class="{
  5792. rightW:
  5793. w.userid == userid || tType == 1 || tType == 4,
  5794. }"
  5795. >
  5796. 评分
  5797. </div>
  5798. <img
  5799. class="deleteImg"
  5800. src="../../assets/deleteworks.png"
  5801. v-if="
  5802. w.userid == userid || tType == 1 || tType == 4
  5803. "
  5804. @click.stop="deleteWorks(w.wid)"
  5805. alt
  5806. />
  5807. </div>
  5808. <div class="comment" style="min-width: 200px">
  5809. <div class="worksName">
  5810. <div>{{ w.sName }}</div>
  5811. </div>
  5812. <div class="commentList">
  5813. <div class="commentList">
  5814. <div
  5815. class="commentImg"
  5816. @click="
  5817. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5818. "
  5819. >
  5820. <img
  5821. :src="w.isLikes == true ? likes : noLikes"
  5822. alt=""
  5823. />
  5824. </div>
  5825. <div>{{ w.likesCount }}</div>
  5826. </div>
  5827. <div class="commentList" style="margin-right: 15px">
  5828. <div
  5829. class="commentImg"
  5830. @click="commentOther(w, toolIndex, wIndex)"
  5831. >
  5832. <img
  5833. src="../../assets/icon/comment/comment.png"
  5834. alt=""
  5835. />
  5836. </div>
  5837. <div>{{ w.commentCount }}</div>
  5838. </div>
  5839. </div>
  5840. </div>
  5841. </div>
  5842. </div>
  5843. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5844. 未提交
  5845. </div>
  5846. <div
  5847. class="noWorksS"
  5848. v-if="noWorksS && noWorksS[toolIndex].length"
  5849. >
  5850. <div
  5851. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5852. :key="sIndex"
  5853. class="noWorksName"
  5854. >
  5855. <el-tooltip effect="dark" :content="s.student" placement="top">
  5856. <span>{{ s.student }}</span>
  5857. </el-tooltip>
  5858. </div>
  5859. </div>
  5860. </div>
  5861. <div
  5862. v-if="
  5863. tType &&
  5864. ((tType == 2 && sIsOpen == true) ||
  5865. tType == 1 ||
  5866. tType == 4) &&
  5867. tool.tool.indexOf(7) != -1
  5868. "
  5869. class="worksBox"
  5870. >
  5871. <div
  5872. class="zuoyeYulan"
  5873. v-if="
  5874. (worksStudent.length &&
  5875. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5876. "
  5877. >
  5878. <div class="worksTop">
  5879. <div>作业预览</div>
  5880. <div
  5881. class="corOpen"
  5882. @click="contract(toolIndex)"
  5883. v-if="
  5884. (isCloseList[toolIndex].isCloseBoolean) &&
  5885. isCloseList[toolIndex].isClose == 0
  5886. "
  5887. >
  5888. 折叠
  5889. </div>
  5890. <div
  5891. class="corOpen"
  5892. @click="contract(toolIndex)"
  5893. v-if="isCloseList[toolIndex].isClose == 1"
  5894. >
  5895. 展开
  5896. </div>
  5897. </div>
  5898. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5899. </div>
  5900. <div
  5901. class="group_workBox"
  5902. v-for="(g, gindex) in courseGroup.group"
  5903. :key="gindex"
  5904. >
  5905. <div class="group_box">
  5906. <div class="group_title">
  5907. <el-tooltip
  5908. class="item"
  5909. effect="light"
  5910. :content="g.name"
  5911. placement="top"
  5912. >
  5913. <div class="group_name">{{ g.name }}</div>
  5914. </el-tooltip>
  5915. </div>
  5916. <div
  5917. class="group_work"
  5918. v-if="
  5919. g.works &&
  5920. g.works.length &&
  5921. g.works[toolIndex].length
  5922. "
  5923. >
  5924. <div
  5925. class="works"
  5926. style="
  5927. width: 200px;
  5928. height: 140px;
  5929. margin: 10px 10px 10px 0;
  5930. border-radius: 15px;
  5931. box-shadow: 0 0 6px 1px #dfdada;
  5932. "
  5933. v-for="(w, wIndex) in g.works[toolIndex]"
  5934. :key="wIndex"
  5935. :class="w.type == 1 ? 'isTypeOne' : ''"
  5936. >
  5937. <div class="workImg">
  5938. <img
  5939. :src="w.works"
  5940. @click="previewImg(w.works,w)"
  5941. alt
  5942. />
  5943. <div
  5944. class="answerScore"
  5945. v-if="w.score"
  5946. @click.stop="openScore(w)"
  5947. :class="{
  5948. rightW:
  5949. w.userid == userid ||
  5950. tType == 1 ||
  5951. tType == 4,
  5952. }"
  5953. >
  5954. {{ JSON.parse(w.score).wScore }}分
  5955. </div>
  5956. <div
  5957. class="answerScore"
  5958. @click.stop="openScore(w)"
  5959. v-else-if="courseDetail.userid == userid"
  5960. :class="{
  5961. rightW:
  5962. w.userid == userid ||
  5963. tType == 1 ||
  5964. tType == 4,
  5965. }"
  5966. >
  5967. 评分
  5968. </div>
  5969. <img
  5970. class="deleteImg"
  5971. src="../../assets/deleteworks.png"
  5972. v-if="
  5973. w.userid == userid || tType == 1 || tType == 4
  5974. "
  5975. @click.stop="deleteWorks(w.wid)"
  5976. alt
  5977. />
  5978. </div>
  5979. <div class="comment" style="min-width: 200px">
  5980. <div class="worksName">
  5981. <div>{{ w.sName }}</div>
  5982. </div>
  5983. <div class="commentList">
  5984. <div class="commentList">
  5985. <div
  5986. class="commentImg"
  5987. @click="
  5988. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5989. "
  5990. >
  5991. <img
  5992. :src="w.isLikes == true ? likes : noLikes"
  5993. alt=""
  5994. />
  5995. </div>
  5996. <div>{{ w.likesCount }}</div>
  5997. </div>
  5998. <div
  5999. class="commentList"
  6000. style="margin-right: 15px"
  6001. >
  6002. <div
  6003. class="commentImg"
  6004. @click="
  6005. commentOther(
  6006. w,
  6007. toolIndex,
  6008. wIndex,
  6009. null,
  6010. g.id
  6011. )
  6012. "
  6013. >
  6014. <img
  6015. src="../../assets/icon/comment/comment.png"
  6016. alt=""
  6017. />
  6018. </div>
  6019. <div>{{ w.commentCount }}</div>
  6020. </div>
  6021. </div>
  6022. </div>
  6023. </div>
  6024. </div>
  6025. <div class="group_work" v-else>暂无提交作业</div>
  6026. </div>
  6027. </div>
  6028. <div
  6029. :id="'tool-' + toolIndex"
  6030. :style="{
  6031. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6032. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6033. }"
  6034. class="worksDetailBox"
  6035. v-if="
  6036. worksStudent.length &&
  6037. worksStudent[toolIndex].length > 0
  6038. "
  6039. >
  6040. <div
  6041. class="works"
  6042. style="
  6043. width: 200px;
  6044. height: 140px;
  6045. margin: 10px 10px 10px 0;
  6046. border-radius: 15px;
  6047. box-shadow: 0 0 6px 1px #dfdada;
  6048. "
  6049. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6050. :key="wIndex"
  6051. >
  6052. <!-- @click="previewImg(w.works)" -->
  6053. <div class="workImg">
  6054. <img
  6055. :src="w.works"
  6056. @click="previewImg(w.works,w)"
  6057. alt
  6058. />
  6059. <div
  6060. class="answerScore"
  6061. v-if="w.score"
  6062. @click.stop="openScore(w)"
  6063. :class="{
  6064. rightW:
  6065. w.userid == userid || tType == 1 || tType == 4,
  6066. }"
  6067. >
  6068. {{ JSON.parse(w.score).wScore }}分
  6069. </div>
  6070. <div
  6071. class="answerScore"
  6072. @click.stop="openScore(w)"
  6073. v-else-if="courseDetail.userid == userid"
  6074. :class="{
  6075. rightW:
  6076. w.userid == userid || tType == 1 || tType == 4,
  6077. }"
  6078. >
  6079. 评分
  6080. </div>
  6081. <img
  6082. class="deleteImg"
  6083. src="../../assets/deleteworks.png"
  6084. v-if="
  6085. w.userid == userid || tType == 1 || tType == 4
  6086. "
  6087. @click.stop="deleteWorks(w.wid)"
  6088. alt
  6089. />
  6090. </div>
  6091. <div class="comment" style="min-width: 200px">
  6092. <div class="worksName">
  6093. <div>{{ w.sName }}</div>
  6094. </div>
  6095. <div class="commentList">
  6096. <div class="commentList">
  6097. <div
  6098. class="commentImg"
  6099. @click="
  6100. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6101. "
  6102. >
  6103. <img
  6104. :src="w.isLikes == true ? likes : noLikes"
  6105. alt=""
  6106. />
  6107. </div>
  6108. <div>{{ w.likesCount }}</div>
  6109. </div>
  6110. <div class="commentList" style="margin-right: 15px">
  6111. <div
  6112. class="commentImg"
  6113. @click="commentOther(w, toolIndex, wIndex)"
  6114. >
  6115. <img
  6116. src="../../assets/icon/comment/comment.png"
  6117. alt=""
  6118. />
  6119. </div>
  6120. <div>{{ w.commentCount }}</div>
  6121. </div>
  6122. </div>
  6123. </div>
  6124. </div>
  6125. </div>
  6126. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6127. 未提交
  6128. </div>
  6129. <div
  6130. class="noWorksS"
  6131. v-if="noWorksS && noWorksS[toolIndex].length"
  6132. >
  6133. <div
  6134. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6135. :key="sIndex"
  6136. class="noWorksName"
  6137. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  6138. >
  6139. <el-tooltip effect="dark" :content="s.student" placement="top">
  6140. <span>{{ s.student }}</span>
  6141. </el-tooltip>
  6142. </div>
  6143. </div>
  6144. </div>
  6145. <div
  6146. v-if="
  6147. tType &&
  6148. ((tType == 2 && sIsOpen == true) ||
  6149. tType == 1 ||
  6150. tType == 4) &&
  6151. tool.tool.indexOf(26) != -1
  6152. "
  6153. class="worksBox"
  6154. >
  6155. <div
  6156. class="zuoyeYulan"
  6157. v-if="
  6158. worksStudent.length &&
  6159. worksStudent[toolIndex].length > 0
  6160. "
  6161. >
  6162. <div class="worksTop">
  6163. <div>作业预览</div>
  6164. <div
  6165. class="corOpen"
  6166. @click="contract(toolIndex)"
  6167. v-if="
  6168. (isCloseList[toolIndex].isCloseBoolean) &&
  6169. isCloseList[toolIndex].isClose == 0
  6170. "
  6171. >
  6172. 折叠
  6173. </div>
  6174. <div
  6175. class="corOpen"
  6176. @click="contract(toolIndex)"
  6177. v-if="isCloseList[toolIndex].isClose == 1"
  6178. >
  6179. 展开
  6180. </div>
  6181. </div>
  6182. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6183. </div>
  6184. <div
  6185. :id="'tool-' + toolIndex"
  6186. :style="{
  6187. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6188. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6189. }"
  6190. class="worksDetailBox"
  6191. v-if="
  6192. worksStudent.length &&
  6193. worksStudent[toolIndex].length > 0
  6194. "
  6195. >
  6196. <div
  6197. class="works"
  6198. style="width: 240px; height: 140px; overflow: hidden"
  6199. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6200. :key="wIndex"
  6201. :class="w.type == 1 ? 'isTypeOne' : ''"
  6202. >
  6203. <div class="workImg" v-if="w.type == 0">
  6204. <img
  6205. :src="w.works"
  6206. @click="previewImg(w.works,w)"
  6207. alt
  6208. />
  6209. <img
  6210. class="deleteImg"
  6211. src="../../assets/deleteworks.png"
  6212. v-if="
  6213. w.userid == userid || tType == 1 || tType == 4
  6214. "
  6215. @click.stop="deleteWorks(w.wid)"
  6216. alt
  6217. />
  6218. </div>
  6219. <div class="workImg" v-if="w.type == 1">
  6220. <img :src="word" @click="openFile(w.works)" alt />
  6221. <img
  6222. class="deleteImg"
  6223. src="../../assets/deleteworks.png"
  6224. v-if="
  6225. w.userid == userid || tType == 1 || tType == 4
  6226. "
  6227. @click.stop="deleteWorks(w.wid)"
  6228. alt
  6229. />
  6230. </div>
  6231. <div class="worksName">
  6232. <div>{{ w.sName }}</div>
  6233. </div>
  6234. </div>
  6235. </div>
  6236. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6237. 未提交
  6238. </div>
  6239. <div
  6240. class="noWorksS"
  6241. v-if="noWorksS && noWorksS[toolIndex].length"
  6242. >
  6243. <div
  6244. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6245. :key="sIndex"
  6246. class="noWorksName"
  6247. >
  6248. <el-tooltip effect="dark" :content="s.student" placement="top">
  6249. <span>{{ s.student }}</span>
  6250. </el-tooltip>
  6251. </div>
  6252. </div>
  6253. </div>
  6254. <div
  6255. v-if="
  6256. tType &&
  6257. ((tType == 2 && sIsOpen == true) ||
  6258. tType == 1 ||
  6259. tType == 4) &&
  6260. tool.tool.indexOf(40) != -1
  6261. "
  6262. class="worksBox"
  6263. >
  6264. <div
  6265. class="zuoyeYulan"
  6266. v-if="
  6267. worksStudent.length &&
  6268. worksStudent[toolIndex].length > 0
  6269. "
  6270. >
  6271. <div class="worksTop">
  6272. <div>作业预览</div>
  6273. <div
  6274. class="corOpen"
  6275. @click="contract(toolIndex)"
  6276. v-if="
  6277. (isCloseList[toolIndex].isCloseBoolean) &&
  6278. isCloseList[toolIndex].isClose == 0
  6279. "
  6280. >
  6281. 折叠
  6282. </div>
  6283. <div
  6284. class="corOpen"
  6285. @click="contract(toolIndex)"
  6286. v-if="isCloseList[toolIndex].isClose == 1"
  6287. >
  6288. 展开
  6289. </div>
  6290. </div>
  6291. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6292. </div>
  6293. <div
  6294. :id="'tool-' + toolIndex"
  6295. :style="{
  6296. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6297. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6298. }"
  6299. class="worksDetailBox"
  6300. v-if="
  6301. worksStudent.length &&
  6302. worksStudent[toolIndex].length > 0
  6303. "
  6304. >
  6305. <div
  6306. class="works"
  6307. style="
  6308. width: 200px;
  6309. height: 140px;
  6310. margin: 10px 10px 10px 0;
  6311. border-radius: 15px;
  6312. box-shadow: 0 0 6px 1px #dfdada;
  6313. "
  6314. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6315. :key="wIndex"
  6316. :class="w.type == 1 ? 'isTypeOne' : ''"
  6317. >
  6318. <div class="workImg">
  6319. <img
  6320. src="../../assets/icon/works/noImg.png"
  6321. @click="openPj(w.works, toolIndex)"
  6322. alt
  6323. />
  6324. <img
  6325. class="deleteImg"
  6326. src="../../assets/deleteworks.png"
  6327. v-if="
  6328. w.userid == userid || tType == 1 || tType == 4
  6329. "
  6330. @click.stop="deleteWorks(w.wid)"
  6331. alt
  6332. />
  6333. </div>
  6334. <div class="comment" style="min-width: 200px">
  6335. <div class="worksName">
  6336. <div>{{ w.sName }}</div>
  6337. </div>
  6338. <div class="commentList">
  6339. <div class="commentList">
  6340. <div
  6341. class="commentImg"
  6342. @click="
  6343. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6344. "
  6345. >
  6346. <img
  6347. :src="w.isLikes == true ? likes : noLikes"
  6348. alt=""
  6349. />
  6350. </div>
  6351. <div>{{ w.likesCount }}</div>
  6352. </div>
  6353. <div class="commentList" style="margin-right: 15px">
  6354. <div
  6355. class="commentImg"
  6356. @click="commentOther(w, toolIndex, wIndex)"
  6357. >
  6358. <img
  6359. src="../../assets/icon/comment/comment.png"
  6360. alt=""
  6361. />
  6362. </div>
  6363. <div>{{ w.commentCount }}</div>
  6364. </div>
  6365. </div>
  6366. </div>
  6367. </div>
  6368. </div>
  6369. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6370. 未提交
  6371. </div>
  6372. <div
  6373. class="noWorksS"
  6374. v-if="noWorksS && noWorksS[toolIndex].length"
  6375. >
  6376. <div
  6377. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6378. :key="sIndex"
  6379. class="noWorksName"
  6380. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  6381. >
  6382. <el-tooltip effect="dark" :content="s.student" placement="top">
  6383. <span>{{ s.student }}</span>
  6384. </el-tooltip>
  6385. </div>
  6386. </div>
  6387. </div>
  6388. <div
  6389. v-if="
  6390. tType &&
  6391. tType == 2 &&
  6392. !sIsOpen &&
  6393. tool.tool.indexOf(40) != -1
  6394. "
  6395. class="worksBox"
  6396. >
  6397. <div
  6398. class="zuoyeYulan"
  6399. v-if="workStudent[toolIndex].length > 0"
  6400. >
  6401. <span class="worksTitle">作业预览</span>
  6402. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6403. </div>
  6404. <div
  6405. class="worksDetailBox"
  6406. v-if="workStudent[toolIndex].length > 0"
  6407. >
  6408. <div
  6409. class="works"
  6410. style="
  6411. width: 200px;
  6412. height: 140px;
  6413. margin: 10px 10px 10px 0;
  6414. "
  6415. v-for="(w, wIndex) in workStudent[toolIndex]"
  6416. :key="wIndex"
  6417. >
  6418. <div class="workImg">
  6419. <img
  6420. src="../../assets/icon/works/noImg.png"
  6421. @click="openPj(w.works, toolIndex)"
  6422. alt
  6423. />
  6424. <img
  6425. class="deleteImg"
  6426. src="../../assets/deleteworks.png"
  6427. v-if="
  6428. w.userid == userid || tType == 1 || tType == 4
  6429. "
  6430. @click.stop="deleteWorks(w.wid)"
  6431. alt
  6432. />
  6433. </div>
  6434. <div class="worksName">
  6435. <div>{{ w.sName }}</div>
  6436. </div>
  6437. </div>
  6438. </div>
  6439. </div>
  6440. <div
  6441. v-if="
  6442. tType &&
  6443. ((tType == 2 && sIsOpen == true) ||
  6444. tType == 1 ||
  6445. tType == 4) &&
  6446. tool.tool.indexOf(41) != -1
  6447. "
  6448. >
  6449. <AnswerData2
  6450. v-if="
  6451. worksStudent.length &&
  6452. worksStudent[toolIndex].length > 0
  6453. "
  6454. :problemJson="tool.selectJson.answer"
  6455. :people="worksStudent[toolIndex]"
  6456. ></AnswerData2>
  6457. </div>
  6458. <div
  6459. v-if="
  6460. tType &&
  6461. ((tType == 2 && sIsOpen == true) ||
  6462. tType == 1 ||
  6463. tType == 4) &&
  6464. tool.tool.indexOf(41) != -1
  6465. "
  6466. class="worksBox"
  6467. >
  6468. <div
  6469. class="zuoyeYulan"
  6470. v-if="
  6471. worksStudent.length &&
  6472. worksStudent[toolIndex].length > 0
  6473. "
  6474. >
  6475. <div class="worksTop">
  6476. <div>作业预览</div>
  6477. <div
  6478. class="corOpen"
  6479. @click="contract(toolIndex)"
  6480. v-if="
  6481. (isCloseList[toolIndex].isCloseBoolean) &&
  6482. isCloseList[toolIndex].isClose == 0
  6483. "
  6484. >
  6485. 折叠
  6486. </div>
  6487. <div
  6488. class="corOpen"
  6489. @click="contract(toolIndex)"
  6490. v-if="isCloseList[toolIndex].isClose == 1"
  6491. >
  6492. 展开
  6493. </div>
  6494. </div>
  6495. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6496. </div>
  6497. <div
  6498. :id="'tool-' + toolIndex"
  6499. :style="{
  6500. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6501. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6502. }"
  6503. class="worksDetailBox"
  6504. v-if="
  6505. worksStudent.length &&
  6506. worksStudent[toolIndex].length > 0
  6507. "
  6508. >
  6509. <div
  6510. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6511. :key="wIndex"
  6512. class="isWorksName2"
  6513. @click="openXz(w, toolIndex)"
  6514. >
  6515. {{ w.sName }}
  6516. <img
  6517. class="deleteImg deleteImg2"
  6518. src="../../assets/deleteworks.png"
  6519. v-if="w.userid == userid || tType == 1 || tType == 4"
  6520. @click.stop="deleteWorks(w.wid)"
  6521. alt
  6522. />
  6523. </div>
  6524. <!-- <div
  6525. class="works"
  6526. style="
  6527. width: 200px;
  6528. height: 140px;
  6529. margin: 10px 10px 10px 0;
  6530. border-radius: 15px;
  6531. box-shadow: 0 0 6px 1px #dfdada;
  6532. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6533. :class="w.type == 5 ? 'isTypeOne' : ''">
  6534. <div class="workImg">
  6535. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6536. </div>
  6537. <div class="worksName">
  6538. <div>{{ w.sName }}</div>
  6539. </div>
  6540. </div> -->
  6541. </div>
  6542. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6543. 未提交
  6544. </div>
  6545. <div
  6546. class="noWorksS"
  6547. v-if="noWorksS && noWorksS[toolIndex].length"
  6548. >
  6549. <div
  6550. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6551. :key="sIndex"
  6552. class="noWorksName"
  6553. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6554. >
  6555. <el-tooltip effect="dark" :content="s.student" placement="top">
  6556. <span>{{ s.student }}</span>
  6557. </el-tooltip>
  6558. </div>
  6559. </div>
  6560. </div>
  6561. <div
  6562. v-if="
  6563. tType &&
  6564. tType == 2 &&
  6565. !sIsOpen &&
  6566. tool.tool.indexOf(41) != -1
  6567. "
  6568. class="worksBox"
  6569. >
  6570. <div
  6571. class="zuoyeYulan"
  6572. v-if="workStudent[toolIndex].length > 0"
  6573. >
  6574. <span class="worksTitle">作业预览</span>
  6575. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6576. </div>
  6577. <div
  6578. class="worksDetailBox"
  6579. v-if="workStudent[toolIndex].length > 0"
  6580. >
  6581. <div
  6582. class="works"
  6583. style="
  6584. width: 200px;
  6585. height: 140px;
  6586. margin: 10px 10px 10px 0;
  6587. "
  6588. v-for="(w, wIndex) in workStudent[toolIndex]"
  6589. :key="wIndex"
  6590. >
  6591. <div class="workImg">
  6592. <img
  6593. src="../../assets/icon/works/noImg.png"
  6594. @click="openXz(w, toolIndex)"
  6595. alt
  6596. />
  6597. <img
  6598. class="deleteImg"
  6599. src="../../assets/deleteworks.png"
  6600. v-if="
  6601. w.userid == userid || tType == 1 || tType == 4
  6602. "
  6603. @click.stop="deleteWorks(w.wid)"
  6604. alt
  6605. />
  6606. </div>
  6607. <div class="worksName">
  6608. <div>{{ w.sName }}</div>
  6609. </div>
  6610. </div>
  6611. </div>
  6612. </div>
  6613. <div v-if="false" class="xuan_right_box">
  6614. <div
  6615. class="tool_right_box"
  6616. v-for="(item, index) in tool.sentenceList"
  6617. :key="index"
  6618. >
  6619. <div>
  6620. <span
  6621. style="word-break: break-all; white-space: normal"
  6622. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6623. >
  6624. </div>
  6625. <div class="right_box_xuan">
  6626. <span>正确率</span>
  6627. <span>{{
  6628. (checkJson[toolIndex][index].right
  6629. ? checkJson[toolIndex][index].right
  6630. : 0) + "%"
  6631. }}</span>
  6632. </div>
  6633. <div class="right_box_xuan">
  6634. <span>答对人数</span>
  6635. <span>{{
  6636. checkJson[toolIndex][index].rightPerson.length
  6637. }}</span>
  6638. </div>
  6639. </div>
  6640. </div>
  6641. <div
  6642. v-if="
  6643. tType &&
  6644. ((tType == 2 && sIsOpen == true) ||
  6645. tType == 1 ||
  6646. tType == 4) &&
  6647. tool.tool.indexOf(47) != -1
  6648. "
  6649. >
  6650. <!-- <AnswerData
  6651. v-if="
  6652. checkJson[toolIndex].length &&
  6653. (tool.sentenceList || tool.sentenceList.length > 0)
  6654. "
  6655. :people="checkJson[toolIndex]"
  6656. ></AnswerData> -->
  6657. <sortToolWorkShow v-if="
  6658. worksStudent[toolIndex].length
  6659. "
  6660. :people="worksStudent[toolIndex]"></sortToolWorkShow>
  6661. </div>
  6662. <div
  6663. v-if="
  6664. tType &&
  6665. tType == 2 &&
  6666. !sIsOpen &&
  6667. tool.tool.indexOf(47) != -1
  6668. "
  6669. class="worksBox"
  6670. >
  6671. <div
  6672. class="zuoyeYulan"
  6673. v-if="workStudent[toolIndex].length > 0"
  6674. >
  6675. <span class="worksTitle">作业预览</span>
  6676. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6677. </div>
  6678. <div
  6679. class="worksDetailBox"
  6680. v-if="workStudent[toolIndex].length > 0"
  6681. >
  6682. <div
  6683. class="works"
  6684. style="
  6685. width: 200px;
  6686. height: 140px;
  6687. margin: 10px 10px 10px 0;
  6688. "
  6689. v-for="(w, wIndex) in workStudent[toolIndex]"
  6690. :key="wIndex"
  6691. >
  6692. <!-- @click="openXz(w, toolIndex)" -->
  6693. <div class="workImg" @click="openSen(w, toolIndex)">
  6694. <img src="../../assets/icon/works/noImg.png" alt />
  6695. <img
  6696. class="deleteImg"
  6697. src="../../assets/deleteworks.png"
  6698. v-if="
  6699. w.userid == userid || tType == 1 || tType == 4
  6700. "
  6701. @click.stop="deleteWorks(w.wid)"
  6702. alt
  6703. />
  6704. </div>
  6705. <div class="worksName">
  6706. <div>
  6707. {{ w.sName }}
  6708. </div>
  6709. </div>
  6710. </div>
  6711. </div>
  6712. </div>
  6713. <div
  6714. v-if="
  6715. tType &&
  6716. ((tType == 2 && sIsOpen == true) ||
  6717. tType == 1 ||
  6718. tType == 4) &&
  6719. tool.tool.indexOf(47) != -1
  6720. "
  6721. class="worksBox"
  6722. >
  6723. <div
  6724. class="zuoyeYulan"
  6725. v-if="
  6726. worksStudent.length &&
  6727. worksStudent[toolIndex].length > 0
  6728. "
  6729. >
  6730. <div class="worksTop">
  6731. <div>作业预览</div>
  6732. <div
  6733. class="corOpen"
  6734. @click="contract(toolIndex)"
  6735. v-if="
  6736. (isCloseList[toolIndex].isCloseBoolean) &&
  6737. isCloseList[toolIndex].isClose == 0
  6738. "
  6739. >
  6740. 折叠
  6741. </div>
  6742. <div
  6743. class="corOpen"
  6744. @click="contract(toolIndex)"
  6745. v-if="isCloseList[toolIndex].isClose == 1"
  6746. >
  6747. 展开
  6748. </div>
  6749. </div>
  6750. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6751. </div>
  6752. <div
  6753. :id="'tool-' + toolIndex"
  6754. :style="{
  6755. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6756. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6757. }"
  6758. class="worksDetailBox"
  6759. v-if="
  6760. worksStudent.length &&
  6761. worksStudent[toolIndex].length > 0
  6762. "
  6763. >
  6764. <!-- @click="openXz(w, toolIndex)" -->
  6765. <div
  6766. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6767. :key="wIndex"
  6768. class="isWorksName2"
  6769. @click="openSen(w, toolIndex)"
  6770. >
  6771. {{ w.sName }}
  6772. <img
  6773. class="deleteImg deleteImg2"
  6774. src="../../assets/deleteworks.png"
  6775. v-if="w.userid == userid || tType == 1 || tType == 4"
  6776. @click.stop="deleteWorks(w.wid)"
  6777. alt
  6778. />
  6779. </div>
  6780. </div>
  6781. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6782. 未提交
  6783. </div>
  6784. <div
  6785. class="noWorksS"
  6786. v-if="noWorksS && noWorksS[toolIndex].length"
  6787. >
  6788. <div
  6789. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6790. :key="sIndex"
  6791. class="noWorksName"
  6792. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6793. >
  6794. <el-tooltip effect="dark" :content="s.student" placement="top">
  6795. <span>{{ s.student }}</span>
  6796. </el-tooltip>
  6797. </div>
  6798. </div>
  6799. </div>
  6800. <div
  6801. v-if="
  6802. tType &&
  6803. ((tType == 2 && sIsOpen == true) ||
  6804. tType == 1 ||
  6805. tType == 4) &&
  6806. tool.tool.indexOf(48) != -1
  6807. "
  6808. class="worksBox"
  6809. >
  6810. <div
  6811. class="zuoyeYulan"
  6812. v-if="
  6813. worksStudent.length &&
  6814. worksStudent[toolIndex].length > 0
  6815. "
  6816. >
  6817. <div class="worksTop">
  6818. <div>作业预览</div>
  6819. <div
  6820. class="corOpen"
  6821. @click="contract(toolIndex)"
  6822. v-if="
  6823. (isCloseList[toolIndex].isCloseBoolean) &&
  6824. isCloseList[toolIndex].isClose == 0
  6825. "
  6826. >
  6827. 折叠
  6828. </div>
  6829. <div
  6830. class="corOpen"
  6831. @click="contract(toolIndex)"
  6832. v-if="isCloseList[toolIndex].isClose == 1"
  6833. >
  6834. 展开
  6835. </div>
  6836. </div>
  6837. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6838. </div>
  6839. <div
  6840. :id="'tool-' + toolIndex"
  6841. :style="{
  6842. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6843. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6844. }"
  6845. class="worksDetailBox"
  6846. v-if="
  6847. worksStudent.length &&
  6848. worksStudent[toolIndex].length > 0
  6849. "
  6850. >
  6851. <div
  6852. class="works"
  6853. style="
  6854. width: 200px;
  6855. height: 140px;
  6856. margin: 10px 10px 10px 0;
  6857. border-radius: 15px;
  6858. box-shadow: 0 0 6px 1px #dfdada;
  6859. "
  6860. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6861. :key="wIndex"
  6862. :class="w.type == 1 ? 'isTypeOne' : ''"
  6863. >
  6864. <div class="workImg">
  6865. <img :src="word" @click="openTable(w)" alt />
  6866. <!-- @click="openFile(w.works)" -->
  6867. <div
  6868. class="answerScore"
  6869. v-if="w.score"
  6870. @click.stop="openScore(w)"
  6871. :class="{
  6872. rightW:
  6873. w.userid == userid ||
  6874. tType == 1 ||
  6875. tType == 4 ||
  6876. w.ateacher == userid,
  6877. }"
  6878. >
  6879. {{ JSON.parse(w.score).wScore }}分
  6880. </div>
  6881. <div
  6882. class="answerScore"
  6883. @click.stop="openScore(w)"
  6884. v-else-if="courseDetail.userid == userid"
  6885. :class="{
  6886. rightW:
  6887. w.userid == userid ||
  6888. tType == 1 ||
  6889. tType == 4 ||
  6890. w.ateacher == userid,
  6891. }"
  6892. >
  6893. 评分
  6894. </div>
  6895. <img
  6896. class="deleteImg"
  6897. src="../../assets/deleteworks.png"
  6898. v-if="
  6899. w.userid == userid || tType == 1 || tType == 4
  6900. "
  6901. @click.stop="deleteWorks(w.wid)"
  6902. alt
  6903. />
  6904. </div>
  6905. <div class="comment" style="min-width: 200px">
  6906. <div class="worksName">
  6907. <div>{{ w.sName }}</div>
  6908. </div>
  6909. <div class="commentList">
  6910. <div class="commentList">
  6911. <div
  6912. class="commentImg"
  6913. @click="
  6914. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6915. "
  6916. >
  6917. <img
  6918. :src="w.isLikes == true ? likes : noLikes"
  6919. alt=""
  6920. />
  6921. </div>
  6922. <div>{{ w.likesCount }}</div>
  6923. </div>
  6924. <div class="commentList" style="margin-right: 15px">
  6925. <div
  6926. class="commentImg"
  6927. @click="commentOther(w, toolIndex, wIndex)"
  6928. >
  6929. <img
  6930. src="../../assets/icon/comment/comment.png"
  6931. alt=""
  6932. />
  6933. </div>
  6934. <div>{{ w.commentCount }}</div>
  6935. </div>
  6936. </div>
  6937. </div>
  6938. </div>
  6939. </div>
  6940. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6941. 未提交
  6942. </div>
  6943. <div
  6944. class="noWorksS"
  6945. v-if="noWorksS && noWorksS[toolIndex].length"
  6946. >
  6947. <div
  6948. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6949. :key="sIndex"
  6950. class="noWorksName"
  6951. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6952. >
  6953. <el-tooltip effect="dark" :content="s.student" placement="top">
  6954. <span>{{ s.student }}</span>
  6955. </el-tooltip>
  6956. </div>
  6957. </div>
  6958. </div>
  6959. <div
  6960. v-if="
  6961. tType &&
  6962. tType == 2 &&
  6963. !sIsOpen &&
  6964. tool.tool.indexOf(48) != -1
  6965. "
  6966. class="worksBox"
  6967. >
  6968. <div
  6969. class="zuoyeYulan"
  6970. v-if="workStudent[toolIndex].length > 0"
  6971. >
  6972. <span class="worksTitle">作业预览</span>
  6973. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6974. </div>
  6975. <div
  6976. class="worksDetailBox"
  6977. v-if="workStudent[toolIndex].length > 0"
  6978. >
  6979. <div
  6980. class="works"
  6981. style="
  6982. width: 200px;
  6983. height: 140px;
  6984. margin: 10px 10px 10px 0;
  6985. box-shadow: 0 0 6px 1px #dfdada;
  6986. "
  6987. v-for="(w, wIndex) in workStudent[toolIndex]"
  6988. :key="wIndex"
  6989. >
  6990. <div class="workImg">
  6991. <img :src="word" @click="openTable(w)" alt />
  6992. <div
  6993. class="answerScore"
  6994. v-if="w.score"
  6995. @click.stop="openScore(w)"
  6996. :class="{
  6997. rightW:
  6998. w.userid == userid || tType == 1 || tType == 4,
  6999. }"
  7000. >
  7001. {{ JSON.parse(w.score).wScore }}分
  7002. </div>
  7003. <div
  7004. class="answerScore"
  7005. @click.stop="openScore(w)"
  7006. v-else-if="courseDetail.userid == userid"
  7007. :class="{
  7008. rightW:
  7009. w.userid == userid || tType == 1 || tType == 4,
  7010. }"
  7011. >
  7012. 评分
  7013. </div>
  7014. <img
  7015. class="deleteImg"
  7016. src="../../assets/deleteworks.png"
  7017. v-if="
  7018. w.userid == userid || tType == 1 || tType == 4
  7019. "
  7020. @click.stop="deleteWorks(w.wid)"
  7021. alt
  7022. />
  7023. </div>
  7024. <div class="worksName">
  7025. <div>{{ w.sName }}</div>
  7026. </div>
  7027. </div>
  7028. </div>
  7029. </div>
  7030. <div
  7031. v-if="
  7032. tType &&
  7033. ((tType == 2 && sIsOpen == true) ||
  7034. tType == 1 ||
  7035. tType == 4) &&
  7036. tool.tool.indexOf(52) != -1
  7037. "
  7038. class="worksBox"
  7039. >
  7040. <div
  7041. class="zuoyeYulan"
  7042. v-if="
  7043. worksStudent.length &&
  7044. worksStudent[toolIndex].length > 0
  7045. "
  7046. >
  7047. <div class="worksTop">
  7048. <div>作业预览</div>
  7049. <div
  7050. class="corOpen"
  7051. @click="contract(toolIndex)"
  7052. v-if="
  7053. (isCloseList[toolIndex].isCloseBoolean) &&
  7054. isCloseList[toolIndex].isClose == 0
  7055. "
  7056. >
  7057. 折叠
  7058. </div>
  7059. <div
  7060. class="corOpen"
  7061. @click="contract(toolIndex)"
  7062. v-if="isCloseList[toolIndex].isClose == 1"
  7063. >
  7064. 展开
  7065. </div>
  7066. </div>
  7067. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7068. </div>
  7069. <div
  7070. :id="'tool-' + toolIndex"
  7071. :style="{
  7072. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  7073. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  7074. }"
  7075. class="worksDetailBox"
  7076. v-if="
  7077. worksStudent.length &&
  7078. worksStudent[toolIndex].length > 0
  7079. "
  7080. >
  7081. <div
  7082. class="works"
  7083. style="
  7084. width: 200px;
  7085. height: 140px;
  7086. margin: 10px 10px 10px 0;
  7087. border-radius: 15px;
  7088. box-shadow: 0 0 6px 1px #dfdada;
  7089. "
  7090. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7091. :key="wIndex"
  7092. :class="w.type == 1 ? 'isTypeOne' : ''"
  7093. >
  7094. <div class="workImg">
  7095. <img :src="word" @click="openWord(w)" alt />
  7096. <!-- @click="openFile(w.works)" -->
  7097. <div
  7098. class="answerScore"
  7099. v-if="w.score"
  7100. @click.stop="openScore(w)"
  7101. :class="{
  7102. rightW:
  7103. w.userid == userid ||
  7104. tType == 1 ||
  7105. tType == 4 ||
  7106. w.ateacher == userid,
  7107. }"
  7108. >
  7109. {{ JSON.parse(w.score).wScore }}分
  7110. </div>
  7111. <div
  7112. class="answerScore"
  7113. @click.stop="openScore(w)"
  7114. v-else-if="courseDetail.userid == userid"
  7115. :class="{
  7116. rightW:
  7117. w.userid == userid ||
  7118. tType == 1 ||
  7119. tType == 4 ||
  7120. w.ateacher == userid,
  7121. }"
  7122. >
  7123. 评分
  7124. </div>
  7125. <img
  7126. class="deleteImg"
  7127. src="../../assets/deleteworks.png"
  7128. v-if="
  7129. w.userid == userid || tType == 1 || tType == 4
  7130. "
  7131. @click.stop="deleteWorks(w.wid)"
  7132. alt
  7133. />
  7134. </div>
  7135. <div class="comment" style="min-width: 200px">
  7136. <div class="worksName">
  7137. <div>{{ w.sName }}</div>
  7138. </div>
  7139. <div class="commentList">
  7140. <div class="commentList">
  7141. <div
  7142. class="commentImg"
  7143. @click="
  7144. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  7145. "
  7146. >
  7147. <img
  7148. :src="w.isLikes == true ? likes : noLikes"
  7149. alt=""
  7150. />
  7151. </div>
  7152. <div>{{ w.likesCount }}</div>
  7153. </div>
  7154. <div class="commentList" style="margin-right: 15px">
  7155. <div
  7156. class="commentImg"
  7157. @click="commentOther(w, toolIndex, wIndex)"
  7158. >
  7159. <img
  7160. src="../../assets/icon/comment/comment.png"
  7161. alt=""
  7162. />
  7163. </div>
  7164. <div>{{ w.commentCount }}</div>
  7165. </div>
  7166. </div>
  7167. </div>
  7168. </div>
  7169. </div>
  7170. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7171. 未提交
  7172. </div>
  7173. <div
  7174. class="noWorksS"
  7175. v-if="noWorksS && noWorksS[toolIndex].length"
  7176. >
  7177. <div
  7178. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7179. :key="sIndex"
  7180. class="noWorksName"
  7181. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  7182. >
  7183. <el-tooltip effect="dark" :content="s.student" placement="top">
  7184. <span>{{ s.student }}</span>
  7185. </el-tooltip>
  7186. </div>
  7187. </div>
  7188. </div>
  7189. <div
  7190. v-if="
  7191. tType &&
  7192. tType == 2 &&
  7193. !sIsOpen &&
  7194. tool.tool.indexOf(52) != -1
  7195. "
  7196. class="worksBox"
  7197. >
  7198. <div
  7199. class="zuoyeYulan"
  7200. v-if="workStudent[toolIndex].length > 0"
  7201. >
  7202. <span class="worksTitle">作业预览</span>
  7203. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7204. </div>
  7205. <div
  7206. class="worksDetailBox"
  7207. v-if="workStudent[toolIndex].length > 0"
  7208. >
  7209. <div
  7210. class="works"
  7211. style="
  7212. width: 200px;
  7213. height: 140px;
  7214. margin: 10px 10px 10px 0;
  7215. box-shadow: 0 0 6px 1px #dfdada;
  7216. "
  7217. v-for="(w, wIndex) in workStudent[toolIndex]"
  7218. :key="wIndex"
  7219. >
  7220. <div class="workImg">
  7221. <img :src="word" @click="openWord(w)" alt />
  7222. <div
  7223. class="answerScore"
  7224. v-if="w.score"
  7225. @click.stop="openScore(w)"
  7226. :class="{
  7227. rightW:
  7228. w.userid == userid || tType == 1 || tType == 4,
  7229. }"
  7230. >
  7231. {{ JSON.parse(w.score).wScore }}分
  7232. </div>
  7233. <div
  7234. class="answerScore"
  7235. @click.stop="openScore(w)"
  7236. v-else-if="courseDetail.userid == userid"
  7237. :class="{
  7238. rightW:
  7239. w.userid == userid || tType == 1 || tType == 4,
  7240. }"
  7241. >
  7242. 评分
  7243. </div>
  7244. <img
  7245. class="deleteImg"
  7246. src="../../assets/deleteworks.png"
  7247. v-if="
  7248. w.userid == userid || tType == 1 || tType == 4
  7249. "
  7250. @click.stop="deleteWorks(w.wid)"
  7251. alt
  7252. />
  7253. </div>
  7254. <div class="worksName">
  7255. <div>{{ w.sName }}</div>
  7256. </div>
  7257. </div>
  7258. </div>
  7259. </div>
  7260. <div
  7261. v-if="tool.tool.indexOf(49) != -1"
  7262. class="xuan_right_box"
  7263. style="margin: 0 15px 0 25px; width: 93%"
  7264. >
  7265. <div
  7266. v-if="courseDetail.userid == userid"
  7267. style="
  7268. display: flex;
  7269. justify-content: flex-end;
  7270. margin-right: 10px;
  7271. "
  7272. >
  7273. <el-button
  7274. type="primary"
  7275. size="small"
  7276. @click="addTools(49, toolIndex, taskCount)"
  7277. >分组设置</el-button
  7278. >
  7279. </div>
  7280. <div
  7281. v-if="groupStudentUid[toolIndex]"
  7282. class="group_staic_box"
  7283. >
  7284. <div
  7285. v-for="(gp, gd) in tool.groupJson.group"
  7286. :key="gd"
  7287. class="group_staic"
  7288. >
  7289. <span> {{ gp.name }}</span>
  7290. <span>
  7291. 目前人数{{
  7292. groupStudentUid[toolIndex][gd].length
  7293. }}人</span
  7294. >
  7295. </div>
  7296. </div>
  7297. </div>
  7298. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  7299. <div
  7300. class="zuoyeYulan"
  7301. v-if="
  7302. worksStudent.length &&
  7303. worksStudent[toolIndex].length > 0
  7304. "
  7305. >
  7306. <span class="worksTitle">作业预览</span>
  7307. </div>
  7308. <div>
  7309. <div
  7310. class="group_workBox"
  7311. v-for="(g, gindex) in tool.groupJson.group"
  7312. :key="gindex"
  7313. >
  7314. <div
  7315. class="group_box"
  7316. v-if="
  7317. groupStudentUid[toolIndex] &&
  7318. worksStudent[toolIndex] &&
  7319. (worksStudent[toolIndex][gindex].length ||
  7320. groupStudentUid[toolIndex][gindex].indexOf(
  7321. userid
  7322. ) != -1)
  7323. "
  7324. >
  7325. <div class="group_title">
  7326. <el-tooltip
  7327. class="item"
  7328. effect="light"
  7329. :content="g.name"
  7330. placement="top"
  7331. >
  7332. <div class="group_name">{{ g.name }}</div>
  7333. </el-tooltip>
  7334. <el-button
  7335. type="primary"
  7336. v-if="
  7337. groupStudentUid[toolIndex][gindex].indexOf(
  7338. userid
  7339. ) != -1
  7340. "
  7341. @click="groupUpload(toolIndex, taskCount, gindex)"
  7342. >上传作业</el-button
  7343. >
  7344. </div>
  7345. <div class="group_work">
  7346. <div
  7347. class="works"
  7348. style="
  7349. width: 200px;
  7350. height: 140px;
  7351. margin: 10px 10px 10px 0;
  7352. border-radius: 15px;
  7353. box-shadow: 0 0 6px 1px #dfdada;
  7354. "
  7355. v-for="(w, wIndex) in worksStudent[toolIndex][
  7356. gindex
  7357. ]"
  7358. :key="wIndex"
  7359. :class="w.type == 1 ? 'isTypeOne' : ''"
  7360. >
  7361. <div class="workImg" v-if="w.type == 0">
  7362. <img
  7363. :src="w.works"
  7364. @click="previewImg(w.works,w)"
  7365. alt
  7366. />
  7367. <div
  7368. class="answerScore"
  7369. v-if="w.score"
  7370. @click.stop="openScore(w)"
  7371. :class="{
  7372. rightW:
  7373. w.userid == userid ||
  7374. tType == 1 ||
  7375. tType == 4 ||
  7376. w.ateacher == userid,
  7377. }"
  7378. >
  7379. {{ JSON.parse(w.score).wScore }}分
  7380. </div>
  7381. <div
  7382. class="answerScore"
  7383. @click.stop="openScore(w)"
  7384. v-else-if="courseDetail.userid == userid"
  7385. :class="{
  7386. rightW:
  7387. w.userid == userid ||
  7388. tType == 1 ||
  7389. tType == 4 ||
  7390. w.ateacher == userid,
  7391. }"
  7392. >
  7393. 评分
  7394. </div>
  7395. <img
  7396. class="deleteImg"
  7397. src="../../assets/deleteworks.png"
  7398. v-if="
  7399. w.userid == userid ||
  7400. tType == 1 ||
  7401. tType == 4
  7402. "
  7403. @click.stop="deleteWorks(w.wid)"
  7404. alt
  7405. />
  7406. </div>
  7407. <div class="workImg" v-if="w.type == 1">
  7408. <img
  7409. :src="word"
  7410. @click="openFile(w.works)"
  7411. alt
  7412. />
  7413. <!-- @click="openFile(w.works)" -->
  7414. <div
  7415. class="answerScore"
  7416. v-if="w.score"
  7417. @click.stop="openScore(w)"
  7418. :class="{
  7419. rightW:
  7420. w.userid == userid ||
  7421. tType == 1 ||
  7422. tType == 4 ||
  7423. w.ateacher == userid,
  7424. }"
  7425. >
  7426. {{ JSON.parse(w.score).wScore }}分
  7427. </div>
  7428. <div
  7429. class="answerScore"
  7430. @click.stop="openScore(w)"
  7431. v-else-if="courseDetail.userid == userid"
  7432. :class="{
  7433. rightW:
  7434. w.userid == userid ||
  7435. tType == 1 ||
  7436. tType == 4 ||
  7437. w.ateacher == userid,
  7438. }"
  7439. >
  7440. 评分
  7441. </div>
  7442. <img
  7443. class="deleteImg"
  7444. src="../../assets/deleteworks.png"
  7445. v-if="
  7446. w.userid == userid ||
  7447. tType == 1 ||
  7448. tType == 4
  7449. "
  7450. @click.stop="deleteWorks(w.wid)"
  7451. alt
  7452. />
  7453. </div>
  7454. <div class="workImg" v-if="w.type == 3">
  7455. <img
  7456. style="cursor: pointer"
  7457. :src="video"
  7458. @click="openVideo(w)"
  7459. alt
  7460. />
  7461. <!-- @click="openVideo(w.works)" -->
  7462. <div
  7463. class="answerScore"
  7464. v-if="w.score"
  7465. @click.stop="openScore(w)"
  7466. :class="{
  7467. rightW:
  7468. w.userid == userid ||
  7469. tType == 1 ||
  7470. tType == 4 ||
  7471. w.ateacher == userid,
  7472. }"
  7473. >
  7474. {{ JSON.parse(w.score).wScore }}分
  7475. </div>
  7476. <div
  7477. class="answerScore"
  7478. @click.stop="openScore(w)"
  7479. v-else-if="courseDetail.userid == userid"
  7480. :class="{
  7481. rightW:
  7482. w.userid == userid ||
  7483. tType == 1 ||
  7484. tType == 4 ||
  7485. w.ateacher == userid,
  7486. }"
  7487. >
  7488. 评分
  7489. </div>
  7490. <img
  7491. class="deleteImg"
  7492. src="../../assets/deleteworks.png"
  7493. v-if="
  7494. w.userid == userid ||
  7495. tType == 1 ||
  7496. tType == 4
  7497. "
  7498. @click.stop="deleteWorks(w.wid)"
  7499. alt
  7500. />
  7501. </div>
  7502. <div class="workImg" v-if="w.type == 12">
  7503. <img
  7504. style="cursor: pointer"
  7505. :src="word2"
  7506. @click="downloadFile(w.works,w.userid)"
  7507. alt
  7508. />
  7509. <!-- @click="openVideo(w.works)" -->
  7510. <div
  7511. class="answerScore"
  7512. v-if="w.score"
  7513. @click.stop="openScore(w)"
  7514. :class="{
  7515. rightW:
  7516. w.userid == userid ||
  7517. tType == 1 ||
  7518. tType == 4 ||
  7519. w.ateacher == userid,
  7520. }"
  7521. >
  7522. {{ JSON.parse(w.score).wScore }}分
  7523. </div>
  7524. <div
  7525. class="answerScore"
  7526. @click.stop="openScore(w)"
  7527. v-else-if="courseDetail.userid == userid"
  7528. :class="{
  7529. rightW:
  7530. w.userid == userid ||
  7531. tType == 1 ||
  7532. tType == 4 ||
  7533. w.ateacher == userid,
  7534. }"
  7535. >
  7536. 评分
  7537. </div>
  7538. <img
  7539. class="deleteImg"
  7540. src="../../assets/deleteworks.png"
  7541. v-if="
  7542. w.userid == userid ||
  7543. tType == 1 ||
  7544. tType == 4
  7545. "
  7546. @click.stop="deleteWorks(w.wid)"
  7547. alt
  7548. />
  7549. </div>
  7550. <div class="comment" style="min-width: 200px">
  7551. <div class="worksName">
  7552. <div>{{ w.sName }}</div>
  7553. </div>
  7554. <div class="commentList">
  7555. <div class="commentList">
  7556. <div
  7557. class="commentImg"
  7558. @click="
  7559. isLikes(
  7560. w.wid,
  7561. userid,
  7562. 1,
  7563. null,
  7564. w.isLikes,
  7565. w.sName
  7566. )
  7567. "
  7568. >
  7569. <img
  7570. :src="
  7571. w.isLikes == true ? likes : noLikes
  7572. "
  7573. alt=""
  7574. />
  7575. </div>
  7576. <div>{{ w.likesCount }}</div>
  7577. </div>
  7578. <div
  7579. class="commentList"
  7580. style="margin-right: 15px"
  7581. >
  7582. <div
  7583. class="commentImg"
  7584. @click="
  7585. commentOther(
  7586. w,
  7587. toolIndex,
  7588. wIndex,
  7589. gindex
  7590. )
  7591. "
  7592. >
  7593. <img
  7594. src="../../assets/icon/comment/comment.png"
  7595. alt=""
  7596. />
  7597. </div>
  7598. <div>{{ w.commentCount }}</div>
  7599. </div>
  7600. </div>
  7601. </div>
  7602. </div>
  7603. </div>
  7604. </div>
  7605. </div>
  7606. </div>
  7607. </div>
  7608. </div>
  7609. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7610. 上传文件
  7611. <input
  7612. type="file"
  7613. accept="image/png, image/gif, image/jpeg"
  7614. style="display: none"
  7615. @change="beforeUpload1($event, 2, index)"
  7616. />
  7617. </div>-->
  7618. </div>
  7619. </div>
  7620. <!-- <div
  7621. class="vedioBox"
  7622. style="margin-top: 10px"
  7623. v-if="
  7624. courseDetail.userid == userid ||
  7625. (courseDetail.course_teacher &&
  7626. courseDetail.course_teacher.indexOf(userid) != -1)
  7627. "
  7628. :style="{
  7629. borderRadius:
  7630. !(
  7631. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7632. .toolChoose[0].tool &&
  7633. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7634. .toolChoose[0].tool.length > 0
  7635. ) &&
  7636. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7637. .taskDetail == '' &&
  7638. vChapterData[taskCount].length == 0 &&
  7639. fileC[taskCount].length == 0
  7640. ? '0 0 20px 20px'
  7641. : '20px',
  7642. }"
  7643. >
  7644. <div
  7645. class="queTop"
  7646. @click="isClose = !isClose"
  7647. style="
  7648. padding: 15px 0 15px 37px;
  7649. justify-content: space-between;
  7650. "
  7651. >
  7652. <div class="queTopTitle">新增工具</div>
  7653. <div class="queTopRight">
  7654. <div class="queTopClose" v-if="isClose == 0">
  7655. 展开
  7656. <div class="closeImg">
  7657. <img src="../../assets/icon/newIcon/close.png" alt="" />
  7658. </div>
  7659. </div>
  7660. <div class="queTopClose" v-if="isClose == 1">
  7661. 折叠
  7662. <div class="openImg">
  7663. <img src="../../assets/icon/newIcon/open.png" alt="" />
  7664. </div>
  7665. </div>
  7666. <el-button
  7667. style="margin: 0 30px 0 auto"
  7668. type="primary"
  7669. size="small"
  7670. v-if="isClose == 1 && checktoolArray.length > 0"
  7671. @click.stop="addToolChoose"
  7672. >确定</el-button
  7673. >
  7674. </div>
  7675. </div>
  7676. <div
  7677. class="tool_work_box"
  7678. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7679. >
  7680. <div class="tool_box">
  7681. <div class="tool_type_box">
  7682. <div class="chooseWho">
  7683. <div
  7684. :class="toolType == 0 ? 'isChooseActive' : ''"
  7685. @click="(toolType = 0), $forceUpdate()"
  7686. >
  7687. 互动类
  7688. </div>
  7689. <div
  7690. :class="toolType == 1 ? 'isChooseActive' : ''"
  7691. @click="(toolType = 1), $forceUpdate()"
  7692. >
  7693. 思维类
  7694. </div>
  7695. <div
  7696. :class="toolType == 2 ? 'isChooseActive' : ''"
  7697. @click="(toolType = 2), $forceUpdate()"
  7698. >
  7699. 测评类
  7700. </div>
  7701. <div
  7702. :class="toolType == 3 ? 'isChooseActive' : ''"
  7703. @click="(toolType = 3), $forceUpdate()"
  7704. >
  7705. 编程类
  7706. </div>
  7707. <div
  7708. :class="toolType == 5 ? 'isChooseActive' : ''"
  7709. @click="(toolType = 5), $forceUpdate()"
  7710. >
  7711. 学科类
  7712. </div>
  7713. </div>
  7714. </div>
  7715. <div>
  7716. <div class="toolSort" v-if="toolType == 0">
  7717. <div class="tool">
  7718. <div class="whiteBIcon" @click="addTools2(10)">
  7719. <img
  7720. src="../../assets/icon/thirdToolList/time.png"
  7721. alt
  7722. />
  7723. <div style="margin: 5px 0">倒计时</div>
  7724. </div>
  7725. <div class="check" @click="addTools2(10)">
  7726. <img
  7727. src="../../assets/icon/checkNo.png"
  7728. alt
  7729. v-if="checktoolArray.indexOf(10) == -1"
  7730. />
  7731. <div class="checkDiv" v-else>
  7732. <img src="../../assets/icon/checkedIs.png" alt /><span
  7733. >已选择</span
  7734. >
  7735. </div>
  7736. </div>
  7737. </div>
  7738. <div class="tool">
  7739. <div class="whiteBIcon" @click="addTools2(65)">
  7740. <img
  7741. src="../../assets/icon/firstToolList/pickPeople.png"
  7742. alt
  7743. />
  7744. <div style="margin: 5px 0">挑人</div>
  7745. </div>
  7746. <div class="check" @click="addTools2(65)">
  7747. <img
  7748. src="../../assets/icon/checkNo.png"
  7749. alt
  7750. v-if="checktoolArray.indexOf(65) == -1"
  7751. />
  7752. <div class="checkDiv" v-else>
  7753. <img src="../../assets/icon/checkedIs.png" alt /><span
  7754. >已选择</span
  7755. >
  7756. </div>
  7757. </div>
  7758. </div>
  7759. </div>
  7760. <div class="toolSort" v-if="toolType == 1">
  7761. <div class="tool">
  7762. <div class="whiteBIcon" @click="addTools2(7)">
  7763. <img
  7764. src="../../assets/icon/secondToolList/mindNetwork.png"
  7765. alt
  7766. />
  7767. <div style="margin: 5px 0">思维网格</div>
  7768. </div>
  7769. <div class="check" @click="addTools2(7)">
  7770. <img
  7771. src="../../assets/icon/checkNo.png"
  7772. alt
  7773. v-if="checktoolArray.indexOf(7) == -1"
  7774. />
  7775. <div class="checkDiv" v-else>
  7776. <img src="../../assets/icon/checkedIs.png" alt /><span
  7777. >已选择</span
  7778. >
  7779. </div>
  7780. </div>
  7781. </div>
  7782. <div class="tool">
  7783. <div class="whiteBIcon" @click="addTools2(1)">
  7784. <img
  7785. src="../../assets/icon/secondToolList/whiteBoard.png"
  7786. alt
  7787. />
  7788. <div style="margin: 5px 0">电子白板</div>
  7789. </div>
  7790. <div class="check" @click="addTools2(1)">
  7791. <img
  7792. src="../../assets/icon/checkNo.png"
  7793. alt
  7794. v-if="checktoolArray.indexOf(1) == -1"
  7795. />
  7796. <div class="checkDiv" v-else>
  7797. <img src="../../assets/icon/checkedIs.png" alt /><span
  7798. >已选择</span
  7799. >
  7800. </div>
  7801. </div>
  7802. </div>
  7803. <div class="tool">
  7804. <div class="whiteBIcon" @click="addTools2(52)">
  7805. <img
  7806. src="../../assets/icon/fourthToolList/text.png"
  7807. alt
  7808. />
  7809. <div style="margin: 5px 0">文档</div>
  7810. </div>
  7811. <div class="check" @click="addTools2(52)">
  7812. <img
  7813. src="../../assets/icon/checkNo.png"
  7814. alt
  7815. v-if="checktoolArray.indexOf(52) == -1"
  7816. />
  7817. <div class="checkDiv" v-else>
  7818. <img src="../../assets/icon/checkedIs.png" alt /><span
  7819. >已选择</span
  7820. >
  7821. </div>
  7822. </div>
  7823. </div>
  7824. <div class="tool">
  7825. <div class="whiteBIcon" @click="addTools2(3)">
  7826. <img
  7827. src="../../assets/icon/secondToolList/mindMapping.png"
  7828. alt
  7829. />
  7830. <div style="margin: 5px 0">思维导图</div>
  7831. </div>
  7832. <div class="check" @click="addTools2(3)">
  7833. <img
  7834. src="../../assets/icon/checkNo.png"
  7835. alt
  7836. v-if="checktoolArray.indexOf(3) == -1"
  7837. />
  7838. <div class="checkDiv" v-else>
  7839. <img src="../../assets/icon/checkedIs.png" alt /><span
  7840. >已选择</span
  7841. >
  7842. </div>
  7843. </div>
  7844. </div>
  7845. <div class="tool">
  7846. <div class="whiteBIcon" @click="addTools2(48)">
  7847. <img
  7848. src="../../assets/icon/fourthToolList/table.png"
  7849. alt
  7850. />
  7851. <div style="margin: 5px 0">表格</div>
  7852. </div>
  7853. <div class="check" @click="addTools2(48)">
  7854. <img
  7855. src="../../assets/icon/checkNo.png"
  7856. alt
  7857. v-if="checktoolArray.indexOf(48) == -1"
  7858. />
  7859. <div class="checkDiv" v-else>
  7860. <img src="../../assets/icon/checkedIs.png" alt /><span
  7861. >已选择</span
  7862. >
  7863. </div>
  7864. </div>
  7865. </div>
  7866. </div>
  7867. <div class="toolSort" v-if="toolType == 6">
  7868. <div v-show="tooC == 49">
  7869. <img
  7870. @click="addTools(tooC, toolIndex, taskCount)"
  7871. src="../../assets/icon/fourthToolList/group.png"
  7872. alt
  7873. />
  7874. <div style="margin: 5px 0">学生分组</div>
  7875. </div>
  7876. </div>
  7877. <div class="toolSort" v-if="toolType == 2">
  7878. <div class="tool">
  7879. <div class="whiteBIcon" @click="addTools2(16)">
  7880. <img
  7881. src="../../assets/icon/thirdToolList/work.png"
  7882. alt
  7883. />
  7884. <div style="margin: 5px 0">作业提交</div>
  7885. </div>
  7886. <div class="check" @click="addTools2(16)">
  7887. <img
  7888. src="../../assets/icon/checkNo.png"
  7889. alt
  7890. v-if="checktoolArray.indexOf(16) == -1"
  7891. />
  7892. <div class="checkDiv" v-else>
  7893. <img src="../../assets/icon/checkedIs.png" alt /><span
  7894. >已选择</span
  7895. >
  7896. </div>
  7897. </div>
  7898. </div>
  7899. <div class="tool">
  7900. <div class="whiteBIcon" @click="addTools2(50)">
  7901. <img
  7902. src="../../assets/icon/thirdToolList/plwork.png"
  7903. alt
  7904. />
  7905. <div style="margin: 5px 0">批量上传</div>
  7906. </div>
  7907. <div class="check" @click="addTools2(50)">
  7908. <img
  7909. src="../../assets/icon/checkNo.png"
  7910. alt
  7911. v-if="checktoolArray.indexOf(50) == -1"
  7912. />
  7913. <div class="checkDiv" v-else>
  7914. <img src="../../assets/icon/checkedIs.png" alt /><span
  7915. >已选择</span
  7916. >
  7917. </div>
  7918. </div>
  7919. </div>
  7920. </div>
  7921. <div class="toolSort" v-if="toolType == 3">
  7922. <div class="tool">
  7923. <div class="whiteBIcon" @click="addTools2(18)">
  7924. <img
  7925. src="../../assets/icon/thirdToolList/trainPlatform.png"
  7926. alt
  7927. />
  7928. <div style="margin: 5px 0">训练平台</div>
  7929. </div>
  7930. <div class="check" @click="addTools2(18)">
  7931. <img
  7932. src="../../assets/icon/checkNo.png"
  7933. alt
  7934. v-if="checktoolArray.indexOf(18) == -1"
  7935. />
  7936. <div class="checkDiv" v-else>
  7937. <img src="../../assets/icon/checkedIs.png" alt /><span
  7938. >已选择</span
  7939. >
  7940. </div>
  7941. </div>
  7942. </div>
  7943. <div class="tool">
  7944. <div class="whiteBIcon" @click="addTools2(21)">
  7945. <img
  7946. src="../../assets/icon/fourthToolList/program.png"
  7947. alt
  7948. />
  7949. <div style="margin: 5px 0">AIoT Blockly</div>
  7950. </div>
  7951. <div class="check" @click="addTools2(21)">
  7952. <img
  7953. src="../../assets/icon/checkNo.png"
  7954. alt
  7955. v-if="checktoolArray.indexOf(21) == -1"
  7956. />
  7957. <div class="checkDiv" v-else>
  7958. <img src="../../assets/icon/checkedIs.png" alt /><span
  7959. >已选择</span
  7960. >
  7961. </div>
  7962. </div>
  7963. </div>
  7964. <div class="tool">
  7965. <div class="whiteBIcon" @click="addTools2(23)">
  7966. <img
  7967. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  7968. alt
  7969. />
  7970. <div style="margin: 5px 0">AI Python</div>
  7971. </div>
  7972. <div class="check" @click="addTools2(23)">
  7973. <img
  7974. src="../../assets/icon/checkNo.png"
  7975. alt
  7976. v-if="checktoolArray.indexOf(23) == -1"
  7977. />
  7978. <div class="checkDiv" v-else>
  7979. <img src="../../assets/icon/checkedIs.png" alt /><span
  7980. >已选择</span
  7981. >
  7982. </div>
  7983. </div>
  7984. </div>
  7985. <div class="tool">
  7986. <div class="whiteBIcon" @click="addTools2(24)">
  7987. <img
  7988. src="../../assets/icon/fourthToolList/AIprogram.png"
  7989. alt
  7990. />
  7991. <div style="margin: 5px 0">AI Blockly</div>
  7992. </div>
  7993. <div class="check" @click="addTools2(24)">
  7994. <img
  7995. src="../../assets/icon/checkNo.png"
  7996. alt
  7997. v-if="checktoolArray.indexOf(24) == -1"
  7998. />
  7999. <div class="checkDiv" v-else>
  8000. <img src="../../assets/icon/checkedIs.png" alt /><span
  8001. >已选择</span
  8002. >
  8003. </div>
  8004. </div>
  8005. </div>
  8006. <div class="tool">
  8007. <div class="whiteBIcon" @click="addTools2(32)">
  8008. <img
  8009. src="../../assets/icon/thirdToolList/code.png"
  8010. alt
  8011. />
  8012. <div style="margin: 5px 0">源码编辑</div>
  8013. </div>
  8014. <div class="check" @click="addTools2(32)">
  8015. <img
  8016. src="../../assets/icon/checkNo.png"
  8017. alt
  8018. v-if="checktoolArray.indexOf(32) == -1"
  8019. />
  8020. <div class="checkDiv" v-else>
  8021. <img src="../../assets/icon/checkedIs.png" alt /><span
  8022. >已选择</span
  8023. >
  8024. </div>
  8025. </div>
  8026. </div>
  8027. <div class="tool">
  8028. <div class="whiteBIcon" @click="addTools2(57)">
  8029. <img
  8030. src="../../assets/icon/fourthToolList/cocopi.png"
  8031. alt
  8032. />
  8033. <div style="margin: 5px 0">CocoPi</div>
  8034. </div>
  8035. <div class="check" @click="addTools2(57)">
  8036. <img
  8037. src="../../assets/icon/checkNo.png"
  8038. alt
  8039. v-if="checktoolArray.indexOf(57) == -1"
  8040. />
  8041. <div class="checkDiv" v-else>
  8042. <img src="../../assets/icon/checkedIs.png" alt /><span
  8043. >已选择</span
  8044. >
  8045. </div>
  8046. </div>
  8047. </div>
  8048. <div class="tool">
  8049. <div class="whiteBIcon" @click="addTools2(63)">
  8050. <img
  8051. src="../../assets/icon/fourthToolList/Wood.png"
  8052. alt
  8053. />
  8054. <div style="margin: 5px 0">海龟编程</div>
  8055. </div>
  8056. <div class="check" @click="addTools2(63)">
  8057. <img
  8058. src="../../assets/icon/checkNo.png"
  8059. alt
  8060. v-if="checktoolArray.indexOf(63) == -1"
  8061. />
  8062. <div class="checkDiv" v-else>
  8063. <img src="../../assets/icon/checkedIs.png" alt /><span
  8064. >已选择</span
  8065. >
  8066. </div>
  8067. </div>
  8068. </div>
  8069. </div>
  8070. <div class="toolSort" v-if="toolType == 5">
  8071. <div class="tool">
  8072. <div class="whiteBIcon" @click="addTools2(28)">
  8073. <img
  8074. src="../../assets/icon/secondToolList/translation.png"
  8075. alt
  8076. />
  8077. <div style="margin: 5px 0">翻译</div>
  8078. </div>
  8079. <div class="check" @click="addTools2(28)">
  8080. <img
  8081. src="../../assets/icon/checkNo.png"
  8082. alt
  8083. v-if="checktoolArray.indexOf(28) == -1"
  8084. />
  8085. <div class="checkDiv" v-else>
  8086. <img src="../../assets/icon/checkedIs.png" alt /><span
  8087. >已选择</span
  8088. >
  8089. </div>
  8090. </div>
  8091. </div>
  8092. <div class="tool">
  8093. <div class="whiteBIcon" @click="addTools2(31)">
  8094. <img
  8095. src="../../assets/icon/secondToolList/networkPanel.png"
  8096. alt
  8097. />
  8098. <div style="margin: 5px 0">数字画板</div>
  8099. </div>
  8100. <div class="check" @click="addTools2(31)">
  8101. <img
  8102. src="../../assets/icon/checkNo.png"
  8103. alt
  8104. v-if="checktoolArray.indexOf(31) == -1"
  8105. />
  8106. <div class="checkDiv" v-else>
  8107. <img src="../../assets/icon/checkedIs.png" alt /><span
  8108. >已选择</span
  8109. >
  8110. </div>
  8111. </div>
  8112. </div>
  8113. <div class="tool">
  8114. <div class="whiteBIcon" @click="addTools2(39)">
  8115. <img
  8116. src="../../assets/icon/secondToolList/GeoGebra.png"
  8117. alt
  8118. />
  8119. <div style="margin: 5px 0">GeoGebra</div>
  8120. </div>
  8121. <div class="check" @click="addTools2(39)">
  8122. <img
  8123. src="../../assets/icon/checkNo.png"
  8124. alt
  8125. v-if="checktoolArray.indexOf(39) == -1"
  8126. />
  8127. <div class="checkDiv" v-else>
  8128. <img src="../../assets/icon/checkedIs.png" alt /><span
  8129. >已选择</span
  8130. >
  8131. </div>
  8132. </div>
  8133. </div>
  8134. <div class="tool">
  8135. <div class="whiteBIcon" @click="addTools2(66)">
  8136. <img
  8137. src="../../assets/icon/secondToolList/formulaEdi.png"
  8138. alt
  8139. />
  8140. <div style="margin: 5px 0">公式编辑</div>
  8141. </div>
  8142. <div class="check" @click="addTools2(66)">
  8143. <img
  8144. src="../../assets/icon/checkNo.png"
  8145. alt
  8146. v-if="checktoolArray.indexOf(66) == -1"
  8147. />
  8148. <div class="checkDiv" v-else>
  8149. <img src="../../assets/icon/checkedIs.png" alt /><span
  8150. >已选择</span
  8151. >
  8152. </div>
  8153. </div>
  8154. </div>
  8155. <div class="tool">
  8156. <div class="whiteBIcon" @click="addTools2(67)">
  8157. <img
  8158. src="../../assets/icon/secondToolList/molStr.png"
  8159. alt
  8160. />
  8161. <div style="margin: 5px 0">分子结构</div>
  8162. </div>
  8163. <div class="check" @click="addTools2(67)">
  8164. <img
  8165. src="../../assets/icon/checkNo.png"
  8166. alt
  8167. v-if="checktoolArray.indexOf(67) == -1"
  8168. />
  8169. <div class="checkDiv" v-else>
  8170. <img src="../../assets/icon/checkedIs.png" alt /><span
  8171. >已选择</span
  8172. >
  8173. </div>
  8174. </div>
  8175. </div>
  8176. <div class="tool">
  8177. <div class="whiteBIcon" @click="addTools2(68)">
  8178. <img
  8179. src="../../assets/icon/secondToolList/timeAxis.png"
  8180. alt
  8181. />
  8182. <div style="margin: 5px 0">时间轴</div>
  8183. </div>
  8184. <div class="check" @click="addTools2(68)">
  8185. <img
  8186. src="../../assets/icon/checkNo.png"
  8187. alt
  8188. v-if="checktoolArray.indexOf(68) == -1"
  8189. />
  8190. <div class="checkDiv" v-else>
  8191. <img src="../../assets/icon/checkedIs.png" alt /><span
  8192. >已选择</span
  8193. >
  8194. </div>
  8195. </div>
  8196. </div>
  8197. </div>
  8198. <div class="toolSort" v-if="toolType == 7">
  8199. <div class="tool">
  8200. <div class="whiteBIcon" @click="addTools2(40)">
  8201. <img
  8202. src="../../assets/icon/secondToolList/eval.png"
  8203. alt
  8204. />
  8205. <div style="margin: 5px 0">个人评价</div>
  8206. </div>
  8207. <div class="check" @click="addTools2(40)">
  8208. <img
  8209. src="../../assets/icon/checkNo.png"
  8210. alt
  8211. v-if="checktoolArray.indexOf(40) == -1"
  8212. />
  8213. <div class="checkDiv" v-else>
  8214. <img src="../../assets/icon/checkedIs.png" alt /><span
  8215. >已选择</span
  8216. >
  8217. </div>
  8218. </div>
  8219. </div>
  8220. </div>
  8221. <div class="toolSort" v-if="toolType == 4">
  8222. <div class="tool">
  8223. <div class="whiteBIcon" @click="addTools2(26)">
  8224. <img
  8225. src="../../assets/icon/thirdToolList/courseDesign.png"
  8226. alt
  8227. />
  8228. <div style="margin: 5px 0">课程设计</div>
  8229. </div>
  8230. <div class="check" @click="addTools2(26)">
  8231. <img
  8232. src="../../assets/icon/checkNo.png"
  8233. alt
  8234. v-if="checktoolArray.indexOf(26) == -1"
  8235. />
  8236. <div class="checkDiv" v-else>
  8237. <img src="../../assets/icon/checkedIs.png" alt /><span
  8238. >已选择</span
  8239. >
  8240. </div>
  8241. </div>
  8242. </div>
  8243. <div class="tool">
  8244. <div class="whiteBIcon" @click="addTools2(25)">
  8245. <img
  8246. src="../../assets/icon/thirdToolList/evalua.png"
  8247. alt
  8248. />
  8249. <div style="margin: 5px 0">目标管理</div>
  8250. </div>
  8251. <div class="check" @click="addTools2(25)">
  8252. <img
  8253. src="../../assets/icon/checkNo.png"
  8254. alt
  8255. v-if="checktoolArray.indexOf(25) == -1"
  8256. />
  8257. <div class="checkDiv" v-else>
  8258. <img src="../../assets/icon/checkedIs.png" alt /><span
  8259. >已选择</span
  8260. >
  8261. </div>
  8262. </div>
  8263. </div>
  8264. </div>
  8265. </div>
  8266. </div>
  8267. </div>
  8268. </div> -->
  8269. <div
  8270. class="vedioBox"
  8271. style="margin-top: 10px; border-radius: 20px"
  8272. v-if="
  8273. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8274. .eList &&
  8275. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8276. .eList.length &&
  8277. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8278. .eList.length > 0 &&
  8279. tType != 2
  8280. "
  8281. >
  8282. <div
  8283. class="queTop"
  8284. style="
  8285. font-size: 20px;
  8286. padding: 15px 0 15px 37px;
  8287. font-weight: bold;
  8288. "
  8289. >
  8290. <!-- <div class="question" style="width: 30px">
  8291. <img src="../assets/icon/toolIcon.png" alt />
  8292. </div>
  8293. <div class="queTitle">
  8294. <div>工具</div>
  8295. </div>-->
  8296. 评一评
  8297. </div>
  8298. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  8299. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  8300. <el-table
  8301. :data="
  8302. chapInfoList[courseType].chapterInfo[0].taskJson[
  8303. taskCount
  8304. ].eList
  8305. "
  8306. :header-cell-style="{ background: '#F0F4FA' }"
  8307. :row-class-name="tableRowClassName"
  8308. border
  8309. stripe
  8310. style="width: 100%"
  8311. >
  8312. <el-table-column
  8313. label="评价名称"
  8314. align="center"
  8315. >
  8316. <template slot-scope="scope"
  8317. ><div>{{ scope.row.value }}</div></template
  8318. >
  8319. </el-table-column>
  8320. <el-table-column
  8321. label="评价描述"
  8322. align="center"
  8323. >
  8324. <template slot-scope="scope"
  8325. ><div>
  8326. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  8327. </div></template
  8328. >
  8329. </el-table-column>
  8330. <el-table-column label="目标" align="center">
  8331. <template slot-scope="scope"
  8332. ><div>
  8333. {{
  8334. scope.row.target
  8335. ? scope.row.target[scope.row.target.length - 1]
  8336. : "-"
  8337. }}
  8338. </div></template
  8339. ></el-table-column
  8340. >
  8341. </el-table>
  8342. <!-- <div
  8343. v-for="(eItem, eIndex) in chapInfoList[courseType]
  8344. .chapterInfo[0].taskJson[taskCount].eList"
  8345. :key="eIndex"
  8346. class="elist_input_box"
  8347. >
  8348. <div style="width: 95%">
  8349. <div
  8350. style="
  8351. display: flex;
  8352. flex-direction: row;
  8353. flex-wrap: nowrap;
  8354. align-items: center;
  8355. "
  8356. >
  8357. <div style="max-width: calc(100% - 285px)">
  8358. <span>{{ eItem.value }}</span>
  8359. </div>
  8360. <div
  8361. style="
  8362. padding-left: 25px;
  8363. display: flex;
  8364. flex-direction: row;
  8365. align-items: center;
  8366. "
  8367. >
  8368. <el-rate
  8369. v-model="eItem.score"
  8370. :colors="colors"
  8371. disabled
  8372. ></el-rate>
  8373. </div>
  8374. </div>
  8375. <div class="elist_inptu_text" style="padding-left: 10px">
  8376. <span v-if="eItem.detail != ''">{{
  8377. eItem.detail
  8378. }}</span>
  8379. <span v-else style="color: #b2b1b3; font-size: 14px"
  8380. >暂无描述...</span
  8381. >
  8382. </div>
  8383. </div>
  8384. </div> -->
  8385. </div>
  8386. <div
  8387. v-if="evalua"
  8388. style="
  8389. border: 1px solid #e5e5e5;
  8390. max-width: 650px;
  8391. width: 100%;
  8392. margin-top: 20px;
  8393. box-shadow: 3px 1px 15px 3px #e0e0e0;
  8394. "
  8395. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  8396. >
  8397. <div class="e_add_top">
  8398. <div class="e_add_title" style="width: 100%">
  8399. <!-- <span>目标管理名称</span> -->
  8400. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  8401. <img
  8402. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  8403. src="../../assets/line.png"
  8404. class="cru_line"
  8405. style="
  8406. width: 125px;
  8407. height: 20px;
  8408. bottom: -10px;
  8409. left: 5px;
  8410. "
  8411. />
  8412. <!-- <el-input
  8413. v-model="eTitle"
  8414. placeholder="请输入名称"
  8415. @change="setMindData"
  8416. ></el-input>-->
  8417. <div v-show="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" class="show_taskD show" style="margin:0 0 0 auto" @click="foldEva()"><img src="../../assets/icon/newIcon/icon-slide.png" />收起目标</div>
  8418. <div v-show="!chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" style="margin:0 0 0 auto" class="show_taskD" @click="foldEva()"><img src="../../assets/icon/newIcon/icon-slide.png" />展开目标</div>
  8419. </div>
  8420. </div>
  8421. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  8422. <div class="e_add_list_pbox">
  8423. <div class="e_add_list_pbox_title">
  8424. <!-- <span class="type_title">切换模式</span> -->
  8425. <div class="type_content">
  8426. <span
  8427. :class="{ active: typeMode == 1 }"
  8428. @click="typeMode = 1"
  8429. >目标树</span
  8430. >
  8431. <span
  8432. :class="{ active: typeMode == 2 }"
  8433. @click="typeMode = 2"
  8434. >目标罗盘</span
  8435. >
  8436. <!-- <span
  8437. :class="{ active: typeMode == 3 }"
  8438. @click="typeMode = 3"
  8439. >目标看板</span
  8440. > -->
  8441. </div>
  8442. </div>
  8443. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  8444. <Mind
  8445. :showBar="false"
  8446. :mindData="data"
  8447. style="width: 100%"
  8448. v-show="typeMode == 1"
  8449. ></Mind>
  8450. <Sunburst
  8451. :Josn="eJson"
  8452. :num="eJSONNum"
  8453. style="width: 100%"
  8454. v-if="typeMode == 2"
  8455. ></Sunburst>
  8456. <SeeBoard
  8457. :Josn="eJson"
  8458. :num="eJSONNum"
  8459. :ename="eTitle"
  8460. style="width: 100%"
  8461. v-if="typeMode == 3"
  8462. >
  8463. </SeeBoard>
  8464. </div>
  8465. </div>
  8466. </div>
  8467. </div>
  8468. </div>
  8469. </div>
  8470. <!-- <div
  8471. class="project_box"
  8472. style="margin-top: 15px; padding-bottom: 30px"
  8473. >
  8474. <div
  8475. style="
  8476. display: flex;
  8477. flex-wrap: nowrap;
  8478. flex-direction: column;
  8479. position: relative;
  8480. "
  8481. >
  8482. <div class="queTop">
  8483. <div class="question">
  8484. <img src="../../assets/icon/homeWork.png" alt="" />
  8485. </div>
  8486. <div class="queTitle">
  8487. <div>作业提交<span>(提交图文视频等)</span></div>
  8488. <div>:任务:{{ task.task }}</div>
  8489. </div>
  8490. </div>
  8491. <div class="ediBottom">
  8492. <div
  8493. class="addEditor"
  8494. style="margin-top: 23px"
  8495. @click="openAddWork"
  8496. v-if="!isNoHomeWork"
  8497. >
  8498. 选择文件
  8499. </div>
  8500. <div
  8501. class="addEditor"
  8502. style="margin-top: 23px"
  8503. @click="openAddWork"
  8504. v-else
  8505. >
  8506. 已提交
  8507. </div>
  8508. </div>
  8509. </div>
  8510. </div>-->
  8511. </div>
  8512. </div>
  8513. <el-dialog
  8514. title="作业提交"
  8515. :visible.sync="dialogVisible"
  8516. :append-to-body="true"
  8517. width="500px"
  8518. :before-close="handleClose"
  8519. class="dialog_change"
  8520. >
  8521. <div class="marginT">
  8522. <div>上传文件</div>
  8523. <div style="display: flex; gap: 10px">
  8524. <div
  8525. class="chapter_add"
  8526. @click="addImg($event)"
  8527. v-if="studyJuri[0].cover.length == 0"
  8528. >
  8529. <div class="up_photo">
  8530. <img src="../../assets/icon/uploadImg.png" alt />
  8531. </div>
  8532. <!-- <input
  8533. type="file"
  8534. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8535. style="display: none"
  8536. @change="beforeUpload1($event, 1)"
  8537. /> -->
  8538. <input
  8539. type="file"
  8540. accept="*"
  8541. style="display: none"
  8542. @change="beforeUpload1($event, 1)"
  8543. />
  8544. <!-- <input
  8545. type="file"
  8546. accept="image/*"
  8547. capture="camera"
  8548. style="display: none"
  8549. @change="beforeUpload1($event, 1)"
  8550. /> -->
  8551. </div>
  8552. <div
  8553. class="chapter_add"
  8554. @click="addImg($event)"
  8555. v-if="studyJuri[0].cover.length == 0"
  8556. >
  8557. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  8558. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  8559. </div>
  8560. <input
  8561. type="file"
  8562. accept="image/*"
  8563. capture="camera"
  8564. style="display: none"
  8565. @change="beforeUpload1($event, 1)"
  8566. />
  8567. </div>
  8568. </div>
  8569. <div
  8570. class="chapter_add"
  8571. style="
  8572. display: flex;
  8573. width: 100%;
  8574. flex-direction: row;
  8575. flex-wrap: wrap;
  8576. justify-content: flex-start;
  8577. padding: 15px 0;
  8578. "
  8579. v-if="studyJuri[0].cover.length > 0"
  8580. >
  8581. <div class="upCover">
  8582. <img
  8583. :src="studyJuri[0].cover[0].url"
  8584. alt
  8585. v-if="fileType == 0"
  8586. />
  8587. <img :src="word" alt v-else-if="fileType == 1" />
  8588. <img :src="video" alt v-else-if="fileType == 2" />
  8589. <img :src="word2" alt v-else-if="fileType == 3" />
  8590. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8591. <div class="deleteWord" @click="clean(1)">
  8592. <img src="../../assets/icon/deleteWorks.png" alt />
  8593. </div>
  8594. </div>
  8595. </div>
  8596. </div>
  8597. <div
  8598. class="upload_send"
  8599. @click="addCourseWorks(taskCount)"
  8600. v-if="!proVisible"
  8601. >
  8602. 提交
  8603. </div>
  8604. </el-dialog>
  8605. </div>
  8606. </div>
  8607. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  8608. <classRoomHelper v-if="!['2'].includes(tType)" @studentFreePreview="studentFreePreview" @OpenJobPreview="OpenJobPreview" :videoStart="videoStart" :IsFollow="IsFollow" :sIsOpen="sIsOpen" :IsLookOpen="IsLookOpen" :splitScreenData="splitScreenData" @splitScreenBehavior="splitScreenBehavior" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" ref="classRoomHelperRef" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  8609. '/courseDetail?userid=' +
  8610. userid +
  8611. '&oid=' +
  8612. oid +
  8613. '&org=' +
  8614. org +
  8615. '&cid=' +
  8616. classId +
  8617. '&courseId=' +
  8618. id +
  8619. '&tType=' +
  8620. tType +
  8621. '&screenType=' +
  8622. screenType+
  8623. '&role=' +
  8624. role
  8625. )"></classRoomHelper>
  8626. <studentClassRoomHelper v-else-if="['2'].includes(tType)" @studentFreePreview="studentFreePreview" @OpenJobPreview="OpenJobPreview" :videoStart="videoStart" :IsFollow="IsFollow" :sIsOpen="sIsOpen" :IsLookOpen="IsLookOpen" :splitScreenData="splitScreenData" @splitScreenBehavior="splitScreenBehavior" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  8627. '/courseDetail?userid=' +
  8628. userid +
  8629. '&oid=' +
  8630. oid +
  8631. '&org=' +
  8632. org +
  8633. '&cid=' +
  8634. classId +
  8635. '&courseId=' +
  8636. id +
  8637. '&tType=' +
  8638. tType +
  8639. '&screenType=' +
  8640. screenType+
  8641. '&role=' +
  8642. role
  8643. )"></studentClassRoomHelper>
  8644. <div
  8645. class="pButton"
  8646. @click="(pzDialog = true), selectPz()"
  8647. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8648. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8649. >
  8650. <!-- 批 -->
  8651. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  8652. </div>
  8653. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8654. <div class="pzTop2">
  8655. <!-- <div>评论</div>
  8656. <div @click="pzDialog = false">
  8657. <img src="../../assets/close1.png" alt="" />
  8658. </div> -->
  8659. <div class="checkbox">
  8660. <!-- <div class="check" style="font-size: 25px; position: unset">
  8661. 评论
  8662. </div> -->
  8663. <div class="cb-tabList">
  8664. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8665. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8666. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8667. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  8668. </div>
  8669. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8670. <el-option label="时间降序" :value="1"></el-option>
  8671. <el-option label="时间升序" :value="2"></el-option>
  8672. <el-option label="我的评课" :value="3"></el-option>
  8673. </el-select>
  8674. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8675. </div>
  8676. </div>
  8677. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8678. <div class="pzListBox" v-if="pzList && pzList.length">
  8679. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8680. <div class="pzNavTop">
  8681. <div>评</div>
  8682. <div>
  8683. {{
  8684. pz.username && pz.username.length > 5
  8685. ? pz.username.substring(0, 5) + "..."
  8686. : pz.username
  8687. }}的评论
  8688. </div>
  8689. <div
  8690. class="pzDelete"
  8691. v-if="pz.userid == userid"
  8692. @click="deletePz(pz.id)"
  8693. >
  8694. 删除
  8695. </div>
  8696. </div>
  8697. <div
  8698. @click="checkImg(getImgList(pz.content))"
  8699. class="pzContent cont"
  8700. v-html="pz.content"
  8701. v-if="pz.type == '1'"
  8702. ></div>
  8703. <div class="pzContent" v-if="pz.type == '2'">
  8704. <audio :src="pz.content" controls="controls" ref="audio">
  8705. Your browser does not support the audio element.
  8706. </audio>
  8707. </div>
  8708. <div class="pzContent" v-if="pz.type == '3'">
  8709. <img
  8710. :src="pz.content"
  8711. style="width: 90%; margin: 0 auto; display: block"
  8712. @click="previewImg(pz.content)"
  8713. />
  8714. </div>
  8715. <div class="timeAndReply">
  8716. <div class="time">
  8717. {{ pz.time }}
  8718. </div>
  8719. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8720. </div>
  8721. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8722. <div
  8723. v-for="(h, hIndex) in pz.hfList"
  8724. :key="hIndex"
  8725. class="hfItem"
  8726. >
  8727. <div class="whoReplyWho">
  8728. <div class="hfName">{{ h.username }}</div>
  8729. <div class="hfImg">
  8730. <img src="../../assets/icon/newIcons/right.png" alt="" />
  8731. </div>
  8732. <div class="hfName">{{ pz.username }}</div>
  8733. </div>
  8734. <div class="hfContent" v-html="h.content"></div>
  8735. <div class="hfBottom">
  8736. <div class="hfTime">{{ h.time }}</div>
  8737. <div
  8738. class="deleteHfItem"
  8739. @click="deleteReply(h.id)"
  8740. v-if="userid == h.userid"
  8741. >
  8742. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  8743. </div>
  8744. </div>
  8745. </div>
  8746. </div>
  8747. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8748. <div class="replyInput">
  8749. <el-input v-model="reply[pzIndex]"></el-input>
  8750. </div>
  8751. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8752. </div> -->
  8753. </div>
  8754. </div>
  8755. <div class="noPz" v-else>
  8756. <img src="../../assets/icon/noPz.png" alt="" />
  8757. </div>
  8758. <div class="addPzButton">
  8759. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8760. 添加评论
  8761. </div>
  8762. <!-- <div class="img1">
  8763. <div @click="(addPzDialog = true), (pzType = 2)">
  8764. <img src="../../assets/audio.png" /><span>音频</span>
  8765. </div>
  8766. </div> -->
  8767. </div>
  8768. </div>
  8769. <div class="scoreList" v-if="commentTagShow==1">
  8770. <scoreItem v-for="item in scoreList.datalist" @refresh="getScoreList" :data="item" :isScore="scoreList.isScoreList.filter(i=>(i.userid==item.userid && i.courseid == item.courseId))" :key="item.courseId"/>
  8771. </div>
  8772. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8773. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8774. </div>
  8775. </div>
  8776. <div
  8777. v-if="toolDialogVisible == true"
  8778. class="toolMask"
  8779. @click="toolDialogVisible = false"
  8780. ></div>
  8781. <div v-if="toolDialogVisible == true" class="addToolCss">
  8782. <div class="toolTop">
  8783. <div style="font-weight: bold">新增工具</div>
  8784. <div @click="toolDialogVisible = false">
  8785. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  8786. </div>
  8787. </div>
  8788. <div class="tool_box">
  8789. <div class="tool_type_box">
  8790. <div class="chooseWho">
  8791. <div
  8792. :class="toolType == 0 ? 'isChooseActive' : ''"
  8793. @click="(toolType = 0), $forceUpdate()"
  8794. >
  8795. 互动类
  8796. </div>
  8797. <div
  8798. :class="toolType == 1 ? 'isChooseActive' : ''"
  8799. @click="(toolType = 1), $forceUpdate()"
  8800. >
  8801. 思维类
  8802. </div>
  8803. <div
  8804. :class="toolType == 2 ? 'isChooseActive' : ''"
  8805. @click="(toolType = 2), $forceUpdate()"
  8806. >
  8807. 测评类
  8808. </div>
  8809. <div
  8810. :class="toolType == 3 ? 'isChooseActive' : ''"
  8811. @click="(toolType = 3), $forceUpdate()"
  8812. >
  8813. 编程类
  8814. </div>
  8815. <div
  8816. :class="toolType == 5 ? 'isChooseActive' : ''"
  8817. @click="(toolType = 5), $forceUpdate()"
  8818. >
  8819. 学科类
  8820. </div>
  8821. </div>
  8822. </div>
  8823. <div>
  8824. <div class="toolSort" v-if="toolType == 0">
  8825. <div
  8826. class="tool"
  8827. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8828. @click="addTools2(10)"
  8829. >
  8830. <div class="whiteBIcon">
  8831. <img src="../../assets/icon/thirdToolList/time.png" alt />
  8832. <div style="margin: 5px 0">倒计时</div>
  8833. </div>
  8834. <div class="check">
  8835. <div
  8836. v-if="checktoolArray.indexOf(10) == -1"
  8837. class="noChoose"
  8838. ></div>
  8839. <div v-else class="isChoose"></div>
  8840. </div>
  8841. </div>
  8842. <div
  8843. class="tool"
  8844. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8845. @click="addTools2(65)"
  8846. >
  8847. <div class="whiteBIcon">
  8848. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  8849. <div style="margin: 5px 0">挑人</div>
  8850. </div>
  8851. <div class="check">
  8852. <div
  8853. v-if="checktoolArray.indexOf(65) == -1"
  8854. class="noChoose"
  8855. ></div>
  8856. <div v-else class="isChoose"></div>
  8857. </div>
  8858. </div>
  8859. </div>
  8860. <div class="toolSort" v-if="toolType == 1">
  8861. <div
  8862. class="tool"
  8863. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8864. @click="addTools2(7)"
  8865. >
  8866. <div class="whiteBIcon">
  8867. <img
  8868. src="../../assets/icon/secondToolList/mindNetwork.png"
  8869. alt
  8870. />
  8871. <div style="margin: 5px 0">思维网格</div>
  8872. </div>
  8873. <div class="check">
  8874. <div
  8875. v-if="checktoolArray.indexOf(7) == -1"
  8876. class="noChoose"
  8877. ></div>
  8878. <div v-else class="isChoose"></div>
  8879. </div>
  8880. </div>
  8881. <div
  8882. class="tool"
  8883. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8884. @click="addTools2(1)"
  8885. >
  8886. <div class="whiteBIcon">
  8887. <img
  8888. src="../../assets/icon/secondToolList/whiteBoard.png"
  8889. alt
  8890. />
  8891. <div style="margin: 5px 0">电子白板</div>
  8892. </div>
  8893. <div class="check">
  8894. <div
  8895. v-if="checktoolArray.indexOf(1) == -1"
  8896. class="noChoose"
  8897. ></div>
  8898. <div v-else class="isChoose"></div>
  8899. </div>
  8900. </div>
  8901. <div
  8902. class="tool"
  8903. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8904. @click="addTools2(52)"
  8905. >
  8906. <div class="whiteBIcon">
  8907. <img src="../../assets/icon/fourthToolList/text.png" alt />
  8908. <div style="margin: 5px 0">文档</div>
  8909. </div>
  8910. <div class="check">
  8911. <div
  8912. v-if="checktoolArray.indexOf(52) == -1"
  8913. class="noChoose"
  8914. ></div>
  8915. <div v-else class="isChoose"></div>
  8916. </div>
  8917. </div>
  8918. <div
  8919. class="tool"
  8920. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8921. @click="addTools2(3)"
  8922. >
  8923. <div class="whiteBIcon">
  8924. <img
  8925. src="../../assets/icon/secondToolList/mindMapping.png"
  8926. alt
  8927. />
  8928. <div style="margin: 5px 0">思维导图</div>
  8929. </div>
  8930. <div class="check">
  8931. <div
  8932. v-if="checktoolArray.indexOf(3) == -1"
  8933. class="noChoose"
  8934. ></div>
  8935. <div v-else class="isChoose"></div>
  8936. </div>
  8937. </div>
  8938. <div
  8939. class="tool"
  8940. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8941. @click="addTools2(48)"
  8942. >
  8943. <div class="whiteBIcon">
  8944. <img src="../../assets/icon/fourthToolList/table.png" alt />
  8945. <div style="margin: 5px 0">表格</div>
  8946. </div>
  8947. <div class="check">
  8948. <div
  8949. v-if="checktoolArray.indexOf(48) == -1"
  8950. class="noChoose"
  8951. ></div>
  8952. <div v-else class="isChoose"></div>
  8953. </div>
  8954. </div>
  8955. </div>
  8956. <div class="toolSort" v-if="toolType == 6">
  8957. <div v-show="tooC == 49">
  8958. <img
  8959. @click="addTools(tooC, toolIndex, taskCount)"
  8960. src="../../assets/icon/fourthToolList/group.png"
  8961. alt
  8962. />
  8963. <div style="margin: 5px 0">学生分组</div>
  8964. </div>
  8965. </div>
  8966. <div class="toolSort" v-if="toolType == 2">
  8967. <div
  8968. class="tool"
  8969. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8970. @click="addTools2(16)"
  8971. >
  8972. <div class="whiteBIcon">
  8973. <img src="../../assets/icon/thirdToolList/work.png" alt />
  8974. <div style="margin: 5px 0">作业提交</div>
  8975. </div>
  8976. <div class="check">
  8977. <div
  8978. v-if="checktoolArray.indexOf(16) == -1"
  8979. class="noChoose"
  8980. ></div>
  8981. <div v-else class="isChoose"></div>
  8982. </div>
  8983. </div>
  8984. <div
  8985. class="tool"
  8986. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8987. @click="addTools2(50)"
  8988. >
  8989. <div class="whiteBIcon">
  8990. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  8991. <div style="margin: 5px 0">批量上传</div>
  8992. </div>
  8993. <div class="check">
  8994. <div
  8995. v-if="checktoolArray.indexOf(50) == -1"
  8996. class="noChoose"
  8997. ></div>
  8998. <div v-else class="isChoose"></div>
  8999. </div>
  9000. </div>
  9001. </div>
  9002. <div class="toolSort" v-if="toolType == 3">
  9003. <div
  9004. class="tool"
  9005. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  9006. @click="addTools2(18)"
  9007. >
  9008. <div class="whiteBIcon">
  9009. <img
  9010. src="../../assets/icon/thirdToolList/trainPlatform.png"
  9011. alt
  9012. />
  9013. <div style="margin: 5px 0">训练平台</div>
  9014. </div>
  9015. <div class="check">
  9016. <div
  9017. v-if="checktoolArray.indexOf(18) == -1"
  9018. class="noChoose"
  9019. ></div>
  9020. <div v-else class="isChoose"></div>
  9021. </div>
  9022. </div>
  9023. <div
  9024. class="tool"
  9025. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  9026. @click="addTools2(21)"
  9027. >
  9028. <div class="whiteBIcon">
  9029. <img src="../../assets/icon/fourthToolList/program.png" alt />
  9030. <div style="margin: 5px 0">AIoT Blockly</div>
  9031. </div>
  9032. <div class="check">
  9033. <div
  9034. v-if="checktoolArray.indexOf(21) == -1"
  9035. class="noChoose"
  9036. ></div>
  9037. <div v-else class="isChoose"></div>
  9038. </div>
  9039. </div>
  9040. <div
  9041. class="tool"
  9042. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  9043. @click="addTools2(23)"
  9044. >
  9045. <div class="whiteBIcon">
  9046. <img
  9047. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  9048. alt
  9049. />
  9050. <div style="margin: 5px 0">AI Python</div>
  9051. </div>
  9052. <div class="check">
  9053. <div
  9054. v-if="checktoolArray.indexOf(23) == -1"
  9055. class="noChoose"
  9056. ></div>
  9057. <div v-else class="isChoose"></div>
  9058. </div>
  9059. </div>
  9060. <div
  9061. class="tool"
  9062. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  9063. @click="addTools2(24)"
  9064. >
  9065. <div class="whiteBIcon">
  9066. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  9067. <div style="margin: 5px 0">AI Blockly</div>
  9068. </div>
  9069. <div class="check">
  9070. <div
  9071. v-if="checktoolArray.indexOf(24) == -1"
  9072. class="noChoose"
  9073. ></div>
  9074. <div v-else class="isChoose"></div>
  9075. </div>
  9076. </div>
  9077. <div
  9078. class="tool"
  9079. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  9080. @click="addTools2(32)"
  9081. >
  9082. <div class="whiteBIcon">
  9083. <img src="../../assets/icon/thirdToolList/code.png" alt />
  9084. <div style="margin: 5px 0">源码编辑</div>
  9085. </div>
  9086. <div class="check">
  9087. <div
  9088. v-if="checktoolArray.indexOf(32) == -1"
  9089. class="noChoose"
  9090. ></div>
  9091. <div v-else class="isChoose"></div>
  9092. </div>
  9093. </div>
  9094. <div
  9095. class="tool"
  9096. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  9097. @click="addTools2(57)"
  9098. >
  9099. <div class="whiteBIcon">
  9100. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  9101. <div style="margin: 5px 0">CocoPi</div>
  9102. </div>
  9103. <div class="check">
  9104. <div
  9105. v-if="checktoolArray.indexOf(57) == -1"
  9106. class="noChoose"
  9107. ></div>
  9108. <div v-else class="isChoose"></div>
  9109. </div>
  9110. </div>
  9111. <div
  9112. class="tool"
  9113. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  9114. @click="addTools2(63)"
  9115. >
  9116. <div class="whiteBIcon">
  9117. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  9118. <div style="margin: 5px 0">海龟编程</div>
  9119. </div>
  9120. <div class="check">
  9121. <div
  9122. v-if="checktoolArray.indexOf(63) == -1"
  9123. class="noChoose"
  9124. ></div>
  9125. <div v-else class="isChoose"></div>
  9126. </div>
  9127. </div>
  9128. <div
  9129. class="tool"
  9130. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  9131. @click="addTools2(71)"
  9132. >
  9133. <div class="whiteBIcon">
  9134. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  9135. <div style="margin: 5px 0">AI智能体</div>
  9136. </div>
  9137. <div class="check">
  9138. <div
  9139. v-if="checktoolArray.indexOf(71) == -1"
  9140. class="noChoose"
  9141. ></div>
  9142. <div v-else class="isChoose"></div>
  9143. </div>
  9144. </div>
  9145. </div>
  9146. <div class="toolSort" v-if="toolType == 7">
  9147. <div
  9148. class="tool"
  9149. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  9150. @click="addTools2(40)"
  9151. >
  9152. <div class="whiteBIcon">
  9153. <img src="../../assets/icon/secondToolList/eval.png" alt />
  9154. <div style="margin: 5px 0">个人评价</div>
  9155. </div>
  9156. <div class="check">
  9157. <div
  9158. v-if="checktoolArray.indexOf(40) == -1"
  9159. class="noChoose"
  9160. ></div>
  9161. <div v-else class="isChoose"></div>
  9162. </div>
  9163. </div>
  9164. </div>
  9165. <div class="toolSort" v-if="toolType == 5">
  9166. <div
  9167. class="tool"
  9168. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  9169. @click="addTools2(28)"
  9170. >
  9171. <div class="whiteBIcon">
  9172. <img
  9173. src="../../assets/icon/secondToolList/translation.png"
  9174. alt
  9175. />
  9176. <div style="margin: 5px 0">翻译</div>
  9177. </div>
  9178. <div class="check">
  9179. <div
  9180. v-if="checktoolArray.indexOf(28) == -1"
  9181. class="noChoose"
  9182. ></div>
  9183. <div v-else class="isChoose"></div>
  9184. </div>
  9185. </div>
  9186. <div
  9187. class="tool"
  9188. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  9189. @click="addTools2(31)"
  9190. >
  9191. <div class="whiteBIcon">
  9192. <img
  9193. src="../../assets/icon/secondToolList/networkPanel.png"
  9194. alt
  9195. />
  9196. <div style="margin: 5px 0">数字画板</div>
  9197. </div>
  9198. <div class="check">
  9199. <div
  9200. v-if="checktoolArray.indexOf(31) == -1"
  9201. class="noChoose"
  9202. ></div>
  9203. <div v-else class="isChoose"></div>
  9204. </div>
  9205. </div>
  9206. <div
  9207. class="tool"
  9208. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  9209. @click="addTools2(39)"
  9210. >
  9211. <div class="whiteBIcon">
  9212. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  9213. <div style="margin: 5px 0">GeoGebra</div>
  9214. </div>
  9215. <div class="check">
  9216. <div
  9217. v-if="checktoolArray.indexOf(39) == -1"
  9218. class="noChoose"
  9219. ></div>
  9220. <div v-else class="isChoose"></div>
  9221. </div>
  9222. </div>
  9223. <div
  9224. class="tool"
  9225. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  9226. @click="addTools2(66)"
  9227. >
  9228. <div class="whiteBIcon">
  9229. <img
  9230. src="../../assets/icon/secondToolList/formulaEdi.png"
  9231. alt
  9232. />
  9233. <div style="margin: 5px 0">公式编辑</div>
  9234. </div>
  9235. <div class="check">
  9236. <div
  9237. v-if="checktoolArray.indexOf(66) == -1"
  9238. class="noChoose"
  9239. ></div>
  9240. <div v-else class="isChoose"></div>
  9241. </div>
  9242. </div>
  9243. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  9244. <div class="whiteBIcon" @click="addTools2(67)">
  9245. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  9246. <div style="margin: 5px 0">分子结构</div>
  9247. </div>
  9248. <div class="check" @click="addTools2(67)">
  9249. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  9250. <div v-else class="isChoose"></div>
  9251. </div>
  9252. </div> -->
  9253. <div
  9254. class="tool"
  9255. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  9256. @click="addTools2(68)"
  9257. >
  9258. <div class="whiteBIcon">
  9259. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  9260. <div style="margin: 5px 0">时间轴</div>
  9261. </div>
  9262. <div class="check">
  9263. <div
  9264. v-if="checktoolArray.indexOf(68) == -1"
  9265. class="noChoose"
  9266. ></div>
  9267. <div v-else class="isChoose"></div>
  9268. </div>
  9269. </div>
  9270. <!-- <div
  9271. class="tool"
  9272. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  9273. @click="addTools2(69)"
  9274. >
  9275. <div class="whiteBIcon">
  9276. <img src="../../assets/icon/secondToolList/english.png" alt />
  9277. <div style="margin: 5px 0">英语写作</div>
  9278. </div>
  9279. <div class="check">
  9280. <div
  9281. v-if="checktoolArray.indexOf(69) == -1"
  9282. class="noChoose"
  9283. ></div>
  9284. <div v-else class="isChoose"></div>
  9285. </div>
  9286. </div> -->
  9287. </div>
  9288. <div class="toolSort" v-if="toolType == 4">
  9289. <div
  9290. class="tool"
  9291. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  9292. @click="addTools2(26)"
  9293. >
  9294. <div class="whiteBIcon">
  9295. <img
  9296. src="../../assets/icon/thirdToolList/courseDesign.png"
  9297. alt
  9298. />
  9299. <div style="margin: 5px 0">课程设计</div>
  9300. </div>
  9301. <div class="check">
  9302. <div
  9303. v-if="checktoolArray.indexOf(26) == -1"
  9304. class="noChoose"
  9305. ></div>
  9306. <div v-else class="isChoose"></div>
  9307. </div>
  9308. </div>
  9309. <div
  9310. class="tool"
  9311. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  9312. @click="addTools2(25)"
  9313. >
  9314. <div class="whiteBIcon">
  9315. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  9316. <div style="margin: 5px 0">目标管理</div>
  9317. </div>
  9318. <div class="check">
  9319. <div
  9320. v-if="checktoolArray.indexOf(25) == -1"
  9321. class="noChoose"
  9322. ></div>
  9323. <div v-else class="isChoose"></div>
  9324. </div>
  9325. </div>
  9326. </div>
  9327. </div>
  9328. </div>
  9329. <span
  9330. slot="footer"
  9331. class="dialog-footer"
  9332. style="display: block; text-align: center; padding: 0 0 10px 0"
  9333. >
  9334. <el-button @click="toolDialogVisible = false">取 消</el-button>
  9335. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  9336. </span>
  9337. </div>
  9338. <div
  9339. v-if="replyDialogVisible == true"
  9340. class="addDialogCss"
  9341. v-el-drag-dialog
  9342. >
  9343. <div class="pzTop">
  9344. <div class="teacherPz">
  9345. <div class="teacherPzImg">
  9346. <img src="../../assets/icon/teacherPz.png" alt="" />
  9347. </div>
  9348. <div style="margin-left: 10px; height: 25px">添加回复</div>
  9349. </div>
  9350. <div @click="replyDialogVisible = false">
  9351. <img src="../../assets/close1.png" class="pzClose" alt="" />
  9352. </div>
  9353. </div>
  9354. <div class="addPzBox">
  9355. <!-- <div class="addPzCheck">
  9356. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9357. >文本</span
  9358. >
  9359. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9360. >音频</span
  9361. >
  9362. </div> -->
  9363. <div style="height: calc(100% - 50px)">
  9364. <editor-bar
  9365. class="binfo_input pzConText"
  9366. style="width: 100% !important; margin: 0 auto"
  9367. placeholder="请输入回复描述"
  9368. v-model="reply"
  9369. @change="change"
  9370. ></editor-bar>
  9371. </div>
  9372. <div class="addTextCss" @click="addHf">确定</div>
  9373. </div>
  9374. </div>
  9375. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  9376. <div class="pzTop">
  9377. <div class="teacherPz">
  9378. <div class="teacherPzImg">
  9379. <img src="../../assets/icon/teacherPz.png" alt="" />
  9380. </div>
  9381. <div style="margin-left: 10px; height: 25px">教师评论</div>
  9382. </div>
  9383. <div @click="addPzDialog = false">
  9384. <img src="../../assets/close1.png" class="pzClose" alt="" />
  9385. </div>
  9386. </div>
  9387. <div class="addPzBox">
  9388. <div class="addPzCheck">
  9389. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9390. >文本</span
  9391. >
  9392. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  9393. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9394. >音频</span
  9395. >
  9396. </div>
  9397. <div style="height: calc(100% - 95px)">
  9398. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  9399. v-if="pzType == 1"></textarea> -->
  9400. <editor-bar
  9401. class="binfo_input pzConText"
  9402. style="width: 100% !important"
  9403. placeholder="请输入任务描述"
  9404. v-model="pzConText"
  9405. @change="change"
  9406. v-if="pzType == 1"
  9407. ></editor-bar>
  9408. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  9409. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  9410. <div @click="addImg($event)">
  9411. <el-button type="primary">上传图片</el-button>
  9412. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  9413. @change="beforeUpload1($event, 4)" />
  9414. </div>
  9415. </div> -->
  9416. </div>
  9417. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  9418. 确定
  9419. </div>
  9420. </div>
  9421. </div>
  9422. <div v-if="proVisible" class="mask">
  9423. <div class="progressBox">
  9424. <!-- <div id="closePro" class="closeCss">
  9425. <img src="../../assets/icon/close.png" alt />
  9426. </div> -->
  9427. <div class="lbox">
  9428. <img src="../../assets/loading.gif" />上传中,请稍后
  9429. </div>
  9430. <div style="margin-bottom: 10px">
  9431. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  9432. </div>
  9433. <el-progress
  9434. :text-inside="true"
  9435. :stroke-width="20"
  9436. :percentage="progress"
  9437. style="width: 80%"
  9438. ></el-progress>
  9439. </div>
  9440. </div>
  9441. <div v-if="proVisible2" class="mask">
  9442. <div class="progressBox">
  9443. <div class="lbox">
  9444. <img src="../../assets/loading.gif" />上传中,请稍后
  9445. </div>
  9446. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  9447. </div>
  9448. </div>
  9449. <el-dialog :visible.sync="pictureDialog" size="tiny">
  9450. <img width="100%" :src="dialogImageUrl" alt />
  9451. </el-dialog>
  9452. <el-dialog
  9453. :title="noteName != '' ? noteName : '查看问卷'"
  9454. :visible.sync="dialogVisible5"
  9455. :append-to-body="true"
  9456. width="1000px"
  9457. :before-close="handleClose"
  9458. class="dialog_diy dialog_diy3"
  9459. >
  9460. <div>
  9461. <div
  9462. class="a_add_title"
  9463. style="
  9464. display: flex;
  9465. flex-direction: row;
  9466. align-items: center;
  9467. justify-content: center;
  9468. "
  9469. >
  9470. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9471. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9472. </div>
  9473. <div class="a_addBox">
  9474. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9475. 题目内容
  9476. </div>
  9477. <div
  9478. class="a_add_box"
  9479. v-for="(item1, index1) in askJson.askCount"
  9480. :key="index1"
  9481. >
  9482. <div class="a_add_head">
  9483. <div style="display: flex">
  9484. <span class="askIndex"> {{ index1 + 1 }}</span>
  9485. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9486. </div>
  9487. <img
  9488. v-if="askJson.askJson[index1].img"
  9489. :src="askJson.askJson[index1].img"
  9490. style="height: 300px; margin-top: 10px; max-width: 100%"
  9491. />
  9492. </div>
  9493. <div class="a_add_body">
  9494. <div class="a_add_input">
  9495. <el-radio-group
  9496. v-model="radio[index1]"
  9497. v-if="
  9498. askJson.askJson[index1].type == '1' ||
  9499. !askJson.askJson[index1].type
  9500. "
  9501. >
  9502. <el-radio
  9503. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9504. .checkList"
  9505. :key="checkIndex"
  9506. :label="checkIndex"
  9507. :disabled="isAnswer"
  9508. class="redioStyle"
  9509. ><span v-html="item2"></span
  9510. ></el-radio>
  9511. </el-radio-group>
  9512. <el-checkbox-group
  9513. v-model="radio[index1]"
  9514. v-if="askJson.askJson[index1].type == '2'"
  9515. >
  9516. <el-checkbox
  9517. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9518. .checkList"
  9519. :key="checkIndex1"
  9520. :label="checkIndex1"
  9521. :disabled="isAnswer"
  9522. class="redioStyle"
  9523. ><span v-html="item2"></span>
  9524. </el-checkbox>
  9525. </el-checkbox-group>
  9526. </div>
  9527. </div>
  9528. </div>
  9529. </div>
  9530. </div>
  9531. <span slot="footer" class="dialog-footer">
  9532. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  9533. >取 消</el-button
  9534. >
  9535. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  9536. >确 定</el-button
  9537. >
  9538. </span>
  9539. </el-dialog>
  9540. <el-dialog
  9541. :title="noteName != '' ? noteName : '查看问卷'"
  9542. :visible.sync="dialogVisible5Teacher"
  9543. :append-to-body="true"
  9544. width="1000px"
  9545. :before-close="handleClose"
  9546. class="dialog_diy dialog_diy3"
  9547. >
  9548. <div>
  9549. <div class="w_name">
  9550. 学生姓名:<span>{{ sStudent.student }}</span>
  9551. </div>
  9552. <div
  9553. class="a_add_title"
  9554. style="
  9555. display: flex;
  9556. flex-direction: row;
  9557. align-items: center;
  9558. justify-content: center;
  9559. "
  9560. >
  9561. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9562. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9563. </div>
  9564. <div class="a_addBox">
  9565. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9566. 题目内容
  9567. </div>
  9568. <div
  9569. class="a_add_box"
  9570. v-for="(item1, index1) in askJson.askCount"
  9571. :key="index1"
  9572. >
  9573. <div class="a_add_head">
  9574. <div style="display: flex">
  9575. <span class="askIndex">{{ index1 + 1 }}</span>
  9576. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9577. </div>
  9578. <img
  9579. v-if="askJson.askJson[index1].img"
  9580. :src="askJson.askJson[index1].img"
  9581. style="height: 300px; margin-top: 10px; max-width: 100%"
  9582. />
  9583. </div>
  9584. <div class="a_add_body">
  9585. <div class="a_add_input">
  9586. <el-radio-group
  9587. v-model="radio[index1]"
  9588. v-if="
  9589. askJson.askJson[index1].type == '1' ||
  9590. !askJson.askJson[index1].type
  9591. "
  9592. >
  9593. <el-radio
  9594. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9595. .checkList"
  9596. :key="checkIndex"
  9597. :label="checkIndex"
  9598. :disabled="isAnswer"
  9599. class="redioStyle"
  9600. ><span v-html="item2"></span
  9601. ></el-radio>
  9602. </el-radio-group>
  9603. <el-checkbox-group
  9604. v-model="radio[index1]"
  9605. v-if="askJson.askJson[index1].type == '2'"
  9606. >
  9607. <el-checkbox
  9608. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9609. .checkList"
  9610. :key="checkIndex1"
  9611. :label="checkIndex1"
  9612. :disabled="isAnswer"
  9613. class="redioStyle"
  9614. ><span v-html="item2"></span>
  9615. </el-checkbox>
  9616. </el-checkbox-group>
  9617. </div>
  9618. </div>
  9619. </div>
  9620. </div>
  9621. </div>
  9622. <span slot="footer" class="dialog-footer">
  9623. <el-button
  9624. @click="dialogVisible5Teacher = false"
  9625. v-show="noteName == ''"
  9626. >取 消</el-button
  9627. >
  9628. <el-button
  9629. type="primary"
  9630. @click="addStudentAskTeacher"
  9631. v-show="noteName == ''"
  9632. >确 定</el-button
  9633. >
  9634. </span>
  9635. </el-dialog>
  9636. <el-dialog
  9637. :title="noteName != '' ? noteName : '查看选择题'"
  9638. :visible.sync="dialogVisibleChoice"
  9639. :append-to-body="true"
  9640. width="1000px"
  9641. :before-close="handleClose"
  9642. class="dialog_diy dialog_diy3"
  9643. >
  9644. <div>
  9645. <!-- <div class="a_add_title" style="
  9646. display: flex;
  9647. flex-direction: row;
  9648. align-items: center;
  9649. justify-content: center;
  9650. ">
  9651. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9652. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9653. </div> -->
  9654. <div class="a_addBox">
  9655. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9656. 题目内容
  9657. </div>
  9658. <div
  9659. class="a_add_box"
  9660. v-for="(item1, index1) in testJson.testCount"
  9661. :key="index1"
  9662. >
  9663. <div class="a_add_head">
  9664. <div style="display: flex;">
  9665. <span class="askIndex">{{ index1 + 1 }}</span>
  9666. <div
  9667. v-if="testJson.testJson[index1].type == '1'"
  9668. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9669. >
  9670. (单选题)
  9671. </div>
  9672. <div
  9673. v-if="testJson.testJson[index1].type == '2'"
  9674. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9675. >
  9676. (多选题)
  9677. </div>
  9678. <div class="renderedFor">题目:<span v-html="renderedFormula(testJson.testJson[index1].teststitle)"></span></div>
  9679. </div>
  9680. <img
  9681. v-if="testJson.testJson[index1].img"
  9682. :src="testJson.testJson[index1].img"
  9683. style="height: 300px; margin-top: 10px; max-width: 100%"
  9684. />
  9685. </div>
  9686. <div
  9687. class="timuImgBox"
  9688. v-if="
  9689. testJson.testJson[index1].timuList &&
  9690. testJson.testJson[index1].timuList.length
  9691. "
  9692. >
  9693. <div
  9694. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9695. :key="tIndex"
  9696. class="timuImg"
  9697. @click.stop="previewImg(timg.src)"
  9698. >
  9699. <img :src="timg.src" alt="" />
  9700. </div>
  9701. </div>
  9702. <div class="a_add_body">
  9703. <div class="a_add_input">
  9704. <el-radio-group
  9705. v-model="radio[index1]"
  9706. v-if="testJson.testJson[index1].type == '1'"
  9707. >
  9708. <div class="radioBox">
  9709. <el-radio
  9710. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9711. .checkList"
  9712. :key="checkIndex"
  9713. :label="checkIndex"
  9714. :disabled="isAnswer"
  9715. class="redioStyle"
  9716. >
  9717. <div
  9718. style="margin-right: 10px"
  9719. v-if="item2 && item2.imgType && item2.imgType == 1"
  9720. >
  9721. <div class="inImg" @click.stop="previewImg(item2.src)">
  9722. <img :src="item2.src" alt="" />
  9723. </div>
  9724. </div>
  9725. <span v-else v-html="item2"></span>
  9726. </el-radio>
  9727. </div>
  9728. </el-radio-group>
  9729. <el-checkbox-group
  9730. v-model="radio[index1]"
  9731. v-if="testJson.testJson[index1].type == '2'"
  9732. >
  9733. <div class="radioBox">
  9734. <el-checkbox
  9735. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9736. .checkList"
  9737. :key="checkIndex"
  9738. :label="checkIndex"
  9739. :disabled="isAnswer"
  9740. class="redioStyle"
  9741. >
  9742. <div
  9743. style="margin-right: 10px"
  9744. v-if="item2 && item2.imgType && item2.imgType == 1"
  9745. >
  9746. <div class="inImg" @click.stop="previewImg(item2.src)">
  9747. <img :src="item2.src" alt="" />
  9748. </div>
  9749. </div>
  9750. <span v-else v-html="item2"></span>
  9751. </el-checkbox>
  9752. </div>
  9753. </el-checkbox-group>
  9754. </div>
  9755. </div>
  9756. </div>
  9757. </div>
  9758. </div>
  9759. <span slot="footer" class="dialog-footer">
  9760. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9761. >取 消</el-button
  9762. >
  9763. <el-button
  9764. type="primary"
  9765. @click="addStudentTest"
  9766. v-show="noteName == ''"
  9767. >确 定</el-button
  9768. >
  9769. </span>
  9770. </el-dialog>
  9771. <el-dialog
  9772. :title="noteName != '' ? noteName : '查看选择题'"
  9773. :visible.sync="dialogVisibleChoiceTeacher"
  9774. :append-to-body="true"
  9775. width="1000px"
  9776. :before-close="handleClose"
  9777. class="dialog_diy dialog_diy3"
  9778. >
  9779. <div>
  9780. <div class="w_name">
  9781. 学生姓名:<span>{{ sStudent.student }}</span>
  9782. </div>
  9783. <div class="a_addBox">
  9784. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9785. 题目内容
  9786. </div>
  9787. <div
  9788. class="a_add_box"
  9789. v-for="(item1, index1) in testJson.testCount"
  9790. :key="index1"
  9791. >
  9792. <div class="a_add_head">
  9793. <div style="display: flex">
  9794. <span class="askIndex">{{ index1 + 1 }}</span>
  9795. <div
  9796. v-if="testJson.testJson[index1].type == '1'"
  9797. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9798. >
  9799. (单选题)
  9800. </div>
  9801. <div
  9802. v-if="testJson.testJson[index1].type == '2'"
  9803. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9804. >
  9805. (多选题)
  9806. </div>
  9807. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9808. </div>
  9809. <img
  9810. v-if="testJson.testJson[index1].img"
  9811. :src="testJson.testJson[index1].img"
  9812. style="height: 300px; margin-top: 10px; max-width: 100%"
  9813. />
  9814. </div>
  9815. <div
  9816. class="timuImgBox"
  9817. v-if="
  9818. testJson.testJson[index1].timuList &&
  9819. testJson.testJson[index1].timuList.length
  9820. "
  9821. >
  9822. <div
  9823. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9824. :key="tIndex"
  9825. class="timuImg"
  9826. @click.stop="previewImg(timg.src)"
  9827. >
  9828. <img :src="timg.src" alt="" />
  9829. </div>
  9830. </div>
  9831. <div class="a_add_body">
  9832. <div class="a_add_input">
  9833. <el-radio-group
  9834. v-model="radio[index1]"
  9835. v-if="testJson.testJson[index1].type == '1'"
  9836. >
  9837. <div class="radioBox">
  9838. <el-radio
  9839. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9840. .checkList"
  9841. :key="checkIndex"
  9842. :label="checkIndex"
  9843. :disabled="isAnswer"
  9844. class="redioStyle"
  9845. >
  9846. <div
  9847. style="margin-right: 10px"
  9848. v-if="item2 && item2.imgType && item2.imgType == 1"
  9849. >
  9850. <div class="inImg" @click.stop="previewImg(item2.src)">
  9851. <img :src="item2.src" alt="" />
  9852. </div>
  9853. </div>
  9854. <span v-else v-html="item2"></span>
  9855. </el-radio>
  9856. </div>
  9857. </el-radio-group>
  9858. <el-checkbox-group
  9859. v-model="radio[index1]"
  9860. v-if="testJson.testJson[index1].type == '2'"
  9861. >
  9862. <div class="radioBox">
  9863. <el-checkbox
  9864. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9865. .checkList"
  9866. :key="checkIndex"
  9867. :label="checkIndex"
  9868. :disabled="isAnswer"
  9869. class="redioStyle"
  9870. >
  9871. <div
  9872. style="margin-right: 10px"
  9873. v-if="item2 && item2.imgType && item2.imgType == 1"
  9874. >
  9875. <div class="inImg" @click.stop="previewImg(item2.src)">
  9876. <img :src="item2.src" alt="" />
  9877. </div>
  9878. </div>
  9879. <span v-else v-html="item2"></span>
  9880. </el-checkbox>
  9881. </div>
  9882. </el-checkbox-group>
  9883. </div>
  9884. </div>
  9885. </div>
  9886. </div>
  9887. </div>
  9888. <span slot="footer" class="dialog-footer">
  9889. <el-button
  9890. @click="dialogVisibleChoiceTeacher = false"
  9891. v-show="noteName == ''"
  9892. >取 消</el-button
  9893. >
  9894. <el-button
  9895. type="primary"
  9896. @click="addStudentTestTeacher"
  9897. v-show="noteName == ''"
  9898. >确 定</el-button
  9899. >
  9900. </span>
  9901. </el-dialog>
  9902. <el-dialog
  9903. title="查看富文本"
  9904. :visible.sync="dialogVisible1"
  9905. :append-to-body="true"
  9906. width="500px"
  9907. :before-close="handleClose"
  9908. class="dialog_diy textCss"
  9909. >
  9910. <el-form style="font-size: 20px">
  9911. <el-form-item label="文本标题" class="textTitle">
  9912. <div style="font-size: 20px">{{ text.name }}</div>
  9913. </el-form-item>
  9914. <div>富文本内容</div>
  9915. <div
  9916. v-html="text.url"
  9917. style="font-size: 18px; padding: 40px 0 0 0"
  9918. ></div>
  9919. </el-form>
  9920. <span slot="footer" class="dialog-footer">
  9921. <el-button type="primary" @click="dialogVisible1 = false"
  9922. >确定</el-button
  9923. >
  9924. </span>
  9925. </el-dialog>
  9926. <el-dialog
  9927. title="文件预览"
  9928. :visible.sync="dialogVisible3"
  9929. width="50%"
  9930. :before-close="handleClose"
  9931. class="dialog_diy"
  9932. :class="{ fullStyle: full }"
  9933. >
  9934. <div slot="title" class="header-title">
  9935. <div style="color: #fff">文件预览</div>
  9936. <div style="position: absolute; top: 19px; right: 50px">
  9937. <img
  9938. src="../../assets/full.png"
  9939. style="height: 16px; cursor: pointer"
  9940. alt=""
  9941. @click="fullTools"
  9942. />
  9943. </div>
  9944. </div>
  9945. <pdf
  9946. v-if="showPDF"
  9947. :pdfUrl="pptImgUrl"
  9948. style="width: 100%; height: 520px; overflow: auto"
  9949. :class="{ fullStyle: full }"
  9950. ></pdf>
  9951. <iframe
  9952. v-else
  9953. :src="pptImgUrl"
  9954. frameborder="0"
  9955. width="100%"
  9956. height="600"
  9957. :class="{ fullStyle: full }"
  9958. ></iframe>
  9959. </el-dialog>
  9960. <el-dialog
  9961. title="文件预览"
  9962. :visible.sync="dialogVisible6"
  9963. width="50%"
  9964. :before-close="handleClose"
  9965. class="dialog_diy"
  9966. >
  9967. <iframe
  9968. :src="pptImgUrl1"
  9969. frameborder="0"
  9970. width="100%"
  9971. height="600"
  9972. ></iframe>
  9973. </el-dialog>
  9974. <el-dialog
  9975. title="提示"
  9976. :visible.sync="dialogVisible4"
  9977. :append-to-body="true"
  9978. width="800px"
  9979. :before-close="handleClose"
  9980. class="dialog_diy notice"
  9981. >
  9982. <div>此功能暂未开放!</div>
  9983. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9984. </el-dialog>
  9985. <el-dialog
  9986. title="问答"
  9987. :visible.sync="answerDialogVisible"
  9988. :append-to-body="true"
  9989. width="800px"
  9990. :before-close="handleClose"
  9991. class="dialog_diy"
  9992. >
  9993. <div>
  9994. <div
  9995. style="
  9996. display: flex;
  9997. flex-wrap: nowrap;
  9998. flex-direction: column;
  9999. position: relative;
  10000. "
  10001. >
  10002. <div class="queTop" style="padding: 20px 0 20px 0">
  10003. <div class="question">
  10004. <img src="../../assets/icon/question.png" alt />
  10005. </div>
  10006. <div class="queTitle">
  10007. <div style="width: 90px; min-width: 90px">提问:</div>
  10008. <div>{{ answerQ }}</div>
  10009. </div>
  10010. </div>
  10011. <div class="ediBottom">
  10012. <textarea
  10013. rows="6"
  10014. class="binfo_input"
  10015. cols
  10016. style="width: 95%; height: 120px"
  10017. v-model="questionAnswer"
  10018. ></textarea>
  10019. </div>
  10020. </div>
  10021. </div>
  10022. <div slot="footer">
  10023. <el-button @click="answerDialogVisible = false">取 消</el-button>
  10024. <el-button type="primary" @click="addQuestion">提 交</el-button>
  10025. </div>
  10026. </el-dialog>
  10027. <el-dialog
  10028. title="问答"
  10029. :visible.sync="answerDialogVisibleTeacher"
  10030. :append-to-body="true"
  10031. width="800px"
  10032. :before-close="handleClose"
  10033. class="dialog_diy"
  10034. >
  10035. <div>
  10036. <div class="w_name">
  10037. 学生姓名:<span>{{ sStudent.student }}</span>
  10038. </div>
  10039. <div
  10040. style="
  10041. display: flex;
  10042. flex-wrap: nowrap;
  10043. flex-direction: column;
  10044. position: relative;
  10045. "
  10046. >
  10047. <div class="queTop" style="padding: 20px 0 20px 0">
  10048. <div class="question">
  10049. <img src="../../assets/icon/question.png" alt />
  10050. </div>
  10051. <div class="queTitle">
  10052. <div style="width: 90px; min-width: 90px">提问:</div>
  10053. <div>{{ answerQ }}</div>
  10054. </div>
  10055. </div>
  10056. <div class="ediBottom">
  10057. <textarea
  10058. rows="6"
  10059. class="binfo_input"
  10060. cols
  10061. style="width: 95%; height: 120px"
  10062. v-model="questionAnswer"
  10063. ></textarea>
  10064. </div>
  10065. </div>
  10066. </div>
  10067. <div slot="footer">
  10068. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  10069. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  10070. </div>
  10071. </el-dialog>
  10072. <el-dialog
  10073. title="倒计时"
  10074. :visible.sync="timeDialogVisible"
  10075. :append-to-body="true"
  10076. width="800px"
  10077. :before-close="handleClose"
  10078. class="dialog_diy"
  10079. >
  10080. <div>
  10081. <div style="margin-bottom: 20px; color: #999">
  10082. 提示:点击“+”或“-”修改倒计时时长。
  10083. </div>
  10084. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  10085. </div>
  10086. <div slot="footer">
  10087. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  10088. </div>
  10089. </el-dialog>
  10090. <el-dialog
  10091. title="权限设置"
  10092. :visible.sync="juriVisible"
  10093. :append-to-body="true"
  10094. width="400px"
  10095. :before-close="handleClose"
  10096. class="dialog_diy"
  10097. >
  10098. <div>
  10099. <div class="open_box">
  10100. <div class="switch_box">
  10101. <span>允许学生查看所有作业</span>
  10102. <el-switch
  10103. v-model="sIsOpen"
  10104. active-text=""
  10105. class="switchCss"
  10106. @change="updateSLook"
  10107. ></el-switch>
  10108. </div>
  10109. <div
  10110. class="switch_box"
  10111. v-if="
  10112. (courseDetail.userid == userid ||
  10113. (courseDetail.course_teacher &&
  10114. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen
  10115. "
  10116. >
  10117. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  10118. <span>禁止学生查看阶段</span>
  10119. <el-switch
  10120. v-model="IsLookOpen"
  10121. active-text=""
  10122. class="switchCss"
  10123. @change="updateLookOpen"
  10124. ></el-switch>
  10125. </div>
  10126. <div class="switch_box" v-if="(courseDetail.userid == userid ||
  10127. (courseDetail.course_teacher &&
  10128. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen">
  10129. <span>开启跟随模式</span>
  10130. <el-switch
  10131. v-model="IsFollow"
  10132. active-text=""
  10133. class="switchCss"
  10134. @change="updateFollow"
  10135. ></el-switch>
  10136. </div>
  10137. <div class="switch_box" v-if="courseDetail.userid == userid">
  10138. <span>允许学生查看内容资料</span>
  10139. <el-switch
  10140. v-model="IsStulook"
  10141. active-text=""
  10142. class="switchCss"
  10143. @change="updateIsStulook"
  10144. ></el-switch>
  10145. </div>
  10146. </div>
  10147. </div>
  10148. <div slot="footer">
  10149. <el-button
  10150. style="background: #409efe; color: #fff"
  10151. @click="juriVisible = false"
  10152. >关 闭</el-button
  10153. >
  10154. </div>
  10155. </el-dialog>
  10156. <el-dialog
  10157. title="查看视频"
  10158. :visible.sync="videoVisible"
  10159. :append-to-body="true"
  10160. width="1000px"
  10161. :before-close="handleClose"
  10162. class="dialog_diy1"
  10163. >
  10164. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  10165. <video-player
  10166. class="video-player vjs-custom-skin"
  10167. :playsinline="true"
  10168. :options="videoDetail"
  10169. @play="onPlayerPlay($event)"
  10170. style="width: 100%; height: 100%"
  10171. ></video-player>
  10172. </div>
  10173. <div slot="footer">
  10174. <el-button
  10175. style="background: #409efe; color: #fff"
  10176. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  10177. >
  10178. 关 闭</el-button
  10179. >
  10180. </div>
  10181. </el-dialog>
  10182. <el-dialog
  10183. title="查看详情"
  10184. :visible.sync="commentDialogVisible"
  10185. :append-to-body="true"
  10186. width="800px"
  10187. :before-close="handleClose"
  10188. class="dialog_diy"
  10189. >
  10190. <div class="commentTop">
  10191. <div class="studentDetail">
  10192. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10193. <div class="nameAndTime">
  10194. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10195. <div>{{ commentDetail.time }}</div>
  10196. </div>
  10197. <div
  10198. class="returnBtn"
  10199. style="margin-left: auto; width: 80px"
  10200. v-if="
  10201. commentDetail.works &&
  10202. commentDetail.type == 0 &&
  10203. (tType == 1 || tType == 4)
  10204. "
  10205. @click="
  10206. showPicturePaint(
  10207. commentDetail.img ? commentDetail.img : commentDetail.works
  10208. )
  10209. "
  10210. >
  10211. 教师批注
  10212. </div>
  10213. </div>
  10214. <div
  10215. class="worksAnswer"
  10216. v-if="commentDetail.works && commentDetail.type == 2"
  10217. >
  10218. {{ JSON.parse(commentDetail.works)[0].answer }}
  10219. </div>
  10220. <div
  10221. class="worksAnswer"
  10222. v-if="commentDetail.works && commentDetail.type == 1"
  10223. >
  10224. <img
  10225. src="../../assets/teacherWork.png"
  10226. v-if="commentDetail.ateacher"
  10227. class="w_teachert"
  10228. />
  10229. <pdf
  10230. v-if="showPDF"
  10231. :pdfUrl="pptImgUrl"
  10232. style="width: 100%; height: 520px; overflow: auto"
  10233. :class="{ fullStyle: full }"
  10234. ></pdf>
  10235. <iframe
  10236. v-else
  10237. :src="pptImgUrl"
  10238. frameborder="0"
  10239. width="100%"
  10240. height="600"
  10241. :class="{ fullStyle: full }"
  10242. ></iframe>
  10243. </div>
  10244. <div
  10245. class="worksAnswer"
  10246. v-if="commentDetail.works && commentDetail.type == 0"
  10247. >
  10248. <img
  10249. src="../../assets/teacherWork.png"
  10250. v-if="commentDetail.ateacher"
  10251. class="w_teachert"
  10252. style="right: 105px"
  10253. />
  10254. <img
  10255. :src="commentDetail.works"
  10256. alt=""
  10257. @click="previewImg(commentDetail.works)"
  10258. />
  10259. </div>
  10260. <div
  10261. class="worksAnswer"
  10262. v-if="commentDetail.works && commentDetail.type == 3"
  10263. >
  10264. <img
  10265. src="../../assets/teacherWork.png"
  10266. v-if="commentDetail.ateacher"
  10267. class="w_teachert"
  10268. />
  10269. <video-player
  10270. class="video-player vjs-custom-skin"
  10271. :playsinline="true"
  10272. :options="videoDetail"
  10273. @play="onPlayerPlay($event)"
  10274. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10275. ></video-player>
  10276. </div>
  10277. <div
  10278. class="worksAnswer"
  10279. v-if="commentDetail.works && commentDetail.type == 10"
  10280. >
  10281. <div class="cont" v-html="commentDetail.works.text"></div>
  10282. </div>
  10283. <div
  10284. class="worksAnswer codeFileBox"
  10285. v-if="commentDetail.works && commentDetail.type == 12"
  10286. @click="downloadFile(commentDetail.works)"
  10287. >
  10288. <img src="../../assets/icon/codeFile.png" />
  10289. <div>点击下载文件</div>
  10290. </div>
  10291. <div
  10292. class="worksAnswer codeFileBox"
  10293. v-if="commentDetail.works && commentDetail.type == 15"
  10294. @click="
  10295. openCocoPi(
  10296. 57,
  10297. commentIndexJson.toolIndex,
  10298. commentDetail.userid,
  10299. commentDetail.sName
  10300. )
  10301. "
  10302. >
  10303. <img src="../../assets/icon/codeFile.png" />
  10304. <div>点击打开CocoPi</div>
  10305. </div>
  10306. <div
  10307. class="worksAnswer"
  10308. v-if="commentDetail.works && commentDetail.type == 13"
  10309. >
  10310. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10311. </div>
  10312. <div
  10313. class="worksAnswer"
  10314. v-if="commentDetail.works && commentDetail.type == 4"
  10315. >
  10316. <div class="evalCss">
  10317. <div class="nav">请选择星星进行评分</div>
  10318. <div class="middleBox" v-if="eScore.eStar">
  10319. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10320. <div class="nameAndrate">
  10321. <div>{{ e.value }}</div>
  10322. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  10323. </div>
  10324. <div v-if="e.detail">{{ e.detail }}</div>
  10325. </div>
  10326. <div class="bz">
  10327. <textarea
  10328. disabled
  10329. rows="4"
  10330. class="pj"
  10331. style="
  10332. padding: 10px 5px;
  10333. width: 70%;
  10334. background: #f7f6f9;
  10335. font-size: 14px;
  10336. text-indent: 10px;
  10337. color: #000;
  10338. "
  10339. cols
  10340. v-model="eScore.eBzText"
  10341. placeholder="请输入评价内容..."
  10342. ></textarea>
  10343. </div>
  10344. </div>
  10345. </div>
  10346. </div>
  10347. <div class="comment">
  10348. <div class="commentList">
  10349. <div class="commentImg">
  10350. <img
  10351. @click="
  10352. isLikes(
  10353. commentDetail.wid,
  10354. userid,
  10355. 1,
  10356. null,
  10357. commentDetail.isLikes,
  10358. commentDetail.sName
  10359. )
  10360. "
  10361. :src="commentDetail.isLikes == true ? likes : noLikes"
  10362. alt=""
  10363. />
  10364. </div>
  10365. <div>{{ commentDetail.likesCount }}</div>
  10366. </div>
  10367. <div class="commentList">
  10368. <div class="commentImg">
  10369. <img src="../../assets/icon/comment/comment.png" alt="" />
  10370. </div>
  10371. <div>{{ commentDetail.commentCount }}</div>
  10372. </div>
  10373. </div>
  10374. <div class="drawPBox" v-if="commentDetail.img">
  10375. <span>教师批注</span>
  10376. <img
  10377. :src="commentDetail.img"
  10378. alt=""
  10379. @click="previewImg(commentDetail.img)"
  10380. />
  10381. <span
  10382. class="deleteImg"
  10383. v-if="tType == 1 || tType == 4"
  10384. @click.stop="deletePicturePaint(commentDetail.wid)"
  10385. style="
  10386. font-size: 14px;
  10387. width: auto !important;
  10388. color: #b4b4b4;
  10389. top: unset;
  10390. bottom: 0;
  10391. border: none;
  10392. padding: 0;
  10393. height: auto !important;
  10394. margin: 0;
  10395. "
  10396. >删除</span
  10397. >
  10398. </div>
  10399. </div>
  10400. <div class="commentBox">
  10401. <div class="pl">评论:</div>
  10402. <div style="max-height: 200px; overflow: auto">
  10403. <div
  10404. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  10405. style="padding: 10px 0 0 0"
  10406. >
  10407. <div
  10408. class="studentDetail"
  10409. style="padding-top: 10px"
  10410. v-for="(co, coIndex) in commentDetail.commentJson"
  10411. :key="coIndex"
  10412. >
  10413. <div class="tx" style="min-width: 50px">
  10414. <img src="../../assets/avatar.png" alt="" />
  10415. </div>
  10416. <div class="plPerson">
  10417. <div class="plName">
  10418. <div>{{ co.commentPeople }}</div>
  10419. <div style="margin-left: 5px">
  10420. {{ co.commentTime }}
  10421. </div>
  10422. <div
  10423. class="deleteComment"
  10424. v-if="userid == co.userid"
  10425. @click="deleteComment(co.wid)"
  10426. >
  10427. 删除
  10428. </div>
  10429. </div>
  10430. <div class="plContent">{{ co.commentText }}</div>
  10431. </div>
  10432. </div>
  10433. </div>
  10434. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  10435. </div>
  10436. </div>
  10437. <div style="margin-top: 10px">
  10438. <div class="displayBox">
  10439. <div
  10440. style="
  10441. color: #556db4;
  10442. font-size: 14px;
  10443. font-weight: bold;
  10444. padding-bottom: 10px;
  10445. "
  10446. >
  10447. 评价
  10448. </div>
  10449. <div class="easy_comment" v-if="false">
  10450. <div
  10451. v-for="(p, pIndex) in PlTextList"
  10452. :key="pIndex"
  10453. @click="fastText(p, 1)"
  10454. >
  10455. {{ p }}
  10456. </div>
  10457. </div>
  10458. </div>
  10459. <div>
  10460. <textarea
  10461. rows="3"
  10462. class="pj"
  10463. style="padding: 10px 5px"
  10464. cols
  10465. v-model="commentText"
  10466. placeholder="请输入评论"
  10467. ></textarea>
  10468. </div>
  10469. </div>
  10470. <div slot="footer">
  10471. <el-button
  10472. @click="
  10473. (commentDialogVisible = false),
  10474. (commentIndexJson = {}),
  10475. videoDetail.sources && videoDetail.sources[0]
  10476. ? (videoDetail.sources[0].src = '')
  10477. : ''
  10478. "
  10479. >取 消</el-button
  10480. >
  10481. <el-button
  10482. type="primary"
  10483. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  10484. >确 定</el-button
  10485. >
  10486. </div>
  10487. </el-dialog>
  10488. <el-dialog
  10489. title="查看文档"
  10490. :visible.sync="fullDialogVisible"
  10491. :append-to-body="true"
  10492. width="100%"
  10493. :before-close="handleClose"
  10494. :show-close="false"
  10495. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  10496. >
  10497. <div slot="title" class="header-title">
  10498. <div v-if="fulltype == 4" style="color: #fff">AI应用</div>
  10499. <div v-else style="color: #fff">查看文档</div>
  10500. <div
  10501. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  10502. style="
  10503. cursor: pointer;
  10504. position: absolute;
  10505. top: 20px;
  10506. right: 20px;
  10507. color: #fff;
  10508. "
  10509. >
  10510. 退出全屏
  10511. </div>
  10512. </div>
  10513. <div style="height: 100%;position: relative;">
  10514. <el-button
  10515. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  10516. size="medium"
  10517. type="primary"
  10518. @click="
  10519. () => {
  10520. (fullDialogVisible = false),
  10521. changeSplitScreenBehavior({ code: 99 });
  10522. }
  10523. "
  10524. style="
  10525. cursor: pointer;
  10526. position: absolute;
  10527. top: 10px;
  10528. right: 20px;
  10529. color: #fff;
  10530. "
  10531. >
  10532. 退出全屏
  10533. </el-button>
  10534. <div
  10535. class="wheel"
  10536. v-if="fulltype == 1"
  10537. style="
  10538. box-shadow: 0 0 6px 1px #f2f2f2;
  10539. height:100%;
  10540. width: 100%;
  10541. background: #f1f1f1;
  10542. "
  10543. >
  10544. <div class="title" style="width: 100%; box-sizing: border-box">
  10545. 查看文档
  10546. </div>
  10547. <el-form class="textBox" style="height: 90%">
  10548. <el-form-item class="textTitle">
  10549. <div style="font-size: 22px">
  10550. {{ fullUrl.name }}
  10551. </div>
  10552. </el-form-item>
  10553. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  10554. <div
  10555. v-html="fullUrl.url"
  10556. class="textContent"
  10557. style="height: auto"
  10558. ></div>
  10559. </el-form>
  10560. </div>
  10561. <div
  10562. class="wheel"
  10563. v-else-if="
  10564. (fulltype == 2 || fulltype == 4) &&
  10565. fullUrl.indexOf(
  10566. 'https://view.officeapps.live.com/op/view.aspx?src='
  10567. ) != -1
  10568. "
  10569. style="width: 100%;height:100%; margin: 0 auto"
  10570. >
  10571. <iframe
  10572. style="width: 100%; height: 100%; border: none"
  10573. :src="fullUrl"
  10574. ></iframe>
  10575. </div>
  10576. <iframe
  10577. style="width: 100%; height: 100%; border: none"
  10578. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  10579. v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('knowledge.cocorobo.cn')!=-1 || fullUrl.indexOf('cloud.cocorobo.cn')!=-1) || fullUrl.indexOf('app.cocorobo.cn')!=-1"
  10580. :src="fullUrl"
  10581. ></iframe>
  10582. <iframe
  10583. style="width: 100%; height: 100%; border: none"
  10584. security="restricted"
  10585. v-else-if="(fulltype == 2 || fulltype == 4)"
  10586. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10587. :src="fullUrl"
  10588. ></iframe>
  10589. <pdf
  10590. v-else-if="fulltype == 3"
  10591. :pdfUrl="fullUrl"
  10592. style="width: 100%; height: 100%; overflow: auto"
  10593. ></pdf>
  10594. <iframe
  10595. style="width: 100%; height: 100%; border: none"
  10596. security="restricted"
  10597. v-if="(fulltype == 16)"
  10598. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10599. :src="fullUrl"
  10600. ></iframe>
  10601. </div>
  10602. <!-- <div slot="footer">
  10603. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  10604. </div> -->
  10605. </el-dialog>
  10606. <el-dialog
  10607. title="个人评价"
  10608. :visible.sync="studentEvalDialogVisible"
  10609. :append-to-body="true"
  10610. width="800px"
  10611. :before-close="handleClose"
  10612. class="dialog_diy"
  10613. >
  10614. <div class="evalCss">
  10615. <div class="nav">请选择星星进行评分</div>
  10616. <div class="middleBox" v-if="eScore.eStar">
  10617. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10618. <div class="nameAndrate">
  10619. <div>{{ e.value }}</div>
  10620. <el-rate
  10621. v-model="eScore.eStar[eIndex]"
  10622. :disabled="isStar"
  10623. ></el-rate>
  10624. </div>
  10625. <div v-if="e.detail">{{ e.detail }}</div>
  10626. </div>
  10627. <div class="easy_comment" v-if="false">
  10628. <div
  10629. v-for="(p, pIndex) in PlTextList"
  10630. :key="pIndex"
  10631. @click="fastText(p, 2)"
  10632. >
  10633. {{ p }}
  10634. </div>
  10635. </div>
  10636. <div class="bz">
  10637. <textarea
  10638. :disabled="isStar"
  10639. rows="4"
  10640. class="pj"
  10641. style="
  10642. padding: 10px 5px;
  10643. width: 70%;
  10644. background: #f7f6f9;
  10645. font-size: 14px;
  10646. text-indent: 10px;
  10647. "
  10648. cols
  10649. v-model="eScore.eBzText"
  10650. placeholder="请输入评价内容..."
  10651. ></textarea>
  10652. </div>
  10653. </div>
  10654. </div>
  10655. <div slot="footer">
  10656. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10657. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10658. >确 定</el-button
  10659. >
  10660. </div>
  10661. </el-dialog>
  10662. <el-dialog
  10663. title="个人评价"
  10664. :visible.sync="studentEvalDialogVisibleTeacher"
  10665. :append-to-body="true"
  10666. width="800px"
  10667. :before-close="handleClose"
  10668. class="dialog_diy"
  10669. >
  10670. <div class="w_name">
  10671. 学生姓名:<span>{{ sStudent.student }}</span>
  10672. </div>
  10673. <div class="evalCss">
  10674. <div class="nav">请选择星星进行评分</div>
  10675. <div class="middleBox" v-if="eScore.eStar">
  10676. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10677. <div class="nameAndrate">
  10678. <div>{{ e.value }}</div>
  10679. <el-rate
  10680. v-model="eScore.eStar[eIndex]"
  10681. :disabled="isStar"
  10682. ></el-rate>
  10683. </div>
  10684. <div v-if="e.detail">{{ e.detail }}</div>
  10685. </div>
  10686. <div class="easy_comment" v-if="false">
  10687. <div
  10688. v-for="(p, pIndex) in PlTextList"
  10689. :key="pIndex"
  10690. @click="fastText(p, 2)"
  10691. >
  10692. {{ p }}
  10693. </div>
  10694. </div>
  10695. <div class="bz">
  10696. <textarea
  10697. :disabled="isStar"
  10698. rows="4"
  10699. class="pj"
  10700. style="
  10701. padding: 10px 5px;
  10702. width: 70%;
  10703. background: #f7f6f9;
  10704. font-size: 14px;
  10705. text-indent: 10px;
  10706. "
  10707. cols
  10708. v-model="eScore.eBzText"
  10709. placeholder="请输入评价内容..."
  10710. ></textarea>
  10711. </div>
  10712. </div>
  10713. </div>
  10714. <div slot="footer">
  10715. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10716. >取 消</el-button
  10717. >
  10718. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10719. >确 定</el-button
  10720. >
  10721. </div>
  10722. </el-dialog>
  10723. <el-dialog
  10724. title="选择匹配"
  10725. :visible.sync="dialogVisibleSelect"
  10726. :append-to-body="true"
  10727. width="90%"
  10728. :before-close="handleClose"
  10729. class="dialog_diy dialog_diy3"
  10730. >
  10731. <div v-if="selectJson">
  10732. <div class="select_box2">
  10733. <div class="select_box2_title">
  10734. <div>选择匹配</div>
  10735. <div>请选择对应的答案进行答题!</div>
  10736. </div>
  10737. <div class="select_box2_box">
  10738. <div class="select_box2_img">
  10739. <img
  10740. :src="selectJson.url"
  10741. @click="previewImg(selectJson.url)"
  10742. alt=""
  10743. />
  10744. </div>
  10745. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10746. <div style="padding-top: 15px">
  10747. <div class="select_answer_title" v-if="isSelect">
  10748. {{ selectAnswer.stu }}
  10749. </div>
  10750. <div class="select_answer_title" v-else>
  10751. 根据题目选择对应答案
  10752. </div>
  10753. <div
  10754. class="select_box2_answer_box"
  10755. v-for="(item2, checkIndex) in selectJson.select"
  10756. :key="checkIndex"
  10757. >
  10758. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10759. <el-select
  10760. :disabled="isSelect"
  10761. v-model="selectAnswer.answer[checkIndex]"
  10762. placeholder="请选择正确答案"
  10763. >
  10764. <el-option
  10765. v-for="(e, eIndex) in selectJson.select"
  10766. :key="eIndex"
  10767. :label="e"
  10768. :value="eIndex"
  10769. >
  10770. </el-option>
  10771. </el-select>
  10772. </div>
  10773. </div>
  10774. <div
  10775. class="rightAnswerCss"
  10776. v-if="isSelect && (tType == 1 || tType == 4)"
  10777. >
  10778. <div
  10779. v-for="(a, aIndex) in selectJson.answer"
  10780. :key="aIndex"
  10781. class="rightAnswer"
  10782. >
  10783. <div
  10784. v-if="selectAnswer.answer[aIndex] === a"
  10785. style="color: #767de1"
  10786. >
  10787. 回答正确
  10788. </div>
  10789. <div v-else>回答错误</div>
  10790. <div
  10791. style="margin-left: 10px"
  10792. v-if="selectAnswer.answer[aIndex] !== a"
  10793. >
  10794. 正确答案:
  10795. </div>
  10796. <div
  10797. :class="
  10798. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10799. "
  10800. >
  10801. {{ selectJson.select[a] }}
  10802. </div>
  10803. </div>
  10804. </div>
  10805. </div>
  10806. <div class="upAnswerCss">
  10807. <el-button
  10808. type="primary"
  10809. @click="addSelectAnswer"
  10810. v-if="!isSelect"
  10811. >提交答案</el-button
  10812. >
  10813. </div>
  10814. </div>
  10815. </div>
  10816. </div>
  10817. </el-dialog>
  10818. <el-dialog
  10819. title="选择匹配"
  10820. :visible.sync="dialogVisibleSelectTeacher"
  10821. :append-to-body="true"
  10822. width="90%"
  10823. :before-close="handleClose"
  10824. class="dialog_diy dialog_diy3"
  10825. >
  10826. <div v-if="selectJson">
  10827. <div class="w_name">
  10828. 学生姓名:<span>{{ sStudent.student }}</span>
  10829. </div>
  10830. <div class="select_box2">
  10831. <div class="select_box2_title">
  10832. <div>选择匹配</div>
  10833. <div>请选择对应的答案进行答题!</div>
  10834. </div>
  10835. <div class="select_box2_box">
  10836. <div class="select_box2_img">
  10837. <img
  10838. :src="selectJson.url"
  10839. @click="previewImg(selectJson.url)"
  10840. alt=""
  10841. />
  10842. </div>
  10843. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10844. <div style="padding-top: 15px">
  10845. <div class="select_answer_title" v-if="isSelect">
  10846. {{ selectAnswer.stu }}
  10847. </div>
  10848. <div class="select_answer_title" v-else>
  10849. 根据题目选择对应答案
  10850. </div>
  10851. <div
  10852. class="select_box2_answer_box"
  10853. v-for="(item2, checkIndex) in selectJson.select"
  10854. :key="checkIndex"
  10855. >
  10856. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10857. <el-select
  10858. :disabled="isSelect"
  10859. v-model="selectAnswer.answer[checkIndex]"
  10860. placeholder="请选择正确答案"
  10861. >
  10862. <el-option
  10863. v-for="(e, eIndex) in selectJson.select"
  10864. :key="eIndex"
  10865. :label="e"
  10866. :value="eIndex"
  10867. >
  10868. </el-option>
  10869. </el-select>
  10870. </div>
  10871. </div>
  10872. <div
  10873. class="rightAnswerCss"
  10874. v-if="isSelect && (tType == 1 || tType == 4)"
  10875. >
  10876. <div
  10877. v-for="(a, aIndex) in selectJson.answer"
  10878. :key="aIndex"
  10879. class="rightAnswer"
  10880. >
  10881. <div
  10882. v-if="selectAnswer.answer[aIndex] === a"
  10883. style="color: #767de1"
  10884. >
  10885. 回答正确
  10886. </div>
  10887. <div v-else>回答错误</div>
  10888. <div
  10889. style="margin-left: 10px"
  10890. v-if="selectAnswer.answer[aIndex] !== a"
  10891. >
  10892. 正确答案:
  10893. </div>
  10894. <div
  10895. :class="
  10896. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10897. "
  10898. >
  10899. {{ selectJson.select[a] }}
  10900. </div>
  10901. </div>
  10902. </div>
  10903. </div>
  10904. <div class="upAnswerCss">
  10905. <el-button
  10906. type="primary"
  10907. @click="addSelectAnswerTeacher"
  10908. v-if="!isSelect"
  10909. >提交答案</el-button
  10910. >
  10911. </div>
  10912. </div>
  10913. </div>
  10914. </div>
  10915. </el-dialog>
  10916. <el-dialog
  10917. title="教师评分"
  10918. :visible.sync="dialogVisibleScore"
  10919. :append-to-body="true"
  10920. width="800px"
  10921. :before-close="handleClose"
  10922. class="dialog_diy"
  10923. >
  10924. <div>
  10925. <div class="studentDetail">
  10926. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10927. <div class="nameAndTime">
  10928. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10929. <div>{{ commentDetail.time }}</div>
  10930. </div>
  10931. </div>
  10932. <div
  10933. class="worksAnswer"
  10934. v-if="commentDetail.works && commentDetail.type == 2"
  10935. >
  10936. {{ JSON.parse(commentDetail.works)[0].answer }}
  10937. </div>
  10938. <div
  10939. class="worksAnswer"
  10940. v-if="commentDetail.works && commentDetail.type == 1"
  10941. >
  10942. <pdf
  10943. v-if="showPDF"
  10944. :pdfUrl="pptImgUrl"
  10945. style="width: 100%; height: 520px; overflow: auto"
  10946. :class="{ fullStyle: full }"
  10947. ></pdf>
  10948. <iframe
  10949. v-else
  10950. :src="pptImgUrl"
  10951. frameborder="0"
  10952. width="100%"
  10953. height="600"
  10954. :class="{ fullStyle: full }"
  10955. ></iframe>
  10956. </div>
  10957. <div
  10958. class="worksAnswer"
  10959. v-if="commentDetail.works && commentDetail.type == 0"
  10960. >
  10961. <img
  10962. :src="commentDetail.works"
  10963. alt=""
  10964. @click="previewImg(commentDetail.works)"
  10965. />
  10966. </div>
  10967. <div
  10968. class="worksAnswer"
  10969. v-if="commentDetail.works && commentDetail.type == 3"
  10970. >
  10971. <video-player
  10972. class="video-player vjs-custom-skin"
  10973. :playsinline="true"
  10974. :options="videoDetail"
  10975. @play="onPlayerPlay($event)"
  10976. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10977. ></video-player>
  10978. </div>
  10979. <div
  10980. class="worksAnswer codeFileBox"
  10981. v-if="commentDetail.works && commentDetail.type == 12"
  10982. @click="downloadFile(commentDetail.works)"
  10983. >
  10984. <img src="../../assets/icon/codeFile.png" />
  10985. <div>点击下载文件</div>
  10986. </div>
  10987. <div
  10988. class="worksAnswer codeFileBox"
  10989. v-if="commentDetail.works && commentDetail.type == 15"
  10990. @click="
  10991. openCocoPi(
  10992. 57,
  10993. commentIndexJson.toolIndex,
  10994. commentDetail.userid,
  10995. commentDetail.sName
  10996. )
  10997. "
  10998. >
  10999. <img src="../../assets/icon/codeFile.png" />
  11000. <div>点击打开CocoPi</div>
  11001. </div>
  11002. <div
  11003. class="worksAnswer"
  11004. v-if="commentDetail.works && commentDetail.type == 13"
  11005. >
  11006. <div v-html="JSON.parse(commentDetail.works).text"></div>
  11007. </div>
  11008. <div class="scoreBox">
  11009. <span class="t">请输入分数</span>
  11010. <el-input-number
  11011. :disabled="courseDetail.userid != userid"
  11012. v-model="wScore"
  11013. :controls="false"
  11014. :min="0"
  11015. :max="100"
  11016. ></el-input-number>
  11017. </div>
  11018. <div class="scoreDetailBox">
  11019. <span class="t">评分评论</span>
  11020. <el-input
  11021. type="textarea"
  11022. :rows="5"
  11023. :disabled="courseDetail.userid != userid"
  11024. resize="none"
  11025. v-model="scoreDetail"
  11026. placeholder="请输入对学生的评价"
  11027. >
  11028. </el-input>
  11029. </div>
  11030. </div>
  11031. <span slot="footer" class="dialog-footer">
  11032. <el-button
  11033. @click="
  11034. (dialogVisibleScore = false),
  11035. (commentIndexJson = {}),
  11036. videoDetail.sources && videoDetail.sources[0]
  11037. ? (videoDetail.sources[0].src = '')
  11038. : ''
  11039. "
  11040. >取 消</el-button
  11041. >
  11042. <el-button
  11043. type="primary"
  11044. v-if="courseDetail.userid == userid"
  11045. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  11046. >确 定
  11047. </el-button>
  11048. </span>
  11049. </el-dialog>
  11050. <el-dialog
  11051. title="排序"
  11052. :visible.sync="dialogVisibleSentence"
  11053. :append-to-body="true"
  11054. width="1000px"
  11055. :before-close="handleClose"
  11056. class="dialog_diy dialog_diy3"
  11057. >
  11058. <div>
  11059. <div class="sentenBox">
  11060. <div
  11061. v-for="(st, stIndex) in sentenceList"
  11062. :key="stIndex"
  11063. style="padding-bottom: 20px"
  11064. >
  11065. <div
  11066. style="padding: 15px 0 10px 20px"
  11067. class="sentenceTitle"
  11068. :index="stIndex + 1"
  11069. >
  11070. 题目{{ stIndex + 1 }}:请选择正确顺序
  11071. </div>
  11072. <div class="cardList" v-if="st.chooseSenList">
  11073. <div class="cardBox">
  11074. <div
  11075. v-for="(r, rIndex) in st.chooseSenList"
  11076. :key="rIndex"
  11077. @click="returnCard(r, stIndex, rIndex)"
  11078. >
  11079. <el-tooltip
  11080. class="item"
  11081. effect="light"
  11082. :content="r"
  11083. placement="top"
  11084. v-if="r != '' && r != undefined"
  11085. >
  11086. <div
  11087. :class="{
  11088. isCard: r,
  11089. isChooseCard: r == '' || r == undefined,
  11090. }"
  11091. >
  11092. <div>{{ r }}</div>
  11093. </div>
  11094. </el-tooltip>
  11095. <div
  11096. :class="{
  11097. isCard: r,
  11098. isChooseCard: r == '' || r == undefined,
  11099. }"
  11100. v-else
  11101. >
  11102. <div>{{ r }}</div>
  11103. </div>
  11104. </div>
  11105. </div>
  11106. </div>
  11107. <div class="cardList" v-if="st.addChangeSen">
  11108. <div class="cardBox">
  11109. <div
  11110. v-for="(s, sIndex) in st.addChangeSen"
  11111. :key="sIndex"
  11112. @click="setRightAnswer(s, stIndex, sIndex)"
  11113. >
  11114. <el-tooltip
  11115. class="item"
  11116. effect="light"
  11117. :content="s"
  11118. placement="top"
  11119. v-if="s != '' && s != undefined"
  11120. >
  11121. <div
  11122. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11123. >
  11124. <div>{{ s }}</div>
  11125. </div>
  11126. </el-tooltip>
  11127. <div
  11128. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11129. v-else
  11130. >
  11131. <div>{{ s }}</div>
  11132. </div>
  11133. </div>
  11134. </div>
  11135. </div>
  11136. </div>
  11137. </div>
  11138. </div>
  11139. <span slot="footer" class="dialog-footer">
  11140. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  11141. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  11142. </span>
  11143. </el-dialog>
  11144. <el-dialog
  11145. title="排序"
  11146. :visible.sync="dialogVisibleSentenceTeacher"
  11147. :append-to-body="true"
  11148. width="1000px"
  11149. :before-close="handleClose"
  11150. class="dialog_diy dialog_diy3"
  11151. >
  11152. <div>
  11153. <div class="w_name">
  11154. 学生姓名:<span>{{ sStudent.student }}</span>
  11155. </div>
  11156. <div class="sentenBox">
  11157. <div
  11158. v-for="(st, stIndex) in sentenceList"
  11159. :key="stIndex"
  11160. style="padding-bottom: 20px"
  11161. >
  11162. <div
  11163. style="padding: 15px 0 10px 20px"
  11164. class="sentenceTitle"
  11165. :index="stIndex + 1"
  11166. >
  11167. 题目{{ stIndex + 1 }}:请选择正确顺序
  11168. </div>
  11169. <div class="cardList" v-if="st.chooseSenList">
  11170. <div class="cardBox">
  11171. <div
  11172. v-for="(r, rIndex) in st.chooseSenList"
  11173. :key="rIndex"
  11174. @click="returnCard(r, stIndex, rIndex)"
  11175. >
  11176. <el-tooltip
  11177. class="item"
  11178. effect="light"
  11179. :content="r"
  11180. placement="top"
  11181. v-if="r != '' && r != undefined"
  11182. >
  11183. <div
  11184. :class="{
  11185. isCard: r,
  11186. isChooseCard: r == '' || r == undefined,
  11187. }"
  11188. >
  11189. <div>{{ r }}</div>
  11190. </div>
  11191. </el-tooltip>
  11192. <div
  11193. :class="{
  11194. isCard: r,
  11195. isChooseCard: r == '' || r == undefined,
  11196. }"
  11197. v-else
  11198. >
  11199. <div>{{ r }}</div>
  11200. </div>
  11201. </div>
  11202. </div>
  11203. </div>
  11204. <div class="cardList" v-if="st.addChangeSen">
  11205. <div class="cardBox">
  11206. <div
  11207. v-for="(s, sIndex) in st.addChangeSen"
  11208. :key="sIndex"
  11209. @click="setRightAnswer(s, stIndex, sIndex)"
  11210. >
  11211. <el-tooltip
  11212. class="item"
  11213. effect="light"
  11214. :content="s"
  11215. placement="top"
  11216. v-if="s != '' && s != undefined"
  11217. >
  11218. <div
  11219. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11220. >
  11221. <div>{{ s }}</div>
  11222. </div>
  11223. </el-tooltip>
  11224. <div
  11225. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11226. v-else
  11227. >
  11228. <div>{{ s }}</div>
  11229. </div>
  11230. </div>
  11231. </div>
  11232. </div>
  11233. </div>
  11234. </div>
  11235. </div>
  11236. <span slot="footer" class="dialog-footer">
  11237. <el-button @click="dialogVisibleSentenceTeacher = false"
  11238. >取 消</el-button
  11239. >
  11240. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  11241. </span>
  11242. </el-dialog>
  11243. <el-dialog
  11244. title="排序"
  11245. :visible.sync="dialogVisibleSentence1"
  11246. :append-to-body="true"
  11247. width="1000px"
  11248. :before-close="handleClose"
  11249. class="dialog_diy dialog_diy3"
  11250. >
  11251. <div>
  11252. <div class="sentenBox">
  11253. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11254. {{ sentenceList1.stuName }}的作业
  11255. </div>
  11256. <div
  11257. v-for="(st, stIndex) in sentenceList1"
  11258. :key="stIndex"
  11259. style="padding-bottom: 20px"
  11260. >
  11261. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11262. 第{{ stIndex + 1 }}题
  11263. </div>
  11264. <div class="isWrong">
  11265. <div class="cardList1" v-if="st.chooseSenList">
  11266. <div class="cardBox">
  11267. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  11268. <el-tooltip
  11269. class="item"
  11270. effect="light"
  11271. :content="s"
  11272. placement="top"
  11273. >
  11274. <div class="isCard">
  11275. <div>{{ s }}</div>
  11276. </div>
  11277. </el-tooltip>
  11278. </div>
  11279. </div>
  11280. <div class="cardAnswerBox">
  11281. 组成句子:{{ st.chooseSenList.join(" ") }}
  11282. </div>
  11283. </div>
  11284. <div v-if="tType == 2" class="isTj">
  11285. <div class="isTjImg">
  11286. <img src="../../assets/icon/conSentences/right.png" alt="" />
  11287. </div>
  11288. <div>已提交</div>
  11289. </div>
  11290. <div
  11291. class="answerRight isTj"
  11292. v-if="
  11293. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  11294. (tType == 1 || tType == 4)
  11295. "
  11296. >
  11297. <div class="isTjImg">
  11298. <img src="../../assets/icon/conSentences/right.png" alt="" />
  11299. </div>
  11300. <div>回答正确</div>
  11301. </div>
  11302. <div
  11303. class="answerRight isTj"
  11304. v-if="
  11305. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11306. (tType == 1 || tType == 4)
  11307. "
  11308. >
  11309. <div class="isTjImg">
  11310. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  11311. </div>
  11312. <div>回答错误</div>
  11313. </div>
  11314. </div>
  11315. <div
  11316. v-if="
  11317. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11318. (tType == 1 || tType == 4)
  11319. "
  11320. >
  11321. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  11322. <div
  11323. class="cardList"
  11324. v-if="st.rightAnswer"
  11325. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  11326. >
  11327. <div class="cardBox">
  11328. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  11329. <el-tooltip
  11330. class="item"
  11331. effect="light"
  11332. :content="r"
  11333. placement="top"
  11334. >
  11335. <div class="isCard1">
  11336. <div>{{ r }}</div>
  11337. </div>
  11338. </el-tooltip>
  11339. </div>
  11340. </div>
  11341. <div class="cardAnswerBox">
  11342. 组成句子:{{ st.rightAnswer.join(" ") }}
  11343. </div>
  11344. </div>
  11345. </div>
  11346. </div>
  11347. </div>
  11348. </div>
  11349. <span slot="footer" class="dialog-footer">
  11350. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  11351. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  11352. >确 定</el-button
  11353. >
  11354. </span>
  11355. </el-dialog>
  11356. <el-dialog
  11357. title="教师提交作业"
  11358. :visible.sync="dialogVisibleWorks"
  11359. :append-to-body="true"
  11360. width="500px"
  11361. :before-close="handleClose"
  11362. class="dialog_change"
  11363. >
  11364. <div class="marginT">
  11365. <div class="w_name">
  11366. 学生姓名:<span>{{ sStudent.student }}</span>
  11367. </div>
  11368. <div>上传文件</div>
  11369. <div style="display: flex; gap: 10px">
  11370. <div
  11371. class="chapter_add"
  11372. @click="addImg($event)"
  11373. v-if="studyJuri[0].cover.length == 0"
  11374. >
  11375. <div class="up_photo">
  11376. <img src="../../assets/icon/uploadImg.png" alt />
  11377. </div>
  11378. <!-- <input
  11379. type="file"
  11380. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11381. style="display: none"
  11382. @change="beforeUpload1($event, 1)"
  11383. /> -->
  11384. <input
  11385. type="file"
  11386. accept="*"
  11387. style="display: none"
  11388. @change="beforeUpload1($event, 1)"
  11389. />
  11390. <!-- <input
  11391. type="file"
  11392. accept="image/*"
  11393. capture="camera"
  11394. style="display: none"
  11395. @change="beforeUpload1($event, 1)"
  11396. /> -->
  11397. </div>
  11398. <div
  11399. class="chapter_add"
  11400. @click="addImg($event)"
  11401. v-if="studyJuri[0].cover.length == 0"
  11402. >
  11403. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  11404. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  11405. </div>
  11406. <input
  11407. type="file"
  11408. accept="image/*"
  11409. capture="camera"
  11410. style="display: none"
  11411. @change="beforeUpload1($event, 1)"
  11412. />
  11413. </div>
  11414. </div>
  11415. <!-- capture="camera" -->
  11416. <div
  11417. class="chapter_add"
  11418. style="
  11419. display: flex;
  11420. width: 100%;
  11421. flex-direction: row;
  11422. flex-wrap: wrap;
  11423. justify-content: flex-start;
  11424. padding: 15px 0;
  11425. "
  11426. v-if="studyJuri[0].cover.length > 0"
  11427. >
  11428. <div class="upCover">
  11429. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11430. <img :src="word" alt v-else-if="fileType == 1" />
  11431. <img :src="video" alt v-else-if="fileType == 2" />
  11432. <img :src="word2" alt v-else-if="fileType == 3" />
  11433. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11434. <div class="deleteWord" @click="clean(1)">
  11435. <img src="../../assets/icon/deleteWorks.png" alt />
  11436. </div>
  11437. </div>
  11438. </div>
  11439. </div>
  11440. <div
  11441. class="upload_send"
  11442. @click="addCourseWorksTeacher(taskCount)"
  11443. v-if="!proVisible"
  11444. >
  11445. 提交
  11446. </div>
  11447. </el-dialog>
  11448. <ImgDraw
  11449. :drawShow="drawShow"
  11450. @closeDraw="closeDraw"
  11451. @addImgDraw="addImgDraw"
  11452. :bg="bg"
  11453. ></ImgDraw>
  11454. <el-dialog
  11455. title="表格"
  11456. :visible.sync="dialogVisibleTable"
  11457. :append-to-body="true"
  11458. width="95%"
  11459. :before-close="handleClose"
  11460. class="dialog_diy"
  11461. >
  11462. <el-form>
  11463. <div
  11464. style="
  11465. display: flex;
  11466. align-items: center;
  11467. justify-content: space-between;
  11468. "
  11469. >
  11470. <span>表格内容</span>
  11471. <el-button type="primary" size="small" @click="returnTableText"
  11472. >还原模板</el-button
  11473. >
  11474. </div>
  11475. <Table
  11476. v-model="tableJson.text"
  11477. @change="change"
  11478. v-if="dialogVisibleTable"
  11479. ></Table>
  11480. </el-form>
  11481. <span slot="footer" class="dialog-footer">
  11482. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  11483. <el-button type="primary" @click="addTableWorks">确定</el-button>
  11484. </span>
  11485. </el-dialog>
  11486. <el-dialog
  11487. title="表格"
  11488. :visible.sync="dialogVisibleTableTeacher"
  11489. :append-to-body="true"
  11490. width="95%"
  11491. :before-close="handleClose"
  11492. class="dialog_diy"
  11493. >
  11494. <el-form>
  11495. <div class="w_name">
  11496. 学生姓名:<span>{{ sStudent.student }}</span>
  11497. </div>
  11498. <div>表格内容</div>
  11499. <Table
  11500. v-model="tableJson.text"
  11501. @change="change"
  11502. v-if="dialogVisibleTableTeacher"
  11503. ></Table>
  11504. </el-form>
  11505. <span slot="footer" class="dialog-footer">
  11506. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  11507. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  11508. </span>
  11509. </el-dialog>
  11510. <el-dialog
  11511. title="文档"
  11512. :visible.sync="dialogVisibleWord"
  11513. :append-to-body="true"
  11514. width="95%"
  11515. :before-close="handleClose"
  11516. class="dialog_diy"
  11517. >
  11518. <el-form>
  11519. <div
  11520. style="
  11521. display: flex;
  11522. align-items: center;
  11523. justify-content: space-between;
  11524. "
  11525. >
  11526. <span>文档内容</span>
  11527. <el-button type="primary" size="small" @click="returnWordText"
  11528. >还原模板</el-button
  11529. >
  11530. </div>
  11531. <editor-bar
  11532. v-model="wordJson.text"
  11533. v-if="dialogVisibleWord"
  11534. ></editor-bar>
  11535. </el-form>
  11536. <span slot="footer" class="dialog-footer">
  11537. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  11538. <el-button type="primary" @click="addWordWorks">确定</el-button>
  11539. </span>
  11540. </el-dialog>
  11541. <el-dialog
  11542. title="文档"
  11543. :visible.sync="dialogVisibleWordTeacher"
  11544. :append-to-body="true"
  11545. width="95%"
  11546. :before-close="handleClose"
  11547. class="dialog_diy"
  11548. >
  11549. <el-form>
  11550. <div class="w_name">
  11551. 学生姓名:<span>{{ sStudent.student }}</span>
  11552. </div>
  11553. <div>文档内容</div>
  11554. <editor-bar
  11555. v-model="wordJson.text"
  11556. v-if="dialogVisibleWordTeacher"
  11557. ></editor-bar>
  11558. </el-form>
  11559. <span slot="footer" class="dialog-footer">
  11560. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  11561. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  11562. </span>
  11563. </el-dialog>
  11564. <el-dialog
  11565. title="表格"
  11566. :visible.sync="dialogVisibleTable2"
  11567. :append-to-body="true"
  11568. width="95%"
  11569. :before-close="handleClose"
  11570. class="dialog_diy"
  11571. >
  11572. <el-form>
  11573. <div class="cont" v-html="tableJson.text"></div>
  11574. </el-form>
  11575. <span slot="footer" class="dialog-footer">
  11576. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  11577. </span>
  11578. </el-dialog>
  11579. <el-dialog
  11580. title="文档"
  11581. :visible.sync="dialogVisibleTable3"
  11582. :append-to-body="true"
  11583. width="95%"
  11584. :before-close="handleClose"
  11585. class="dialog_diy"
  11586. >
  11587. <el-form>
  11588. <div class="cont" v-html="tableJson.text"></div>
  11589. </el-form>
  11590. <span slot="footer" class="dialog-footer">
  11591. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  11592. </span>
  11593. </el-dialog>
  11594. <el-dialog
  11595. title="分组设置"
  11596. :visible.sync="dialogVisibleGroup"
  11597. :append-to-body="true"
  11598. width="95%"
  11599. :before-close="handleClose"
  11600. class="dialog_diy"
  11601. >
  11602. <div v-if="dialogVisibleGroup">
  11603. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  11604. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  11605. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  11606. </div>
  11607. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  11608. @click="lockChair">
  11609. 锁定位置
  11610. </div>
  11611. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  11612. 解锁位置
  11613. </div> -->
  11614. <div class="group_switch">
  11615. <span>开放选座</span>
  11616. <el-switch
  11617. v-model="islock"
  11618. active-text=""
  11619. class="switchCss"
  11620. @change="lockChair"
  11621. ></el-switch>
  11622. </div>
  11623. <div
  11624. type="primary"
  11625. @click="updateGroup"
  11626. class="returnBtn"
  11627. style="background-color: #225bc7"
  11628. >
  11629. 分组设置
  11630. </div>
  11631. </div>
  11632. <div>
  11633. <div
  11634. class="g_d_box"
  11635. v-if="groupJson.group && groupStudent[toolindex]"
  11636. >
  11637. <div
  11638. class="g_d_group"
  11639. v-for="(g, gindex) in groupJson.group"
  11640. :key="gindex"
  11641. >
  11642. <div class="g_d_group_chair">
  11643. <div v-if="groupJson.number > 1">
  11644. <span
  11645. :class="{
  11646. isChair:
  11647. groupStudent[toolindex][gindex] &&
  11648. groupStudent[toolindex][gindex][0],
  11649. updateChair:
  11650. courseDetail.userid == userid &&
  11651. groupStudent[toolindex][gindex] &&
  11652. groupStudent[toolindex][gindex][0] &&
  11653. groupJson.islock == 2,
  11654. }"
  11655. ><span
  11656. class="updateChairBtn"
  11657. @click="
  11658. updateGroupChair(
  11659. groupStudent[toolindex][gindex] &&
  11660. groupStudent[toolindex][gindex][0]
  11661. )
  11662. "
  11663. >修改</span
  11664. ></span
  11665. ><span>{{
  11666. groupStudent[toolindex][gindex] &&
  11667. groupStudent[toolindex][gindex][0]
  11668. ? groupStudent[toolindex][gindex] &&
  11669. groupStudent[toolindex][gindex][0].name
  11670. : "空位置"
  11671. }}</span>
  11672. </div>
  11673. <div v-if="groupJson.number > 4">
  11674. <span
  11675. :class="{
  11676. isChair:
  11677. groupStudent[toolindex][gindex] &&
  11678. groupStudent[toolindex][gindex][4],
  11679. updateChair:
  11680. courseDetail.userid == userid &&
  11681. groupStudent[toolindex][gindex] &&
  11682. groupStudent[toolindex][gindex][4] &&
  11683. groupJson.islock == 2,
  11684. }"
  11685. ><span
  11686. class="updateChairBtn"
  11687. @click="
  11688. updateGroupChair(
  11689. groupStudent[toolindex][gindex] &&
  11690. groupStudent[toolindex][gindex][4]
  11691. )
  11692. "
  11693. >修改</span
  11694. ></span
  11695. ><span>{{
  11696. groupStudent[toolindex][gindex] &&
  11697. groupStudent[toolindex][gindex][4]
  11698. ? groupStudent[toolindex][gindex] &&
  11699. groupStudent[toolindex][gindex][4].name
  11700. : "空位置"
  11701. }}</span>
  11702. </div>
  11703. <div v-if="groupJson.number > 8">
  11704. <span
  11705. :class="{
  11706. isChair:
  11707. groupStudent[toolindex][gindex] &&
  11708. groupStudent[toolindex][gindex][8],
  11709. updateChair:
  11710. courseDetail.userid == userid &&
  11711. groupStudent[toolindex][gindex] &&
  11712. groupStudent[toolindex][gindex][8] &&
  11713. groupJson.islock == 2,
  11714. }"
  11715. ><span
  11716. class="updateChairBtn"
  11717. @click="
  11718. updateGroupChair(
  11719. groupStudent[toolindex][gindex] &&
  11720. groupStudent[toolindex][gindex][8]
  11721. )
  11722. "
  11723. >修改</span
  11724. ></span
  11725. ><span>{{
  11726. groupStudent[toolindex][gindex] &&
  11727. groupStudent[toolindex][gindex][8]
  11728. ? groupStudent[toolindex][gindex] &&
  11729. groupStudent[toolindex][gindex][8].name
  11730. : "空位置"
  11731. }}</span>
  11732. </div>
  11733. </div>
  11734. <div class="g_d_group_tableBox">
  11735. <div class="g_d_group_chair2">
  11736. <div v-if="groupJson.number > 2">
  11737. <span
  11738. :class="{
  11739. isChair:
  11740. groupStudent[toolindex][gindex] &&
  11741. groupStudent[toolindex][gindex][2],
  11742. updateChair:
  11743. courseDetail.userid == userid &&
  11744. groupStudent[toolindex][gindex] &&
  11745. groupStudent[toolindex][gindex][2] &&
  11746. groupJson.islock == 2,
  11747. }"
  11748. ><span
  11749. class="updateChairBtn"
  11750. @click="
  11751. updateGroupChair(
  11752. groupStudent[toolindex][gindex] &&
  11753. groupStudent[toolindex][gindex][2]
  11754. )
  11755. "
  11756. >修改</span
  11757. ></span
  11758. ><span>{{
  11759. groupStudent[toolindex][gindex] &&
  11760. groupStudent[toolindex][gindex][2]
  11761. ? groupStudent[toolindex][gindex] &&
  11762. groupStudent[toolindex][gindex][2].name
  11763. : "空位置"
  11764. }}</span>
  11765. </div>
  11766. <div v-if="groupJson.number > 6">
  11767. <span
  11768. :class="{
  11769. isChair:
  11770. groupStudent[toolindex][gindex] &&
  11771. groupStudent[toolindex][gindex][6],
  11772. updateChair:
  11773. courseDetail.userid == userid &&
  11774. groupStudent[toolindex][gindex] &&
  11775. groupStudent[toolindex][gindex][6] &&
  11776. groupJson.islock == 2,
  11777. }"
  11778. ><span
  11779. class="updateChairBtn"
  11780. @click="
  11781. updateGroupChair(
  11782. groupStudent[toolindex][gindex] &&
  11783. groupStudent[toolindex][gindex][6]
  11784. )
  11785. "
  11786. >修改</span
  11787. ></span
  11788. ><span>{{
  11789. groupStudent[toolindex][gindex] &&
  11790. groupStudent[toolindex][gindex][6]
  11791. ? groupStudent[toolindex][gindex] &&
  11792. groupStudent[toolindex][gindex][6].name
  11793. : "空位置"
  11794. }}</span>
  11795. </div>
  11796. </div>
  11797. <div class="g_d_group_table">
  11798. <div>
  11799. {{ g.name }}
  11800. </div>
  11801. <div>
  11802. <div
  11803. v-if="
  11804. courseDetail.userid == userid && groupJson.islock == 2
  11805. "
  11806. @click="deleteGroupChair(gindex)"
  11807. >
  11808. 移除组员
  11809. </div>
  11810. <div
  11811. @click="selectGroup(gindex)"
  11812. v-else-if="
  11813. groupStudentUid[toolindex] &&
  11814. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11815. "
  11816. >
  11817. 加入分组
  11818. </div>
  11819. <div
  11820. @click="
  11821. exitGroup(
  11822. groupStudent[toolindex][gindex] &&
  11823. groupStudent[toolindex][gindex][
  11824. groupStudentUid[toolindex][gindex].indexOf(userid)
  11825. ].id
  11826. )
  11827. "
  11828. v-else-if="
  11829. groupStudentUid[toolindex] &&
  11830. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11831. "
  11832. >
  11833. 退出分组
  11834. </div>
  11835. </div>
  11836. </div>
  11837. <div class="g_d_group_chair2">
  11838. <div v-if="groupJson.number > 3">
  11839. <span
  11840. :class="{
  11841. isChair:
  11842. groupStudent[toolindex][gindex] &&
  11843. groupStudent[toolindex][gindex][3],
  11844. updateChair:
  11845. courseDetail.userid == userid &&
  11846. groupStudent[toolindex][gindex] &&
  11847. groupStudent[toolindex][gindex][3] &&
  11848. groupJson.islock == 2,
  11849. }"
  11850. ><span
  11851. class="updateChairBtn"
  11852. @click="
  11853. updateGroupChair(
  11854. groupStudent[toolindex][gindex] &&
  11855. groupStudent[toolindex][gindex][3]
  11856. )
  11857. "
  11858. >修改</span
  11859. ></span
  11860. ><span>{{
  11861. groupStudent[toolindex][gindex] &&
  11862. groupStudent[toolindex][gindex][3]
  11863. ? groupStudent[toolindex][gindex] &&
  11864. groupStudent[toolindex][gindex][3].name
  11865. : "空位置"
  11866. }}</span>
  11867. </div>
  11868. <div v-if="groupJson.number > 7">
  11869. <span
  11870. :class="{
  11871. isChair:
  11872. groupStudent[toolindex][gindex] &&
  11873. groupStudent[toolindex][gindex][7],
  11874. updateChair:
  11875. courseDetail.userid == userid &&
  11876. groupStudent[toolindex][gindex] &&
  11877. groupStudent[toolindex][gindex][7] &&
  11878. groupJson.islock == 2,
  11879. }"
  11880. ><span
  11881. class="updateChairBtn"
  11882. @click="
  11883. updateGroupChair(
  11884. groupStudent[toolindex][gindex] &&
  11885. groupStudent[toolindex][gindex][7]
  11886. )
  11887. "
  11888. >修改</span
  11889. ></span
  11890. ><span>{{
  11891. groupStudent[toolindex][gindex] &&
  11892. groupStudent[toolindex][gindex][7]
  11893. ? groupStudent[toolindex][gindex] &&
  11894. groupStudent[toolindex][gindex][7].name
  11895. : "空位置"
  11896. }}</span>
  11897. </div>
  11898. </div>
  11899. </div>
  11900. <div class="g_d_group_chair">
  11901. <div v-if="groupJson.number > 1">
  11902. <span
  11903. :class="{
  11904. isChair:
  11905. groupStudent[toolindex][gindex] &&
  11906. groupStudent[toolindex][gindex][1],
  11907. updateChair:
  11908. courseDetail.userid == userid &&
  11909. groupStudent[toolindex][gindex] &&
  11910. groupStudent[toolindex][gindex][1] &&
  11911. groupJson.islock == 2,
  11912. }"
  11913. ><span
  11914. class="updateChairBtn"
  11915. @click="
  11916. updateGroupChair(
  11917. groupStudent[toolindex][gindex] &&
  11918. groupStudent[toolindex][gindex][1]
  11919. )
  11920. "
  11921. >修改</span
  11922. ></span
  11923. ><span>{{
  11924. groupStudent[toolindex][gindex] &&
  11925. groupStudent[toolindex][gindex][1]
  11926. ? groupStudent[toolindex][gindex] &&
  11927. groupStudent[toolindex][gindex][1].name
  11928. : "空位置"
  11929. }}</span>
  11930. </div>
  11931. <div v-if="groupJson.number > 5">
  11932. <span
  11933. :class="{
  11934. isChair:
  11935. groupStudent[toolindex][gindex] &&
  11936. groupStudent[toolindex][gindex][5],
  11937. updateChair:
  11938. courseDetail.userid == userid &&
  11939. groupStudent[toolindex][gindex] &&
  11940. groupStudent[toolindex][gindex][5] &&
  11941. groupJson.islock == 2,
  11942. }"
  11943. ><span
  11944. class="updateChairBtn"
  11945. @click="
  11946. updateGroupChair(
  11947. groupStudent[toolindex][gindex] &&
  11948. groupStudent[toolindex][gindex][5]
  11949. )
  11950. "
  11951. >修改</span
  11952. ></span
  11953. ><span>{{
  11954. groupStudent[toolindex][gindex] &&
  11955. groupStudent[toolindex][gindex][5]
  11956. ? groupStudent[toolindex][gindex] &&
  11957. groupStudent[toolindex][gindex][5].name
  11958. : "空位置"
  11959. }}</span>
  11960. </div>
  11961. <div v-if="groupJson.number > 9">
  11962. <span
  11963. :class="{
  11964. isChair:
  11965. groupStudent[toolindex][gindex] &&
  11966. groupStudent[toolindex][gindex][9],
  11967. updateChair:
  11968. courseDetail.userid == userid &&
  11969. groupStudent[toolindex][gindex] &&
  11970. groupStudent[toolindex][gindex][9] &&
  11971. groupJson.islock == 2,
  11972. }"
  11973. ><span
  11974. class="updateChairBtn"
  11975. @click="
  11976. updateGroupChair(
  11977. groupStudent[toolindex][gindex] &&
  11978. groupStudent[toolindex][gindex][9]
  11979. )
  11980. "
  11981. >修改</span
  11982. ></span
  11983. ><span>{{
  11984. groupStudent[toolindex][gindex] &&
  11985. groupStudent[toolindex][gindex][9]
  11986. ? groupStudent[toolindex][gindex] &&
  11987. groupStudent[toolindex][gindex][9].name
  11988. : "空位置"
  11989. }}</span>
  11990. </div>
  11991. </div>
  11992. </div>
  11993. </div>
  11994. </div>
  11995. </div>
  11996. <span slot="footer" class="dialog-footer">
  11997. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11998. </span>
  11999. </el-dialog>
  12000. <el-dialog
  12001. title="分组设置"
  12002. :visible.sync="dialogVisibleGroup2"
  12003. :append-to-body="true"
  12004. width="650px"
  12005. :before-close="handleClose"
  12006. class="dialog_diy"
  12007. >
  12008. <div class="groupBox">
  12009. <div v-if="groupJson2.group" class="groupContent">
  12010. <div class="groupTitle">请设置小组数量及名称</div>
  12011. <div
  12012. v-for="(item, index) in groupJson2.group"
  12013. :key="index"
  12014. class="groupName"
  12015. >
  12016. <span class="groupn">第{{ index + 1 }}组名称:</span>
  12017. <el-input
  12018. v-model="item.name"
  12019. placeholder="请输入名称..."
  12020. style="width: 250px"
  12021. ></el-input>
  12022. <!-- <div class="groupBtn">
  12023. <el-button type="primary" size="small" @click="addGroup(index)">
  12024. 添加</el-button>
  12025. <el-button type="primary" size="small" @click="deleteGroup(index)"
  12026. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  12027. </div> -->
  12028. </div>
  12029. </div>
  12030. <div class="groupContent">
  12031. <div class="groupTitle">请设置每组人数</div>
  12032. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  12033. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  12034. <el-input
  12035. v-model="groupJson2.number"
  12036. style="width: 150px"
  12037. placeholder="请输入2-10的数字"
  12038. @change="numberPan"
  12039. ></el-input>
  12040. </div>
  12041. </div>
  12042. <span slot="footer" class="dialog-footer">
  12043. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  12044. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  12045. </span>
  12046. </el-dialog>
  12047. <el-dialog
  12048. title="作业提交"
  12049. :visible.sync="dialogVisibleGroupWork"
  12050. :append-to-body="true"
  12051. width="500px"
  12052. :before-close="handleClose"
  12053. class="dialog_change"
  12054. >
  12055. <div class="marginT">
  12056. <div>上传文件</div>
  12057. <div
  12058. class="chapter_add"
  12059. @click="addImg($event)"
  12060. v-if="studyJuri[0].cover.length == 0"
  12061. >
  12062. <div class="up_photo">
  12063. <img src="../../assets/icon/uploadImg.png" alt />
  12064. </div>
  12065. <!-- <input
  12066. type="file"
  12067. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12068. style="display: none"
  12069. @change="beforeUpload1($event, 1)"
  12070. /> -->
  12071. <input
  12072. type="file"
  12073. accept="*"
  12074. style="display: none"
  12075. @change="beforeUpload1($event, 1)"
  12076. />
  12077. </div>
  12078. <!-- capture="camera" -->
  12079. <div
  12080. class="chapter_add"
  12081. style="
  12082. display: flex;
  12083. width: 100%;
  12084. flex-direction: row;
  12085. flex-wrap: wrap;
  12086. justify-content: flex-start;
  12087. padding: 15px 0;
  12088. "
  12089. v-if="studyJuri[0].cover.length > 0"
  12090. >
  12091. <div class="upCover">
  12092. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  12093. <img :src="word" alt v-else-if="fileType == 1" />
  12094. <img :src="video" alt v-else-if="fileType == 2" />
  12095. <img :src="word2" alt v-else-if="fileType == 3" />
  12096. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  12097. <div class="deleteWord" @click="clean(1)">
  12098. <img src="../../assets/icon/deleteWorks.png" alt />
  12099. </div>
  12100. </div>
  12101. </div>
  12102. </div>
  12103. <div
  12104. class="upload_send"
  12105. @click="addCourseWorks2(taskCount)"
  12106. v-if="!proVisible"
  12107. >
  12108. 提交
  12109. </div>
  12110. </el-dialog>
  12111. <el-dialog
  12112. title="修改分组"
  12113. :visible.sync="dialogVisibleUpdateGroup"
  12114. :append-to-body="true"
  12115. width="350px"
  12116. :before-close="handleClose"
  12117. class="dialog_diy"
  12118. >
  12119. <div>
  12120. <h2>
  12121. {{ this.updateGroupUser.name }}
  12122. </h2>
  12123. <div style="color: rgb(171 171 171); margin-top: 10px">
  12124. 请选择要进入的分组
  12125. </div>
  12126. <el-radio-group v-model="checkChair">
  12127. <el-radio
  12128. style="display: block; margin-top: 20px"
  12129. v-for="(item, index) in updateGroupArray"
  12130. :label="item.label"
  12131. :key="index"
  12132. >{{ item.name }}</el-radio
  12133. >
  12134. </el-radio-group>
  12135. </div>
  12136. <span slot="footer" class="dialog-footer">
  12137. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  12138. <el-button type="primary" @click="updateChair">确定</el-button>
  12139. </span>
  12140. </el-dialog>
  12141. <el-dialog
  12142. title="移除组员"
  12143. :visible.sync="dialogVisibleDeleteGroup"
  12144. :append-to-body="true"
  12145. width="350px"
  12146. :before-close="handleClose"
  12147. class="dialog_diy"
  12148. >
  12149. <div>
  12150. <h2>
  12151. {{ this.deleteGroupArray.name }}
  12152. </h2>
  12153. <div style="color: rgb(171 171 171); margin-top: 10px">
  12154. 请选择要删除的组员
  12155. </div>
  12156. <el-checkbox-group v-model="checkDeleteGroup">
  12157. <el-checkbox
  12158. style="display: flex; margin-top: 20px"
  12159. v-for="(item, index) in deleteGroupUser"
  12160. :label="item.userid"
  12161. :key="index"
  12162. >{{ item.name }}</el-checkbox
  12163. >
  12164. </el-checkbox-group>
  12165. </div>
  12166. <span slot="footer" class="dialog-footer">
  12167. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  12168. <el-button type="primary" @click="deleteChair">确定</el-button>
  12169. </span>
  12170. </el-dialog>
  12171. <el-dialog
  12172. title="批量上传"
  12173. :visible.sync="dialogVisiblePl"
  12174. :append-to-body="true"
  12175. width="700px"
  12176. :before-close="handleClose"
  12177. class="dialog_change"
  12178. >
  12179. <div class="marginT">
  12180. <div class="plworkBox">
  12181. <div
  12182. class="chapter_add"
  12183. style="
  12184. display: flex;
  12185. width: 150px;
  12186. flex-direction: row;
  12187. flex-wrap: wrap;
  12188. justify-content: flex-start;
  12189. margin: 0 10px 10px 0;
  12190. "
  12191. v-for="(item, index) in plworkFile"
  12192. :key="index"
  12193. >
  12194. <div class="upCover2">
  12195. <img
  12196. :src="item.url"
  12197. alt
  12198. v-if="item.fileType == 1"
  12199. @click="previewImg(item.url)"
  12200. />
  12201. <img :src="word" alt v-else-if="item.fileType == 4" />
  12202. <img :src="video" alt v-else />
  12203. <!-- <span class="picName">{{ item.name }}</span> -->
  12204. <!-- <el-input
  12205. v-model="item.username"
  12206. placeholder="请输入学生名字"
  12207. style="margin-top: 10px"
  12208. ></el-input> -->
  12209. <div
  12210. class="pl_select_box"
  12211. @click="
  12212. getUpdateMore(true, checkUpload(), item.username, index)
  12213. "
  12214. >
  12215. {{ getSName(item.username) }}
  12216. </div>
  12217. <!-- <el-select
  12218. style="margin-top: 10px"
  12219. v-model="item.username"
  12220. filterable
  12221. allow-create
  12222. placeholder="请选择学生"
  12223. >
  12224. <el-option
  12225. v-for="item1 in checkUpload()"
  12226. :key="item1.userid"
  12227. :label="item1.name ? item1.name : item1.username"
  12228. :value="item1.userid"
  12229. >
  12230. </el-option>
  12231. </el-select> -->
  12232. <div class="deleteWord" @click="clean2(index)">
  12233. <img src="../../assets/icon/deleteWorks.png" alt />
  12234. </div>
  12235. </div>
  12236. </div>
  12237. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  12238. <div class="up_photo2">
  12239. <img src="../../assets/icon/plwork.png" alt />
  12240. <span>点击上传文件</span>
  12241. </div>
  12242. <input
  12243. type="file"
  12244. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12245. multiple="multiple"
  12246. style="display: none"
  12247. @change="beforeUpload3($event, 6)"
  12248. />
  12249. </div>
  12250. </div>
  12251. </div>
  12252. <!-- capture="camera" -->
  12253. <div
  12254. class="upload_send"
  12255. @click="addCourseWorksPl(taskCount)"
  12256. v-if="!proVisible2"
  12257. >
  12258. 提交
  12259. </div>
  12260. </el-dialog>
  12261. <el-dialog
  12262. title="修改名称"
  12263. :visible.sync="dialogVisibleSname"
  12264. width="500px"
  12265. :before-close="handleClose"
  12266. class="dialog_diy"
  12267. center
  12268. >
  12269. <div
  12270. style="
  12271. text-align: center;
  12272. display: flex;
  12273. align-items: center;
  12274. justify-content: center;
  12275. "
  12276. >
  12277. <span class="tian1">名称</span>
  12278. <div
  12279. class="pl_select_box"
  12280. style="margin-left: 10px; width: 200px"
  12281. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  12282. >
  12283. {{ getSName(worksSName) }}
  12284. </div>
  12285. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  12286. placeholder="请选择学生">
  12287. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  12288. :value="item.userid">
  12289. </el-option>
  12290. </el-select> -->
  12291. <!-- <el-input
  12292. v-model="worksSName"
  12293. style="width: 250px; margin: 15px 0px"
  12294. ></el-input> -->
  12295. </div>
  12296. <span slot="footer" class="dialog-footer">
  12297. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  12298. <el-button type="primary" @click="updateName">确 定</el-button>
  12299. </span>
  12300. </el-dialog>
  12301. <el-dialog
  12302. title="英语写作"
  12303. :visible.sync="engDialogVisible"
  12304. :append-to-body="true"
  12305. width="800px"
  12306. :before-close="handleClose"
  12307. class="dialog_diy"
  12308. >
  12309. <onlineWrite
  12310. v-if="engDialogVisible"
  12311. :englishList="englishList"
  12312. :myAnswerList1="myAnswerList1"
  12313. ref="engJson"
  12314. ></onlineWrite>
  12315. <span slot="footer" class="dialog-footer" style="text-align: center;">
  12316. <el-button @click="engDialogVisible = false">取 消</el-button>
  12317. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  12318. </span>
  12319. </el-dialog>
  12320. <el-dialog
  12321. title="英语写作"
  12322. :visible.sync="engUpdateDialogVisible"
  12323. :append-to-body="true"
  12324. width="800px"
  12325. :before-close="handleClose"
  12326. class="dialog_diy fullStyle"
  12327. >
  12328. <div class="engUpBox">
  12329. <div class="engUpTop">
  12330. <div class="engTitle">
  12331. <div>作文题目:</div>
  12332. <div>{{ englishList1.engTitle }}</div>
  12333. </div>
  12334. <div class="engText">
  12335. <div>作文内容:</div>
  12336. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  12337. </div>
  12338. </div>
  12339. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  12340. <div class="oldBox">
  12341. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  12342. <div class="oldText">
  12343. <div class="detailBox">
  12344. <div class="oldDetail">
  12345. <div>标题:</div>
  12346. <div>{{ oldEnglishJson.engTitle }} </div>
  12347. </div>
  12348. <div class="oldDetail1">
  12349. <div>正文:</div>
  12350. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  12351. </div>
  12352. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  12353. <div>图片:</div>
  12354. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  12355. </div>
  12356. </div>
  12357. </div>
  12358. </div>
  12359. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  12360. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  12361. <div class="oldText">
  12362. <div class="detailBox" style="position: relative;">
  12363. <div class="oldDetail">
  12364. <div>标题:</div>
  12365. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12366. <div v-else v-html="newEnglishList.engTitle"></div>
  12367. </div>
  12368. <div class="oldDetail">
  12369. <div>正文:</div>
  12370. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12371. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12372. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  12373. </div>
  12374. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12375. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12376. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12377. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12378. </div>
  12379. </div>
  12380. </div>
  12381. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  12382. <div class="oldMes" style="background: rgb(224 236 255);display: flex;flex-direction: row;flex-wrap: nowrap;align-items: center;overflow-x: auto;overflow-y: hidden;" v-if="newEnglishList1.length > 0">
  12383. <div v-if="isNoUserid" class="allName" :style="{minWidth: `calc(100% / ${engListLength})`,background: newEngIndex == -1 ? '#aacaff' : ''}" @click="setEngText(-1)" style="background: #aacaff;">{{ userMes[0].username }}</div>
  12384. <div v-for="(item,index) in newEnglishList1" :key="index" class="allName" :style="{minWidth: `calc(100% / ${engListLength})`,background: index == newEngIndex ? '#aacaff' : ''}" @click="setEngText(index)">{{ item.username }}</div>
  12385. </div>
  12386. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  12387. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  12388. <div class="detailBox" style="position: relative;">
  12389. <div class="oldDetail">
  12390. <div>标题:</div>
  12391. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  12392. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  12393. </div>
  12394. <div class="oldDetail">
  12395. <div>正文:</div>
  12396. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  12397. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  12398. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(oldEnglishJson1.engText,correctWord)"></div> -->
  12399. </div>
  12400. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12401. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12402. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12403. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12404. </div>
  12405. </div>
  12406. <div class="oldText" v-else-if="newEngIndex == -1">
  12407. <div class="detailBox" style="position: relative;">
  12408. <div class="oldDetail">
  12409. <div>标题:</div>
  12410. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12411. <div v-else v-html="newEnglishList.engTitle"></div>
  12412. </div>
  12413. <div class="oldDetail">
  12414. <div>正文:</div>
  12415. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12416. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12417. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  12418. </div>
  12419. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12420. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12421. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12422. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12423. </div>
  12424. </div>
  12425. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  12426. <div class="detailBox" style="position: relative;">
  12427. <div class="oldDetail">
  12428. <div>标题:</div>
  12429. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12430. <div v-else>
  12431. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  12432. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12433. </div>
  12434. </div>
  12435. <div class="oldDetail">
  12436. <div>正文:</div>
  12437. <!-- <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engText"></div> -->
  12438. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12439. <div v-else>
  12440. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  12441. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12442. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList1[newEngIndex].cWork.engText,correctWord)"></div> -->
  12443. </div>
  12444. </div>
  12445. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12446. <el-button @click="isUpdateCorrect(newEnglishList1[newEngIndex].cWork.engText,4)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }" v-if="!greyType && userMes[0].userid == newEnglishList1[newEngIndex].correct">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12447. <el-button @click="aiCorrect(newEnglishList1[newEngIndex].cWork.engText,4)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType && userMes[0].userid == newEnglishList1[newEngIndex].correct">AI批注</el-button>
  12448. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12449. </div>
  12450. </div>
  12451. </div>
  12452. </div>
  12453. </div>
  12454. <span slot="footer" class="dialog-footer">
  12455. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  12456. <el-button type="primary" @click="addCorrect">确 定</el-button>
  12457. </span>
  12458. </el-dialog>
  12459. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  12460. <interVideo
  12461. :dialogVisibleVideo.sync="dialogVisibleVideo"
  12462. :videoJson="videoJson"
  12463. :userid="userid"
  12464. :id="id"
  12465. :courseType="courseType"
  12466. :taskCount="taskCount"
  12467. :toolindex="toolindex"
  12468. :videoType="videoType"
  12469. ></interVideo>
  12470. <UpdateMore
  12471. :dialogVisibleMember.sync="dialogVisibleMember"
  12472. :cList="uploadStudentJuri"
  12473. :userid="userid"
  12474. :searchTN="worksSName2"
  12475. @setPlname="setPlname"
  12476. ></UpdateMore>
  12477. <!-- <wordCloud
  12478. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  12479. :data="wordCloudData"
  12480. ></wordCloud> -->
  12481. <el-dialog
  12482. title="词云"
  12483. :visible.sync="dialogVisibleWordCloud"
  12484. width="30%"
  12485. class="dialog_diy"
  12486. :before-close="handleClose">
  12487. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  12488. </el-dialog>
  12489. <el-dialog
  12490. title="挑人"
  12491. :visible.sync="dialogVisiblePickPeople"
  12492. width="650px"
  12493. :before-close="handleClose"
  12494. class="dialog_diy"
  12495. center
  12496. >
  12497. <div class="pick_box">
  12498. <div
  12499. class="noWorksName"
  12500. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  12501. v-for="(item, index) in uploadStudentJuri"
  12502. :key="index"
  12503. @click="pickStudent(item)"
  12504. >
  12505. {{ item.name }}
  12506. </div>
  12507. </div>
  12508. </el-dialog>
  12509. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  12510. :englishVoiceJson='englishVoiceJson'
  12511. :userid="userid"
  12512. :id="id"
  12513. :courseType="courseType"
  12514. :taskCount="taskCount"
  12515. :toolindex="toolindex"
  12516. @selectSWorks="selectSWorks"
  12517. @selectStudent="selectStudent"
  12518. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  12519. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  12520. :userid="userid"
  12521. :dialogVisibleENScore.sync='dialogVisibleENScore'
  12522. :commentDetail="commentDetail"
  12523. :courseDetail="courseDetail"
  12524. :wScore="wScore"
  12525. :scoreDetail="scoreDetail"
  12526. @selectSWorks="selectSWorks"
  12527. @selectStudent="selectStudent"></checkEnglishVoice>
  12528. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  12529. <choseWorksDetailDialog
  12530. ref="choseWorksDetailDialogRef"
  12531. :worksStudentData="worksStudent"
  12532. :noWorksSData="noWorksS"
  12533. :chapInfoListData="chapInfoList"
  12534. :courseType="courseType"
  12535. :taskCount="taskCount"
  12536. :tType="tType"
  12537. :sIsOpen="sIsOpen"
  12538. :courseDetail="courseDetail"
  12539. :groupStudent2="groupStudent"
  12540. :groupStudentUid2="groupStudentUid"
  12541. :oid="oid"
  12542. :org="org"
  12543. @getCourseDetail="getCourseDetail"
  12544. @selectSLook="selectSLook"
  12545. @selectSWorks="selectSWorks"
  12546. @selectStudent="selectStudent"
  12547. @deleteWorks="deleteWorks"
  12548. @openTools="openTools"
  12549. @openWord="openWord"
  12550. @openScore="openScore"
  12551. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  12552. />
  12553. <el-dialog
  12554. :visible.sync="confirmOpenDig"
  12555. width="500px"
  12556. :modal="false"
  12557. class="confirmOpenDigCss dialog_diyCopy"
  12558. :before-close="handleClose">
  12559. <div style="display: flex;align-items: center;">
  12560. <img src="../../assets/icon/course/confirmOpenDig.svg" alt="">
  12561. <span>“{{ courseDetail.title }}”开课啦</span>
  12562. </div>
  12563. <div style="margin: 20px 0 35px;">
  12564. <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
  12565. <div>要认真听讲哦~</div>
  12566. </div>
  12567. <div style="text-align: center;">
  12568. <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
  12569. </div>
  12570. </el-dialog>
  12571. <appStoreC ref="appStoreC"
  12572. :sStudent="sStudent"
  12573. :courseType="courseType"
  12574. :taskCount="taskCount"
  12575. :toolindex="toolindex"
  12576. @selectSWorks="selectSWorks"
  12577. @selectStudent="selectStudent"
  12578. ></appStoreC>
  12579. <cocoFlowDia ref="cocoFlowDiaRef"></cocoFlowDia>
  12580. </div>
  12581. </template>
  12582. <script>
  12583. import "../../common/aws-sdk-2.235.1.min.js";
  12584. // import pdf from "../components/pdf3";
  12585. import pdf from "../components/vpdf";
  12586. import AskStatic from "../components/askStatic";
  12587. import AskStatic2 from "../components/askStatic2";
  12588. import AnswerData2 from "../components/answerData2";
  12589. import AnswerData from "../components/answerData";
  12590. import sortToolWorkShow from "../components/sortToolWorkShow.vue";
  12591. import EditorBar from "../tools/wangEnduit.vue";
  12592. import Table from "../tools/table.vue";
  12593. import Time from "../tools/time.vue";
  12594. import Mind from "../tools/jsmind.vue";
  12595. import Sunburst from "../tools/sunburst";
  12596. import SeeBoard from "../tools/seeBoard";
  12597. import * as imageConversion from "image-conversion";
  12598. import Audio from "../components/audio.vue";
  12599. import ImgDraw from "../tools/imgDraw/imgDraw";
  12600. import { Empty } from "element-ui";
  12601. import RecordRTC from "recordrtc";
  12602. import interVideo from "../interVideo/index.vue";
  12603. import UpdateMore from "../updateMore/updateMore.vue";
  12604. import wordCloud from "../wordCloud/index.vue";
  12605. import axios from "axios";
  12606. import JSZip from "jszip";
  12607. import FileSaver from "file-saver";
  12608. import onlineWrite from "./commpont/onlineWrite";
  12609. import englishEva from "../components/englishEva";
  12610. import * as Diff from 'diff'
  12611. import EnglishVoice from '../EnglishVoice2/index.vue'
  12612. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  12613. import correctText from '../components/correctText.vue'
  12614. import scoreItem from '../scoreList/scoreItem.vue'
  12615. import scoreZong from '../scoreZong/index.vue'
  12616. import classRoomHelper from '../classRoomHelper/index.vue'
  12617. import studentClassRoomHelper from '../classRoomHelper/studentIndex.vue'
  12618. import MarkdownIt from "markdown-it";
  12619. import statisticalAnalysis from '../components/statisticalAnalysis.vue'
  12620. import choseWorksDetailDialog from '../components/choseWorksDetailDialog.vue'
  12621. import { v4 as uuidv4 } from "uuid";
  12622. var OpenCC = require("opencc-js");
  12623. import choseWordCloud from '../components/choseWordCloud.vue'
  12624. import appStoreC from "../components/appStoreC.vue";
  12625. import cocoFlowDia from "../components/cocoFlowDia.vue";
  12626. import { myMixin } from "@/mixins/mixin.js"
  12627. import { tools as toolsList } from "@/common/tools2.js";
  12628. import katex from 'katex'
  12629. import 'katex/dist/katex.min.css'
  12630. let converter = OpenCC.Converter({
  12631. from: "hk",
  12632. to: "cn"
  12633. });
  12634. const getFile = (url) => {
  12635. return new Promise((resolve, reject) => {
  12636. var credentials = {
  12637. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  12638. secretAccessKey: "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",
  12639. }; //秘钥形式的登录上传
  12640. window.AWS.config.update(credentials);
  12641. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12642. let url2 = url;
  12643. let _url2 = "";
  12644. if (
  12645. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  12646. ) {
  12647. _url2 = url2.split(
  12648. "https://view.officeapps.live.com/op/view.aspx?src="
  12649. )[1];
  12650. } else {
  12651. _url2 = url2;
  12652. }
  12653. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  12654. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  12655. var params = {
  12656. Bucket: "ccrb",
  12657. Key: name
  12658. };
  12659. s3.getObject(params, function (err, data) {
  12660. if (err) {
  12661. console.log(err, err.stack)
  12662. resolve({ data: 1 });
  12663. }else {
  12664. resolve({ data: data.Body });
  12665. console.log(data);
  12666. } // sxuccessful response
  12667. });
  12668. // axios({
  12669. // method: "get",
  12670. // url,
  12671. // responseType: "blob",
  12672. // })
  12673. // .then((data) => {
  12674. // resolve({ data: data.data });
  12675. // })
  12676. // .catch((error) => {
  12677. // resolve({ data: 1 });
  12678. // // reject(error.toString());
  12679. // });
  12680. });
  12681. };
  12682. export default {
  12683. mixins: [ myMixin ],
  12684. components: {
  12685. choseWordCloud,
  12686. EditorBar,
  12687. Time,
  12688. pdf,
  12689. AskStatic,
  12690. AskStatic2,
  12691. Mind,
  12692. Sunburst,
  12693. SeeBoard,
  12694. AnswerData2,
  12695. AnswerData,
  12696. sortToolWorkShow,
  12697. Audio,
  12698. ImgDraw,
  12699. Table,
  12700. interVideo,
  12701. UpdateMore,
  12702. wordCloud,
  12703. onlineWrite,
  12704. englishEva,
  12705. EnglishVoice,
  12706. checkEnglishVoice,
  12707. correctText,
  12708. scoreItem,
  12709. classRoomHelper,
  12710. scoreZong,
  12711. statisticalAnalysis,
  12712. choseWorksDetailDialog,
  12713. appStoreC,
  12714. cocoFlowDia,
  12715. studentClassRoomHelper
  12716. },
  12717. data() {
  12718. return {
  12719. // 学校或者组织随机码
  12720. Code2:'',
  12721. startTime: "",
  12722. // 是否允许学生查看内容资料 2不可以 1可以
  12723. IsStulook:false,
  12724. homeWorkLoading:false,
  12725. toolsList: toolsList,
  12726. wordCloudKey: 0,
  12727. bg: null,
  12728. drawShow: false,
  12729. dialogVisible: false,
  12730. dialogVisiblePl: false,
  12731. commentDialogVisible: false,
  12732. dialogVisibleMember: false,
  12733. dialogVisibleWordCloud: false,
  12734. videoVisible: false,
  12735. isStar: false,
  12736. studentEvalDialogVisible: false,
  12737. studentEvalDialogVisibleTeacher: false,
  12738. dialogVisibleSelect: false,
  12739. dialogVisibleSelectTeacher: false,
  12740. dialogVisibleScore: false,
  12741. dialogVisibleENScore: false,
  12742. dialogVisibleSentence: false,
  12743. dialogVisibleSentenceTeacher: false,
  12744. dialogVisibleSentence1: false,
  12745. dialogVisibleWorks: false,
  12746. dialogVisibleTable: false,
  12747. dialogVisibleTableTeacher: false,
  12748. dialogVisibleWord: false,
  12749. dialogVisibleWordTeacher: false,
  12750. dialogVisibleTable2: false,
  12751. dialogVisibleTable3: false,
  12752. dialogVisibleGroupWork: false,
  12753. dialogVisibleUpdateGroup: false,
  12754. dialogVisibleDeleteGroup: false,
  12755. dialogVisibleSname: false,
  12756. dialogVisibleVideo: false,
  12757. dialogVisiblePickPeople: false,
  12758. worksSName: "",
  12759. classJuri: [],
  12760. uploadStudentJuri: [],
  12761. uploadCid: "",
  12762. snameWid: "",
  12763. sStudent: {},
  12764. sTool: "",
  12765. bzText: "",
  12766. commentDetail: [],
  12767. selectAnswer: [],
  12768. videoDetail: {},
  12769. selectJson: {},
  12770. eScore: { eBzText: "", eStar: [] },
  12771. id: this.$route.query.courseId,
  12772. userid: this.$route.query.userid,
  12773. classId: this.$route.query.cid,
  12774. role: this.$route.query.role,
  12775. // courseTypeLine: this.$route.query.type,
  12776. oid: this.$route.query.oid,
  12777. org: this.$route.query.org,
  12778. tType: this.$route.query.tType,
  12779. courseType: this.$route.query.type,
  12780. screenType: this.$route.query.screenType,
  12781. tcid2: this.$route.query.tcid,
  12782. tcid: "",
  12783. pptImgUrl: "",
  12784. pptImgUrl1: "",
  12785. commentText: "",
  12786. full: false,
  12787. sIsOpen: false,
  12788. IsLookOpen: false,
  12789. IsFollow: false,
  12790. pzDialog: false,
  12791. contentDialog: false,
  12792. mlDialog: false,
  12793. type: 1,
  12794. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12795. sentenceList1: [],
  12796. tableJson: [],
  12797. tableJsonO: [],
  12798. wordJson: [],
  12799. wordJsonO: [],
  12800. vedio: [],
  12801. text: [],
  12802. textList: [],
  12803. line: [],
  12804. lineList: [],
  12805. chapTools: [],
  12806. chapToolList: [],
  12807. file: [],
  12808. fileC: [],
  12809. vedioTime: [],
  12810. upToolImg: "",
  12811. preTime: 0,
  12812. rateList: {
  12813. ca: 0,
  12814. },
  12815. rateParams: [],
  12816. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12817. studyJuri: [
  12818. {
  12819. content: "",
  12820. cover: [],
  12821. upVedio: [],
  12822. upFile: [],
  12823. },
  12824. ],
  12825. isClose: 0,
  12826. plworkFile: [],
  12827. mr: require("../../assets/vedioPic.png"),
  12828. word: require("../../assets/icon/isWord.png"),
  12829. word2: require("../../assets/icon/word2.png"),
  12830. video: require("../../assets/icon/isVideo.png"),
  12831. noLikes: require("../../assets/icon/comment/noLikes.png"),
  12832. likes: require("../../assets/icon/comment/likes.png"),
  12833. scoreImg: require("../../assets/score.png"),
  12834. courseDetail: {},
  12835. reply: "",
  12836. isSelect: false,
  12837. chapInfo: [],
  12838. chapInfoList: [],
  12839. taskCount: 0,
  12840. imgList: [],
  12841. noImgList: [],
  12842. pzList: [],
  12843. timeWorkList: [],
  12844. PlTextList: [
  12845. "Excellent!",
  12846. "nice!",
  12847. "很有创意!",
  12848. "还不错哦~",
  12849. "继续努力哦~",
  12850. ],
  12851. isClickNav: "",
  12852. navId: "",
  12853. playerOptions: {
  12854. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12855. autoplay: false, //如果true,浏览器准备好时开始回放。
  12856. muted: false, // 默认情况下将会消除任何音频。
  12857. loop: false, // 导致视频一结束就重新开始。
  12858. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12859. language: "zh-CN",
  12860. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12861. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12862. sources: [
  12863. {
  12864. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12865. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12866. },
  12867. ],
  12868. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12869. // poster: dataRes.imgUrl, //你的封面地址
  12870. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12871. controlBar: {
  12872. timeDivider: true, //当前时间和持续时间的分隔符
  12873. durationDisplay: true, //显示持续时间
  12874. remainingTimeDisplay: false, //是否显示剩余时间功能
  12875. fullscreenToggle: true, //全屏按钮
  12876. },
  12877. },
  12878. playerOptions1: {
  12879. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12880. autoplay: false, //如果true,浏览器准备好时开始回放。
  12881. muted: false, // 默认情况下将会消除任何音频。
  12882. loop: false, // 导致视频一结束就重新开始。
  12883. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12884. language: "zh-CN",
  12885. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12886. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12887. sources: [
  12888. {
  12889. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12890. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12891. },
  12892. ],
  12893. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12894. // poster: dataRes.imgUrl, //你的封面地址
  12895. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12896. controlBar: {
  12897. timeDivider: true, //当前时间和持续时间的分隔符
  12898. durationDisplay: true, //显示持续时间
  12899. remainingTimeDisplay: false, //是否显示剩余时间功能
  12900. fullscreenToggle: true, //全屏按钮
  12901. },
  12902. },
  12903. playerO: {},
  12904. noneBtnImg: false,
  12905. proVisible: false,
  12906. proVisible2: false,
  12907. progress: 0,
  12908. isFinishSize: 0,
  12909. isAllSize: 0,
  12910. questionAnswer: "",
  12911. answerQ: "", //问答标题
  12912. rateJson: [],
  12913. wbCount: 0,
  12914. wordCount: 0,
  12915. mindCount: 0,
  12916. askCount: 0,
  12917. noteCount: 0,
  12918. mindNetWorkCount: 0,
  12919. libraryCount: 0,
  12920. workCount: 0,
  12921. timeCount: 0,
  12922. answerCount: 0,
  12923. trainCount: 0,
  12924. evalCount: 0,
  12925. dialogImageUrl: "",
  12926. pictureDialog: false,
  12927. toolTypeList: [],
  12928. dialogVisible1: false,
  12929. dialogVisible2: false,
  12930. dialogVisible3: false,
  12931. dialogVisible6: false,
  12932. dialogVisible4: false,
  12933. isNoHomeWork: false,
  12934. dialogVisible5: false,
  12935. dialogVisible5Teacher: false,
  12936. dialogVisibleChoice: false,
  12937. dialogVisibleChoiceTeacher: false,
  12938. answerDialogVisible: false,
  12939. answerDialogVisibleTeacher: false,
  12940. juriVisible: false,
  12941. timeDialogVisible: false,
  12942. replyDialogVisible: false,
  12943. toolDialogVisible: false,
  12944. engDialogVisible: false,
  12945. engUpdateDialogVisible:false,
  12946. engEvaDialogVisible: false,
  12947. evaEngJson: {
  12948. teacherJson: {},
  12949. studentJson: {},
  12950. message: {},
  12951. },
  12952. isNoUserid:false,
  12953. engListLength:0,
  12954. engWid:"",
  12955. newEnglishList:{
  12956. engTitle:"",
  12957. engText:"",
  12958. },
  12959. newEnglishList1:[],
  12960. oldEnglishJson:{},
  12961. oldEnglishJson1:{},
  12962. englishList1:{},
  12963. englishList:{},
  12964. myAnswerList1:{},
  12965. topHeight:0,
  12966. newEngIndex:-1,
  12967. englishToolIndex:0,
  12968. userMes:{},
  12969. englishToolIndex:0,
  12970. replyIndex: 0,
  12971. replyPid: "",
  12972. radio: [],
  12973. isAsk: false,
  12974. askJson: {
  12975. askCount: 1,
  12976. askTitle: "",
  12977. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12978. },
  12979. testJson: {},
  12980. englishList: {},
  12981. topHeight:0,
  12982. checkJson: [],
  12983. askList: [],
  12984. answerList: [],
  12985. navList: [],
  12986. addPzDialog: false,
  12987. pzConText: "",
  12988. worksStudent: [],
  12989. isCloseList: [],
  12990. workStudent: [],
  12991. groupStudent: [],
  12992. groupStudentUid: [],
  12993. noWorksS: [],
  12994. isWorksS: [],
  12995. noWorksStudent: [],
  12996. toolindex: 0,
  12997. toolDetailIndex: null,
  12998. groupIndex: 0,
  12999. workTypeB: false,
  13000. workTypeC: false,
  13001. isAnswer: false,
  13002. isHovered: false,
  13003. isHovered1: false,
  13004. isHovered2: false,
  13005. commentTagShow:0,
  13006. timer: null,
  13007. timer2: null,
  13008. opertimer: null,
  13009. showType: '',
  13010. fileType: 0,
  13011. showPDF: false,
  13012. noteName: "",
  13013. evaJuri: [],
  13014. evalua: "",
  13015. eTitle: "",
  13016. eName: "",
  13017. eJson: {},
  13018. fid: "", //一级
  13019. sid: "", //二级
  13020. tid: "", //二级
  13021. typeMode: 1,
  13022. eJSONNum: 0,
  13023. Etype: 1,
  13024. data: {
  13025. meta: {
  13026. name: "example",
  13027. author: "dd@163.com",
  13028. version: "0.2",
  13029. },
  13030. format: "node_array",
  13031. data: [{ id: "root", isroot: true, topic: "" }],
  13032. },
  13033. fullDialogVisible: false,
  13034. fulltype: "",
  13035. fullUrl: "",
  13036. commentIndexJson: {},
  13037. Stbodywidth: 0,
  13038. ispzType: 0,
  13039. pzType: 1,
  13040. wScore: 0,
  13041. scoreDetail: "",
  13042. videoStart: false,
  13043. recorder: null,
  13044. groupJson: {},
  13045. islock: false,
  13046. groupJson2: {},
  13047. dialogVisibleGroup: false,
  13048. dialogVisibleGroup2: false,
  13049. updateGroupArray: [],
  13050. updateGroupUser: {},
  13051. deleteGroupUser: [],
  13052. deleteGroupArray: {},
  13053. checkChair: "",
  13054. checkDeleteGroup: [],
  13055. inviteCode: "",
  13056. courseGroupStudent: [],
  13057. courseGroupStudentUid: [],
  13058. courseGroup: {},
  13059. isGroup: false,
  13060. toolIndex: null,
  13061. tool: {},
  13062. isWorkTool: [
  13063. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  13064. ], //, 40
  13065. videoJson: {},
  13066. videoType:0,
  13067. toolType: 0,
  13068. checktoolArray: [],
  13069. vChapterData: [],
  13070. isUpdateToolDetail: false,
  13071. isUpdateToolDetail1: false,
  13072. updateToolDetailInner: "",
  13073. checkboxList: [],
  13074. plIndex: "",
  13075. worksSName2: "",
  13076. worksSid: "",
  13077. wordCloudData: [],
  13078. isPickStudent: [],
  13079. pzStype: 1,
  13080. myAnList: {},
  13081. downLoading: false,
  13082. greyType: false,
  13083. correctWord: [],
  13084. EnglishVoiceDialog: false,
  13085. englishVoiceJson: {},
  13086. englishVoiceJsonWork:[],
  13087. scoreList:{
  13088. listdata:[],
  13089. isScoreList:[],
  13090. },
  13091. classRoomHelperWidth: '85px',
  13092. orgArray:[],
  13093. oidArray:[],
  13094. splitScreenData:{
  13095. isOpen:false,
  13096. userId:"",
  13097. uid:"",
  13098. myUid:"",
  13099. loading:false,
  13100. behavior:null,
  13101. },
  13102. confirmOpenDig:false,
  13103. confirmOpenDigData:'',
  13104. diffKey:"1",
  13105. getCourseGroupLoading: false,
  13106. selectSWorksLoading:false,
  13107. selectStudentLoading:false,
  13108. selectSLookLoading:false,
  13109. getPickLoading:false,
  13110. selectPzLoading:false,
  13111. getSplitScreenDataLoading:false,
  13112. };
  13113. },
  13114. methods: {
  13115. // 获取学校或组织随机码
  13116. getCode2(){
  13117. let params = {
  13118. oid: this.oid,
  13119. org: this.org
  13120. };
  13121. this.ajax
  13122. .get(this.$store.state.api + "getCode2", params)
  13123. .then(res => {
  13124. this.Code2 = res.data[0][0].code2
  13125. })
  13126. .catch(err => {
  13127. console.error(err);
  13128. });
  13129. },
  13130. //查看应用中心作业
  13131. openCocoFlow(w){
  13132. this.$refs.cocoFlowDiaRef.openAppWork(w)
  13133. },
  13134. getAIJ(){
  13135. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  13136. let oid = res.data[0];
  13137. let org = res.data[1];
  13138. let oidArray = [];
  13139. let orgArray = [];
  13140. oid.forEach(i=>oidArray.push(i.oid))
  13141. org.forEach(i=>orgArray.push(i.oid))
  13142. this.orgArray = orgArray;
  13143. this.oidArray = oidArray;
  13144. })
  13145. },
  13146. insertMemorandum(_html){//保存行为操作
  13147. //variable
  13148. //btn
  13149. let params = [{
  13150. uid:this.userid,
  13151. courseId:this.id+(this.tcid2?this.tcid2:''),
  13152. content:_html
  13153. }]
  13154. console.log(params)
  13155. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  13156. if(res.data==1){
  13157. console.log('保存操作成功')
  13158. }else{
  13159. console.log('保存操作失败')
  13160. }
  13161. }).catch(e=>{
  13162. console.log('保存操作失败')
  13163. console.log(e)
  13164. })
  13165. },
  13166. gx(){
  13167. this.$forceUpdate();
  13168. },
  13169. isUpdateCorrect(t,p){
  13170. if(this.greyType == false){
  13171. this.isUpdateText = t;
  13172. this.greyType = true;
  13173. }else{
  13174. if(p == 1){
  13175. this.newEnglishList.engText = this.isUpdateText;
  13176. }else if(p == 2){
  13177. this.oldEnglishJson1.engText = this.isUpdateText;
  13178. }else if(p == 3){
  13179. this.newEnglishList.engText = this.isUpdateText;
  13180. }else{
  13181. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  13182. }
  13183. this.greyType = false
  13184. }
  13185. },
  13186. aiCorrect(t,p){
  13187. let aiText = "";
  13188. const loading = this.$loading.service({
  13189. background: "rgba(255, 255, 255)",
  13190. target: document.querySelectorAll(".loadingText")[0],
  13191. });
  13192. let param = {
  13193. model: "gpt-3.5-turbo",
  13194. temperature: 0,
  13195. max_tokens: 2048,
  13196. top_p: 1,
  13197. frequency_penalty: 0,
  13198. presence_penalty: 0,
  13199. messages: [
  13200. {
  13201. role: "user",
  13202. content:
  13203. `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  13204. },
  13205. ],
  13206. uid: this.userid,
  13207. stream: false,
  13208. };
  13209. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  13210. (res) => {
  13211. if (
  13212. res.data.FunctionResponse &&
  13213. res.data.FunctionResponse.result &&
  13214. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  13215. ) {
  13216. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  13217. return;
  13218. }
  13219. aiText =
  13220. res.data.FunctionResponse.choices[0].message.content;
  13221. aiText = aiText.replace(/%/g,"%25");
  13222. // let w = "";
  13223. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  13224. // for(var k = 0;k<a.length;k++){
  13225. // //diffWordsWithSpace
  13226. // if(a.length > 1){
  13227. // if(a[k].added == true){
  13228. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  13229. // }else if(a[k].removed == true){
  13230. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  13231. // }else{
  13232. // w += '<span>' + a[k].value + '</span>';
  13233. // }
  13234. // }else{
  13235. // if(p == 1){
  13236. // w = this.newEnglishList.engText;
  13237. // }else if(p == 2){
  13238. // w = this.oldEnglishJson1.engText;
  13239. // }else if(p == 3){
  13240. // w = this.newEnglishList.engText;
  13241. // }else{
  13242. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  13243. // }
  13244. // }
  13245. // }
  13246. if(p == 1){
  13247. this.newEnglishList.engText = aiText;
  13248. }else if(p == 2){
  13249. this.oldEnglishJson1.engText = aiText;
  13250. }else if(p == 3){
  13251. this.newEnglishList.engText = aiText;
  13252. }else{
  13253. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  13254. }
  13255. loading.close();
  13256. },
  13257. (err) => {
  13258. console.log(err);
  13259. loading.close();
  13260. }
  13261. );
  13262. },
  13263. addToolChoose() {
  13264. if (!this.checktoolArray.length) {
  13265. this.$message.error("请选择要添加的任务");
  13266. return;
  13267. }
  13268. if (
  13269. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13270. this.taskCount
  13271. ].toolChoose[0].tool.length
  13272. ) {
  13273. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13274. this.taskCount
  13275. ].toolChoose[0].tool = this.checktoolArray;
  13276. } else {
  13277. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13278. this.taskCount
  13279. ].toolChoose.push({
  13280. tool: this.checktoolArray,
  13281. toolDetail: "",
  13282. toolType: 0,
  13283. askCount: 1,
  13284. askTitle: "",
  13285. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13286. });
  13287. }
  13288. let params = [
  13289. {
  13290. cid: this.id,
  13291. chapters: JSON.stringify(this.chapInfoList),
  13292. uid: this.userid,
  13293. unitIndex: this.courseType,
  13294. },
  13295. ];
  13296. this.ajax
  13297. .post(this.$store.state.api + "updateWorkNew4", params)
  13298. .then((res) => {
  13299. this.$message({
  13300. message: "添加成功",
  13301. type: "success",
  13302. });
  13303. this.checktoolArray = [];
  13304. this.getCourseDetail(2);
  13305. this.checkBz(
  13306. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13307. this.taskCount
  13308. ].toolChoose.length - 1
  13309. );
  13310. this.toolDialogVisible = false;
  13311. this.refreshCourse();
  13312. this.$forceUpdate();
  13313. })
  13314. .catch((err) => {
  13315. console.error(err);
  13316. });
  13317. },
  13318. checkBz(index) {
  13319. this.isUpdateToolDetail = false;
  13320. this.$forceUpdate();
  13321. setTimeout(() => {
  13322. document.scrollingElement.scrollTop =
  13323. document.querySelectorAll(".filebox")[index].offsetTop +
  13324. document.querySelector(".student_body").offsetTop;
  13325. }, 500);
  13326. },
  13327. updateToolDetail(i, type) {
  13328. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  13329. this.toolDetailIndex = i
  13330. this.isUpdateToolDetail1 = true;
  13331. setTimeout(() => {
  13332. this.updateToolDetailInner = JSON.parse(
  13333. JSON.stringify(
  13334. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13335. this.taskCount
  13336. ].toolChoose[i].toolDetail
  13337. )
  13338. );
  13339. document.querySelector(".checkTextArea").focus();
  13340. }, 0);
  13341. } else if((this.isUpdateToolDetail1 && type != 2)){
  13342. // this.toolDetailIndex = i;
  13343. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13344. this.taskCount
  13345. ].toolChoose[i].toolDetail = JSON.parse(
  13346. JSON.stringify(this.updateToolDetailInner)
  13347. );
  13348. let params = [
  13349. {
  13350. cid: this.id,
  13351. chapters: JSON.stringify(this.chapInfoList),
  13352. uid: this.userid,
  13353. unitIndex: this.courseType,
  13354. },
  13355. ];
  13356. this.ajax
  13357. .post(this.$store.state.api + "updateWorkNew4", params)
  13358. .then((res) => {
  13359. this.isUpdateToolDetail1 = false;
  13360. this.$message({
  13361. message: "修改成功",
  13362. type: "success",
  13363. });
  13364. this.toolDetailIndex = null;
  13365. this.updateToolDetailInner = "";
  13366. this.getCourseDetail(2);
  13367. this.$forceUpdate();
  13368. })
  13369. .catch((err) => {
  13370. console.error(err);
  13371. });
  13372. } else if((this.isUpdateToolDetail1 && type == 2)){
  13373. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13374. this.taskCount
  13375. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  13376. JSON.stringify(this.updateToolDetailInner)
  13377. );
  13378. let params = [
  13379. {
  13380. cid: this.id,
  13381. chapters: JSON.stringify(this.chapInfoList),
  13382. uid: this.userid,
  13383. unitIndex: this.courseType,
  13384. },
  13385. ];
  13386. this.ajax
  13387. .post(this.$store.state.api + "updateWorkNew4", params)
  13388. .then((res) => {
  13389. this.$message({
  13390. message: "修改成功",
  13391. type: "success",
  13392. });
  13393. this.toolDetailIndex = i;
  13394. this.isUpdateToolDetail1 = true;
  13395. setTimeout(() => {
  13396. this.updateToolDetailInner = JSON.parse(
  13397. JSON.stringify(
  13398. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13399. this.taskCount
  13400. ].toolChoose[i].toolDetail
  13401. )
  13402. );
  13403. document.querySelector(".checkTextArea").focus();
  13404. }, 0);
  13405. this.getCourseDetail(2);
  13406. this.$forceUpdate();
  13407. })
  13408. .catch((err) => {
  13409. console.error(err);
  13410. });
  13411. }
  13412. },
  13413. jumpGj(i, j, k, l) {
  13414. for (var z = 0; z < this.navList.length; z++) {
  13415. for (var q = 0; q < this.navList[z].task.length; q++) {
  13416. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  13417. this.navList[z].task[q].tool[w].isTool = false;
  13418. }
  13419. }
  13420. }
  13421. console.log(this.navList);
  13422. this.navList[i].task[j].tool[k].isTool =
  13423. !this.navList[i].task[j].tool[k].isTool;
  13424. var a = document.scrollingElement;
  13425. let target = document.querySelector(`#gj${k}`);
  13426. if (target) {
  13427. // target.scrollIntoView(true);
  13428. // setTimeout(() => {
  13429. // a.scrollTop = a.scrollTop - 150;
  13430. // }, 0);
  13431. target.scrollIntoView();
  13432. setTimeout(()=>{
  13433. let scrollBody = document.querySelector('.body_student').parentElement
  13434. scrollBody.scrollTop = scrollBody.scrollTop - 100
  13435. }, 0);
  13436. }
  13437. this.navId = ""
  13438. let flag = this.courseType == i;
  13439. let flag2 = this.taskCount == j
  13440. if (l) {
  13441. this.courseType = i;
  13442. // this.navId = l;
  13443. this.taskCount = j;
  13444. this.selectPz();
  13445. this.getHomeWork();
  13446. this.getCourseDetail(2);
  13447. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  13448. if(flag){
  13449. if(flag2){
  13450. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  13451. }else{
  13452. this.insertMemorandum(`选择<span class="variable">任务${j+1}${this.navList[i].task[j].taskName?':'+this.navList[i].task[j].taskName:''}</span>→<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  13453. }
  13454. }else{
  13455. this.insertMemorandum(`选择<span class="variable">阶段${i+1}${this.navList[i].dyName?':'+this.navList[i].dyName:''}</span>→<span class="variable">任务${j+1}${this.navList[i].task[j].taskName?':'+this.navList[i].task[j].taskName:''}</span>→<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  13456. }
  13457. }
  13458. if ((this.courseDetail.userid == this.userid ||
  13459. (this.courseDetail.course_teacher &&
  13460. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) &&
  13461. this.IsFollow) {
  13462. this.setCTask();
  13463. }
  13464. // var b = this.$refs["bz" + k][0];
  13465. // a.scrollTop = b.offsetTop;
  13466. },
  13467. addTools2(i) {
  13468. if (i == 4) {
  13469. // this.openTools2(4);
  13470. this.$message.error("暂未开放");
  13471. return;
  13472. }
  13473. if (i == 45) {
  13474. // this.openTools2(45);
  13475. this.$message.error("暂未开放");
  13476. return;
  13477. }
  13478. if (i == 47) {
  13479. // this.openTools2(47);
  13480. this.$message.error("暂未开放");
  13481. return;
  13482. }
  13483. if (i == 49) {
  13484. // this.openTools2(49);
  13485. this.$message.error("暂未开放");
  13486. return;
  13487. }
  13488. if (i == 62) {
  13489. // this.openTools(itemTaskIndex, 62, toolIndex);
  13490. this.$message.error("暂未开放");
  13491. return;
  13492. }
  13493. if (i == 15) {
  13494. // this.openTools(itemTaskIndex, 15, toolIndex);
  13495. this.$message.error("暂未开放");
  13496. return;
  13497. }
  13498. if (i == 40) {
  13499. // this.openTools(itemTaskIndex, 40, toolIndex);
  13500. this.$message.error("暂未开放");
  13501. return;
  13502. }
  13503. if (i == 41) {
  13504. // this.openTools(itemTaskIndex, 41, toolIndex);
  13505. this.$message.error("暂未开放");
  13506. return;
  13507. }
  13508. if (i == 42) {
  13509. // this.openTools(itemTaskIndex, 42, toolIndex);
  13510. this.$message.error("暂未开放");
  13511. return;
  13512. }
  13513. if (this.checktoolArray.length > 0) {
  13514. if (this.checktoolArray.indexOf(i) != -1) {
  13515. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  13516. } else {
  13517. this.checktoolArray = [];
  13518. this.checktoolArray.push(i);
  13519. }
  13520. } else {
  13521. this.checktoolArray.push(i);
  13522. }
  13523. this.$forceUpdate();
  13524. },
  13525. jump() {
  13526. window.topU.postMessage({ tools: "43" }, "*");
  13527. },
  13528. getUpdateMore(f, checkboxList, searchTN, index) {
  13529. this.dialogVisibleMember = f;
  13530. this.checkboxList = checkboxList;
  13531. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  13532. this.plIndex = index;
  13533. },
  13534. setPlname(a) {
  13535. if (this.plworkFile.length) {
  13536. this.plworkFile[this.plIndex].username = a;
  13537. } else {
  13538. this.worksSName = a;
  13539. }
  13540. this.dialogVisibleMember = false;
  13541. },
  13542. previewImg(url,w) {
  13543. this.$hevueImgPreview(url);
  13544. if(w){
  13545. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  13546. }
  13547. },
  13548. checkImg(list) {
  13549. if (!list.length) {
  13550. return;
  13551. }
  13552. this.$hevueImgPreview({
  13553. multiple: true, // 开启多图预览模式
  13554. imgList: list, // 需要预览的多图数组
  13555. });
  13556. },
  13557. change(val) {
  13558. console.log(val);
  13559. },
  13560. goTo(path) {
  13561. this.$router.push(path);
  13562. },
  13563. handlePictureCardPreview(url) {
  13564. this.dialogImageUrl = url;
  13565. this.pictureDialog = true;
  13566. },
  13567. clean(type) {
  13568. if (type == 1) {
  13569. this.studyJuri[0].cover.splice(0, 1);
  13570. } else if (type == 2) {
  13571. this.studyJuri[0].upVedio.splice(0, 1);
  13572. } else {
  13573. this.studyJuri[0].upFile.splice(0, 1);
  13574. }
  13575. },
  13576. clean2(index) {
  13577. this.plworkFile.splice(index, 1);
  13578. },
  13579. handleClose(done) {
  13580. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  13581. this.videoDetail.sources[0].src = "";
  13582. }
  13583. this.commentIndexJson = {};
  13584. this.changeSplitScreenBehavior({code:99})
  13585. done();
  13586. },
  13587. fullTools() {
  13588. this.full = !this.full;
  13589. },
  13590. imgChange(file, fileList, type) {
  13591. if (type == 1) {
  13592. var _tmp = this.studyJuri[0].cover;
  13593. } else if (type == 2) {
  13594. var _tmp = this.studyJuri[0].upVedio;
  13595. } else {
  13596. var _tmp = this.studyJuri[0].upFile;
  13597. }
  13598. this.noneBtnImg = _tmp.length >= 1;
  13599. },
  13600. setContent(bool) {
  13601. this.contentDialog = bool;
  13602. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  13603. document.querySelector(".workd_media").style.height = "650px";
  13604. } else if (document.querySelector(".workd_media")) {
  13605. document.querySelector(".workd_media").style.height = "auto";
  13606. }
  13607. },
  13608. setContent2(bool) {
  13609. this.mlDialog = bool;
  13610. if (
  13611. bool &&
  13612. this.contentDialog &&
  13613. document.querySelector(".workd_media")
  13614. ) {
  13615. document.querySelector(".workd_media").style.height = "650px";
  13616. } else if (document.querySelector(".workd_media")) {
  13617. document.querySelector(".workd_media").style.height = "auto";
  13618. }
  13619. },
  13620. openToolAll() {
  13621. this.toolDialogVisible = true;
  13622. },
  13623. addImg(e) {
  13624. var el = e.currentTarget;
  13625. // this.$message.success('触发上传')
  13626. el.getElementsByTagName("input")[0].click();
  13627. e.target.value = "";
  13628. },
  13629. addSelectAnswer() {
  13630. let params = [
  13631. {
  13632. uid: this.userid,
  13633. cid: this.id,
  13634. stage: this.courseType,
  13635. task: this.taskCount,
  13636. tool: this.toolindex,
  13637. content: this.selectAnswer.answer,
  13638. type: 7,
  13639. },
  13640. ];
  13641. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13642. this.homeWorkLoading = true
  13643. this.ajax
  13644. .post(this.$store.state.api + "addCourseWorks", params)
  13645. .then((res) => {
  13646. this.$message({
  13647. message: "提交成功",
  13648. type: "success",
  13649. });
  13650. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, "success")
  13651. setTimeout(() => {
  13652. this.homeWorkLoading = false
  13653. }, 500);
  13654. this.dialogVisibleSelect = false;
  13655. // this.selectAnswer = {};
  13656. this.selectSWorks();
  13657. this.selectStudent();
  13658. })
  13659. .catch((err) => {
  13660. this.$message.error("提交失败");
  13661. console.error(err);
  13662. setTimeout(() => {
  13663. this.homeWorkLoading = false
  13664. }, 500);
  13665. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, err)
  13666. });
  13667. },
  13668. addSelectAnswerTeacher() {
  13669. let params = [
  13670. {
  13671. uid: this.sStudent.userid,
  13672. cid: this.id,
  13673. stage: this.courseType,
  13674. task: this.taskCount,
  13675. tool: this.toolindex,
  13676. content: this.selectAnswer.answer,
  13677. type: 7,
  13678. },
  13679. ];
  13680. this.ajax
  13681. .post(this.$store.state.api + "addCourseWorks", params)
  13682. .then((res) => {
  13683. this.$message({
  13684. message: "提交成功",
  13685. type: "success",
  13686. });
  13687. this.dialogVisibleSelectTeacher = false;
  13688. // this.selectAnswer = {};
  13689. this.selectSWorks();
  13690. this.selectStudent();
  13691. })
  13692. .catch((err) => {
  13693. this.$message.error("提交失败");
  13694. console.error(err);
  13695. });
  13696. },
  13697. addSenWorks() {
  13698. for (var i = 0; i < this.sentenceList.length; i++) {
  13699. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13700. if (
  13701. this.sentenceList[i].chooseSenList[j] == undefined ||
  13702. this.sentenceList[i].chooseSenList[j] == ""
  13703. ) {
  13704. this.$message.error("请将答案填写完整!");
  13705. return;
  13706. }
  13707. }
  13708. }
  13709. let params = [
  13710. {
  13711. uid: this.userid,
  13712. cid: this.id,
  13713. stage: this.courseType,
  13714. task: this.taskCount,
  13715. tool: this.toolindex,
  13716. content: JSON.stringify(this.sentenceList),
  13717. type: 9,
  13718. },
  13719. ];
  13720. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13721. this.homeWorkLoading = true
  13722. this.ajax
  13723. .post(this.$store.state.api + "addCourseWorks", params)
  13724. .then((res) => {
  13725. this.$message({
  13726. message: "提交成功",
  13727. type: "success",
  13728. });
  13729. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, "success")
  13730. setTimeout(() => {
  13731. this.homeWorkLoading = false
  13732. }, 500);
  13733. this.dialogVisibleSentence = false;
  13734. // this.selectAnswer = {};
  13735. this.selectSWorks();
  13736. this.selectStudent();
  13737. })
  13738. .catch((err) => {
  13739. this.$message.error("提交失败");
  13740. console.error(err);
  13741. setTimeout(() => {
  13742. this.homeWorkLoading = false
  13743. }, 500);
  13744. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, err)
  13745. });
  13746. },
  13747. addSenWorksTeacher() {
  13748. for (var i = 0; i < this.sentenceList.length; i++) {
  13749. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13750. if (
  13751. this.sentenceList[i].chooseSenList[j] == undefined ||
  13752. this.sentenceList[i].chooseSenList[j] == ""
  13753. ) {
  13754. this.$message.error("请将答案填写完整!");
  13755. return;
  13756. }
  13757. }
  13758. }
  13759. let params = [
  13760. {
  13761. uid: this.sStudent.userid,
  13762. cid: this.id,
  13763. stage: this.courseType,
  13764. task: this.taskCount,
  13765. tool: this.toolindex,
  13766. content: JSON.stringify(this.sentenceList),
  13767. type: 9,
  13768. },
  13769. ];
  13770. this.ajax
  13771. .post(this.$store.state.api + "addCourseWorks", params)
  13772. .then((res) => {
  13773. this.$message({
  13774. message: "提交成功",
  13775. type: "success",
  13776. });
  13777. this.dialogVisibleSentenceTeacher = false;
  13778. // this.selectAnswer = {};
  13779. this.selectSWorks();
  13780. this.selectStudent();
  13781. })
  13782. .catch((err) => {
  13783. this.$message.error("提交失败");
  13784. console.error(err);
  13785. });
  13786. },
  13787. returnTableText() {
  13788. this.$confirm("确定还原此模板吗?", "提示", {
  13789. confirmButtonText: "确定",
  13790. cancelButtonText: "取消",
  13791. type: "warning",
  13792. })
  13793. .then(() => {
  13794. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13795. })
  13796. .catch(() => {});
  13797. },
  13798. addTableWorks() {
  13799. let params = [
  13800. {
  13801. uid: this.userid,
  13802. cid: this.id,
  13803. stage: this.courseType,
  13804. task: this.taskCount,
  13805. tool: this.toolindex,
  13806. content: JSON.stringify(this.tableJson),
  13807. type: 10,
  13808. },
  13809. ];
  13810. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13811. this.homeWorkLoading = true
  13812. this.ajax
  13813. .post(this.$store.state.api + "addCourseWorks", params)
  13814. .then((res) => {
  13815. this.$message({
  13816. message: "提交成功",
  13817. type: "success",
  13818. });
  13819. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, "success")
  13820. setTimeout(() => {
  13821. this.homeWorkLoading = false
  13822. }, 500);
  13823. this.dialogVisibleTable = false;
  13824. // this.selectAnswer = {};
  13825. this.selectSWorks();
  13826. this.selectStudent();
  13827. })
  13828. .catch((err) => {
  13829. this.$message.error("提交失败");
  13830. console.error(err);
  13831. setTimeout(() => {
  13832. this.homeWorkLoading = false
  13833. }, 500);
  13834. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, err)
  13835. });
  13836. },
  13837. tableRowClassName({ row, rowIndex }) {
  13838. if ((rowIndex + 1) % 2 === 0) {
  13839. return "even_row";
  13840. } else {
  13841. return "";
  13842. }
  13843. },
  13844. addTableWorksTeacher() {
  13845. let params = [
  13846. {
  13847. uid: this.sStudent.userid,
  13848. cid: this.id,
  13849. stage: this.courseType,
  13850. task: this.taskCount,
  13851. tool: this.toolindex,
  13852. content: JSON.stringify(this.tableJson),
  13853. type: 10,
  13854. },
  13855. ];
  13856. this.ajax
  13857. .post(this.$store.state.api + "addCourseWorks", params)
  13858. .then((res) => {
  13859. this.$message({
  13860. message: "提交成功",
  13861. type: "success",
  13862. });
  13863. this.dialogVisibleTableTeacher = false;
  13864. // this.selectAnswer = {};
  13865. this.selectSWorks();
  13866. this.selectStudent();
  13867. })
  13868. .catch((err) => {
  13869. this.$message.error("提交失败");
  13870. console.error(err);
  13871. });
  13872. },
  13873. returnWordText() {
  13874. this.$confirm("确定还原此模板吗?", "提示", {
  13875. confirmButtonText: "确定",
  13876. cancelButtonText: "取消",
  13877. type: "warning",
  13878. })
  13879. .then(() => {
  13880. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13881. })
  13882. .catch(() => {});
  13883. },
  13884. addWordWorks() {
  13885. let params = [
  13886. {
  13887. uid: this.userid,
  13888. cid: this.id,
  13889. stage: this.courseType,
  13890. task: this.taskCount,
  13891. tool: this.toolindex,
  13892. content: JSON.stringify(this.wordJson),
  13893. type: 13,
  13894. atool: 52,
  13895. },
  13896. ];
  13897. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13898. this.homeWorkLoading = true
  13899. this.ajax
  13900. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13901. .then((res) => {
  13902. this.$message({
  13903. message: "提交成功",
  13904. type: "success",
  13905. });
  13906. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, "success")
  13907. setTimeout(() => {
  13908. this.homeWorkLoading = false
  13909. }, 500);
  13910. this.dialogVisibleWord = false;
  13911. // this.selectAnswer = {};
  13912. this.selectSWorks();
  13913. this.selectStudent();
  13914. })
  13915. .catch((err) => {
  13916. this.$message.error("提交失败");
  13917. console.error(err);
  13918. setTimeout(() => {
  13919. this.homeWorkLoading = false
  13920. }, 500);
  13921. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, err)
  13922. });
  13923. },
  13924. addWordWorksTeacher() {
  13925. let params = [
  13926. {
  13927. uid: this.sStudent.userid,
  13928. cid: this.id,
  13929. stage: this.courseType,
  13930. task: this.taskCount,
  13931. tool: this.toolindex,
  13932. content: JSON.stringify(this.wordJson),
  13933. type: 13,
  13934. atool: 52,
  13935. },
  13936. ];
  13937. this.ajax
  13938. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13939. .then((res) => {
  13940. this.$message({
  13941. message: "提交成功",
  13942. type: "success",
  13943. });
  13944. this.dialogVisibleWordTeacher = false;
  13945. // this.selectAnswer = {};
  13946. this.selectSWorks();
  13947. this.selectStudent();
  13948. })
  13949. .catch((err) => {
  13950. this.$message.error("提交失败");
  13951. console.error(err);
  13952. });
  13953. },
  13954. addCourseWorks(i) {
  13955. var typesql;
  13956. if (this.fileType === 0) {
  13957. typesql = 1;
  13958. } else if (this.fileType === 1) {
  13959. typesql = 4;
  13960. } else if (this.fileType === 2) {
  13961. typesql = 5;
  13962. } else if (this.fileType === 3) {
  13963. typesql = 12;
  13964. }
  13965. if (!this.studyJuri[0].cover[0].url) {
  13966. this.$message.error("请上传文件");
  13967. return;
  13968. }
  13969. let params = [
  13970. {
  13971. uid: this.userid,
  13972. cid: this.id,
  13973. stage: this.courseType,
  13974. task: i,
  13975. tool: this.toolindex,
  13976. content: this.studyJuri[0].cover[0].url,
  13977. type: typesql,
  13978. },
  13979. ];
  13980. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13981. this.homeWorkLoading = true
  13982. this.ajax
  13983. .post(this.$store.state.api + "addCourseWorksR", params)
  13984. .then((res) => {
  13985. this.$message({
  13986. message: "提交成功",
  13987. type: "success",
  13988. });
  13989. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, "success")
  13990. setTimeout(() => {
  13991. this.homeWorkLoading = false
  13992. }, 500);
  13993. this.studyJuri[0].cover = [];
  13994. this.dialogVisible = false;
  13995. this.getCourseDetail(2);
  13996. })
  13997. .catch((err) => {
  13998. this.$message.error("提交失败");
  13999. console.error(err);
  14000. setTimeout(() => {
  14001. this.homeWorkLoading = false
  14002. }, 500);
  14003. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, err)
  14004. });
  14005. },
  14006. addCourseWorksPl(i) {
  14007. let _files = this.plworkFile;
  14008. var c = 1;
  14009. for (var k = 0; k < _files.length; k++) {
  14010. if (!_files[k].username) {
  14011. c = 2;
  14012. }
  14013. }
  14014. if (c == 2) {
  14015. this.$message.error("请填写学生姓名");
  14016. return;
  14017. }
  14018. let params = [
  14019. {
  14020. ateacher: this.userid,
  14021. cid: this.id,
  14022. stage: this.courseType,
  14023. task: i,
  14024. tool: this.toolindex,
  14025. content: JSON.stringify(_files),
  14026. },
  14027. ];
  14028. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  14029. this.homeWorkLoading = true
  14030. this.ajax
  14031. .post(this.$store.state.api + "addCourseWorksPl", params)
  14032. .then((res) => {
  14033. this.$message({
  14034. message: "提交成功",
  14035. type: "success",
  14036. });
  14037. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, "success")
  14038. setTimeout(() => {
  14039. this.homeWorkLoading = false
  14040. }, 500);
  14041. this.plworkFile = [];
  14042. this.dialogVisiblePl = false;
  14043. this.getCourseDetail(2);
  14044. })
  14045. .catch((err) => {
  14046. this.$message.error("提交失败");
  14047. console.error(err);
  14048. setTimeout(() => {
  14049. this.homeWorkLoading = false
  14050. }, 500);
  14051. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, err)
  14052. });
  14053. },
  14054. addCourseWorks2(i) {
  14055. var typesql;
  14056. if (this.fileType === 0) {
  14057. typesql = 0;
  14058. } else if (this.fileType === 1) {
  14059. typesql = 1;
  14060. } else if (this.fileType === 2) {
  14061. typesql = 3;
  14062. } else if (this.fileType === 3) {
  14063. typesql = 12;
  14064. }
  14065. if (!this.studyJuri[0].cover[0].url) {
  14066. this.$message.error("请上传文件");
  14067. return;
  14068. }
  14069. let params = [
  14070. {
  14071. uid: this.userid,
  14072. cid: this.id,
  14073. stage: this.courseType,
  14074. task: i,
  14075. tool: this.toolindex,
  14076. content: JSON.stringify({
  14077. type: typesql,
  14078. groupIndex: this.groupIndex,
  14079. url: this.studyJuri[0].cover[0].url,
  14080. }),
  14081. type: 11,
  14082. atool: 49,
  14083. text: "",
  14084. },
  14085. ];
  14086. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  14087. this.homeWorkLoading = true
  14088. this.ajax
  14089. .post(this.$store.state.api + "addCourseWorks5", params)
  14090. .then((res) => {
  14091. this.$message({
  14092. message: "提交成功",
  14093. type: "success",
  14094. });
  14095. setTimeout(() => {
  14096. this.homeWorkLoading = false
  14097. }, 500);
  14098. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  14099. type: typesql,
  14100. groupIndex: this.groupIndex,
  14101. url: this.studyJuri[0].cover[0].url,
  14102. }),type: "course_tool_sub" }, "success")
  14103. this.studyJuri[0].cover = [];
  14104. this.dialogVisibleGroupWork = false;
  14105. this.getCourseDetail(2);
  14106. })
  14107. .catch((err) => {
  14108. this.$message.error("提交失败");
  14109. console.error(err);
  14110. setTimeout(() => {
  14111. this.homeWorkLoading = false
  14112. }, 500);
  14113. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  14114. type: typesql,
  14115. groupIndex: this.groupIndex,
  14116. url: this.studyJuri[0].cover[0].url,
  14117. }),type: "course_tool_sub" }, err)
  14118. });
  14119. },
  14120. addEnglishWork() {
  14121. this.myAnList = this.$refs['engJson'].myAnswerList;
  14122. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  14123. this.$message.error("请输入作文标题和正文!");
  14124. return;
  14125. }
  14126. let params = [
  14127. {
  14128. uid: this.userid,
  14129. cid: this.id,
  14130. stage: this.courseType,
  14131. task: this.taskCount,
  14132. tool: this.englishToolIndex,
  14133. content: JSON.stringify(this.myAnList),
  14134. type: 16,
  14135. atool: 69,
  14136. text: "",
  14137. },
  14138. ];
  14139. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  14140. this.homeWorkLoading = true
  14141. this.ajax
  14142. .post(this.$store.state.api + "addCourseWorks5", params)
  14143. .then((res) => {
  14144. this.$message({
  14145. message: "提交成功",
  14146. type: "success",
  14147. });
  14148. setTimeout(() => {
  14149. this.homeWorkLoading = false
  14150. }, 500);
  14151. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  14152. data: JSON.stringify(this.myAnList),
  14153. type: "course_tool_sub" }, "success")
  14154. this.myAnList = {};
  14155. this.englishList = {};
  14156. this.englishToolIndex = 0;
  14157. this.engDialogVisible = false;
  14158. this.selectSWorks();
  14159. this.selectStudent();
  14160. })
  14161. .catch((err) => {
  14162. this.$message.error("提交失败");
  14163. console.error(err);
  14164. setTimeout(() => {
  14165. this.homeWorkLoading = false
  14166. }, 500);
  14167. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  14168. data: JSON.stringify(this.myAnList),
  14169. type: "course_tool_sub" }, err)
  14170. });
  14171. },
  14172. addCourseWorksGong(i, data, tool) {
  14173. let params = [
  14174. {
  14175. uid: this.userid,
  14176. cid: this.id,
  14177. stage: this.courseType,
  14178. task: this.taskCount,
  14179. tool: i,
  14180. content: data,
  14181. type: 12,
  14182. atool: tool,
  14183. text: "",
  14184. },
  14185. ];
  14186. this.ajax
  14187. .post(this.$store.state.api + "addCourseWorks5", params)
  14188. .then((res) => {
  14189. this.$message({
  14190. message: "提交成功",
  14191. type: "success",
  14192. });
  14193. this.studyJuri[0].cover = [];
  14194. this.selectSWorks();
  14195. this.selectStudent();
  14196. })
  14197. .catch((err) => {
  14198. this.$message.error("提交失败");
  14199. console.error(err);
  14200. });
  14201. },
  14202. addCourseWorksGongTeacher(i, data, tool) {
  14203. let params = [
  14204. {
  14205. uid: this.sStudent.userid,
  14206. cid: this.id,
  14207. stage: this.courseType,
  14208. task: this.taskCount,
  14209. tool: i,
  14210. content: data,
  14211. type: 12,
  14212. atool: tool,
  14213. text: "",
  14214. },
  14215. ];
  14216. this.ajax
  14217. .post(this.$store.state.api + "addCourseWorks5", params)
  14218. .then((res) => {
  14219. this.$message({
  14220. message: "提交成功",
  14221. type: "success",
  14222. });
  14223. this.studyJuri[0].cover = [];
  14224. this.dialogVisibleWorks = false;
  14225. this.selectSWorks();
  14226. this.selectStudent();
  14227. })
  14228. .catch((err) => {
  14229. this.$message.error("提交失败");
  14230. console.error(err);
  14231. });
  14232. },
  14233. addCourseWorksGongPl(i, data, tool, type) {
  14234. let params = [
  14235. {
  14236. uid: this.sStudent.userid,
  14237. cid: this.id,
  14238. stage: this.courseType,
  14239. task: this.taskCount,
  14240. tool: i,
  14241. content: data,
  14242. type: type,
  14243. atool: tool,
  14244. text: "",
  14245. },
  14246. ];
  14247. this.ajax
  14248. .post(this.$store.state.api + "addCourseWorks5", params)
  14249. .then((res) => {
  14250. this.$message({
  14251. message: "提交成功",
  14252. type: "success",
  14253. });
  14254. this.studyJuri[0].cover = [];
  14255. this.dialogVisibleWorks = false;
  14256. this.selectSWorks();
  14257. this.selectStudent();
  14258. })
  14259. .catch((err) => {
  14260. this.$message.error("提交失败");
  14261. console.error(err);
  14262. });
  14263. },
  14264. addCourseWorksTeacher(i) {
  14265. var typesql;
  14266. if (this.sTool == 32) {
  14267. this.addCourseWorksGongTeacher(
  14268. this.toolindex,
  14269. this.studyJuri[0].cover[0].url,
  14270. this.sTool
  14271. );
  14272. return;
  14273. }
  14274. if (this.fileType === 0) {
  14275. typesql = 1;
  14276. } else if (this.fileType === 1) {
  14277. typesql = 4;
  14278. } else if (this.fileType === 2) {
  14279. typesql = 5;
  14280. } else if (this.fileType === 3) {
  14281. typesql = 12;
  14282. }
  14283. if (this.sTool == 50) {
  14284. this.addCourseWorksGongPl(
  14285. this.toolindex,
  14286. this.studyJuri[0].cover[0].url,
  14287. this.sTool,
  14288. typesql
  14289. );
  14290. return;
  14291. }
  14292. if (!this.studyJuri[0].cover[0].url) {
  14293. this.$message.error("请上传文件");
  14294. return;
  14295. }
  14296. let params = [
  14297. {
  14298. uid: this.sStudent.userid,
  14299. cid: this.id,
  14300. stage: this.courseType,
  14301. task: i,
  14302. tool: this.toolindex,
  14303. content: this.studyJuri[0].cover[0].url,
  14304. type: typesql,
  14305. ateacher: this.userid,
  14306. },
  14307. ];
  14308. this.ajax
  14309. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  14310. .then((res) => {
  14311. this.$message({
  14312. message: "提交成功",
  14313. type: "success",
  14314. });
  14315. this.studyJuri[0].cover = [];
  14316. this.dialogVisibleWorks = false;
  14317. this.getCourseDetail(2);
  14318. })
  14319. .catch((err) => {
  14320. this.$message.error("提交失败");
  14321. console.error(err);
  14322. });
  14323. },
  14324. selectUploadStudent(type) {
  14325. const loading = this.$loading.service({
  14326. background: "rgba(255, 255, 255, 0.7)",
  14327. target: document.body,
  14328. });
  14329. let params = {
  14330. cid: this.uploadCid,
  14331. oid: this.oid,
  14332. cn: "",
  14333. };
  14334. this.ajax
  14335. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14336. .then((res) => {
  14337. loading.close();
  14338. var studentK = [];
  14339. if (this.isWorksS[this.toolindex].length > 0) {
  14340. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  14341. studentK.push(this.isWorksS[this.toolindex][z].uid);
  14342. }
  14343. studentK = studentK.join(",");
  14344. }
  14345. this.uploadStudentJuri = res.data[0].filter((el) => {
  14346. return studentK.indexOf(el.userid) == -1;
  14347. });
  14348. if (this.worksSName && this.worksSid) {
  14349. this.uploadStudentJuri.push({
  14350. userid: this.worksSid,
  14351. name: this.worksSName,
  14352. });
  14353. }
  14354. if (type == 1) {
  14355. this.plworkFile = [];
  14356. this.dialogVisibleSname = true;
  14357. } else if (type == 2) {
  14358. this.dialogVisiblePl = true;
  14359. }
  14360. })
  14361. .catch((err) => {
  14362. loading.close();
  14363. console.error(err);
  14364. });
  14365. },
  14366. selectPickStudent() {
  14367. const loading = this.$loading.service({
  14368. background: "rgba(255, 255, 255, 0.7)",
  14369. target: document.body,
  14370. });
  14371. let params = {
  14372. cid: this.uploadCid,
  14373. oid: this.oid,
  14374. cn: "",
  14375. };
  14376. this.ajax
  14377. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14378. .then((res) => {
  14379. loading.close();
  14380. this.uploadStudentJuri = res.data[0];
  14381. this.dialogVisiblePickPeople = true;
  14382. })
  14383. .catch((err) => {
  14384. loading.close();
  14385. console.error(err);
  14386. });
  14387. },
  14388. arrayToArray(arrayo, arrayt) {
  14389. let array1 = arrayo;
  14390. let array2 = arrayt;
  14391. let commonElements = [];
  14392. for (let i = 0; i < array1.length; i++) {
  14393. for (let j = 0; j < array2.length; j++) {
  14394. if (array1[i] === array2[j]) {
  14395. commonElements.push(array1[i]);
  14396. }
  14397. }
  14398. }
  14399. return commonElements;
  14400. },
  14401. selectWorksStudent() {
  14402. let params = {
  14403. oid: this.oid,
  14404. cid: this.courseDetail.juri,
  14405. };
  14406. this.ajax
  14407. .get(this.$store.state.api + "selectWorksStudent", params)
  14408. .then((res) => {
  14409. var a = res.data[0];
  14410. for (var i = 0; i < this.isWorksS.length; i++) {
  14411. this.noWorksS[i] = [];
  14412. var studentK = [];
  14413. if (this.isWorksS[i].length > 0) {
  14414. for (var z = 0; z < this.isWorksS[i].length; z++) {
  14415. studentK.push(this.isWorksS[i][z].uid);
  14416. }
  14417. studentK = studentK.join(",");
  14418. for (var j = 0; j < a.length; j++) {
  14419. if (studentK.indexOf(a[j].userid) == -1) {
  14420. if (this.tcid) {
  14421. // a[j].classid.indexOf(this.tcid) != -1
  14422. if (
  14423. this.arrayToArray(
  14424. a[j].classid.split(","),
  14425. this.tcid.split(",")
  14426. ).length
  14427. ) {
  14428. this.noWorksS[i].push({
  14429. student: a[j].name,
  14430. userid: a[j].userid,
  14431. });
  14432. }
  14433. } else {
  14434. this.noWorksS[i].push({
  14435. student: a[j].name,
  14436. userid: a[j].userid,
  14437. });
  14438. }
  14439. }
  14440. }
  14441. } else {
  14442. for (var k = 0; k < a.length; k++) {
  14443. if (this.tcid) {
  14444. if (
  14445. this.arrayToArray(
  14446. a[k].classid.split(","),
  14447. this.tcid.split(",")
  14448. ).length
  14449. ) {
  14450. this.noWorksS[i].push({
  14451. student: a[k].name,
  14452. userid: a[k].userid,
  14453. });
  14454. }
  14455. } else {
  14456. this.noWorksS[i].push({
  14457. student: a[k].name,
  14458. userid: a[k].userid,
  14459. });
  14460. }
  14461. }
  14462. }
  14463. }
  14464. this.$forceUpdate();
  14465. if (
  14466. Object.keys(this.commentDetail).length &&
  14467. Object.keys(this.commentIndexJson).length &&
  14468. !this.dialogVisibleScore && !this.dialogVisibleENScore
  14469. ) {
  14470. let a = 1;
  14471. let c = this.commentIndexJson;
  14472. if (
  14473. this.commentIndexJson.gindex ||
  14474. this.commentIndexJson.gindex === 0
  14475. ) {
  14476. for (
  14477. var i = 0;
  14478. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  14479. i++
  14480. ) {
  14481. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  14482. groupA: for (var k = 0; k < _el.length; k++) {
  14483. let el = _el[k];
  14484. if (el.wid == this.commentDetail.wid) {
  14485. a = 2;
  14486. this.commentOther(
  14487. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  14488. this.commentIndexJson.toolIndex,
  14489. k,
  14490. this.commentIndexJson.gindex
  14491. );
  14492. break groupA;
  14493. }
  14494. }
  14495. }
  14496. if (a === 1) {
  14497. this.commentDetail = [];
  14498. this.commentIndexJson = {};
  14499. this.commentDialogVisible = false;
  14500. this.$message("此作业已被删除");
  14501. }
  14502. } else {
  14503. if (this.isGroup && this.commentIndexJson.gid) {
  14504. groupA: for (
  14505. var i = 0;
  14506. i < this.courseGroup.group.length;
  14507. i++
  14508. ) {
  14509. let _group = this.courseGroup.group[i];
  14510. if (_group.id == this.commentIndexJson.gid) {
  14511. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  14512. for (var k = 0; k < _el2.length; k++) {
  14513. let el2 = _el2[k];
  14514. if (el2.wid == this.commentDetail.wid) {
  14515. a = 2;
  14516. this.commentOther(
  14517. _el2[k],
  14518. this.commentIndexJson.toolIndex,
  14519. k,
  14520. null,
  14521. this.commentIndexJson.gid
  14522. );
  14523. break groupA;
  14524. }
  14525. }
  14526. }
  14527. }
  14528. }
  14529. if (a == 1) {
  14530. for (
  14531. var i = 0;
  14532. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  14533. i++
  14534. ) {
  14535. let el =
  14536. this.worksStudent[this.commentIndexJson.toolIndex][i];
  14537. if (el.wid == this.commentDetail.wid) {
  14538. a = 2;
  14539. this.commentOther(
  14540. this.worksStudent[this.commentIndexJson.toolIndex][i],
  14541. this.commentIndexJson.toolIndex,
  14542. i
  14543. );
  14544. break;
  14545. }
  14546. }
  14547. }
  14548. if (a === 1) {
  14549. this.commentDetail = [];
  14550. this.commentIndexJson = {};
  14551. this.commentDialogVisible = false;
  14552. this.$message("此作业已被删除");
  14553. }
  14554. }
  14555. }
  14556. })
  14557. .catch((err) => {
  14558. console.error(err);
  14559. });
  14560. },
  14561. selectStudent() {
  14562. if(this.selectStudentLoading) return
  14563. this.selectStudentLoading = true
  14564. //学生查看自己作业
  14565. let params = {
  14566. uid: this.userid,
  14567. cid: this.id,
  14568. s: this.courseType,
  14569. t: this.taskCount,
  14570. };
  14571. this.ajax
  14572. .get(this.$store.state.api + "selectStudentWorks", params)
  14573. .then((res) => {
  14574. var a =
  14575. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14576. this.taskCount
  14577. ].toolChoose;
  14578. var b = res.data[0];
  14579. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14580. var y = [
  14581. "AVI",
  14582. "NAVI",
  14583. "MPEG",
  14584. "ASF",
  14585. "MOV",
  14586. "WMV",
  14587. "3GP",
  14588. "RM",
  14589. "RMVB",
  14590. "FLV",
  14591. "F4V",
  14592. "H.264",
  14593. "H.265",
  14594. "REAL VIDEO",
  14595. "MKV",
  14596. "WebM",
  14597. "HDDVD",
  14598. "MP4",
  14599. "MPG",
  14600. "M4V",
  14601. "MGV",
  14602. "OGV",
  14603. "QTM",
  14604. "STR",
  14605. "AMC",
  14606. "DVX",
  14607. "EVO",
  14608. "DAT",
  14609. "OGG",
  14610. "OGM",
  14611. ];
  14612. for (var i = 0; i < a.length; i++) {
  14613. this.workStudent[i] = [];
  14614. for (var j = 0; j < b.length; j++) {
  14615. if (i == b[j].tool) {
  14616. if (
  14617. (b[j].type == 1 ||
  14618. b[j].type == 4 ||
  14619. b[j].type == 5 ||
  14620. b[j].type == 6 ||
  14621. b[j].type == 12 ||
  14622. b[j].type == 7) &&
  14623. a[i].tool[0] != 15 &&
  14624. a[i].tool[0] != 4 &&
  14625. a[i].tool[0] != 45 &&
  14626. a[i].tool[0] != 50 &&
  14627. a[i].tool[0] != 32 &&
  14628. a[i].tool[0] != 57 &&
  14629. a[i].tool[0] != 52 &&
  14630. a[i].tool[0] != 69
  14631. ) {
  14632. if (
  14633. c.indexOf(
  14634. b[j].content
  14635. .split(".")
  14636. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14637. ) != -1 &&
  14638. a[i].tool[0] == 16 &&
  14639. b[j].atool != 50
  14640. ) {
  14641. this.workStudent[i].push({
  14642. works: b[j].content,
  14643. sName: b[j].name,
  14644. score: b[j].score,
  14645. img: b[j].img,
  14646. type: 1,
  14647. time: b[j].time,
  14648. userid: b[j].userid,
  14649. wid: b[j].id,
  14650. });
  14651. } else if (
  14652. y.indexOf(
  14653. b[j].content
  14654. .split(".")
  14655. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14656. ) != -1 &&
  14657. a[i].tool[0] == 16 &&
  14658. b[j].atool != 50
  14659. ) {
  14660. this.workStudent[i].push({
  14661. userid: b[j].userid,
  14662. wid: b[j].id,
  14663. works: b[j].content,
  14664. sName: b[j].name,
  14665. score: b[j].score,
  14666. img: b[j].img,
  14667. type: 3,
  14668. time: b[j].time,
  14669. });
  14670. } else if (b[j].type == 6 && b[j].atool != 50) {
  14671. this.workStudent[i].push({
  14672. userid: b[j].userid,
  14673. wid: b[j].id,
  14674. works: b[j].content,
  14675. sName: b[j].name,
  14676. score: b[j].score,
  14677. img: b[j].img,
  14678. type: 4,
  14679. time: b[j].time,
  14680. });
  14681. } else if (b[j].type == 7 && b[j].atool != 50) {
  14682. this.workStudent[i].push({
  14683. userid: b[j].userid,
  14684. wid: b[j].id,
  14685. works: b[j].content,
  14686. sName: b[j].name,
  14687. score: b[j].score,
  14688. img: b[j].img,
  14689. type: 5,
  14690. time: b[j].time,
  14691. });
  14692. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14693. this.workStudent[i].push({
  14694. works: b[j].content,
  14695. sName: b[j].name,
  14696. score: b[j].score,
  14697. img: b[j].img,
  14698. type: 12,
  14699. time: b[j].time,
  14700. userid: b[j].userid,
  14701. wid: b[j].id,
  14702. });
  14703. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14704. this.workStudent[i].push({
  14705. works: b[j].content,
  14706. sName: b[j].name,
  14707. score: b[j].score,
  14708. img: b[j].img,
  14709. type: 0,
  14710. time: b[j].time,
  14711. userid: b[j].userid,
  14712. wid: b[j].id,
  14713. });
  14714. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14715. this.workStudent[i].push({
  14716. works: b[j].content,
  14717. sName: b[j].name,
  14718. score: b[j].score,
  14719. img: b[j].img,
  14720. type: 0,
  14721. time: b[j].time,
  14722. userid: b[j].userid,
  14723. wid: b[j].id,
  14724. });
  14725. }
  14726. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14727. this.workStudent[i].push({
  14728. works: b[j].content,
  14729. sName: b[j].name,
  14730. score: b[j].score,
  14731. img: b[j].img,
  14732. type: 2,
  14733. time: b[j].time,
  14734. userid: b[j].userid,
  14735. wid: b[j].id,
  14736. });
  14737. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  14738. this.workStudent[i].push({
  14739. works: b[j].content,
  14740. sName: b[j].name,
  14741. score: b[j].score,
  14742. img: b[j].img,
  14743. type: 20,
  14744. time: b[j].time,
  14745. userid: b[j].userid,
  14746. wid: b[j].id,
  14747. });
  14748. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14749. //问卷
  14750. this.workStudent[i].push({
  14751. works: b[j].content,
  14752. sName: b[j].name,
  14753. score: b[j].score,
  14754. img: b[j].img,
  14755. type: 2,
  14756. time: b[j].time,
  14757. userid: b[j].userid,
  14758. wid: b[j].id,
  14759. });
  14760. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14761. //选择题
  14762. this.workStudent[i].push({
  14763. works: b[j].content,
  14764. sName: b[j].name,
  14765. score: b[j].score,
  14766. img: b[j].img,
  14767. type: 8,
  14768. time: b[j].time,
  14769. userid: b[j].userid,
  14770. wid: b[j].id,
  14771. });
  14772. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14773. //选择题
  14774. this.workStudent[i].push({
  14775. works: b[j].content,
  14776. sName: b[j].name,
  14777. score: b[j].score,
  14778. img: b[j].img,
  14779. type: 9,
  14780. time: b[j].time,
  14781. userid: b[j].userid,
  14782. wid: b[j].id,
  14783. });
  14784. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14785. //选择题
  14786. this.workStudent[i].push({
  14787. works: b[j].content,
  14788. sName: b[j].name,
  14789. score: b[j].score,
  14790. img: b[j].img,
  14791. type: 10,
  14792. time: b[j].time,
  14793. userid: b[j].userid,
  14794. wid: b[j].id,
  14795. });
  14796. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14797. //选择题
  14798. this.workStudent[i].push({
  14799. works: b[j].content,
  14800. sName: b[j].name,
  14801. score: b[j].score,
  14802. img: b[j].img,
  14803. type: 13,
  14804. time: b[j].time,
  14805. userid: b[j].userid,
  14806. wid: b[j].id,
  14807. });
  14808. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  14809. //选择题
  14810. this.workStudent[i].push({
  14811. works: b[j].content,
  14812. sName: b[j].name,
  14813. score: b[j].score,
  14814. img: b[j].img,
  14815. type: 12,
  14816. time: b[j].time,
  14817. userid: b[j].userid,
  14818. wid: b[j].id,
  14819. });
  14820. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  14821. //选择题
  14822. this.workStudent[i].push({
  14823. works: b[j].content,
  14824. sName: b[j].name,
  14825. score: b[j].score,
  14826. img: b[j].img,
  14827. type: 12,
  14828. time: b[j].time,
  14829. userid: b[j].userid,
  14830. wid: b[j].id,
  14831. });
  14832. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  14833. //选择题
  14834. this.workStudent[i].push({
  14835. works: b[j].content,
  14836. sName: b[j].name,
  14837. score: b[j].score,
  14838. img: b[j].img,
  14839. type: 15,
  14840. time: b[j].time,
  14841. userid: b[j].userid,
  14842. wid: b[j].id,
  14843. });
  14844. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14845. //英语写作
  14846. this.workStudent[i].push({
  14847. works: b[j].content,
  14848. sName: b[j].name,
  14849. score: b[j].score,
  14850. img: b[j].img,
  14851. type: 16,
  14852. time: b[j].time,
  14853. userid: b[j].userid,
  14854. wid: b[j].id,
  14855. aiCode: b[j].aiCode,
  14856. teacherCode: b[j].teacherCode
  14857. });
  14858. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14859. //英语口语
  14860. this.workStudent[i].push({
  14861. works: b[j].content,
  14862. sName: b[j].name,
  14863. score: b[j].score,
  14864. img: b[j].img,
  14865. type: 17,
  14866. time: b[j].time,
  14867. userid: b[j].userid,
  14868. wid: b[j].id,
  14869. });
  14870. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14871. //交互视频
  14872. this.workStudent[i].push({
  14873. works: b[j].content,
  14874. sName: b[j].name,
  14875. score: b[j].score,
  14876. img: b[j].img,
  14877. type: 14,
  14878. time: b[j].time,
  14879. userid: b[j].userid,
  14880. wid: b[j].id,
  14881. });
  14882. }
  14883. }
  14884. }
  14885. }
  14886. this.selectStudentLoading = false
  14887. })
  14888. .catch((err) => {
  14889. this.selectStudentLoading = false
  14890. console.error(err);
  14891. });
  14892. },
  14893. openVideo(w) {
  14894. this.videoDetail = {};
  14895. this.playerOptions1.sources[0].src = w.works;
  14896. this.videoDetail = this.playerOptions1;
  14897. this.videoVisible = true;
  14898. },
  14899. isLikes(wid, uid, t, c, isLikes,sName) {
  14900. if (isLikes == false) {
  14901. let params = [
  14902. {
  14903. wid: wid,
  14904. lid: uid,
  14905. t: t,
  14906. c: c,
  14907. },
  14908. ];
  14909. this.ajax
  14910. .post(this.$store.state.api + "insertComment", params)
  14911. .then((res) => {
  14912. this.$message({
  14913. message: "点赞成功",
  14914. type: "success",
  14915. });
  14916. this.selectSWorks();
  14917. this.selectStudent();
  14918. if(this.tType!=2){
  14919. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14920. }
  14921. })
  14922. .catch((err) => {
  14923. this.$message.error("点赞失败");
  14924. console.error(err);
  14925. });
  14926. } else {
  14927. let params = {
  14928. wid: wid,
  14929. lid: uid,
  14930. type: t,
  14931. };
  14932. this.ajax
  14933. .get(this.$store.state.api + "deleteComment", params)
  14934. .then((res) => {
  14935. this.$message({
  14936. message: "取消点赞成功",
  14937. type: "success",
  14938. });
  14939. this.selectSWorks();
  14940. this.selectStudent();
  14941. })
  14942. .catch((err) => {
  14943. console.error(err);
  14944. });
  14945. }
  14946. },
  14947. deleteComment(wid) {
  14948. this.$confirm("确定删除此评论吗?", "提示", {
  14949. confirmButtonText: "确定",
  14950. cancelButtonText: "取消",
  14951. type: "warning",
  14952. })
  14953. .then(() => {
  14954. let params = {
  14955. id: wid,
  14956. };
  14957. this.ajax
  14958. .get(this.$store.state.api + "deleteComment2", params)
  14959. .then((res) => {
  14960. this.$message({
  14961. message: "删除评论成功",
  14962. type: "success",
  14963. });
  14964. this.selectSWorks();
  14965. this.selectStudent();
  14966. })
  14967. .catch((err) => {
  14968. console.error(err);
  14969. });
  14970. })
  14971. .catch(() => {});
  14972. },
  14973. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14974. this.commentIndexJson = {
  14975. toolIndex: toolIndex,
  14976. wIndex: wIndex,
  14977. gindex: gindex,
  14978. gid: gid,
  14979. };
  14980. this.commentDetail = [];
  14981. this.commentDialogVisible = true;
  14982. this.commentDetail = w;
  14983. if (w.works && w.type == 1) {
  14984. // this.pptImgUrl = "";
  14985. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14986. if (
  14987. a.indexOf(
  14988. w.works
  14989. .split(".")
  14990. [w.works.split(".").length - 1].toLocaleUpperCase()
  14991. ) != -1
  14992. ) {
  14993. let _uuurl = await this.checkLink(w.works);
  14994. console.log(_uuurl)
  14995. this.pptImgUrl =
  14996. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14997. this.showPDF = false;
  14998. } else if (
  14999. w.works
  15000. .split(".")
  15001. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15002. ) {
  15003. this.pptImgUrl = w.works;
  15004. this.showPDF = true;
  15005. }
  15006. } else if (w.works && w.type == 3) {
  15007. this.videoDetail = {};
  15008. this.playerOptions1.sources[0].src = w.works;
  15009. this.videoDetail = this.playerOptions1;
  15010. // this.videoVisible = true;
  15011. } else if (w.works && w.type == 4) {
  15012. this.eScore = JSON.parse(w.works);
  15013. this.rateJson =
  15014. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15015. this.taskCount
  15016. ].toolChoose[toolIndex].rateJson;
  15017. } else if (w.works && w.type == 10) {
  15018. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  15019. } else if (w.works && w.type == 13) {
  15020. this.wordJson =
  15021. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15022. this.taskCount
  15023. ].toolChoose[toolIndex].wordJson;
  15024. }
  15025. },
  15026. async openScore(w, index) {
  15027. this.wScore = 0;
  15028. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  15029. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  15030. this.commentDetail = [];
  15031. if(w.type == 17){
  15032. this.dialogVisibleENScore = true;
  15033. }else{
  15034. this.dialogVisibleScore = true;
  15035. }
  15036. this.commentDetail = w;
  15037. if (w.works && w.type == 1) {
  15038. this.pptImgUrl = "";
  15039. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  15040. if (
  15041. a.indexOf(
  15042. w.works
  15043. .split(".")
  15044. [w.works.split(".").length - 1].toLocaleUpperCase()
  15045. ) != -1
  15046. ) {
  15047. let _uuurl = await this.checkLink(w.works);
  15048. console.log(_uuurl)
  15049. this.pptImgUrl =
  15050. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  15051. this.showPDF = false;
  15052. } else if (
  15053. w.works
  15054. .split(".")
  15055. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15056. ) {
  15057. this.pptImgUrl = w.works;
  15058. this.showPDF = true;
  15059. }
  15060. } else if (w.works && w.type == 3) {
  15061. this.videoDetail = {};
  15062. this.playerOptions1.sources[0].src = w.works;
  15063. this.videoDetail = this.playerOptions1;
  15064. }else if(w.type == 17){
  15065. let englishVoiceJson = {}
  15066. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15067. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  15068. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  15069. .toolChoose[index].englishVoiceJson
  15070. : {};
  15071. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  15072. }
  15073. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15074. },
  15075. addComment(wid, uid, t,detail) {
  15076. if (this.commentText == "") {
  15077. this.$message.error("请输入评论");
  15078. return;
  15079. }
  15080. let params2 = [
  15081. {
  15082. wid: wid,
  15083. lid: uid,
  15084. t: t,
  15085. },
  15086. ];
  15087. this.ajax
  15088. .post(this.$store.state.api + "getComment", params2)
  15089. .then((res) => {
  15090. if (res.data[0].length > 0) {
  15091. this.$message.error("一个作业只能评论一条");
  15092. } else {
  15093. let params = [
  15094. {
  15095. wid: wid,
  15096. lid: uid,
  15097. t: t,
  15098. c: this.commentText,
  15099. },
  15100. ];
  15101. this.ajax
  15102. .post(this.$store.state.api + "insertComment", params)
  15103. .then((res) => {
  15104. this.$message({
  15105. message: "评论成功",
  15106. type: "success",
  15107. });
  15108. this.commentText = "";
  15109. this.selectSWorks();
  15110. this.selectStudent();
  15111. if(this.tType!=2){
  15112. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  15113. }
  15114. })
  15115. .catch((err) => {
  15116. this.$message.error("评论失败");
  15117. console.error(err);
  15118. });
  15119. }
  15120. })
  15121. .catch((err) => {
  15122. // this.$message.error("评论失败");
  15123. console.error(err);
  15124. });
  15125. },
  15126. scoreWork(wid,sName) {
  15127. if (this.wScore == 0) {
  15128. this.$message.error("请评分");
  15129. return;
  15130. }
  15131. let params = [
  15132. {
  15133. wid: wid,
  15134. score: JSON.stringify({
  15135. wScore: this.wScore,
  15136. detail: this.scoreDetail,
  15137. }),
  15138. },
  15139. ];
  15140. this.ajax
  15141. .post(this.$store.state.api + "scoreWork", params)
  15142. .then((res) => {
  15143. this.$message({
  15144. message: "评分成功",
  15145. type: "success",
  15146. });
  15147. this.wScore = 0;
  15148. this.scoreDetail = "";
  15149. this.dialogVisibleScore = false;
  15150. this.selectSWorks();
  15151. this.selectStudent();
  15152. if(this.tType!=2){
  15153. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  15154. }
  15155. })
  15156. .catch((err) => {
  15157. this.$message.error("评分失败");
  15158. console.error(err);
  15159. });
  15160. },
  15161. openXz(w, i) {
  15162. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15163. .taskJson[this.taskCount].toolChoose[i].selectJson
  15164. ? JSON.parse(
  15165. JSON.stringify(
  15166. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15167. this.taskCount
  15168. ].toolChoose[i].selectJson
  15169. )
  15170. )
  15171. : { url: "", select: [], answer: [] };
  15172. var a = w.works.split(",");
  15173. for (var k = 0; k < a.length; k++) {
  15174. a[k] = parseInt(a[k]);
  15175. }
  15176. this.selectAnswer = { answer: a, stu: w.sName };
  15177. this.isSelect = true;
  15178. this.dialogVisibleSelect = true;
  15179. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15180. },
  15181. openSen(w, i) {
  15182. this.sentenceList1 = JSON.parse(w.works);
  15183. this.sentenceList1.stuName = w.sName;
  15184. this.dialogVisibleSentence1 = true;
  15185. },
  15186. openPj(w, toolindex) {
  15187. this.isStar = true;
  15188. this.eScore = JSON.parse(w);
  15189. this.rateJson =
  15190. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15191. this.taskCount
  15192. ].toolChoose[toolindex].rateJson;
  15193. this.studentEvalDialogVisible = true;
  15194. },
  15195. openEnglishEva(id,i){
  15196. let params = {
  15197. wid: id
  15198. };
  15199. this.ajax
  15200. .get(this.$store.state.api + "selectEngWork", params)
  15201. .then((res) => {
  15202. this.evaEngJson.message = res.data[0][0];
  15203. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  15204. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  15205. .toolChoose[i].englishList;
  15206. this.engEvaDialogVisible = true;
  15207. })
  15208. .catch((err) => {
  15209. console.error(err);
  15210. });
  15211. },
  15212. deleteWorks(id) {
  15213. this.$confirm("确定删除此作业吗?", "提示", {
  15214. confirmButtonText: "确定",
  15215. cancelButtonText: "取消",
  15216. type: "warning",
  15217. })
  15218. .then(() => {
  15219. let params = [
  15220. {
  15221. id: id,
  15222. },
  15223. ];
  15224. this.ajax
  15225. .post(this.$store.state.api + "deleteCourseWork", params)
  15226. .then((res) => {
  15227. this.$message({
  15228. message: "删除成功",
  15229. type: "success",
  15230. });
  15231. this.selectStudent();
  15232. this.selectSWorks();
  15233. this.selectSLook();
  15234. })
  15235. .catch((err) => {
  15236. this.$message.error("网络异常");
  15237. console.error(err);
  15238. });
  15239. })
  15240. .catch(() => {});
  15241. },
  15242. selectSWorks(gindex) {
  15243. if(this.selectSWorksLoading) return
  15244. this.selectSWorksLoading = true
  15245. //教师查看全部作业
  15246. let params = {
  15247. cid: this.id,
  15248. s: this.courseType,
  15249. t: this.taskCount,
  15250. };
  15251. this.ajax
  15252. .get(this.$store.state.api + "selectSWorks", params)
  15253. .then((res) => {
  15254. var a =
  15255. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15256. this.taskCount
  15257. ].toolChoose;
  15258. var b = res.data[0];
  15259. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15260. var y = [
  15261. "AVI",
  15262. "NAVI",
  15263. "MPEG",
  15264. "ASF",
  15265. "MOV",
  15266. "WMV",
  15267. "3GP",
  15268. "RM",
  15269. "RMVB",
  15270. "FLV",
  15271. "F4V",
  15272. "H.264",
  15273. "H.265",
  15274. "REAL VIDEO",
  15275. "MKV",
  15276. "WebM",
  15277. "HDDVD",
  15278. "MP4",
  15279. "MPG",
  15280. "M4V",
  15281. "MGV",
  15282. "OGV",
  15283. "QTM",
  15284. "STR",
  15285. "AMC",
  15286. "DVX",
  15287. "EVO",
  15288. "DAT",
  15289. "OGG",
  15290. "OGM",
  15291. ];
  15292. var d = res.data[1];
  15293. var e = res.data[2];
  15294. var f = res.data[3];
  15295. let _worksStudent = [];
  15296. var _worksStudent2 = [];
  15297. for (var i = 0; i < a.length; i++) {
  15298. _worksStudent[i] = [];
  15299. _worksStudent2[i] = [];
  15300. if (
  15301. !this.isCloseList[i] ||
  15302. this.isCloseList[i].isClose == undefined
  15303. ) {
  15304. this.isCloseList[i] = { isClose: 0 };
  15305. }
  15306. this.groupStudent[i] = [];
  15307. this.groupStudentUid[i] = [];
  15308. if (this.isGroup) {
  15309. for (
  15310. var groupI = 0;
  15311. groupI < this.courseGroup.group.length;
  15312. groupI++
  15313. ) {
  15314. this.courseGroup.group[groupI].works[i] = [];
  15315. }
  15316. }
  15317. this.isWorksS[i] = [];
  15318. this.checkJson[i] = [];
  15319. if (a[i].tool[0] == 49) {
  15320. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  15321. this.groupStudent[i][gA] = [];
  15322. this.groupStudentUid[i][gA] = [];
  15323. _worksStudent[i][gA] = [];
  15324. _worksStudent2[i][gA] = [];
  15325. this.isCloseList[i][gA] = [];
  15326. for (var g = 0; g < f.length; g++) {
  15327. if (
  15328. f[g].ttype == 2 &&
  15329. this.tcid &&
  15330. this.arrayToArray(
  15331. (f[g].classid ? f[g].classid.split(",") : []),
  15332. this.tcid.split(",")
  15333. ).length == 0
  15334. ) {
  15335. continue;
  15336. }
  15337. let _classId = this.arrayToArray(
  15338. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15339. this.classId ? this.classId.split(",") : []
  15340. )
  15341. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  15342. (f[g].classid ? f[g].classid.split(",") : []),
  15343. this.tcid.split(",")
  15344. ).length !== 0 || this.arrayToArray(
  15345. (f[g].classid ? f[g].classid.split(",") : []),
  15346. _classId
  15347. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  15348. this.groupStudent[i][gA].push(f[g]);
  15349. this.groupStudentUid[i][gA].push(f[g].userid);
  15350. }
  15351. }
  15352. }
  15353. this.$forceUpdate();
  15354. }
  15355. for (var j = 0; j < b.length; j++) {
  15356. if (
  15357. b[j].ttype == 2 &&
  15358. this.tcid &&
  15359. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  15360. .length == 0
  15361. ) {
  15362. continue;
  15363. }
  15364. var likesCount = 0;
  15365. var commentCount = 0;
  15366. var isLikes = false;
  15367. var commentJson = [];
  15368. var likeJson = [];
  15369. var data = b[j];
  15370. if (i == b[j].tool) {
  15371. if (data.type == 2 && a[i].tool[0] == 4) {
  15372. // if(JSON.parse(data.content)[0].anwer){
  15373. var checkL =
  15374. JSON.parse(data.content)[0].anwer instanceof Array
  15375. ? JSON.parse(data.content)[0].anwer
  15376. : JSON.parse(data.content)[0].anwer.split(",");
  15377. for (var z = 0; z < checkL.length; z++) {
  15378. if (!this.checkJson[i][z]) {
  15379. this.checkJson[i].push({
  15380. checkCount: [],
  15381. checkPerson: [],
  15382. rightPerson: [],
  15383. });
  15384. }
  15385. if (!this.checkJson[i][z].checkCount.length) {
  15386. this.checkJson[i][z].checkCount = [];
  15387. let _askItemCount = JSON.parse(data.content)[0].askJson
  15388. .askJson[z].askItem;
  15389. for (var aic = 0; aic < _askItemCount; aic++) {
  15390. this.checkJson[i][z].checkCount.push(0);
  15391. }
  15392. }
  15393. if (checkL[z] instanceof Array) {
  15394. if (
  15395. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  15396. checkL[z].sort().join(",")
  15397. ) {
  15398. this.checkJson[i][z].rightPerson.push(data.name);
  15399. }
  15400. for (var q = 0; q < checkL[z].length; q++) {
  15401. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15402. ? this.checkJson[i][z].checkPerson[
  15403. parseInt(checkL[z][q])
  15404. ].push(data.name)
  15405. : (this.checkJson[i][z].checkPerson[
  15406. parseInt(checkL[z][q])
  15407. ] = [data.name]);
  15408. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15409. ? this.checkJson[i][z].checkCount[
  15410. parseInt(checkL[z][q])
  15411. ]++
  15412. : (this.checkJson[i][z].checkCount[
  15413. parseInt(checkL[z][q])
  15414. ] = 1);
  15415. }
  15416. } else {
  15417. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  15418. this.checkJson[i][z].rightPerson.push(data.name);
  15419. }
  15420. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  15421. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  15422. ? this.checkJson[i][z].checkPerson[
  15423. parseInt(checkL[z])
  15424. ].push(data.name)
  15425. : (this.checkJson[i][z].checkPerson[
  15426. parseInt(checkL[z])
  15427. ] = [data.name]);
  15428. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  15429. ? this.checkJson[i][z].checkCount[
  15430. parseInt(checkL[z])
  15431. ]++
  15432. : (this.checkJson[i][z].checkCount[
  15433. parseInt(checkL[z])
  15434. ] = 1);
  15435. }
  15436. }
  15437. }
  15438. } else if (data.type == 8 && a[i].tool[0] == 45) {
  15439. var checkL = JSON.parse(data.content)[0].anwer;
  15440. if(a[i].testJson.testCount != JSON.parse(data.content)[0].testJson.testCount){
  15441. continue
  15442. }
  15443. console.log('选择题')
  15444. for (var z = 0; z < checkL.length; z++) {
  15445. if (!this.checkJson[i][z]) {
  15446. this.checkJson[i].push({
  15447. checkCount: [],
  15448. checkPerson: [],
  15449. rightPerson: [],
  15450. });
  15451. }
  15452. if (!this.checkJson[i][z].checkCount.length) {
  15453. this.checkJson[i][z].checkCount = [];
  15454. let _askItemCount = JSON.parse(data.content)[0].testJson
  15455. .testJson[z].testItem;
  15456. for (var aic = 0; aic < _askItemCount; aic++) {
  15457. this.checkJson[i][z].checkCount.push(0);
  15458. }
  15459. }
  15460. if (checkL[z] instanceof Array) {
  15461. if (
  15462. JSON.parse(data.content)[0]
  15463. .testJson.testJson[z].answer.sort()
  15464. .join(",") == checkL[z].sort().join(",")
  15465. ) {
  15466. this.checkJson[i][z].rightPerson.push(data.name);
  15467. }
  15468. for (var q = 0; q < checkL[z].length; q++) {
  15469. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15470. ? this.checkJson[i][z].checkPerson[
  15471. parseInt(checkL[z][q])
  15472. ].push(data.name)
  15473. : (this.checkJson[i][z].checkPerson[
  15474. parseInt(checkL[z][q])
  15475. ] = [data.name]);
  15476. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15477. ? this.checkJson[i][z].checkCount[
  15478. parseInt(checkL[z][q])
  15479. ]++
  15480. : (this.checkJson[i][z].checkCount[
  15481. parseInt(checkL[z][q])
  15482. ] = 1);
  15483. }
  15484. } else {
  15485. if (
  15486. JSON.parse(data.content)[0].testJson.testJson[z]
  15487. .answer == checkL[z]
  15488. ) {
  15489. this.checkJson[i][z].rightPerson.push(data.name);
  15490. }
  15491. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  15492. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  15493. ? this.checkJson[i][z].checkPerson[
  15494. parseInt(checkL[z])
  15495. ].push(data.name)
  15496. : (this.checkJson[i][z].checkPerson[
  15497. parseInt(checkL[z])
  15498. ] = [data.name]);
  15499. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  15500. ? this.checkJson[i][z].checkCount[
  15501. parseInt(checkL[z])
  15502. ]++
  15503. : (this.checkJson[i][z].checkCount[
  15504. parseInt(checkL[z])
  15505. ] = 1);
  15506. }
  15507. }
  15508. }
  15509. } else if (data.type == 9 && a[i].tool[0] == 47) {
  15510. var checkL = JSON.parse(data.content);
  15511. for (var z = 0; z < checkL.length; z++) {
  15512. if (!this.checkJson[i][z]) {
  15513. this.checkJson[i].push({
  15514. checkCount: [],
  15515. checkPerson: [],
  15516. rightPerson: [],
  15517. });
  15518. }
  15519. this.checkJson[i][z].checkPerson.push(data.name);
  15520. if (
  15521. checkL[z].chooseSenList.toString() ==
  15522. checkL[z].rightAnswer.toString()
  15523. ) {
  15524. this.checkJson[i][z].rightPerson.push(data.name);
  15525. }
  15526. }
  15527. }
  15528. for (var k = 0; k < d.length; k++) {
  15529. //点赞
  15530. if (d[k].workId == b[j].id) {
  15531. likesCount++;
  15532. likeJson.push(d[k])
  15533. if (d[k].likesId == this.userid) {
  15534. isLikes = true;
  15535. }
  15536. }
  15537. }
  15538. for (var l = 0; l < e.length; l++) {
  15539. //评论
  15540. if (e[l].workId == b[j].id) {
  15541. if (e[l].comment != "") {
  15542. commentCount++;
  15543. commentJson.push({
  15544. commentText: e[l].comment,
  15545. commentTime: e[l].commentTime,
  15546. commentPeople: e[l].commentPeople,
  15547. userid: e[l].userid,
  15548. wid: e[l].id,
  15549. });
  15550. }
  15551. }
  15552. }
  15553. if (
  15554. (b[j].type == 1 ||
  15555. b[j].type == 4 ||
  15556. b[j].type == 5 ||
  15557. b[j].type == 6 ||
  15558. b[j].type == 12 ||
  15559. b[j].type == 7) &&
  15560. a[i].tool[0] != 15 &&
  15561. a[i].tool[0] != 4 &&
  15562. a[i].tool[0] != 45 &&
  15563. a[i].tool[0] != 50 &&
  15564. a[i].tool[0] != 32 &&
  15565. a[i].tool[0] != 57 &&
  15566. a[i].tool[0] != 52
  15567. ) {
  15568. if (
  15569. c.indexOf(
  15570. b[j].content
  15571. .split(".")
  15572. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15573. ) != -1 &&
  15574. a[i].tool[0] == 16 &&
  15575. b[j].atool != 50
  15576. ) {
  15577. let _works = {
  15578. userid: b[j].userid,
  15579. ateacher: b[j].ateacher,
  15580. wid: b[j].id,
  15581. works: b[j].content,
  15582. sName: b[j].name,
  15583. type: 1,
  15584. ttype:b[j].ttype,
  15585. time: b[j].time,
  15586. score: b[j].score,
  15587. img: b[j].img,
  15588. likesCount: likesCount,
  15589. commentCount: commentCount,
  15590. isLikes: isLikes,
  15591. commentJson: commentJson,
  15592. likeJson:likeJson
  15593. };
  15594. if (this.isGroup) {
  15595. let isGw = 1;
  15596. for (
  15597. var groupI = 0;
  15598. groupI < this.courseGroup.group.length;
  15599. groupI++
  15600. ) {
  15601. let gid = this.courseGroup.group[groupI].id;
  15602. if (
  15603. this.courseGroupStudentUid[gid].indexOf(
  15604. b[j].userid
  15605. ) != -1
  15606. ) {
  15607. isGw = 2;
  15608. this.courseGroup.group[groupI].works[i].push(_works);
  15609. break;
  15610. }
  15611. }
  15612. if (isGw == 1) {
  15613. _worksStudent[i].push(_works);
  15614. }
  15615. } else {
  15616. _worksStudent[i].push(_works);
  15617. }
  15618. _worksStudent2[i].push(_works);
  15619. this.isWorksS[i].push({
  15620. uid: b[j].userid,
  15621. sName: b[j].name,
  15622. });
  15623. } else if (
  15624. y.indexOf(
  15625. b[j].content
  15626. .split(".")
  15627. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15628. ) != -1 &&
  15629. a[i].tool[0] == 16 &&
  15630. b[j].atool != 50
  15631. ) {
  15632. let _works = {
  15633. userid: b[j].userid,
  15634. ateacher: b[j].ateacher,
  15635. wid: b[j].id,
  15636. works: b[j].content,
  15637. sName: b[j].name,
  15638. type: 3,
  15639. ttype:b[j].ttype,
  15640. time: b[j].time,
  15641. score: b[j].score,
  15642. img: b[j].img,
  15643. likesCount: likesCount,
  15644. commentCount: commentCount,
  15645. isLikes: isLikes,
  15646. commentJson: commentJson,
  15647. likeJson:likeJson
  15648. };
  15649. if (this.isGroup) {
  15650. let isGw = 1;
  15651. for (
  15652. var groupI = 0;
  15653. groupI < this.courseGroup.group.length;
  15654. groupI++
  15655. ) {
  15656. let gid = this.courseGroup.group[groupI].id;
  15657. if (
  15658. this.courseGroupStudentUid[gid].indexOf(
  15659. b[j].userid
  15660. ) != -1
  15661. ) {
  15662. isGw = 2;
  15663. this.courseGroup.group[groupI].works[i].push(_works);
  15664. break;
  15665. }
  15666. }
  15667. if (isGw == 1) {
  15668. _worksStudent[i].push(_works);
  15669. }
  15670. } else {
  15671. _worksStudent[i].push(_works);
  15672. }
  15673. _worksStudent2[i].push(_works);
  15674. this.isWorksS[i].push({
  15675. uid: b[j].userid,
  15676. sName: b[j].name,
  15677. });
  15678. } else if (b[j].type == 6 && b[j].atool != 50) {
  15679. let _works = {
  15680. userid: b[j].userid,
  15681. ateacher: b[j].ateacher,
  15682. wid: b[j].id,
  15683. works: b[j].content,
  15684. sName: b[j].name,
  15685. type: 4,
  15686. ttype:b[j].ttype,
  15687. time: b[j].time,
  15688. score: b[j].score,
  15689. img: b[j].img,
  15690. likesCount: likesCount,
  15691. commentCount: commentCount,
  15692. isLikes: isLikes,
  15693. commentJson: commentJson,
  15694. likeJson:likeJson
  15695. };
  15696. _worksStudent[i].push(_works);
  15697. _worksStudent2[i].push(_works);
  15698. this.isWorksS[i].push({
  15699. uid: b[j].userid,
  15700. sName: b[j].name,
  15701. });
  15702. } else if (b[j].type == 7 && b[j].atool != 50) {
  15703. let _work = {
  15704. userid: b[j].userid,
  15705. ateacher: b[j].ateacher,
  15706. wid: b[j].id,
  15707. works: b[j].content,
  15708. sName: b[j].name,
  15709. type: 5,
  15710. ttype:b[j].ttype,
  15711. time: b[j].time,
  15712. score: b[j].score,
  15713. img: b[j].img,
  15714. likesCount: likesCount,
  15715. commentCount: commentCount,
  15716. isLikes: isLikes,
  15717. commentJson: commentJson,
  15718. likeJson:likeJson
  15719. };
  15720. _worksStudent[i].push(_work);
  15721. _worksStudent2[i].push(_work);
  15722. this.isWorksS[i].push({
  15723. uid: b[j].userid,
  15724. sName: b[j].name,
  15725. });
  15726. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  15727. let _works = {
  15728. userid: b[j].userid,
  15729. ateacher: b[j].ateacher,
  15730. wid: b[j].id,
  15731. works: b[j].content,
  15732. sName: b[j].name,
  15733. type: 12,
  15734. ttype:b[j].ttype,
  15735. time: b[j].time,
  15736. score: b[j].score,
  15737. img: b[j].img,
  15738. likesCount: likesCount,
  15739. commentCount: commentCount,
  15740. isLikes: isLikes,
  15741. commentJson: commentJson,
  15742. likeJson:likeJson
  15743. };
  15744. if (this.isGroup) {
  15745. let isGw = 1;
  15746. for (
  15747. var groupI = 0;
  15748. groupI < this.courseGroup.group.length;
  15749. groupI++
  15750. ) {
  15751. let gid = this.courseGroup.group[groupI].id;
  15752. if (
  15753. this.courseGroupStudentUid[gid].indexOf(
  15754. b[j].userid
  15755. ) != -1
  15756. ) {
  15757. isGw = 2;
  15758. this.courseGroup.group[groupI].works[i].push(_works);
  15759. break;
  15760. }
  15761. }
  15762. if (isGw == 1) {
  15763. _worksStudent[i].push(_works);
  15764. }
  15765. } else {
  15766. _worksStudent[i].push(_works);
  15767. }
  15768. _worksStudent2[i].push(_works);
  15769. this.isWorksS[i].push({
  15770. uid: b[j].userid,
  15771. sName: b[j].name,
  15772. });
  15773. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  15774. let _works = {
  15775. userid: b[j].userid,
  15776. ateacher: b[j].ateacher,
  15777. wid: b[j].id,
  15778. works: b[j].content,
  15779. sName: b[j].name,
  15780. type: 0,
  15781. ttype:b[j].ttype,
  15782. time: b[j].time,
  15783. score: b[j].score,
  15784. img: b[j].img,
  15785. likesCount: likesCount,
  15786. commentCount: commentCount,
  15787. isLikes: isLikes,
  15788. commentJson: commentJson,
  15789. likeJson:likeJson
  15790. };
  15791. if (this.isGroup) {
  15792. let isGw = 1;
  15793. for (
  15794. var groupI = 0;
  15795. groupI < this.courseGroup.group.length;
  15796. groupI++
  15797. ) {
  15798. let gid = this.courseGroup.group[groupI].id;
  15799. if (
  15800. this.courseGroupStudentUid[gid].indexOf(
  15801. b[j].userid
  15802. ) != -1
  15803. ) {
  15804. isGw = 2;
  15805. this.courseGroup.group[groupI].works[i].push(_works);
  15806. break;
  15807. }
  15808. }
  15809. if (isGw == 1) {
  15810. _worksStudent[i].push(_works);
  15811. }
  15812. } else {
  15813. _worksStudent[i].push(_works);
  15814. }
  15815. _worksStudent2[i].push(_works);
  15816. this.isWorksS[i].push({
  15817. uid: b[j].userid,
  15818. sName: b[j].name,
  15819. });
  15820. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  15821. let _works = {
  15822. userid: b[j].userid,
  15823. ateacher: b[j].ateacher,
  15824. wid: b[j].id,
  15825. works: b[j].content,
  15826. sName: b[j].name,
  15827. type: 0,
  15828. ttype:b[j].ttype,
  15829. time: b[j].time,
  15830. score: b[j].score,
  15831. img: b[j].img,
  15832. likesCount: likesCount,
  15833. commentCount: commentCount,
  15834. isLikes: isLikes,
  15835. commentJson: commentJson,
  15836. likeJson:likeJson
  15837. };
  15838. if (this.isGroup) {
  15839. let isGw = 1;
  15840. for (
  15841. var groupI = 0;
  15842. groupI < this.courseGroup.group.length;
  15843. groupI++
  15844. ) {
  15845. let gid = this.courseGroup.group[groupI].id;
  15846. if (
  15847. this.courseGroupStudentUid[gid].indexOf(
  15848. b[j].userid
  15849. ) != -1
  15850. ) {
  15851. isGw = 2;
  15852. this.courseGroup.group[groupI].works[i].push(_works);
  15853. break;
  15854. }
  15855. }
  15856. if (isGw == 1) {
  15857. _worksStudent[i].push(_works);
  15858. }
  15859. } else {
  15860. _worksStudent[i].push(_works);
  15861. }
  15862. _worksStudent2[i].push(_works);
  15863. this.isWorksS[i].push({
  15864. uid: b[j].userid,
  15865. sName: b[j].name,
  15866. });
  15867. }
  15868. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15869. let _works = {
  15870. userid: b[j].userid,
  15871. ateacher: b[j].ateacher,
  15872. wid: b[j].id,
  15873. works: b[j].content,
  15874. sName: b[j].name,
  15875. type: 2,
  15876. ttype:b[j].ttype,
  15877. time: b[j].time,
  15878. score: b[j].score,
  15879. img: b[j].img,
  15880. likesCount: likesCount,
  15881. commentCount: commentCount,
  15882. isLikes: isLikes,
  15883. commentJson: commentJson,
  15884. likeJson:likeJson
  15885. };
  15886. if (this.isGroup) {
  15887. let isGw = 1;
  15888. for (
  15889. var groupI = 0;
  15890. groupI < this.courseGroup.group.length;
  15891. groupI++
  15892. ) {
  15893. let gid = this.courseGroup.group[groupI].id;
  15894. if (
  15895. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15896. -1
  15897. ) {
  15898. isGw = 2;
  15899. this.courseGroup.group[groupI].works[i].push(_works);
  15900. break;
  15901. }
  15902. }
  15903. if (isGw == 1) {
  15904. _worksStudent[i].push(_works);
  15905. }
  15906. } else {
  15907. _worksStudent[i].push(_works);
  15908. }
  15909. _worksStudent2[i].push(_works);
  15910. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15911. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  15912. let _works = {
  15913. userid: b[j].userid,
  15914. ateacher: b[j].ateacher,
  15915. wid: b[j].id,
  15916. works: b[j].content,
  15917. sName: b[j].name,
  15918. type: 20,
  15919. ttype:b[j].ttype,
  15920. time: b[j].time,
  15921. score: b[j].score,
  15922. img: b[j].img,
  15923. likesCount: likesCount,
  15924. commentCount: commentCount,
  15925. isLikes: isLikes,
  15926. commentJson: commentJson,
  15927. likeJson:likeJson
  15928. };
  15929. if (this.isGroup) {
  15930. let isGw = 1;
  15931. for (
  15932. var groupI = 0;
  15933. groupI < this.courseGroup.group.length;
  15934. groupI++
  15935. ) {
  15936. let gid = this.courseGroup.group[groupI].id;
  15937. if (
  15938. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15939. -1
  15940. ) {
  15941. isGw = 2;
  15942. this.courseGroup.group[groupI].works[i].push(_works);
  15943. break;
  15944. }
  15945. }
  15946. if (isGw == 1) {
  15947. _worksStudent[i].push(_works);
  15948. }
  15949. } else {
  15950. _worksStudent[i].push(_works);
  15951. }
  15952. _worksStudent2[i].push(_works);
  15953. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15954. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15955. //问卷
  15956. let _work = {
  15957. userid: b[j].userid,
  15958. ateacher: b[j].ateacher,
  15959. wid: b[j].id,
  15960. works: b[j].content,
  15961. sName: b[j].name,
  15962. type: 2,
  15963. ttype:b[j].ttype,
  15964. time: b[j].time,
  15965. score: b[j].score,
  15966. img: b[j].img,
  15967. likesCount: likesCount,
  15968. commentCount: commentCount,
  15969. isLikes: isLikes,
  15970. commentJson: commentJson,
  15971. likeJson:likeJson
  15972. };
  15973. _worksStudent[i].push(_work);
  15974. _worksStudent2[i].push(_work);
  15975. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15976. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15977. //选择题
  15978. let _work = {
  15979. userid: b[j].userid,
  15980. ateacher: b[j].ateacher,
  15981. wid: b[j].id,
  15982. works: b[j].content,
  15983. sName: b[j].name,
  15984. type: 8,
  15985. ttype:b[j].ttype,
  15986. time: b[j].time,
  15987. score: b[j].score,
  15988. img: b[j].img,
  15989. likesCount: likesCount,
  15990. commentCount: commentCount,
  15991. isLikes: isLikes,
  15992. commentJson: commentJson,
  15993. likeJson:likeJson
  15994. };
  15995. _worksStudent[i].push(_work);
  15996. _worksStudent2[i].push(_work);
  15997. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15998. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15999. //选择题
  16000. let _work = {
  16001. userid: b[j].userid,
  16002. ateacher: b[j].ateacher,
  16003. wid: b[j].id,
  16004. works: b[j].content,
  16005. sName: b[j].name,
  16006. type: 9,
  16007. ttype:b[j].ttype,
  16008. time: b[j].time,
  16009. score: b[j].score,
  16010. img: b[j].img,
  16011. likesCount: likesCount,
  16012. commentCount: commentCount,
  16013. isLikes: isLikes,
  16014. commentJson: commentJson,
  16015. likeJson:likeJson
  16016. };
  16017. _worksStudent[i].push(_work);
  16018. _worksStudent2[i].push(_work);
  16019. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16020. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  16021. //选择题
  16022. let _work = {
  16023. userid: b[j].userid,
  16024. ateacher: b[j].ateacher,
  16025. wid: b[j].id,
  16026. works: b[j].content,
  16027. sName: b[j].name,
  16028. type: 10,
  16029. ttype:b[j].ttype,
  16030. time: b[j].time,
  16031. score: b[j].score,
  16032. img: b[j].img,
  16033. likesCount: likesCount,
  16034. commentCount: commentCount,
  16035. isLikes: isLikes,
  16036. commentJson: commentJson,
  16037. likeJson:likeJson
  16038. };
  16039. _worksStudent[i].push(_work);
  16040. _worksStudent2[i].push(_work);
  16041. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16042. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  16043. //选择题
  16044. let _work = {
  16045. userid: b[j].userid,
  16046. ateacher: b[j].ateacher,
  16047. wid: b[j].id,
  16048. works: b[j].content,
  16049. sName: b[j].name,
  16050. type: 13,
  16051. ttype:b[j].ttype,
  16052. time: b[j].time,
  16053. score: b[j].score,
  16054. img: b[j].img,
  16055. likesCount: likesCount,
  16056. commentCount: commentCount,
  16057. isLikes: isLikes,
  16058. commentJson: commentJson,
  16059. likeJson:likeJson
  16060. };
  16061. _worksStudent[i].push(_work);
  16062. _worksStudent2[i].push(_work);
  16063. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16064. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  16065. //选择题
  16066. let _work = {
  16067. userid: b[j].userid,
  16068. ateacher: b[j].ateacher,
  16069. wid: b[j].id,
  16070. works: b[j].content,
  16071. sName: b[j].name,
  16072. type: 16,
  16073. ttype:b[j].ttype,
  16074. time: b[j].time,
  16075. score: b[j].score,
  16076. img: b[j].img,
  16077. likesCount: likesCount,
  16078. commentCount: commentCount,
  16079. isLikes: isLikes,
  16080. commentJson: commentJson,
  16081. aiCode: b[j].aiCode,
  16082. teacherCode: b[j].teacherCode,
  16083. likeJson:likeJson
  16084. };
  16085. _worksStudent[i].push(_work);
  16086. _worksStudent2[i].push(_work);
  16087. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16088. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  16089. //英语口语
  16090. let _work = {
  16091. userid: b[j].userid,
  16092. ateacher: b[j].ateacher,
  16093. wid: b[j].id,
  16094. works: b[j].content,
  16095. sName: b[j].name,
  16096. type: 17,
  16097. ttype:b[j].ttype,
  16098. time: b[j].time,
  16099. score: b[j].score,
  16100. img: b[j].img,
  16101. likesCount: likesCount,
  16102. commentCount: commentCount,
  16103. isLikes: isLikes,
  16104. commentJson: commentJson,
  16105. likeJson:likeJson
  16106. };
  16107. _worksStudent[i].push(_work);
  16108. _worksStudent2[i].push(_work);
  16109. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16110. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  16111. //交互视频
  16112. let _work = {
  16113. userid: b[j].userid,
  16114. ateacher: b[j].ateacher,
  16115. wid: b[j].id,
  16116. works: b[j].content,
  16117. sName: b[j].name,
  16118. type: 14,
  16119. ttype:b[j].ttype,
  16120. time: b[j].time,
  16121. score: b[j].score,
  16122. img: b[j].img,
  16123. likesCount: likesCount,
  16124. commentCount: commentCount,
  16125. isLikes: isLikes,
  16126. commentJson: commentJson,
  16127. likeJson:likeJson
  16128. };
  16129. _worksStudent[i].push(_work);
  16130. _worksStudent2[i].push(_work);
  16131. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16132. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  16133. let _gindex = JSON.parse(b[j].content);
  16134. if (
  16135. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  16136. b[j].userid
  16137. ) != -1
  16138. ) {
  16139. let _work = {
  16140. userid: b[j].userid,
  16141. ateacher: b[j].ateacher,
  16142. wid: b[j].id,
  16143. works: _gindex.url,
  16144. sName: b[j].name,
  16145. type: _gindex.type,
  16146. ttype:b[j].ttype,
  16147. time: b[j].time,
  16148. score: b[j].score,
  16149. img: b[j].img,
  16150. likesCount: likesCount,
  16151. commentCount: commentCount,
  16152. isLikes: isLikes,
  16153. commentJson: commentJson,
  16154. likeJson:likeJson
  16155. };
  16156. _worksStudent[i][_gindex.groupIndex].push(_work);
  16157. _worksStudent2[i][_gindex.groupIndex].push(_work);
  16158. }
  16159. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16160. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  16161. let _work = {
  16162. userid: b[j].userid,
  16163. ateacher: b[j].ateacher,
  16164. wid: b[j].id,
  16165. works: b[j].content,
  16166. sName: b[j].name ? b[j].name : b[j].userid,
  16167. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  16168. ttype:b[j].ttype,
  16169. time: b[j].time,
  16170. score: b[j].score,
  16171. img: b[j].img,
  16172. likesCount: likesCount,
  16173. commentCount: commentCount,
  16174. isLikes: isLikes,
  16175. commentJson: commentJson,
  16176. likeJson:likeJson
  16177. };
  16178. _worksStudent[i].push(_work);
  16179. _worksStudent2[i].push(_work);
  16180. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16181. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  16182. let _work = {
  16183. userid: b[j].userid,
  16184. ateacher: b[j].ateacher,
  16185. wid: b[j].id,
  16186. works: b[j].content,
  16187. sName: b[j].name ? b[j].name : b[j].userid,
  16188. type: 12,
  16189. ttype:b[j].ttype,
  16190. time: b[j].time,
  16191. score: b[j].score,
  16192. img: b[j].img,
  16193. likesCount: likesCount,
  16194. commentCount: commentCount,
  16195. isLikes: isLikes,
  16196. commentJson: commentJson,
  16197. likeJson:likeJson
  16198. };
  16199. _worksStudent[i].push(_work);
  16200. _worksStudent2[i].push(_work);
  16201. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16202. } else if (
  16203. a[i].tool[0] == 57 &&
  16204. b[j].atool == 57 &&
  16205. b[j].type == 12
  16206. ) {
  16207. let _work = {
  16208. userid: b[j].userid,
  16209. ateacher: b[j].ateacher,
  16210. wid: b[j].id,
  16211. works: b[j].content,
  16212. sName: b[j].name ? b[j].name : b[j].userid,
  16213. type: 12,
  16214. ttype:b[j].ttype,
  16215. time: b[j].time,
  16216. score: b[j].score,
  16217. img: b[j].img,
  16218. likesCount: likesCount,
  16219. commentCount: commentCount,
  16220. isLikes: isLikes,
  16221. commentJson: commentJson,
  16222. likeJson:likeJson
  16223. };
  16224. _worksStudent[i].push(_work);
  16225. _worksStudent2[i].push(_work);
  16226. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16227. } else if (
  16228. a[i].tool[0] == 57 &&
  16229. b[j].atool == 57 &&
  16230. b[j].type == 15
  16231. ) {
  16232. let _work = {
  16233. userid: b[j].userid,
  16234. ateacher: b[j].ateacher,
  16235. wid: b[j].id,
  16236. works: b[j].content,
  16237. sName: b[j].name ? b[j].name : b[j].userid,
  16238. type: 15,
  16239. ttype:b[j].ttype,
  16240. time: b[j].time,
  16241. score: b[j].score,
  16242. img: b[j].img,
  16243. likesCount: likesCount,
  16244. commentCount: commentCount,
  16245. isLikes: isLikes,
  16246. commentJson: commentJson,
  16247. likeJson:likeJson
  16248. };
  16249. _worksStudent[i].push(_work);
  16250. _worksStudent2[i].push(_work);
  16251. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16252. }
  16253. }
  16254. }
  16255. if (_worksStudent[i] && _worksStudent[i].length) {
  16256. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  16257. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  16258. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  16259. var scoreA = parseFloat(jscoreA);
  16260. var scoreB = parseFloat(jscoreB);
  16261. if (scoreA == scoreB) {
  16262. return b.likesCount - a.likesCount;
  16263. }
  16264. return scoreB - scoreA;
  16265. });
  16266. if (this.isGroup) {
  16267. for (
  16268. var groupI = 0;
  16269. groupI < this.courseGroup.group.length;
  16270. groupI++
  16271. ) {
  16272. this.courseGroup.group[groupI].works[i] =
  16273. this.courseGroup.group[groupI].works[i].sort(function (
  16274. a,
  16275. b
  16276. ) {
  16277. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  16278. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  16279. var scoreA = parseFloat(jscoreA);
  16280. var scoreB = parseFloat(jscoreB);
  16281. if (scoreA == scoreB) {
  16282. return b.likesCount - a.likesCount;
  16283. }
  16284. return scoreB - scoreA;
  16285. });
  16286. }
  16287. }
  16288. }
  16289. }
  16290. this.timeWorkList = _worksStudent2;
  16291. for (var i = 0; i < a.length; i++) {
  16292. for (var j = 0; j < b.length; j++) {
  16293. var data = b[j];
  16294. if (i == b[j].tool) {
  16295. if (data.type == 2 || data.type == 8) {
  16296. for (var z = 0; z < this.checkJson[i].length; z++) {
  16297. this.checkJson[i][z].checkPerent = [];
  16298. this.checkJson[i][z].right = Math.round(
  16299. (this.checkJson[i][z].rightPerson.length /
  16300. parseInt(_worksStudent[i].length)) *
  16301. 100
  16302. );
  16303. let aaaa = this.checkJson[i][z];
  16304. for (
  16305. var k = 0;
  16306. k < this.checkJson[i][z].checkCount.length;
  16307. k++
  16308. ) {
  16309. this.checkJson[i][z].checkPerent.push(
  16310. Math.round(
  16311. (this.checkJson[i][z].checkCount[k] /
  16312. parseInt(_worksStudent[i].length)) *
  16313. 100
  16314. )
  16315. );
  16316. }
  16317. }
  16318. } else if (data.type == 9) {
  16319. for (var z = 0; z < this.checkJson[i].length; z++) {
  16320. this.checkJson[i][z].checkPerent = [];
  16321. this.checkJson[i][z].right = Math.round(
  16322. (this.checkJson[i][z].rightPerson.length /
  16323. this.checkJson[i][z].checkPerson.length) *
  16324. 100
  16325. );
  16326. }
  16327. }
  16328. }
  16329. }
  16330. }
  16331. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  16332. this.joinGroup(gindex);
  16333. }
  16334. this.worksStudent = _worksStudent;
  16335. this.selectWorksStudent();
  16336. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  16337. this.$nextTick(()=>{
  16338. setTimeout(()=>{
  16339. setTimeout(()=>{
  16340. this.panToolHeight('tool-'+ci);
  16341. }, 500)
  16342. }, 0)
  16343. })
  16344. }
  16345. this.selectSWorksLoading = false
  16346. })
  16347. .catch((err) => {
  16348. this.selectSWorksLoading = false
  16349. console.error(err);
  16350. });
  16351. },
  16352. pngToWhiteBg(file) {
  16353. const _file = file;
  16354. let read = new FileReader();
  16355. read.readAsDataURL(file); // 文件转base64
  16356. return new Promise((resolve, reject) => {
  16357. read.onload = (e) => {
  16358. let img = new Image();
  16359. img.src = e.target.result;
  16360. img.onload = async () => {
  16361. // 生成canvas
  16362. let canvas = document.createElement("canvas");
  16363. let context = canvas.getContext("2d");
  16364. // 绘制图片到canvas上
  16365. canvas.width = img.width;
  16366. canvas.height = img.height;
  16367. // 在canvas绘制前填充白色背景
  16368. context.fillStyle = "#fff";
  16369. context.fillRect(0, 0, canvas.width, canvas.height);
  16370. context.drawImage(img, 0, 0);
  16371. let base64 = canvas.toDataURL(file["type"], 1);
  16372. let newFile = this.dataUrlToFile(base64, _file);
  16373. resolve(newFile);
  16374. };
  16375. };
  16376. });
  16377. },
  16378. dataUrlToFile(dataurl, file) {
  16379. let arr = dataurl.split(","),
  16380. mime = arr[0].match(/:(.*?);/)[1],
  16381. bstr = atob(arr[1]),
  16382. n = bstr.length,
  16383. u8arr = new Uint8Array(n);
  16384. while (n--) {
  16385. u8arr[n] = bstr.charCodeAt(n);
  16386. }
  16387. // return new Blob([u8arr], { type: mime });
  16388. return new File([new Blob([u8arr], { type: mime })], file.name, {
  16389. type: mime,
  16390. });
  16391. },
  16392. async beforeUpload1(event, type, i) {
  16393. // this.$message.success('进入上传')
  16394. var file = "";
  16395. if (type == 5) {
  16396. file = event;
  16397. } else {
  16398. file = event.target.files[0];
  16399. }
  16400. var credentials = {
  16401. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16402. secretAccessKey: "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",
  16403. }; //秘钥形式的登录上传
  16404. window.AWS.config.update(credentials);
  16405. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16406. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16407. var _this = this;
  16408. _this.progress = 0;
  16409. _this.proVisible = true;
  16410. _this.isFinishSize = 0;
  16411. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  16412. var b = [
  16413. "DOC",
  16414. "DOCX",
  16415. "DOCM",
  16416. "DOTM",
  16417. "DOTX",
  16418. "PPTX",
  16419. "PPSX",
  16420. "PPT",
  16421. "PPS",
  16422. "PPTM",
  16423. "POTM",
  16424. "PPAM",
  16425. "POTX",
  16426. "PPSM",
  16427. ];
  16428. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16429. var photoA = [
  16430. "BMP",
  16431. "GIF",
  16432. "PNG",
  16433. "JPEG",
  16434. "JPEG",
  16435. "JPG",
  16436. "TIF",
  16437. "PCX",
  16438. "TGA",
  16439. "EXIF",
  16440. "FPX",
  16441. "SVG",
  16442. "APNG",
  16443. ];
  16444. // if (
  16445. // b.indexOf(
  16446. // file.name
  16447. // .split(".")
  16448. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16449. // ) != -1
  16450. // ) {
  16451. // if (file.size / 1024 / 1024 > 10) {
  16452. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  16453. // return;
  16454. // }
  16455. // } else if (
  16456. // excelA.indexOf(
  16457. // file.name
  16458. // .split(".")
  16459. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16460. // ) != "-1"
  16461. // ) {
  16462. // if (file.size / 1024 / 1024 > 5) {
  16463. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  16464. // return;
  16465. // }
  16466. // }
  16467. if (
  16468. photoA.indexOf(
  16469. file.name
  16470. .split(".")
  16471. [file.name.split(".").length - 1].toLocaleUpperCase()
  16472. ) != -1 &&
  16473. type != 4
  16474. ) {
  16475. // const blob = await imageConversion.compress(file, 0.8)
  16476. file = await this.pngToWhiteBg(file);
  16477. const blob = await imageConversion.compressAccurately(file, 256);
  16478. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16479. file = new File([blob], file.name, { type: file.type });
  16480. }
  16481. if (file) {
  16482. var params = {
  16483. Key:
  16484. file.name.split(".")[0] +
  16485. new Date().getTime() +
  16486. "." +
  16487. file.name.split(".")[file.name.split(".").length - 1],
  16488. ContentType: file.type,
  16489. Body: file,
  16490. "Access-Control-Allow-Credentials": "*",
  16491. ACL: "public-read",
  16492. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16493. var options = {
  16494. // partSize: 2048 * 1024 * 1024,
  16495. partSize: 1024 * 1024 * 1024,
  16496. queueSize: 2,
  16497. leavePartsOnError: true,
  16498. };
  16499. bucket
  16500. .upload(params, options)
  16501. .on("httpUploadProgress", function (evt) {
  16502. //这里可以写进度条
  16503. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16504. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  16505. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  16506. })
  16507. .send(function (err, data) {
  16508. _this.progress = 100;
  16509. _this.isFinishSize = _this.isAllSize;
  16510. setTimeout(() => {
  16511. _this.proVisible = false;
  16512. }, 1000);
  16513. if (err) {
  16514. var a = _this.$refs.upload1.uploadFiles;
  16515. a.splice(a.length - 1, a.length);
  16516. _this.$message.error("上传失败");
  16517. } else {
  16518. // _this.$message.success('上传成功')
  16519. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16520. var c = [
  16521. "AVI",
  16522. "NAVI",
  16523. "MPEG",
  16524. "ASF",
  16525. "MOV",
  16526. "WMV",
  16527. "3GP",
  16528. "RM",
  16529. "RMVB",
  16530. "FLV",
  16531. "F4V",
  16532. "H.264",
  16533. "H.265",
  16534. "REAL VIDEO",
  16535. "MKV",
  16536. "WebM",
  16537. "HDDVD",
  16538. "MP4",
  16539. "MPG",
  16540. "M4V",
  16541. "MGV",
  16542. "OGV",
  16543. "QTM",
  16544. "STR",
  16545. "AMC",
  16546. "DVX",
  16547. "EVO",
  16548. "DAT",
  16549. "OGG",
  16550. "OGM",
  16551. ];
  16552. if (type == 1) {
  16553. _this.studyJuri[0].cover.push({
  16554. name: file.name,
  16555. url: data.Location,
  16556. uid: file.uid,
  16557. });
  16558. if (
  16559. c.indexOf(
  16560. _this.studyJuri[0].cover[0].url
  16561. .split(".")
  16562. [
  16563. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16564. ].toLocaleUpperCase()
  16565. ) != -1
  16566. ) {
  16567. _this.fileType = 2;
  16568. } else if (
  16569. b.indexOf(
  16570. _this.studyJuri[0].cover[0].url
  16571. .split(".")
  16572. [
  16573. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16574. ].toLocaleUpperCase()
  16575. ) != -1
  16576. ) {
  16577. _this.fileType = 1;
  16578. } else if (
  16579. photoA.indexOf(
  16580. _this.studyJuri[0].cover[0].url
  16581. .split(".")
  16582. [
  16583. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16584. ].toLocaleUpperCase()
  16585. ) != -1
  16586. ) {
  16587. _this.fileType = 0;
  16588. } else {
  16589. _this.fileType = 3;
  16590. }
  16591. _this.imgChange(null, null, type);
  16592. } else if (type == 2) {
  16593. _this.upToolImg = data.Location;
  16594. _this.imgChange(null, null, type);
  16595. _this.addCourseWorks(i);
  16596. } else if (type == 4) {
  16597. _this.addPz("3", data.Location);
  16598. } else if (type == 5) {
  16599. _this.addImgDrawImG(data.Location);
  16600. } else if (type == 6) {
  16601. var _ftype = 1;
  16602. if (
  16603. c.indexOf(
  16604. data.Location.split(".")[
  16605. data.Location.split(".").length - 1
  16606. ].toLocaleUpperCase()
  16607. ) != -1
  16608. ) {
  16609. _ftype = 5;
  16610. } else if (
  16611. b.indexOf(
  16612. data.Location.split(".")[
  16613. data.Location.split(".").length - 1
  16614. ].toLocaleUpperCase()
  16615. ) != -1
  16616. ) {
  16617. _ftype = 4;
  16618. } else {
  16619. _ftype = 1;
  16620. }
  16621. _this.plworkFile.push({
  16622. name: file.name,
  16623. url: data.Location,
  16624. uid: file.uid,
  16625. fileType: _ftype,
  16626. username:
  16627. _this.plworkFile.length > 10
  16628. ? _this.plworkFile.length + 1
  16629. : "0" + (_this.plworkFile.length + 1),
  16630. });
  16631. } else if (type == 7) {
  16632. _this.addCourseWorksGong(i, data.Location, 32);
  16633. } else if (type == 8) {
  16634. _this.addCourseWorksGong(i, data.Location, 57);
  16635. }
  16636. _this.imgChange(null, null, type);
  16637. console.log(data.Location);
  16638. // _this.$message.success('上传成功'+data.Location)
  16639. }
  16640. });
  16641. }
  16642. },
  16643. async beforeUpload3(event, type, i) {
  16644. // this.$message.success('进入上传')
  16645. let file = "";
  16646. let cfindex2 = 0;
  16647. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  16648. file = event.target.files[cfindex];
  16649. var credentials = {
  16650. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16651. secretAccessKey: "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",
  16652. }; //秘钥形式的登录上传
  16653. window.AWS.config.update(credentials);
  16654. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16655. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16656. var _this = this;
  16657. // _this.progress = 0;
  16658. _this.proVisible2 = true;
  16659. var b = [
  16660. "DOC",
  16661. "DOCX",
  16662. "DOCM",
  16663. "DOTM",
  16664. "DOTX",
  16665. "PPTX",
  16666. "PPSX",
  16667. "PPT",
  16668. "PPS",
  16669. "PPTM",
  16670. "POTM",
  16671. "PPAM",
  16672. "POTX",
  16673. "PPSM",
  16674. ];
  16675. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16676. var photoA = [
  16677. "BMP",
  16678. "GIF",
  16679. "PNG",
  16680. "JPEG",
  16681. "JPG",
  16682. "TIF",
  16683. "PCX",
  16684. "TGA",
  16685. "EXIF",
  16686. "FPX",
  16687. "SVG",
  16688. "APNG",
  16689. ];
  16690. if (
  16691. photoA.indexOf(
  16692. file.name
  16693. .split(".")
  16694. [file.name.split(".").length - 1].toLocaleUpperCase()
  16695. ) != -1 &&
  16696. type != 4
  16697. ) {
  16698. // const blob = await imageConversion.compress(file, 0.8)
  16699. file = await this.pngToWhiteBg(file);
  16700. const blob = await imageConversion.compressAccurately(file, 256);
  16701. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16702. file = new File([blob], file.name, { type: file.type });
  16703. }
  16704. if (file) {
  16705. var params = {
  16706. Key:
  16707. file.name.split(".")[0] +
  16708. new Date().getTime() +
  16709. "." +
  16710. file.name.split(".")[file.name.split(".").length - 1],
  16711. ContentType: file.type,
  16712. Body: file,
  16713. "Access-Control-Allow-Credentials": "*",
  16714. ACL: "public-read",
  16715. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16716. var options = {
  16717. // partSize: 2048 * 1024 * 1024,
  16718. partSize: 1024 * 1024 * 1024,
  16719. queueSize: 2,
  16720. leavePartsOnError: true,
  16721. };
  16722. bucket
  16723. .upload(params, options)
  16724. .on("httpUploadProgress", function (evt) {
  16725. //这里可以写进度条
  16726. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16727. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16728. })
  16729. .send(function (err, data) {
  16730. // _this.progress = 100;
  16731. cfindex2++;
  16732. setTimeout(() => {
  16733. if (
  16734. cfindex2 == event.target.files.length - 1 ||
  16735. cfindex2 > event.target.files.length - 1
  16736. ) {
  16737. _this.proVisible2 = false;
  16738. }
  16739. }, 1000);
  16740. if (err) {
  16741. var a = _this.$refs.upload1.uploadFiles;
  16742. a.splice(a.length - 1, a.length);
  16743. _this.$message.error("上传失败");
  16744. } else {
  16745. // _this.$message.success('上传成功')
  16746. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16747. var c = [
  16748. "AVI",
  16749. "NAVI",
  16750. "MPEG",
  16751. "ASF",
  16752. "MOV",
  16753. "WMV",
  16754. "3GP",
  16755. "RM",
  16756. "RMVB",
  16757. "FLV",
  16758. "F4V",
  16759. "H.264",
  16760. "H.265",
  16761. "REAL VIDEO",
  16762. "MKV",
  16763. "WebM",
  16764. "HDDVD",
  16765. "MP4",
  16766. "MPG",
  16767. "M4V",
  16768. "MGV",
  16769. "OGV",
  16770. "QTM",
  16771. "STR",
  16772. "AMC",
  16773. "DVX",
  16774. "EVO",
  16775. "DAT",
  16776. "OGG",
  16777. "OGM",
  16778. ];
  16779. if (type == 1) {
  16780. _this.studyJuri[0].cover.push({
  16781. name: file.name,
  16782. url: data.Location,
  16783. uid: file.uid,
  16784. });
  16785. if (
  16786. c.indexOf(
  16787. _this.studyJuri[0].cover[0].url
  16788. .split(".")
  16789. [
  16790. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16791. ].toLocaleUpperCase()
  16792. ) != -1
  16793. ) {
  16794. _this.fileType = 2;
  16795. } else if (
  16796. b.indexOf(
  16797. _this.studyJuri[0].cover[0].url
  16798. .split(".")
  16799. [
  16800. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16801. ].toLocaleUpperCase()
  16802. ) != -1
  16803. ) {
  16804. _this.fileType = 1;
  16805. } else {
  16806. _this.fileType = 0;
  16807. }
  16808. _this.imgChange(null, null, type);
  16809. } else if (type == 2) {
  16810. _this.upToolImg = data.Location;
  16811. _this.imgChange(null, null, type);
  16812. _this.addCourseWorks(i);
  16813. } else if (type == 4) {
  16814. _this.addPz("3", data.Location);
  16815. } else if (type == 5) {
  16816. _this.addImgDrawImG(data.Location);
  16817. } else if (type == 6) {
  16818. var _ftype = 1;
  16819. if (
  16820. c.indexOf(
  16821. data.Location.split(".")[
  16822. data.Location.split(".").length - 1
  16823. ].toLocaleUpperCase()
  16824. ) != -1
  16825. ) {
  16826. _ftype = 5;
  16827. } else if (
  16828. b.indexOf(
  16829. data.Location.split(".")[
  16830. data.Location.split(".").length - 1
  16831. ].toLocaleUpperCase()
  16832. ) != -1
  16833. ) {
  16834. _ftype = 4;
  16835. } else {
  16836. _ftype = 1;
  16837. }
  16838. _this.plworkFile.push({
  16839. name: file.name,
  16840. url: data.Location,
  16841. uid: file.uid,
  16842. fileType: _ftype,
  16843. username:
  16844. _this.plworkFile.length + 1 > 9
  16845. ? _this.plworkFile.length + 1
  16846. : "0" + (_this.plworkFile.length + 1),
  16847. });
  16848. }
  16849. _this.imgChange(null, null, type);
  16850. console.log(data.Location);
  16851. // _this.$message.success('上传成功'+data.Location)
  16852. }
  16853. });
  16854. }
  16855. }
  16856. },
  16857. beforeUpload2(event, type) {
  16858. var file = event.target.files[0];
  16859. var credentials = {
  16860. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16861. secretAccessKey: "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",
  16862. }; //秘钥形式的登录上传
  16863. window.AWS.config.update(credentials);
  16864. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16865. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16866. var _this = this;
  16867. _this.progress = 0;
  16868. _this.proVisible = true;
  16869. if (file) {
  16870. var params = {
  16871. Key:
  16872. file.name.split(".")[0] +
  16873. new Date().getTime() +
  16874. "." +
  16875. file.name.split(".")[file.name.split(".").length - 1],
  16876. ContentType: file.type,
  16877. Body: file,
  16878. "Access-Control-Allow-Credentials": "*",
  16879. ACL: "public-read",
  16880. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16881. var options = {
  16882. partSize: 2048 * 1024 * 1024,
  16883. queueSize: 2,
  16884. leavePartsOnError: true,
  16885. };
  16886. bucket
  16887. .upload(params, options)
  16888. .on("httpUploadProgress", function (evt) {
  16889. //这里可以写进度条
  16890. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16891. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16892. })
  16893. .send(function (err, data) {
  16894. _this.progress = 100;
  16895. setTimeout(() => {
  16896. _this.proVisible = false;
  16897. }, 1000);
  16898. if (err) {
  16899. var a = _this.$refs.upload1.uploadFiles;
  16900. a.splice(a.length - 1, a.length);
  16901. _this.$message.error("上传失败");
  16902. } else {
  16903. if (type == 2) {
  16904. _this.studyJuri[0].upVedio.push({
  16905. name: file.name,
  16906. url: data.Location,
  16907. uid: file.uid,
  16908. });
  16909. _this.imgChange(null, null, type);
  16910. } else if (type == 3) {
  16911. _this.studyJuri[0].upFile.push({
  16912. name: file.name,
  16913. url: data.Location,
  16914. uid: file.uid,
  16915. });
  16916. _this.imgChange(null, null, type);
  16917. }
  16918. console.log(data.Location);
  16919. }
  16920. });
  16921. }
  16922. },
  16923. allScrell() {
  16924. window.topU.postMessage({ allScreen: this.screenType }, "*");
  16925. },
  16926. nextOrpreSteps(t) {
  16927. if (this.IsFollow && this.tType == 2) {
  16928. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16929. return;
  16930. }
  16931. var b = this.chapInfoList.length - 1;
  16932. if (t == 0) {
  16933. if (this.courseType == 0) {
  16934. if (this.taskCount == 0) {
  16935. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16936. if (this.IsLookOpen) {
  16937. if (
  16938. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16939. ) {
  16940. if (
  16941. this.courseDetail.userid != this.userid &&
  16942. (!this.courseDetail.course_teacher ||
  16943. (this.courseDetail.course_teacher &&
  16944. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16945. ) {
  16946. this.$message.error("任务未解锁");
  16947. } else {
  16948. this.$message.error("上一任务未解锁");
  16949. }
  16950. return;
  16951. }
  16952. }
  16953. this.navList[this.courseType].isOpen = false;
  16954. this.courseType = b;
  16955. this.taskCount =
  16956. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16957. .length - 1;
  16958. this.navList[this.courseType].isOpen = true;
  16959. } else {
  16960. this.taskCount--;
  16961. }
  16962. } else {
  16963. if (this.taskCount == 0) {
  16964. this.navList[this.courseType].isOpen = false;
  16965. this.courseType--;
  16966. this.taskCount =
  16967. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16968. .length - 1;
  16969. this.navList[this.courseType].isOpen = true;
  16970. } else {
  16971. this.taskCount--;
  16972. }
  16973. }
  16974. } else {
  16975. if (this.courseType == b) {
  16976. if (
  16977. this.taskCount ==
  16978. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16979. 1
  16980. ) {
  16981. this.navList[this.courseType].isOpen = false;
  16982. this.courseType = 0;
  16983. this.taskCount = 0;
  16984. this.navList[this.courseType].isOpen = true;
  16985. } else {
  16986. var bbb = parseInt(this.taskCount) + 1;
  16987. if (
  16988. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16989. .isLook &&
  16990. this.courseDetail.userid != this.userid &&
  16991. (!this.courseDetail.course_teacher ||
  16992. (this.courseDetail.course_teacher &&
  16993. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16994. this.IsLookOpen
  16995. ) {
  16996. this.$message.error("任务未解锁");
  16997. return;
  16998. }
  16999. this.taskCount++;
  17000. if (this.IsLookOpen) {
  17001. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17002. this.taskCount
  17003. ].isLook = true;
  17004. this.addCourseState(3);
  17005. }
  17006. }
  17007. } else {
  17008. if (
  17009. this.taskCount ==
  17010. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  17011. 1
  17012. ) {
  17013. var bbb = parseInt(this.courseType) + 1;
  17014. if (
  17015. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  17016. this.courseDetail.userid != this.userid &&
  17017. (!this.courseDetail.course_teacher ||
  17018. (this.courseDetail.course_teacher &&
  17019. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  17020. this.IsLookOpen
  17021. ) {
  17022. this.$message.error("任务未解锁");
  17023. return;
  17024. }
  17025. this.navList[this.courseType].isOpen = false;
  17026. this.courseType++;
  17027. this.taskCount = 0;
  17028. this.navList[this.courseType].isOpen = true;
  17029. } else {
  17030. var bbb = parseInt(this.taskCount) + 1;
  17031. if (
  17032. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  17033. .isLook &&
  17034. this.courseDetail.userid != this.userid &&
  17035. (!this.courseDetail.course_teacher ||
  17036. (this.courseDetail.course_teacher &&
  17037. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  17038. this.IsLookOpen
  17039. ) {
  17040. this.$message.error("任务未解锁");
  17041. return;
  17042. }
  17043. this.taskCount++;
  17044. }
  17045. if (this.IsLookOpen) {
  17046. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17047. this.taskCount
  17048. ].isLook = true;
  17049. this.addCourseState(3);
  17050. }
  17051. }
  17052. // if (
  17053. // this.taskCount ==
  17054. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  17055. // ) {
  17056. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  17057. // } else {
  17058. // this.taskCount++;
  17059. // }
  17060. }
  17061. document.scrollingElement.scrollTop = 0;
  17062. // this.showType = 7;
  17063. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17064. // if (this.vedio[this.taskCount].length > 0) {
  17065. // var a =
  17066. // document.getElementsByClassName("box_course")[this.taskCount]
  17067. // .offsetHeight;
  17068. // document.getElementsByClassName("vedioList")[
  17069. // this.taskCount
  17070. // ].style.height = a + "px";
  17071. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  17072. // a - 40 + "px";
  17073. // }
  17074. this.isNoHomeWork = false;
  17075. (this.studyJuri = [
  17076. {
  17077. content: "",
  17078. cover: [],
  17079. upVedio: [],
  17080. upFile: [],
  17081. },
  17082. ]),
  17083. (this.radio = []);
  17084. this.isClickNav = "";
  17085. this.selectPz();
  17086. this.getHomeWork();
  17087. this.getCourseDetail(2);
  17088. this.$forceUpdate();
  17089. if ((this.courseDetail.userid == this.userid ||
  17090. (this.courseDetail.course_teacher &&
  17091. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  17092. this.setCTask();
  17093. }
  17094. },
  17095. openTask(s, n, i) {
  17096. if (this.IsFollow && this.tType == 2) {
  17097. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  17098. return;
  17099. }
  17100. if (this.IsLookOpen &&
  17101. this.courseDetail.userid != this.userid &&
  17102. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  17103. if (
  17104. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  17105. this.courseDetail.userid != this.userid &&
  17106. (!this.courseDetail.course_teacher ||
  17107. (this.courseDetail.course_teacher &&
  17108. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  17109. ) {
  17110. this.$message.error("任务未解锁");
  17111. return;
  17112. }
  17113. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  17114. if (
  17115. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  17116. .isLook
  17117. ) {
  17118. this.$message.error("上一任务未解锁");
  17119. return;
  17120. }
  17121. } else if (s > this.courseType) {
  17122. if (n > 0) {
  17123. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  17124. this.$message.error("上一任务未解锁");
  17125. return;
  17126. }
  17127. } else {
  17128. if (
  17129. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  17130. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  17131. ].isLook
  17132. ) {
  17133. this.$message.error("上一任务未解锁");
  17134. return;
  17135. }
  17136. }
  17137. }
  17138. }
  17139. if (this.navList[s].task[n].isOpen == true) {
  17140. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  17141. return;
  17142. }
  17143. let flag = this.courseType==s;
  17144. this.courseType = s;
  17145. this.navId = i;
  17146. this.taskCount = n;
  17147. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  17148. this.navList[this.courseType].task[this.taskCount].isOpen =
  17149. !this.navList[this.courseType].task[this.taskCount].isOpen;
  17150. if (this.IsLookOpen) {
  17151. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17152. this.taskCount
  17153. ].isLook = true;
  17154. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  17155. this.addCourseState(3,yym);
  17156. }
  17157. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  17158. this.isCloseList[ci].isClose = 0;
  17159. this.isCloseList[ci].isCloseBoolean = false;
  17160. this.$nextTick(()=>{
  17161. setTimeout(()=>{
  17162. setTimeout(()=>{
  17163. this.panToolHeight('tool-'+ci);
  17164. }, 0)
  17165. }, 0)
  17166. })
  17167. }
  17168. // this.showType = 7;
  17169. this.isNoHomeWork = false;
  17170. (this.studyJuri = [
  17171. {
  17172. content: "",
  17173. cover: [],
  17174. upVedio: [],
  17175. upFile: [],
  17176. },
  17177. ]),
  17178. (this.radio = []);
  17179. document.scrollingElement.scrollTop = 0;
  17180. // setTimeout(() => {
  17181. // let a = document.getElementById(i);
  17182. // if (a.offsetTop - 110 == 0) {
  17183. // window.scrollTo(0, 0);
  17184. // } else {
  17185. // window.scrollTo(0, a.offsetTop);
  17186. // }
  17187. // }, 0);
  17188. for (var z = 0; z < this.navList.length; z++) {
  17189. for (var q = 0; q < this.navList[z].task.length; q++) {
  17190. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  17191. this.navList[z].task[q].tool[w].isTool = false;
  17192. }
  17193. }
  17194. }
  17195. this.selectPz();
  17196. this.getHomeWork();
  17197. this.getCourseDetail(2);
  17198. if ((this.courseDetail.userid == this.userid ||
  17199. (this.courseDetail.course_teacher &&
  17200. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  17201. this.setCTask();
  17202. }
  17203. if(flag){
  17204. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  17205. }else{
  17206. this.insertMemorandum(`进入<span class="variable">阶段${s+1}${this.navList[s].dyName?':'+this.navList[s].dyName:''}</span>→<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  17207. }
  17208. },
  17209. get(i) {
  17210. if (this.IsFollow && this.tType == 2) {
  17211. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  17212. return;
  17213. }
  17214. // for(var k=0;k<this.navList.length;k++){
  17215. // this.navList[k].isOpen = false;
  17216. // }
  17217. // this.navList[i].isOpen = true;
  17218. this.navList[i].isOpen = !this.navList[i].isOpen;
  17219. if (this.navList[i].isOpen) {
  17220. this.openTask(i, 0, i + "-0");
  17221. }
  17222. },
  17223. addQuestion() {
  17224. this.answerList.push({
  17225. answerTitle: this.answerQ,
  17226. answer: this.questionAnswer,
  17227. });
  17228. let params = [
  17229. {
  17230. uid: this.userid,
  17231. cid: this.id,
  17232. stage: this.courseType,
  17233. task: this.taskCount,
  17234. tool: this.toolindex,
  17235. content: JSON.stringify(this.answerList),
  17236. type: 3,
  17237. },
  17238. ];
  17239. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17240. this.homeWorkLoading = true
  17241. this.ajax
  17242. .post(this.$store.state.api + "addCourseWorks", params)
  17243. .then((res) => {
  17244. this.$message({
  17245. message: "提交成功",
  17246. type: "success",
  17247. });
  17248. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, "success")
  17249. setTimeout(() => {
  17250. this.homeWorkLoading = false
  17251. }, 500);
  17252. this.answerList = [];
  17253. this.answerDialogVisible = false;
  17254. this.selectStudent();
  17255. this.selectSWorks();
  17256. this.selectSLook();
  17257. })
  17258. .catch((err) => {
  17259. this.$message.error("提交失败");
  17260. console.error(err);
  17261. setTimeout(() => {
  17262. this.homeWorkLoading = false
  17263. }, 500);
  17264. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
  17265. });
  17266. },
  17267. addQuestionTeacher() {
  17268. this.answerList.push({
  17269. answerTitle: this.answerQ,
  17270. answer: this.questionAnswer,
  17271. });
  17272. let params = [
  17273. {
  17274. uid: this.sStudent.userid,
  17275. cid: this.id,
  17276. stage: this.courseType,
  17277. task: this.taskCount,
  17278. tool: this.toolindex,
  17279. content: JSON.stringify(this.answerList),
  17280. type: 3,
  17281. ateacher: this.userid,
  17282. },
  17283. ];
  17284. this.ajax
  17285. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  17286. .then((res) => {
  17287. this.$message({
  17288. message: "提交成功",
  17289. type: "success",
  17290. });
  17291. this.answerList = [];
  17292. this.questionAnswer = "";
  17293. this.answerDialogVisibleTeacher = false;
  17294. this.selectStudent();
  17295. this.selectSWorks();
  17296. this.selectSLook();
  17297. })
  17298. .catch((err) => {
  17299. this.$message.error("提交失败");
  17300. console.error(err);
  17301. });
  17302. },
  17303. refreshCourse() {
  17304. // window.location.reload();
  17305. this.navList = [];
  17306. this.getCourseDetail(1);
  17307. },
  17308. getCourseDetail(type, gindex) {
  17309. let loading;
  17310. if (type != 2) {
  17311. loading = this.$loading.service({
  17312. background: "rgba(255, 255, 255, 0.7)",
  17313. target: document.querySelector(".student_table"),
  17314. });
  17315. }
  17316. this.downLoading = false
  17317. // this.navList[0].isOpen = false;
  17318. // this.navList[this.courseType].isOpen = true;
  17319. // this.courseType = this.courseTypeLine;
  17320. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17321. let params = {
  17322. courseId: this.id,
  17323. };
  17324. this.ajax
  17325. .get(this.$store.state.api + "selectCourseDetail3", params)
  17326. .then((res) => {
  17327. if ((this.courseDetail.userid == this.userid ||
  17328. (this.courseDetail.course_teacher &&
  17329. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  17330. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  17331. }
  17332. if (type != 2) {
  17333. loading.close();
  17334. if (
  17335. this.courseType >
  17336. JSON.parse(res.data[0][0].chapters).length - 1
  17337. ) {
  17338. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  17339. }
  17340. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17341. .chapterInfo[0].taskJson;
  17342. var b = [
  17343. "AVI",
  17344. "NAVI",
  17345. "MPEG",
  17346. "ASF",
  17347. "MOV",
  17348. "WMV",
  17349. "3GP",
  17350. "RM",
  17351. "RMVB",
  17352. "FLV",
  17353. "F4V",
  17354. "H.264",
  17355. "H.265",
  17356. "REAL VIDEO",
  17357. "MKV",
  17358. "WebM",
  17359. "HDDVD",
  17360. "MP4",
  17361. "MPG",
  17362. "M4V",
  17363. "MGV",
  17364. "OGV",
  17365. "QTM",
  17366. "STR",
  17367. "AMC",
  17368. "DVX",
  17369. "EVO",
  17370. "DAT",
  17371. "OGG",
  17372. "OGM",
  17373. "MP3",
  17374. ];
  17375. let _chapterData = [];
  17376. for (var i = 0; i < a.length; i++) {
  17377. var c = a[i].chapterData;
  17378. this.vedio[i] = [];
  17379. this.textList[i] = [];
  17380. this.lineList[i] = [];
  17381. this.chapToolList[i] = [];
  17382. this.file[i] = [];
  17383. this.fileC[i] = [];
  17384. _chapterData[i] = c.filter((el) => {
  17385. return el.type != 12;
  17386. });
  17387. this.fileC[i] = c.filter((el) => {
  17388. return el.type == 12;
  17389. });
  17390. if (this.tType == 2) {
  17391. if (this.fileC[i].length) {
  17392. let yym1 = this.fileC[i].filter(e=>{
  17393. if(!converter(e.name).includes(converter("教案"))){
  17394. return e
  17395. }
  17396. })
  17397. this.fileC[i] = yym1
  17398. }
  17399. }
  17400. // else if (c[j].type == 12) {
  17401. // this.fileC[i].push(c[j]);
  17402. // }
  17403. for (var j = 0; j < c.length; j++) {
  17404. if (c[j].type == 7) {
  17405. this.chapToolList[i].push(c[j]);
  17406. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  17407. this.lineList[i].push(c[j]);
  17408. } else if (c[j].type == 6) {
  17409. this.textList[i].push(c[j]);
  17410. } else {
  17411. if (
  17412. b.indexOf(
  17413. c[j].url
  17414. .split(".")
  17415. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17416. ) != -1
  17417. ) {
  17418. this.vedio[i].push(c[j]);
  17419. } else {
  17420. this.file[i].push(c[j]);
  17421. }
  17422. }
  17423. }
  17424. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17425. d.sources[0].src =
  17426. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17427. this.playerO[i] = d;
  17428. }
  17429. this.courseDetail = res.data[0][0];
  17430. if(this.tType == 2){
  17431. this.tcid = this.arrayToArray(
  17432. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17433. this.classId ? this.classId.split(",") : []
  17434. ).join(",");
  17435. }else{
  17436. this.tcid = this.arrayToArray(
  17437. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17438. this.tcid2 ? this.tcid2.split(",") : []
  17439. ).join(",");
  17440. }
  17441. this.evalua = res.data[0][0].evaId;
  17442. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  17443. this.courseType
  17444. ];
  17445. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17446. if (this.tcid && res.data[1].length) {
  17447. let _inviteA = [];
  17448. for (var ik = 0; ik < res.data[1].length; ik++) {
  17449. _inviteA.push({
  17450. cid: res.data[1][ik].classid,
  17451. ic: res.data[1][ik].code,
  17452. });
  17453. }
  17454. for (var ik = 0; ik < _inviteA.length; ik++) {
  17455. if (
  17456. this.arrayToArray(
  17457. _inviteA[ik].cid.split(","),
  17458. this.tcid.split(",")
  17459. ).length
  17460. ) {
  17461. this.inviteCode = _inviteA[ik].ic;
  17462. break;
  17463. }
  17464. }
  17465. }
  17466. for (var l = 0; l < this.chapInfoList.length; l++) {
  17467. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17468. for (var m = 0; m < w.length; m++) {
  17469. w[m].id = l + "-" + m;
  17470. }
  17471. }
  17472. let taskCount = 0;
  17473. if (
  17474. _chapterData[taskCount].length &&
  17475. _chapterData[taskCount][0].type == 2
  17476. ) {
  17477. this.showType = 0;
  17478. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  17479. } else {
  17480. if (_chapterData[taskCount].length > 0) {
  17481. let _url = _chapterData[taskCount][0].url;
  17482. if (
  17483. _chapterData[taskCount][0].type == 8 ||
  17484. _chapterData[taskCount][0].type == 14 ||
  17485. _chapterData[taskCount][0].type == 15
  17486. ) {
  17487. this.showType = 2;
  17488. if (
  17489. _url.indexOf("https://") == -1 &&
  17490. _url.indexOf("http://") == -1
  17491. ) {
  17492. _url = "https://" + _url;
  17493. }
  17494. this.pptImgUrl1 = _url;
  17495. } else if (_chapterData[taskCount][0].type == 3) {
  17496. if (
  17497. _url
  17498. .split(".")
  17499. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17500. ) {
  17501. this.showType = 3;
  17502. this.pptImgUrl1 = _url;
  17503. } else if (
  17504. this.isAssetTypeAnImage(
  17505. _url
  17506. .split(".")
  17507. [_url.split(".").length - 1].toLocaleLowerCase()
  17508. )
  17509. ) {
  17510. this.showType = 4;
  17511. this.pptImgUrl1 = _url;
  17512. } else {
  17513. this.showType = 2;
  17514. this.pptImgUrl1 =
  17515. "https://view.officeapps.live.com/op/view.aspx?src=" +
  17516. encodeURIComponent(_url);
  17517. }
  17518. } else if (_chapterData[taskCount][0].type == 13) {
  17519. this.showType = 4;
  17520. this.pptImgUrl1 = _url;
  17521. } else if (_chapterData[taskCount][0].type == 6) {
  17522. this.showType = 1;
  17523. this.text = this.textList[taskCount][0];
  17524. } else if (_chapterData[taskCount][0].type == 16) {
  17525. this.showType = 16;
  17526. this.pptImgUrl1 = _url;
  17527. } else if (_chapterData[taskCount][0].type == 17) {
  17528. this.showType = 16;
  17529. this.pptImgUrl1 = _url;
  17530. }
  17531. }
  17532. }
  17533. this.isClickNav = 0;
  17534. if (
  17535. !_chapterData[taskCount].length ||
  17536. _chapterData[taskCount][0].type == 12
  17537. ) {
  17538. this.isClickNav = "";
  17539. this.showType = "";
  17540. }
  17541. if (this.tType == 2) {
  17542. _chapterData.forEach((e,i)=>{
  17543. if (e.length) {
  17544. let yym = e.filter(k=>{
  17545. if(!converter(k.name).includes(converter("教案"))){
  17546. return k
  17547. }
  17548. })
  17549. _chapterData[i] = yym
  17550. }
  17551. })
  17552. }
  17553. this.vChapterData = _chapterData;
  17554. } else {
  17555. // this.showType = 0;
  17556. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17557. .chapterInfo[0].taskJson;
  17558. var b = [
  17559. "AVI",
  17560. "NAVI",
  17561. "MPEG",
  17562. "ASF",
  17563. "MOV",
  17564. "WMV",
  17565. "3GP",
  17566. "RM",
  17567. "RMVB",
  17568. "FLV",
  17569. "F4V",
  17570. "H.264",
  17571. "H.265",
  17572. "REAL VIDEO",
  17573. "MKV",
  17574. "WebM",
  17575. "HDDVD",
  17576. "MP4",
  17577. "MPG",
  17578. "M4V",
  17579. "MGV",
  17580. "OGV",
  17581. "QTM",
  17582. "STR",
  17583. "AMC",
  17584. "DVX",
  17585. "EVO",
  17586. "DAT",
  17587. "OGG",
  17588. "OGM",
  17589. "MP3",
  17590. ];
  17591. let _chapterData = [];
  17592. for (var i = 0; i < a.length; i++) {
  17593. var c = a[i].chapterData;
  17594. this.vedio[i] = [];
  17595. this.textList[i] = [];
  17596. this.lineList[i] = [];
  17597. this.chapToolList[i] = [];
  17598. this.file[i] = [];
  17599. this.fileC[i] = [];
  17600. _chapterData[i] = c.filter((el) => {
  17601. return el.type != 12;
  17602. });
  17603. this.fileC[i] = c.filter((el) => {
  17604. return el.type == 12;
  17605. });
  17606. if (this.tType == 2) {
  17607. if (this.fileC[i].length) {
  17608. let yym1 = this.fileC[i].filter(e=>{
  17609. if(!converter(e.name).includes(converter("教案"))){
  17610. return e
  17611. }
  17612. })
  17613. this.fileC[i] = yym1
  17614. }
  17615. }
  17616. for (var j = 0; j < c.length; j++) {
  17617. if (c[j].type == 7) {
  17618. this.chapToolList[i].push(c[j]);
  17619. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  17620. this.lineList[i].push(c[j]);
  17621. } else if (c[j].type == 6) {
  17622. this.textList[i].push(c[j]);
  17623. } else {
  17624. if (
  17625. b.indexOf(
  17626. c[j].url
  17627. .split(".")
  17628. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17629. ) != -1
  17630. ) {
  17631. this.vedio[i].push(c[j]);
  17632. } else {
  17633. this.file[i].push(c[j]);
  17634. }
  17635. }
  17636. }
  17637. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17638. d.sources[0].src =
  17639. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17640. this.playerO[i] = d;
  17641. }
  17642. let taskCount = 0;
  17643. if (
  17644. _chapterData[taskCount].length &&
  17645. _chapterData[taskCount][0].type == 2
  17646. ) {
  17647. // this.showType = 0;
  17648. // this.pptImgUrl1 = _chapterData[taskCount][0].url;
  17649. } else {
  17650. if (_chapterData[taskCount].length > 0) {
  17651. let _url = _chapterData[taskCount][0].url;
  17652. if (
  17653. _chapterData[taskCount][0].type == 8 ||
  17654. _chapterData[taskCount][0].type == 14||
  17655. _chapterData[taskCount][0].type == 15
  17656. ) {
  17657. // this.showType = 2;
  17658. if (
  17659. _url.indexOf("https://") == -1 &&
  17660. _url.indexOf("http://") == -1
  17661. ) {
  17662. _url = "https://" + _url;
  17663. }
  17664. // this.pptImgUrl1 = _url;
  17665. } else if (_chapterData[taskCount][0].type == 3) {
  17666. if (
  17667. _url
  17668. .split(".")
  17669. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17670. ) {
  17671. // this.showType = 3;
  17672. // this.pptImgUrl1 = _url;
  17673. } else if (
  17674. this.isAssetTypeAnImage(
  17675. _url
  17676. .split(".")
  17677. [_url.split(".").length - 1].toLocaleLowerCase()
  17678. )
  17679. ) {
  17680. // this.showType = 4;
  17681. // this.pptImgUrl1 = _url;
  17682. } else {
  17683. // this.showType = 2;
  17684. // this.pptImgUrl1 =
  17685. // "https://view.officeapps.live.com/op/view.aspx?src=" +
  17686. // encodeURIComponent(_url);
  17687. }
  17688. } else if (_chapterData[taskCount][0].type == 13) {
  17689. // this.showType = 4;
  17690. // this.pptImgUrl1 = _url;
  17691. } else if (_chapterData[taskCount][0].type == 6) {
  17692. this.showType = 1;
  17693. this.text = this.textList[taskCount][0];
  17694. } else if (_chapterData[taskCount][0].type == 16) {
  17695. this.showType = 16;
  17696. this.pptImgUrl1 = _url;
  17697. } else if (_chapterData[taskCount][0].type == 17) {
  17698. this.showType = 16;
  17699. this.pptImgUrl1 = _url;
  17700. }
  17701. }
  17702. }
  17703. this.isClickNav = 0;
  17704. if (
  17705. !_chapterData[taskCount].length ||
  17706. _chapterData[taskCount][0].type == 12
  17707. ) {
  17708. this.isClickNav = "";
  17709. // this.showType = "";
  17710. }
  17711. if (this.tType == 2) {
  17712. _chapterData.forEach((e,i)=>{
  17713. if (e.length) {
  17714. let yym = e.filter(k=>{
  17715. if(!converter(k.name).includes(converter("教案"))){
  17716. return k
  17717. }
  17718. })
  17719. _chapterData[i] = yym
  17720. }
  17721. })
  17722. }
  17723. this.vChapterData = _chapterData;
  17724. this.$forceUpdate();
  17725. }
  17726. // else {
  17727. // this.courseDetail = res.data[0][0];
  17728. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17729. // }
  17730. // 判断进入课程是否是创建老师,如果去创建老师,就自动开启下面两个按钮
  17731. if (type == 10) {
  17732. console.log('this.courseDetail.userid',this.courseDetail.userid);
  17733. console.log('this.userid',this.userid);
  17734. if (this.courseDetail.userid == this.userid) {
  17735. // 开局关闭学生查看内容
  17736. this.StulookMode(true)
  17737. // 开局打开跟随模式
  17738. this.followingMode(true)
  17739. }
  17740. }
  17741. let _this = this;
  17742. if (_this.timer) {
  17743. clearInterval(_this.timer);
  17744. _this.timer = null;
  17745. }
  17746. if (_this.tcid) {
  17747. _this.getCourseGroup(gindex);
  17748. } else {
  17749. _this.selectSWorks(gindex);
  17750. }
  17751. _this.selectStudent();
  17752. _this.selectSLook();
  17753. _this.getPick();
  17754. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17755. // _this.setCTask();
  17756. // }
  17757. if (_this.dialogVisibleGroup) {
  17758. _this.groupJson =
  17759. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17760. _this.taskCount
  17761. ].toolChoose[_this.toolindex].groupJson;
  17762. }
  17763. _this.$nextTick(() => {
  17764. setTimeout(() => {
  17765. _this.checkEva();
  17766. }, 1000);
  17767. });
  17768. _this.timer = setInterval(function () {
  17769. // _this.getCourseDetail(2);
  17770. if (_this.tcid) {
  17771. _this.getCourseGroup();
  17772. } else {
  17773. _this.selectSWorks();
  17774. }
  17775. _this.selectStudent();
  17776. _this.selectSLook();
  17777. _this.getPick();
  17778. // _this.getSplitScreenData();//获取分屏数据
  17779. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17780. // _this.setCTask();
  17781. // }
  17782. if (_this.dialogVisibleGroup) {
  17783. _this.groupJson =
  17784. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17785. _this.taskCount
  17786. ].toolChoose[_this.toolindex].groupJson;
  17787. }
  17788. if (_this.tType == 4 || _this.ispzType == 4) {
  17789. _this.selectPz();
  17790. }
  17791. }, 5000);
  17792. if (_this.timer2 == null) {
  17793. _this.timer2 = setInterval(()=> {
  17794. _this.getSplitScreenData();//获取分屏数据
  17795. }, 5000);
  17796. }
  17797. _this.$nextTick(function () {
  17798. setTimeout(() => {
  17799. const element = document.getElementsByClassName("pb_body")[0];
  17800. if (element) {
  17801. element.style.minHeight = 'unset'
  17802. // 或者:element.style.removeProperty("min-height");
  17803. }
  17804. // var a =
  17805. // document.getElementsByClassName("box_course")[0].offsetHeight;
  17806. // document.getElementsByClassName("vedioList")[0].style.height =
  17807. // a + "px";
  17808. // document.getElementsByClassName("navBox")[0].style.height =
  17809. // a - 40 + "px";
  17810. // if (_this.vedio[_this.taskCount].length > 0) {
  17811. // _this.vedioTime = [];
  17812. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17813. // _this.vedioTime[i] = document.getElementsByClassName(
  17814. // "vjs-duration-display"
  17815. // )[i].textContent;
  17816. // }
  17817. // }
  17818. }, 1000);
  17819. });
  17820. })
  17821. .catch((err) => {
  17822. loading.close();
  17823. console.error(err);
  17824. });
  17825. },
  17826. getCourseGroup(gindex) {
  17827. if(this.getCourseGroupLoading) return
  17828. this.getCourseGroupLoading = true
  17829. let params = {
  17830. cid: this.id,
  17831. classid: this.tcid ? this.tcid : "1",
  17832. };
  17833. this.ajax
  17834. .get(this.$store.state.api + "getCourseGroup", params)
  17835. .then((res) => {
  17836. if (res.data && res.data[0].length) {
  17837. if (!this.isGroup) {
  17838. let courseGroup = JSON.parse(res.data[0][0].group);
  17839. courseGroup.group = courseGroup.group.filter((el) => {
  17840. el.works = [];
  17841. return el;
  17842. });
  17843. if (courseGroup.isopen == 2) {
  17844. this.isGroup = false;
  17845. this.selectSWorks(gindex);
  17846. return;
  17847. }
  17848. this.courseGroup = courseGroup;
  17849. let groupPerson = res.data[1];
  17850. let group = JSON.parse(res.data[0][0].group).group;
  17851. let courseGroupStudent = {};
  17852. let courseGroupStudentUid = {};
  17853. for (var i = 0; i < group.length; i++) {
  17854. courseGroupStudent[group[i].id] = [];
  17855. courseGroupStudentUid[group[i].id] = [];
  17856. for (var j = 0; j < groupPerson.length; j++) {
  17857. if (groupPerson[j].groupCid == group[i].id) {
  17858. courseGroupStudent[group[i].id].push(groupPerson[j]);
  17859. courseGroupStudentUid[group[i].id].push(
  17860. groupPerson[j].userid
  17861. );
  17862. }
  17863. }
  17864. }
  17865. this.courseGroupStudent = courseGroupStudent;
  17866. this.courseGroupStudentUid = courseGroupStudentUid;
  17867. }
  17868. if (this.courseGroup.isopen == 2) {
  17869. this.isGroup = false;
  17870. } else {
  17871. this.isGroup = true;
  17872. }
  17873. this.selectSWorks(gindex);
  17874. } else {
  17875. this.selectSWorks(gindex);
  17876. this.isGroup = false;
  17877. }
  17878. this.getCourseGroupLoading = false
  17879. })
  17880. .catch((err) => {
  17881. this.getCourseGroupLoading = false
  17882. // this.$message.error("网络不佳");
  17883. console.error(err);
  17884. });
  17885. },
  17886. setOperationTime() {
  17887. let _this = this;
  17888. if (_this.opertimer) {
  17889. clearInterval(_this.opertimer);
  17890. _this.opertimer = null;
  17891. }
  17892. _this.opertimer = setInterval(() => {
  17893. _this.setoTime("600");
  17894. }, 600000);
  17895. },
  17896. setoTime(time) {
  17897. let params = [
  17898. {
  17899. uid: this.userid,
  17900. cid: this.id,
  17901. type: "2",
  17902. time: time,
  17903. },
  17904. ];
  17905. this.ajax
  17906. .post(this.$store.state.api + "addOperationTimeT2", params)
  17907. .then((res) => {})
  17908. .catch((err) => {
  17909. console.error(err);
  17910. });
  17911. },
  17912. addPz(type, content) {
  17913. if (type == "1" && this.pzConText == "") {
  17914. this.$message.error("评论不能为空!");
  17915. return;
  17916. }
  17917. let params = [
  17918. {
  17919. cid: this.id,
  17920. uid: this.userid,
  17921. s: this.courseType,
  17922. t: this.taskCount,
  17923. c: type == "1" ? this.pzConText : content,
  17924. type: type,
  17925. },
  17926. ];
  17927. this.ajax
  17928. .post(this.$store.state.api + "addPz2", params)
  17929. .then((res) => {
  17930. this.$message({
  17931. message: "添加成功",
  17932. type: "success",
  17933. });
  17934. this.pzConText = "";
  17935. this.addPzDialog = false;
  17936. this.selectPz();
  17937. if(this.tType!=2){
  17938. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  17939. }
  17940. })
  17941. .catch((err) => {
  17942. this.$message.error("添加失败");
  17943. console.error(err);
  17944. });
  17945. },
  17946. setReplyIndex(id, i) {
  17947. this.replyIndex = i;
  17948. this.replyPid = id;
  17949. this.replyDialogVisible = true;
  17950. },
  17951. addHf() {
  17952. if (this.reply == "") {
  17953. this.$message.error("回复不能为空!");
  17954. return;
  17955. }
  17956. let params = [
  17957. {
  17958. cid: this.id,
  17959. uid: this.userid,
  17960. s: this.courseType,
  17961. t: this.taskCount,
  17962. type: "1",
  17963. ct: 2,
  17964. pid: this.replyPid,
  17965. c: this.reply,
  17966. },
  17967. ];
  17968. this.ajax
  17969. .post(this.$store.state.api + "addHf", params)
  17970. .then((res) => {
  17971. this.reply = "";
  17972. this.$message({
  17973. message: "回复成功",
  17974. type: "success",
  17975. });
  17976. this.replyDialogVisible = false;
  17977. this.selectPz();
  17978. })
  17979. .catch((err) => {
  17980. this.$message.error("回复失败");
  17981. console.error(err);
  17982. });
  17983. },
  17984. deletePz(id) {
  17985. this.$confirm("确定删除此评论吗?", "提示", {
  17986. confirmButtonText: "确定",
  17987. cancelButtonText: "取消",
  17988. type: "warning",
  17989. })
  17990. .then(() => {
  17991. let params = [
  17992. {
  17993. id: id,
  17994. },
  17995. ];
  17996. this.ajax
  17997. .post(this.$store.state.api + "deletePz", params)
  17998. .then((res) => {
  17999. this.$message({
  18000. message: "删除成功",
  18001. type: "success",
  18002. });
  18003. this.selectPz();
  18004. })
  18005. .catch((err) => {
  18006. this.$message.error("网络异常");
  18007. console.error(err);
  18008. });
  18009. })
  18010. .catch(() => {});
  18011. },
  18012. deleteReply(id) {
  18013. this.$confirm("确定删除此回复吗?", "提示", {
  18014. confirmButtonText: "确定",
  18015. cancelButtonText: "取消",
  18016. type: "warning",
  18017. })
  18018. .then(() => {
  18019. let params = [
  18020. {
  18021. id: id,
  18022. },
  18023. ];
  18024. this.ajax
  18025. .post(this.$store.state.api + "deleteReply", params)
  18026. .then((res) => {
  18027. this.$message({
  18028. message: "删除成功",
  18029. type: "success",
  18030. });
  18031. this.selectPz();
  18032. })
  18033. .catch((err) => {
  18034. this.$message.error("网络异常");
  18035. console.error(err);
  18036. });
  18037. })
  18038. .catch(() => {});
  18039. },
  18040. setPz() {
  18041. if (this.ispzType == 4) {
  18042. this.ispzType = 0;
  18043. this.pzDialog = false;
  18044. return;
  18045. }
  18046. this.ispzType = 4;
  18047. this.pzDialog = true;
  18048. this.selectPz();
  18049. },
  18050. selectPz() {
  18051. if(this.selectPzLoading) return
  18052. this.selectPzLoading = true
  18053. let params = {
  18054. cid: this.id,
  18055. s: this.courseType,
  18056. t: this.taskCount,
  18057. type: this.pzStype,
  18058. uid: this.userid,
  18059. };
  18060. this.ajax
  18061. .get(this.$store.state.api + "selectPzListType", params)
  18062. .then((res) => {
  18063. this.pzList = res.data[0];
  18064. var a = res.data[1];
  18065. for (var i = 0; i < a.length; i++) {
  18066. for (var j = 0; j < this.pzList.length; j++) {
  18067. if (!this.pzList[j].hfList) {
  18068. this.pzList[j].hfList = [];
  18069. }
  18070. if (a[i].pid == this.pzList[j].id) {
  18071. this.pzList[j].hfList.push(a[i]);
  18072. }
  18073. }
  18074. }
  18075. this.selectPzLoading = false
  18076. })
  18077. .catch((err) => {
  18078. this.selectPzLoading = false
  18079. console.error(err);
  18080. });
  18081. },
  18082. // selectHf() {
  18083. // let params = {
  18084. // cid: this.id,
  18085. // s: this.courseType,
  18086. // t: this.taskCount,
  18087. // };
  18088. // this.ajax
  18089. // .get(this.$store.state.api + "selectHfList", params)
  18090. // .then((res) => {
  18091. // var a = res.data[0];
  18092. // for (var i = 0; i < a.length; i++) {
  18093. // for (var j = 0; j < this.pzList.length; j++) {
  18094. // if (!this.pzList[i].hfList) {
  18095. // this.pzList[i].hfList = [];
  18096. // }
  18097. // if (a[i].pid == this.pzList[j].id) {
  18098. // this.pzList[i].hfList.push(a[i]);
  18099. // }
  18100. // }
  18101. // }
  18102. // })
  18103. // .catch((err) => {
  18104. // console.error(err);
  18105. // });
  18106. // },
  18107. updateSLook() {
  18108. let params = {
  18109. sopen: this.sIsOpen == false ? 1 : 2,
  18110. cid: this.id,
  18111. };
  18112. this.ajax
  18113. .get(this.$store.state.api + "updateCourseSLook", params)
  18114. .then((res) => {
  18115. if (this.sIsOpen == true) {
  18116. this.$message({
  18117. message: "权限设置成功",
  18118. type: "success",
  18119. });
  18120. } else {
  18121. this.$message({
  18122. message: "权限关闭成功",
  18123. type: "success",
  18124. });
  18125. }
  18126. })
  18127. .catch((err) => {
  18128. console.error(err);
  18129. });
  18130. },
  18131. updateIsStulook(){
  18132. let params = [
  18133. {
  18134. sopen: this.IsStulook == false ? 2 : 1,
  18135. cid: this.id
  18136. }
  18137. ];
  18138. this.ajax
  18139. .post(this.$store.state.api + "updateCourseStulook", params)
  18140. .then(res => {
  18141. if (this.IsStulook == true) {
  18142. this.$message({
  18143. message: "学生查看内容资料权限已开启",
  18144. type: "success"
  18145. });
  18146. } else {
  18147. this.$message({
  18148. message: "关闭学生查看内容资料权限",
  18149. type: "success"
  18150. });
  18151. }
  18152. // this.setCTask();
  18153. })
  18154. .catch(err => {
  18155. console.error(err);
  18156. });
  18157. },
  18158. updateFollow() {
  18159. let params = [
  18160. {
  18161. sopen: this.IsFollow == false ? 1 : 2,
  18162. cid: this.id,
  18163. },
  18164. ];
  18165. this.ajax
  18166. .post(this.$store.state.api + "updateCourseFollow", params)
  18167. .then((res) => {
  18168. if (this.IsFollow == true) {
  18169. this.$message({
  18170. message: "跟随模式已开启",
  18171. type: "success",
  18172. });
  18173. } else {
  18174. this.$message({
  18175. message: "跟随模式已关闭",
  18176. type: "success",
  18177. });
  18178. }
  18179. this.setCTask();
  18180. })
  18181. .catch((err) => {
  18182. console.error(err);
  18183. });
  18184. },
  18185. setCTask() {
  18186. let params = [
  18187. {
  18188. sopen: this.courseType + "-" + this.taskCount,
  18189. cid: this.id,
  18190. },
  18191. ];
  18192. this.ajax
  18193. .post(this.$store.state.api + "updateCourseFollowC", params)
  18194. .then((res) => {})
  18195. .catch((err) => {
  18196. console.error(err);
  18197. });
  18198. },
  18199. updateLookOpen() {
  18200. let params = [
  18201. {
  18202. sopen: this.IsLookOpen == false ? 1 : 2,
  18203. cid: this.id,
  18204. },
  18205. ];
  18206. this.ajax
  18207. .post(this.$store.state.api + "updateCourseLookOpen", params)
  18208. .then((res) => {
  18209. if (this.IsLookOpen == true) {
  18210. // if (this.courseType != 0 && this.taskCount != 0) {
  18211. // this.openTask(0, 0, "0-0");
  18212. // }
  18213. this.$message({
  18214. message: "权限设置成功",
  18215. type: "success",
  18216. });
  18217. } else {
  18218. this.$message({
  18219. message: "权限关闭成功",
  18220. type: "success",
  18221. });
  18222. }
  18223. this.getCourseState(2);
  18224. })
  18225. .catch((err) => {
  18226. console.error(err);
  18227. });
  18228. },
  18229. selectSLook() {
  18230. if(this.selectSLookLoading) return
  18231. this.selectSLookLoading = true
  18232. let params = {
  18233. cid: this.id,
  18234. };
  18235. this.ajax
  18236. .get(this.$store.state.api + "selectCourseSLook", params)
  18237. .then((res) => {
  18238. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  18239. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  18240. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  18241. this.IsStulook = res.data[0][0].isStulook == 2 ? false : true;
  18242. if (!this.IsLookOpen) {
  18243. this.setNavList();
  18244. }else {
  18245. this.getCourseState(1);
  18246. }
  18247. if ((this.IsFollow && this.tType == 2)) {
  18248. this.setContent2(false);
  18249. let _followC = res.data[0][0].followC.split("-");
  18250. if (
  18251. this.courseType != _followC[0] ||
  18252. this.taskCount != _followC[1]
  18253. ) {
  18254. this.navList[this.courseType].isOpen = false;
  18255. this.courseType = _followC[0];
  18256. this.navList[this.courseType].isOpen = true;
  18257. this.taskCount = parseInt(_followC[1]);
  18258. this.navId = res.data[0][0].followC;
  18259. document.scrollingElement.scrollTop = 0;
  18260. this.getCourseDetail(2);
  18261. }
  18262. }
  18263. this.selectSLookLoading = false
  18264. })
  18265. .catch((err) => {
  18266. this.selectSLookLoading = false
  18267. console.error(err);
  18268. });
  18269. },
  18270. setNavList() {
  18271. if (this.navList.length == 0) {
  18272. this.navList = [];
  18273. var copyList = [];
  18274. for (var l = 0; l < this.chapInfoList.length; l++) {
  18275. var q = this.chapInfoList[l].dyName;
  18276. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18277. var e;
  18278. copyList.push({
  18279. dyName: q,
  18280. isOpen: l === 0 ? true : false,
  18281. task: [],
  18282. });
  18283. for (var r = 0; r < w.length; r++) {
  18284. e = w[r].task;
  18285. if (this.chapInfoList[l].easy == 1) {
  18286. copyList[l].task.push({
  18287. taskName: q,
  18288. id: l + "-" + r,
  18289. isLook: w[r].isLook,
  18290. isOpen: r === 0 ? true : false,
  18291. tool: [],
  18292. });
  18293. } else {
  18294. copyList[l].task.push({
  18295. taskName: e,
  18296. id: l + "-" + r,
  18297. isLook: w[r].isLook,
  18298. isOpen: r === 0 ? true : false,
  18299. tool: [],
  18300. });
  18301. }
  18302. var t = w[r].toolChoose;
  18303. for (var k = 0; k < t.length; k++) {
  18304. var tool = t[k].tool[0];
  18305. copyList[l].task[r].tool.push({
  18306. tool: tool,
  18307. isTool: false,
  18308. });
  18309. }
  18310. // this.navId = this.navId ? this.navId : l + "-" + r;
  18311. // this.navId = l + "-" + r;
  18312. }
  18313. }
  18314. this.navList = copyList;
  18315. this.navList[0].isOpen = false;
  18316. this.navList[this.courseType].isOpen = true;
  18317. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  18318. } else {
  18319. this.setNavList2();
  18320. }
  18321. },
  18322. setNavList2() {
  18323. for (var l = 0; l < this.chapInfoList.length; l++) {
  18324. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18325. for (var r = 0; r < w.length; r++) {
  18326. this.navList[l].task[r].isLook = w[r].isLook;
  18327. }
  18328. }
  18329. if (
  18330. this.IsLookOpen &&
  18331. !this.navList[this.courseType].task[this.taskCount].isLook
  18332. ) {
  18333. this.openTask(0, 0, "0-0");
  18334. }
  18335. this.$forceUpdate();
  18336. },
  18337. getCourseState(type) {
  18338. let params = {
  18339. cid: this.id,
  18340. };
  18341. this.ajax
  18342. .get(this.$store.state.api + "getCourseState", params)
  18343. .then((res) => {
  18344. // if (res.data[0].length > 0) {
  18345. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  18346. // }
  18347. if (res.data[0].length > 0 && type == 1) {
  18348. this.chapInfoList = JSON.parse(res.data[0][0].state);
  18349. this.setNavList();
  18350. this.$forceUpdate();
  18351. } else if (res.data[0].length > 0 && type == 2) {
  18352. this.addCourseState(2);
  18353. } else {
  18354. // this.addCourseState(1);
  18355. }
  18356. })
  18357. .catch((err) => {
  18358. console.error(err);
  18359. });
  18360. },
  18361. addCourseState(type,val = '') {
  18362. let _state = val ? val : this.chapInfoList;
  18363. // this.courseType this.taskCount
  18364. if (type == 1 || type == 2) {
  18365. for (var i = 0; i < _state.length; i++) {
  18366. let el = _state[i].chapterInfo[0].taskJson;
  18367. for (var j = 0; j < el.length; j++) {
  18368. // if (i == 0 && j == 0) {
  18369. // el[j].isLook = true;
  18370. // } else {
  18371. // el[j].isLook = false;
  18372. // }
  18373. if (
  18374. this.courseType > i ||
  18375. (this.courseType == i && this.taskCount + 1 > j)
  18376. ) {
  18377. el[j].isLook = true;
  18378. } else {
  18379. el[j].isLook = false;
  18380. }
  18381. }
  18382. }
  18383. }
  18384. let params = [
  18385. {
  18386. cid: this.id,
  18387. state: JSON.stringify(_state),
  18388. },
  18389. ];
  18390. this.ajax
  18391. .post(
  18392. this.$store.state.api +
  18393. (type == 1 ? "addCourseState" : "updateCourseSate"),
  18394. params
  18395. )
  18396. .then((res) => {
  18397. if (this.IsLookOpen) {
  18398. this.setNavList();
  18399. }
  18400. if (type == 3 && type == 2) {
  18401. this.getCourseState(1);
  18402. }
  18403. })
  18404. .catch((err) => {
  18405. console.error(err);
  18406. });
  18407. },
  18408. getHomeWork() {
  18409. let params = {
  18410. cid: this.id,
  18411. stage: this.courseType,
  18412. task: this.taskCount,
  18413. uid: this.userid,
  18414. };
  18415. this.ajax
  18416. .get(this.$store.state.api + "selectWork", params)
  18417. .then((res) => {
  18418. if (res.data[0].length > 0) {
  18419. this.studyJuri = JSON.parse(res.data[0][0].content);
  18420. this.isNoHomeWork = true;
  18421. }
  18422. })
  18423. .catch((err) => {
  18424. console.error(err);
  18425. });
  18426. },
  18427. isAssetTypeAnImage(ext) {
  18428. return (
  18429. [
  18430. "png",
  18431. "jpg",
  18432. "jpeg",
  18433. "bmp",
  18434. "gif",
  18435. "webp",
  18436. "psd",
  18437. "svg",
  18438. "tiff",
  18439. ].indexOf(ext) !== -1
  18440. );
  18441. },
  18442. switchVideo(media) {
  18443. this.playerO = {};
  18444. this.playerOptions.poster = "";
  18445. this.playerOptions.sources[0].src = media;
  18446. this.playerO = this.playerOptions;
  18447. },
  18448. onPlayerPlay() {},
  18449. onPlayerTimeupdate(player) {
  18450. let gklog = player.cache_.currentTime; //当前播放的秒数
  18451. let a = player.cache_.duration; //视频的总时长
  18452. let gklog2 = parseInt(gklog);
  18453. // if(gklog2 == '3'){
  18454. // player.pause()
  18455. // setTimeout(()=>{
  18456. // player.currentTime(gklog2+1)
  18457. // player.play()
  18458. // },1000)
  18459. // }
  18460. console.log(" onPlayerTimeupdate!", gklog);
  18461. console.log(" onPlayerTimeupdate!", gklog2);
  18462. },
  18463. lookVedio(u, i) {
  18464. this.isClickNav = "";
  18465. // this.playerOptions.sources[0].src = u;
  18466. var d = JSON.parse(JSON.stringify(this.playerOptions));
  18467. d.sources[0].src = u;
  18468. this.playerO[0] = d;
  18469. this.showType = 0;
  18470. // this.isClickNav = "video" + i;
  18471. this.isClickNav = i;
  18472. this.$forceUpdate();
  18473. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  18474. },
  18475. lookText(i, t) {
  18476. this.isClickNav = "";
  18477. // this.text = this.textList[i][t];
  18478. this.text = this.vChapterData[i][t];
  18479. // this.dialogVisible1 = true;
  18480. this.showType = 1;
  18481. // this.isClickNav = "text" + t;
  18482. this.isClickNav = t;
  18483. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  18484. },
  18485. lookTools(i, t) {
  18486. this.chapTools = this.chapToolList[i][t];
  18487. this.dialogVisible2 = true;
  18488. },
  18489. async openFile(f) {
  18490. this.pptImgUrl = "";
  18491. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18492. if (
  18493. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  18494. -1
  18495. ) {
  18496. let _uuurl = await this.checkLink(f);
  18497. console.log(_uuurl)
  18498. this.pptImgUrl =
  18499. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18500. this.showPDF = false;
  18501. this.dialogVisible3 = true;
  18502. } else if (
  18503. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18504. ) {
  18505. this.pptImgUrl = f;
  18506. this.showPDF = true;
  18507. this.dialogVisible3 = true;
  18508. }
  18509. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  18510. },
  18511. openTable(f) {
  18512. this.tableJson = JSON.parse(f.works);
  18513. this.dialogVisibleTable2 = true;
  18514. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18515. },
  18516. openWord(f) {
  18517. this.tableJson = JSON.parse(f.works);
  18518. this.dialogVisibleTable3 = true;
  18519. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18520. },
  18521. doUrl(url, i) {
  18522. this.isClickNav = "";
  18523. this.pptImgUrl1 = "";
  18524. this.showType = 2;
  18525. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  18526. url = "https://" + url;
  18527. }
  18528. this.pptImgUrl1 = "";
  18529. this.diffKey = new Date().getTime();
  18530. setTimeout(() => {
  18531. this.pptImgUrl1 = url;
  18532. }, 500);
  18533. // this.isClickNav = "line" + i;
  18534. this.isClickNav = i;
  18535. this.$forceUpdate();
  18536. },
  18537. checkPhoto(f, i) {
  18538. this.showType = 4;
  18539. this.pptImgUrl1 = f.url;
  18540. this.isClickNav = i;
  18541. this.$forceUpdate();
  18542. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18543. },
  18544. checkHtml(f, i){
  18545. this.showType = 16;
  18546. this.pptImgUrl1 = f.url;
  18547. this.isClickNav = i;
  18548. this.$forceUpdate();
  18549. },
  18550. async downFile(f, i) {
  18551. this.isClickNav = "";
  18552. this.pptImgUrl1 = "";
  18553. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  18554. if (
  18555. a.indexOf(
  18556. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  18557. ) != -1
  18558. ) {
  18559. let _uuurl = await this.checkLink(f.url);
  18560. console.log(_uuurl)
  18561. this.pptImgUrl1 =
  18562. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18563. // this.dialogVisible3 = true;
  18564. this.showType = 2;
  18565. } else if (
  18566. this.isAssetTypeAnImage(
  18567. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  18568. )
  18569. ) {
  18570. this.showType = 4;
  18571. this.pptImgUrl1 = f.url;
  18572. } else if (
  18573. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18574. "PDF"
  18575. ) {
  18576. this.pptImgUrl1 = f.url;
  18577. // this.dialogVisible3 = true;
  18578. this.showType = 3;
  18579. } else {
  18580. window.open(this.file[i].url);
  18581. }
  18582. // this.isClickNav = "word" + i;
  18583. this.isClickNav = i;
  18584. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18585. },
  18586. downFileList(i) {
  18587. window.open(this.noImgList[i].url);
  18588. },
  18589. openAddWork() {
  18590. this.dialogVisible = true;
  18591. },
  18592. addBzWorks() {
  18593. let params = [
  18594. {
  18595. uid: this.userid,
  18596. cid: this.id,
  18597. stage: this.courseType,
  18598. task: this.taskCount,
  18599. tool: this.toolindex,
  18600. content: JSON.stringify(this.eScore),
  18601. type: 6,
  18602. },
  18603. ];
  18604. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18605. this.homeWorkLoading = true
  18606. this.ajax
  18607. .post(this.$store.state.api + "addCourseWorks", params)
  18608. .then((res) => {
  18609. this.$message({
  18610. message: "提交成功",
  18611. type: "success",
  18612. });
  18613. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
  18614. setTimeout(() => {
  18615. this.homeWorkLoading = false
  18616. }, 500);
  18617. this.eScore = { eBzText: "", eStar: [] };
  18618. this.studentEvalDialogVisible = false;
  18619. this.selectSWorks();
  18620. })
  18621. .catch((err) => {
  18622. this.$message.error("提交失败");
  18623. console.error(err);
  18624. setTimeout(() => {
  18625. this.homeWorkLoading = false
  18626. }, 500);
  18627. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
  18628. });
  18629. },
  18630. addBzWorksTeacher() {
  18631. let params = [
  18632. {
  18633. uid: this.sStudent.userid,
  18634. cid: this.id,
  18635. stage: this.courseType,
  18636. task: this.taskCount,
  18637. tool: this.toolindex,
  18638. content: JSON.stringify(this.eScore),
  18639. type: 6,
  18640. },
  18641. ];
  18642. this.ajax
  18643. .post(this.$store.state.api + "addCourseWorks", params)
  18644. .then((res) => {
  18645. this.$message({
  18646. message: "提交成功",
  18647. type: "success",
  18648. });
  18649. this.eScore = { eBzText: "", eStar: [] };
  18650. this.studentEvalDialogVisibleTeacher = false;
  18651. this.selectSWorks();
  18652. })
  18653. .catch((err) => {
  18654. this.$message.error("提交失败");
  18655. console.error(err);
  18656. });
  18657. },
  18658. addStudentAsk() {
  18659. if (!this.radio.length) {
  18660. this.$message.error("请选择选项");
  18661. return;
  18662. }
  18663. for (var i = 0; i < this.askJson.askCount; i++) {
  18664. if (
  18665. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18666. (this.radio[i] !== 0 && !this.radio[i])
  18667. ) {
  18668. this.$message.error("请选择选项");
  18669. return;
  18670. }
  18671. }
  18672. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18673. let params = [
  18674. {
  18675. uid: this.userid,
  18676. cid: this.id,
  18677. stage: this.courseType,
  18678. task: this.taskCount,
  18679. tool: this.toolindex,
  18680. content: JSON.stringify(this.askList),
  18681. type: 2,
  18682. },
  18683. ];
  18684. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18685. this.homeWorkLoading = true
  18686. this.ajax
  18687. .post(this.$store.state.api + "addCourseWorks", params)
  18688. .then((res) => {
  18689. this.$message({
  18690. message: "提交成功",
  18691. type: "success",
  18692. });
  18693. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18694. setTimeout(() => {
  18695. this.homeWorkLoading = false
  18696. }, 500);
  18697. this.askList = [];
  18698. this.dialogVisible5 = false;
  18699. this.selectStudent();
  18700. this.selectSWorks();
  18701. this.selectSLook();
  18702. })
  18703. .catch((err) => {
  18704. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18705. setTimeout(() => {
  18706. this.homeWorkLoading = false
  18707. }, 500);
  18708. this.$message.error("提交失败");
  18709. console.error(err);
  18710. });
  18711. },
  18712. addStudentAskTeacher() {
  18713. if (!this.radio.length) {
  18714. this.$message.error("请选择选项");
  18715. return;
  18716. }
  18717. for (var i = 0; i < this.askJson.askCount; i++) {
  18718. if (
  18719. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18720. (this.radio[i] !== 0 && !this.radio[i])
  18721. ) {
  18722. this.$message.error("请选择选项");
  18723. return;
  18724. }
  18725. }
  18726. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18727. let params = [
  18728. {
  18729. uid: this.sStudent.userid,
  18730. cid: this.id,
  18731. stage: this.courseType,
  18732. task: this.taskCount,
  18733. tool: this.toolindex,
  18734. content: JSON.stringify(this.askList),
  18735. type: 2,
  18736. },
  18737. ];
  18738. this.ajax
  18739. .post(this.$store.state.api + "addCourseWorks", params)
  18740. .then((res) => {
  18741. this.$message({
  18742. message: "提交成功",
  18743. type: "success",
  18744. });
  18745. this.askList = [];
  18746. this.dialogVisible5Teacher = false;
  18747. this.selectStudent();
  18748. this.selectSWorks();
  18749. this.selectSLook();
  18750. })
  18751. .catch((err) => {
  18752. this.$message.error("提交失败");
  18753. console.error(err);
  18754. });
  18755. },
  18756. addStudentTest() {
  18757. if (!this.radio.length) {
  18758. this.$message.error("请选择选项");
  18759. return;
  18760. }
  18761. for (var i = 0; i < this.testJson.testCount; i++) {
  18762. if (
  18763. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18764. (this.radio[i] !== 0 && !this.radio[i])
  18765. ) {
  18766. this.$message.error("请选择选项");
  18767. return;
  18768. }
  18769. }
  18770. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18771. let params = [
  18772. {
  18773. uid: this.userid,
  18774. cid: this.id,
  18775. stage: this.courseType,
  18776. task: this.taskCount,
  18777. tool: this.toolindex,
  18778. content: JSON.stringify(this.askList),
  18779. type: 8,
  18780. },
  18781. ];
  18782. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18783. this.homeWorkLoading = true
  18784. this.ajax
  18785. .post(this.$store.state.api + "addCourseWorks", params)
  18786. .then((res) => {
  18787. this.$message({
  18788. message: "提交成功",
  18789. type: "success",
  18790. });
  18791. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18792. setTimeout(() => {
  18793. this.homeWorkLoading = false
  18794. }, 500);
  18795. this.askList = [];
  18796. this.dialogVisibleChoice = false;
  18797. this.selectStudent();
  18798. this.selectSWorks();
  18799. this.selectSLook();
  18800. })
  18801. .catch((err) => {
  18802. this.$message.error("提交失败");
  18803. console.error(err);
  18804. setTimeout(() => {
  18805. this.homeWorkLoading = false
  18806. }, 500);
  18807. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18808. });
  18809. },
  18810. addStudentTestTeacher() {
  18811. if (!this.radio.length) {
  18812. this.$message.error("请选择选项");
  18813. return;
  18814. }
  18815. for (var i = 0; i < this.testJson.testCount; i++) {
  18816. if (
  18817. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18818. (this.radio[i] !== 0 && !this.radio[i])
  18819. ) {
  18820. this.$message.error("请选择选项");
  18821. return;
  18822. }
  18823. }
  18824. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18825. let params = [
  18826. {
  18827. uid: this.sStudent.userid,
  18828. cid: this.id,
  18829. stage: this.courseType,
  18830. task: this.taskCount,
  18831. tool: this.toolindex,
  18832. content: JSON.stringify(this.askList),
  18833. type: 8,
  18834. },
  18835. ];
  18836. this.ajax
  18837. .post(this.$store.state.api + "addCourseWorks", params)
  18838. .then((res) => {
  18839. this.$message({
  18840. message: "提交成功",
  18841. type: "success",
  18842. });
  18843. this.askList = [];
  18844. this.dialogVisibleChoiceTeacher = false;
  18845. this.selectStudent();
  18846. this.selectSWorks();
  18847. this.selectSLook();
  18848. })
  18849. .catch((err) => {
  18850. this.$message.error("提交失败");
  18851. console.error(err);
  18852. });
  18853. },
  18854. addWork() {
  18855. if (this.studyJuri[0].content == "") {
  18856. this.$message.error("请将信息填写完整");
  18857. return;
  18858. } else if (this.studyJuri[0].cover.length == 0) {
  18859. this.$message.error("请将信息填写完整");
  18860. return;
  18861. } else if (this.studyJuri[0].upVedio.length == 0) {
  18862. this.$message.error("请将信息填写完整");
  18863. return;
  18864. }
  18865. if (this.isNoHomeWork) {
  18866. this.$confirm(
  18867. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  18868. "提示",
  18869. {
  18870. confirmButtonText: "确定",
  18871. cancelButtonText: "取消",
  18872. type: "warning",
  18873. }
  18874. )
  18875. .then(() => {
  18876. let params = [
  18877. {
  18878. uid: this.userid,
  18879. cid: this.id,
  18880. stage: this.courseType,
  18881. task: this.taskCount,
  18882. content: JSON.stringify(this.studyJuri),
  18883. },
  18884. ];
  18885. this.ajax
  18886. .post(this.$store.state.api + "addWorks", params)
  18887. .then((res) => {
  18888. this.$message({
  18889. message: "提交成功",
  18890. type: "success",
  18891. });
  18892. this.isNoHomeWork = true;
  18893. this.dialogVisible = false;
  18894. })
  18895. .catch((err) => {
  18896. this.$message.error("提交失败");
  18897. console.error(err);
  18898. });
  18899. })
  18900. .catch(() => {});
  18901. } else {
  18902. let params = [
  18903. {
  18904. uid: this.userid,
  18905. cid: this.id,
  18906. stage: this.courseType,
  18907. task: this.taskCount,
  18908. content: JSON.stringify(this.studyJuri),
  18909. },
  18910. ];
  18911. this.ajax
  18912. .post(this.$store.state.api + "addWorks", params)
  18913. .then((res) => {
  18914. this.$message({
  18915. message: "提交成功",
  18916. type: "success",
  18917. });
  18918. this.isNoHomeWork = true;
  18919. this.dialogVisible = false;
  18920. })
  18921. .catch((err) => {
  18922. this.$message.error("提交失败");
  18923. console.error(err);
  18924. });
  18925. }
  18926. },
  18927. selectCount() {
  18928. let params = {
  18929. cid: this.id,
  18930. chid: this.courseType,
  18931. uid: this.userid,
  18932. };
  18933. this.ajax
  18934. .get(this.$store.state.api + "selectToolsCount", params)
  18935. .then((res) => {
  18936. for (var i = 0; i < res.data[0].length; i++) {
  18937. if (res.data[0][i].tools == 1) {
  18938. this.wbCount = res.data[0][i].count;
  18939. } else if (res.data[0][i].tools == 2) {
  18940. this.wordCount = res.data[0][i].count;
  18941. } else if (res.data[0][i].tools == 3) {
  18942. this.mindCount = res.data[0][i].count;
  18943. } else if (res.data[0][i].tools == 4) {
  18944. this.askCount = res.data[0][i].count;
  18945. } else if (res.data[0][i].tools == 6) {
  18946. this.noteCount = res.data[0][i].count;
  18947. } else if (res.data[0][i].tools == 7) {
  18948. this.mindNetWorkCount = res.data[0][i].count;
  18949. } else if (res.data[0][i].tools == 8) {
  18950. this.libraryCount = res.data[0][i].count;
  18951. } else if (res.data[0][i].tools == 16) {
  18952. this.workCount = res.data[0][i].count;
  18953. } else if (res.data[0][i].tools == 10) {
  18954. this.timeCount = res.data[0][i].count;
  18955. } else if (res.data[0][i].tools == 15) {
  18956. this.answerCount = res.data[0][i].count;
  18957. } else if (res.data[0][i].tools == 18) {
  18958. this.trainCount = res.data[0][i].count;
  18959. }
  18960. }
  18961. })
  18962. .catch((err) => {
  18963. console.error(err);
  18964. });
  18965. },
  18966. openTools(t, i, index, c, sName,id) {
  18967. var z = JSON.parse(c);
  18968. this.noteName = sName;
  18969. if (t == 4) {
  18970. this.radio = [];
  18971. this.isAnswer = false;
  18972. let b = z[0].anwer;
  18973. this.radio = b;
  18974. this.askJson = z[0].askJson;
  18975. this.isAnswer = true;
  18976. this.dialogVisible5 = true;
  18977. } else if (t == 45) {
  18978. this.radio = [];
  18979. this.isAnswer = false;
  18980. let b = z[0].anwer;
  18981. this.radio = b;
  18982. this.testJson = z[0].testJson;
  18983. this.isAnswer = true;
  18984. this.dialogVisibleChoice = true;
  18985. }else if(t == 69){
  18986. this.oldEnglishJson1 = {}
  18987. this.oldEnglishJson = {}
  18988. this.englishList1 = {}
  18989. this.newEngIndex = -1;
  18990. this.isNoUserid = false;
  18991. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18992. .toolChoose[i].englishList;
  18993. this.oldEnglishJson = z;
  18994. this.engWid = id;
  18995. this.newEnglishList = { engTitle:"",engText:"" }
  18996. this.newEnglishList1 = []
  18997. this.selectEngC(id,z);
  18998. }else if(t == 62){
  18999. this.videoType = 1;
  19000. this.videoJson = {};
  19001. this.videoJson = JSON.parse(c);
  19002. // this.videoJson =
  19003. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19004. // index
  19005. // ].toolChoose[i].videoJson;
  19006. this.dialogVisibleVideo = true;
  19007. }
  19008. // else if (t == 15) {
  19009. // this.answerQ = "";
  19010. // this.questionAnswer = "";
  19011. // this.answerQ = z[0].answerTitle;
  19012. // this.questionAnswer = z[0].answer;
  19013. // this.answerDialogVisible = true;
  19014. // }
  19015. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  19016. },
  19017. fastText(p, t) {
  19018. if (t == 1) {
  19019. this.commentText += p;
  19020. } else {
  19021. this.eScore.eBzText += p;
  19022. }
  19023. },
  19024. addTools(t, i, index) {
  19025. var a = 0;
  19026. // this.taskCount = index;
  19027. this.toolindex = i;
  19028. if (t == 1) {
  19029. if (this.wbCount > 0) {
  19030. this.updateCount(this.wbCount, t);
  19031. } else {
  19032. this.wbCount++;
  19033. a = this.wbCount;
  19034. this.toolsCount(a, t);
  19035. }
  19036. window.topU.postMessage(
  19037. {
  19038. tools: "1",
  19039. cid: this.id,
  19040. stage: this.courseType,
  19041. task: this.taskCount,
  19042. tool: i,
  19043. },
  19044. "*"
  19045. );
  19046. } else if (t == 2) {
  19047. if (this.wordCount > 0) {
  19048. this.updateCount(this.wordCount, t);
  19049. } else {
  19050. this.wordCount++;
  19051. a = this.wordCount;
  19052. this.toolsCount(a, t);
  19053. }
  19054. window.topU.postMessage({ tools: "2" }, "*");
  19055. } else if (t == 3) {
  19056. if (this.mindCount > 0) {
  19057. this.updateCount(this.mindCount, t);
  19058. } else {
  19059. this.mindCount++;
  19060. a = this.mindCount;
  19061. this.toolsCount(a, t);
  19062. }
  19063. window.topU.postMessage(
  19064. {
  19065. tools: "3",
  19066. cid: this.id,
  19067. stage: this.courseType,
  19068. task: this.taskCount,
  19069. tool: i,
  19070. },
  19071. "*"
  19072. );
  19073. } else if (t == 4) {
  19074. this.radio = [];
  19075. this.noteName = "";
  19076. this.isAnswer = false;
  19077. if (this.askCount > 0) {
  19078. this.updateCount(this.askCount, t);
  19079. } else {
  19080. this.askCount++;
  19081. a = this.askCount;
  19082. this.toolsCount(a, t);
  19083. }
  19084. if (!this.dialogVisible2) {
  19085. this.askJson.askJson =
  19086. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19087. index
  19088. ].toolChoose[i].askJson;
  19089. this.askJson.askTitle =
  19090. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19091. index
  19092. ].toolChoose[i].askTitle;
  19093. this.askJson.askCount =
  19094. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19095. index
  19096. ].toolChoose[i].askCount;
  19097. } else {
  19098. this.askJson.askJson = this.chapTools.askJson.askJson;
  19099. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  19100. this.askJson.askCount = this.chapTools.askJson.askCount;
  19101. }
  19102. for (var k = 0; k < this.askJson.askJson.length; k++) {
  19103. if (this.askJson.askJson[k].type == "2") {
  19104. this.radio.push([]);
  19105. } else {
  19106. this.radio.push("");
  19107. }
  19108. }
  19109. this.dialogVisible5 = true;
  19110. // window.topU.postMessage({ tools: "4" }, "*");
  19111. } else if (t == 45) {
  19112. this.noteName = "";
  19113. this.radio = [];
  19114. this.isAnswer = false;
  19115. if (this.askCount > 0) {
  19116. this.updateCount(this.askCount, t);
  19117. } else {
  19118. this.askCount++;
  19119. a = this.askCount;
  19120. this.toolsCount(a, t);
  19121. }
  19122. this.testJson =
  19123. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19124. index
  19125. ].toolChoose[i].testJson;
  19126. for (var k = 0; k < this.testJson.testJson.length; k++) {
  19127. if (this.testJson.testJson[k].type == "2") {
  19128. this.radio.push([]);
  19129. } else {
  19130. this.radio.push("");
  19131. }
  19132. }
  19133. this.dialogVisibleChoice = true;
  19134. // window.topU.postMessage({ tools: "4" }, "*");
  19135. } else if (t == 5) {
  19136. if (this.scoreCount > 0) {
  19137. this.updateCount(this.scoreCount, t);
  19138. } else {
  19139. this.scoreCount++;
  19140. a = this.scoreCount;
  19141. this.toolsCount(a, t);
  19142. }
  19143. this.dialogVisible4 = true;
  19144. // window.topU.postMessage({ tools: "5" }, "*");
  19145. } else if (t == 6) {
  19146. if (this.noteCount > 0) {
  19147. this.updateCount(this.noteCount, t);
  19148. } else {
  19149. this.noteCount++;
  19150. a = this.noteCount;
  19151. this.toolsCount(a, t);
  19152. }
  19153. window.topU.postMessage(
  19154. {
  19155. tools: "6",
  19156. cid: this.id,
  19157. stage: this.courseType,
  19158. task: this.taskCount,
  19159. tool: i,
  19160. },
  19161. "*"
  19162. );
  19163. } else if (t == 7) {
  19164. if (this.mindNetWorkCount > 0) {
  19165. this.updateCount(this.mindNetWorkCount, t);
  19166. } else {
  19167. this.mindNetWorkCount++;
  19168. a = this.mindNetWorkCount;
  19169. this.toolsCount(a, t);
  19170. }
  19171. window.topU.postMessage(
  19172. {
  19173. tools: "7",
  19174. cid: this.id,
  19175. stage: this.courseType,
  19176. task: this.taskCount,
  19177. tool: i,
  19178. },
  19179. "*"
  19180. );
  19181. } else if (t == 16) {
  19182. if (this.workCount > 0) {
  19183. this.updateCount(this.workCount, t);
  19184. } else {
  19185. this.workCount++;
  19186. a = this.workCount;
  19187. this.toolsCount(a, t);
  19188. }
  19189. this.dialogVisible = true;
  19190. } else if (t == 50) {
  19191. if (this.tType == 2) {
  19192. this.$message.error("不支持学生使用");
  19193. return;
  19194. }
  19195. this.plworkFile = [];
  19196. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19197. if (!this.uploadCid) {
  19198. this.$message.error(
  19199. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19200. );
  19201. return;
  19202. }
  19203. // this.uploadCid =
  19204. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19205. // index
  19206. // ].toolChoose[i].uploadJson[0];
  19207. this.selectUploadStudent(2);
  19208. } else if (t == 8) {
  19209. if (this.libraryCount > 0) {
  19210. this.updateCount(this.libraryCount, t);
  19211. } else {
  19212. this.libraryCount++;
  19213. a = this.libraryCount;
  19214. this.toolsCount(a, t);
  19215. }
  19216. window.topU.postMessage({ tools: "8" }, "*");
  19217. } else if (t == 17) {
  19218. if (this.libraryCount > 0) {
  19219. this.updateCount(this.libraryCount, t);
  19220. } else {
  19221. this.libraryCount++;
  19222. a = this.libraryCount;
  19223. this.toolsCount(a, t);
  19224. }
  19225. window.topU.postMessage({ tools: "17" }, "*");
  19226. } else if (t == 18) {
  19227. if (this.trainCount > 0) {
  19228. this.updateCount(this.trainCount, t);
  19229. } else {
  19230. this.trainCount++;
  19231. a = this.trainCount;
  19232. this.toolsCount(a, t);
  19233. }
  19234. window.topU.postMessage({ tools: "18" }, "*");
  19235. } else if (t == 10) {
  19236. if (this.timeCount > 0) {
  19237. this.updateCount(this.timeCount, t);
  19238. } else {
  19239. this.timeCount++;
  19240. a = this.timeCount;
  19241. this.toolsCount(a, t);
  19242. }
  19243. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  19244. .taskJson[index].toolChoose[i].preTime
  19245. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19246. .toolChoose[i].preTime
  19247. : "";
  19248. this.timeDialogVisible = true;
  19249. } else if (t == 15) {
  19250. this.answerQ = "";
  19251. this.questionAnswer = "";
  19252. if (this.answerCount > 0) {
  19253. this.updateCount(this.answerCount, t);
  19254. } else {
  19255. this.answerCount++;
  19256. a = this.answerCount;
  19257. this.toolsCount(a, t);
  19258. }
  19259. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19260. .taskJson[index].toolChoose[i].answerQ
  19261. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19262. .toolChoose[i].answerQ
  19263. : "";
  19264. this.answerDialogVisible = true;
  19265. } else if (t == 21) {
  19266. window.topU.postMessage({ tools: "21" }, "*");
  19267. } else if (t == 22) {
  19268. window.topU.postMessage({ tools: "22" }, "*");
  19269. } else if (t == 23) {
  19270. window.topU.postMessage({ tools: "23" }, "*");
  19271. } else if (t == 24) {
  19272. window.topU.postMessage({ tools: "24" }, "*");
  19273. } else if (t == 25) {
  19274. window.topU.postMessage({ tools: "25" }, "*");
  19275. } else if (t == 31) {
  19276. window.topU.postMessage({ tools: "31" }, "*");
  19277. } else if (t == 28) {
  19278. window.topU.postMessage({ tools: "28" }, "*");
  19279. } else if (t == 37) {
  19280. window.topU.postMessage({ tools: "37" }, "*");
  19281. } else if (t == 38) {
  19282. window.topU.postMessage({ tools: "38" }, "*");
  19283. } else if (t == 39) {
  19284. window.topU.postMessage({ tools: "39" }, "*");
  19285. } else if (t == 32) {
  19286. window.topU.postMessage({ tools: "32" }, "*");
  19287. } else if (t == 66) {
  19288. window.topU.postMessage({ tools: "66" }, "*");
  19289. } else if (t == 67) {
  19290. window.topU.postMessage({ tools: "67" }, "*");
  19291. } else if (t == 68) {
  19292. window.topU.postMessage({ tools: "68" }, "*");
  19293. } else if (t == 57) {
  19294. // window.topU.postMessage({ tools: "57" }, "*");
  19295. window.topU.postMessage(
  19296. {
  19297. tools: "57u",
  19298. cid: this.id,
  19299. stage: this.courseType,
  19300. task: this.taskCount,
  19301. tool: i,
  19302. },
  19303. "*"
  19304. );
  19305. } else if (t == 58) {
  19306. window.topU.postMessage({ tools: "58" }, "*");
  19307. } else if (t == 59) {
  19308. window.topU.postMessage({ tools: "59" }, "*");
  19309. } else if (t == 60) {
  19310. window.topU.postMessage({ tools: "60" }, "*");
  19311. } else if (t == 61) {
  19312. window.topU.postMessage({ tools: "61" }, "*");
  19313. } else if (t == 63) {
  19314. window.topU.postMessage({ tools: "63" }, "*");
  19315. } else if (t == 71) {
  19316. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  19317. // this.$message.error("该工具不可使用");
  19318. // return
  19319. // }
  19320. window.topU.postMessage({ tools: "71" }, "*");
  19321. } else if (t == 72) {
  19322. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  19323. .taskJson[index].toolChoose[i].appJson
  19324. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19325. .toolChoose[i].appJson
  19326. : "";
  19327. if(!item || !item.url){
  19328. this.$message.error("应用连接为空, 请到课程管理中添加");
  19329. return;
  19330. }
  19331. if (!document.fullscreenElement) {
  19332. this.enterFullScreen();
  19333. }
  19334. this.$refs.appStoreC.getData(item.url,this.userid)
  19335. // window.topU.postMessage({ tools: "72", data: item }, "*");
  19336. // window.open(item.url, "_blank");
  19337. } else if (t == 69) {
  19338. if (this.worksStudent[i].length) {
  19339. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19340. if (this.userid == this.worksStudent[i][k].userid) {
  19341. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  19342. break;
  19343. } else {
  19344. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  19345. }
  19346. }
  19347. } else {
  19348. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  19349. }
  19350. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  19351. .taskJson[index].toolChoose[i].englishList
  19352. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19353. .toolChoose[i].englishList
  19354. : {};
  19355. this.englishToolIndex = i;
  19356. this.myAnList = this.myAnswerList1;
  19357. this.engDialogVisible = true;
  19358. } else if (t == 70) {
  19359. if (this.worksStudent[i].length) {
  19360. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19361. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  19362. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  19363. break;
  19364. } else {
  19365. this.englishVoiceJsonWork = [];
  19366. }
  19367. }
  19368. } else {
  19369. this.englishVoiceJsonWork = [];
  19370. }
  19371. let englishVoiceJson = {}
  19372. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19373. .taskJson[index].toolChoose[i].englishVoiceJson
  19374. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19375. .toolChoose[i].englishVoiceJson
  19376. : {};
  19377. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  19378. this.EnglishVoiceDialog = true;
  19379. } else if (t == 65) {
  19380. if (this.tType == 2) {
  19381. this.$message.error("不支持学生使用");
  19382. return;
  19383. }
  19384. this.uploadCid = this.tcid;
  19385. if (!this.uploadCid) {
  19386. this.$message.error(
  19387. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  19388. );
  19389. return;
  19390. }
  19391. this.selectPickStudent();
  19392. } else if (t == 26) {
  19393. window.topU.postMessage(
  19394. {
  19395. tools: "26",
  19396. cid: this.id,
  19397. stage: this.courseType,
  19398. task: this.taskCount,
  19399. tool: i,
  19400. },
  19401. "*"
  19402. );
  19403. } else if (t == 40) {
  19404. if (this.evalCount > 0) {
  19405. this.updateCount(this.evalCount, t);
  19406. } else {
  19407. this.evalCount++;
  19408. a = this.evalCount;
  19409. this.toolsCount(a, t);
  19410. }
  19411. this.eScore = { eBzText: "", eStar: [] };
  19412. if (this.worksStudent[i].length) {
  19413. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19414. if (this.userid == this.worksStudent[i][k].userid) {
  19415. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19416. this.rateJson =
  19417. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19418. index
  19419. ].toolChoose[i].rateJson;
  19420. break;
  19421. } else {
  19422. this.rateJson =
  19423. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19424. index
  19425. ].toolChoose[i].rateJson;
  19426. }
  19427. }
  19428. } else {
  19429. this.rateJson =
  19430. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19431. index
  19432. ].toolChoose[i].rateJson;
  19433. }
  19434. this.isStar = false;
  19435. this.studentEvalDialogVisible = true;
  19436. } else if (t == 41) {
  19437. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19438. .taskJson[index].toolChoose[i].selectJson
  19439. ? JSON.parse(
  19440. JSON.stringify(
  19441. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19442. index
  19443. ].toolChoose[i].selectJson
  19444. )
  19445. )
  19446. : { url: "", select: [], answer: [] };
  19447. if (this.worksStudent[i].length) {
  19448. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19449. if (this.userid == this.worksStudent[i][k].userid) {
  19450. var a = this.worksStudent[i][k].works.split(",");
  19451. for (var ki = 0; ki < a.length; ki++) {
  19452. a[ki] = parseInt(a[ki]);
  19453. }
  19454. this.selectAnswer = {
  19455. answer: a,
  19456. stu: this.worksStudent[i][k].sName,
  19457. };
  19458. break;
  19459. } else {
  19460. this.selectAnswer = { answer: [], stu: "" };
  19461. }
  19462. }
  19463. } else {
  19464. this.selectAnswer = { answer: [], stu: "" };
  19465. }
  19466. this.isSelect = false;
  19467. this.dialogVisibleSelect = true;
  19468. } else if (t == 44) {
  19469. window.topU.postMessage({ tools: "44" }, "*");
  19470. } else if (t == 47) {
  19471. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19472. .taskJson[index].toolChoose[i].sentenceList
  19473. ? JSON.parse(
  19474. JSON.stringify(
  19475. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19476. index
  19477. ].toolChoose[i].sentenceList
  19478. )
  19479. )
  19480. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19481. for (var q = 0; q < this.sentenceList.length; q++) {
  19482. this.sentenceList[q].chooseSenList = [];
  19483. this.sentenceList[q].addChangeSen = [];
  19484. this.sentenceList[q].addChangeSen = JSON.parse(
  19485. JSON.stringify(this.sentenceList[q].addSentence)
  19486. );
  19487. this.sentenceList[q].chooseSenList.length =
  19488. this.sentenceList[q].rightAnswer.length;
  19489. }
  19490. this.dialogVisibleSentence = true;
  19491. } else if (t == 48) {
  19492. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19493. .taskJson[index].toolChoose[i].tableJson
  19494. ? JSON.parse(
  19495. JSON.stringify(
  19496. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19497. index
  19498. ].toolChoose[i].tableJson
  19499. )
  19500. )
  19501. : { text: "" };
  19502. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  19503. if (this.worksStudent[i].length) {
  19504. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19505. if (this.userid == this.worksStudent[i][k].userid) {
  19506. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19507. break;
  19508. }
  19509. }
  19510. }
  19511. this.dialogVisibleTable = true;
  19512. } else if (t == 52) {
  19513. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19514. .taskJson[index].toolChoose[i].wordJson
  19515. ? JSON.parse(
  19516. JSON.stringify(
  19517. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19518. index
  19519. ].toolChoose[i].wordJson
  19520. )
  19521. )
  19522. : { text: "" };
  19523. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  19524. if (this.worksStudent[i].length) {
  19525. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19526. if (this.userid == this.worksStudent[i][k].userid) {
  19527. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19528. break;
  19529. }
  19530. }
  19531. }
  19532. this.dialogVisibleWord = true;
  19533. } else if (t == 49) {
  19534. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  19535. return
  19536. }
  19537. this.groupJson =
  19538. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19539. index
  19540. ].toolChoose[i].groupJson;
  19541. this.islock = this.groupJson.islock == 1 ? true : false;
  19542. this.dialogVisibleGroup = true;
  19543. } else if (t == 62) {
  19544. this.videoType = 0;
  19545. this.videoJson = {};
  19546. this.videoJson =
  19547. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19548. index
  19549. ].toolChoose[i].videoJson;
  19550. this.dialogVisibleVideo = true;
  19551. }
  19552. this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
  19553. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  19554. },
  19555. teacherWorkSubmit(t, i, index, s) {
  19556. console.log('t',t);
  19557. if(t == 72) return
  19558. this.sStudent = s;
  19559. this.toolindex = i;
  19560. this.sTool = t;
  19561. if (this.tType !== "1" && this.tType !== "4") {
  19562. return;
  19563. }
  19564. if (t == 16 || t == 32 || t == 50) {
  19565. this.dialogVisibleWorks = true;
  19566. } else if (t == 15) {
  19567. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19568. .taskJson[index].toolChoose[i].answerQ
  19569. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19570. .toolChoose[i].answerQ
  19571. : "";
  19572. this.questionAnswer = "";
  19573. this.answerDialogVisibleTeacher = true; //问答
  19574. } else if (t == 52) {
  19575. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19576. .taskJson[index].toolChoose[i].wordJson
  19577. ? JSON.parse(
  19578. JSON.stringify(
  19579. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19580. index
  19581. ].toolChoose[i].wordJson
  19582. )
  19583. )
  19584. : { text: "" };
  19585. if (this.worksStudent[i].length) {
  19586. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19587. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19588. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19589. break;
  19590. }
  19591. }
  19592. }
  19593. this.dialogVisibleWordTeacher = true; //文档
  19594. } else if (t == 4) {
  19595. this.radio = [];
  19596. this.noteName = "";
  19597. this.isAnswer = false;
  19598. if (this.askCount > 0) {
  19599. this.updateCount(this.askCount, t);
  19600. } else {
  19601. this.askCount++;
  19602. a = this.askCount;
  19603. this.toolsCount(a, t);
  19604. }
  19605. if (!this.dialogVisible2) {
  19606. this.askJson.askJson =
  19607. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19608. index
  19609. ].toolChoose[i].askJson;
  19610. this.askJson.askTitle =
  19611. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19612. index
  19613. ].toolChoose[i].askTitle;
  19614. this.askJson.askCount =
  19615. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19616. index
  19617. ].toolChoose[i].askCount;
  19618. } else {
  19619. this.askJson.askJson = this.chapTools.askJson.askJson;
  19620. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  19621. this.askJson.askCount = this.chapTools.askJson.askCount;
  19622. }
  19623. for (var k = 0; k < this.askJson.askJson.length; k++) {
  19624. if (this.askJson.askJson[k].type == "2") {
  19625. this.radio.push([]);
  19626. } else {
  19627. this.radio.push("");
  19628. }
  19629. }
  19630. this.dialogVisible5Teacher = true;
  19631. } else if (t == 45) {
  19632. this.noteName = "";
  19633. this.radio = [];
  19634. this.isAnswer = false;
  19635. if (this.askCount > 0) {
  19636. this.updateCount(this.askCount, t);
  19637. } else {
  19638. this.askCount++;
  19639. a = this.askCount;
  19640. this.toolsCount(a, t);
  19641. }
  19642. this.testJson =
  19643. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19644. index
  19645. ].toolChoose[i].testJson;
  19646. for (var k = 0; k < this.testJson.testJson.length; k++) {
  19647. if (this.testJson.testJson[k].type == "2") {
  19648. this.radio.push([]);
  19649. } else {
  19650. this.radio.push("");
  19651. }
  19652. }
  19653. this.dialogVisibleChoiceTeacher = true;
  19654. } else if (t == 41) {
  19655. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19656. .taskJson[index].toolChoose[i].selectJson
  19657. ? JSON.parse(
  19658. JSON.stringify(
  19659. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19660. index
  19661. ].toolChoose[i].selectJson
  19662. )
  19663. )
  19664. : { url: "", select: [], answer: [] };
  19665. if (this.worksStudent[i].length) {
  19666. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19667. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19668. var a = this.worksStudent[i][k].works.split(",");
  19669. for (var ki = 0; ki < a.length; ki++) {
  19670. a[ki] = parseInt(a[ki]);
  19671. }
  19672. this.selectAnswer = {
  19673. answer: a,
  19674. stu: this.worksStudent[i][k].sName,
  19675. };
  19676. break;
  19677. } else {
  19678. this.selectAnswer = { answer: [], stu: "" };
  19679. }
  19680. }
  19681. } else {
  19682. this.selectAnswer = { answer: [], stu: "" };
  19683. }
  19684. this.isSelect = false;
  19685. this.dialogVisibleSelectTeacher = true;
  19686. } else if (t == 47) {
  19687. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19688. .taskJson[index].toolChoose[i].sentenceList
  19689. ? JSON.parse(
  19690. JSON.stringify(
  19691. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19692. index
  19693. ].toolChoose[i].sentenceList
  19694. )
  19695. )
  19696. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19697. for (var q = 0; q < this.sentenceList.length; q++) {
  19698. this.sentenceList[q].chooseSenList = [];
  19699. this.sentenceList[q].addChangeSen = [];
  19700. this.sentenceList[q].addChangeSen = JSON.parse(
  19701. JSON.stringify(this.sentenceList[q].addSentence)
  19702. );
  19703. this.sentenceList[q].chooseSenList.length =
  19704. this.sentenceList[q].rightAnswer.length;
  19705. }
  19706. this.dialogVisibleSentenceTeacher = true;
  19707. } else if (t == 48) {
  19708. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19709. .taskJson[index].toolChoose[i].tableJson
  19710. ? JSON.parse(
  19711. JSON.stringify(
  19712. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19713. index
  19714. ].toolChoose[i].tableJson
  19715. )
  19716. )
  19717. : { text: "" };
  19718. if (this.worksStudent[i].length) {
  19719. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19720. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19721. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19722. break;
  19723. }
  19724. }
  19725. }
  19726. this.dialogVisibleTableTeacher = true;
  19727. } else if (t == 40) {
  19728. if (this.evalCount > 0) {
  19729. this.updateCount(this.evalCount, t);
  19730. } else {
  19731. this.evalCount++;
  19732. a = this.evalCount;
  19733. this.toolsCount(a, t);
  19734. }
  19735. this.eScore = { eBzText: "", eStar: [] };
  19736. if (this.worksStudent[i].length) {
  19737. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19738. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19739. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19740. this.rateJson =
  19741. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19742. index
  19743. ].toolChoose[i].rateJson;
  19744. break;
  19745. } else {
  19746. this.rateJson =
  19747. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19748. index
  19749. ].toolChoose[i].rateJson;
  19750. }
  19751. }
  19752. } else {
  19753. this.rateJson =
  19754. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19755. index
  19756. ].toolChoose[i].rateJson;
  19757. }
  19758. this.isStar = false;
  19759. this.studentEvalDialogVisibleTeacher = true;
  19760. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  19761. window.topU.postMessage(
  19762. {
  19763. tools: t + "teacher",
  19764. cid: this.id,
  19765. stage: this.courseType,
  19766. task: this.taskCount,
  19767. tool: i,
  19768. student: this.sStudent,
  19769. },
  19770. "*"
  19771. );
  19772. }else if (t == 72) {
  19773. if (!document.fullscreenElement) {
  19774. this.enterFullScreen();
  19775. }
  19776. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  19777. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  19778. }
  19779. },
  19780. openCocoPi(tool, i, uid, uname) {
  19781. let student = {
  19782. userid: uid,
  19783. student: uname,
  19784. };
  19785. if (tool == 57) {
  19786. window.topU.postMessage(
  19787. {
  19788. tools: tool + "teacher",
  19789. cid: this.id,
  19790. stage: this.courseType,
  19791. task: this.taskCount,
  19792. tool: i,
  19793. student: student,
  19794. },
  19795. "*"
  19796. );
  19797. }
  19798. },
  19799. setRightAnswer(s, i, j) {
  19800. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  19801. if (
  19802. this.sentenceList[i].chooseSenList[q] == undefined ||
  19803. this.sentenceList[i].chooseSenList[q] == ""
  19804. ) {
  19805. this.sentenceList[i].chooseSenList[q] = s;
  19806. this.sentenceList[i].addChangeSen[j] = "";
  19807. break;
  19808. }
  19809. }
  19810. this.$forceUpdate();
  19811. },
  19812. returnCard(r, i, j) {
  19813. var a = this.sentenceList[i].addSentence.indexOf(r);
  19814. this.sentenceList[i].chooseSenList[j] = "";
  19815. this.sentenceList[i].addChangeSen[a] = r;
  19816. this.$forceUpdate();
  19817. },
  19818. // addSentenceTool() {
  19819. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19820. // this.taskCount
  19821. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  19822. // this.sentenceList = [
  19823. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  19824. // ];
  19825. // this.dialogVisibleSentence = false;
  19826. // },
  19827. toolsCount(a, t) {
  19828. let params = {
  19829. cid: this.id,
  19830. chid: this.courseType,
  19831. uid: this.userid,
  19832. tid: t,
  19833. count: a,
  19834. };
  19835. this.ajax
  19836. .get(this.$store.state.api + "insertToolsCount", params)
  19837. .then((res) => {
  19838. this.selectCount();
  19839. })
  19840. .catch((err) => {
  19841. console.error(err);
  19842. });
  19843. },
  19844. updateCount(c, t) {
  19845. c++;
  19846. let params = {
  19847. cid: this.id,
  19848. chid: this.courseType,
  19849. uid: this.userid,
  19850. tid: t,
  19851. count: c,
  19852. };
  19853. this.ajax
  19854. .get(this.$store.state.api + "updateToolsCount", params)
  19855. .then((res) => {
  19856. this.selectCount();
  19857. })
  19858. .catch((err) => {
  19859. console.error(err);
  19860. });
  19861. },
  19862. checkEva() {
  19863. if (this.evalua != "") {
  19864. for (var i = 0; i < this.evaJuri.length; i++) {
  19865. if (this.evalua == this.evaJuri[i].id) {
  19866. this.eTitle = this.evaJuri[i].title;
  19867. this.eJson = JSON.parse(this.evaJuri[i].content);
  19868. }
  19869. }
  19870. this.$forceUpdate();
  19871. setTimeout(() => {
  19872. this.setMindData();
  19873. }, 0);
  19874. }
  19875. },
  19876. selectEva() {
  19877. let params = {
  19878. oid: this.oid,
  19879. };
  19880. this.ajax
  19881. .get(this.$store.state.api + "selectAllEvaluation", params)
  19882. .then((res) => {
  19883. this.evaJuri = res.data[0];
  19884. })
  19885. .catch((err) => {
  19886. console.error(err);
  19887. });
  19888. },
  19889. setMindData() {
  19890. this.data.data = [];
  19891. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  19892. let _eJson = Object.keys(this.eJson);
  19893. let _e = this.eJson;
  19894. for (let i = 0; i < _eJson.length; i++) {
  19895. let element = _e[_eJson[i]];
  19896. this.data.data.push({
  19897. id: element.id,
  19898. parentid: "root",
  19899. topic: element.name,
  19900. });
  19901. let _eJsonc = Object.keys(element.child);
  19902. let _e2 = element.child;
  19903. for (let j = 0; j < _eJsonc.length; j++) {
  19904. let _ec = _e2[_eJsonc[j]];
  19905. this.data.data.push({
  19906. id: _ec.id,
  19907. parentid: element.id,
  19908. topic: _ec.name,
  19909. });
  19910. let _eJsonz = Object.keys(_ec.child);
  19911. let _e3 = _ec.child;
  19912. for (let z = 0; z < _eJsonz.length; z++) {
  19913. let _ez = _e3[_eJsonz[z]];
  19914. this.data.data.push({
  19915. id: _ez.id,
  19916. parentid: _ec.id,
  19917. topic: _ez.name,
  19918. });
  19919. }
  19920. }
  19921. }
  19922. this.$forceUpdate();
  19923. },
  19924. checkFileFull(type, url) {
  19925. this.fullDialogVisible = true;
  19926. this.fulltype = type;
  19927. this.fullUrl = url;
  19928. },
  19929. async checkFileFull1(t, f) {
  19930. this.fullDialogVisible = true;
  19931. if (t == 6) {
  19932. this.fulltype = 1;
  19933. console.log('checkFileFull1',f);
  19934. this.fullUrl = JSON.parse(JSON.stringify(f));
  19935. } else if (t == 8) {
  19936. this.fulltype = 2;
  19937. this.fullUrl = f.url;
  19938. } else if (t == 16) {
  19939. this.fulltype = 16;
  19940. this.fullUrl = f.url;
  19941. } else if (t == 15) {
  19942. this.fulltype = 4;
  19943. this.fullUrl = f.url;
  19944. } else if (
  19945. t == 3 &&
  19946. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  19947. "PDF"
  19948. ) {
  19949. this.fulltype = 3;
  19950. this.fullUrl = f.url;
  19951. } else if (t == 3) {
  19952. this.fulltype = 2;
  19953. let _uuurl = await this.checkLink(f.url);
  19954. console.log(_uuurl)
  19955. this.fullUrl =
  19956. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  19957. }
  19958. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  19959. },
  19960. openSname(n, id, i, uid) {
  19961. this.snameWid = id;
  19962. this.worksSName = n;
  19963. this.worksSid = uid == n ? "" : uid;
  19964. this.toolindex = i;
  19965. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19966. if (!this.uploadCid) {
  19967. this.$message.error(
  19968. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19969. );
  19970. return;
  19971. }
  19972. this.selectUploadStudent(1);
  19973. },
  19974. updateName() {
  19975. let params = {
  19976. n: this.worksSName,
  19977. cid: this.snameWid,
  19978. };
  19979. this.ajax
  19980. .get(this.$store.state.api + "updateCourseWorksName", params)
  19981. .then((res) => {
  19982. this.$message({
  19983. message: "修改成功",
  19984. type: "success",
  19985. });
  19986. this.dialogVisibleSname = false;
  19987. this.getCourseDetail(2);
  19988. this.snameWid = "";
  19989. this.worksSName = "";
  19990. })
  19991. .catch((err) => {
  19992. console.error(err);
  19993. });
  19994. },
  19995. downloadFile2(f) {
  19996. // const loading = this.$loading.service({
  19997. // background: "rgba(255, 255, 255, 0.7)",
  19998. // target: document.body,
  19999. // text: "文件加载中...",
  20000. // });
  20001. // let url2 = f.url;
  20002. // let _url2 = "";
  20003. // if (
  20004. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20005. // ) {
  20006. // _url2 = url2.split(
  20007. // "https://view.officeapps.live.com/op/view.aspx?src="
  20008. // )[1];
  20009. // } else {
  20010. // _url2 = url2;
  20011. // }
  20012. // let params = {
  20013. // url: _url2,
  20014. // name: f.name,
  20015. // };
  20016. // this.ajax
  20017. // .get(this.$store.state.api + "download", params)
  20018. // .then((res) => {
  20019. // loading.close();
  20020. // let content = res.data.data.data;
  20021. // let ab = new ArrayBuffer(content.length);
  20022. // let view = new Uint8Array(ab);
  20023. // for (var i = 0; i < content.length; ++i) {
  20024. // view[i] = content[i];
  20025. // }
  20026. // let elink = document.createElement("a");
  20027. // elink.download = f.name;
  20028. // elink.style.display = "none";
  20029. // let blob = new Blob([ab], {
  20030. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  20031. // });
  20032. // elink.href = URL.createObjectURL(blob);
  20033. // document.body.appendChild(elink);
  20034. // elink.click();
  20035. // document.body.removeChild(elink);
  20036. // })
  20037. // .catch((err) => {
  20038. // loading.close();
  20039. // console.error(err);
  20040. // });
  20041. var credentials = {
  20042. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20043. secretAccessKey: "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",
  20044. }; //秘钥形式的登录上传
  20045. window.AWS.config.update(credentials);
  20046. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20047. let url2 = f.url;
  20048. let _url2 = "";
  20049. if (
  20050. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20051. ) {
  20052. _url2 = url2.split(
  20053. "https://view.officeapps.live.com/op/view.aspx?src="
  20054. )[1];
  20055. } else {
  20056. _url2 = url2;
  20057. }
  20058. let _this = this;
  20059. _this.downLoading = true
  20060. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  20061. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  20062. var params = {
  20063. Bucket: "ccrb",
  20064. Key: name
  20065. };
  20066. s3.getObject(params, function (err, data) {
  20067. _this.downLoading = false
  20068. if (err) console.log(err, err.stack); // an error occurred
  20069. else {
  20070. let url = window.URL.createObjectURL(new Blob([data.Body]));
  20071. let a = document.createElement("a");
  20072. a.name = f.name;
  20073. a.href = url;
  20074. a.download = f.name;
  20075. a.click();
  20076. console.log(data);
  20077. } // sxuccessful response
  20078. });
  20079. return;
  20080. let url = f.url;
  20081. let _url = "";
  20082. if (
  20083. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20084. ) {
  20085. _url = url.split(
  20086. "https://view.officeapps.live.com/op/view.aspx?src="
  20087. )[1];
  20088. } else {
  20089. _url = url;
  20090. }
  20091. _this.downLoading = true
  20092. // const loading = _this.$loading.service({
  20093. // background: "rgba(255, 255, 255, 0.7)",
  20094. // target: document.body,
  20095. // text: "文件加载中...",
  20096. // });
  20097. let x = new XMLHttpRequest();
  20098. x.open("GET", _url, true);
  20099. x.responseType = "blob";
  20100. x.onload = function () {
  20101. _this.downLoading = false
  20102. // loading.close();
  20103. let url = window.URL.createObjectURL(new Blob([x.response]));
  20104. let a = document.createElement("a");
  20105. a.name = f.name;
  20106. a.href = url;
  20107. a.download = f.name;
  20108. a.click();
  20109. };
  20110. x.send();
  20111. },
  20112. downloadFile(url,uid) {
  20113. if (this.tType == 1 || this.userid == uid) {
  20114. var credentials = {
  20115. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20116. secretAccessKey: "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",
  20117. }; //秘钥形式的登录上传
  20118. window.AWS.config.update(credentials);
  20119. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20120. let url2 = url;
  20121. let _url2 = "";
  20122. if (
  20123. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20124. ) {
  20125. _url2 = url2.split(
  20126. "https://view.officeapps.live.com/op/view.aspx?src="
  20127. )[1];
  20128. } else {
  20129. _url2 = url2;
  20130. }
  20131. const loading2 = this.$loading.service({
  20132. background: "rgba(255, 255, 255, 0.7)",
  20133. target: document.body,
  20134. text: "文件加载中...",
  20135. });
  20136. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  20137. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  20138. var params = {
  20139. Bucket: "ccrb",
  20140. Key: name
  20141. };
  20142. s3.getObject(params, function (err, data) {
  20143. loading2.close();
  20144. if (err) console.log(err, err.stack); // an error occurred
  20145. else {
  20146. let url = window.URL.createObjectURL(new Blob([data.Body]));
  20147. let a = document.createElement("a");
  20148. a.name = name;
  20149. a.href = url;
  20150. a.download = name;
  20151. a.click();
  20152. console.log(data);
  20153. } // sxuccessful response
  20154. });
  20155. }
  20156. return;
  20157. let _this = this;
  20158. let _url = "";
  20159. if (
  20160. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20161. ) {
  20162. _url = url.split(
  20163. "https://view.officeapps.live.com/op/view.aspx?src="
  20164. )[1];
  20165. } else {
  20166. _url = url;
  20167. }
  20168. const x = new XMLHttpRequest();
  20169. x.open("GET", _url, true);
  20170. x.responseType = "blob";
  20171. // this.downLoading = true
  20172. const loading = _this.$loading.service({
  20173. background: "rgba(255, 255, 255, 0.7)",
  20174. target: document.body,
  20175. text: "文件加载中...",
  20176. });
  20177. // _this.$message.success("文件下载中...");
  20178. x.onload = function (e) {
  20179. this.downLoading = false
  20180. loading.close();
  20181. let content = x.response;
  20182. let elink = document.createElement("a");
  20183. elink.download = decodeURI(
  20184. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  20185. );
  20186. elink.style.display = "none";
  20187. let blob = new Blob([content]);
  20188. elink.href = URL.createObjectURL(blob);
  20189. document.body.appendChild(elink);
  20190. elink.click();
  20191. document.body.removeChild(elink);
  20192. };
  20193. x.send();
  20194. },
  20195. openLine(url) {
  20196. window.open(url);
  20197. },
  20198. resize() {
  20199. if (document.getElementsByClassName("box_course").length) {
  20200. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20201. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20202. if (this.showType == 2 || this.showType == 3) {
  20203. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  20204. document.getElementsByClassName("navBox")[0].style.height =
  20205. a - 40 + 0+ "px";
  20206. }
  20207. } else {
  20208. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  20209. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  20210. }
  20211. }
  20212. }
  20213. this.Stbodywidth =
  20214. document.getElementsByClassName("student_body").length &&
  20215. document.getElementsByClassName("student_body")[0].offsetWidth;
  20216. },
  20217. closeDraw() {
  20218. this.bg = null;
  20219. this.drawShow = false;
  20220. },
  20221. showPicturePaint(url) {
  20222. let params = {
  20223. img: url,
  20224. };
  20225. this.ajax
  20226. .get(this.$store.state.api + "imgToBase64", params)
  20227. .then((res) => {
  20228. this.drawShow = true;
  20229. this.bg = res.data[0].img;
  20230. })
  20231. .catch((err) => {
  20232. console.error(err);
  20233. });
  20234. },
  20235. addImgDraw(base64) {
  20236. let file = { name: "批注图.png" };
  20237. let img = this.dataUrlToFile(base64, file);
  20238. this.beforeUpload1(img, 5);
  20239. },
  20240. addImgDrawImG(url) {
  20241. // console.log(url);
  20242. let params = [
  20243. {
  20244. wid: this.commentDetail.wid,
  20245. img: url,
  20246. },
  20247. ];
  20248. this.ajax
  20249. .post(this.$store.state.api + "updateCourseWorks", params)
  20250. .then((res) => {
  20251. this.$message({
  20252. message: "提交成功",
  20253. type: "success",
  20254. });
  20255. this.drawShow = false;
  20256. this.bg = "";
  20257. this.selectSWorks();
  20258. this.selectStudent();
  20259. })
  20260. .catch((err) => {
  20261. this.$message.error("提交失败");
  20262. console.error(err);
  20263. });
  20264. },
  20265. deletePicturePaint() {
  20266. this.$confirm("确定删除此批注吗?", "提示", {
  20267. confirmButtonText: "确定",
  20268. cancelButtonText: "取消",
  20269. type: "warning",
  20270. })
  20271. .then(() => {
  20272. let params = [
  20273. {
  20274. wid: this.commentDetail.wid,
  20275. img: "",
  20276. },
  20277. ];
  20278. this.ajax
  20279. .post(this.$store.state.api + "updateCourseWorks", params)
  20280. .then((res) => {
  20281. this.$message({
  20282. message: "删除成功",
  20283. type: "success",
  20284. });
  20285. this.selectSWorks();
  20286. this.selectStudent();
  20287. })
  20288. .catch((err) => {
  20289. this.$message.error("删除失败");
  20290. console.error(err);
  20291. });
  20292. })
  20293. .catch(() => {});
  20294. },
  20295. getAudioVideo(constraintsData) {
  20296. if (navigator.mediaDevices === undefined) {
  20297. navigator.mediaDevices = {};
  20298. }
  20299. if (navigator.mediaDevices.getUserMedia === undefined) {
  20300. navigator.mediaDevices.getUserMedia = function (constraints) {
  20301. // 首先,如果有getUserMedia的话,就获得它
  20302. var getUserMedia =
  20303. navigator.getUserMedia ||
  20304. navigator.webkitGetUserMedia ||
  20305. navigator.mozGetUserMedia ||
  20306. navigator.msGetUserMedia;
  20307. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  20308. if (!getUserMedia) {
  20309. return Promise.reject({ code: 404 });
  20310. }
  20311. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  20312. return new Promise(function (resolve, reject) {
  20313. getUserMedia.call(navigator, constraints, resolve, reject);
  20314. });
  20315. };
  20316. }
  20317. return navigator.mediaDevices.getUserMedia(constraintsData);
  20318. },
  20319. /**
  20320. * 开始录制
  20321. */
  20322. startRecording(callback) {
  20323. let _function = (screenStream) => {
  20324. this.addStreamStopListener(screenStream, () => {
  20325. console.log("流停止监听");
  20326. this.stopRecording();
  20327. this.$emit("streamStop", {});
  20328. // this.stopRecording();
  20329. });
  20330. var options = {
  20331. type: "video",
  20332. mimeType: "video/webm",
  20333. disableLogs: false,
  20334. getNativeBlob: false, // enable it for longer recordings
  20335. ignoreMutedMedia: false,
  20336. };
  20337. // this.video.srcObject = screenStream;
  20338. this.recorder = RecordRTC(screenStream, options);
  20339. this.recorder.startRecording();
  20340. this.recorder.screen = screenStream;
  20341. this.videoStart = true;
  20342. // callback(true);
  20343. };
  20344. this.getAudioVideo({ audio: true })
  20345. .then((res) => {
  20346. this.captureScreen(_function, true);
  20347. console.log("已点击允许,开启成功");
  20348. })
  20349. .catch((err) => {
  20350. // console.log('浏览器不支持,请更换浏览器')
  20351. // } else {
  20352. this.captureScreen(_function, false);
  20353. console.log("请检查是否存在麦克风");
  20354. });
  20355. },
  20356. /**
  20357. * 停止录制
  20358. */
  20359. stopRecording(callback) {
  20360. this.recorder.stopRecording(() => {
  20361. // this.video.src = this.video.srcObject = null;
  20362. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  20363. const url = URL.createObjectURL(this.recorder.getBlob());
  20364. const a = document.createElement("a"); //this.fileName+
  20365. let videoFile = new File(
  20366. [this.recorder.getBlob()],
  20367. this.courseDetail.title + "录屏.mp4",
  20368. {
  20369. type: "video/mp4",
  20370. }
  20371. );
  20372. let downloadUrl = URL.createObjectURL(videoFile);
  20373. if(this.$refs.classRoomHelperRef){
  20374. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  20375. }
  20376. document.body.appendChild(a);
  20377. a.style.display = "none";
  20378. a.href = url;
  20379. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  20380. a.click();
  20381. this.recorder.screen.stop();
  20382. this.recorder.destroy();
  20383. this.recorder = null;
  20384. this.videoStart = false;
  20385. // callback(false);
  20386. });
  20387. },
  20388. //初始化
  20389. captureScreen(callback, type) {
  20390. if (navigator.getDisplayMedia) {
  20391. //录制结束,文件下载
  20392. navigator
  20393. .getDisplayMedia({
  20394. video: true,
  20395. })
  20396. .then((screenStream) => {
  20397. if (type) {
  20398. navigator.mediaDevices
  20399. .getUserMedia({ audio: true })
  20400. .then((mic) => {
  20401. screenStream.addTrack(mic.getTracks()[0]);
  20402. callback(screenStream);
  20403. });
  20404. } else {
  20405. callback(screenStream);
  20406. }
  20407. })
  20408. .catch(function (error) {
  20409. console.log("error", error);
  20410. });
  20411. } else if (navigator.mediaDevices.getDisplayMedia) {
  20412. navigator.mediaDevices
  20413. .getDisplayMedia({
  20414. video: true,
  20415. })
  20416. .then((screenStream) => {
  20417. if (type) {
  20418. navigator.mediaDevices
  20419. .getUserMedia({ audio: true })
  20420. .then((mic) => {
  20421. screenStream.addTrack(mic.getTracks()[0]);
  20422. callback(screenStream);
  20423. });
  20424. } else {
  20425. callback(screenStream);
  20426. }
  20427. })
  20428. .catch(function (error) {
  20429. console.log("error", error);
  20430. });
  20431. } else {
  20432. var error = "getDisplayMedia API are not supported in this browser.";
  20433. console.log("error", error);
  20434. alert(error);
  20435. }
  20436. },
  20437. //流监听
  20438. addStreamStopListener(stream, callback) {
  20439. stream.addEventListener(
  20440. "ended",
  20441. function () {
  20442. callback();
  20443. callback = function () {};
  20444. },
  20445. false
  20446. );
  20447. stream.addEventListener(
  20448. "inactive",
  20449. function () {
  20450. callback();
  20451. callback = function () {};
  20452. },
  20453. false
  20454. );
  20455. stream.getTracks().forEach(function (track) {
  20456. track.addEventListener(
  20457. "ended",
  20458. function () {
  20459. callback();
  20460. callback = function () {};
  20461. },
  20462. false
  20463. );
  20464. track.addEventListener(
  20465. "inactive",
  20466. function () {
  20467. callback();
  20468. callback = function () {};
  20469. },
  20470. false
  20471. );
  20472. });
  20473. },
  20474. updateGroup() {
  20475. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20476. this.dialogVisibleGroup2 = true;
  20477. },
  20478. numberPan() {
  20479. if (
  20480. /[^\d]/.test(this.groupJson.number) ||
  20481. this.groupJson.number < 2 ||
  20482. this.groupJson.number > 10
  20483. ) {
  20484. this.$message.error("请输入2-10的数字");
  20485. this.groupJson.number = "";
  20486. }
  20487. },
  20488. updateGroupJson() {
  20489. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  20490. if (
  20491. this.groupStudentUid[this.toolindex][i].length >
  20492. this.groupJson2.number
  20493. ) {
  20494. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  20495. return;
  20496. }
  20497. }
  20498. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  20499. this.islock = this.groupJson.islock == 1 ? true : false;
  20500. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20501. this.taskCount
  20502. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  20503. let params = [
  20504. {
  20505. cid: this.id,
  20506. chapters: JSON.stringify(this.chapInfoList),
  20507. uid: this.userid,
  20508. unitIndex: this.courseType,
  20509. },
  20510. ];
  20511. this.ajax
  20512. .post(this.$store.state.api + "updateWorkNew4", params)
  20513. .then((res) => {
  20514. this.$message.success("设置成功");
  20515. this.getCourseDetail(2);
  20516. this.dialogVisibleGroup2 = false;
  20517. this.groupJson2 = {};
  20518. this.$forceUpdate();
  20519. })
  20520. .catch((err) => {
  20521. this.$message.error("网络不佳");
  20522. console.error(err);
  20523. });
  20524. },
  20525. lockChair() {
  20526. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20527. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  20528. this.updateGroupJson();
  20529. },
  20530. selectGroup(index) {
  20531. this.getCourseDetail(2, index);
  20532. },
  20533. joinGroup(index) {
  20534. if (this.groupJson.islock == 2) {
  20535. this.$message.error("位置已被锁定,无法加入");
  20536. return;
  20537. }
  20538. if (
  20539. this.groupStudent[this.toolindex][index].length >
  20540. this.groupJson.number ||
  20541. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  20542. ) {
  20543. this.$message.error("位置已满,无法加入");
  20544. return;
  20545. }
  20546. let params = [
  20547. {
  20548. cid: this.id,
  20549. stage: this.courseType,
  20550. task: this.taskCount,
  20551. tool: this.toolindex,
  20552. g: index,
  20553. uid: this.userid,
  20554. },
  20555. ];
  20556. this.ajax
  20557. .post(this.$store.state.api + "joinGroup", params)
  20558. .then((res) => {
  20559. this.$message.success("加入成功");
  20560. this.getCourseDetail(2);
  20561. })
  20562. .catch((err) => {
  20563. this.$message.error("网络不佳");
  20564. console.error(err);
  20565. });
  20566. },
  20567. exitGroup(id) {
  20568. if (this.groupJson.islock == 2) {
  20569. this.$message.error("位置已被锁定,无法退出");
  20570. return;
  20571. }
  20572. let params = [
  20573. {
  20574. gid: id,
  20575. },
  20576. ];
  20577. this.ajax
  20578. .post(this.$store.state.api + "exitGroup", params)
  20579. .then((res) => {
  20580. this.$message.success("退出成功");
  20581. this.getCourseDetail(2);
  20582. })
  20583. .catch((err) => {
  20584. this.$message.error("网络不佳");
  20585. console.error(err);
  20586. });
  20587. },
  20588. groupUpload(index, task, gindex) {
  20589. this.taskCount = task;
  20590. this.toolindex = index;
  20591. this.groupIndex = gindex;
  20592. this.dialogVisibleGroupWork = true;
  20593. },
  20594. updateGroupChair(user) {
  20595. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  20596. el.label = index;
  20597. return index != user.group;
  20598. });
  20599. this.updateGroupUser = user;
  20600. this.dialogVisibleUpdateGroup = true;
  20601. },
  20602. updateChair() {
  20603. if (
  20604. this.groupStudent[this.toolindex][this.checkChair].length >
  20605. this.groupJson.number ||
  20606. this.groupStudent[this.toolindex][this.checkChair].length ==
  20607. this.groupJson.number
  20608. ) {
  20609. this.$message.error("位置已满,无法加入");
  20610. return;
  20611. }
  20612. let params = [
  20613. {
  20614. cid: this.id,
  20615. stage: this.courseType,
  20616. task: this.taskCount,
  20617. tool: this.toolindex,
  20618. g: this.checkChair,
  20619. uid: this.updateGroupUser.userid,
  20620. },
  20621. ];
  20622. this.ajax
  20623. .post(this.$store.state.api + "joinGroup", params)
  20624. .then((res) => {
  20625. this.$message.success("修改成功");
  20626. this.updateGroupUser = {};
  20627. this.checkChair = "";
  20628. this.updateGroupArray = {};
  20629. this.dialogVisibleUpdateGroup = false;
  20630. this.getCourseDetail(2);
  20631. })
  20632. .catch((err) => {
  20633. this.$message.error("网络不佳");
  20634. console.error(err);
  20635. });
  20636. },
  20637. deleteGroupChair(gindex) {
  20638. this.checkDeleteGroup = [];
  20639. this.deleteGroupUser = JSON.parse(
  20640. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  20641. );
  20642. this.deleteGroupArray = this.groupJson.group[gindex];
  20643. this.groupIndex = gindex;
  20644. this.dialogVisibleDeleteGroup = true;
  20645. },
  20646. async deleteChair() {
  20647. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  20648. const gid =
  20649. this.groupStudent[this.toolindex][this.groupIndex][
  20650. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  20651. this.checkDeleteGroup[i]
  20652. )
  20653. ];
  20654. let params = [
  20655. {
  20656. gid: gid.id,
  20657. },
  20658. ];
  20659. var a = await this.deleteChairA(params);
  20660. if (i == this.checkDeleteGroup.length - 1) {
  20661. this.$message.success("退出成功");
  20662. this.dialogVisibleDeleteGroup = false;
  20663. this.deleteGroupUser = [];
  20664. this.deleteGroupArray = {};
  20665. this.groupIndex = "";
  20666. this.checkDeleteGroup = [];
  20667. this.getCourseDetail(2);
  20668. }
  20669. }
  20670. },
  20671. deleteChairA(params) {
  20672. return new Promise((resolve, reject) => {
  20673. this.ajax
  20674. .post(this.$store.state.api + "exitGroup", params)
  20675. .then((res) => {
  20676. resolve(1);
  20677. })
  20678. .catch((err) => {
  20679. this.$message.error("网络不佳");
  20680. console.error(err);
  20681. });
  20682. });
  20683. },
  20684. contract(i) {
  20685. if (this.isCloseList[i].isClose == 0) {
  20686. this.isCloseList[i].isClose = 1;
  20687. } else {
  20688. this.isCloseList[i].isClose = 0;
  20689. }
  20690. this.$forceUpdate();
  20691. },
  20692. openWordCloud(toolindex) {
  20693. this.wordCloudData = '';
  20694. let array = [];
  20695. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  20696. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  20697. array.push({ name: works });
  20698. }
  20699. if (this.isGroup) {
  20700. for (var i = 0; i < this.courseGroup.group.length; i++) {
  20701. let works = this.courseGroup.group[i].works[toolindex];
  20702. for (var j = 0; j < works.length; j++) {
  20703. let answer = JSON.parse(works[j].works)[0].answer;
  20704. array.push({ name: answer });
  20705. }
  20706. }
  20707. }
  20708. let _result = ''
  20709. array.forEach(e=>{
  20710. _result +=e.name+','
  20711. })
  20712. this.wordCloudData = _result;
  20713. this.dialogVisibleWordCloud = true;
  20714. this.wordCloudKey += 1;
  20715. },
  20716. uploadWorks(i) {
  20717. this.$confirm("确定导出作业吗?", "提示", {
  20718. confirmButtonText: "确定",
  20719. cancelButtonText: "取消",
  20720. type: "warning",
  20721. })
  20722. .then(() => {
  20723. const loading = this.$loading.service({
  20724. background: "rgba(255, 255, 255, 0.7)",
  20725. target: document.body,
  20726. text: "文件加载中...",
  20727. });
  20728. const _worksStudent = this.worksStudent;
  20729. let url = [];
  20730. var counts = {};
  20731. for (var l = 0; l < _worksStudent[i].length; l++) {
  20732. var item = _worksStudent[i][l];
  20733. var name = item.sName;
  20734. if (!counts.hasOwnProperty(name)) {
  20735. counts[name] = 0;
  20736. } else {
  20737. counts[name]++;
  20738. }
  20739. if (counts[name] > 0) {
  20740. item.sName += " (" + counts[name] + ")";
  20741. }
  20742. }
  20743. for (var l = 0; l < _worksStudent[i].length; l++) {
  20744. var item = _worksStudent[i][l];
  20745. if (
  20746. item.works.indexOf(
  20747. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  20748. ) !== -1 &&
  20749. item.works.indexOf("img") === -1
  20750. ) {
  20751. url.push({ name: item.sName, url: item.works });
  20752. }
  20753. }
  20754. // var toolList = [
  20755. // { name: "电子白板", tool: 1 },
  20756. // { name: "思维导图", tool: 3 },
  20757. // { name: "协同文档", tool: 6 },
  20758. // { name: "思维网格", tool: 7 },
  20759. // { name: "素材库", tool: 8 },
  20760. // { name: "学习资料", tool: 17 },
  20761. // { name: "便签", tool: 2 },
  20762. // { name: "问卷调查", tool: 4 },
  20763. // { name: "选择题", tool: 45 },
  20764. // { name: "倒计时", tool: 10 },
  20765. // { name: "问答", tool: 15 },
  20766. // { name: "课程设计", tool: 26 },
  20767. // { name: "训练服务器", tool: 18 },
  20768. // { name: "作业提交", tool: 16 },
  20769. // { name: "批量上传", tool: 50 },
  20770. // { name: "AIoT Blockly", tool: 21 },
  20771. // { name: "AI Python", tool: 23 },
  20772. // { name: "AI Blockly", tool: 24 },
  20773. // { name: "目标管理", tool: 25 },
  20774. // { name: "数学画板", tool: 31 },
  20775. // { name: "翻译", tool: 28 },
  20776. // { name: "魔盒识字", tool: 37 },
  20777. // { name: "数学画板", tool: 31 },
  20778. // { name: "24点", tool: 38 },
  20779. // { name: "GeoGebra", tool: 39 },
  20780. // { name: "源码编辑", tool: 32 },
  20781. // { name: "个人评价", tool: 40 },
  20782. // { name: "选择匹配", tool: 41 },
  20783. // { name: "汉字宫", tool: 44 },
  20784. // { name: "排序", tool: 47 },
  20785. // { name: "表格", tool: 48 },
  20786. // { name: "文档", tool: 52 },
  20787. // { name: "学生分组", tool: 49 },
  20788. // { name: "CocoPi", tool: 57 },
  20789. // { name: "模拟驾驶", tool: 58 },
  20790. // { name: "路径搜索", tool: 59 },
  20791. // { name: "深度学习", tool: 60 },
  20792. // { name: "全历史", tool: 61 },
  20793. // { name: "交互视频", tool: 62 },
  20794. // { name: "海龟编程", tool: 63 },
  20795. // { name: "挑人", tool: 65 },
  20796. // { name: "公式编辑", tool: 66 },
  20797. // { name: "分子结构", tool: 67 },
  20798. // { name: "时间轴", tool: 68 },
  20799. // ];
  20800. // var toolName = "";
  20801. // for(var w = 0;w<toolList.length;w++){
  20802. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  20803. // toolName = toolList[w].name;
  20804. // }
  20805. // }
  20806. console.log(url);
  20807. this.downLoadAll(url, loading);
  20808. })
  20809. .catch(() => {});
  20810. },
  20811. downLoadAll(url, loading) {
  20812. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  20813. const zip = new JSZip();
  20814. const cache = {};
  20815. const promises = [];
  20816. data.forEach((item) => {
  20817. const promise = getFile(item.url).then((data) => {
  20818. if (data.data != 1) {
  20819. // 下载文件, 并存成ArrayBuffer对象
  20820. const file_name =
  20821. item.name +
  20822. "." +
  20823. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  20824. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  20825. cache[file_name] = data.data;
  20826. }
  20827. });
  20828. promises.push(promise);
  20829. });
  20830. Promise.all(promises).then(() => {
  20831. zip.generateAsync({ type: "blob" }).then((content) => {
  20832. // 生成二进制流
  20833. FileSaver.saveAs(
  20834. content,
  20835. this.courseDetail.title + "-" + "作业提交工具.zip"
  20836. ); // 利用file-saver保存文件 自定义文件名
  20837. setTimeout(() => {
  20838. loading.close();
  20839. }, 2000);
  20840. });
  20841. });
  20842. },
  20843. pickStudent(stu) {
  20844. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  20845. return;
  20846. }
  20847. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  20848. confirmButtonText: "确定",
  20849. cancelButtonText: "取消",
  20850. type: "warning",
  20851. })
  20852. .then(() => {
  20853. let params = [
  20854. {
  20855. uid: stu.userid,
  20856. cid: this.id,
  20857. stage: this.courseType,
  20858. task: this.taskCount,
  20859. tool: this.toolindex,
  20860. },
  20861. ];
  20862. this.ajax
  20863. .post(this.$store.state.api + "updateCoursePick", params)
  20864. .then((res) => {
  20865. this.$message.success("操作成功");
  20866. this.getPick();
  20867. })
  20868. .catch((err) => {
  20869. this.$message.error("网络不佳");
  20870. console.error(err);
  20871. });
  20872. })
  20873. .catch(() => {});
  20874. },
  20875. selectUser(){
  20876. let params = {
  20877. userid: this.userid,
  20878. };
  20879. this.ajax
  20880. .get(this.$store.state.api + "selectUser", params)
  20881. .then((res) => {
  20882. this.userMes = res.data[0];
  20883. })
  20884. .catch((err) => {
  20885. console.error(err);
  20886. });
  20887. },
  20888. setEngText(i){
  20889. this.newEngIndex = i;
  20890. this.$forceUpdate();
  20891. },
  20892. addCorrect(){
  20893. this.$confirm("你确定提交批改嘛?", "提示", {
  20894. confirmButtonText: "确定",
  20895. showCancelButton: false,
  20896. closeOnClickModal: false,
  20897. type: "warning",
  20898. })
  20899. .then(() => {
  20900. let params = {
  20901. cid: this.id,
  20902. s: parseInt(this.courseType),
  20903. t: this.taskCount,
  20904. tool: this.toolindex,
  20905. wid: this.engWid,
  20906. c: this.userid,
  20907. 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) : "",
  20908. };
  20909. this.ajax
  20910. .get(this.$store.state.api + "addEngC", params)
  20911. .then((res) => {
  20912. this.$message.success("提交成功");
  20913. this.engUpdateDialogVisible = false;
  20914. })
  20915. .catch((err) => {
  20916. console.error(err);
  20917. });
  20918. })
  20919. .catch(() => {});
  20920. },
  20921. selectEngC(id,z){
  20922. let params = {
  20923. workid: id,
  20924. };
  20925. this.ajax
  20926. .get(this.$store.state.api + "selectEngC", params)
  20927. .then((res) => {
  20928. if(res.data[0].length == 0){
  20929. this.newEnglishList.engTitle = z.engTitle;
  20930. this.newEnglishList.engText = z.engText;
  20931. }else{
  20932. var a = res.data[0];
  20933. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  20934. if(this.userMes[0].type == 2){
  20935. var snum = 0;
  20936. for(var i = 0;i<a.length;i++){
  20937. if(this.userMes[0].userid == a[i].correct){
  20938. this.newEnglishList = JSON.parse(a[i].cWork);
  20939. snum = 1;
  20940. }
  20941. }
  20942. if(snum == 0){
  20943. this.newEnglishList = { engTitle:"",engText:"" };
  20944. this.newEnglishList.engTitle = z.engTitle;
  20945. this.newEnglishList.engText = z.engText;
  20946. }
  20947. }else if(this.userMes[0].type == 1){
  20948. var num = 0;
  20949. for(var w= 0;w<a.length;w++){
  20950. if(this.userMes[0].userid == a[w].correct){
  20951. num = 1;
  20952. }
  20953. }
  20954. if(num == 0){
  20955. this.isNoUserid = true;
  20956. var c = JSON.parse(JSON.stringify(z));
  20957. this.oldEnglishJson1 = c;
  20958. }else{
  20959. this.isNoUserid = false;
  20960. }
  20961. var b = a.sort((item, index) => {
  20962. console.log(item)
  20963. if (item.correct === this.userMes[0].userid) {
  20964. return -1; // 将a移到前面
  20965. } else if (index.correct === this.userMes[0].userid) {
  20966. return 1; // 将b移到前面
  20967. } else {
  20968. return 0; // 保持默认顺序
  20969. }
  20970. });
  20971. for(var p = 0;p<b.length;p++){
  20972. for(var y = 0;y<ppp.length;y++){
  20973. if(b[p].id == ppp[y].id){
  20974. b[p].cWork = JSON.parse(ppp[y].cWork);
  20975. break
  20976. }
  20977. }
  20978. }
  20979. this.newEnglishList1 = b;
  20980. }
  20981. }
  20982. this.greyType = false;
  20983. setTimeout(() => {
  20984. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20985. if(this.newEnglishList1.length > 0){
  20986. if(this.isNoUserid == true){
  20987. this.engListLength = this.newEnglishList1.length + 1;
  20988. this.newEngIndex = -1;
  20989. }else{
  20990. this.engListLength = this.newEnglishList1.length;
  20991. this.newEngIndex = 0;
  20992. }
  20993. }
  20994. if(this.userMes[0].type == 2){
  20995. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20996. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  20997. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  20998. }else if(this.newEngIndex == -1){
  20999. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  21000. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  21001. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  21002. }
  21003. }, 500);
  21004. this.engUpdateDialogVisible = true;
  21005. this.$forceUpdate();
  21006. })
  21007. .catch((err) => {
  21008. console.error(err);
  21009. });
  21010. },
  21011. getPick() {
  21012. if(this.getPickLoading) return
  21013. this.getPickLoading = true
  21014. let params = {
  21015. cid: this.id,
  21016. };
  21017. this.ajax
  21018. .get(this.$store.state.api + "getPick", params)
  21019. .then((res) => {
  21020. let array = [];
  21021. for (var i = 0; i < res.data[0].length; i++) {
  21022. array.push(res.data[0][i].userid);
  21023. }
  21024. this.isPickStudent = array;
  21025. if (array.indexOf(this.userid) !== -1) {
  21026. this.$confirm("你被老师选到啦!", "提示", {
  21027. confirmButtonText: "确定",
  21028. showCancelButton: false,
  21029. closeOnClickModal: false,
  21030. type: "warning",
  21031. })
  21032. .then(() => {
  21033. let pa = [
  21034. {
  21035. uid: this.userid,
  21036. cid: this.id,
  21037. },
  21038. ];
  21039. this.ajax
  21040. .post(this.$store.state.api + "deletePick", pa)
  21041. .then((res) => {
  21042. this.getPick();
  21043. })
  21044. .catch((err) => {
  21045. this.$message.error("网络不佳");
  21046. console.error(err);
  21047. });
  21048. })
  21049. .catch(() => {});
  21050. }
  21051. this.getPickLoading = false
  21052. })
  21053. .catch((err) => {
  21054. this.getPickLoading = false
  21055. this.$message.error("网络不佳");
  21056. console.error(err);
  21057. });
  21058. },
  21059. foldEva() {
  21060. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  21061. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  21062. } else {
  21063. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  21064. setTimeout(() => {
  21065. this.checkEva();
  21066. setTimeout(() => {
  21067. this.checkEva();
  21068. }, 500);
  21069. }, 0);
  21070. }
  21071. this.$forceUpdate();
  21072. },
  21073. panToolHeight(tool) {
  21074. var _tool = document.querySelectorAll('#'+tool)[0]
  21075. var _toolA = _tool ? _tool.offsetHeight : 0
  21076. var _toolC = 0
  21077. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  21078. let boolean2 = (_toolA > _toolC) ? true : false
  21079. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  21080. this.$forceUpdate();
  21081. },
  21082. async checkLink(url) {
  21083. // console.log(url)
  21084. let _url = url
  21085. try {
  21086. const response = await fetch(url);
  21087. if(!response.ok){
  21088. _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]))
  21089. }
  21090. // console.log(response.ok)
  21091. } catch (error) {
  21092. console.error('Error checking link:', error);
  21093. // console.log(false)
  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(_url)
  21097. return _url
  21098. },
  21099. getScoreList(){
  21100. let params = {
  21101. cid: this.id,
  21102. };
  21103. this.ajax
  21104. .get(this.$store.state.api + "selectTestCourseByCid", params)
  21105. .then((res) => {
  21106. let result = res.data;
  21107. this.scoreList.datalist = result[0];
  21108. this.scoreList.isScoreList = result[1];
  21109. })
  21110. .catch((err) => {
  21111. console.error(err);
  21112. });
  21113. },
  21114. setClassRoomHelperWidth(width){
  21115. this.classRoomHelperWidth = width
  21116. },
  21117. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  21118. this.$refs.choseWorksDetailDialogRef.open({
  21119. toolType:tooc,
  21120. tType: this.tType,
  21121. toolIndex: toolIndex
  21122. });
  21123. this.changeSplitScreenBehavior({
  21124. code: 1,
  21125. form: {
  21126. toolType:tooc,
  21127. toolIndex: toolIndex,
  21128. courseType: this.courseType,
  21129. taskCount: this.taskCount,
  21130. type: 0
  21131. }
  21132. });
  21133. },
  21134. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  21135. this.$refs.statisticalAnalysisRef.open({
  21136. worksStudent: this.worksStudent[toolIndex],
  21137. tType: this.tType,
  21138. toolIndex: toolIndex
  21139. });
  21140. this.changeSplitScreenBehavior({
  21141. code: 2,
  21142. form: {
  21143. toolType:4,
  21144. courseType: this.courseType,
  21145. taskCount: this.taskCount,
  21146. toolIndex: toolIndex,
  21147. type: 0
  21148. }
  21149. });
  21150. },
  21151. statisticalAnalysisRefresh(toolIndex) {
  21152. this.$refs.statisticalAnalysisRef.refreshData({
  21153. worksStudent: this.worksStudent[toolIndex],
  21154. tType: this.tType,
  21155. toolIndex: toolIndex
  21156. });
  21157. },
  21158. async splitScreenBehavior(type = 0) {
  21159. // return;
  21160. if (this.splitScreenData.loading)
  21161. return this.$message.info("操作过快,请稍等");
  21162. if (type == 0) {
  21163. //关闭分屏
  21164. this.splitScreenData.isOpen = false;
  21165. // this.splitScreenData.userId = "";
  21166. // this.splitScreenData.uid = "";
  21167. this.splitScreenData.behavior = null;
  21168. await this.updateSplitScreenData(1);
  21169. this.$message.success("已关闭分屏模式");
  21170. this.studentFreePreview(false);
  21171. this.OpenJobPreview(false);
  21172. // this.followingMode(false);
  21173. } else if (type == 1) {
  21174. //开启分屏
  21175. this.splitScreenData.isOpen = true;
  21176. this.splitScreenData.userId = this.userid;
  21177. this.splitScreenData.uid = this.splitScreenData.myUid;
  21178. this.splitScreenData.behavior = null;
  21179. let status = await this.updateSplitScreenData(0);
  21180. this.changeSplitScreenBehavior({form:{}})
  21181. if (status == 1) {
  21182. this.$message.success("已开启分屏");
  21183. this.studentFreePreview(false);
  21184. this.OpenJobPreview(true);
  21185. // this.followingMode(true);
  21186. } else {
  21187. this.splitScreenData.isOpen = false;
  21188. this.splitScreenData.userId = "";
  21189. this.splitScreenData.uid = "";
  21190. this.splitScreenData.behavior = null;
  21191. this.$message.success("分屏开启失败");
  21192. }
  21193. }
  21194. },
  21195. enterFullScreen() {
  21196. let element = document.documentElement;
  21197. if (element.requestFullscreen) {
  21198. element.requestFullscreen();
  21199. } else if (element.mozRequestFullScreen) { /* Firefox */
  21200. element.mozRequestFullScreen();
  21201. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  21202. element.webkitRequestFullscreen();
  21203. } else if (element.msRequestFullscreen) { /* IE/Edge */
  21204. element.msRequestFullscreen();
  21205. }
  21206. },
  21207. exitFullScreen() {
  21208. if (document.exitFullscreen) {
  21209. document.exitFullscreen();
  21210. } else if (document.mozCancelFullScreen) { /* Firefox */
  21211. document.mozCancelFullScreen();
  21212. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  21213. document.webkitExitFullscreen();
  21214. } else if (document.msExitFullscreen) { /* IE/Edge */
  21215. document.msExitFullscreen();
  21216. }
  21217. },
  21218. confirmOpen(){
  21219. this.splitScreenData.isOpen = true;
  21220. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  21221. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  21222. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  21223. this.confirmOpenDig = false
  21224. if (!document.fullscreenElement) {
  21225. this.enterFullScreen();
  21226. }
  21227. // if (this.timer2) {
  21228. // clearInterval(this.timer2);
  21229. // this.timer2 = null;
  21230. // }
  21231. // this.timer2 = setInterval(()=> {
  21232. // this.getSplitScreenData();//获取分屏数据
  21233. // }, 1000);
  21234. this.$message.success("分屏模式已开启");
  21235. },
  21236. getSplitScreenData() {
  21237. // return;
  21238. // if (this.tType != 1) return;
  21239. if(this.getSplitScreenDataLoading) return
  21240. this.getSplitScreenDataLoading = true
  21241. let params = {
  21242. cid: this.id
  21243. };
  21244. this.ajax
  21245. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  21246. .then(async res => {
  21247. let data = res.data[0][0]["splitScreenData"];
  21248. console.log("获取了分屏数:", data);
  21249. if (data) {
  21250. data = JSON.parse(data);
  21251. if (
  21252. !this.splitScreenData.isOpen &&
  21253. data.isOpen &&
  21254. this.splitScreenData.myUid == data.uid
  21255. ) {
  21256. this.splitScreenData.isOpen = false;
  21257. this.splitScreenData.userId = "";
  21258. this.splitScreenData.uid = "";
  21259. this.splitScreenData.behavior = null;
  21260. await this.updateSplitScreenData(1);
  21261. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  21262. this.confirmOpenDig = true
  21263. this.confirmOpenDigData = data
  21264. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  21265. this.splitScreenData.isOpen = false;
  21266. this.splitScreenData.userId = "";
  21267. this.splitScreenData.uid = "";
  21268. this.splitScreenData.behavior = null;
  21269. this.$message.error("已结束分屏模式");
  21270. } else if (this.splitScreenData.isOpen && data.isOpen) {
  21271. this.splitScreenData.isOpen = true;
  21272. this.splitScreenData.uid = data.uid;
  21273. this.splitScreenData.userId = data.userId;
  21274. this.splitScreenData.behavior = data.behavior;
  21275. }
  21276. this.doSplitScreenBehavior();
  21277. } else {
  21278. if (this.splitScreenData.isOpen) {
  21279. this.splitScreenData.isOpen = false;
  21280. this.splitScreenData.userId = "";
  21281. this.splitScreenData.uid = "";
  21282. this.splitScreenData.behavior = null;
  21283. this.$message.error("已结束分屏模式");
  21284. // if (this.timer2) {
  21285. // clearInterval(this.timer2);
  21286. // this.timer2 = null;
  21287. // }
  21288. // this.timer2 = setInterval(()=> {
  21289. // this.getSplitScreenData();//获取分屏数据
  21290. // }, 5000);
  21291. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  21292. confirmButtonText: '确定', //确认按钮的文字
  21293. showCancelButton: false, //是否显示取消按钮
  21294. showClose: false, //是否显示关闭按钮
  21295. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  21296. type: "warning",
  21297. })
  21298. .then(() => {
  21299. if (document.fullscreenElement) {
  21300. this.exitFullScreen();
  21301. }
  21302. })
  21303. .catch(() => {});
  21304. }
  21305. }
  21306. this.getSplitScreenDataLoading = false
  21307. })
  21308. .catch(e => {
  21309. this.getSplitScreenDataLoading = false
  21310. console.log("获取分屏数出错:", e);
  21311. });
  21312. },
  21313. doSplitScreenBehavior() {
  21314. if (
  21315. this.splitScreenData.isOpen &&
  21316. this.splitScreenData.uid != this.splitScreenData.myUid
  21317. ) {
  21318. let behavior = this.splitScreenData.behavior;
  21319. if (behavior) {
  21320. if (behavior.code === 99) {
  21321. //初始化
  21322. this.fullDialogVisible = false;
  21323. if(this.$refs.choseWorksDetailDialogRef.show){
  21324. this.$refs.choseWorksDetailDialogRef.close();
  21325. }
  21326. if(this.$refs.statisticalAnalysisRef.show){
  21327. this.$refs.statisticalAnalysisRef.close();
  21328. }
  21329. }
  21330. if (behavior.code === 0) {
  21331. //开启内容列表弹窗
  21332. this.checkFileFull1(behavior.form.t, behavior.form.f);
  21333. }else{
  21334. this.fullDialogVisible = false;
  21335. }
  21336. if (behavior.code === 1) {
  21337. //关于选择题的作业详细的操作
  21338. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  21339. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  21340. this.courseType = behavior.form.courseType;
  21341. this.taskCount = behavior.form.taskCount;
  21342. }
  21343. this.$nextTick(() => {
  21344. if (this.$refs.choseWorksDetailDialogRef.show) {
  21345. //已经打开了
  21346. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  21347. } else {
  21348. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  21349. }
  21350. });
  21351. }else{
  21352. this.$refs.choseWorksDetailDialogRef.close()
  21353. }
  21354. if(behavior.code === 2){
  21355. if(this.$refs.statisticalAnalysisRef.show){
  21356. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  21357. }else{
  21358. this.$refs.statisticalAnalysisRef.open({
  21359. worksStudent: this.worksStudent[behavior.form.toolIndex],
  21360. tType: this.tType,
  21361. toolIndex: behavior.form.toolIndex
  21362. });
  21363. }
  21364. }else{
  21365. this.$refs.statisticalAnalysisRef.close();
  21366. }
  21367. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  21368. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  21369. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  21370. if (behavior.form.courseType != this.courseType ||
  21371. behavior.form.taskCount != this.taskCount ||
  21372. behavior.form.toolType != this.toolindex
  21373. ) {
  21374. var a = document.scrollingElement;
  21375. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  21376. if (target) {
  21377. target.scrollIntoView(true);
  21378. setTimeout(()=>{
  21379. let scrollBody = document.querySelector('.body_student').parentElement
  21380. scrollBody.scrollTop = scrollBody.scrollTop - 100
  21381. }, 0);
  21382. // setTimeout(() => {
  21383. // a.scrollTop = 0
  21384. // }, 0);
  21385. }
  21386. }
  21387. if(this.courseType !=behavior.form.courseType){
  21388. this.courseType = behavior.form.courseType;
  21389. }
  21390. if(this.taskCount !=behavior.form.taskCount){
  21391. this.taskCount = behavior.form.taskCount;
  21392. }
  21393. if((behavior.form.toolType || behavior.form.toolType == 0) && (this.toolindex != behavior.form.toolType)){
  21394. this.toolindex = behavior.form.toolType;
  21395. }
  21396. // if(behavior.form.navId){
  21397. // this.navId = behavior.form.navId
  21398. // }
  21399. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  21400. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  21401. console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  21402. this.getCourseDetail()
  21403. }
  21404. this.setContent2(false)
  21405. }
  21406. } else {
  21407. }
  21408. }
  21409. },
  21410. updateSplitScreenData(empty = 0) {
  21411. return new Promise(resolve => {
  21412. if(this.userid!==this.courseDetail.userid){
  21413. if(!this.courseDetail.userid){
  21414. return setTimeout(()=>{
  21415. this.updateSplitScreenData(empty)
  21416. },2000)
  21417. }
  21418. return;
  21419. };
  21420. if (
  21421. this.splitScreenData.uid == this.splitScreenData.myUid &&
  21422. this.splitScreenData.userId == this.userid
  21423. ) {
  21424. this.splitScreenData.loading = true;
  21425. let params = [
  21426. {
  21427. cid: this.id,
  21428. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  21429. }
  21430. ];
  21431. this.ajax
  21432. .post(
  21433. this.$store.state.api + "update_courseSplitScreenData",
  21434. params
  21435. )
  21436. .then(res => {
  21437. this.splitScreenData.loading = false;
  21438. if (res.data == 1) {
  21439. resolve(1);
  21440. console.log("修改分屏数据成功");
  21441. }
  21442. })
  21443. .catch(e => {
  21444. this.splitScreenData.loading = false;
  21445. console.log("修改分屏数据失败", e);
  21446. resoleve(0);
  21447. });
  21448. } else if (empty == 2 && this.tType == 1) {
  21449. let params = [
  21450. {
  21451. cid: this.id,
  21452. nData: ""
  21453. }
  21454. ];
  21455. return this.ajax
  21456. .post(
  21457. this.$store.state.api + "update_courseSplitScreenData",
  21458. params
  21459. )
  21460. .then(_ => resolve(1))
  21461. .catch(_ => resolve(0));
  21462. } else {
  21463. return resolve(0);
  21464. }
  21465. });
  21466. },
  21467. changeSplitScreenBehavior(newValue) {
  21468. if (
  21469. this.splitScreenData.isOpen &&
  21470. this.splitScreenData.uid == this.splitScreenData.myUid
  21471. ) {
  21472. let _behavior = null;
  21473. if(!newValue){
  21474. _behavior = {}
  21475. }else{
  21476. _behavior = newValue
  21477. }
  21478. if(_behavior.form){
  21479. _behavior.form.taskCount = this.taskCount;
  21480. _behavior.form.courseType = this.courseType
  21481. }else{
  21482. _behavior.form = {
  21483. taskCount:this.taskCount,
  21484. courseType:this.courseType
  21485. }
  21486. }
  21487. this.splitScreenData.behavior = _behavior;
  21488. this.updateSplitScreenData(0);
  21489. }
  21490. },
  21491. studentFreePreview(flag) {
  21492. this.IsLookOpen = flag;
  21493. this.followingMode(flag)
  21494. this.updateLookOpen();
  21495. },
  21496. OpenJobPreview(flag) {
  21497. this.sIsOpen = flag;
  21498. this.updateSLook();
  21499. },
  21500. followingMode(flag) {
  21501. this.IsFollow = flag;
  21502. this.updateFollow();
  21503. },
  21504. StulookMode(flag) {
  21505. this.IsStulook = flag;
  21506. this.updateIsStulook();
  21507. }
  21508. },
  21509. directives: {
  21510. // 使用局部注册指令的方式
  21511. resize: {
  21512. // 指令的名称
  21513. bind(el, binding) {
  21514. // el为绑定的元素,binding为绑定给指令的对象
  21515. let width = "",
  21516. height = "";
  21517. function isReize() {
  21518. const style = document.defaultView.getComputedStyle(el);
  21519. if (width !== style.width || height !== style.height) {
  21520. binding.value(); // 关键
  21521. }
  21522. width = style.width;
  21523. height = style.height;
  21524. }
  21525. el.__vueSetInterval__ = setInterval(isReize, 300);
  21526. },
  21527. unbind(el) {
  21528. clearInterval(el.__vueSetInterval__);
  21529. },
  21530. },
  21531. autoHeight: {
  21532. update(el, binding) {
  21533. const { value } = binding
  21534. if (value && typeof value === 'number') {
  21535. el.style.height = `${value}px`
  21536. } else {
  21537. el.style.height = 'auto'
  21538. }
  21539. },
  21540. componentUpdated(el) {
  21541. el.style.height = `${el.scrollHeight + 5}px`
  21542. },
  21543. },
  21544. },
  21545. beforeDestroy() {
  21546. window.onresize = null;
  21547. clearInterval(this.timer);
  21548. this.timer = null;
  21549. clearInterval(this.timer2);
  21550. this.timer2 = null;
  21551. clearInterval(this.opertimer);
  21552. this.opertimer = null;
  21553. this.updateSplitScreenData(1);
  21554. if(this.courseDetail.userid == this.userid && this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  21555. let endTime = new Date().toLocaleString("zh-CN", {
  21556. hour12: false,
  21557. timeZone: "Asia/Shanghai"
  21558. }).replace(/\//g, "-")
  21559. let courseTime = Math.floor((new Date(endTime) - new Date(this.startTime)) / (1000 * 60))
  21560. this.syncClassData({
  21561. courseId: this.id,
  21562. title: this.courseDetail.title,
  21563. courseGrade: this.tcid2 ? this.tcid2 : '',
  21564. courseTime: courseTime,
  21565. startTime: this.startTime,
  21566. endTime: endTime,
  21567. })
  21568. console.log('同步数据')
  21569. }
  21570. },
  21571. computed: {
  21572. renderedFormula2() {
  21573. return function(val){
  21574. // 处理换行符和HTML实体
  21575. const normalized = val
  21576. .replace(/&amp;/g, '&')
  21577. .replace(/<br\/?>/g, '\n');
  21578. // 匹配行内公式($...$)和块级公式($$...$$)
  21579. return normalized.replace(/(\${1,2})([^$]+)(\${1,2})/g, (_, delim, expr) => {
  21580. try {
  21581. return katex.renderToString(expr.trim(), {
  21582. displayMode: false,
  21583. throwOnError: false,
  21584. macros: {
  21585. '\\aligned': '\\begin{aligned}#1\\end{aligned}'
  21586. }
  21587. });
  21588. } catch (e) {
  21589. console.warn('KaTeX渲染失败:', e);
  21590. return `<span style="color:red">${expr}</span>`;
  21591. }
  21592. })
  21593. }
  21594. },
  21595. renderedFormula() {
  21596. return function(val){
  21597. try {
  21598. // 判断是否含有HTML标签,<tag ...>...</tag>
  21599. const hasTag = /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g.test(val);
  21600. if (!hasTag) {
  21601. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  21602. // 纯文本,整体渲染
  21603. try {
  21604. return katex.renderToString(val.trim(), {
  21605. throwOnError: false,
  21606. strict: false,
  21607. output: "htmlAndMathml"
  21608. });
  21609. } catch (e) {
  21610. return val; // 渲染失败原样输出
  21611. }
  21612. } else {
  21613. // 有标签,对每个标签内容渲染
  21614. return val.replace(
  21615. /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g,
  21616. (match, tag, attrs, inner) => {
  21617. let html;
  21618. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  21619. try {
  21620. html = katex.renderToString(inner.trim(), {
  21621. throwOnError: false,
  21622. strict: false,
  21623. output: "htmlAndMathml"
  21624. });
  21625. } catch (e) {
  21626. html = inner;
  21627. }
  21628. return `<${tag}${attrs}>${html}</${tag}>`;
  21629. }
  21630. );
  21631. }
  21632. } catch (e) {
  21633. console.error('KaTeX渲染错误:', e);
  21634. return val;
  21635. }
  21636. }
  21637. },
  21638. isAndroid() {
  21639. return /Android/i.test(navigator.userAgent);
  21640. },
  21641. getHeight(){
  21642. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  21643. },
  21644. contentConvent() {
  21645. return function (c) {
  21646. return c
  21647. ? c
  21648. .replaceAll(/\r\n/g, "<br/>")
  21649. .replaceAll(/\n/g, "<br/>")
  21650. .replaceAll(/\s/g, "&nbsp")
  21651. : "";
  21652. };
  21653. },
  21654. MarkdownT() {
  21655. return function (c) {
  21656. let md = new MarkdownIt();
  21657. return c
  21658. ? md.render(c) : "";
  21659. };
  21660. },
  21661. commentRight(){
  21662. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  21663. return "35px";
  21664. }
  21665. return `calc(${this.classRoomHelperWidth} + 5px)`
  21666. // if(this.$refs["classRoomHelperRef"].type==0){
  21667. // return "100px";
  21668. // }else if(this.$refs["classRoomHelperRef"].type==1){
  21669. // return "502px"
  21670. // }else{
  21671. // return "0px"
  21672. // }
  21673. },
  21674. checkUpload() {
  21675. return function () {
  21676. var studentK = [];
  21677. if (this.plworkFile.length > 0) {
  21678. for (var z = 0; z < this.plworkFile.length; z++) {
  21679. studentK.push(this.plworkFile[z].username);
  21680. }
  21681. studentK = studentK.join(",");
  21682. }
  21683. var a = this.uploadStudentJuri.filter((el) => {
  21684. return studentK.indexOf(el.userid) == -1;
  21685. });
  21686. return a;
  21687. };
  21688. },
  21689. getSName() {
  21690. return function (name) {
  21691. var check = name;
  21692. this.uploadStudentJuri.forEach((el) => {
  21693. if (el.userid == check) {
  21694. check = el.name ? el.name : el.username;
  21695. }
  21696. });
  21697. return check;
  21698. };
  21699. },
  21700. getImgList() {
  21701. return function (val) {
  21702. let srcList = []; // 定义一个数组用来接收后面的img地址
  21703. val.replace(
  21704. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  21705. function (match, capture) {
  21706. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  21707. srcList.push(capture);
  21708. }
  21709. );
  21710. return srcList;
  21711. };
  21712. },
  21713. retrnToolHeight(){
  21714. return function (tool) {
  21715. var _tool = document.querySelectorAll('#'+tool)[0]
  21716. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  21717. };
  21718. },
  21719. Correct() {
  21720. return function (c,d) {
  21721. let w = "";
  21722. let a = this.correctWord;
  21723. for(var k = 0;k<a.length;k++){
  21724. //diffWordsWithSpace
  21725. if(a.length > 1){
  21726. if(a[k].added == true){
  21727. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21728. }else if(a[k].removed == true){
  21729. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21730. }else{
  21731. w += '<span>' + a[k].value + '</span>';
  21732. }
  21733. }else{
  21734. w = c
  21735. }
  21736. console.log("👇👇!+++==")
  21737. console.log(w)
  21738. //diffChars方法
  21739. // if(w == ""){
  21740. // if(a.length > 1){
  21741. // if(a[k].added == true){
  21742. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21743. // }else if(a[k].removed == true){
  21744. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21745. // }
  21746. // }else{
  21747. // w = c
  21748. // }
  21749. // }else{
  21750. // if(k == a.length - 1){
  21751. // if(a[k].added == true){
  21752. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21753. // }else if(a[k].removed == true){
  21754. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21755. // }
  21756. // }else{
  21757. // if(a[k].added == true){
  21758. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21759. // }else if(a[k].removed == true){
  21760. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21761. // }
  21762. // }
  21763. // }
  21764. }
  21765. c = w;
  21766. return c;
  21767. };
  21768. },
  21769. },
  21770. mounted() {
  21771. this.setoTime("1");
  21772. this.startTime = new Date().toLocaleString("zh-CN", {
  21773. hour12: false,
  21774. timeZone: "Asia/Shanghai"
  21775. }).replace(/\//g, "-")
  21776. // if (this.tType == 1) {
  21777. // // 开局关闭学生查看内容
  21778. // this.StulookMode(false)
  21779. // // 开局打开跟随模式
  21780. // this.followingMode(true)
  21781. // }
  21782. document.body.addEventListener("click", (e) => {
  21783. if (this.isUpdateToolDetail1) {
  21784. this.updateToolDetail(this.toolDetailIndex);
  21785. }
  21786. });
  21787. try {
  21788. if (this.screenType == 2) {
  21789. window.topU.postMessage({ allScreen: 4 }, "*");
  21790. } else if (this.screenType == 3) {
  21791. window.topU.postMessage({ allScreen: 5 }, "*");
  21792. } else if (this.screenType == 1) {
  21793. window.topU.postMessage({ allScreen: 6 }, "*");
  21794. }
  21795. } catch (error) {
  21796. console.log(error)
  21797. }
  21798. this.getCode2()
  21799. this.setOperationTime();
  21800. this.selectEva();
  21801. this.getCourseDetail(10);
  21802. this.selectCount();
  21803. this.getHomeWork();
  21804. this.selectUser();
  21805. this.getAIJ();
  21806. this.contentDialog = false;
  21807. this.setContent2(true);
  21808. if (this.tType == 4) {
  21809. this.pzDialog = true;
  21810. this.selectPz();
  21811. }
  21812. // 获取评分列表
  21813. this.getScoreList()
  21814. this.updateSplitScreenData(2);
  21815. this.splitScreenData.myUid = uuidv4();
  21816. document.scrollingElement.scrollTop = 0;
  21817. window.addEventListener("resize", () => {
  21818. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  21819. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  21820. if (this.showType == 2 || this.showType == 3) {
  21821. document.getElementsByClassName("navBox")[0].style.height =
  21822. a - 40 + 0+ "px";
  21823. } else {
  21824. document.getElementsByClassName("navBox")[0].style.height =
  21825. a - 40 + "px";
  21826. }
  21827. });
  21828. // let _this = this;
  21829. // setTimeout(() => {
  21830. // _this.vedioTime = [];
  21831. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21832. // _this.vedioTime[i] = document.getElementsByClassName(
  21833. // "vjs-duration-display"
  21834. // )[i].textContent;
  21835. // }
  21836. // }, 1000);
  21837. },
  21838. };
  21839. </script>
  21840. <style scoped>
  21841. @media screen and (max-width: 1280px) {
  21842. /* .courseIndex > div:first-child(2) {
  21843. width: 15% !important;
  21844. } */
  21845. /* .navText {
  21846. width: 120px !important;
  21847. } */
  21848. .evaCss {
  21849. flex-direction: column !important;
  21850. align-items: center !important;
  21851. }
  21852. .elist_input {
  21853. width: 90% !important;
  21854. }
  21855. .dialog_diy1 >>> .el-dialog {
  21856. width: 100% !important;
  21857. }
  21858. .rightWidthCss {
  21859. width: 100% !important;
  21860. }
  21861. .dialog_diy3 >>> .el-dialog {
  21862. width: 100% !important;
  21863. }
  21864. .addToolCss {
  21865. right: 0 !important;
  21866. width: 100% !important;
  21867. min-width: unset !important;
  21868. }
  21869. }
  21870. .evaCssMax {
  21871. flex-direction: column !important;
  21872. align-items: center !important;
  21873. }
  21874. .dialog_diy >>> .el-dialog {
  21875. margin-top: 10vh !important;
  21876. }
  21877. .body_student {
  21878. width: 77%;
  21879. height: 100%;
  21880. position: absolute;
  21881. left: 22%;
  21882. top: 0;
  21883. }
  21884. .student_head {
  21885. width: 100%;
  21886. margin: 20px auto 0;
  21887. padding-bottom: 20px;
  21888. display: flex;
  21889. flex-direction: column;
  21890. flex-wrap: nowrap;
  21891. align-items: flex-start;
  21892. justify-content: flex-start;
  21893. }
  21894. .pb_left {
  21895. width: 15%;
  21896. margin-right: 10px;
  21897. background: rgb(255, 255, 255);
  21898. position: fixed;
  21899. height: calc(100% - 40px);
  21900. border-radius: 20px;
  21901. padding-bottom: 15px;
  21902. box-sizing: border-box;
  21903. }
  21904. .wheel > img,
  21905. .project > img,
  21906. .star > img,
  21907. .evaluate > img,
  21908. .up_photo > img,
  21909. .chapter_add > img,
  21910. .deleteWord > img,
  21911. .question > img,
  21912. .homework > img {
  21913. width: 100%;
  21914. height: 100%;
  21915. }
  21916. .upCover > img {
  21917. width: 131px;
  21918. height: 69px;
  21919. object-fit: cover;
  21920. }
  21921. .upCover {
  21922. width: calc(100% / 3.5);
  21923. position: relative;
  21924. margin: 0 15px 10px 0;
  21925. display: flex;
  21926. flex-direction: column;
  21927. flex-wrap: nowrap;
  21928. justify-content: center;
  21929. align-content: center;
  21930. align-items: center;
  21931. height: fit-content;
  21932. }
  21933. .upCover2 {
  21934. width: 100%;
  21935. position: relative;
  21936. margin: 0 15px 10px 0;
  21937. display: flex;
  21938. flex-direction: column;
  21939. flex-wrap: nowrap;
  21940. justify-content: center;
  21941. align-content: center;
  21942. align-items: center;
  21943. }
  21944. .upCover2 > img {
  21945. width: 100%;
  21946. height: 90px;
  21947. object-fit: contain;
  21948. }
  21949. .chapter_add {
  21950. width: 120px;
  21951. position: relative;
  21952. text-align: center;
  21953. }
  21954. .isAddThings {
  21955. margin-top: 20px;
  21956. position: relative;
  21957. text-align: center;
  21958. background: #f7f8fa;
  21959. height: 90px;
  21960. width: 90px;
  21961. display: flex;
  21962. flex-direction: column;
  21963. justify-content: center;
  21964. }
  21965. .deleteWord {
  21966. width: 22px;
  21967. height: 22px;
  21968. position: absolute;
  21969. right: -5px;
  21970. top: -5px;
  21971. cursor: pointer;
  21972. }
  21973. .box_course {
  21974. /* width: 60%; */
  21975. width: calc(100% - 300px);
  21976. }
  21977. .wheel {
  21978. width: 100%;
  21979. /* height: 100%; */
  21980. height: 650px;
  21981. }
  21982. .right_box {
  21983. display: flex;
  21984. flex-direction: column;
  21985. margin-left: 30px;
  21986. justify-content: space-around;
  21987. }
  21988. .right_box_title {
  21989. font-size: 23px;
  21990. }
  21991. .people {
  21992. display: flex;
  21993. }
  21994. .student_body {
  21995. width: 100%;
  21996. margin: 0 auto;
  21997. margin-top: 10px;
  21998. padding: 0 0 20px;
  21999. }
  22000. .study_top {
  22001. margin-top: 100px;
  22002. width: 100%;
  22003. height: auto;
  22004. padding-bottom: 20px;
  22005. margin-left: 2px;
  22006. min-height: 90%;
  22007. }
  22008. .study_top .checkbox {
  22009. display: flex;
  22010. align-items: center;
  22011. padding: 15px 0 15px 30px;
  22012. flex: 0 0 auto;
  22013. font-weight: bold;
  22014. border-bottom: 1px solid #eee;
  22015. }
  22016. .study_top .check {
  22017. padding-bottom: 5px;
  22018. text-align: center;
  22019. cursor: pointer;
  22020. height: 30px;
  22021. box-sizing: border-box;
  22022. display: flex;
  22023. }
  22024. .study_top .checked {
  22025. border-bottom: 4px solid #3fc6a0;
  22026. padding-bottom: 5px;
  22027. color: #3fc6a0;
  22028. display: flex;
  22029. height: 35px;
  22030. }
  22031. .study_top .checked > div,
  22032. .study_top .check > div {
  22033. margin-right: 5px;
  22034. }
  22035. .videoTop {
  22036. display: flex;
  22037. flex-direction: row;
  22038. justify-content: space-between;
  22039. background: #fff;
  22040. align-items: center;
  22041. width: 95%;
  22042. padding: 20px;
  22043. }
  22044. .filebox {
  22045. display: flex;
  22046. flex-wrap: wrap;
  22047. flex-direction: column;
  22048. padding: 0 0 5px;
  22049. position: relative;
  22050. }
  22051. .filebox:before {
  22052. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  22053. position: absolute;
  22054. top: 20px;
  22055. left: 13px;
  22056. border-left: 2px dotted #cad1dc;
  22057. height: calc(100% - 15px);
  22058. }
  22059. .toolHeng2 > div:last-child::before {
  22060. height: calc(100% - 43px);
  22061. }
  22062. .filebox .tooldetail {
  22063. width: calc(100%);
  22064. margin: 0px 12px;
  22065. padding: 12px;
  22066. line-height: 30px;
  22067. word-break: break-word;
  22068. background: #ffffff;
  22069. border-radius: 8px 8px 8px 8px;
  22070. opacity: 1;
  22071. border: 1px solid #cad1dc;
  22072. overflow:hidden;
  22073. box-sizing:border-box;
  22074. }
  22075. .pb_content >>> .katex {
  22076. font-size: 16px;
  22077. width: 100%;
  22078. white-space: normal;
  22079. }
  22080. .pb_content >>> .katex .base{
  22081. display: inline !important;
  22082. display: contents !important;
  22083. }
  22084. .pb_content >>> .katex .base .cjk_fallback{
  22085. white-space: normal !important;
  22086. display: inline !important;
  22087. }
  22088. .file {
  22089. display: flex;
  22090. flex-direction: column;
  22091. align-items: center;
  22092. justify-content: center;
  22093. cursor: pointer;
  22094. width: 200px;
  22095. }
  22096. .file div {
  22097. margin-top: 10px;
  22098. width: 150px;
  22099. text-align: center;
  22100. overflow: hidden;
  22101. white-space: nowrap;
  22102. text-overflow: ellipsis;
  22103. }
  22104. .media {
  22105. display: flex;
  22106. flex-direction: column;
  22107. align-items: center;
  22108. justify-content: center;
  22109. margin: 0 20px 20px 0;
  22110. cursor: pointer;
  22111. margin: 12px 0 5px 15px;
  22112. overflow: hidden;
  22113. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  22114. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  22115. box-sizing: border-box;
  22116. }
  22117. .media img {
  22118. height: 90px;
  22119. width: 160px;
  22120. object-fit: cover;
  22121. }
  22122. .media .title {
  22123. padding: 5px;
  22124. text-align: left;
  22125. width: 100%;
  22126. box-sizing: border-box;
  22127. }
  22128. .media .btn {
  22129. width: 100%;
  22130. height: 35px;
  22131. line-height: 35px;
  22132. color: #fff;
  22133. background: #606060;
  22134. text-align: center;
  22135. overflow: hidden;
  22136. white-space: nowrap;
  22137. text-overflow: ellipsis;
  22138. }
  22139. .detail_content_top {
  22140. width: 100%;
  22141. padding: 25px 0 25px 0;
  22142. }
  22143. .detail_title {
  22144. text-align: center;
  22145. font-size: 24px;
  22146. }
  22147. .detail_time {
  22148. font-size: 13px;
  22149. padding: 15px 0 0 40px;
  22150. }
  22151. .detail_content {
  22152. line-height: 2pc;
  22153. width: 90%;
  22154. margin: 0 auto;
  22155. padding-top: 30px;
  22156. text-indent: 30px;
  22157. overflow: auto;
  22158. height: 200px;
  22159. }
  22160. .score_box >>> .el-rate {
  22161. margin-left: 10px;
  22162. }
  22163. .dialog_change >>> .el-dialog {
  22164. border-radius: 5px;
  22165. }
  22166. .dialog_change >>> .el-dialog__header {
  22167. background: #f2f2f2;
  22168. text-align: center;
  22169. }
  22170. .dialog_change >>> .el-dialog__title {
  22171. line-height: 5px;
  22172. }
  22173. .dialog_change >>> .el-dialog__body {
  22174. background: #fff;
  22175. padding: 10px 20px;
  22176. }
  22177. .score_box {
  22178. display: flex;
  22179. align-items: center;
  22180. margin-bottom: 18px;
  22181. margin-top: 20px;
  22182. }
  22183. .up_photo {
  22184. width: 120px;
  22185. cursor: pointer;
  22186. margin-top: 10px;
  22187. }
  22188. .up_photo2 {
  22189. width: 180px;
  22190. box-sizing: border-box;
  22191. min-width: 180px;
  22192. height: 180px;
  22193. max-height: 180px;
  22194. min-height: 180px;
  22195. cursor: pointer;
  22196. display: flex;
  22197. flex-direction: column;
  22198. align-items: center;
  22199. justify-content: center;
  22200. background: rgb(242, 246, 255);
  22201. /* padding: 25px; */
  22202. margin-bottom: 10px;
  22203. }
  22204. .up_photo2 img {
  22205. width: 50%;
  22206. height: auto;
  22207. }
  22208. .up_photo2 span {
  22209. color: #898989;
  22210. }
  22211. .plworkBox {
  22212. display: flex;
  22213. align-items: center;
  22214. margin-top: 10px;
  22215. flex-wrap: wrap;
  22216. }
  22217. .upload_send {
  22218. margin: 30px auto 30px;
  22219. width: 60%;
  22220. background: #3681fc;
  22221. text-align: center;
  22222. height: 35px;
  22223. line-height: 35px;
  22224. color: #fff;
  22225. border-radius: 5px;
  22226. cursor: pointer;
  22227. }
  22228. .marginT {
  22229. margin-top: 20px;
  22230. }
  22231. .cd_content_steps {
  22232. display: flex;
  22233. width: 90%;
  22234. justify-content: space-around;
  22235. border-top: 1px solid #eeeeee;
  22236. }
  22237. .cd_steps_box {
  22238. display: flex;
  22239. justify-content: center;
  22240. align-items: center;
  22241. flex-direction: column;
  22242. cursor: pointer;
  22243. }
  22244. .first {
  22245. display: flex;
  22246. align-items: center;
  22247. margin: 15px 0 20px 0;
  22248. font-size: 20px;
  22249. }
  22250. .first > div:nth-child(2) {
  22251. font-size: 16px !important;
  22252. padding-left: 10px;
  22253. line-height: 26px;
  22254. box-sizing: border-box;
  22255. }
  22256. .blue_box_one {
  22257. text-align: center;
  22258. color: #fff;
  22259. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  22260. border-radius: 7px;
  22261. margin: 10px;
  22262. cursor: pointer;
  22263. width: 95%;
  22264. height: 45px;
  22265. display: flex;
  22266. flex-direction: row;
  22267. justify-content: flex-start;
  22268. align-items: center;
  22269. }
  22270. .blue_box_one > div:nth-child(1) {
  22271. line-height: 30px;
  22272. margin: 0 5px 0 10px;
  22273. width: 30%;
  22274. min-width: 70px;
  22275. border-radius: 4px;
  22276. }
  22277. .blue_box_one > div:nth-child(2) {
  22278. white-space: nowrap;
  22279. text-overflow: ellipsis;
  22280. overflow: hidden;
  22281. word-break: break-all;
  22282. width: 70%;
  22283. text-align: left;
  22284. margin-right: 10px;
  22285. max-width: calc(100% - 85px);
  22286. }
  22287. .blue_box_one > div:nth-child(2):hover {
  22288. overflow: hidden;
  22289. text-overflow: ellipsis;
  22290. white-space: nowrap;
  22291. cursor: pointer;
  22292. }
  22293. .upFile {
  22294. margin: 0 auto;
  22295. width: 120px;
  22296. background: #3681fc;
  22297. color: #fff;
  22298. height: 30px;
  22299. text-align: center;
  22300. line-height: 30px;
  22301. border-radius: 5px;
  22302. font-size: 14px;
  22303. cursor: pointer;
  22304. }
  22305. .courseTitle {
  22306. width: 85%;
  22307. margin: 10px auto 26px auto;
  22308. display: flex;
  22309. flex-direction: row;
  22310. align-items: center;
  22311. justify-content: space-between;
  22312. text-align: center;
  22313. }
  22314. .courseTitle .ctitle {
  22315. font-size: 20px;
  22316. font-weight: bold;
  22317. color: #0e1e33;
  22318. white-space: nowrap;
  22319. overflow: hidden;
  22320. text-overflow: ellipsis;
  22321. }
  22322. .inviteBox {
  22323. font-size: 14px;
  22324. /* margin-top: 5px; */
  22325. color: #00000099;
  22326. text-align: center;
  22327. }
  22328. .courseTitle >>> .el-tooltip {
  22329. width: 100%;
  22330. white-space: nowrap;
  22331. overflow: hidden;
  22332. text-overflow: ellipsis;
  22333. word-break: break-word;
  22334. }
  22335. .ml {
  22336. margin-left: 20px;
  22337. color: #5b7dba;
  22338. border-left: 3px solid #5b7dba;
  22339. padding-left: 5px;
  22340. font-weight: bold;
  22341. }
  22342. .return {
  22343. width: 2rem;
  22344. height: 2rem;
  22345. cursor: pointer;
  22346. }
  22347. .return > img {
  22348. width: 100%;
  22349. height: 100%;
  22350. }
  22351. .returnBtn {
  22352. width: 86px;
  22353. height: 36px;
  22354. background: #3681fc;
  22355. border-radius: 4px;
  22356. color: #fff;
  22357. text-align: center;
  22358. line-height: 36px;
  22359. margin-right: 20px;
  22360. cursor: pointer;
  22361. font-size: 14px;
  22362. font-weight: 400;
  22363. display: flex;
  22364. flex-direction: row;
  22365. flex-wrap: nowrap;
  22366. align-items: center;
  22367. justify-content: center;
  22368. }
  22369. .reBtnIcon,
  22370. .commentIcon,
  22371. .vedioIcon,
  22372. .vedioIcon1 {
  22373. /* width: 36px; */
  22374. height: 36px;
  22375. border-radius: 4px;
  22376. position: relative;
  22377. /* background: #e0eafb; */
  22378. background: #0061ff;
  22379. cursor: pointer;
  22380. margin-right: 12px;
  22381. display: flex;
  22382. align-items: center;
  22383. padding: 0 10px;
  22384. box-sizing: border-box;
  22385. font-size: 14px;
  22386. color: #fff;
  22387. }
  22388. .reBtnIcon::before,
  22389. .commentIcon::before,
  22390. .vedioIcon::before,
  22391. .vedioIcon1::before {
  22392. content: "";
  22393. display: block;
  22394. background-size: 100% 100%;
  22395. background-repeat: no-repeat;
  22396. width: 20px;
  22397. height: 20px;
  22398. margin-right: 5px;
  22399. /* position: absolute; */
  22400. /* top: 8px;
  22401. left: 8px; */
  22402. }
  22403. .vedioIcon1 {
  22404. background: #f63564;
  22405. }
  22406. .reBtnIcon::before {
  22407. background-image: url("../../assets/icon/newIcons/refresh.png");
  22408. }
  22409. .commentIcon::before {
  22410. background-image: url("../../assets/icon/newIcons/comment.png");
  22411. }
  22412. .vedioIcon::before {
  22413. background-image: url("../../assets/icon/newIcons/transcribe.png");
  22414. }
  22415. .vedioIcon1::before {
  22416. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  22417. background-image: url("../../assets/icon/newIcons/transcribe.png");
  22418. }
  22419. .tool {
  22420. display: flex;
  22421. flex-direction: column;
  22422. flex-wrap: nowrap;
  22423. width: 13%;
  22424. margin: 0 30px;
  22425. align-items: center;
  22426. position: relative;
  22427. padding: 10px 25px;
  22428. cursor: pointer;
  22429. }
  22430. .whiteBIcon {
  22431. width: 150px;
  22432. }
  22433. .whiteBIcon > img {
  22434. width: 100%;
  22435. height: 100%;
  22436. }
  22437. .mask {
  22438. background-color: rgba(0, 0, 0, 0);
  22439. position: fixed;
  22440. top: 0;
  22441. left: 0;
  22442. width: 100%;
  22443. height: 100%;
  22444. z-index: 20000;
  22445. display: flex;
  22446. align-items: center;
  22447. justify-content: center;
  22448. }
  22449. .progressBox {
  22450. width: 500px;
  22451. height: 180px;
  22452. background: #fff;
  22453. border-radius: 10px;
  22454. box-shadow: 0 0 6px 1px #bfbfbf;
  22455. display: flex;
  22456. align-items: center;
  22457. justify-content: center;
  22458. flex-direction: column;
  22459. position: relative;
  22460. color: #6c6c6c;
  22461. }
  22462. .progressBox >>> .el-progress-bar__outer {
  22463. background-color: #d1dfff !important;
  22464. }
  22465. .progressBox .lbox {
  22466. height: 50px;
  22467. font-size: 19px;
  22468. display: flex;
  22469. align-items: center;
  22470. color: #747474;
  22471. }
  22472. .progressBox .lbox img {
  22473. width: 40px;
  22474. margin-right: 20px;
  22475. }
  22476. .closeCss {
  22477. position: absolute;
  22478. top: 8px;
  22479. right: 8px;
  22480. cursor: pointer;
  22481. width: 20px;
  22482. height: 20px;
  22483. }
  22484. .closeCss > img {
  22485. width: 100%;
  22486. height: 100%;
  22487. }
  22488. .uploadVedio {
  22489. display: flex;
  22490. flex-direction: column;
  22491. flex-wrap: nowrap;
  22492. justify-content: center;
  22493. align-items: center;
  22494. margin: 0 15px 10px 0;
  22495. }
  22496. .uploadVedio > img {
  22497. width: 30px;
  22498. height: 30px;
  22499. }
  22500. .uploadVedio > span {
  22501. white-space: nowrap;
  22502. overflow: hidden;
  22503. text-overflow: ellipsis;
  22504. width: 75px;
  22505. margin-top: 7px;
  22506. }
  22507. .picName {
  22508. white-space: nowrap;
  22509. overflow: hidden;
  22510. text-overflow: ellipsis;
  22511. width: 75px;
  22512. margin-top: 7px;
  22513. }
  22514. .new_top {
  22515. display: flex;
  22516. background: #fff;
  22517. flex-direction: row;
  22518. justify-content: flex-start;
  22519. align-items: center;
  22520. height: 60px;
  22521. position: fixed;
  22522. top: 20px;
  22523. left: 22%;
  22524. width: 77%;
  22525. z-index: 999;
  22526. border-radius: 12px 12px 0 0;
  22527. border-bottom: 1px solid #cad1dc;
  22528. padding: 10px 0;
  22529. }
  22530. .new_topFixed {
  22531. width: 100%;
  22532. height: 40px;
  22533. position: fixed;
  22534. top: 0px;
  22535. display: block;
  22536. background: #f2f2f2;
  22537. z-index: 998;
  22538. }
  22539. .before {
  22540. position: absolute;
  22541. background: #c3dad4;
  22542. width: 6px;
  22543. height: 100%;
  22544. }
  22545. .courseIndex {
  22546. display: flex;
  22547. flex-direction: row;
  22548. align-items: center;
  22549. width: calc(100% - 745px);
  22550. }
  22551. .courseIndex > div:nth-child(1) {
  22552. margin: 0 0 0 10px;
  22553. font-size: 20px;
  22554. min-width: 100px;
  22555. font-weight: bold;
  22556. border-left: 4px solid #3363b9;
  22557. height: 32px;
  22558. text-align: center;
  22559. line-height: 35px;
  22560. }
  22561. .courseIndex > div:nth-child(2) {
  22562. font-size: 20px;
  22563. /* width: 300px; */
  22564. max-width: calc(100% - 105px);
  22565. white-space: nowrap;
  22566. overflow: hidden;
  22567. text-overflow: ellipsis;
  22568. }
  22569. .courseIndex > div:nth-child(3) {
  22570. border-bottom: 1px solid #d7d7d7;
  22571. padding-bottom: 5px;
  22572. background: #3681fc;
  22573. width: 55px;
  22574. min-width: 55px;
  22575. border-radius: 5px;
  22576. color: #fff;
  22577. text-align: center;
  22578. height: 20px;
  22579. line-height: 26px;
  22580. font-size: 14px;
  22581. margin: 0 0 0 10px;
  22582. }
  22583. .course_text {
  22584. padding: 20px 0 0 15px;
  22585. text-indent: 30px;
  22586. width: 80%;
  22587. min-height: 20px;
  22588. }
  22589. .vedioList {
  22590. background: #f2f2f2;
  22591. border: 1px solid #ececec;
  22592. /* width: 38.8%; */
  22593. /* width: 300px; */
  22594. width: 100%;
  22595. height: 445px;
  22596. border-radius: 10px;
  22597. overflow: hidden;
  22598. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  22599. }
  22600. .vedioNav {
  22601. margin: 10px 0 0 15px;
  22602. border-bottom: 1px solid #d7d7d7;
  22603. padding-bottom: 5px;
  22604. background: #3681fc;
  22605. width: 55px;
  22606. min-width: 55px;
  22607. border-radius: 5px;
  22608. color: #fff;
  22609. text-align: center;
  22610. height: 20px;
  22611. line-height: 26px;
  22612. font-size: 14px;
  22613. }
  22614. .queTop {
  22615. display: flex;
  22616. padding: 20px 0 20px 30px;
  22617. width: 100%;
  22618. flex-direction: row;
  22619. justify-content: flex-start;
  22620. align-items: center;
  22621. box-sizing: border-box;
  22622. }
  22623. .queTopTitle {
  22624. display: flex;
  22625. flex-direction: row;
  22626. flex-wrap: nowrap;
  22627. align-items: center;
  22628. font-weight: bold;
  22629. font-size: 20px;
  22630. color: rgb(14, 30, 51);
  22631. }
  22632. .queTopTitle::before {
  22633. content: "";
  22634. width: 2px;
  22635. height: 22px;
  22636. background: #3681fc;
  22637. border-radius: 3px;
  22638. display: block;
  22639. margin: 2px 6px 0 0;
  22640. }
  22641. .queTopRight {
  22642. display: flex;
  22643. flex-direction: row;
  22644. flex-wrap: nowrap;
  22645. align-items: center;
  22646. }
  22647. .queTopClose {
  22648. margin-right: 20px;
  22649. cursor: pointer;
  22650. position: relative;
  22651. display: flex;
  22652. }
  22653. .closeImg,
  22654. .openImg {
  22655. width: 25px;
  22656. height: 25px;
  22657. position: absolute;
  22658. left: -20px;
  22659. top: -1px;
  22660. }
  22661. .closeImg > img,
  22662. .openImg > img {
  22663. width: 100%;
  22664. height: 100%;
  22665. }
  22666. .question {
  22667. width: 40px;
  22668. margin-right: 10px;
  22669. margin-top: 7px;
  22670. }
  22671. .queTitle {
  22672. margin-left: 5px;
  22673. font-size: 25px;
  22674. display: flex;
  22675. align-items: center;
  22676. }
  22677. .addEditor {
  22678. width: 100px;
  22679. height: 30px;
  22680. background: #42cda6;
  22681. color: #fff;
  22682. border-radius: 5px;
  22683. text-align: center;
  22684. line-height: 30px;
  22685. box-shadow: 1px 3px 6px 1px #bfbfbf;
  22686. cursor: pointer;
  22687. }
  22688. /* .vedioName {
  22689. cursor: pointer;
  22690. margin: 0px 0px 10px 5px;
  22691. white-space: nowrap;
  22692. overflow: hidden;
  22693. text-overflow: ellipsis;
  22694. width: 100%;
  22695. } */
  22696. .vedioTime {
  22697. width: 35px;
  22698. position: absolute;
  22699. color: #fff;
  22700. bottom: 0px;
  22701. right: 0px;
  22702. text-align: center;
  22703. background: #46411f;
  22704. height: 20px;
  22705. font-size: 14px;
  22706. line-height: 20px;
  22707. }
  22708. .homework {
  22709. width: 200px;
  22710. display: flex;
  22711. flex-direction: column;
  22712. flex-wrap: nowrap;
  22713. align-items: center;
  22714. cursor: pointer;
  22715. }
  22716. .homebox {
  22717. display: flex;
  22718. flex-wrap: wrap;
  22719. flex-direction: row;
  22720. justify-content: flex-start;
  22721. align-items: center;
  22722. padding: 15px 0;
  22723. }
  22724. .isChooseActive {
  22725. color: #3681fc !important;
  22726. font-weight: bold !important;
  22727. }
  22728. .chooseWho {
  22729. display: flex;
  22730. width: 100%;
  22731. flex-direction: row;
  22732. flex-wrap: nowrap;
  22733. justify-content: flex-start;
  22734. padding-bottom: 10px;
  22735. }
  22736. .chooseWho > div {
  22737. cursor: pointer;
  22738. padding-bottom: 10px;
  22739. margin: 0 30px 0 0;
  22740. font-weight: 400;
  22741. color: #0e1e33;
  22742. }
  22743. .addPoint > div > img {
  22744. cursor: pointer;
  22745. width: 85px;
  22746. border-radius: 15px;
  22747. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  22748. }
  22749. .addPoint > div {
  22750. display: flex;
  22751. flex-direction: column;
  22752. flex-wrap: nowrap;
  22753. align-items: center;
  22754. }
  22755. .isBorder > div {
  22756. margin: 0 0 10px 0;
  22757. align-items: flex-start !important;
  22758. }
  22759. .noiframeBox {
  22760. display: flex;
  22761. flex-wrap: wrap;
  22762. }
  22763. .iframeBox iframe {
  22764. width: 100%;
  22765. height: 800px;
  22766. border: none;
  22767. margin-bottom: 20px;
  22768. border: 1px solid #ccc;
  22769. }
  22770. .upload_toolBtn {
  22771. background: #3681fc;
  22772. color: #fff;
  22773. width: 110px;
  22774. text-align: center;
  22775. height: 35px;
  22776. line-height: 35px;
  22777. font-size: 14px;
  22778. border-radius: 5px;
  22779. cursor: pointer;
  22780. position: absolute;
  22781. right: 10px;
  22782. bottom: 0;
  22783. }
  22784. .binfo_input,
  22785. .pj {
  22786. font: inherit;
  22787. color: currentColor;
  22788. width: 100%;
  22789. margin: 0;
  22790. padding: 15px 14px;
  22791. display: block;
  22792. min-width: 0;
  22793. outline: none;
  22794. box-sizing: content-box;
  22795. background: none;
  22796. -webkit-tap-highlight-color: transparent;
  22797. border: 1px solid rgba(0, 0, 0, 0.23);
  22798. border-radius: 4px;
  22799. box-sizing: border-box;
  22800. resize: none;
  22801. }
  22802. .binfo_input:focus-visible {
  22803. border: 1px solid rgba(61, 103, 188);
  22804. }
  22805. .dialog_diy >>> .el-dialog__header,
  22806. .dialog_diy1 >>> .el-dialog__header {
  22807. background: #454545 !important;
  22808. padding: 15px 20px;
  22809. }
  22810. .dialog_diy >>> .el-dialog__title,
  22811. .dialog_diy1 >>> .el-dialog__title {
  22812. color: #fff;
  22813. }
  22814. .dialog_diy >>> .el-dialog__headerbtn,
  22815. .dialog_diy1 >>> .el-dialog__headerbtn {
  22816. top: 19px;
  22817. }
  22818. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  22819. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  22820. color: #fff;
  22821. }
  22822. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  22823. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  22824. color: #fff;
  22825. }
  22826. .dialog_diy1 >>> .el-dialog__body {
  22827. padding: 0;
  22828. }
  22829. .dialog_diy >>> .el-dialog__body,
  22830. .dialog_diy >>> .el-dialog__footer,
  22831. .dialog_diy1 >>> .el-dialog__footer {
  22832. background: #fafafa;
  22833. }
  22834. .a_addBox {
  22835. padding: 0 0 0 15px;
  22836. }
  22837. .a_add_box {
  22838. padding: 10px;
  22839. background: #fff;
  22840. margin-bottom: 10px;
  22841. border-radius: 5px;
  22842. box-shadow: 0 0 5px 0 #d5d5d5;
  22843. }
  22844. .a_add_head {
  22845. display: flex;
  22846. align-items: flex-start;
  22847. /* justify-content: space-between; */
  22848. flex-direction: column;
  22849. /* flex-direction: row; */
  22850. margin: 10px 0 20px 0;
  22851. font-size: 18px;
  22852. width: 100%;
  22853. }
  22854. .askIndex {
  22855. background: #3681fc;
  22856. border-radius: 50%;
  22857. color: #fff;
  22858. width: 25px;
  22859. height: 25px;
  22860. min-width: 25px;
  22861. min-height: 25px;
  22862. text-align: center;
  22863. line-height: 25px;
  22864. margin-right: 5px;
  22865. }
  22866. .a_add_head .a_add_head_input {
  22867. width: 300px;
  22868. }
  22869. .a_add_head .a_add_head_div {
  22870. display: flex;
  22871. align-items: center;
  22872. justify-content: space-between;
  22873. }
  22874. .a_add_body {
  22875. display: flex;
  22876. align-items: center;
  22877. }
  22878. .a_add_input {
  22879. display: flex;
  22880. align-items: center;
  22881. flex-wrap: wrap;
  22882. width: 100%;
  22883. }
  22884. .a_add_input >>> .el-radio-group,
  22885. .a_add_input >>> .el-checkbox-group {
  22886. width: 100%;
  22887. }
  22888. .a_add_input >>> .el-radio,
  22889. .a_add_input >>> .el-checkbox {
  22890. display: flex;
  22891. flex-direction: row;
  22892. flex-wrap: nowrap;
  22893. align-items: center;
  22894. padding: 15px 0;
  22895. }
  22896. .a_add_input >>> .el-radio:not(:last-child),
  22897. .a_add_input >>> .el-checkbox:not(:last-child) {
  22898. width: 100%;
  22899. border-bottom: 1px solid #efefef;
  22900. }
  22901. .redioStyle >>> .el-radio__label {
  22902. font-size: 18px;
  22903. }
  22904. .redioStyle >>> .el-radio__label > span,
  22905. .redioStyle >>> .el-checkbox__label > span {
  22906. word-break: break-all;
  22907. white-space: normal;
  22908. }
  22909. .redioStyle >>> .el-checkbox__label {
  22910. font-size: 18px;
  22911. }
  22912. .toolHeng2 {
  22913. width: 100%;
  22914. padding-left: 15px;
  22915. box-sizing: border-box;
  22916. }
  22917. .workNav {
  22918. font-size: 20px;
  22919. font-weight: bold;
  22920. color: #0e1e33;
  22921. display: flex;
  22922. flex-direction: row;
  22923. flex-wrap: nowrap;
  22924. align-items: center;
  22925. padding: 15px 0 15px 0;
  22926. }
  22927. .workNav::before {
  22928. content: "";
  22929. width: 2px;
  22930. height: 22px;
  22931. background: #3681fc;
  22932. border-radius: 3px;
  22933. display: block;
  22934. margin: 2px 6px 0 0;
  22935. }
  22936. .toolHeng {
  22937. display: flex;
  22938. flex-direction: row;
  22939. flex-wrap: wrap;
  22940. justify-content: flex-start;
  22941. align-items: center;
  22942. width: 100%;
  22943. }
  22944. .toolHeng > div {
  22945. padding-left: 20px;
  22946. }
  22947. .isWidth {
  22948. width: 20%;
  22949. }
  22950. .textTitle {
  22951. display: flex;
  22952. flex-direction: row;
  22953. flex-wrap: nowrap;
  22954. align-items: center;
  22955. width: 95%;
  22956. }
  22957. .textTitle >>> .el-form-item__label {
  22958. font-size: 22px;
  22959. color: #918f8f;
  22960. width: 100px;
  22961. }
  22962. .textTitle >>> .el-form-item__content {
  22963. width: calc(100% - 100px);
  22964. }
  22965. .textCss >>> .el-dialog {
  22966. width: 800px !important;
  22967. height: 400px;
  22968. background: #fafafa;
  22969. }
  22970. .textCss >>> .el-dialog__body {
  22971. margin: 55px 8% 0 8%;
  22972. padding: 0 !important;
  22973. }
  22974. .textCss >>> .el-dialog__footer {
  22975. padding-top: 38px;
  22976. }
  22977. .toolsCss >>> .el-dialog__body {
  22978. padding: 20px;
  22979. }
  22980. .lineCss >>> .el-dialog__body {
  22981. display: flex;
  22982. flex-direction: row;
  22983. align-items: center;
  22984. justify-content: center;
  22985. }
  22986. .newNav {
  22987. display: flex;
  22988. flex-direction: row;
  22989. align-items: baseline;
  22990. justify-content: flex-start;
  22991. }
  22992. .navListItem {
  22993. width: calc(100% - 20px);
  22994. height: 50px;
  22995. margin: 0px auto 10px;
  22996. display: flex;
  22997. flex-direction: row;
  22998. flex-wrap: nowrap;
  22999. align-items: center;
  23000. justify-content: space-between;
  23001. background: #f0f4fa;
  23002. border-radius: 6px 6px 6px 6px;
  23003. }
  23004. .navText {
  23005. cursor: pointer;
  23006. white-space: nowrap;
  23007. overflow: hidden;
  23008. text-overflow: ellipsis;
  23009. width: 220px;
  23010. padding: 0 10px;
  23011. font-weight: 400;
  23012. color: #0e1e33;
  23013. }
  23014. .downIcon {
  23015. width: 20px;
  23016. min-width: 20px;
  23017. height: 20px;
  23018. margin-right: 15px;
  23019. cursor: pointer;
  23020. }
  23021. .downIcon > img {
  23022. width: 100%;
  23023. height: 100%;
  23024. }
  23025. .noVedio {
  23026. display: flex;
  23027. flex-direction: row;
  23028. justify-content: center;
  23029. align-content: center;
  23030. }
  23031. .noNavText {
  23032. cursor: pointer;
  23033. margin: 0px 0px 10px 5px;
  23034. width: 112px;
  23035. }
  23036. .listNoVedio {
  23037. margin: 0 0 0 30px;
  23038. width: 97%;
  23039. }
  23040. .video-player >>> .video-js {
  23041. height: 100%;
  23042. }
  23043. .hangVedioList {
  23044. width: 90% !important;
  23045. height: 150px !important;
  23046. margin: 20px 0 0 30px;
  23047. }
  23048. .hangVedio {
  23049. width: 100%;
  23050. height: 170px !important;
  23051. align-items: flex-start !important;
  23052. }
  23053. .hangHand {
  23054. height: 150px !important;
  23055. }
  23056. .twoChild {
  23057. width: 95%;
  23058. margin: 10px;
  23059. border-radius: 5px;
  23060. background: #f2f2f2;
  23061. display: flex;
  23062. flex-direction: column;
  23063. flex-wrap: nowrap;
  23064. justify-content: flex-start;
  23065. align-items: flex-start;
  23066. transition: all 0.5s;
  23067. overflow: hidden;
  23068. height: 0;
  23069. background: #e7f3ff;
  23070. }
  23071. .twoChild > div:nth-child(1) {
  23072. margin-top: 5px;
  23073. }
  23074. .navChild {
  23075. width: 100%;
  23076. cursor: pointer;
  23077. margin-bottom: 10px;
  23078. position: relative;
  23079. }
  23080. .navChild img {
  23081. position: absolute;
  23082. right: 11px;
  23083. width: 15px;
  23084. top: 50%;
  23085. transform: translateY(-50%);
  23086. }
  23087. .navActive,
  23088. .toolActive {
  23089. height: auto !important;
  23090. overflow: auto !important;
  23091. /* padding-bottom: 16px; */
  23092. }
  23093. .toolActive {
  23094. padding: 0;
  23095. }
  23096. .navTask {
  23097. display: flex;
  23098. flex-direction: row;
  23099. flex-wrap: nowrap;
  23100. align-items: center;
  23101. align-content: flex-start;
  23102. height: 40px;
  23103. justify-content: flex-start;
  23104. padding: 0 10px;
  23105. width: 100%;
  23106. box-sizing: border-box;
  23107. }
  23108. .navTaskname {
  23109. white-space: nowrap;
  23110. text-overflow: ellipsis;
  23111. overflow: hidden;
  23112. word-break: break-all;
  23113. padding-left: 5px;
  23114. }
  23115. .openTaskActive {
  23116. /* background-color: #e0eafb !important;
  23117. color: #0061ff; */
  23118. color:#fff;
  23119. background: rgb(55, 129, 252) !important;
  23120. }
  23121. .iframeName {
  23122. margin: 5px 0;
  23123. border-left: 4px solid #41c4a4;
  23124. padding-left: 4px;
  23125. }
  23126. .toolTitle {
  23127. margin: 0px 0px 20px;
  23128. font-size: 20px;
  23129. font-weight: 500;
  23130. border-left: 4px solid #41c4a4;
  23131. padding-left: 4px;
  23132. }
  23133. .cru_selectBox {
  23134. overflow: auto;
  23135. width: 95%;
  23136. margin: 17px auto 0;
  23137. height: calc(100% - 40px - 21px - 20px - 17px);
  23138. background: #fff;
  23139. border-radius: 8px;
  23140. }
  23141. .cru_selectBox::-webkit-scrollbar,
  23142. .study_top::-webkit-scrollbar,
  23143. .textContent::-webkit-scrollbar {
  23144. /*滚动条整体样式*/
  23145. width: 6px;
  23146. /*高宽分别对应横竖滚动条的尺寸*/
  23147. height: 6px;
  23148. }
  23149. /*定义滚动条轨道 内阴影+圆角*/
  23150. .cru_selectBox::-webkit-scrollbar-track,
  23151. .study_top::-webkit-scrollbar-track,
  23152. .textContent::-webkit-scrollbar {
  23153. border-radius: 10px;
  23154. background-color: #b8bdc9;
  23155. }
  23156. /*定义滑块 内阴影+圆角*/
  23157. .cru_selectBox::-webkit-scrollbar-thumb,
  23158. .study_top::-webkit-scrollbar-thumb,
  23159. .textContent::-webkit-scrollbar-thumb {
  23160. border-radius: 10px;
  23161. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  23162. background-color: #2c5ab3;
  23163. }
  23164. .vedioBox {
  23165. border-radius: 0 0 20px 20px;
  23166. background: #fff;
  23167. overflow: auto;
  23168. }
  23169. .taskBox {
  23170. width: 98%;
  23171. background: #f0f4fa;
  23172. margin: 10px auto;
  23173. padding: 0 10px;
  23174. border-radius: 4px;
  23175. box-sizing: border-box;
  23176. }
  23177. .vedioTaskBox {
  23178. width: 100%;
  23179. display: flex;
  23180. flex-direction: row;
  23181. flex-wrap: nowrap;
  23182. align-items: flex-start;
  23183. position: relative;
  23184. }
  23185. .toolBox {
  23186. margin: 15px 0 0 25px;
  23187. display: flex;
  23188. position: relative;
  23189. padding: 18px 20px;
  23190. border-top-left-radius: 5px;
  23191. border-top-right-radius: 5px;
  23192. width: 90%;
  23193. }
  23194. .btnAll {
  23195. position: absolute;
  23196. right: 0;
  23197. display: flex;
  23198. flex-direction: row;
  23199. flex-wrap: nowrap;
  23200. align-items: center;
  23201. }
  23202. .btnLeft,
  23203. .btnRight {
  23204. display: flex;
  23205. flex-direction: row;
  23206. flex-wrap: nowrap;
  23207. align-items: center;
  23208. padding: 5px 0;
  23209. }
  23210. .btnLeft {
  23211. border-right: 1px solid #cad1dc;
  23212. }
  23213. .btnLeft > .custom-tooltip {
  23214. background: #3681fc;
  23215. color: #fff;
  23216. }
  23217. .last:hover {
  23218. background: #3383fa !important;
  23219. color: #fff;
  23220. border: 1px solid #3383fa !important;
  23221. }
  23222. .last,
  23223. .returnBtn1 {
  23224. width: 90px;
  23225. height: 36px;
  23226. background: #ffffff;
  23227. border-radius: 4px;
  23228. border: 1px solid #0061ff;
  23229. color: #0061ff;
  23230. cursor: pointer;
  23231. display: flex;
  23232. flex-direction: row;
  23233. flex-wrap: nowrap;
  23234. align-items: center;
  23235. justify-content: center;
  23236. margin-left: 12px;
  23237. }
  23238. .returnBtn1 {
  23239. background: #f0f4fa;
  23240. border-radius: 4px;
  23241. border: 1px solid #cad1dc;
  23242. margin: 0 12px;
  23243. }
  23244. .lastImg {
  23245. min-width: 15px;
  23246. width: 15px;
  23247. height: 15px;
  23248. display: flex;
  23249. }
  23250. .lastText {
  23251. padding: 0 5px 0 5px;
  23252. box-sizing: border-box;
  23253. font-size: 14px;
  23254. }
  23255. .lastImg > img {
  23256. width: 100%;
  23257. height: 100%;
  23258. }
  23259. /* .vedioTimeBox {
  23260. display: flex;
  23261. flex-direction: row;
  23262. align-items: center;
  23263. flex-wrap: nowrap;
  23264. position: relative;
  23265. } */
  23266. .navBox {
  23267. background: #fff;
  23268. height: calc(100% - 40px);
  23269. overflow-y: auto;
  23270. overflow-x: hidden;
  23271. }
  23272. .worksBox {
  23273. margin: 0 0 10px 25px;
  23274. border-bottom: 1px solid #eeeeee;
  23275. padding: 18px 20px;
  23276. border-radius: 4px;
  23277. width: 90%;
  23278. }
  23279. .worksBTitle {
  23280. font-size: 20px;
  23281. padding-bottom: 15px;
  23282. border-bottom: 1px solid #eeeeee;
  23283. display: flex;
  23284. align-items: center;
  23285. }
  23286. .greenBox {
  23287. width: 5px;
  23288. height: 30px;
  23289. background: #63b6fa;
  23290. margin-right: 5px;
  23291. }
  23292. .worksDetailBox {
  23293. display: flex;
  23294. width: 100%;
  23295. flex-direction: row;
  23296. flex-wrap: wrap;
  23297. align-items: flex-end;
  23298. justify-content: flex-start;
  23299. padding: 15px 5px;
  23300. box-sizing: border-box;
  23301. }
  23302. .works {
  23303. display: flex;
  23304. flex-direction: column;
  23305. flex-wrap: nowrap;
  23306. align-items: flex-start;
  23307. justify-content: flex-start;
  23308. align-content: center;
  23309. max-width: 240px;
  23310. width: calc(100% / 3 - 10px);
  23311. height: auto;
  23312. margin-right: 10px;
  23313. margin-bottom: 10px;
  23314. overflow: hidden;
  23315. height: 140px;
  23316. box-shadow: 0 0 6px 1px #dfdada;
  23317. border-radius: 15px;
  23318. }
  23319. .workImg {
  23320. width: 100%;
  23321. /* height: calc(100% - 40px); */
  23322. height: 105px;
  23323. position: relative;
  23324. }
  23325. .workImg > img {
  23326. width: 100%;
  23327. height: 100%;
  23328. object-fit: contain;
  23329. cursor: pointer;
  23330. }
  23331. .worksName {
  23332. height: 40px;
  23333. line-height: 40px;
  23334. display: flex;
  23335. width: 100%;
  23336. flex-direction: row;
  23337. flex-wrap: nowrap;
  23338. justify-content: space-between;
  23339. align-items: center;
  23340. margin: 0 0 0 10px;
  23341. }
  23342. .worksName > div:nth-child(1) {
  23343. width: 110px;
  23344. white-space: nowrap;
  23345. overflow: hidden;
  23346. text-overflow: ellipsis;
  23347. }
  23348. .worksName > div:nth-child(2) {
  23349. color: #b7b4b5;
  23350. }
  23351. .noWorksS {
  23352. padding: 15px 0;
  23353. display: flex;
  23354. flex-direction: row;
  23355. flex-wrap: wrap;
  23356. align-items: center;
  23357. justify-content: flex-start;
  23358. }
  23359. .noWorksName,
  23360. .isWorksName,
  23361. .isWorksName2 {
  23362. background: #ddebf8;
  23363. color: #000;
  23364. width: 90px;
  23365. height: 25px;
  23366. text-align: center;
  23367. line-height: 25px;
  23368. border-radius: 4px;
  23369. margin: 10px 15px 10px 0;
  23370. white-space: nowrap;
  23371. overflow: hidden;
  23372. padding: 5px;
  23373. text-overflow: ellipsis;
  23374. cursor: pointer;
  23375. border: 1px solid #ddebf8;
  23376. }
  23377. .noWorksName {
  23378. background: #fff;
  23379. color: #0061ff;
  23380. border: 1px solid #0061ff;
  23381. }
  23382. .noWorksName > span{
  23383. max-width: 100%;
  23384. display: block;
  23385. overflow: hidden;
  23386. text-overflow: ellipsis;
  23387. white-space: nowrap;
  23388. }
  23389. .noWorksName2 {
  23390. background: #fff;
  23391. color: #0061ff;
  23392. width: 90px;
  23393. height: 25px;
  23394. text-align: center;
  23395. line-height: 25px;
  23396. border-radius: 4px;
  23397. margin: 10px 15px 10px 0;
  23398. white-space: nowrap;
  23399. overflow: hidden;
  23400. padding: 5px;
  23401. text-overflow: ellipsis;
  23402. cursor: pointer;
  23403. border: 1px solid #0061ff;
  23404. }
  23405. .noWorksName2 > span {
  23406. max-width: 100%;
  23407. display: block;
  23408. overflow: hidden;
  23409. text-overflow: ellipsis;
  23410. white-space: nowrap;
  23411. }
  23412. .isWorksName2 {
  23413. width: 100px;
  23414. height: 40px;
  23415. line-height: 40px;
  23416. position: relative;
  23417. background: #dae6f9;
  23418. }
  23419. .isWorksName {
  23420. background: #e7ebf1 !important;
  23421. width: 100px;
  23422. height: 40px;
  23423. line-height: 40px;
  23424. position: relative;
  23425. color: #acb4bf;
  23426. border: 1px solid #cad1dc !important;
  23427. }
  23428. .isSelectName,
  23429. .noWorksName:hover {
  23430. background: #3383fa !important;
  23431. color: #fff !important;
  23432. border: 1px solid #3383fa !important;
  23433. }
  23434. .title {
  23435. background: #1e5cc9;
  23436. /* width: 98%; */
  23437. height: 45px;
  23438. color: #fff;
  23439. line-height: 45px;
  23440. padding-left: 20px;
  23441. box-sizing: border-box;
  23442. }
  23443. .textBox {
  23444. font-size: 20px;
  23445. width: 90%;
  23446. display: flex;
  23447. flex-direction: column;
  23448. align-items: center;
  23449. margin: 20px auto 0;
  23450. max-height: calc(100% - 75px);
  23451. overflow: auto;
  23452. }
  23453. .textContent {
  23454. font-size: 18px;
  23455. width: 95%;
  23456. max-width: 95%;
  23457. }
  23458. .answerBg {
  23459. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  23460. background-size: 100% 100%;
  23461. width: 100%;
  23462. height: 100%;
  23463. color: #fff;
  23464. text-align: center;
  23465. display: flex;
  23466. flex-direction: column;
  23467. flex-wrap: nowrap;
  23468. align-items: center;
  23469. position: relative;
  23470. justify-content: center;
  23471. }
  23472. /* .answerBg > div:nth-child(1) {
  23473. font-size: 22px;
  23474. padding: 25px 0 10px;
  23475. } */
  23476. .answerContent {
  23477. width: 215px;
  23478. max-height: 60px;
  23479. word-break: break-all;
  23480. text-align: center;
  23481. /* white-space: nowrap; */
  23482. overflow: hidden;
  23483. text-overflow: ellipsis;
  23484. /* padding: 23px 0 0; */
  23485. -webkit-line-clamp: 3;
  23486. -webkit-box-orient: vertical;
  23487. display: -webkit-box;
  23488. font-size: 15px;
  23489. cursor: pointer;
  23490. }
  23491. .elist_input_box {
  23492. display: flex;
  23493. align-items: flex-start;
  23494. flex-wrap: nowrap;
  23495. padding: 10px 0 15px 30px;
  23496. flex-direction: column;
  23497. }
  23498. .elist_input {
  23499. /* width: 40%; */
  23500. width: 45%;
  23501. margin: 20px;
  23502. }
  23503. .elist_input .elist_input_box input {
  23504. font: inherit;
  23505. color: currentColor;
  23506. width: 200px;
  23507. padding: 8px 14px;
  23508. display: block;
  23509. min-width: 0;
  23510. outline: none;
  23511. border: 1px solid rgba(0, 0, 0, 0.23);
  23512. border-radius: 4px;
  23513. box-sizing: border-box;
  23514. background: #fff;
  23515. margin: 0 20px 0 0;
  23516. }
  23517. .elist_input .elist_input_box span {
  23518. height: 36px;
  23519. line-height: 36px;
  23520. color: rgb(82, 82, 82);
  23521. }
  23522. .elist_input .elist_input_box .remove {
  23523. height: 20px;
  23524. width: 20px;
  23525. background-size: 100% 100%;
  23526. background-position: unset;
  23527. margin-left: 5px;
  23528. }
  23529. .elist_input_box >>> .el-rate {
  23530. display: flex;
  23531. height: 36px;
  23532. align-items: center;
  23533. }
  23534. .elist_input_box .elist_inptu_text {
  23535. min-height: 50px;
  23536. /* width: 500px;
  23537. max-height: 150px; */
  23538. width: 100%;
  23539. line-height: 50px;
  23540. color: rgb(82, 82, 82);
  23541. overflow: auto;
  23542. text-indent: 5px;
  23543. background: #f7f6f9;
  23544. border-radius: 10px;
  23545. }
  23546. .elist_input_box .elist_inptu_text input {
  23547. width: 500px;
  23548. }
  23549. .elist_input_box >>> .el-rate__icon {
  23550. font-size: 24px;
  23551. }
  23552. .isClick {
  23553. background: #4d9def;
  23554. }
  23555. .bzBox {
  23556. display: flex;
  23557. flex-direction: row;
  23558. align-items: center;
  23559. }
  23560. .bzBox .yCss {
  23561. width: 7px;
  23562. height: 7px;
  23563. background: #fff;
  23564. margin: 0 16px 0 6px;
  23565. border-radius: 50%;
  23566. border: 5px solid #3681fc;
  23567. z-index: 99;
  23568. }
  23569. .bzBox > div:nth-child(2) {
  23570. font-size: 18px;
  23571. font-weight: bold;
  23572. color: #0e1e33;
  23573. }
  23574. .navTitile {
  23575. padding: 0 0px 0 15px;
  23576. font-size: 16px;
  23577. font-weight: bold;
  23578. color: #0e1e33;
  23579. height: 40px;
  23580. line-height: 40px;
  23581. }
  23582. .isTypeOne {
  23583. width: 240px;
  23584. height: 170px;
  23585. /* border: 1px solid #f8f8f8; */
  23586. border-radius: 10px;
  23587. box-shadow: 0 0 6px 1px #dfdada;
  23588. }
  23589. .e_add_top {
  23590. display: flex;
  23591. justify-content: space-between;
  23592. padding: 10px 20px;
  23593. border-radius: 3px;
  23594. background: #fff;
  23595. }
  23596. .e_add_title2 {
  23597. display: flex;
  23598. align-items: center;
  23599. }
  23600. .e_add_title2 span {
  23601. width: 40px;
  23602. }
  23603. .e_add_title {
  23604. display: flex;
  23605. align-items: center;
  23606. color: #b8b8b8;
  23607. font-size: 18px;
  23608. position: relative;
  23609. height: 40px;
  23610. }
  23611. .e_add_title span {
  23612. margin-right: 10px;
  23613. }
  23614. .e_add_title .el_input {
  23615. width: 300px;
  23616. }
  23617. .e_add_title >>> .el-input__inner {
  23618. width: 400px;
  23619. }
  23620. /* .e_add_btn {
  23621. } */
  23622. .e_add_content {
  23623. display: flex;
  23624. width: 100%;
  23625. max-width: 650px;
  23626. height: 550px;
  23627. }
  23628. .e_add_list {
  23629. background: #fff;
  23630. height: 500px;
  23631. width: 210px;
  23632. position: relative;
  23633. margin: 15px 5px 0 0;
  23634. flex-shrink: 0;
  23635. display: flex;
  23636. flex-direction: column;
  23637. }
  23638. .e_add_list_title {
  23639. font-size: 20px;
  23640. width: 100%;
  23641. box-sizing: border-box;
  23642. padding: 15px 40px;
  23643. text-align: center;
  23644. border-bottom: 1px solid #eaeaea;
  23645. position: relative;
  23646. display: flex;
  23647. align-items: center;
  23648. justify-content: center;
  23649. height: 57px;
  23650. background: #f6f6f6;
  23651. }
  23652. .e_add_list_title span {
  23653. overflow: hidden;
  23654. white-space: nowrap;
  23655. text-overflow: ellipsis;
  23656. }
  23657. .e_add_list_title img {
  23658. position: absolute;
  23659. right: 15px;
  23660. width: 25px;
  23661. cursor: pointer;
  23662. top: 50%;
  23663. transform: translateY(-50%);
  23664. }
  23665. .e_add_list_body {
  23666. height: calc(100% - 187px);
  23667. overflow: auto;
  23668. }
  23669. .e_add_list_child {
  23670. width: 100%;
  23671. display: flex;
  23672. align-items: center;
  23673. justify-content: center;
  23674. position: relative;
  23675. box-sizing: border-box;
  23676. padding: 15px 40px;
  23677. text-align: center;
  23678. }
  23679. .e_add_list_child span {
  23680. overflow: hidden;
  23681. white-space: nowrap;
  23682. text-overflow: ellipsis;
  23683. cursor: pointer;
  23684. }
  23685. .e_add_list_child img {
  23686. position: absolute;
  23687. right: 10px;
  23688. width: 21px;
  23689. cursor: pointer;
  23690. top: 50%;
  23691. transform: translateY(-50%);
  23692. }
  23693. .e_add_list_child + .e_add_list_child {
  23694. border-top: 1px solid #eaeaea;
  23695. }
  23696. .e_add_list_child .active {
  23697. color: #409eff;
  23698. }
  23699. .e_add_list_btn {
  23700. position: absolute;
  23701. bottom: 0;
  23702. height: 50px;
  23703. background: rgb(120, 120, 254);
  23704. width: 100%;
  23705. color: #fff;
  23706. font-size: 16px;
  23707. text-align: center;
  23708. line-height: 50px;
  23709. cursor: pointer;
  23710. }
  23711. .e_add_list_detail {
  23712. position: absolute;
  23713. bottom: 0;
  23714. height: 130px;
  23715. background: rgb(120, 120, 254);
  23716. width: 100%;
  23717. color: #fff;
  23718. font-size: 16px;
  23719. display: flex;
  23720. align-items: center;
  23721. justify-content: center;
  23722. }
  23723. .e_add_list_detail textarea {
  23724. height: 90%;
  23725. width: 95%;
  23726. border: none;
  23727. resize: none;
  23728. outline: none;
  23729. padding: 5px;
  23730. box-sizing: border-box;
  23731. }
  23732. .e_add_list_pbox {
  23733. width: 100%;
  23734. max-width: 650px;
  23735. /* height: 600px; */
  23736. }
  23737. .e_add_list_pbox_title {
  23738. height: 50px;
  23739. background: #fff;
  23740. display: flex;
  23741. align-items: center;
  23742. width: 100%;
  23743. box-sizing: border-box;
  23744. padding: 0 20px;
  23745. }
  23746. .type_title {
  23747. font-size: 18px;
  23748. font-weight: 700;
  23749. }
  23750. .type_content {
  23751. font-size: 16px;
  23752. /* margin-left: 30px; */
  23753. }
  23754. .type_content span + span {
  23755. margin-left: 20px;
  23756. }
  23757. .type_content span {
  23758. cursor: pointer;
  23759. padding-bottom: 5px;
  23760. box-sizing: border-box;
  23761. }
  23762. .type_content .active {
  23763. color: #409eff;
  23764. border-bottom: 2px solid #409eff;
  23765. }
  23766. .e_add_list_pbox_content {
  23767. height: calc(100% - 50px);
  23768. display: flex;
  23769. align-items: center;
  23770. width: 100%;
  23771. background: #fff;
  23772. }
  23773. .evaCss {
  23774. display: flex;
  23775. flex-direction: row;
  23776. flex-wrap: nowrap;
  23777. align-items: flex-start;
  23778. padding: 0 0 20px;
  23779. }
  23780. .cru_line {
  23781. position: absolute;
  23782. bottom: 0px;
  23783. transition: all 0.5s;
  23784. left: 0px;
  23785. width: 125px;
  23786. margin-left: -25px;
  23787. }
  23788. .isNoMessage {
  23789. width: 20%;
  23790. margin: 25% auto 0;
  23791. }
  23792. .isNoMessage > img {
  23793. width: 100%;
  23794. height: 100%;
  23795. }
  23796. .fullStyle >>> .el-dialog__body {
  23797. height: 100% !important;
  23798. }
  23799. .fullStyle >>> .el-dialog,
  23800. .fullStyle {
  23801. width: 100% !important;
  23802. max-width: 100% !important;
  23803. height: 100% !important;
  23804. margin: 0 !important;
  23805. }
  23806. .full_diy >>> .el-dialog {
  23807. margin: 0 !important;
  23808. height: 100%;
  23809. padding: 4px;
  23810. }
  23811. .full_diy >>> .el-dialog__body {
  23812. height: calc(100% - 100px);
  23813. }
  23814. .full_diy2 >>> .el-dialog__body {
  23815. height: calc(100% - 50px);
  23816. padding: 0;
  23817. }
  23818. .switchCss {
  23819. /* width: 100%; */
  23820. display: flex;
  23821. flex-direction: row;
  23822. flex-wrap: nowrap;
  23823. align-items: center;
  23824. /* justify-content: center; */
  23825. }
  23826. .isClickNav {
  23827. /* color: #499eef; */
  23828. color: #000;
  23829. }
  23830. .commentImg {
  23831. width: 25px;
  23832. height: 25px;
  23833. cursor: pointer;
  23834. }
  23835. .commentImg > img {
  23836. width: 100%;
  23837. height: 100%;
  23838. }
  23839. .comment {
  23840. background: #f9f9f9;
  23841. border-radius: 0 0 4px 4px;
  23842. display: flex;
  23843. flex-direction: row;
  23844. flex-wrap: nowrap;
  23845. align-items: center;
  23846. justify-content: flex-end;
  23847. height: 35px;
  23848. }
  23849. .commentList {
  23850. display: flex;
  23851. flex-direction: row;
  23852. flex-wrap: nowrap;
  23853. align-items: center;
  23854. justify-content: center;
  23855. align-content: center;
  23856. /* margin-left: 15px; */
  23857. /* margin-left: 8px; */
  23858. }
  23859. .scoreImg {
  23860. width: 17px;
  23861. height: 17px;
  23862. }
  23863. .studentDetail {
  23864. display: flex;
  23865. flex-direction: row;
  23866. flex-wrap: nowrap;
  23867. /* align-items: center; */
  23868. align-items: flex-start;
  23869. }
  23870. .tx {
  23871. width: 50px;
  23872. }
  23873. .tx > img {
  23874. width: 100%;
  23875. height: 100%;
  23876. }
  23877. .nameAndTime {
  23878. display: flex;
  23879. flex-direction: column;
  23880. flex-wrap: nowrap;
  23881. align-items: flex-start;
  23882. margin-left: 10px;
  23883. }
  23884. .worksAnswer {
  23885. color: #4078dd;
  23886. margin: 10px 0;
  23887. font-size: 16px;
  23888. position: relative;
  23889. }
  23890. .worksAnswer > img {
  23891. width: 500px;
  23892. height: 300px;
  23893. object-fit: contain;
  23894. margin: 0 auto;
  23895. display: block;
  23896. }
  23897. .commentTop {
  23898. border-bottom: 1px solid #eaeaea;
  23899. padding-bottom: 10px;
  23900. }
  23901. .commentBox {
  23902. padding-top: 15px;
  23903. }
  23904. .pl {
  23905. font-size: 18px;
  23906. }
  23907. .plPerson {
  23908. width: 100%;
  23909. }
  23910. .plName {
  23911. display: flex;
  23912. flex-direction: row;
  23913. flex-wrap: nowrap;
  23914. align-items: baseline;
  23915. color: #78787a;
  23916. width: 100%;
  23917. }
  23918. .deleteComment {
  23919. cursor: pointer;
  23920. margin-left: auto;
  23921. color: #237ade;
  23922. }
  23923. .plContent {
  23924. margin-top: 5px;
  23925. }
  23926. .evalCss {
  23927. background: #fff;
  23928. font-size: 18px;
  23929. }
  23930. .nav {
  23931. color: #9d9d9d;
  23932. padding: 5px 0 15px 20px;
  23933. }
  23934. .middleBox {
  23935. padding: 5px 0 15px 20px;
  23936. }
  23937. .pfBox {
  23938. padding-bottom: 30px;
  23939. }
  23940. .nameAndrate {
  23941. display: flex;
  23942. flex-direction: row;
  23943. flex-wrap: nowrap;
  23944. align-items: center;
  23945. padding-bottom: 10px;
  23946. height: 30px;
  23947. line-height: 30px;
  23948. }
  23949. .nameAndrate > div {
  23950. margin-left: 10px;
  23951. color: #000;
  23952. height: 30px;
  23953. }
  23954. .nameAndrate >>> .el-rate__icon {
  23955. font-size: 28px !important;
  23956. }
  23957. .pfBox > div:nth-child(2) {
  23958. background: #f7f6f9;
  23959. width: 400px;
  23960. min-height: 45px;
  23961. border-radius: 10px;
  23962. font-size: 16px;
  23963. display: flex;
  23964. flex-wrap: wrap;
  23965. align-items: center;
  23966. padding: 10px 20px;
  23967. box-sizing: border-box;
  23968. color: #000;
  23969. }
  23970. .bz {
  23971. display: flex;
  23972. flex-direction: row;
  23973. flex-wrap: nowrap;
  23974. align-items: flex-start;
  23975. }
  23976. .bz > div {
  23977. padding: 0 10px;
  23978. }
  23979. .select_box2_title {
  23980. background: #fff;
  23981. border-radius: 5px;
  23982. padding: 15px 10px;
  23983. box-sizing: border-box;
  23984. margin-bottom: 10px;
  23985. display: flex;
  23986. flex-direction: row;
  23987. flex-wrap: nowrap;
  23988. align-items: center;
  23989. }
  23990. .select_box2_title > div:nth-child(2) {
  23991. margin-left: 10px;
  23992. color: #c4c4c4;
  23993. }
  23994. .select_box2_box {
  23995. display: flex;
  23996. height: 500px;
  23997. }
  23998. .select_box2_img {
  23999. width: calc(100% - 310px);
  24000. height: 100%;
  24001. overflow: auto;
  24002. background: #fff;
  24003. border-radius: 5px;
  24004. }
  24005. .select_box2_img img {
  24006. width: 100%;
  24007. }
  24008. .select_box2_answer {
  24009. background: #fff;
  24010. margin-left: 10px;
  24011. border-radius: 5px;
  24012. width: 300px;
  24013. overflow: auto;
  24014. height: 90%;
  24015. display: flex;
  24016. flex-direction: column;
  24017. align-items: flex-start;
  24018. padding-top: 10px;
  24019. box-sizing: border-box;
  24020. position: relative;
  24021. }
  24022. .select_answer_title {
  24023. padding: 0 0 15px 20px;
  24024. color: #c4c4c4;
  24025. }
  24026. .select_box2_answer_box {
  24027. margin: 0 0 10px 20px;
  24028. width: 85%;
  24029. display: flex;
  24030. flex-direction: row;
  24031. flex-wrap: nowrap;
  24032. align-items: center;
  24033. }
  24034. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  24035. color: #000;
  24036. }
  24037. .upAnswerCss {
  24038. position: absolute;
  24039. bottom: 15px;
  24040. right: 15px;
  24041. }
  24042. .upAnswerCss >>> .el-button {
  24043. width: 95px;
  24044. height: 35px;
  24045. line-height: 35px;
  24046. padding: 0;
  24047. }
  24048. .rightWidthCss {
  24049. width: 60%;
  24050. display: flex;
  24051. flex-direction: row;
  24052. align-items: flex-start;
  24053. }
  24054. .rightAnswer {
  24055. display: flex;
  24056. flex-direction: row;
  24057. flex-wrap: nowrap;
  24058. align-items: center;
  24059. color: red;
  24060. margin-bottom: 31px;
  24061. }
  24062. .rightAnswerCss {
  24063. display: flex;
  24064. flex-direction: column;
  24065. flex-wrap: nowrap;
  24066. padding-top: 60px;
  24067. }
  24068. .blueCss {
  24069. color: #767de1;
  24070. margin-left: 10px;
  24071. }
  24072. .redCss {
  24073. color: red;
  24074. }
  24075. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  24076. color: rgb(0 123 255) !important;
  24077. }
  24078. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  24079. color: rgb(0 123 255) !important;
  24080. }
  24081. .zuoyeYulan {
  24082. padding-top: 0;
  24083. font-size: 18px;
  24084. display: flex;
  24085. align-items: flex-end;
  24086. }
  24087. .buttonA {
  24088. margin-left: 10px;
  24089. padding: 0;
  24090. }
  24091. .displayBox {
  24092. margin-bottom: 10px;
  24093. display: block;
  24094. border-bottom: 3px solid #eee;
  24095. display: flex;
  24096. align-items: center;
  24097. }
  24098. .easy_comment {
  24099. width: calc(100% - 90px);
  24100. margin-left: 10px;
  24101. display: flex;
  24102. flex-wrap: wrap;
  24103. }
  24104. .easy_comment > div {
  24105. border: 1px solid #4a4a4a;
  24106. color: #666;
  24107. border-radius: 15px;
  24108. padding: 5px 10px;
  24109. font-size: 16px;
  24110. margin-bottom: 10px;
  24111. margin-right: 5px;
  24112. cursor: pointer;
  24113. }
  24114. .easy_comment div:hover {
  24115. border: 1px solid #f7ba2a;
  24116. color: #c69217;
  24117. }
  24118. .xuan_right_box {
  24119. padding: 10px 0;
  24120. background: #f0f4fa;
  24121. margin: 0 15px 0 25px;
  24122. border-bottom-left-radius: 5px;
  24123. border-bottom-right-radius: 5px;
  24124. width: 91.5%;
  24125. }
  24126. .tool_right_box {
  24127. display: flex;
  24128. align-items: center;
  24129. }
  24130. .tool_right_box + .tool_right_box {
  24131. margin-top: 10px;
  24132. }
  24133. .right_box_xuan {
  24134. border-radius: 5px;
  24135. padding: 5px;
  24136. margin-left: 10px;
  24137. min-width: 85px;
  24138. background: #fff;
  24139. color: #0061ff;
  24140. border: 1px solid #0061ff;
  24141. font-size: 14px;
  24142. }
  24143. .pButton:hover {
  24144. opacity: 1 !important;
  24145. }
  24146. .pButton {
  24147. position: fixed;
  24148. text-align: center;
  24149. cursor: pointer;
  24150. z-index: 999;
  24151. right: 20px;
  24152. top: 110px;
  24153. width: 50px;
  24154. height: 50px;
  24155. display: flex;
  24156. align-items: center;
  24157. justify-content: center;
  24158. border-radius: 5px;
  24159. }
  24160. .pzClass {
  24161. width: calc(100% - 340px);
  24162. }
  24163. .newDialogCss {
  24164. /* position: fixed;
  24165. right: 5%;
  24166. top: 50%;
  24167. width: 340px;
  24168. transform: translateY(-50%);
  24169. height: 60%;
  24170. box-shadow: 0px 0 8px 0px #555555;
  24171. border-radius: 15px;
  24172. z-index: 999; */
  24173. position: fixed;
  24174. right: 20px;
  24175. top: 101px;
  24176. width: 330px;
  24177. height: calc(100% - 80px);
  24178. z-index: 999;
  24179. background: #fff;
  24180. border-top-right-radius: 0px;
  24181. border-bottom-right-radius: 0px;
  24182. overflow: hidden;
  24183. }
  24184. .newDialogCss>.scoreList{
  24185. width:100%;
  24186. height:100%;
  24187. box-sizing:border-box;
  24188. padding:10px 15px;
  24189. overflow:auto;
  24190. padding-bottom:80px;
  24191. }
  24192. .pzTop {
  24193. color: #fff;
  24194. background: #000;
  24195. display: flex;
  24196. flex-direction: row;
  24197. flex-wrap: nowrap;
  24198. align-items: center;
  24199. justify-content: space-between;
  24200. height: 40px;
  24201. border-radius: 15px 15px 0 0;
  24202. user-select: none;
  24203. }
  24204. .pzTop2 .checkbox {
  24205. display: flex;
  24206. align-items: center;
  24207. padding: 5px 10px;
  24208. flex: 0 0 auto;
  24209. font-weight: bold;
  24210. border-bottom: 1px solid #eee;
  24211. justify-content: space-between;
  24212. }
  24213. .checkbox>.cb-tabList{
  24214. display:flex;
  24215. align-items:center;
  24216. }
  24217. .cb-tabList>div{
  24218. margin-right:20px;
  24219. font-weight:400;
  24220. cursor:pointer;
  24221. }
  24222. .cb-tabList>.cb-tabItem{
  24223. color:#1684FC;
  24224. position:relative;
  24225. }
  24226. .cb-tabItem::after{
  24227. content:"";
  24228. width:100%;
  24229. height:2px;
  24230. background:#1684FC;
  24231. position:absolute;
  24232. bottom:-5px;
  24233. left:0
  24234. }
  24235. .pzTop2 .check {
  24236. text-align: center;
  24237. cursor: pointer;
  24238. box-sizing: border-box;
  24239. display: flex;
  24240. }
  24241. .pzTop2 img {
  24242. width: 25px;
  24243. cursor: pointer;
  24244. }
  24245. .pzTop > div:nth-child(1) {
  24246. padding-left: 10px;
  24247. }
  24248. .pzTop > div:nth-child(2) {
  24249. width: 15px;
  24250. height: 15px;
  24251. padding-right: 10px;
  24252. cursor: pointer;
  24253. }
  24254. .pzTop > div:nth-child(2) > img {
  24255. width: 100%;
  24256. height: 100%;
  24257. }
  24258. .pzBox,
  24259. .noPzBox {
  24260. height: calc(100% - 60px);
  24261. /* background: #ededed; */
  24262. background: #fff;
  24263. /* border-radius: 0 0 15px 15px; */
  24264. }
  24265. .noPzBox {
  24266. display: flex;
  24267. flex-direction: column;
  24268. flex-wrap: nowrap;
  24269. justify-content: center;
  24270. align-items: center;
  24271. }
  24272. .pzList {
  24273. background: #f7f7f7;
  24274. width: 90%;
  24275. margin: 0 auto 15px;
  24276. border-radius: 5px;
  24277. }
  24278. .pzNavTop {
  24279. display: flex;
  24280. flex-direction: row;
  24281. flex-wrap: nowrap;
  24282. padding: 10px 10px 0 10px;
  24283. align-items: center;
  24284. }
  24285. .pzDelete {
  24286. cursor: pointer;
  24287. margin-left: auto;
  24288. font-size: 14px;
  24289. color: #afafaf;
  24290. }
  24291. .pzNavTop > div:nth-child(1) {
  24292. background: #3760af;
  24293. width: 35px;
  24294. height: 35px;
  24295. color: #fff;
  24296. text-align: center;
  24297. line-height: 35px;
  24298. border-radius: 50%;
  24299. font-size: 14px;
  24300. }
  24301. .pzNavTop > div:nth-child(2) {
  24302. font-size: 18px;
  24303. color: #959595;
  24304. margin-left: 5px;
  24305. }
  24306. .pzContent {
  24307. padding: 10px;
  24308. word-break: break-word;
  24309. }
  24310. .pzContent audio {
  24311. width: 100%;
  24312. }
  24313. .pzContent audio::-webkit-media-controls-panel {
  24314. background: #fff;
  24315. }
  24316. .pzContent >>> img {
  24317. max-width: 100%;
  24318. }
  24319. .pzListBox {
  24320. padding-top: 15px;
  24321. height: calc(100% - 110px);
  24322. overflow: auto;
  24323. }
  24324. .addPzButton {
  24325. position: relative;
  24326. margin-top: 3px;
  24327. width: 100%;
  24328. }
  24329. .addPzButton .img1 {
  24330. position: absolute;
  24331. top: 50%;
  24332. right: 25px;
  24333. transform: translateY(-50%);
  24334. height: 100%;
  24335. display: flex;
  24336. align-items: center;
  24337. }
  24338. .addPzButton .img1 div {
  24339. display: flex;
  24340. }
  24341. .addPzButton .img1 div img {
  24342. width: 28px;
  24343. margin-left: 10px;
  24344. cursor: pointer;
  24345. }
  24346. .addPzButton .img1 div span {
  24347. font-size: 14px;
  24348. margin: 4px 0 0 3px;
  24349. color: #afafaf;
  24350. }
  24351. .addPz {
  24352. background: #4b79ce;
  24353. width: 100px;
  24354. color: #fff;
  24355. font-size: 12px;
  24356. height: 30px;
  24357. margin: 0 auto;
  24358. text-align: center;
  24359. line-height: 30px;
  24360. border-radius: 10px;
  24361. cursor: pointer;
  24362. }
  24363. .addDialogCss {
  24364. position: fixed;
  24365. width: 600px;
  24366. height: 70%;
  24367. min-height: 450px;
  24368. box-shadow: 0px 0 8px 0px #555555;
  24369. border-radius: 15px;
  24370. z-index: 999;
  24371. left: 50%;
  24372. top: 50%;
  24373. margin: -18% 0 0 -300px;
  24374. }
  24375. .teacherPz {
  24376. display: flex;
  24377. flex-direction: row;
  24378. align-items: center;
  24379. flex-wrap: nowrap;
  24380. }
  24381. .teacherPzImg {
  24382. width: 30px;
  24383. height: 30px;
  24384. }
  24385. .teacherPzImg > img {
  24386. width: 100%;
  24387. height: 100%;
  24388. }
  24389. .addPzBox {
  24390. height: calc(100% - 40px);
  24391. background: #ededed;
  24392. border-bottom-left-radius: 15px;
  24393. border-bottom-right-radius: 15px;
  24394. }
  24395. .pzAudioClass {
  24396. margin: 15px 14px;
  24397. background: #fff;
  24398. height: 100%;
  24399. display: flex;
  24400. justify-content: center;
  24401. align-items: center;
  24402. }
  24403. .pzConText {
  24404. width: 95%;
  24405. height: 100%;
  24406. margin: 10px auto 0;
  24407. border: none;
  24408. background: #fff;
  24409. border-radius: 0px;
  24410. }
  24411. .pzConText >>> .text {
  24412. height: calc(100% - 82px);
  24413. }
  24414. .addTextCss {
  24415. background: #4b79ce;
  24416. width: 80px;
  24417. height: 30px;
  24418. text-align: center;
  24419. color: #fff;
  24420. line-height: 30px;
  24421. border-radius: 10px;
  24422. margin: 10px auto 0;
  24423. cursor: pointer;
  24424. }
  24425. .pzConText:focus-visible {
  24426. border: none !important;
  24427. }
  24428. .maxWidth {
  24429. width: 1000px;
  24430. }
  24431. .noPz {
  24432. width: 150px;
  24433. margin: 0 auto 20%;
  24434. }
  24435. .noPz > img {
  24436. width: 100%;
  24437. height: 100%;
  24438. }
  24439. .timeAndReply {
  24440. display: flex;
  24441. flex-direction: row;
  24442. flex-wrap: nowrap;
  24443. justify-content: space-between;
  24444. align-items: center;
  24445. font-size: 14px;
  24446. box-sizing: border-box;
  24447. padding: 0 10px 10px 0px;
  24448. }
  24449. .timeAndReply .time {
  24450. color: #bfbfbf;
  24451. padding: 0 0 0 10px;
  24452. box-sizing: border-box;
  24453. }
  24454. .timeAndReply > div:last-child {
  24455. cursor: pointer;
  24456. color: #777;
  24457. }
  24458. /* table 样式 */
  24459. .cont >>> table {
  24460. border-top: 1px solid #ccc;
  24461. border-left: 1px solid #ccc;
  24462. }
  24463. .cont >>> table td,
  24464. .cont >>> table th {
  24465. border-bottom: 1px solid #ccc;
  24466. border-right: 1px solid #ccc;
  24467. /* padding: 20px 5px; */
  24468. padding: 5px 10px;
  24469. max-width: 0px;
  24470. height: 30px;
  24471. vertical-align: baseline;
  24472. box-sizing: border-box;
  24473. }
  24474. .cont >>> table th {
  24475. border-bottom: 2px solid #ccc;
  24476. text-align: center;
  24477. }
  24478. /* blockquote 样式 */
  24479. .cont >>> blockquote {
  24480. display: block;
  24481. border-left: 8px solid #d0e5f2;
  24482. padding: 5px 10px;
  24483. margin: 10px 0;
  24484. line-height: 1.4;
  24485. font-size: 100%;
  24486. background-color: #f1f1f1;
  24487. }
  24488. /* code 样式 */
  24489. .cont >>> code {
  24490. display: inline-block;
  24491. /* *display: inline; */
  24492. zoom: 1;
  24493. background-color: #f1f1f1;
  24494. border-radius: 3px;
  24495. padding: 3px 5px;
  24496. margin: 0 3px;
  24497. }
  24498. .cont >>> pre code {
  24499. display: block;
  24500. }
  24501. /* ul ol 样式 */
  24502. .cont >>> ul,
  24503. ol {
  24504. margin: 10px 0 10px 20px;
  24505. }
  24506. .addPzCheck {
  24507. display: flex;
  24508. flex-direction: row;
  24509. flex-wrap: nowrap;
  24510. padding: 10px 15px 0;
  24511. }
  24512. .addPzCheck span {
  24513. cursor: pointer;
  24514. padding-bottom: 5px;
  24515. font-weight: bold;
  24516. }
  24517. .addPzCheck span + span {
  24518. margin-left: 10px;
  24519. }
  24520. .addPzCheck .isChooseActive {
  24521. color: #3e88f4;
  24522. border-bottom: 2px solid #2f80f3;
  24523. }
  24524. /* code 样式 */
  24525. .cont {
  24526. /* -webkit-user-modify: read-write; */
  24527. overflow-wrap: break-word;
  24528. -webkit-line-break: after-white-space;
  24529. word-break: break-word;
  24530. white-space: pre-line;
  24531. }
  24532. .scoreBox,
  24533. .scoreDetailBox {
  24534. display: flex;
  24535. align-items: center;
  24536. justify-content: flex-start;
  24537. margin-top: 20px;
  24538. font-size: 18px;
  24539. width: 100%;
  24540. }
  24541. .scoreBox .t,
  24542. .scoreDetailBox .t {
  24543. margin-right: 10px;
  24544. width: 100px;
  24545. text-align: right;
  24546. }
  24547. .scoreDetailBox {
  24548. align-items: flex-start;
  24549. }
  24550. .scoreDetailBox >>> .el-textarea {
  24551. width: calc(100% - 200px);
  24552. }
  24553. .scoreBox >>> .el-input {
  24554. width: 130px;
  24555. font-size: 38px;
  24556. }
  24557. .scoreBox >>> .el-input__inner {
  24558. height: 60px;
  24559. }
  24560. .answerScore {
  24561. position: absolute;
  24562. top: 10px;
  24563. right: 10px;
  24564. background: #0000008f;
  24565. border-radius: 5px;
  24566. padding: 3px 5px;
  24567. font-size: 14px;
  24568. color: #fff;
  24569. cursor: pointer;
  24570. }
  24571. .open_box .switch_box {
  24572. width: 100%;
  24573. margin: 0 auto;
  24574. display: flex;
  24575. justify-content: space-between;
  24576. }
  24577. .open_box .switch_box + .switch_box {
  24578. margin-top: 10px;
  24579. }
  24580. .deleteImg,.deleteImg1 {
  24581. width: 25px !important;
  24582. height: 25px !important;
  24583. cursor: pointer;
  24584. position: absolute;
  24585. top: 10px;
  24586. right: 10px;
  24587. }
  24588. .deleteImg2 {
  24589. width: 23px !important;
  24590. height: 23px !important;
  24591. top: 5px;
  24592. right: 5px;
  24593. }
  24594. .deleteImg1{
  24595. width: 23px !important;
  24596. height: 23px !important;
  24597. top: 5px !important;
  24598. right: 30px !important;
  24599. }
  24600. .rightW {
  24601. right: 40px;
  24602. }
  24603. .drawPBox {
  24604. display: flex;
  24605. flex-direction: column;
  24606. position: relative;
  24607. }
  24608. .drawPBox span {
  24609. font-size: 18px;
  24610. color: #606266;
  24611. padding-bottom: 10px;
  24612. margin: 10px 0;
  24613. border-bottom: 1px solid #eaeaea;
  24614. }
  24615. .drawPBox img {
  24616. width: 500px;
  24617. height: 300px;
  24618. object-fit: contain;
  24619. cursor: pointer;
  24620. margin: 0 auto;
  24621. }
  24622. .sentenBox {
  24623. background: #fff;
  24624. height: 450px;
  24625. overflow: auto;
  24626. background-image: url("../../assets/icon/conSentences/stuBg.png");
  24627. background-position: 102%;
  24628. background-repeat: no-repeat;
  24629. background-size: 60%;
  24630. }
  24631. .addSen {
  24632. background: #409efe;
  24633. width: 90px;
  24634. color: #fff;
  24635. height: 35px;
  24636. text-align: center;
  24637. line-height: 35px;
  24638. border-radius: 5px;
  24639. float: right;
  24640. margin: 10px 20px 0 0;
  24641. cursor: pointer;
  24642. }
  24643. .sentenTop {
  24644. display: flex;
  24645. flex-direction: row;
  24646. flex-wrap: nowrap;
  24647. align-items: center;
  24648. padding: 55px 0 0 20px;
  24649. box-sizing: border-box;
  24650. }
  24651. .sentenTop > div:nth-child(2) {
  24652. width: 300px;
  24653. margin: 0 15px;
  24654. }
  24655. .sentenTop > div:nth-child(3) {
  24656. background: #409efe;
  24657. color: #fff;
  24658. width: 65px;
  24659. height: 35px;
  24660. text-align: center;
  24661. line-height: 35px;
  24662. border-radius: 5px;
  24663. cursor: pointer;
  24664. }
  24665. .cardList,
  24666. .cardList1 {
  24667. padding: 10px 0 10px 0;
  24668. display: flex;
  24669. flex-direction: row;
  24670. flex-wrap: wrap;
  24671. align-items: center;
  24672. box-sizing: border-box;
  24673. border-bottom: 1px solid #f4f4f4;
  24674. width: 98%;
  24675. margin: 0 auto;
  24676. min-width: 60%;
  24677. max-width: 85%;
  24678. }
  24679. .cardList1 {
  24680. padding: 10px 0 10px 10px !important;
  24681. margin: 0 !important;
  24682. }
  24683. .cardBox {
  24684. display: flex;
  24685. flex-direction: row;
  24686. flex-wrap: wrap;
  24687. align-items: center;
  24688. align-content: center;
  24689. }
  24690. .cardBox > div {
  24691. margin-bottom: 10px;
  24692. }
  24693. .isCard,
  24694. .isChooseCard,
  24695. .noCard,
  24696. .isCard1 {
  24697. min-width: 130px;
  24698. width: auto;
  24699. height: 60px;
  24700. text-align: center;
  24701. line-height: 60px;
  24702. font-size: 20px;
  24703. cursor: pointer;
  24704. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  24705. background-size: cover;
  24706. transition: all 2s;
  24707. margin-right: 20px;
  24708. background-size: 100% 100%;
  24709. padding: 0 20px;
  24710. box-sizing: border-box;
  24711. }
  24712. .isCard > div,
  24713. .noCard > div,
  24714. .isCard1 > div {
  24715. white-space: nowrap;
  24716. overflow: hidden;
  24717. text-overflow: ellipsis;
  24718. width: 100%;
  24719. margin: 0 auto;
  24720. }
  24721. .noCard {
  24722. background-image: none;
  24723. }
  24724. .isCard1 {
  24725. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  24726. }
  24727. .isChooseCard {
  24728. background-image: none;
  24729. border: 1px dashed #b9b9b9;
  24730. border-radius: 10px;
  24731. }
  24732. .card {
  24733. width: 130px;
  24734. height: 60px;
  24735. }
  24736. .card > img {
  24737. width: 100%;
  24738. height: 100%;
  24739. }
  24740. .rightCardBox {
  24741. margin: 10px 0 0 10px;
  24742. }
  24743. .rightCardBox > div:nth-child(1) {
  24744. margin-bottom: 10px;
  24745. }
  24746. .cardCss {
  24747. display: flex;
  24748. flex-direction: column;
  24749. flex-wrap: nowrap;
  24750. align-items: center;
  24751. border-bottom: 3px solid #b4c3d3;
  24752. padding: 0 0 5px 0;
  24753. margin-right: 10px;
  24754. }
  24755. .cardCss > div:nth-child(2) {
  24756. background: #5b7b9d;
  24757. color: #fff;
  24758. width: 20px;
  24759. height: 20px;
  24760. border-radius: 50%;
  24761. text-align: center;
  24762. line-height: 20px;
  24763. }
  24764. .isWrong {
  24765. display: flex;
  24766. flex-direction: row;
  24767. flex-wrap: nowrap;
  24768. align-content: center;
  24769. align-items: center;
  24770. }
  24771. .answerRight {
  24772. width: 25%;
  24773. }
  24774. .isTj {
  24775. display: flex;
  24776. flex-direction: row;
  24777. flex-wrap: nowrap;
  24778. align-items: center;
  24779. }
  24780. .isTj > div:nth-child(2) {
  24781. color: #727070;
  24782. margin-left: 10px;
  24783. }
  24784. .isTjImg {
  24785. width: 30px;
  24786. height: 30px;
  24787. }
  24788. .isTjImg > img {
  24789. width: 100%;
  24790. height: 100%;
  24791. }
  24792. .cardAnswerBox {
  24793. font-size: 18px;
  24794. width: 97%;
  24795. border: 5px;
  24796. padding: 0;
  24797. border-radius: 5px;
  24798. margin: 10px auto;
  24799. word-break: break-word;
  24800. }
  24801. .w_name {
  24802. margin-bottom: 10px;
  24803. }
  24804. .w_name span {
  24805. font-size: 16px;
  24806. }
  24807. .w_teachert {
  24808. width: 50px !important;
  24809. position: absolute;
  24810. height: auto !important;
  24811. z-index: 10;
  24812. right: 25px;
  24813. top: -25px;
  24814. }
  24815. /* .group_workBox {
  24816. } */
  24817. .group_workBox + .group_workBox {
  24818. margin-top: 20px;
  24819. }
  24820. .group_box {
  24821. padding-bottom: 20px;
  24822. border-bottom: 2px solid #f0f0f0;
  24823. margin-top: 10px;
  24824. }
  24825. .group_title {
  24826. display: flex;
  24827. align-items: center;
  24828. justify-content: space-between;
  24829. width: 95%;
  24830. }
  24831. .group_name {
  24832. background-image: url(../../assets/icon/groupN.png);
  24833. width: 220px;
  24834. background-size: 100% 100%;
  24835. height: 67px;
  24836. padding: 0 20px 0 43px;
  24837. box-sizing: border-box;
  24838. line-height: 63px;
  24839. color: #fff;
  24840. overflow: hidden;
  24841. white-space: nowrap;
  24842. text-overflow: ellipsis;
  24843. }
  24844. .group_work {
  24845. width: 100%;
  24846. padding: 0 10px;
  24847. box-sizing: border-box;
  24848. display: flex;
  24849. flex-wrap: wrap;
  24850. }
  24851. .g_d_box {
  24852. display: flex;
  24853. flex-flow: wrap;
  24854. justify-content: space-around;
  24855. }
  24856. .g_d_box .isChair {
  24857. background-image: url(../../assets/avatar.png) !important;
  24858. }
  24859. .g_d_group {
  24860. width: 500px;
  24861. margin-bottom: 80px;
  24862. }
  24863. .g_d_group_chair {
  24864. display: flex;
  24865. align-items: center;
  24866. justify-content: center;
  24867. }
  24868. .g_d_group_chair > div + div {
  24869. margin-left: 30px;
  24870. }
  24871. .g_d_group_chair > div,
  24872. .g_d_group_chair2 > div {
  24873. display: flex;
  24874. flex-direction: column;
  24875. align-items: center;
  24876. }
  24877. .g_d_group_chair > div > span:nth-child(1),
  24878. .g_d_group_chair2 > div > span:nth-child(1) {
  24879. background-image: url(../../assets/icon/chair.png);
  24880. width: 50px;
  24881. height: 50px;
  24882. display: block;
  24883. background-size: 100% 100%;
  24884. }
  24885. .g_d_group_tableBox {
  24886. display: flex;
  24887. align-items: center;
  24888. justify-content: center;
  24889. }
  24890. .g_d_group_chair2 {
  24891. display: flex;
  24892. flex-direction: column;
  24893. align-items: center;
  24894. justify-content: center;
  24895. }
  24896. .g_d_group_chair2 > div + div {
  24897. margin-top: 10px;
  24898. }
  24899. .g_d_group_table {
  24900. background-image: url(../../assets/icon/groupBg.png);
  24901. width: 354px;
  24902. height: 196px;
  24903. background-size: 100% 100%;
  24904. display: flex;
  24905. align-items: center;
  24906. justify-content: center;
  24907. flex-direction: column;
  24908. color: #fff;
  24909. }
  24910. .g_d_group_table > div:nth-child(1) {
  24911. font-size: 24px;
  24912. margin-bottom: 5px;
  24913. }
  24914. .g_d_group_table > div:nth-child(2) div {
  24915. cursor: pointer;
  24916. background: #2e77bf;
  24917. padding: 4px 10px;
  24918. border-radius: 5px;
  24919. }
  24920. /* .groupBox {
  24921. } */
  24922. .groupContent + .groupContent {
  24923. margin-top: 30px;
  24924. }
  24925. .groupTitle {
  24926. font-size: 24px;
  24927. color: rgb(80, 80, 80);
  24928. margin-bottom: 20px;
  24929. }
  24930. .groupName {
  24931. display: flex;
  24932. align-items: center;
  24933. }
  24934. .groupn {
  24935. font-size: 15px;
  24936. margin-right: 10px;
  24937. }
  24938. .groupName + .groupName {
  24939. margin-top: 15px;
  24940. }
  24941. .groupBtn {
  24942. margin-left: 10px;
  24943. }
  24944. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  24945. text-align: left;
  24946. }
  24947. .g_d_btnBox {
  24948. display: flex;
  24949. justify-content: flex-end;
  24950. align-items: center;
  24951. margin-bottom: 20px;
  24952. }
  24953. .updateChair {
  24954. position: relative;
  24955. }
  24956. .updateChairBtn {
  24957. position: absolute;
  24958. width: 50px;
  24959. height: 50px;
  24960. overflow: hidden;
  24961. /* display: flex; */
  24962. align-items: center;
  24963. justify-content: center;
  24964. background: #00000087;
  24965. color: #fff;
  24966. border-radius: 50px;
  24967. display: none;
  24968. cursor: pointer;
  24969. }
  24970. .updateChair:hover .updateChairBtn {
  24971. display: flex;
  24972. }
  24973. .group_staic_box {
  24974. display: flex;
  24975. padding: 30px 40px 10px;
  24976. flex-wrap: wrap;
  24977. }
  24978. .group_staic {
  24979. /* width: 50%; */
  24980. margin-bottom: 20px;
  24981. display: flex;
  24982. align-items: center;
  24983. }
  24984. .group_staic span:nth-child(1) {
  24985. width: 150px;
  24986. text-align: right;
  24987. margin-right: 15px;
  24988. }
  24989. .group_staic span:nth-child(2) {
  24990. background: rgb(0 123 255);
  24991. color: #fff;
  24992. border-radius: 5px;
  24993. padding: 5px;
  24994. }
  24995. .codeFileBox {
  24996. height: 300px;
  24997. background: #fff;
  24998. display: flex;
  24999. align-items: center;
  25000. justify-content: center;
  25001. }
  25002. .codeFileBox img {
  25003. width: 200px;
  25004. margin: 0;
  25005. height: auto;
  25006. }
  25007. .codeFileBox div {
  25008. background: rgb(80, 142, 226);
  25009. color: #fff;
  25010. padding: 10px 20px;
  25011. border-radius: 25px;
  25012. cursor: pointer;
  25013. margin-left: 15px;
  25014. }
  25015. .radioBox {
  25016. display: flex;
  25017. flex-direction: column;
  25018. flex-wrap: nowrap;
  25019. align-items: flex-start;
  25020. }
  25021. .radioBox > div {
  25022. margin: 10px 0 0 10px;
  25023. }
  25024. /* .radioBox >>> .el-radio__input,
  25025. .radioBox >>> .el-checkbox__inner {
  25026. margin-left: 10px;
  25027. } */
  25028. .radioBox >>> .el-radio__label,
  25029. .radioBox >>> .el-checkbox__label {
  25030. display: flex;
  25031. align-items: center;
  25032. width: 100%;
  25033. }
  25034. .radioBox >>> .el-radio__label > span {
  25035. width: 100%;
  25036. display: -webkit-box;
  25037. overflow: hidden;
  25038. white-space: normal !important;
  25039. text-overflow: ellipsis;
  25040. word-wrap: break-word;
  25041. }
  25042. .inImg {
  25043. width: 100px;
  25044. cursor: pointer;
  25045. }
  25046. .inImg > img {
  25047. width: 100%;
  25048. height: 100%;
  25049. object-fit: cover;
  25050. }
  25051. .timuImgBox {
  25052. margin: 10px 0;
  25053. display: flex;
  25054. flex-direction: column;
  25055. flex-wrap: wrap;
  25056. align-items: flex-start;
  25057. }
  25058. .timuImg {
  25059. width: 150px;
  25060. margin: 5px 0;
  25061. cursor: pointer;
  25062. }
  25063. .timuImg > img {
  25064. width: 100%;
  25065. height: 100%;
  25066. object-fit: cover;
  25067. }
  25068. .worksTop {
  25069. display: flex;
  25070. flex-direction: row;
  25071. align-items: flex-end;
  25072. }
  25073. .worksTitle {
  25074. display: flex;
  25075. flex-direction: row;
  25076. flex-wrap: nowrap;
  25077. align-items: center;
  25078. }
  25079. .worksTitle::before,
  25080. .worksTop::before {
  25081. content: "";
  25082. display: block;
  25083. width: 3px;
  25084. height: 20px;
  25085. background: #0061ff;
  25086. border-radius: 3px;
  25087. margin: 0 5px 0 0;
  25088. }
  25089. .corOpen {
  25090. margin: 0 0 0 10px;
  25091. font-size: 14px;
  25092. cursor: pointer;
  25093. color: #505050;
  25094. }
  25095. .corOpen:hover {
  25096. color: #499eef;
  25097. }
  25098. .navCorOpenBox {
  25099. display: flex;
  25100. flex-direction: row;
  25101. align-items: center;
  25102. justify-content: space-between;
  25103. height: 55px;
  25104. background: #ffffff;
  25105. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  25106. border-radius: 8px 8px 0px 0px;
  25107. z-index: 9;
  25108. position: relative;
  25109. }
  25110. .navCorOpen {
  25111. padding-right: 15px;
  25112. cursor: pointer;
  25113. width: 45px;
  25114. display: flex;
  25115. }
  25116. .navCorOpen > img {
  25117. width: 100%;
  25118. height: 100%;
  25119. }
  25120. .mlImg {
  25121. width: 40px !important;
  25122. min-width: 40px;
  25123. cursor: pointer;
  25124. transform: rotate(180deg);
  25125. }
  25126. .mlImg > img {
  25127. width: 100%;
  25128. height: 100%;
  25129. }
  25130. .navLeftCss {
  25131. width: 100% !important;
  25132. left: 0 !important;
  25133. }
  25134. .isContentCss {
  25135. width: 100% !important;
  25136. }
  25137. .isAllWidth {
  25138. width: 100% !important;
  25139. }
  25140. .group_switch {
  25141. margin-right: 10px;
  25142. height: 30px;
  25143. display: flex;
  25144. align-items: center;
  25145. }
  25146. .group_switch > span {
  25147. margin-right: 5px;
  25148. }
  25149. .fileC_box {
  25150. padding-top: 15px;
  25151. }
  25152. .fileC_box > .fileC_title {
  25153. padding: 10px 5px 14px 10px;
  25154. border-top: 1px solid #cad1dc;
  25155. font-size: 14px;
  25156. font-weight: 400;
  25157. color: #cad1dc;
  25158. width: calc(100% - 20px);
  25159. margin: 0 auto;
  25160. box-sizing: border-box;
  25161. }
  25162. .pl_select_box {
  25163. height: 40px;
  25164. line-height: 40px;
  25165. width: 100%;
  25166. cursor: pointer;
  25167. padding: 0 20px;
  25168. box-sizing: border-box;
  25169. border-radius: 5px;
  25170. border: 1px solid #d6d6d6;
  25171. white-space: nowrap;
  25172. overflow: hidden;
  25173. text-overflow: ellipsis;
  25174. background: #fff;
  25175. text-align: left;
  25176. }
  25177. .newButton {
  25178. width: 102px;
  25179. height: 36px;
  25180. background: #e7ebf1;
  25181. border-radius: 4px;
  25182. color: #0e1e33;
  25183. font-weight: 400;
  25184. font-size: 14px;
  25185. border: none;
  25186. float: right;
  25187. margin-left: 10px;
  25188. }
  25189. .el-table >>> .even_row {
  25190. background-color: #f0f4fa;
  25191. }
  25192. .stageBoxCss,
  25193. .stageBoxIsCss {
  25194. display: flex;
  25195. flex-direction: row;
  25196. flex-wrap: nowrap;
  25197. align-items: center;
  25198. height: 50px;
  25199. border-bottom: 1px solid #e2f5fc;
  25200. cursor: pointer;
  25201. width: 100%;
  25202. }
  25203. .stageBoxIsCss {
  25204. background: #0061ff;
  25205. color: #fff;
  25206. border-radius: 8px;
  25207. }
  25208. .closeTri,
  25209. .closeTri1 {
  25210. min-width: 15px;
  25211. width: 15px;
  25212. height: 15px;
  25213. }
  25214. .closeTri1 {
  25215. padding-left: 10px;
  25216. cursor: pointer;
  25217. }
  25218. .closeTri > img,
  25219. .closeTri1 > img {
  25220. width: 100%;
  25221. height: 100%;
  25222. /* transition: all .5s; */
  25223. }
  25224. .noToolBlue {
  25225. min-width: 10px;
  25226. width: 10px;
  25227. height: 10px;
  25228. background: #0061ff;
  25229. border-radius: 50%;
  25230. margin-left: 13px;
  25231. }
  25232. .stageChild,
  25233. .toolChild {
  25234. height: 0;
  25235. overflow: hidden;
  25236. transition: all 0.5s;
  25237. }
  25238. /* .toolChild { */
  25239. /* margin: 0 0 0 17px;
  25240. padding: 0 0 0 20px;
  25241. border-left: 1px solid #d7d7d7; */
  25242. /* } */
  25243. .toolChild > div + div{
  25244. margin-top:5px;
  25245. }
  25246. .gjCss {
  25247. display: flex;
  25248. flex-direction: row;
  25249. flex-wrap: nowrap;
  25250. align-items: center;
  25251. padding: 10px 0 10px 40px;
  25252. box-sizing: border-box;
  25253. font-size: 14px;
  25254. cursor: pointer;
  25255. border-radius:5px;
  25256. }
  25257. .toolChild > div {
  25258. position: relative;
  25259. width: 100%;
  25260. }
  25261. /* .toolChild > div::before { */
  25262. /* content: "";
  25263. width: 15px;
  25264. height: 1px;
  25265. background: #cad1dc;
  25266. position: absolute;
  25267. top: 24px;
  25268. left: -20px;
  25269. display: block; */
  25270. /* } */
  25271. .isGjCss {
  25272. /* color: #0061ff; */
  25273. color:#fff;
  25274. background: rgb(55, 129, 252);
  25275. /* background-color: #e0eafb !important;
  25276. color: #0061ff !important; */
  25277. }
  25278. .navItem {
  25279. background: #ffffff;
  25280. border-radius: 4px;
  25281. width: 100%;
  25282. margin: 10px auto;
  25283. position: relative;
  25284. height: 40px;
  25285. display: flex;
  25286. flex-direction: row;
  25287. flex-wrap: nowrap;
  25288. align-items: center;
  25289. }
  25290. .navItemList {
  25291. display: flex;
  25292. flex-direction: row;
  25293. flex-wrap: nowrap;
  25294. align-items: center;
  25295. padding: 0 13px;
  25296. cursor: pointer;
  25297. width: calc(100% - 60px);
  25298. height: 100%;
  25299. }
  25300. .navItemList > div:first-child {
  25301. min-width: 60px;
  25302. }
  25303. .navItemList > div:last-child {
  25304. width: calc(100% - 80px);
  25305. white-space: nowrap;
  25306. overflow: hidden;
  25307. text-overflow: ellipsis;
  25308. word-break: break-word;
  25309. }
  25310. /* .isItemList > div {
  25311. color: #fff !important;
  25312. } */
  25313. .tool_work_box {
  25314. width: 100%;
  25315. padding: 0 37px 0;
  25316. box-sizing: border-box;
  25317. }
  25318. .tool_box {
  25319. width: 100%;
  25320. padding: 0 0 0 20px;
  25321. }
  25322. .tool_type_box {
  25323. display: flex;
  25324. flex-direction: row;
  25325. align-items: baseline;
  25326. flex-wrap: nowrap;
  25327. justify-content: flex-start;
  25328. position: relative;
  25329. }
  25330. .toolSort {
  25331. display: flex;
  25332. flex-direction: row;
  25333. flex-wrap: wrap;
  25334. justify-content: flex-start;
  25335. align-items: flex-start;
  25336. padding: 0 0 15px 0;
  25337. }
  25338. .toolSort > div {
  25339. margin: 0 10px 0 0;
  25340. width: 135px;
  25341. box-sizing: border-box;
  25342. border: 2px solid transparent;
  25343. }
  25344. .tools {
  25345. width: 100%;
  25346. display: flex;
  25347. flex-direction: column;
  25348. flex-wrap: nowrap;
  25349. align-items: flex-start;
  25350. }
  25351. .whiteBIcon {
  25352. width: fit-content;
  25353. cursor: pointer;
  25354. display: flex;
  25355. flex-direction: column;
  25356. flex-wrap: nowrap;
  25357. align-items: center;
  25358. font-size: 14px;
  25359. }
  25360. .tool:hover {
  25361. border: 2px solid #a5c7ff;
  25362. border-radius: 5px;
  25363. }
  25364. .whiteBIcon > img {
  25365. width: 65px;
  25366. height: 100%;
  25367. }
  25368. .whiteBIcon > img {
  25369. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  25370. border-radius: 15px;
  25371. }
  25372. .check {
  25373. /* width: 20px;
  25374. height: 20px; */
  25375. cursor: pointer;
  25376. margin: 10px 0;
  25377. position: absolute;
  25378. right: 2px;
  25379. top: -5px;
  25380. }
  25381. .noChoose,
  25382. .isChoose {
  25383. width: 15px;
  25384. height: 15px;
  25385. border-radius: 50%;
  25386. border: 1px solid #adadad;
  25387. }
  25388. .isChoose {
  25389. border: 4px solid #0363ff !important;
  25390. width: 10px;
  25391. height: 10px;
  25392. }
  25393. .isToolChoose {
  25394. border: 2px solid #5394ff !important;
  25395. border-radius: 5px;
  25396. box-shadow: 0 0 6px 0px #5394ff;
  25397. }
  25398. .checkDiv {
  25399. display: flex;
  25400. align-items: center;
  25401. }
  25402. .checkDiv span {
  25403. margin-left: 5px;
  25404. color: #858585;
  25405. }
  25406. .check img {
  25407. width: 20px;
  25408. height: 20px;
  25409. }
  25410. .lockTaskIcon {
  25411. width: 20px;
  25412. height: 20px;
  25413. position: absolute;
  25414. right: 10px;
  25415. top: 10px;
  25416. }
  25417. .lockTaskIcon > img {
  25418. width: 100%;
  25419. height: 100%;
  25420. }
  25421. .pick_box {
  25422. display: flex;
  25423. align-items: flex-start;
  25424. flex-wrap: wrap;
  25425. }
  25426. .selectBox {
  25427. width: 110px;
  25428. margin-left: 10px;
  25429. margin: 0 10px 0 auto;
  25430. }
  25431. .selectBox >>> .el-input__inner {
  25432. height: 30px;
  25433. line-height: 30px;
  25434. }
  25435. .selectBox >>> .el-input__icon {
  25436. line-height: 30px;
  25437. }
  25438. .sentenceTitle {
  25439. display: flex;
  25440. flex-direction: row;
  25441. flex-wrap: nowrap;
  25442. align-items: center;
  25443. }
  25444. .sentenceTitle::before {
  25445. content: attr(index);
  25446. background: #3681fc;
  25447. border-radius: 50%;
  25448. color: #fff;
  25449. width: 25px;
  25450. height: 25px;
  25451. min-width: 25px;
  25452. min-height: 25px;
  25453. text-align: center;
  25454. line-height: 25px;
  25455. margin-right: 5px;
  25456. }
  25457. .hfBox {
  25458. padding: 10px;
  25459. box-sizing: border-box;
  25460. }
  25461. .whoReplyWho {
  25462. display: flex;
  25463. flex-direction: row;
  25464. flex-wrap: nowrap;
  25465. align-items: baseline;
  25466. justify-content: flex-start;
  25467. }
  25468. .hfBottom {
  25469. display: flex;
  25470. flex-direction: row;
  25471. flex-wrap: nowrap;
  25472. align-items: center;
  25473. justify-content: space-between;
  25474. font-size: 14px;
  25475. }
  25476. .deleteHfItem {
  25477. cursor: pointer;
  25478. width: 20px;
  25479. height: 20px;
  25480. }
  25481. .deleteHfItem > img {
  25482. width: 100%;
  25483. height: 100%;
  25484. }
  25485. .whoReplyWho > .hfImg {
  25486. width: 12px;
  25487. height: 12px;
  25488. margin: 0 5px;
  25489. }
  25490. .whoReplyWho > .hfImg > img {
  25491. width: 100%;
  25492. height: 100%;
  25493. }
  25494. .hfContent {
  25495. padding-top: 10px;
  25496. box-sizing: border-box;
  25497. display: -webkit-box;
  25498. overflow: hidden;
  25499. white-space: normal !important;
  25500. text-overflow: ellipsis;
  25501. word-wrap: break-word;
  25502. -webkit-box-orient: vertical;
  25503. }
  25504. .hfTime {
  25505. text-align: left;
  25506. box-sizing: border-box;
  25507. padding: 10px 0 10px 0px;
  25508. color: #bfbfbf;
  25509. font-size: 14px;
  25510. }
  25511. .btnAllNT {
  25512. position: fixed;
  25513. bottom: 100px;
  25514. right: 40px;
  25515. z-index: 999;
  25516. display: flex;
  25517. flex-direction: row;
  25518. }
  25519. .btnAllNT > img {
  25520. cursor: pointer;
  25521. width: 80px;
  25522. }
  25523. .toolMask {
  25524. position: fixed;
  25525. width: 100%;
  25526. height: 100%;
  25527. background: #3f3c3c;
  25528. opacity: 0.5;
  25529. top: 0;
  25530. left: 0;
  25531. z-index: 999;
  25532. }
  25533. .addToolCss {
  25534. position: fixed;
  25535. z-index: 999;
  25536. background: #fff;
  25537. right: 5%;
  25538. bottom: 18%;
  25539. min-width: 1035px;
  25540. min-height: 300px;
  25541. border-radius: 10px;
  25542. box-shadow: 0 0 8px 1px #b2b2b2;
  25543. }
  25544. .toolTop {
  25545. display: flex;
  25546. flex-direction: row;
  25547. flex-wrap: nowrap;
  25548. justify-content: space-between;
  25549. align-items: center;
  25550. padding: 20px;
  25551. }
  25552. .toolTop > div:nth-child(2) {
  25553. width: 15px;
  25554. height: 15px;
  25555. padding-right: 10px;
  25556. cursor: pointer;
  25557. }
  25558. .toolTop > div:nth-child(2) > img {
  25559. width: 100%;
  25560. height: 100%;
  25561. }
  25562. .fullStyle>>>.el-dialog__body {
  25563. height: calc(100% - 125px) !important;
  25564. box-sizing: border-box;
  25565. padding: 30px 0 !important;
  25566. background: #fff !important;
  25567. }
  25568. .fullStyle>>>.el-dialog {
  25569. width: 100% !important;
  25570. max-width: 100% !important;
  25571. height: 100% !important;
  25572. margin: 0 !important;
  25573. }
  25574. .fullStyle {
  25575. width: 100% !important;
  25576. max-width: 100% !important;
  25577. height: 100% !important;
  25578. margin: 0 auto !important;
  25579. }
  25580. .fullStyle>>>.el-dialog__footer{
  25581. background: #fff !important;
  25582. }
  25583. .engUpBox {
  25584. width: 100%;
  25585. height: 100%;
  25586. }
  25587. .engTitle,
  25588. .engText {
  25589. display: flex;
  25590. flex-direction: row;
  25591. flex-wrap: nowrap;
  25592. align-items: flex-start;
  25593. padding: 0 20px 20px 20px;
  25594. box-sizing: border-box;
  25595. }
  25596. .engTitle > .div:first-child,
  25597. .engText > div:first-child {
  25598. min-width: 75px;
  25599. }
  25600. .correctBox{
  25601. width: 100%;
  25602. display: flex;
  25603. flex-direction: row;
  25604. flex-wrap: nowrap;
  25605. align-items: flex-start;
  25606. }
  25607. .oldBox{
  25608. width: 50%;
  25609. height: 100%;
  25610. display: flex;
  25611. flex-direction: column;
  25612. flex-wrap: nowrap;
  25613. align-items: center;
  25614. border-top: 1px solid #d9d9d9;
  25615. border-left: 1px solid #d9d9d9;
  25616. border-right: 1px solid #d9d9d9;
  25617. }
  25618. .oldBox>div:first-child{
  25619. width: 100%;
  25620. text-align: center;
  25621. background: #d9d9d9;
  25622. height: 35px;
  25623. line-height: 35px;
  25624. font-weight: bold;
  25625. }
  25626. .oldText{
  25627. width: 100%;
  25628. height: calc(100% - 35px);
  25629. overflow: auto;
  25630. margin: 10px 0;
  25631. display: flex;
  25632. flex-direction: column;
  25633. flex-wrap: nowrap;
  25634. align-content: center;
  25635. align-items: center;
  25636. }
  25637. .detailBox{
  25638. width: 50%;
  25639. padding: 10px;
  25640. background: #f6f6f6;
  25641. border-radius: 5px;
  25642. }
  25643. .oldDetail,.oldDetail1{
  25644. padding-bottom: 30px;
  25645. }
  25646. .oldImg{
  25647. width:30px;
  25648. height: 30px;
  25649. }
  25650. .oldImg>img{
  25651. width: 100%;
  25652. height: 100%;
  25653. }
  25654. .allName{
  25655. min-width: 200px;
  25656. white-space: nowrap;
  25657. overflow: hidden;
  25658. text-overflow: ellipsis;
  25659. word-break: break-word;
  25660. cursor: pointer;
  25661. text-align: center;
  25662. border: 1px solid #bcc2cc;
  25663. box-sizing: border-box;
  25664. }
  25665. .engUpTop{
  25666. max-height: 300px;
  25667. overflow: auto;
  25668. }
  25669. .isUpdateToolDetailClass{
  25670. padding: 0 !important;
  25671. }
  25672. .isUpdateToolDetailClass textarea{
  25673. padding:12px;
  25674. font-size: 16px;
  25675. min-height:100%;
  25676. width: 100%;
  25677. box-sizing:border-box;
  25678. outline: none;
  25679. border:none;
  25680. line-height: 30px;
  25681. resize: none;
  25682. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  25683. color: #838383;
  25684. }
  25685. .show_taskD {
  25686. min-width: fit-content;
  25687. margin-left: 10px;
  25688. display: flex;
  25689. align-items: center;
  25690. font-size: 14px;
  25691. cursor: pointer;
  25692. color: #717c8d;
  25693. }
  25694. .show_taskD > img {
  25695. width: 15px;
  25696. margin-right: 5px;
  25697. transition: 0.2s all;
  25698. transform: rotate(-90deg);
  25699. }
  25700. .show_taskD.show > img {
  25701. transform: rotate(0deg);
  25702. }
  25703. .dialog_diyCopy >>> .el-dialog__header {
  25704. display: none !important;
  25705. }
  25706. .dialog_diyCopy >>> .el-dialog__body {
  25707. padding: 0 !important;
  25708. height: 100% !important;
  25709. }
  25710. .confirmOpenDigCss > div{
  25711. font-size: 14px;
  25712. color: rgba(0, 0, 0, 0.6);
  25713. }
  25714. .confirmOpenDigCss >>> .el-dialog{
  25715. border-radius: 6px;
  25716. }
  25717. .confirmOpenDigCss >>> .el-dialog__body{
  25718. padding: 25px !important;
  25719. }
  25720. .confirmOpenDigCss > span{
  25721. font-size: 16px;
  25722. font-weight: 600;
  25723. color: rgba(0, 0, 0, 0.8);
  25724. }
  25725. .correctCss{
  25726. position: absolute;
  25727. bottom: -70px;
  25728. background: #409eff;
  25729. color: #fff;
  25730. }
  25731. div::-webkit-scrollbar {
  25732. width: 10px;
  25733. height: 6px;
  25734. }
  25735. .Ovh{
  25736. margin: 5px 0;
  25737. width: 4em;
  25738. -webkit-line-clamp: 2;
  25739. display: -webkit-box;
  25740. -webkit-box-orient: vertical;
  25741. overflow: hidden;
  25742. text-overflow: ellipsis;
  25743. }
  25744. .renderedFor >>> .katex {
  25745. font-size: 18px;
  25746. width: 100%;
  25747. white-space: normal;
  25748. font-family: '黑体' !important;
  25749. }
  25750. .renderedFor >>> .katex .base{
  25751. display: inline !important;
  25752. display: contents !important;
  25753. }
  25754. .renderedFor >>> .katex .base .cjk_fallback{
  25755. white-space: normal !important;
  25756. display: inline !important;
  25757. }
  25758. .notop >>> .vjs-fluid{
  25759. padding-top: 0 !important;
  25760. }
  25761. </style>