studyStudent.vue 888 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397
  1. <template>
  2. <div class="pb_content" style="height: 100%;overflow: unset;">
  3. <!-- 极简模式 -->
  4. <div
  5. class="pb_content_body"
  6. style="
  7. display: flex;
  8. height: 100%;
  9. position: relative;
  10. padding: 20px 0 20px 20px;
  11. box-sizing: border-box;
  12. overflow: auto;
  13. "
  14. >
  15. <!-- <div class="btnAllNT">
  16. <img
  17. v-if="
  18. courseDetail.userid == userid ||
  19. (courseDetail.course_teacher &&
  20. courseDetail.course_teacher.indexOf(userid) != -1)
  21. "
  22. src="../../assets/icon/learn/addTool.png"
  23. @click="openToolAll"
  24. style="position: relative"
  25. />
  26. <img
  27. src="../../assets/icon/learn/last.png"
  28. @click="nextOrpreSteps(0)"
  29. />
  30. <img
  31. src="../../assets/icon/learn/next.png"
  32. @click="nextOrpreSteps(1)"
  33. />
  34. <img
  35. src="../../assets/icon/learn/return.png"
  36. @click.stop="
  37. goTo(
  38. '/courseDetail?userid=' +
  39. userid +
  40. '&oid=' +
  41. oid +
  42. '&org=' +
  43. org +
  44. '&cid=' +
  45. classId +
  46. '&courseId=' +
  47. id +
  48. '&tType=' +
  49. tType +
  50. '&screenType=' +
  51. screenType
  52. )
  53. "
  54. />
  55. </div> -->
  56. <div
  57. class="pButton"
  58. style="left: 0; top: 140px"
  59. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  60. @click="setContent2(true)"
  61. >
  62. <!-- 批 , getCourseDetail()-->
  63. <img
  64. src="../../assets/icon/newIcons/isRight.png"
  65. style="width: 45px"
  66. alt=""
  67. />
  68. </div>
  69. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  70. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  71. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  72. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  73. <div
  74. style="
  75. max-width: calc(100% - 40px);
  76. width: auto;
  77. white-space: nowrap;
  78. overflow: hidden;
  79. text-overflow: ellipsis;
  80. word-break: break-word;
  81. display: block;
  82. "
  83. >
  84. <el-tooltip
  85. effect="light"
  86. :content="courseDetail.title"
  87. placement="top"
  88. >
  89. <div class="ctitle">
  90. {{ courseDetail.title }}
  91. </div>
  92. </el-tooltip>
  93. </div>
  94. <el-tooltip effect="light" content="收缩" placement="top">
  95. <div class="mlImg" @click="setContent2(false)">
  96. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  97. </div>
  98. </el-tooltip>
  99. </div>
  100. <div
  101. class="inviteBox"
  102. v-if="tcid && inviteCode"
  103. style="padding: 0 0 8px 0"
  104. >
  105. <div>
  106. <span>随机码:{{ inviteCode }}</span>
  107. </div>
  108. </div>
  109. </div>
  110. <div class="cru_selectBox">
  111. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  112. <div class="stageChild" :class="{ navActive: item.isOpen }">
  113. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  114. <div
  115. class="navItem"
  116. :class="{
  117. openTaskActive:
  118. navIndex == taskCount &&
  119. nav.id == navId &&
  120. stageIndex == courseType,
  121. }"
  122. >
  123. <div v-if="nav.tool[0].tool != undefined">
  124. <div
  125. class="closeTri1"
  126. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  127. @click="openTask(stageIndex, navIndex, nav.id)"
  128. >
  129. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../../assets/icon/newIcons/bDown2.png" alt />
  130. </div>
  131. <div
  132. class="closeTri1"
  133. v-else
  134. @click="openTask(stageIndex, navIndex, nav.id)"
  135. >
  136. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../../assets/icon/newIcons/right.png" alt />
  137. </div>
  138. </div>
  139. <div v-else class="noToolBlue"></div>
  140. <div
  141. @click="openTask(stageIndex, navIndex, nav.id)"
  142. class="navItemList"
  143. :class="{
  144. isItemList:
  145. navIndex == taskCount &&
  146. nav.id == navId &&
  147. stageIndex == courseType,
  148. }"
  149. >
  150. <div>任务{{ navIndex + 1 }}:</div>
  151. <el-tooltip
  152. effect="light"
  153. :content="nav.taskName"
  154. placement="top"
  155. >
  156. <div
  157. :style="{
  158. width:
  159. IsLookOpen && !nav.isLook
  160. ? 'calc(100% - 75px)'
  161. : 'auto',
  162. }"
  163. >
  164. {{ nav.taskName }}
  165. </div>
  166. </el-tooltip>
  167. </div>
  168. <div class="lockTaskIcon">
  169. <img
  170. src="../../assets/lock.png"
  171. v-if="IsLookOpen && !nav.isLook && courseDetail.userid != userid &&
  172. courseDetail.course_teacher.indexOf(userid) ==-1"
  173. alt=""
  174. />
  175. </div>
  176. </div>
  177. <div
  178. v-if="nav.tool[0].tool != undefined"
  179. class="toolChild"
  180. :class="{ toolActive: nav.isOpen }"
  181. >
  182. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  183. <div
  184. class="gjCss"
  185. :class="{
  186. isGjCss: t.isTool,
  187. }"
  188. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  189. >
  190. <div>工具{{ toolIndex2 + 1 }}:</div>
  191. <div v-if="t.tool == 58">模拟驾驶</div>
  192. <div v-if="t.tool == 59">路径搜索</div>
  193. <div v-if="t.tool == 60">深度学习</div>
  194. <div v-if="t.tool == 10">倒计时</div>
  195. <div v-if="t.tool == 65">挑人</div>
  196. <div v-if="t.tool == 7">思维网格</div>
  197. <div v-if="t.tool == 1">电子白板</div>
  198. <div v-if="t.tool == 52">文档</div>
  199. <div v-if="t.tool == 3">思维导图</div>
  200. <div v-if="t.tool == 48">表格</div>
  201. <div v-if="t.tool == 49">学生分组</div>
  202. <div v-if="t.tool == 4">问卷调查</div>
  203. <div v-if="t.tool == 45">选择题</div>
  204. <div v-if="t.tool == 15">问答</div>
  205. <div v-if="t.tool == 16">作业提交</div>
  206. <div v-if="t.tool == 50">批量上传</div>
  207. <div v-if="t.tool == 41">选择匹配</div>
  208. <div v-if="t.tool == 47">排序</div>
  209. <div v-if="t.tool == 40">个人评价</div>
  210. <div v-if="t.tool == 18">训练平台</div>
  211. <div v-if="t.tool == 21">AIoT Blockly</div>
  212. <div v-if="t.tool == 23">AI Python</div>
  213. <div v-if="t.tool == 24">AI Blockly</div>
  214. <div v-if="t.tool == 32">源码编辑</div>
  215. <div v-if="t.tool == 57">CocoPi</div>
  216. <div v-if="t.tool == 63">海龟编程</div>
  217. <div v-if="t.tool == 28">翻译</div>
  218. <div v-if="t.tool == 31">数字画板</div>
  219. <div v-if="t.tool == 39">GeoGebra</div>
  220. <div v-if="t.tool == 66">公式编辑</div>
  221. <div v-if="t.tool == 67">分子结构</div>
  222. <div v-if="t.tool == 68">时间轴</div>
  223. <div v-if="t.tool == 69">英语写作</div>
  224. <div v-if="t.tool == 70">英语口语</div>
  225. <div v-if="t.tool == 25">目标管理</div>
  226. <div v-if="t.tool == 26">课程设计</div>
  227. <div v-if="t.tool == 62">交互视频</div>
  228. <div v-if="t.tool == 71">AI智能体</div>
  229. <div v-if="t.tool == 72">应用中心</div>
  230. <div v-if="t.tool == 73">PPT</div>
  231. </div>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. </div>
  239. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  240. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }"></div>
  241. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 47px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 18px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  242. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid))? '100%' : 'calc(100% - 745px)'}">
  243. <div>任务{{ taskCount + 1 }}</div>
  244. <el-tooltip
  245. effect="light"
  246. :content="
  247. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  248. "
  249. placement="top"
  250. >
  251. <div>
  252. {{
  253. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  254. .task
  255. }}
  256. </div>
  257. </el-tooltip>
  258. </div>
  259. <!-- v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'" -->
  260. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid)">
  261. <div class="btnLeft">
  262. <el-tooltip effect="light" content="刷新" placement="top">
  263. <div class="reBtnIcon" @click="refreshCourse">
  264. <span>刷新</span>
  265. </div>
  266. </el-tooltip>
  267. <el-tooltip effect="light" content="评论" placement="top">
  268. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  269. <span>评论</span>
  270. </div>
  271. </el-tooltip>
  272. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  273. <el-tooltip effect="light" content="录制" placement="top">
  274. <div class="vedioIcon" @click="startRecording">
  275. <span>录制</span>
  276. </div>
  277. </el-tooltip>
  278. </div>
  279. <div v-else-if="tType == 1 || tType == 4">
  280. <el-tooltip effect="light" content="下载" placement="top">
  281. <div class="vedioIcon1" @click="stopRecording">
  282. <span>下载</span>
  283. </div>
  284. </el-tooltip>
  285. </div>
  286. </div>
  287. <div class="btnRight">
  288. <div
  289. class="last"
  290. @click="nextOrpreSteps(0)"
  291. v-if="!(IsFollow && tType == 2)"
  292. @mouseover="isHovered = true"
  293. @mouseout="isHovered = false"
  294. >
  295. <div class="lastImg">
  296. <img
  297. :src="
  298. isHovered
  299. ? require('../../assets/icon/newIcons/whiteLast.png')
  300. : require('../../assets/icon/newIcons/last.png')
  301. "
  302. alt=""
  303. />
  304. </div>
  305. <div class="lastText">上一步</div>
  306. </div>
  307. <div
  308. class="last"
  309. @click="nextOrpreSteps(1)"
  310. v-if="!(IsFollow && tType == 2)"
  311. @mouseover="isHovered1 = true"
  312. @mouseout="isHovered1 = false"
  313. >
  314. <div class="lastText">下一步</div>
  315. <div class="lastImg">
  316. <img
  317. :src="
  318. isHovered1
  319. ? require('../../assets/icon/newIcons/whiteNext.png')
  320. : require('../../assets/icon/newIcons/next.png')
  321. "
  322. alt=""
  323. />
  324. </div>
  325. </div>
  326. <div
  327. class="last"
  328. @click="juriVisible = true"
  329. v-if="tType == 1"
  330. @mouseover="isHovered2 = true"
  331. @mouseout="isHovered2 = false"
  332. >
  333. <div class="lastImg">
  334. <img
  335. :src="
  336. isHovered2
  337. ? require('../../assets/icon/newIcons/whiteLock.png')
  338. : require('../../assets/icon/newIcons/lock.png')
  339. "
  340. alt=""
  341. />
  342. </div>
  343. <div class="lastText">权限</div>
  344. </div>
  345. <div
  346. class="returnBtn1 returnIcon"
  347. @click.stop="
  348. goTo(
  349. '/courseDetail?userid=' +
  350. userid +
  351. '&oid=' +
  352. oid +
  353. '&org=' +
  354. org +
  355. '&cid=' +
  356. classId +
  357. '&courseId=' +
  358. id +
  359. '&tType=' +
  360. tType +
  361. '&screenType=' +
  362. screenType
  363. )
  364. "
  365. >
  366. <div class="lastImg">
  367. <img src="../../assets/icon/newIcon/return.png" alt="" />
  368. </div>
  369. <div class="lastText" style="color: #000">返回</div>
  370. </div>
  371. </div>
  372. <!-- <div
  373. class="returnBtn lockIcon"
  374. @click="juriVisible = true"
  375. v-if="tType == 1"
  376. >
  377. 权限
  378. </div>
  379. <div
  380. class="returnBtn vedioIcon"
  381. @click="startRecording"
  382. v-if="!videoStart && (tType == 1 || tType == 4)"
  383. >
  384. 录制
  385. </div>
  386. <div
  387. class="returnBtn"
  388. @click="stopRecording"
  389. v-else-if="tType == 1 || tType == 4"
  390. style="background: #ee5255"
  391. >
  392. 下载
  393. </div>
  394. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  395. 评论
  396. </div>
  397. <div
  398. class="returnBtn"
  399. @click="nextOrpreSteps(0)"
  400. v-if="!(IsFollow && tType == 2)"
  401. >
  402. 上一步
  403. </div>
  404. <div
  405. class="returnBtn"
  406. @click="nextOrpreSteps(1)"
  407. v-if="!(IsFollow && tType == 2)"
  408. >
  409. 下一步
  410. </div>
  411. <div class="returnBtn" @click="refreshCourse">刷新</div>
  412. <div
  413. class="returnBtn returnIcon"
  414. @click.stop="
  415. goTo(
  416. '/courseDetail?userid=' +
  417. userid +
  418. '&oid=' +
  419. oid +
  420. '&org=' +
  421. org +
  422. '&cid=' +
  423. classId +
  424. '&courseId=' +
  425. id +
  426. '&tType=' +
  427. tType +
  428. '&screenType=' +
  429. screenType
  430. )
  431. "
  432. >
  433. 返回
  434. </div> -->
  435. </div>
  436. </div>
  437. <!-- !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  438. .taskDetail3 && -->
  439. <div
  440. class="isNoMessage"
  441. v-if="
  442. chapInfoList[courseType].chapterInfo[0].taskJson[0]
  443. .chapterData.length == 0 &&
  444. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  445. .toolChoose[0].tool.length == 0 &&
  446. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  447. .taskDetail == '' &&
  448. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  449. .eList &&
  450. !(
  451. courseDetail.userid == userid ||
  452. (courseDetail.course_teacher &&
  453. courseDetail.course_teacher.indexOf(userid) != -1)
  454. )
  455. "
  456. >
  457. <img src="../../assets/icon/isNoMessage.png" alt />
  458. </div>
  459. <div class="study_top" :class="{ pzClass: pzDialog }">
  460. <!-- chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  461. .taskDetail3 || -->
  462. <div
  463. class="vedioBox"
  464. v-if="
  465. (chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  466. .taskDetail != '' ||
  467. vChapterData[0].length > 0 ||
  468. fileC[0].length > 0) && (tType == 1 || (tType == 2 && IsStulook))
  469. "
  470. style="border-radius: 0 0 20px 20px"
  471. >
  472. <!-- <div
  473. class="taskBox"
  474. v-if="
  475. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  476. .taskDetail3
  477. "
  478. >
  479. <div
  480. style="
  481. display: flex;
  482. flex-wrap: nowrap;
  483. flex-direction: column;
  484. position: relative;
  485. "
  486. >
  487. <div
  488. style="
  489. padding: 15px 0;
  490. line-height: 29px;
  491. font-size: 18px;
  492. color: #0e1e33;
  493. "
  494. class="cont"
  495. v-if="
  496. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  497. .taskDetail3 != ''
  498. "
  499. v-html="
  500. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  501. .taskDetail3
  502. ? MarkdownT(chapInfoList[courseType].chapterInfo[0].taskJson[
  503. taskCount
  504. ].taskDetail3)
  505. : '暂无描述'
  506. "
  507. ></div>
  508. </div>
  509. </div> -->
  510. <div
  511. class="taskBox"
  512. v-if="
  513. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  514. .taskDetail != ''
  515. "
  516. >
  517. <div
  518. style="
  519. display: flex;
  520. flex-wrap: nowrap;
  521. flex-direction: column;
  522. position: relative;
  523. "
  524. class="renderedFor"
  525. >
  526. <div
  527. style="
  528. padding: 15px 0;
  529. line-height: 29px;
  530. font-size: 18px;
  531. color: #0e1e33;
  532. "
  533. class="cont"
  534. v-if="
  535. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  536. .taskDetail != ''
  537. "
  538. v-html="
  539. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  540. .taskDetail
  541. ? renderedFormula2(chapInfoList[courseType].chapterInfo[0].taskJson[
  542. taskCount
  543. ].taskDetail)
  544. : '暂无描述'
  545. "
  546. ></div>
  547. </div>
  548. </div>
  549. <div
  550. class="student_head"
  551. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  552. >
  553. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  554. <div
  555. :class="
  556. contentDialog == false
  557. ? 'box_course isContentCss'
  558. : 'box_course'
  559. "
  560. v-if="
  561. vChapterData.length > 0 &&
  562. vChapterData[0] &&
  563. showType !== ''
  564. "
  565. >
  566. <div class="wheel" style="height: auto" v-if="showType === 0">
  567. <div
  568. class="workd_media"
  569. style="height: 650px; width: calc(100% - 50px)"
  570. >
  571. <video-player
  572. class="video-player vjs-custom-skin"
  573. :class="contentDialog == false ? 'isAllWidth' : ''"
  574. :playsinline="true"
  575. :options="playerO[0]"
  576. @play="onPlayerPlay($event)"
  577. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  578. ></video-player>
  579. </div>
  580. </div>
  581. <div
  582. class="wheel"
  583. v-if="showType == 1"
  584. style="
  585. box-shadow: 0 0 6px 1px #f2f2f2;
  586. width: 95%;
  587. margin: 0 auto;
  588. background: #f1f1f1;
  589. "
  590. >
  591. <div class="title">查看文档</div>
  592. <el-form class="textBox">
  593. <el-form-item class="textTitle">
  594. <div style="font-size: 22px">
  595. {{ text.name }}
  596. </div>
  597. </el-form-item>
  598. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  599. <div v-html="text.url" class="textContent cont"></div>
  600. </el-form>
  601. </div>
  602. <div
  603. class="wheel"
  604. v-if="
  605. pptImgUrl1.indexOf(
  606. 'https://view.officeapps.live.com/op/view.aspx?src='
  607. ) != -1 && showType == 2
  608. "
  609. style="width: 95%; margin: 0 auto"
  610. >
  611. <iframe
  612. style="width: 100%; height: 100%; border: none"
  613. :src="pptImgUrl1"
  614. ></iframe>
  615. </div>
  616. <div
  617. class="wheel"
  618. v-else-if="showType == 2"
  619. style="width: 95%; margin: 0 auto"
  620. >
  621. <iframe
  622. style="width: 100%; height: 100%; border: none"
  623. :key="diffKey"
  624. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  625. v-if="pptImgUrl1.indexOf('cocorobo')!=-1"
  626. :src="pptImgUrl1"
  627. ></iframe>
  628. <iframe
  629. style="width: 100%; height: 100%; border: none"
  630. security="restricted"
  631. v-else
  632. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  633. :src="pptImgUrl1"
  634. ></iframe>
  635. </div>
  636. <div
  637. class="wheel"
  638. v-if="showType === 16"
  639. style="width: 95%; margin: 0 auto"
  640. >
  641. <iframe
  642. style="width: 100%; height: 100%; border: none"
  643. :src="pptImgUrl1"
  644. ></iframe>
  645. </div>
  646. <div
  647. class="wheel"
  648. v-if="showType == 3"
  649. style="width: 95%; margin: 0 auto"
  650. >
  651. <pdf
  652. :pdfUrl="pptImgUrl1"
  653. style="width: 100%; height: 100%; overflow: auto"
  654. ></pdf>
  655. </div>
  656. <div
  657. class="wheel"
  658. v-if="showType == 4"
  659. style="width: 95%; margin: 0 auto"
  660. >
  661. <el-image
  662. :src="pptImgUrl1"
  663. fit="contain"
  664. style="width: 100%; height: 100%; cursor: pointer"
  665. @click="previewImg(pptImgUrl1)"
  666. ></el-image>
  667. </div>
  668. </div>
  669. <div
  670. class="pButton"
  671. style="position: absolute; right: 20px; top: 0; z-index: 998"
  672. v-if="!contentDialog"
  673. @click="setContent(true)"
  674. >
  675. <!-- 批 -->
  676. <img
  677. src="../../assets/icon/newIcons/isLeft.png"
  678. style="width: 45px"
  679. alt=""
  680. />
  681. </div>
  682. <div
  683. v-if="contentDialog == true"
  684. :style="{
  685. width:
  686. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  687. showType === ''
  688. ? 'calc(100%)'
  689. : '300px',
  690. margin:
  691. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  692. showType === ''
  693. ? '0 15px'
  694. : '0 15px 0 0',
  695. }"
  696. >
  697. <div
  698. class="vedioList"
  699. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  700. style="height: 650px"
  701. >
  702. <div class="navCorOpenBox">
  703. <div class="navTitile">内容列表:</div>
  704. <div class="navCorOpen" @click="setContent(false)">
  705. <img
  706. src="../../assets/icon/newIcons/isRight.png"
  707. alt=""
  708. />
  709. </div>
  710. </div>
  711. <div class="navBox">
  712. <div
  713. v-show="
  714. vChapterData[0].length > 0 || fileC[0].length > 0
  715. "
  716. style="padding: 10px 0 25px 0"
  717. >
  718. <div
  719. class="vedioTimeBox"
  720. v-for="(vitem, vindex) in vChapterData[0]"
  721. :key="vindex + '1'"
  722. >
  723. <div class="navListItem" v-if="vitem.type == 2">
  724. <div
  725. @click="lookVedio(vitem.url, vindex)"
  726. class="navText"
  727. :class="isClickNav == vindex ? 'isClickNav' : ''"
  728. >
  729. <span v-if="vitem.text">{{ vitem.text }}-</span
  730. >{{ vitem.name }}
  731. </div>
  732. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  733. <img
  734. src="../../assets/icon/newIcon/down.png"
  735. alt
  736. />
  737. </div> -->
  738. </div>
  739. <div class="navListItem" v-if="vitem.type == 6">
  740. <div
  741. @click="lookText(0, vindex)"
  742. class="navText"
  743. :class="isClickNav == vindex ? 'isClickNav' : ''"
  744. >
  745. {{ vitem.name }}.doc
  746. </div>
  747. <div
  748. class="downIcon"
  749. @click="checkFileFull1(vitem.type, vitem)"
  750. >
  751. <img
  752. src="../../assets/icon/newIcon/allScreen.png"
  753. alt
  754. />
  755. </div>
  756. </div>
  757. <div
  758. class="navListItem"
  759. v-if="vitem.type == 8 || vitem.type == 14 || vitem.type == 15"
  760. >
  761. <div
  762. @click="doUrl(vitem.url, vindex)"
  763. class="navText"
  764. :class="isClickNav == vindex ? 'isClickNav' : ''"
  765. >
  766. {{ vitem.title ? vitem.title : vitem.url }}
  767. </div>
  768. <div
  769. class="downIcon"
  770. @click="checkFileFull1(vitem.type, vitem)"
  771. >
  772. <img
  773. src="../../assets/icon/newIcon/allScreen.png"
  774. alt
  775. />
  776. </div>
  777. </div>
  778. <div class="navListItem" v-if="vitem.type == 3">
  779. <div
  780. @click="downFile(vitem, vindex)"
  781. class="navText"
  782. :class="isClickNav == vindex ? 'isClickNav' : ''"
  783. >
  784. <span v-if="vitem.text">{{ vitem.text }}-</span
  785. >{{ vitem.name }}
  786. </div>
  787. <div
  788. class="downIcon"
  789. @click="checkFileFull1(vitem.type, vitem)"
  790. >
  791. <img
  792. src="../../assets/icon/newIcon/allScreen.png"
  793. alt
  794. />
  795. </div>
  796. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  797. <img
  798. src="../../assets/icon/newIcon/down.png"
  799. alt
  800. />
  801. </div> -->
  802. </div>
  803. <div class="navListItem" v-if="vitem.type == 12">
  804. <div class="navText" @click="downloadFile2(vitem)">
  805. <span v-if="vitem.text">{{ vitem.text }}-</span
  806. >{{ vitem.name }}
  807. </div>
  808. <div
  809. class="downIcon"
  810. @click="checkFileFull1(vitem.type, vitem)"
  811. >
  812. <img
  813. src="../../assets/icon/newIcon/allScreen.png"
  814. alt
  815. />
  816. </div>
  817. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  818. <img
  819. src="../../assets/icon/newIcon/down.png"
  820. alt
  821. />
  822. </div> -->
  823. </div>
  824. <div class="navListItem" v-if="vitem.type == 13">
  825. <div
  826. class="navText"
  827. @click="checkPhoto(vitem, vindex)"
  828. :class="isClickNav == vindex ? 'isClickNav' : ''"
  829. >
  830. {{ vitem.name }}
  831. </div>
  832. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  833. <img
  834. src="../../assets/icon/newIcon/down.png"
  835. alt
  836. />
  837. </div> -->
  838. </div>
  839. <div class="navListItem" v-if="vitem.type == 16">
  840. <div
  841. class="navText"
  842. @click="checkHtml(vitem, vindex)"
  843. :class="isClickNav == vindex ? 'isClickNav' : ''"
  844. >
  845. {{ vitem.name }}
  846. </div>
  847. <div
  848. class="downIcon"
  849. @click="checkFileFull1(vitem.type, vitem)"
  850. >
  851. <img
  852. src="../../assets/icon/newIcon/allScreen.png"
  853. alt
  854. />
  855. </div>
  856. </div>
  857. <div class="navListItem" v-if="vitem.type == 17">
  858. <div
  859. class="navText"
  860. @click="checkHtml(vitem, vindex)"
  861. :class="isClickNav == vindex ? 'isClickNav' : ''"
  862. >
  863. {{ vitem.name }}
  864. </div>
  865. <div
  866. class="downIcon"
  867. @click="checkFileFull1(vitem.type, vitem)"
  868. >
  869. <img
  870. src="../../assets/icon/newIcon/allScreen.png"
  871. alt
  872. />
  873. </div>
  874. </div>
  875. </div>
  876. <div class="fileC_box" v-if="fileC[0].length > 0">
  877. <div class="fileC_title">以下文件不支持预览</div>
  878. <div
  879. class="vedioTimeBox"
  880. v-for="(vitem, vindex) in fileC[0]"
  881. :key="vindex + '1'"
  882. >
  883. <div class="navListItem" v-if="vitem.type == 12">
  884. <div class="navText" style="color: #acb4bf">
  885. <span v-if="vitem.text">{{ vitem.text }}-</span
  886. >{{ vitem.name }}
  887. </div>
  888. <!-- <div
  889. class="downIcon"
  890. @click="downloadFile2(vitem)"
  891. >
  892. <img
  893. src="../../assets/icon/newIcon/down.png"
  894. alt
  895. />
  896. </div> -->
  897. </div>
  898. </div>
  899. </div>
  900. </div>
  901. </div>
  902. </div>
  903. </div>
  904. </div>
  905. <div style="width: calc(100% - 315px)">
  906. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  907. <!-- <el-button
  908. type="primary"
  909. class="newButton"
  910. @click="checkFileFull(showType, pptImgUrl1)"
  911. >全屏查看</el-button
  912. >
  913. <el-button
  914. type="primary"
  915. class="newButton"
  916. @click="downloadFile(pptImgUrl1)"
  917. v-if="showType != 2"
  918. >文件下载</el-button
  919. > -->
  920. <el-button
  921. v-if="
  922. showType == 2 &&
  923. pptImgUrl1.indexOf(
  924. 'https://view.officeapps.live.com/op/view.aspx?src='
  925. ) == -1
  926. "
  927. type="primary"
  928. class="newButton"
  929. @click="openLine(pptImgUrl1)"
  930. >打开链接
  931. </el-button>
  932. </div>
  933. <!-- <div
  934. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  935. v-if="showType == 1"
  936. >
  937. <el-button
  938. type="primary"
  939. class="newButton"
  940. @click="checkFileFull(showType, text)"
  941. >全屏查看</el-button
  942. >
  943. </div> -->
  944. </div>
  945. </div>
  946. </div>
  947. <div class="student_body" v-resize="resize">
  948. <div
  949. class="vedioBox"
  950. :style="{
  951. borderRadius:
  952. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  953. .taskDetail == '' &&
  954. vChapterData[taskCount].length == 0 &&
  955. fileC[taskCount].length == 0
  956. ? '0 0 20px 20px'
  957. : '20px',
  958. }"
  959. v-if="
  960. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  961. .toolChoose[0].tool &&
  962. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  963. .toolChoose[0].tool.length > 0
  964. "
  965. >
  966. <div
  967. class="toolHeng2"
  968. style="position: relative"
  969. v-if="
  970. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  971. .toolChoose[0].tool &&
  972. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  973. .toolChoose[0].tool.length &&
  974. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  975. .toolChoose[0].tool.length > 0
  976. "
  977. >
  978. <div class="workNav">工作区</div>
  979. <div
  980. class="filebox"
  981. style="flex-wrap: nowrap"
  982. v-for="(tool, toolIndex) in chapInfoList[courseType]
  983. .chapterInfo[0].taskJson[taskCount].toolChoose"
  984. :key="toolIndex"
  985. >
  986. <div class="bzBox">
  987. <div class="yCss"></div>
  988. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  989. 工具{{ toolIndex + 1 }}
  990. </div>
  991. <div
  992. v-if="timeWorkList[toolIndex].length > 0"
  993. style="margin: 0 0 0 10px"
  994. >
  995. {{
  996. timeWorkList[toolIndex][0].time
  997. ? "时间:" + timeWorkList[toolIndex][0].time
  998. : ""
  999. }}
  1000. </div>
  1001. </div>
  1002. <div class="toolBox">
  1003. <div>
  1004. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  1005. :key="indexTool"-->
  1006. <!-- <div class="iframeBox">
  1007. <div
  1008. class="addPoint isBorder"
  1009. v-for="(tooC, toolCIndex) in tool.tool"
  1010. :key="toolCIndex"
  1011. >
  1012. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  1013. <div
  1014. class="iframeName"
  1015. >
  1016. 电子白板
  1017. </div>
  1018. <iframe
  1019. src="https://iwb.cocorobo.cn/"
  1020. ref="whiteBoard"
  1021. ></iframe>
  1022. </div>
  1023. </div>
  1024. </div>-->
  1025. <div class="noiframeBox">
  1026. <div
  1027. class="addPoint"
  1028. v-for="(tooC, toolCIndex) in tool.tool"
  1029. :key="toolCIndex"
  1030. >
  1031. <div v-if="tooC == 1">
  1032. <img
  1033. src="../../assets/icon/secondToolList/whiteBoard.png"
  1034. alt
  1035. @click="addTools(tooC, toolIndex, taskCount)"
  1036. />
  1037. <div style="margin: 5px 0">电子白板</div>
  1038. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  1039. style="position: absolute;right: 33px;top: -30px;">
  1040. 分析
  1041. </div>
  1042. </div>
  1043. <div v-if="tooC == 3">
  1044. <img
  1045. src="../../assets/icon/secondToolList/mindMapping.png"
  1046. alt
  1047. @click="addTools(tooC, toolIndex, taskCount)"
  1048. />
  1049. <div style="margin: 5px 0">思维导图</div>
  1050. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  1051. style="position: absolute;right: 33px;top: -30px;">
  1052. 分析
  1053. </div>
  1054. </div>
  1055. <div v-if="tooC == 6">
  1056. <img
  1057. src="../../assets/icon/secondToolList/doc.png"
  1058. alt
  1059. @click="addTools(tooC, toolIndex, taskCount)"
  1060. />
  1061. <div style="margin: 5px 0">协同文档</div>
  1062. </div>
  1063. <div v-if="tooC == 7">
  1064. <img
  1065. src="../../assets/icon/secondToolList/mindNetwork.png"
  1066. alt
  1067. @click="addTools(tooC, toolIndex, taskCount)"
  1068. />
  1069. <div style="margin: 5px 0">思维网格</div>
  1070. <!-- && worksStudent[toolIndex].length>0 -->
  1071. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1072. style="position: absolute;right: 33px;top: -30px;">
  1073. 分析
  1074. </div>
  1075. </div>
  1076. <div v-if="tooC == 8">
  1077. <img
  1078. src="../../assets/icon/secondToolList/library.png"
  1079. alt
  1080. @click="addTools(tooC, toolIndex, taskCount)"
  1081. />
  1082. <div style="margin: 5px 0">素材库</div>
  1083. </div>
  1084. <div v-if="tooC == 17">
  1085. <img
  1086. src="../../assets/icon/secondToolList/library.png"
  1087. alt
  1088. @click="addTools(tooC, toolIndex, taskCount)"
  1089. />
  1090. <div style="margin: 5px 0">学习资料</div>
  1091. </div>
  1092. <div v-if="tooC == 2">
  1093. <img
  1094. @click="addTools(tooC, toolIndex, taskCount)"
  1095. src="../../assets/icon/secondToolList/note.png"
  1096. alt
  1097. />
  1098. <div style="margin: 5px 0">便签</div>
  1099. </div>
  1100. <div v-if="tooC == 4">
  1101. <img
  1102. @click="addTools(tooC, toolIndex, taskCount)"
  1103. src="../../assets/icon/thirdToolList/ask.png"
  1104. alt
  1105. />
  1106. <div style="margin: 5px 0">问卷调查</div>
  1107. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1108. style="position: absolute;right: 153px;top: -30px;">
  1109. 分析
  1110. </div>
  1111. <div class="upload_toolBtn" v-if="tType==='1'" @click="openStatisticalAnalysis(tooC,toolIndex,taskCount)"
  1112. style="position: absolute;right: 33px;top: -30px;">
  1113. 统计分析
  1114. </div>
  1115. </div>
  1116. <div v-if="tooC == 45">
  1117. <img
  1118. @click="addTools(tooC, toolIndex, taskCount)"
  1119. src="../../assets/icon/thirdToolList/choose.png"
  1120. alt
  1121. />
  1122. <div style="margin: 5px 0">选择题</div>
  1123. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,45)"
  1124. style="position: absolute;right: 33px;top: -30px;">
  1125. 分析
  1126. </div>
  1127. </div>
  1128. <!-- <div v-if="tooC == 5">
  1129. <img
  1130. @click="addTools(tooC, toolIndex, taskCount)"
  1131. src="../../assets/icon/thirdToolList/score.png"
  1132. alt
  1133. />
  1134. <div style="margin: 5px 0">量规评分</div>
  1135. </div> -->
  1136. <div v-if="tooC == 10">
  1137. <img
  1138. @click="addTools(tooC, toolIndex, taskCount)"
  1139. src="../../assets/icon/thirdToolList/time.png"
  1140. alt
  1141. />
  1142. <div style="margin: 5px 0">倒计时</div>
  1143. </div>
  1144. <div v-if="tooC == 15">
  1145. <img
  1146. @click="addTools(tooC, toolIndex, taskCount)"
  1147. src="../../assets/icon/thirdToolList/answer.png"
  1148. alt
  1149. />
  1150. <div style="margin: 5px 0">问答</div>
  1151. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1152. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1153. 分析
  1154. </div>
  1155. </div>
  1156. <div v-if="tooC == 26">
  1157. <img
  1158. @click="addTools(tooC, toolIndex, taskCount)"
  1159. src="../../assets/icon/thirdToolList/courseDesign.png"
  1160. alt
  1161. />
  1162. <div style="margin: 5px 0">课程设计</div>
  1163. </div>
  1164. <div v-if="tooC == 18">
  1165. <img
  1166. @click="addTools(tooC, toolIndex, taskCount)"
  1167. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1168. alt
  1169. />
  1170. <div style="margin: 5px 0">训练服务器</div>
  1171. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,18)"
  1172. style="position: absolute;right: 33px;top: -30px;">
  1173. 分析
  1174. </div>
  1175. </div>
  1176. <div v-if="tooC == 16">
  1177. <img
  1178. @click="addTools(tooC, toolIndex, taskCount)"
  1179. src="../../assets/icon/thirdToolList/work.png"
  1180. alt
  1181. />
  1182. <div style="margin: 5px 0">作业提交</div>
  1183. </div>
  1184. <div v-if="tooC == 50">
  1185. <img
  1186. @click="addTools(tooC, toolIndex, taskCount)"
  1187. src="../../assets/icon/thirdToolList/plwork.png"
  1188. alt
  1189. />
  1190. <div style="margin: 5px 0">批量上传</div>
  1191. </div>
  1192. <div v-if="tooC == 21">
  1193. <img
  1194. @click="addTools(tooC, toolIndex, taskCount)"
  1195. src="../../assets/icon/fourthToolList/program.png"
  1196. alt
  1197. />
  1198. <div style="margin: 5px 0">AIoT Blockly</div>
  1199. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,21)"
  1200. style="position: absolute;right: 33px;top: -30px;">
  1201. 分析
  1202. </div>
  1203. </div>
  1204. <!-- <div v-if="tooC == 22">
  1205. <img
  1206. @click="addTools(tooC, toolIndex, taskCount)"
  1207. src="../../assets/icon/fourthToolList/program.png"
  1208. alt
  1209. />
  1210. <div style="margin: 5px 0">AI体验</div>
  1211. </div> -->
  1212. <div v-if="tooC == 23">
  1213. <img
  1214. @click="addTools(tooC, toolIndex, taskCount)"
  1215. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1216. alt
  1217. />
  1218. <div style="margin: 5px 0">AI Python</div>
  1219. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,23)"
  1220. style="position: absolute;right: 33px;top: -30px;">
  1221. 分析
  1222. </div>
  1223. </div>
  1224. <div v-if="tooC == 24">
  1225. <img
  1226. @click="addTools(tooC, toolIndex, taskCount)"
  1227. src="../../assets/icon/fourthToolList/AIprogram.png"
  1228. alt
  1229. />
  1230. <div style="margin: 5px 0">AI Blockly</div>
  1231. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,24)"
  1232. style="position: absolute;right: 33px;top: -30px;">
  1233. 分析
  1234. </div>
  1235. </div>
  1236. <div v-if="tooC == 25">
  1237. <img
  1238. @click="addTools(tooC, toolIndex, taskCount)"
  1239. src="../../assets/icon/thirdToolList/evalua.png"
  1240. alt
  1241. />
  1242. <div style="margin: 5px 0">目标管理</div>
  1243. </div>
  1244. <div v-if="tooC == 31">
  1245. <img
  1246. @click="addTools(tooC, toolIndex, taskCount)"
  1247. src="../../assets/icon/secondToolList/networkPanel.png"
  1248. alt
  1249. />
  1250. <div style="margin: 5px 0">数学画板</div>
  1251. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,31)"
  1252. style="position: absolute;right: 33px;top: -30px;">
  1253. 分析
  1254. </div>
  1255. </div>
  1256. <div v-if="tooC == 28">
  1257. <img
  1258. @click="addTools(tooC, toolIndex, taskCount)"
  1259. src="../../assets/icon/secondToolList/translation.png"
  1260. alt
  1261. />
  1262. <div style="margin: 5px 0">翻译</div>
  1263. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,28)"
  1264. style="position: absolute;right: 33px;top: -30px;">
  1265. 分析
  1266. </div>
  1267. </div>
  1268. <div v-if="tooC == 37">
  1269. <img
  1270. @click="addTools(tooC, toolIndex, taskCount)"
  1271. src="../../assets/icon/secondToolList/mohe.png"
  1272. alt
  1273. />
  1274. <div style="margin: 5px 0">魔盒识字</div>
  1275. </div>
  1276. <div v-if="tooC == 38">
  1277. <img
  1278. @click="addTools(tooC, toolIndex, taskCount)"
  1279. src="../../assets/icon/secondToolList/24game.png"
  1280. alt
  1281. />
  1282. <div style="margin: 5px 0">24点</div>
  1283. </div>
  1284. <div v-if="tooC == 39">
  1285. <img
  1286. @click="addTools(tooC, toolIndex, taskCount)"
  1287. src="../../assets/icon/secondToolList/GeoGebra.png"
  1288. alt
  1289. />
  1290. <div style="margin: 5px 0">GeoGebra</div>
  1291. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,39)"
  1292. style="position: absolute;right: 33px;top: -30px;">
  1293. 分析
  1294. </div>
  1295. </div>
  1296. <div v-if="tooC == 32">
  1297. <img
  1298. @click="addTools(tooC, toolIndex, taskCount)"
  1299. src="../../assets/icon/thirdToolList/code.png"
  1300. alt
  1301. />
  1302. <div style="margin: 5px 0">源码编辑</div>
  1303. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,32)"
  1304. style="position: absolute;right: 153px;top: -42px;">
  1305. 分析
  1306. </div>
  1307. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1308. style="position: absolute;left: 110px;bottom: 30px;">
  1309. 上传文件
  1310. <input type="file" accept="*" style="display: none"
  1311. @change="beforeUpload1($event, 7, toolIndex)" />
  1312. </div> -->
  1313. </div>
  1314. <div v-if="tooC == 40">
  1315. <img
  1316. @click="addTools(tooC, toolIndex, taskCount)"
  1317. src="../../assets/icon/secondToolList/eval.png"
  1318. alt
  1319. />
  1320. <div style="margin: 5px 0">个人评价</div>
  1321. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1322. style="position: absolute;right: 33px;top: -30px;">
  1323. 分析
  1324. </div>
  1325. </div>
  1326. <div v-if="tooC == 41">
  1327. <img
  1328. @click="addTools(tooC, toolIndex, taskCount)"
  1329. src="../../assets/icon/thirdToolList/select.png"
  1330. alt
  1331. />
  1332. <div style="margin: 5px 0">选择匹配</div>
  1333. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1334. style="position: absolute;right: 33px;top: -30px;">
  1335. 分析
  1336. </div>
  1337. </div>
  1338. <div v-if="tooC == 44">
  1339. <img
  1340. @click="addTools(tooC, toolIndex, taskCount)"
  1341. src="../../assets/icon/thirdToolList/hanClass.png"
  1342. alt
  1343. />
  1344. <div style="margin: 5px 0">汉字宫</div>
  1345. </div>
  1346. <div v-if="tooC == 47">
  1347. <img
  1348. @click="addTools(tooC, toolIndex, taskCount)"
  1349. src="../../assets/icon/fourthToolList/conSentences.png"
  1350. alt
  1351. />
  1352. <div style="margin: 5px 0">排序</div>
  1353. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1354. style="position: absolute;right: 33px;top: -30px;">
  1355. 分析
  1356. </div>
  1357. </div>
  1358. <div v-if="tooC == 48">
  1359. <img
  1360. @click="addTools(tooC, toolIndex, taskCount)"
  1361. src="../../assets/icon/fourthToolList/table.png"
  1362. alt
  1363. />
  1364. <div style="margin: 5px 0">表格</div>
  1365. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1366. style="position: absolute;right: 33px;top: -30px;">
  1367. 分析
  1368. </div>
  1369. </div>
  1370. <div v-if="tooC == 52">
  1371. <img
  1372. @click="addTools(tooC, toolIndex, taskCount)"
  1373. src="../../assets/icon/fourthToolList/text.png"
  1374. alt
  1375. />
  1376. <div style="margin: 5px 0">文档</div>
  1377. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1378. style="position: absolute;right: 33px;top: -30px;">
  1379. 分析
  1380. </div>
  1381. </div>
  1382. <div v-if="tooC == 49">
  1383. <img
  1384. @click="addTools(tooC, toolIndex, taskCount)"
  1385. src="../../assets/icon/fourthToolList/group.png"
  1386. alt
  1387. />
  1388. <div style="margin: 5px 0">学生分组</div>
  1389. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1390. style="position: absolute;right: 33px;top: -30px;">
  1391. 分析
  1392. </div>
  1393. </div>
  1394. <div v-if="tooC == 57">
  1395. <img
  1396. @click="addTools(tooC, toolIndex, taskCount)"
  1397. src="../../assets/icon/fourthToolList/cocopi.png"
  1398. alt
  1399. />
  1400. <div style="margin: 5px 0">CocoPi</div>
  1401. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1402. style="position: absolute;right: 33px;top: -30px;">
  1403. 分析
  1404. </div>
  1405. </div>
  1406. <div v-if="tooC == 58">
  1407. <img
  1408. @click="addTools(tooC, toolIndex, taskCount)"
  1409. src="../../assets/icon/fourthToolList/car.png"
  1410. alt
  1411. />
  1412. <div style="margin: 5px 0">模拟驾驶</div>
  1413. </div>
  1414. <div v-if="tooC == 59">
  1415. <img
  1416. @click="addTools(tooC, toolIndex, taskCount)"
  1417. src="../../assets/icon/fourthToolList/lineSearch.png"
  1418. alt
  1419. />
  1420. <div style="margin: 5px 0">路径搜索</div>
  1421. </div>
  1422. <div v-if="tooC == 60">
  1423. <img
  1424. @click="addTools(tooC, toolIndex, taskCount)"
  1425. src="../../assets/icon/fourthToolList/deepLearning.png"
  1426. alt
  1427. />
  1428. <div style="margin: 5px 0">深度学习</div>
  1429. </div>
  1430. <div v-if="tooC == 61">
  1431. <img
  1432. @click="addTools(tooC, toolIndex, taskCount)"
  1433. src="../../assets/icon/fourthToolList/allHistory.png"
  1434. alt
  1435. />
  1436. <div style="margin: 5px 0">全历史</div>
  1437. </div>
  1438. <div v-if="tooC == 62">
  1439. <img
  1440. @click="addTools(tooC, toolIndex, taskCount)"
  1441. src="../../assets/icon/fourthToolList/interVideo.png"
  1442. alt
  1443. />
  1444. <div style="margin: 5px 0">交互视频</div>
  1445. </div>
  1446. <div v-if="tooC == 63">
  1447. <img
  1448. @click="addTools(tooC, toolIndex, taskCount)"
  1449. src="../../assets/icon/fourthToolList/Wood.png"
  1450. alt
  1451. />
  1452. <div style="margin: 5px 0">海龟编程</div>
  1453. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,63)"
  1454. style="position: absolute;right: 33px;top: -30px;">
  1455. 分析
  1456. </div>
  1457. </div>
  1458. <div v-if="tooC == 71">
  1459. <img
  1460. @click="addTools(tooC, toolIndex, taskCount)"
  1461. src="../../assets/icon/fourthToolList/chatgpt.png"
  1462. alt
  1463. />
  1464. <div style="margin: 5px 0">AI智能体</div>
  1465. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,71)"
  1466. style="position: absolute;right: 33px;top: -30px;">
  1467. 分析
  1468. </div>
  1469. </div>
  1470. <div v-if="tooC == 72">
  1471. <img
  1472. style="height: 85px;object-fit: cover;"
  1473. v-if="tool.appJson && tool.appJson.json && tool.appJson.json.icon"
  1474. @click="addTools(tooC, toolIndex, taskCount)"
  1475. :src="tool.appJson.json.icon"
  1476. alt
  1477. />
  1478. <img
  1479. v-else
  1480. @click="addTools(tooC, toolIndex, taskCount)"
  1481. src="../../assets/icon/firstToolList/appStore.png"
  1482. alt
  1483. />
  1484. <el-tooltip :content="tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'" placement="top" effect="dark">
  1485. <!-- content to trigger tooltip here -->
  1486. <div class="Ovh">
  1487. {{tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'}}
  1488. </div>
  1489. </el-tooltip>
  1490. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,72)"
  1491. style="position: absolute;right: 33px;top: -30px;">
  1492. 分析
  1493. </div>
  1494. </div>
  1495. <div v-if="tooC == 73">
  1496. <img
  1497. src="../../assets/icon/secondToolList/ppt.png"
  1498. alt
  1499. @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,73)"
  1500. />
  1501. <div style="margin: 5px 0">PPT</div>
  1502. </div>
  1503. <div v-if="tooC == 65">
  1504. <img
  1505. @click="addTools(tooC, toolIndex, taskCount)"
  1506. src="../../assets/icon/firstToolList/pickPeople.png"
  1507. alt
  1508. />
  1509. <div style="margin: 5px 0">挑人</div>
  1510. </div>
  1511. <div v-if="tooC == 66">
  1512. <img
  1513. @click="addTools(tooC, toolIndex, taskCount)"
  1514. src="../../assets/icon/secondToolList/formulaEdi.png"
  1515. alt
  1516. />
  1517. <div style="margin: 5px 0">公式编辑</div>
  1518. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,66)"
  1519. style="position: absolute;right: 33px;top: -30px;">
  1520. 分析
  1521. </div>
  1522. </div>
  1523. <div v-if="tooC == 67">
  1524. <img
  1525. @click="addTools(tooC, toolIndex, taskCount)"
  1526. src="../../assets/icon/secondToolList/molStr.png"
  1527. alt
  1528. />
  1529. <div style="margin: 5px 0">分子结构</div>
  1530. </div>
  1531. <div v-if="tooC == 68">
  1532. <img
  1533. @click="addTools(tooC, toolIndex, taskCount)"
  1534. src="../../assets/icon/secondToolList/timeAxis.png"
  1535. alt
  1536. />
  1537. <div style="margin: 5px 0">时间轴</div>
  1538. <!-- <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,68)"
  1539. style="position: absolute;right: 33px;top: -30px;">
  1540. 分析
  1541. </div> -->
  1542. </div>
  1543. <div v-if="tooC == 69">
  1544. <img
  1545. @click="addTools(tooC, toolIndex, taskCount)"
  1546. src="../../assets/icon/secondToolList/english.png"
  1547. alt
  1548. />
  1549. <div style="margin: 5px 0">英语写作</div>
  1550. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1551. style="position: absolute;right: 33px;top: -30px;">
  1552. 分析
  1553. </div>
  1554. </div>
  1555. <div v-if="tooC == 70">
  1556. <img
  1557. @click="addTools(tooC, toolIndex, taskCount)"
  1558. src="../../assets/icon/thirdToolList/englishVoice.png"
  1559. alt
  1560. />
  1561. <div style="margin: 5px 0">英语口语</div>
  1562. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1563. style="position: absolute;right: 33px;top: -30px;">
  1564. 分析
  1565. </div>
  1566. </div>
  1567. </div>
  1568. </div>
  1569. </div>
  1570. <div class="tooldetail renderedFor" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1571. <!-- <div class="toolTitle">工具描述</div> -->
  1572. <!-- @click.stop="updateToolDetail(toolIndex, 2)" 点击开启修改-->
  1573. <div style="height:100%;"
  1574. v-html="renderedFormula(tool.toolDetail)"
  1575. v-if="toolDetailIndex != toolIndex"
  1576. ></div>
  1577. <div v-else @click.stop="" style="height:100%;">
  1578. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1579. </div>
  1580. </div>
  1581. <el-button
  1582. type="primary"
  1583. v-if="tool.tool[0] == 32"
  1584. style="position: absolute; right: 30px; top: -45px"
  1585. @click="addImg($event)"
  1586. >上传作业<input
  1587. type="file"
  1588. accept="*"
  1589. style="display: none"
  1590. @change="beforeUpload1($event, 7, toolIndex)"
  1591. /></el-button>
  1592. <el-button
  1593. type="primary"
  1594. v-if="tool.tool[0] == 15"
  1595. style="position: absolute; right: 30px; top: -45px"
  1596. @click="openWordCloud(toolIndex)"
  1597. >生成词云</el-button
  1598. >
  1599. <el-button
  1600. type="primary"
  1601. v-if="
  1602. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0 && tType==1 && tType==1
  1603. "
  1604. style="position: absolute; right: 30px; top: -45px"
  1605. @click="uploadWorks(toolIndex)"
  1606. >导出作业</el-button
  1607. >
  1608. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1609. position: absolute;
  1610. right: 30px;
  1611. transform: translateY(-130%);
  1612. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1613. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1614. </div>
  1615. <div
  1616. v-if="
  1617. tType &&
  1618. tType == 2 &&
  1619. !sIsOpen &&
  1620. tool.tool.indexOf(16) != -1
  1621. "
  1622. class="worksBox"
  1623. >
  1624. <div
  1625. class="zuoyeYulan"
  1626. v-if="workStudent[toolIndex].length > 0"
  1627. >
  1628. <span class="worksTitle">作业预览</span>
  1629. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1630. </div>
  1631. <div
  1632. class="worksDetailBox"
  1633. v-if="workStudent[toolIndex].length > 0"
  1634. >
  1635. <div
  1636. class="works"
  1637. style="
  1638. width: 200px;
  1639. height: 140px;
  1640. margin: 10px 10px 10px 0;
  1641. box-shadow: 0 0 6px 1px #dfdada;
  1642. "
  1643. v-for="(w, wIndex) in workStudent[toolIndex]"
  1644. :key="wIndex"
  1645. >
  1646. <div class="workImg" v-if="w.type == 0">
  1647. <img
  1648. :src="w.works"
  1649. @click="previewImg(w.works,w)"
  1650. alt
  1651. />
  1652. <div
  1653. class="answerScore"
  1654. v-if="w.score"
  1655. @click.stop="openScore(w)"
  1656. :class="{
  1657. rightW:
  1658. w.userid == userid || tType == 1 || tType == 4,
  1659. }"
  1660. >
  1661. {{ JSON.parse(w.score).wScore }}分
  1662. </div>
  1663. <div
  1664. class="answerScore"
  1665. @click.stop="openScore(w)"
  1666. v-else-if="courseDetail.userid == userid"
  1667. :class="{
  1668. rightW:
  1669. w.userid == userid || tType == 1 || tType == 4,
  1670. }"
  1671. >
  1672. 评分
  1673. </div>
  1674. <img
  1675. class="deleteImg"
  1676. src="../../assets/deleteworks.png"
  1677. v-if="
  1678. w.userid == userid || tType == 1 || tType == 4
  1679. "
  1680. @click.stop="deleteWorks(w.wid)"
  1681. alt
  1682. />
  1683. </div>
  1684. <div class="workImg" v-if="w.type == 1">
  1685. <img :src="word" @click="openFile(w.works)" alt />
  1686. <div
  1687. class="answerScore"
  1688. v-if="w.score"
  1689. @click.stop="openScore(w)"
  1690. :class="{
  1691. rightW:
  1692. w.userid == userid || tType == 1 || tType == 4,
  1693. }"
  1694. >
  1695. {{ JSON.parse(w.score).wScore }}分
  1696. </div>
  1697. <div
  1698. class="answerScore"
  1699. @click.stop="openScore(w)"
  1700. v-else-if="courseDetail.userid == userid"
  1701. :class="{
  1702. rightW:
  1703. w.userid == userid || tType == 1 || tType == 4,
  1704. }"
  1705. >
  1706. 评分
  1707. </div>
  1708. <img
  1709. class="deleteImg"
  1710. src="../../assets/deleteworks.png"
  1711. v-if="
  1712. w.userid == userid || tType == 1 || tType == 4
  1713. "
  1714. @click.stop="deleteWorks(w.wid)"
  1715. alt
  1716. />
  1717. </div>
  1718. <div class="workImg" v-if="w.type == 3">
  1719. <img
  1720. style="cursor: pointer"
  1721. :src="video"
  1722. @click="openVideo(w)"
  1723. alt
  1724. />
  1725. <div
  1726. class="answerScore"
  1727. v-if="w.score"
  1728. @click.stop="openScore(w)"
  1729. :class="{
  1730. rightW:
  1731. w.userid == userid || tType == 1 || tType == 4,
  1732. }"
  1733. >
  1734. {{ JSON.parse(w.score).wScore }}分
  1735. </div>
  1736. <div
  1737. class="answerScore"
  1738. @click.stop="openScore(w)"
  1739. v-else-if="courseDetail.userid == userid"
  1740. :class="{
  1741. rightW:
  1742. w.userid == userid || tType == 1 || tType == 4,
  1743. }"
  1744. >
  1745. 评分
  1746. </div>
  1747. <img
  1748. class="deleteImg"
  1749. src="../../assets/deleteworks.png"
  1750. v-if="
  1751. w.userid == userid || tType == 1 || tType == 4
  1752. "
  1753. @click.stop="deleteWorks(w.wid)"
  1754. alt
  1755. />
  1756. </div>
  1757. <div class="workImg" v-if="w.type == 12">
  1758. <img
  1759. style="cursor: pointer"
  1760. :src="word2"
  1761. @click="downloadFile(w.works,w.userid)"
  1762. alt
  1763. />
  1764. <div
  1765. class="answerScore"
  1766. v-if="w.score"
  1767. @click.stop="openScore(w)"
  1768. :class="{
  1769. rightW:
  1770. w.userid == userid || tType == 1 || tType == 4,
  1771. }"
  1772. >
  1773. {{ JSON.parse(w.score).wScore }}分
  1774. </div>
  1775. <div
  1776. class="answerScore"
  1777. @click.stop="openScore(w)"
  1778. v-else-if="courseDetail.userid == userid"
  1779. :class="{
  1780. rightW:
  1781. w.userid == userid || tType == 1 || tType == 4,
  1782. }"
  1783. >
  1784. 评分
  1785. </div>
  1786. <img
  1787. class="deleteImg"
  1788. src="../../assets/deleteworks.png"
  1789. v-if="
  1790. w.userid == userid || tType == 1 || tType == 4
  1791. "
  1792. @click.stop="deleteWorks(w.wid)"
  1793. alt
  1794. />
  1795. </div>
  1796. <div class="worksName">
  1797. <div>{{ w.sName }}</div>
  1798. </div>
  1799. </div>
  1800. </div>
  1801. </div>
  1802. <div
  1803. v-if="
  1804. tType &&
  1805. tType == 2 &&
  1806. !sIsOpen &&
  1807. tool.tool.indexOf(32) != -1
  1808. "
  1809. class="worksBox"
  1810. >
  1811. <div
  1812. class="zuoyeYulan"
  1813. v-if="workStudent[toolIndex].length > 0"
  1814. >
  1815. <span class="worksTitle">作业预览</span>
  1816. </div>
  1817. <div
  1818. class="worksDetailBox"
  1819. v-if="workStudent[toolIndex].length > 0"
  1820. >
  1821. <div
  1822. class="works"
  1823. style="
  1824. width: 200px;
  1825. height: 140px;
  1826. margin: 10px 10px 10px 0;
  1827. box-shadow: 0 0 6px 1px #dfdada;
  1828. "
  1829. v-for="(w, wIndex) in workStudent[toolIndex]"
  1830. :key="wIndex"
  1831. >
  1832. <div class="workImg">
  1833. <img
  1834. :src="word2"
  1835. @click="downloadFile(w.works,w.userid)"
  1836. alt
  1837. />
  1838. <div
  1839. class="answerScore"
  1840. v-if="w.score"
  1841. @click.stop="openScore(w)"
  1842. :class="{
  1843. rightW:
  1844. w.userid == userid || tType == 1 || tType == 4,
  1845. }"
  1846. >
  1847. {{ JSON.parse(w.score).wScore }}分
  1848. </div>
  1849. <div
  1850. class="answerScore"
  1851. @click.stop="openScore(w)"
  1852. v-else-if="courseDetail.userid == userid"
  1853. :class="{
  1854. rightW:
  1855. w.userid == userid || tType == 1 || tType == 4,
  1856. }"
  1857. >
  1858. 评分
  1859. </div>
  1860. <img
  1861. class="deleteImg"
  1862. src="../../assets/deleteworks.png"
  1863. v-if="
  1864. w.userid == userid || tType == 1 || tType == 4
  1865. "
  1866. @click.stop="deleteWorks(w.wid)"
  1867. alt
  1868. />
  1869. </div>
  1870. <div class="worksName">
  1871. <div>{{ w.sName }}</div>
  1872. </div>
  1873. </div>
  1874. </div>
  1875. </div>
  1876. <div
  1877. v-if="
  1878. tType &&
  1879. tType == 2 &&
  1880. !sIsOpen &&
  1881. tool.tool.indexOf(57) != -1
  1882. "
  1883. class="worksBox"
  1884. >
  1885. <div
  1886. class="zuoyeYulan"
  1887. v-if="workStudent[toolIndex].length > 0"
  1888. >
  1889. <span class="worksTitle">作业预览</span>
  1890. </div>
  1891. <div
  1892. class="worksDetailBox"
  1893. v-if="workStudent[toolIndex].length > 0"
  1894. >
  1895. <div
  1896. class="works"
  1897. style="
  1898. width: 200px;
  1899. height: 140px;
  1900. margin: 10px 10px 10px 0;
  1901. box-shadow: 0 0 6px 1px #dfdada;
  1902. "
  1903. v-for="(w, wIndex) in workStudent[toolIndex]"
  1904. :key="wIndex"
  1905. >
  1906. <div class="workImg">
  1907. <img
  1908. :src="word2"
  1909. @click="downloadFile(w.works,w.userid)"
  1910. v-if="w.type == 12"
  1911. alt
  1912. />
  1913. <img
  1914. :src="word2"
  1915. @click="
  1916. openCocoPi(57, toolIndex, w.userid, w.sName)
  1917. "
  1918. v-else-if="w.type == 15"
  1919. alt
  1920. />
  1921. <div
  1922. class="answerScore"
  1923. v-if="w.score"
  1924. @click.stop="openScore(w)"
  1925. :class="{
  1926. rightW:
  1927. w.userid == userid || tType == 1 || tType == 4,
  1928. }"
  1929. >
  1930. {{ JSON.parse(w.score).wScore }}分
  1931. </div>
  1932. <div
  1933. class="answerScore"
  1934. @click.stop="openScore(w)"
  1935. v-else-if="courseDetail.userid == userid"
  1936. :class="{
  1937. rightW:
  1938. w.userid == userid || tType == 1 || tType == 4,
  1939. }"
  1940. >
  1941. 评分
  1942. </div>
  1943. <img
  1944. class="deleteImg"
  1945. src="../../assets/deleteworks.png"
  1946. v-if="
  1947. w.userid == userid || tType == 1 || tType == 4
  1948. "
  1949. @click.stop="deleteWorks(w.wid)"
  1950. alt
  1951. />
  1952. </div>
  1953. <div class="worksName">
  1954. <div>{{ w.sName }}</div>
  1955. </div>
  1956. </div>
  1957. </div>
  1958. </div>
  1959. <div
  1960. v-if="
  1961. tType &&
  1962. tType == 2 &&
  1963. !sIsOpen &&
  1964. tool.tool.indexOf(4) != -1
  1965. "
  1966. class="worksBox"
  1967. >
  1968. <div
  1969. class="zuoyeYulan"
  1970. v-if="workStudent[toolIndex].length > 0"
  1971. >
  1972. <span class="worksTitle">作业预览</span>
  1973. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1974. </div>
  1975. <div
  1976. class="worksDetailBox"
  1977. v-if="workStudent[toolIndex].length > 0"
  1978. >
  1979. <div
  1980. class="isWorksName2"
  1981. v-for="(w, wIndex) in workStudent[toolIndex]"
  1982. :key="wIndex"
  1983. @click="
  1984. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1985. "
  1986. >
  1987. {{ w.sName }}
  1988. <img
  1989. class="deleteImg deleteImg2"
  1990. src="../../assets/deleteworks.png"
  1991. v-if="w.userid == userid || tType == 1 || tType == 4"
  1992. @click.stop="deleteWorks(w.wid)"
  1993. alt
  1994. />
  1995. </div>
  1996. <!-- <div
  1997. class="works"
  1998. style="
  1999. width: 200px;
  2000. height: 140px;
  2001. border-radius: 10px;
  2002. box-shadow: 0 0 6px 1px #dfdada;
  2003. overflow: hidden;
  2004. "
  2005. v-for="(w, wIndex) in workStudent[toolIndex]"
  2006. :key="wIndex"
  2007. >
  2008. <div class="workImg">
  2009. <img
  2010. src="../../assets/icon/works/noImg.png"
  2011. @click="
  2012. openTools(
  2013. 4,
  2014. toolIndex,
  2015. taskCount,
  2016. w.works,
  2017. w.sName
  2018. )
  2019. "
  2020. alt
  2021. />
  2022. </div>
  2023. <div class="worksName">
  2024. <div>{{ w.sName }}</div>
  2025. <div>{{ w.time }}</div>
  2026. </div>
  2027. </div> -->
  2028. </div>
  2029. </div>
  2030. <div
  2031. v-if="
  2032. tType &&
  2033. ((tType == 2 && sIsOpen == true) ||
  2034. tType == 1 ||
  2035. tType == 4) &&
  2036. tool.tool.indexOf(62) != -1
  2037. "
  2038. class="worksBox"
  2039. >
  2040. <div
  2041. class="zuoyeYulan"
  2042. v-if="
  2043. worksStudent.length &&
  2044. worksStudent[toolIndex].length > 0
  2045. "
  2046. >
  2047. <div class="worksTop">
  2048. <div>作业预览</div>
  2049. <div
  2050. class="corOpen"
  2051. @click="contract(toolIndex)"
  2052. v-if="
  2053. (isCloseList[toolIndex].isCloseBoolean) &&
  2054. isCloseList[toolIndex].isClose == 0
  2055. "
  2056. >
  2057. 折叠
  2058. </div>
  2059. <div
  2060. class="corOpen"
  2061. @click="contract(toolIndex)"
  2062. v-if="isCloseList[toolIndex].isClose == 1"
  2063. >
  2064. 展开
  2065. </div>
  2066. </div>
  2067. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2068. </div>
  2069. <div>
  2070. <div
  2071. :id="'tool-' + toolIndex"
  2072. :style="{
  2073. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2074. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2075. }"
  2076. class="worksDetailBox"
  2077. v-if="
  2078. worksStudent.length &&
  2079. worksStudent[toolIndex].length > 0
  2080. "
  2081. >
  2082. <div
  2083. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2084. :key="wIndex"
  2085. class="isWorksName2"
  2086. @click="
  2087. openTools(
  2088. 62,
  2089. toolIndex,
  2090. taskCount,
  2091. w.works,
  2092. w.sName
  2093. )
  2094. "
  2095. >
  2096. {{ w.sName }}
  2097. <img
  2098. class="deleteImg deleteImg2"
  2099. src="../../assets/deleteworks.png"
  2100. v-if="
  2101. w.userid == userid || tType == 1 || tType == 4
  2102. "
  2103. @click.stop="deleteWorks(w.wid)"
  2104. alt
  2105. />
  2106. </div>
  2107. </div>
  2108. </div>
  2109. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2110. 未提交
  2111. </div>
  2112. <div
  2113. class="noWorksS"
  2114. v-if="noWorksS && noWorksS[toolIndex].length"
  2115. >
  2116. <div
  2117. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2118. :key="sIndex"
  2119. class="noWorksName"
  2120. >
  2121. <el-tooltip effect="dark" :content="s.student" placement="top">
  2122. <span>{{ s.student }}</span>
  2123. </el-tooltip>
  2124. </div>
  2125. </div>
  2126. </div>
  2127. <div
  2128. v-if="
  2129. tType &&
  2130. tType == 2 &&
  2131. !sIsOpen &&
  2132. tool.tool.indexOf(62) != -1
  2133. "
  2134. class="worksBox"
  2135. >
  2136. <div
  2137. class="zuoyeYulan"
  2138. v-if="workStudent[toolIndex].length > 0"
  2139. >
  2140. <span class="worksTitle">作业预览</span>
  2141. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2142. </div>
  2143. <div
  2144. class="worksDetailBox"
  2145. v-if="workStudent[toolIndex].length > 0"
  2146. >
  2147. <div
  2148. class="isWorksName2"
  2149. v-for="(w, wIndex) in workStudent[toolIndex]"
  2150. :key="wIndex"
  2151. @click="
  2152. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2153. "
  2154. >
  2155. {{ w.sName }}
  2156. <img
  2157. class="deleteImg deleteImg2"
  2158. src="../../assets/deleteworks.png"
  2159. v-if="w.userid == userid || tType == 1 || tType == 4"
  2160. @click.stop="deleteWorks(w.wid)"
  2161. alt
  2162. />
  2163. </div>
  2164. </div>
  2165. </div>
  2166. <div
  2167. v-if="
  2168. tType &&
  2169. tType == 2 &&
  2170. !sIsOpen &&
  2171. tool.tool.indexOf(45) != -1
  2172. "
  2173. class="worksBox"
  2174. >
  2175. <div
  2176. class="zuoyeYulan"
  2177. v-if="workStudent[toolIndex].length > 0"
  2178. >
  2179. <span class="worksTitle">作业预览</span>
  2180. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2181. </div>
  2182. <div
  2183. class="worksDetailBox"
  2184. v-if="workStudent[toolIndex].length > 0"
  2185. >
  2186. <div
  2187. class="isWorksName2"
  2188. v-for="(w, wIndex) in workStudent[toolIndex]"
  2189. :key="wIndex"
  2190. @click="
  2191. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2192. "
  2193. >
  2194. {{ w.sName }}
  2195. <img
  2196. class="deleteImg deleteImg2"
  2197. src="../../assets/deleteworks.png"
  2198. v-if="w.userid == userid || tType == 1 || tType == 4"
  2199. @click.stop="deleteWorks(w.wid)"
  2200. alt
  2201. />
  2202. </div>
  2203. </div>
  2204. </div>
  2205. <div
  2206. v-if="
  2207. tType &&
  2208. tType == 2 &&
  2209. !sIsOpen &&
  2210. tool.tool.indexOf(69) != -1
  2211. "
  2212. class="worksBox"
  2213. >
  2214. <div
  2215. class="zuoyeYulan"
  2216. v-if="workStudent[toolIndex].length > 0"
  2217. >
  2218. <span class="worksTitle">作业预览</span>
  2219. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2220. </div>
  2221. <div
  2222. class="worksDetailBox"
  2223. v-if="workStudent[toolIndex].length > 0"
  2224. >
  2225. <div
  2226. class="isWorksName2"
  2227. v-for="(w, wIndex) in workStudent[toolIndex]"
  2228. :key="wIndex"
  2229. @click="
  2230. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2231. "
  2232. >
  2233. {{ w.sName }}
  2234. <img
  2235. class="deleteImg deleteImg2"
  2236. src="../../assets/deleteworks.png"
  2237. v-if="w.userid == userid || tType == 1 || tType == 4"
  2238. @click.stop="deleteWorks(w.wid)"
  2239. alt
  2240. />
  2241. </div>
  2242. </div>
  2243. </div>
  2244. <div
  2245. v-if="
  2246. tType &&
  2247. tType == 2 &&
  2248. !sIsOpen &&
  2249. tool.tool.indexOf(15) != -1
  2250. "
  2251. class="worksBox"
  2252. >
  2253. <div
  2254. class="zuoyeYulan"
  2255. v-if="workStudent[toolIndex].length > 0"
  2256. >
  2257. <span class="worksTitle">作业预览</span>
  2258. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2259. </div>
  2260. <div
  2261. class="worksDetailBox"
  2262. v-if="workStudent[toolIndex].length > 0"
  2263. >
  2264. <div
  2265. class="works"
  2266. v-for="(w, wIndex) in workStudent[toolIndex]"
  2267. :key="wIndex"
  2268. >
  2269. <div class="workImg">
  2270. <!-- <img
  2271. src="../../assets/icon/works/noImg.png"
  2272. @click="openTools(15, toolIndex, taskCount, w.works)"
  2273. alt=""
  2274. />-->
  2275. <div class="answerBg">
  2276. <!-- <div>{{ w.sName }}</div> -->
  2277. <el-tooltip
  2278. class="item"
  2279. effect="light"
  2280. :content="JSON.parse(w.works)[0].answer"
  2281. placement="top"
  2282. >
  2283. <div class="answerContent">
  2284. {{ JSON.parse(w.works)[0].answer }}
  2285. </div>
  2286. </el-tooltip>
  2287. <div
  2288. class="answerScore"
  2289. v-if="w.score"
  2290. @click.stop="openScore(w)"
  2291. :class="{
  2292. rightW:
  2293. w.userid == userid ||
  2294. tType == 1 ||
  2295. tType == 4,
  2296. }"
  2297. >
  2298. {{ JSON.parse(w.score).wScore }}分
  2299. </div>
  2300. <div
  2301. class="answerScore"
  2302. @click.stop="openScore(w)"
  2303. v-else-if="courseDetail.userid == userid"
  2304. :class="{
  2305. rightW:
  2306. w.userid == userid ||
  2307. tType == 1 ||
  2308. tType == 4,
  2309. }"
  2310. >
  2311. 评分
  2312. </div>
  2313. <img
  2314. class="deleteImg"
  2315. src="../../assets/deleteworks.png"
  2316. v-if="
  2317. w.userid == userid || tType == 1 || tType == 4
  2318. "
  2319. @click.stop="deleteWorks(w.wid)"
  2320. alt
  2321. />
  2322. </div>
  2323. <div class="comment">
  2324. <div class="worksName">
  2325. <div>{{ w.sName }}</div>
  2326. </div>
  2327. </div>
  2328. </div>
  2329. </div>
  2330. </div>
  2331. </div>
  2332. <div
  2333. v-if="
  2334. tType &&
  2335. tType == 2 &&
  2336. !sIsOpen &&
  2337. tool.tool.indexOf(1) != -1
  2338. "
  2339. class="worksBox"
  2340. >
  2341. <div
  2342. class="zuoyeYulan"
  2343. v-if="workStudent[toolIndex].length > 0"
  2344. >
  2345. <span class="worksTitle">作业预览</span>
  2346. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2347. </div>
  2348. <div
  2349. class="worksDetailBox"
  2350. v-if="workStudent[toolIndex].length > 0"
  2351. >
  2352. <div
  2353. class="works"
  2354. style="
  2355. width: 200px;
  2356. height: 140px;
  2357. margin: 10px 10px 10px 0;
  2358. box-shadow: 0 0 6px 1px #dfdada;
  2359. "
  2360. v-for="(w, wIndex) in workStudent[toolIndex]"
  2361. :key="wIndex"
  2362. >
  2363. <div class="workImg">
  2364. <img
  2365. :src="w.works"
  2366. @click="previewImg(w.works,w)"
  2367. alt
  2368. />
  2369. <div
  2370. class="answerScore"
  2371. v-if="w.score"
  2372. @click.stop="openScore(w)"
  2373. :class="{
  2374. rightW:
  2375. w.userid == userid || tType == 1 || tType == 4,
  2376. }"
  2377. >
  2378. {{ JSON.parse(w.score).wScore }}分
  2379. </div>
  2380. <div
  2381. class="answerScore"
  2382. @click.stop="openScore(w)"
  2383. v-else-if="courseDetail.userid == userid"
  2384. :class="{
  2385. rightW:
  2386. w.userid == userid || tType == 1 || tType == 4,
  2387. }"
  2388. >
  2389. 评分
  2390. </div>
  2391. <img
  2392. class="deleteImg"
  2393. src="../../assets/deleteworks.png"
  2394. v-if="
  2395. w.userid == userid || tType == 1 || tType == 4
  2396. "
  2397. @click.stop="deleteWorks(w.wid)"
  2398. alt
  2399. />
  2400. </div>
  2401. <div class="worksName">
  2402. <div>{{ w.sName }}</div>
  2403. </div>
  2404. </div>
  2405. </div>
  2406. </div>
  2407. <div
  2408. v-if="
  2409. tType &&
  2410. tType == 2 &&
  2411. !sIsOpen &&
  2412. tool.tool.indexOf(3) != -1
  2413. "
  2414. class="worksBox"
  2415. >
  2416. <div
  2417. class="zuoyeYulan"
  2418. v-if="workStudent[toolIndex].length > 0"
  2419. >
  2420. <span class="worksTitle">作业预览</span>
  2421. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2422. </div>
  2423. <div
  2424. class="worksDetailBox"
  2425. v-if="workStudent[toolIndex].length > 0"
  2426. >
  2427. <div
  2428. class="works"
  2429. style="
  2430. width: 200px;
  2431. height: 140px;
  2432. margin: 10px 10px 10px 0;
  2433. box-shadow: 0 0 6px 1px #dfdada;
  2434. "
  2435. v-for="(w, wIndex) in workStudent[toolIndex]"
  2436. :key="wIndex"
  2437. >
  2438. <div class="workImg">
  2439. <img
  2440. :src="w.works"
  2441. @click="previewImg(w.works,w)"
  2442. alt
  2443. />
  2444. <div
  2445. class="answerScore"
  2446. v-if="w.score"
  2447. @click.stop="openScore(w)"
  2448. :class="{
  2449. rightW:
  2450. w.userid == userid || tType == 1 || tType == 4,
  2451. }"
  2452. >
  2453. {{ JSON.parse(w.score).wScore }}分
  2454. </div>
  2455. <div
  2456. class="answerScore"
  2457. @click.stop="openScore(w)"
  2458. v-else-if="courseDetail.userid == userid"
  2459. :class="{
  2460. rightW:
  2461. w.userid == userid || tType == 1 || tType == 4,
  2462. }"
  2463. >
  2464. 评分
  2465. </div>
  2466. <img
  2467. class="deleteImg"
  2468. src="../../assets/deleteworks.png"
  2469. v-if="
  2470. w.userid == userid || tType == 1 || tType == 4
  2471. "
  2472. @click.stop="deleteWorks(w.wid)"
  2473. alt
  2474. />
  2475. </div>
  2476. <div class="worksName">
  2477. <div>{{ w.sName }}</div>
  2478. </div>
  2479. </div>
  2480. </div>
  2481. </div>
  2482. <div
  2483. v-if="
  2484. tType &&
  2485. tType == 2 &&
  2486. !sIsOpen &&
  2487. tool.tool.indexOf(6) != -1
  2488. "
  2489. class="worksBox"
  2490. >
  2491. <div
  2492. class="zuoyeYulan"
  2493. v-if="workStudent[toolIndex].length > 0"
  2494. >
  2495. <span class="worksTitle">作业预览</span>
  2496. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2497. </div>
  2498. <div
  2499. class="worksDetailBox"
  2500. v-if="workStudent[toolIndex].length > 0"
  2501. >
  2502. <div
  2503. class="works"
  2504. style="
  2505. width: 200px;
  2506. height: 140px;
  2507. margin: 10px 10px 10px 0;
  2508. box-shadow: 0 0 6px 1px #dfdada;
  2509. "
  2510. v-for="(w, wIndex) in workStudent[toolIndex]"
  2511. :key="wIndex"
  2512. >
  2513. <div class="workImg">
  2514. <img
  2515. :src="w.works"
  2516. @click="previewImg(w.works,w)"
  2517. alt
  2518. />
  2519. <div
  2520. class="answerScore"
  2521. v-if="w.score"
  2522. @click.stop="openScore(w)"
  2523. :class="{
  2524. rightW:
  2525. w.userid == userid || tType == 1 || tType == 4,
  2526. }"
  2527. >
  2528. {{ JSON.parse(w.score).wScore }}分
  2529. </div>
  2530. <div
  2531. class="answerScore"
  2532. @click.stop="openScore(w)"
  2533. v-else-if="courseDetail.userid == userid"
  2534. :class="{
  2535. rightW:
  2536. w.userid == userid || tType == 1 || tType == 4,
  2537. }"
  2538. >
  2539. 评分
  2540. </div>
  2541. <img
  2542. class="deleteImg"
  2543. src="../../assets/deleteworks.png"
  2544. v-if="
  2545. w.userid == userid || tType == 1 || tType == 4
  2546. "
  2547. @click.stop="deleteWorks(w.wid)"
  2548. alt
  2549. />
  2550. </div>
  2551. <div class="worksName">
  2552. <div>{{ w.sName }}</div>
  2553. </div>
  2554. </div>
  2555. </div>
  2556. </div>
  2557. <div
  2558. v-if="
  2559. tType &&
  2560. tType == 2 &&
  2561. !sIsOpen &&
  2562. tool.tool.indexOf(7) != -1
  2563. "
  2564. class="worksBox"
  2565. >
  2566. <div
  2567. class="zuoyeYulan"
  2568. v-if="workStudent[toolIndex].length > 0"
  2569. >
  2570. <span class="worksTitle">作业预览</span>
  2571. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2572. </div>
  2573. <div
  2574. class="worksDetailBox"
  2575. v-if="workStudent[toolIndex].length > 0"
  2576. >
  2577. <div
  2578. class="works"
  2579. style="
  2580. width: 200px;
  2581. height: 140px;
  2582. margin: 10px 10px 10px 0;
  2583. box-shadow: 0 0 6px 1px #dfdada;
  2584. "
  2585. v-for="(w, wIndex) in workStudent[toolIndex]"
  2586. :key="wIndex"
  2587. >
  2588. <div class="workImg">
  2589. <img
  2590. :src="w.works"
  2591. @click="previewImg(w.works,w)"
  2592. alt
  2593. />
  2594. <div
  2595. class="answerScore"
  2596. v-if="w.score"
  2597. @click.stop="openScore(w)"
  2598. :class="{
  2599. rightW:
  2600. w.userid == userid || tType == 1 || tType == 4,
  2601. }"
  2602. >
  2603. {{ JSON.parse(w.score).wScore }}分
  2604. </div>
  2605. <div
  2606. class="answerScore"
  2607. @click.stop="openScore(w)"
  2608. v-else-if="courseDetail.userid == userid"
  2609. :class="{
  2610. rightW:
  2611. w.userid == userid || tType == 1 || tType == 4,
  2612. }"
  2613. >
  2614. 评分
  2615. </div>
  2616. <img
  2617. class="deleteImg"
  2618. src="../../assets/deleteworks.png"
  2619. v-if="
  2620. w.userid == userid || tType == 1 || tType == 4
  2621. "
  2622. @click.stop="deleteWorks(w.wid)"
  2623. alt
  2624. />
  2625. </div>
  2626. <div class="worksName">
  2627. <div>{{ w.sName }}</div>
  2628. </div>
  2629. </div>
  2630. </div>
  2631. </div>
  2632. <div
  2633. v-if="
  2634. tType &&
  2635. tType == 2 &&
  2636. !sIsOpen &&
  2637. tool.tool.indexOf(26) != -1
  2638. "
  2639. class="worksBox"
  2640. >
  2641. <div
  2642. class="zuoyeYulan"
  2643. v-if="workStudent[toolIndex].length > 0"
  2644. >
  2645. <span class="worksTitle">作业预览</span>
  2646. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2647. </div>
  2648. <div
  2649. class="worksDetailBox"
  2650. v-if="workStudent[toolIndex].length > 0"
  2651. >
  2652. <div
  2653. class="works"
  2654. style="
  2655. width: 200px;
  2656. height: 140px;
  2657. margin: 10px 10px 10px 0;
  2658. box-shadow: 0 0 6px 1px #dfdada;
  2659. "
  2660. v-for="(w, wIndex) in workStudent[toolIndex]"
  2661. :key="wIndex"
  2662. >
  2663. <div class="workImg">
  2664. <img
  2665. :src="w.works"
  2666. @click="previewImg(w.works,w)"
  2667. alt
  2668. />
  2669. <img
  2670. class="deleteImg"
  2671. src="../../assets/deleteworks.png"
  2672. v-if="
  2673. w.userid == userid || tType == 1 || tType == 4
  2674. "
  2675. @click.stop="deleteWorks(w.wid)"
  2676. alt
  2677. />
  2678. </div>
  2679. <div class="worksName">
  2680. <div>{{ w.sName }}</div>
  2681. </div>
  2682. </div>
  2683. </div>
  2684. </div>
  2685. <div
  2686. v-if="
  2687. tType &&
  2688. ((tType == 2 && sIsOpen == true) ||
  2689. tType == 1 ||
  2690. tType == 4) &&
  2691. tool.tool.indexOf(16) != -1
  2692. "
  2693. class="worksBox"
  2694. >
  2695. <div
  2696. class="zuoyeYulan"
  2697. v-if="
  2698. (worksStudent.length &&
  2699. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2700. "
  2701. >
  2702. <div class="worksTop">
  2703. <div>作业预览</div>
  2704. <div
  2705. class="corOpen"
  2706. @click="contract(toolIndex)"
  2707. v-if="
  2708. (isCloseList[toolIndex].isCloseBoolean) &&
  2709. isCloseList[toolIndex].isClose == 0
  2710. "
  2711. >
  2712. 折叠
  2713. </div>
  2714. <div
  2715. class="corOpen"
  2716. @click="contract(toolIndex)"
  2717. v-if="isCloseList[toolIndex].isClose == 1"
  2718. >
  2719. 展开
  2720. </div>
  2721. </div>
  2722. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2723. </div>
  2724. <div
  2725. class="group_workBox"
  2726. v-for="(g, gindex) in courseGroup.group"
  2727. :key="gindex"
  2728. >
  2729. <div class="group_box">
  2730. <div class="group_title">
  2731. <el-tooltip
  2732. class="item"
  2733. effect="light"
  2734. :content="g.name"
  2735. placement="top"
  2736. >
  2737. <div class="group_name">{{ g.name }}</div>
  2738. </el-tooltip>
  2739. </div>
  2740. <div
  2741. class="group_work"
  2742. v-if="
  2743. g.works &&
  2744. g.works.length &&
  2745. g.works[toolIndex].length
  2746. "
  2747. >
  2748. <div
  2749. class="works"
  2750. style="
  2751. width: 200px;
  2752. height: 140px;
  2753. margin: 10px 10px 10px 0;
  2754. border-radius: 15px;
  2755. box-shadow: 0 0 6px 1px #dfdada;
  2756. "
  2757. v-for="(w, wIndex) in g.works[toolIndex]"
  2758. :key="wIndex"
  2759. :class="w.type == 1 ? 'isTypeOne' : ''"
  2760. >
  2761. <div class="workImg" v-if="w.type == 0">
  2762. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2763. <img
  2764. :src="w.works"
  2765. @click="previewImg(w.works,w)"
  2766. alt
  2767. />
  2768. <div
  2769. class="answerScore"
  2770. v-if="w.score"
  2771. @click.stop="openScore(w)"
  2772. :class="{
  2773. rightW:
  2774. w.userid == userid ||
  2775. tType == 1 ||
  2776. tType == 4 ||
  2777. w.ateacher == userid,
  2778. }"
  2779. >
  2780. {{ JSON.parse(w.score).wScore }}分
  2781. </div>
  2782. <div
  2783. class="answerScore"
  2784. @click.stop="openScore(w)"
  2785. v-else-if="courseDetail.userid == userid"
  2786. :class="{
  2787. rightW:
  2788. w.userid == userid ||
  2789. tType == 1 ||
  2790. tType == 4 ||
  2791. w.ateacher == userid,
  2792. }"
  2793. >
  2794. 评分
  2795. </div>
  2796. <img
  2797. class="deleteImg"
  2798. src="../../assets/deleteworks.png"
  2799. v-if="
  2800. w.userid == userid || tType == 1 || tType == 4
  2801. "
  2802. @click.stop="deleteWorks(w.wid)"
  2803. alt
  2804. />
  2805. </div>
  2806. <div class="workImg" v-if="w.type == 1">
  2807. <img :src="word" @click="openFile(w.works)" alt />
  2808. <!-- @click="openFile(w.works)" -->
  2809. <div
  2810. class="answerScore"
  2811. v-if="w.score"
  2812. @click.stop="openScore(w)"
  2813. :class="{
  2814. rightW:
  2815. w.userid == userid ||
  2816. tType == 1 ||
  2817. tType == 4 ||
  2818. w.ateacher == userid,
  2819. }"
  2820. >
  2821. {{ JSON.parse(w.score).wScore }}分
  2822. </div>
  2823. <div
  2824. class="answerScore"
  2825. @click.stop="openScore(w)"
  2826. v-else-if="courseDetail.userid == userid"
  2827. :class="{
  2828. rightW:
  2829. w.userid == userid ||
  2830. tType == 1 ||
  2831. tType == 4 ||
  2832. w.ateacher == userid,
  2833. }"
  2834. >
  2835. 评分
  2836. </div>
  2837. <img
  2838. class="deleteImg"
  2839. src="../../assets/deleteworks.png"
  2840. v-if="
  2841. w.userid == userid || tType == 1 || tType == 4
  2842. "
  2843. @click.stop="deleteWorks(w.wid)"
  2844. alt
  2845. />
  2846. </div>
  2847. <div class="workImg" v-if="w.type == 3">
  2848. <img
  2849. style="cursor: pointer"
  2850. :src="video"
  2851. @click="openVideo(w)"
  2852. alt
  2853. />
  2854. <!-- @click="openVideo(w.works)" -->
  2855. <div
  2856. class="answerScore"
  2857. v-if="w.score"
  2858. @click.stop="openScore(w)"
  2859. :class="{
  2860. rightW:
  2861. w.userid == userid ||
  2862. tType == 1 ||
  2863. tType == 4 ||
  2864. w.ateacher == userid,
  2865. }"
  2866. >
  2867. {{ JSON.parse(w.score).wScore }}分
  2868. </div>
  2869. <div
  2870. class="answerScore"
  2871. @click.stop="openScore(w)"
  2872. v-else-if="courseDetail.userid == userid"
  2873. :class="{
  2874. rightW:
  2875. w.userid == userid ||
  2876. tType == 1 ||
  2877. tType == 4 ||
  2878. w.ateacher == userid,
  2879. }"
  2880. >
  2881. 评分
  2882. </div>
  2883. <img
  2884. class="deleteImg"
  2885. src="../../assets/deleteworks.png"
  2886. v-if="
  2887. w.userid == userid || tType == 1 || tType == 4
  2888. "
  2889. @click.stop="deleteWorks(w.wid)"
  2890. alt
  2891. />
  2892. </div>
  2893. <div class="workImg" v-if="w.type == 12">
  2894. <img
  2895. style="cursor: pointer"
  2896. :src="word2"
  2897. @click="downloadFile(w.works,w.userid)"
  2898. alt
  2899. />
  2900. <!-- @click="openVideo(w.works)" -->
  2901. <div
  2902. class="answerScore"
  2903. v-if="w.score"
  2904. @click.stop="openScore(w)"
  2905. :class="{
  2906. rightW:
  2907. w.userid == userid ||
  2908. tType == 1 ||
  2909. tType == 4 ||
  2910. w.ateacher == userid,
  2911. }"
  2912. >
  2913. {{ JSON.parse(w.score).wScore }}分
  2914. </div>
  2915. <div
  2916. class="answerScore"
  2917. @click.stop="openScore(w)"
  2918. v-else-if="courseDetail.userid == userid"
  2919. :class="{
  2920. rightW:
  2921. w.userid == userid ||
  2922. tType == 1 ||
  2923. tType == 4 ||
  2924. w.ateacher == userid,
  2925. }"
  2926. >
  2927. 评分
  2928. </div>
  2929. <img
  2930. class="deleteImg"
  2931. src="../../assets/deleteworks.png"
  2932. v-if="
  2933. w.userid == userid || tType == 1 || tType == 4
  2934. "
  2935. @click.stop="deleteWorks(w.wid)"
  2936. alt
  2937. />
  2938. </div>
  2939. <div class="comment" style="min-width: 200px">
  2940. <div class="worksName">
  2941. <div>{{ w.sName }}</div>
  2942. </div>
  2943. <div class="commentList">
  2944. <div class="commentList">
  2945. <div
  2946. class="commentImg"
  2947. @click="
  2948. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2949. "
  2950. >
  2951. <img
  2952. :src="w.isLikes == true ? likes : noLikes"
  2953. alt=""
  2954. />
  2955. </div>
  2956. <div>{{ w.likesCount }}</div>
  2957. </div>
  2958. <div
  2959. class="commentList"
  2960. style="margin-right: 15px"
  2961. >
  2962. <div
  2963. class="commentImg"
  2964. @click="
  2965. commentOther(
  2966. w,
  2967. toolIndex,
  2968. wIndex,
  2969. null,
  2970. g.id
  2971. )
  2972. "
  2973. >
  2974. <img
  2975. src="../../assets/icon/comment/comment.png"
  2976. alt=""
  2977. />
  2978. </div>
  2979. <div>{{ w.commentCount }}</div>
  2980. </div>
  2981. </div>
  2982. </div>
  2983. </div>
  2984. </div>
  2985. <div class="group_work" v-else>暂无提交作业</div>
  2986. </div>
  2987. </div>
  2988. <div
  2989. :id="'tool-' + toolIndex"
  2990. :style="{
  2991. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2992. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2993. }"
  2994. class="worksDetailBox"
  2995. v-if="
  2996. worksStudent.length &&
  2997. worksStudent[toolIndex].length > 0
  2998. "
  2999. >
  3000. <div
  3001. class="works"
  3002. style="
  3003. width: 200px;
  3004. height: 140px;
  3005. margin: 10px 10px 10px 0;
  3006. border-radius: 15px;
  3007. box-shadow: 0 0 6px 1px #dfdada;
  3008. "
  3009. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3010. :key="wIndex"
  3011. :class="w.type == 1 ? 'isTypeOne' : ''"
  3012. >
  3013. <div class="workImg" v-if="w.type == 0">
  3014. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3015. <img
  3016. :src="w.works"
  3017. @click="previewImg(w.works,w)"
  3018. alt
  3019. />
  3020. <div
  3021. class="answerScore"
  3022. v-if="w.score"
  3023. @click.stop="openScore(w)"
  3024. :class="{
  3025. rightW:
  3026. w.userid == userid ||
  3027. tType == 1 ||
  3028. tType == 4 ||
  3029. w.ateacher == userid,
  3030. }"
  3031. >
  3032. {{ JSON.parse(w.score).wScore }}分
  3033. </div>
  3034. <div
  3035. class="answerScore"
  3036. @click.stop="openScore(w)"
  3037. v-else-if="courseDetail.userid == userid"
  3038. :class="{
  3039. rightW:
  3040. w.userid == userid ||
  3041. tType == 1 ||
  3042. tType == 4 ||
  3043. w.ateacher == userid,
  3044. }"
  3045. >
  3046. 评分
  3047. </div>
  3048. <img
  3049. class="deleteImg"
  3050. src="../../assets/deleteworks.png"
  3051. v-if="
  3052. w.userid == userid || tType == 1 || tType == 4
  3053. "
  3054. @click.stop="deleteWorks(w.wid)"
  3055. alt
  3056. />
  3057. </div>
  3058. <div class="workImg" v-if="w.type == 1">
  3059. <img :src="word" @click="openFile(w.works)" alt />
  3060. <!-- @click="openFile(w.works)" -->
  3061. <div
  3062. class="answerScore"
  3063. v-if="w.score"
  3064. @click.stop="openScore(w)"
  3065. :class="{
  3066. rightW:
  3067. w.userid == userid ||
  3068. tType == 1 ||
  3069. tType == 4 ||
  3070. w.ateacher == userid,
  3071. }"
  3072. >
  3073. {{ JSON.parse(w.score).wScore }}分
  3074. </div>
  3075. <div
  3076. class="answerScore"
  3077. @click.stop="openScore(w)"
  3078. v-else-if="courseDetail.userid == userid"
  3079. :class="{
  3080. rightW:
  3081. w.userid == userid ||
  3082. tType == 1 ||
  3083. tType == 4 ||
  3084. w.ateacher == userid,
  3085. }"
  3086. >
  3087. 评分
  3088. </div>
  3089. <img
  3090. class="deleteImg"
  3091. src="../../assets/deleteworks.png"
  3092. v-if="
  3093. w.userid == userid || tType == 1 || tType == 4
  3094. "
  3095. @click.stop="deleteWorks(w.wid)"
  3096. alt
  3097. />
  3098. </div>
  3099. <div class="workImg" v-if="w.type == 3">
  3100. <img
  3101. style="cursor: pointer"
  3102. :src="video"
  3103. @click="openVideo(w)"
  3104. alt
  3105. />
  3106. <!-- @click="openVideo(w.works)" -->
  3107. <div
  3108. class="answerScore"
  3109. v-if="w.score"
  3110. @click.stop="openScore(w)"
  3111. :class="{
  3112. rightW:
  3113. w.userid == userid ||
  3114. tType == 1 ||
  3115. tType == 4 ||
  3116. w.ateacher == userid,
  3117. }"
  3118. >
  3119. {{ JSON.parse(w.score).wScore }}分
  3120. </div>
  3121. <div
  3122. class="answerScore"
  3123. @click.stop="openScore(w)"
  3124. v-else-if="courseDetail.userid == userid"
  3125. :class="{
  3126. rightW:
  3127. w.userid == userid ||
  3128. tType == 1 ||
  3129. tType == 4 ||
  3130. w.ateacher == userid,
  3131. }"
  3132. >
  3133. 评分
  3134. </div>
  3135. <img
  3136. class="deleteImg"
  3137. src="../../assets/deleteworks.png"
  3138. v-if="
  3139. w.userid == userid || tType == 1 || tType == 4
  3140. "
  3141. @click.stop="deleteWorks(w.wid)"
  3142. alt
  3143. />
  3144. </div>
  3145. <div class="workImg" v-if="w.type == 12">
  3146. <img
  3147. style="cursor: pointer"
  3148. :src="word2"
  3149. @click="downloadFile(w.works,w.userid)"
  3150. alt
  3151. />
  3152. <!-- @click="openVideo(w.works)" -->
  3153. <div
  3154. class="answerScore"
  3155. v-if="w.score"
  3156. @click.stop="openScore(w)"
  3157. :class="{
  3158. rightW:
  3159. w.userid == userid ||
  3160. tType == 1 ||
  3161. tType == 4 ||
  3162. w.ateacher == userid,
  3163. }"
  3164. >
  3165. {{ JSON.parse(w.score).wScore }}分
  3166. </div>
  3167. <div
  3168. class="answerScore"
  3169. @click.stop="openScore(w)"
  3170. v-else-if="courseDetail.userid == userid"
  3171. :class="{
  3172. rightW:
  3173. w.userid == userid ||
  3174. tType == 1 ||
  3175. tType == 4 ||
  3176. w.ateacher == userid,
  3177. }"
  3178. >
  3179. 评分
  3180. </div>
  3181. <img
  3182. class="deleteImg"
  3183. src="../../assets/deleteworks.png"
  3184. v-if="
  3185. w.userid == userid || tType == 1 || tType == 4
  3186. "
  3187. @click.stop="deleteWorks(w.wid)"
  3188. alt
  3189. />
  3190. </div>
  3191. <div class="comment" style="min-width: 200px">
  3192. <div class="worksName">
  3193. <div>{{ w.sName }}</div>
  3194. </div>
  3195. <div class="commentList">
  3196. <div class="commentList">
  3197. <div
  3198. class="commentImg"
  3199. @click="
  3200. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3201. "
  3202. >
  3203. <img
  3204. :src="w.isLikes == true ? likes : noLikes"
  3205. alt=""
  3206. />
  3207. </div>
  3208. <div>{{ w.likesCount }}</div>
  3209. </div>
  3210. <div class="commentList" style="margin-right: 15px">
  3211. <div
  3212. class="commentImg"
  3213. @click="commentOther(w, toolIndex, wIndex)"
  3214. >
  3215. <img
  3216. src="../../assets/icon/comment/comment.png"
  3217. alt=""
  3218. />
  3219. </div>
  3220. <div>{{ w.commentCount }}</div>
  3221. </div>
  3222. </div>
  3223. </div>
  3224. </div>
  3225. </div>
  3226. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3227. 未提交
  3228. </div>
  3229. <div
  3230. class="noWorksS"
  3231. v-if="noWorksS && noWorksS[toolIndex].length"
  3232. >
  3233. <div
  3234. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3235. :key="sIndex"
  3236. class="noWorksName"
  3237. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3238. >
  3239. <el-tooltip effect="dark" :content="s.student" placement="top">
  3240. <span>{{ s.student }}</span>
  3241. </el-tooltip>
  3242. </div>
  3243. </div>
  3244. </div>
  3245. <div
  3246. v-if="
  3247. tType &&
  3248. ((tType == 2 && sIsOpen == true) ||
  3249. tType == 1 ||
  3250. tType == 4) &&
  3251. tool.tool.indexOf(70) != -1
  3252. "
  3253. class="worksBox"
  3254. >
  3255. <div
  3256. class="zuoyeYulan"
  3257. v-if="
  3258. (worksStudent.length &&
  3259. worksStudent[toolIndex].length > 0)
  3260. "
  3261. >
  3262. <div class="worksTop">
  3263. <div>作业预览</div>
  3264. <div
  3265. class="corOpen"
  3266. @click="contract(toolIndex)"
  3267. v-if="
  3268. (isCloseList[toolIndex].isCloseBoolean) &&
  3269. isCloseList[toolIndex].isClose == 0
  3270. "
  3271. >
  3272. 折叠
  3273. </div>
  3274. <div
  3275. class="corOpen"
  3276. @click="contract(toolIndex)"
  3277. v-if="isCloseList[toolIndex].isClose == 1"
  3278. >
  3279. 展开
  3280. </div>
  3281. </div>
  3282. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3283. </div>
  3284. <div
  3285. :id="'tool-' + toolIndex"
  3286. :style="{
  3287. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3288. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3289. }"
  3290. class="worksDetailBox"
  3291. v-if="
  3292. worksStudent.length &&
  3293. worksStudent[toolIndex].length > 0
  3294. "
  3295. >
  3296. <div
  3297. class="works"
  3298. style="
  3299. width: 200px;
  3300. height: 140px;
  3301. margin: 10px 10px 10px 0;
  3302. border-radius: 15px;
  3303. box-shadow: 0 0 6px 1px #dfdada;
  3304. "
  3305. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3306. :key="wIndex"
  3307. :class="w.type == 1 ? 'isTypeOne' : ''"
  3308. >
  3309. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3310. <img :src="word" alt />
  3311. <img
  3312. class="deleteImg"
  3313. src="../../assets/deleteworks.png"
  3314. v-if="
  3315. w.userid == userid || tType == 1 || tType == 4
  3316. "
  3317. @click.stop="deleteWorks(w.wid)"
  3318. alt
  3319. />
  3320. </div>
  3321. <div class="comment" style="min-width: 200px">
  3322. <div class="worksName">
  3323. <div>{{ w.sName }}</div>
  3324. </div>
  3325. </div>
  3326. </div>
  3327. </div>
  3328. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3329. 未提交
  3330. </div>
  3331. <div
  3332. class="noWorksS"
  3333. v-if="noWorksS && noWorksS[toolIndex].length"
  3334. >
  3335. <div
  3336. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3337. :key="sIndex"
  3338. class="noWorksName"
  3339. >
  3340. <el-tooltip effect="dark" :content="s.student" placement="top">
  3341. <span>{{ s.student }}</span>
  3342. </el-tooltip>
  3343. </div>
  3344. </div>
  3345. </div>
  3346. <div
  3347. v-if="
  3348. tType &&
  3349. tType == 2 &&
  3350. !sIsOpen &&
  3351. tool.tool.indexOf(70) != -1
  3352. "
  3353. class="worksBox"
  3354. >
  3355. <div
  3356. class="zuoyeYulan"
  3357. v-if="workStudent[toolIndex].length > 0"
  3358. >
  3359. <span class="worksTitle">作业预览</span>
  3360. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3361. </div>
  3362. <div
  3363. class="worksDetailBox"
  3364. v-if="workStudent[toolIndex].length > 0"
  3365. >
  3366. <div
  3367. class="works"
  3368. style="
  3369. width: 200px;
  3370. height: 140px;
  3371. margin: 10px 10px 10px 0;
  3372. box-shadow: 0 0 6px 1px #dfdada;
  3373. "
  3374. v-for="(w, wIndex) in workStudent[toolIndex]"
  3375. :key="wIndex"
  3376. >
  3377. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3378. <img :src="word" alt />
  3379. <img
  3380. class="deleteImg"
  3381. src="../../assets/deleteworks.png"
  3382. v-if="
  3383. w.userid == userid || tType == 1 || tType == 4
  3384. "
  3385. @click.stop="deleteWorks(w.wid)"
  3386. alt
  3387. />
  3388. </div>
  3389. <div class="worksName">
  3390. <div>{{ w.sName }}</div>
  3391. </div>
  3392. </div>
  3393. </div>
  3394. </div>
  3395. <div
  3396. v-if="
  3397. tType &&
  3398. ((tType == 2 && sIsOpen == true) ||
  3399. tType == 1 ||
  3400. tType == 4) &&
  3401. tool.tool.indexOf(32) != -1
  3402. "
  3403. class="worksBox"
  3404. >
  3405. <div
  3406. class="zuoyeYulan"
  3407. v-if="
  3408. worksStudent.length &&
  3409. worksStudent[toolIndex].length > 0
  3410. "
  3411. >
  3412. <div class="worksTop">
  3413. <div>作业预览</div>
  3414. <div
  3415. class="corOpen"
  3416. @click="contract(toolIndex)"
  3417. v-if="
  3418. (isCloseList[toolIndex].isCloseBoolean) &&
  3419. isCloseList[toolIndex].isClose == 0
  3420. "
  3421. >
  3422. 折叠
  3423. </div>
  3424. <div
  3425. class="corOpen"
  3426. @click="contract(toolIndex)"
  3427. v-if="isCloseList[toolIndex].isClose == 1"
  3428. >
  3429. 展开
  3430. </div>
  3431. </div>
  3432. </div>
  3433. <div
  3434. :id="'tool-' + toolIndex"
  3435. :style="{
  3436. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3437. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3438. }"
  3439. class="worksDetailBox"
  3440. v-if="
  3441. worksStudent.length &&
  3442. worksStudent[toolIndex].length > 0
  3443. "
  3444. >
  3445. <div
  3446. class="works"
  3447. style="
  3448. width: 200px;
  3449. height: 140px;
  3450. margin: 10px 10px 10px 0;
  3451. border-radius: 15px;
  3452. box-shadow: 0 0 6px 1px #dfdada;
  3453. "
  3454. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3455. :key="wIndex"
  3456. :class="w.type == 1 ? 'isTypeOne' : ''"
  3457. >
  3458. <div class="workImg">
  3459. <img
  3460. :src="word2"
  3461. @click="downloadFile(w.works,w.userid)"
  3462. alt
  3463. />
  3464. <div
  3465. class="answerScore"
  3466. v-if="w.score"
  3467. @click.stop="openScore(w)"
  3468. :class="{
  3469. rightW:
  3470. w.userid == userid ||
  3471. tType == 1 ||
  3472. tType == 4 ||
  3473. w.ateacher == userid,
  3474. }"
  3475. >
  3476. {{ JSON.parse(w.score).wScore }}分
  3477. </div>
  3478. <div
  3479. class="answerScore"
  3480. @click.stop="openScore(w)"
  3481. v-else-if="courseDetail.userid == userid"
  3482. :class="{
  3483. rightW:
  3484. w.userid == userid ||
  3485. tType == 1 ||
  3486. tType == 4 ||
  3487. w.ateacher == userid,
  3488. }"
  3489. >
  3490. 评分
  3491. </div>
  3492. <img
  3493. class="deleteImg"
  3494. src="../../assets/deleteworks.png"
  3495. v-if="
  3496. w.userid == userid || tType == 1 || tType == 4
  3497. "
  3498. @click.stop="deleteWorks(w.wid)"
  3499. alt
  3500. />
  3501. </div>
  3502. <div class="comment" style="min-width: 200px">
  3503. <div class="worksName">
  3504. <div>{{ w.sName }}</div>
  3505. </div>
  3506. <div class="commentList">
  3507. <div class="commentList">
  3508. <div
  3509. class="commentImg"
  3510. @click="
  3511. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3512. "
  3513. >
  3514. <img
  3515. :src="w.isLikes == true ? likes : noLikes"
  3516. alt=""
  3517. />
  3518. </div>
  3519. <div>{{ w.likesCount }}</div>
  3520. </div>
  3521. <div class="commentList" style="margin-right: 15px">
  3522. <div
  3523. class="commentImg"
  3524. @click="commentOther(w, toolIndex, wIndex)"
  3525. >
  3526. <img
  3527. src="../../assets/icon/comment/comment.png"
  3528. alt=""
  3529. />
  3530. </div>
  3531. <div>{{ w.commentCount }}</div>
  3532. </div>
  3533. </div>
  3534. </div>
  3535. </div>
  3536. </div>
  3537. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3538. 未提交
  3539. </div>
  3540. <div
  3541. class="noWorksS"
  3542. v-if="noWorksS && noWorksS[toolIndex].length"
  3543. >
  3544. <div
  3545. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3546. :key="sIndex"
  3547. class="noWorksName"
  3548. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3549. >
  3550. <el-tooltip effect="dark" :content="s.student" placement="top">
  3551. <span>{{ s.student }}</span>
  3552. </el-tooltip>
  3553. </div>
  3554. </div>
  3555. </div>
  3556. <div
  3557. v-if="
  3558. tType &&
  3559. ((tType == 2 && sIsOpen == true) ||
  3560. tType == 1 ||
  3561. tType == 4) &&
  3562. tool.tool.indexOf(57) != -1
  3563. "
  3564. class="worksBox"
  3565. >
  3566. <div
  3567. class="zuoyeYulan"
  3568. v-if="
  3569. worksStudent.length &&
  3570. worksStudent[toolIndex].length > 0
  3571. "
  3572. >
  3573. <div class="worksTop">
  3574. <div>作业预览</div>
  3575. <div
  3576. class="corOpen"
  3577. @click="contract(toolIndex)"
  3578. v-if="
  3579. (isCloseList[toolIndex].isCloseBoolean) &&
  3580. isCloseList[toolIndex].isClose == 0
  3581. "
  3582. >
  3583. 折叠
  3584. </div>
  3585. <div
  3586. class="corOpen"
  3587. @click="contract(toolIndex)"
  3588. v-if="isCloseList[toolIndex].isClose == 1"
  3589. >
  3590. 展开
  3591. </div>
  3592. </div>
  3593. </div>
  3594. <div
  3595. :id="'tool-' + toolIndex"
  3596. :style="{
  3597. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3598. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3599. }"
  3600. class="worksDetailBox"
  3601. v-if="
  3602. worksStudent.length &&
  3603. worksStudent[toolIndex].length > 0
  3604. "
  3605. >
  3606. <div
  3607. class="works"
  3608. style="
  3609. width: 200px;
  3610. height: 140px;
  3611. margin: 10px 10px 10px 0;
  3612. border-radius: 15px;
  3613. box-shadow: 0 0 6px 1px #dfdada;
  3614. "
  3615. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3616. :key="wIndex"
  3617. :class="w.type == 1 ? 'isTypeOne' : ''"
  3618. >
  3619. <div class="workImg">
  3620. <img
  3621. :src="word2"
  3622. @click="downloadFile(w.works,w.userid)"
  3623. v-if="w.type == 12"
  3624. alt
  3625. />
  3626. <img
  3627. :src="word2"
  3628. @click="
  3629. openCocoPi(57, toolIndex, w.userid, w.sName)
  3630. "
  3631. v-else-if="w.type == 15"
  3632. alt
  3633. />
  3634. <div
  3635. class="answerScore"
  3636. v-if="w.score"
  3637. @click.stop="openScore(w)"
  3638. :class="{
  3639. rightW:
  3640. w.userid == userid ||
  3641. tType == 1 ||
  3642. tType == 4 ||
  3643. w.ateacher == userid,
  3644. }"
  3645. >
  3646. {{ JSON.parse(w.score).wScore }}分
  3647. </div>
  3648. <div
  3649. class="answerScore"
  3650. @click.stop="openScore(w)"
  3651. v-else-if="courseDetail.userid == userid"
  3652. :class="{
  3653. rightW:
  3654. w.userid == userid ||
  3655. tType == 1 ||
  3656. tType == 4 ||
  3657. w.ateacher == userid,
  3658. }"
  3659. >
  3660. 评分
  3661. </div>
  3662. <img
  3663. class="deleteImg"
  3664. src="../../assets/deleteworks.png"
  3665. v-if="
  3666. w.userid == userid || tType == 1 || tType == 4
  3667. "
  3668. @click.stop="deleteWorks(w.wid)"
  3669. alt
  3670. />
  3671. </div>
  3672. <div class="comment" style="min-width: 200px">
  3673. <div class="worksName">
  3674. <div>{{ w.sName }}</div>
  3675. </div>
  3676. <div class="commentList">
  3677. <div class="commentList">
  3678. <div
  3679. class="commentImg"
  3680. @click="
  3681. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3682. "
  3683. >
  3684. <img
  3685. :src="w.isLikes == true ? likes : noLikes"
  3686. alt=""
  3687. />
  3688. </div>
  3689. <div>{{ w.likesCount }}</div>
  3690. </div>
  3691. <div class="commentList" style="margin-right: 15px">
  3692. <div
  3693. class="commentImg"
  3694. @click="commentOther(w, toolIndex, wIndex)"
  3695. >
  3696. <img
  3697. src="../../assets/icon/comment/comment.png"
  3698. alt=""
  3699. />
  3700. </div>
  3701. <div>{{ w.commentCount }}</div>
  3702. </div>
  3703. </div>
  3704. </div>
  3705. </div>
  3706. </div>
  3707. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3708. 未提交
  3709. </div>
  3710. <div
  3711. class="noWorksS"
  3712. v-if="noWorksS && noWorksS[toolIndex].length"
  3713. >
  3714. <div
  3715. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3716. :key="sIndex"
  3717. class="noWorksName"
  3718. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3719. >
  3720. <el-tooltip effect="dark" :content="s.student" placement="top">
  3721. <span>{{ s.student }}</span>
  3722. </el-tooltip>
  3723. </div>
  3724. </div>
  3725. </div>
  3726. <div
  3727. v-if="
  3728. tType &&
  3729. ((tType == 2 && sIsOpen == true) ||
  3730. tType == 1 ||
  3731. tType == 4) &&
  3732. tool.tool.indexOf(72) != -1
  3733. "
  3734. class="worksBox"
  3735. >
  3736. <div
  3737. class="zuoyeYulan"
  3738. v-if="
  3739. worksStudent.length &&
  3740. worksStudent[toolIndex].length > 0
  3741. "
  3742. >
  3743. <div class="worksTop">
  3744. <div>作业预览</div>
  3745. <div
  3746. class="corOpen"
  3747. @click="contract(toolIndex)"
  3748. v-if="
  3749. isCloseList[toolIndex].isCloseBoolean &&
  3750. isCloseList[toolIndex].isClose == 0
  3751. "
  3752. >
  3753. 折叠
  3754. </div>
  3755. <div
  3756. class="corOpen"
  3757. @click="contract(toolIndex)"
  3758. v-if="isCloseList[toolIndex].isClose == 1"
  3759. >
  3760. 展开
  3761. </div>
  3762. </div>
  3763. </div>
  3764. <div
  3765. :id="'tool-' + toolIndex"
  3766. :style="{
  3767. height:
  3768. isCloseList[toolIndex].isClose == 1
  3769. ? retrnToolHeight('tool-' + toolIndex)
  3770. : 'auto',
  3771. overflow:
  3772. isCloseList[toolIndex].isClose == 1
  3773. ? 'hidden'
  3774. : 'unset'
  3775. }"
  3776. class="worksDetailBox"
  3777. v-if="
  3778. worksStudent.length &&
  3779. worksStudent[toolIndex].length > 0
  3780. "
  3781. >
  3782. <div
  3783. class="works"
  3784. style="
  3785. width: 200px;
  3786. height: 140px;
  3787. margin: 10px 10px 10px 0;
  3788. border-radius: 15px;
  3789. box-shadow: 0 0 6px 1px #dfdada;
  3790. "
  3791. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3792. :key="wIndex"
  3793. :class="w.type == 1 ? 'isTypeOne' : ''"
  3794. >
  3795. <div class="workImg">
  3796. <!-- <img
  3797. :src="word2"
  3798. @click="downloadFile(w.works)"
  3799. v-if="w.type == 12"
  3800. alt
  3801. /> -->
  3802. <img
  3803. :src="word2"
  3804. @click="
  3805. openCocoFlow(w)
  3806. "
  3807. alt
  3808. />
  3809. <div
  3810. class="answerScore"
  3811. v-if="w.score"
  3812. @click.stop="openScore(w)"
  3813. :class="{
  3814. rightW:
  3815. w.userid == userid ||
  3816. tType == 1 ||
  3817. tType == 4 ||
  3818. w.ateacher == userid
  3819. }"
  3820. >
  3821. {{ JSON.parse(w.score).wScore }}分
  3822. </div>
  3823. <div
  3824. class="answerScore"
  3825. @click.stop="openScore(w)"
  3826. v-else-if="
  3827. courseDetail.userid == userid &&
  3828. courseDetail.state != 5 &&
  3829. chapInfoList[courseType].chapterInfo[0]
  3830. .taskJson[taskCount].eList &&
  3831. chapInfoList[courseType].chapterInfo[0]
  3832. .taskJson[taskCount].eList.length
  3833. "
  3834. :class="{
  3835. rightW:
  3836. w.userid == userid ||
  3837. tType == 1 ||
  3838. tType == 4 ||
  3839. w.ateacher == userid
  3840. }"
  3841. >
  3842. 评分
  3843. </div>
  3844. <img
  3845. class="deleteImg"
  3846. src="../../assets/deleteworks.png"
  3847. v-if="
  3848. w.userid == userid || tType == 1 || tType == 4
  3849. "
  3850. @click.stop="deleteWorks(w.wid)"
  3851. alt
  3852. />
  3853. </div>
  3854. <div class="comment" style="min-width: 200px">
  3855. <div class="worksName">
  3856. <div>{{ w.sName }}</div>
  3857. </div>
  3858. <div class="commentList">
  3859. <div class="commentList">
  3860. <div
  3861. class="commentImg"
  3862. @click="
  3863. isLikes(
  3864. w.wid,
  3865. userid,
  3866. 1,
  3867. null,
  3868. w.isLikes,
  3869. w.sName
  3870. )
  3871. "
  3872. >
  3873. <img
  3874. :src="w.isLikes == true ? likes : noLikes"
  3875. alt=""
  3876. />
  3877. </div>
  3878. <div>{{ w.likesCount }}</div>
  3879. </div>
  3880. <div class="commentList" style="margin-right: 15px">
  3881. <div
  3882. class="commentImg"
  3883. @click="commentOther(w, toolIndex, wIndex)"
  3884. >
  3885. <img
  3886. src="../../assets/icon/comment/comment.png"
  3887. alt=""
  3888. />
  3889. </div>
  3890. <div>{{ w.commentCount }}</div>
  3891. </div>
  3892. </div>
  3893. </div>
  3894. </div>
  3895. </div>
  3896. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3897. 未提交
  3898. </div>
  3899. <div
  3900. class="noWorksS"
  3901. v-if="noWorksS && noWorksS[toolIndex].length"
  3902. >
  3903. <div
  3904. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3905. :key="sIndex"
  3906. class="noWorksName"
  3907. @click="teacherWorkSubmit(72, toolIndex, taskCount, s)"
  3908. >
  3909. <el-tooltip
  3910. effect="dark"
  3911. :content="s.student"
  3912. placement="top"
  3913. >
  3914. <span>{{ s.student }}</span>
  3915. </el-tooltip>
  3916. </div>
  3917. </div>
  3918. </div>
  3919. <div
  3920. v-if="
  3921. tType &&
  3922. tType == 2 &&
  3923. !sIsOpen &&
  3924. tool.tool.indexOf(72) != -1
  3925. "
  3926. class="worksBox"
  3927. >
  3928. <div
  3929. class="zuoyeYulan"
  3930. v-if="workStudent[toolIndex].length > 0"
  3931. >
  3932. <span class="worksTitle">作业预览</span>
  3933. </div>
  3934. <div
  3935. class="worksDetailBox"
  3936. v-if="workStudent[toolIndex].length > 0"
  3937. >
  3938. <div
  3939. class="works"
  3940. style="
  3941. width: 200px;
  3942. height: 140px;
  3943. margin: 10px 10px 10px 0;
  3944. box-shadow: 0 0 6px 1px #dfdada;
  3945. "
  3946. v-for="(w, wIndex) in workStudent[toolIndex]"
  3947. :key="wIndex"
  3948. >
  3949. <div class="workImg">
  3950. <!-- <img
  3951. :src="word2"
  3952. @click="downloadFile(w.works)"
  3953. v-if="w.type == 12"
  3954. alt
  3955. /> -->
  3956. <img
  3957. :src="word2"
  3958. @click="
  3959. openCocoFlow(w)
  3960. "
  3961. alt
  3962. />
  3963. <div
  3964. class="answerScore"
  3965. v-if="w.score"
  3966. @click.stop="openScore(w)"
  3967. :class="{
  3968. rightW:
  3969. w.userid == userid || tType == 1 || tType == 4
  3970. }"
  3971. >
  3972. {{ JSON.parse(w.score).wScore }}分
  3973. </div>
  3974. <div
  3975. class="answerScore"
  3976. @click.stop="openScore(w)"
  3977. v-else-if="courseDetail.userid == userid"
  3978. :class="{
  3979. rightW:
  3980. w.userid == userid || tType == 1 || tType == 4
  3981. }"
  3982. >
  3983. 评分
  3984. </div>
  3985. <img
  3986. class="deleteImg"
  3987. src="../../assets/deleteworks.png"
  3988. v-if="
  3989. w.userid == userid || tType == 1 || tType == 4
  3990. "
  3991. @click.stop="deleteWorks(w.wid)"
  3992. alt
  3993. />
  3994. </div>
  3995. <div class="worksName">
  3996. <div>{{ w.sName }}</div>
  3997. </div>
  3998. </div>
  3999. </div>
  4000. </div>
  4001. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  4002. <div
  4003. class="zuoyeYulan"
  4004. v-if="
  4005. worksStudent.length &&
  4006. worksStudent[toolIndex].length > 0
  4007. "
  4008. >
  4009. <span class="worksTitle">作业预览</span>
  4010. <div
  4011. class="corOpen"
  4012. @click="contract(toolIndex)"
  4013. v-if="
  4014. (isCloseList[toolIndex].isCloseBoolean) &&
  4015. isCloseList[toolIndex].isClose == 0
  4016. "
  4017. >
  4018. 折叠
  4019. </div>
  4020. <div
  4021. class="corOpen"
  4022. @click="contract(toolIndex)"
  4023. v-if="isCloseList[toolIndex].isClose == 1"
  4024. >
  4025. 展开
  4026. </div>
  4027. </div>
  4028. <div
  4029. :id="'tool-' + toolIndex"
  4030. :style="{
  4031. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4032. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4033. }"
  4034. class="worksDetailBox"
  4035. v-if="
  4036. worksStudent.length &&
  4037. worksStudent[toolIndex].length > 0
  4038. "
  4039. >
  4040. <div
  4041. class="works"
  4042. style="
  4043. width: 200px;
  4044. height: 140px;
  4045. margin: 10px 10px 10px 0;
  4046. border-radius: 15px;
  4047. box-shadow: 0 0 6px 1px #dfdada;
  4048. "
  4049. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4050. :key="wIndex"
  4051. :class="w.type == 1 ? 'isTypeOne' : ''"
  4052. >
  4053. <div class="workImg" v-if="w.type == 0">
  4054. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  4055. <img
  4056. :src="w.works"
  4057. @click="previewImg(w.works,w)"
  4058. alt
  4059. />
  4060. <div
  4061. class="answerScore"
  4062. v-if="w.score"
  4063. @click.stop="openScore(w)"
  4064. :class="{
  4065. rightW:
  4066. w.userid == userid ||
  4067. tType == 1 ||
  4068. tType == 4 ||
  4069. w.ateacher == userid,
  4070. }"
  4071. >
  4072. {{ JSON.parse(w.score).wScore }}分
  4073. </div>
  4074. <div
  4075. class="answerScore"
  4076. @click.stop="openScore(w)"
  4077. v-else-if="courseDetail.userid == userid"
  4078. :class="{
  4079. rightW:
  4080. w.userid == userid ||
  4081. tType == 1 ||
  4082. tType == 4 ||
  4083. w.ateacher == userid,
  4084. }"
  4085. >
  4086. 评分
  4087. </div>
  4088. <img
  4089. class="deleteImg"
  4090. src="../../assets/deleteworks.png"
  4091. v-if="
  4092. w.userid == userid || tType == 1 || tType == 4
  4093. "
  4094. @click.stop="deleteWorks(w.wid)"
  4095. alt
  4096. />
  4097. </div>
  4098. <div
  4099. class="workImg"
  4100. style="cursor: pointer"
  4101. v-if="w.type == 1"
  4102. >
  4103. <img :src="word" @click="openFile(w.works)" alt />
  4104. <!-- @click="openFile(w.works)" -->
  4105. <div
  4106. class="answerScore"
  4107. v-if="w.score"
  4108. @click.stop="openScore(w)"
  4109. :class="{
  4110. rightW:
  4111. w.userid == userid ||
  4112. tType == 1 ||
  4113. tType == 4 ||
  4114. w.ateacher == userid,
  4115. }"
  4116. >
  4117. {{ JSON.parse(w.score).wScore }}分
  4118. </div>
  4119. <div
  4120. class="answerScore"
  4121. @click.stop="openScore(w)"
  4122. v-else-if="courseDetail.userid == userid"
  4123. :class="{
  4124. rightW:
  4125. w.userid == userid ||
  4126. tType == 1 ||
  4127. tType == 4 ||
  4128. w.ateacher == userid,
  4129. }"
  4130. >
  4131. 评分
  4132. </div>
  4133. <img
  4134. class="deleteImg"
  4135. src="../../assets/deleteworks.png"
  4136. v-if="
  4137. w.userid == userid || tType == 1 || tType == 4
  4138. "
  4139. @click.stop="deleteWorks(w.wid)"
  4140. alt
  4141. />
  4142. </div>
  4143. <div class="workImg" v-if="w.type == 3">
  4144. <img
  4145. style="cursor: pointer"
  4146. :src="video"
  4147. @click="openVideo(w)"
  4148. alt
  4149. />
  4150. <!-- @click="openVideo(w.works)" -->
  4151. <div
  4152. class="answerScore"
  4153. v-if="w.score"
  4154. @click.stop="openScore(w)"
  4155. :class="{
  4156. rightW:
  4157. w.userid == userid ||
  4158. tType == 1 ||
  4159. tType == 4 ||
  4160. w.ateacher == userid,
  4161. }"
  4162. >
  4163. {{ JSON.parse(w.score).wScore }}分
  4164. </div>
  4165. <div
  4166. class="answerScore"
  4167. @click.stop="openScore(w)"
  4168. v-else-if="courseDetail.userid == userid"
  4169. :class="{
  4170. rightW:
  4171. w.userid == userid ||
  4172. tType == 1 ||
  4173. tType == 4 ||
  4174. w.ateacher == userid,
  4175. }"
  4176. >
  4177. 评分
  4178. </div>
  4179. <img
  4180. class="deleteImg"
  4181. src="../../assets/deleteworks.png"
  4182. v-if="
  4183. w.userid == userid || tType == 1 || tType == 4
  4184. "
  4185. @click.stop="deleteWorks(w.wid)"
  4186. alt
  4187. />
  4188. </div>
  4189. <div class="comment" style="min-width: 200px">
  4190. <div class="worksName">
  4191. <div
  4192. style="cursor: pointer"
  4193. @click="
  4194. openSname(w.sName, w.wid, toolIndex, w.userid)
  4195. "
  4196. >
  4197. {{ w.sName }}
  4198. </div>
  4199. </div>
  4200. <div class="commentList">
  4201. <div class="commentList">
  4202. <div
  4203. class="commentImg"
  4204. @click="
  4205. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4206. "
  4207. >
  4208. <img
  4209. :src="w.isLikes == true ? likes : noLikes"
  4210. alt=""
  4211. />
  4212. </div>
  4213. <div>{{ w.likesCount }}</div>
  4214. </div>
  4215. <div class="commentList" style="margin-right: 15px">
  4216. <div
  4217. class="commentImg"
  4218. @click="commentOther(w, toolIndex, wIndex)"
  4219. >
  4220. <img
  4221. src="../../assets/icon/comment/comment.png"
  4222. alt=""
  4223. />
  4224. </div>
  4225. <div>{{ w.commentCount }}</div>
  4226. </div>
  4227. </div>
  4228. </div>
  4229. </div>
  4230. </div>
  4231. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4232. 未提交
  4233. </div>
  4234. <div
  4235. class="noWorksS"
  4236. v-if="noWorksS && noWorksS[toolIndex].length"
  4237. >
  4238. <div
  4239. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4240. :key="sIndex"
  4241. class="noWorksName"
  4242. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  4243. >
  4244. <el-tooltip effect="dark" :content="s.student" placement="top">
  4245. <span>{{ s.student }}</span>
  4246. </el-tooltip>
  4247. </div>
  4248. </div>
  4249. </div>
  4250. <div
  4251. v-if="
  4252. tType &&
  4253. ((tType == 2 && sIsOpen == true) ||
  4254. tType == 1 ||
  4255. tType == 4) &&
  4256. tool.tool.indexOf(4) != -1 &&
  4257. (tool.askJson[0].answer ||
  4258. tool.askJson[0].answer === 0) &&
  4259. checkJson[toolIndex].length
  4260. "
  4261. class="xuan_right_box"
  4262. >
  4263. <div
  4264. class="tool_right_box"
  4265. v-for="(item, index) in tool.askJson"
  4266. :key="index"
  4267. >
  4268. <div style="width: calc(100% - 30px);">
  4269. <el-tooltip
  4270. effect="light"
  4271. :content="index + 1 + '、' + item.askstitle"
  4272. placement="top"
  4273. popper-class="text_tooltip"
  4274. >
  4275. <div
  4276. style="
  4277. width: calc(100% - 130px);
  4278. display: block;
  4279. white-space: nowrap;
  4280. overflow: hidden;
  4281. text-overflow: ellipsis;
  4282. word-break: break-word;
  4283. cursor: pointer;
  4284. "
  4285. >
  4286. {{ index + 1 + "、" + item.askstitle }}
  4287. </div>
  4288. </el-tooltip>
  4289. </div>
  4290. <div class="right_box_xuan">
  4291. <span>正确率</span>
  4292. <span>{{
  4293. (checkJson[toolIndex][index].right
  4294. ? checkJson[toolIndex][index].right
  4295. : 0) + "%"
  4296. }}</span>
  4297. </div>
  4298. </div>
  4299. </div>
  4300. <div
  4301. class="xuan_right_box"
  4302. style="background: unset; padding: 0 10px"
  4303. v-if="
  4304. tType &&
  4305. ((tType == 2 && sIsOpen == true) ||
  4306. tType == 1 ||
  4307. tType == 4) &&
  4308. tool.tool.indexOf(4) != -1
  4309. "
  4310. >
  4311. <AskStatic
  4312. v-if="
  4313. worksStudent.length &&
  4314. worksStudent[toolIndex].length > 0
  4315. "
  4316. :askJSON="tool"
  4317. :checkJson="checkJson[toolIndex]"
  4318. ></AskStatic>
  4319. </div>
  4320. <div
  4321. v-if="
  4322. tType &&
  4323. ((tType == 2 && sIsOpen == true) ||
  4324. tType == 1 ||
  4325. tType == 4) &&
  4326. tool.tool.indexOf(4) != -1
  4327. "
  4328. class="worksBox"
  4329. >
  4330. <div
  4331. class="zuoyeYulan"
  4332. v-if="
  4333. worksStudent.length &&
  4334. worksStudent[toolIndex].length > 0
  4335. "
  4336. >
  4337. <div class="worksTop">
  4338. <div>作业预览</div>
  4339. <div
  4340. class="corOpen"
  4341. @click="contract(toolIndex)"
  4342. v-if="
  4343. (isCloseList[toolIndex].isCloseBoolean) &&
  4344. isCloseList[toolIndex].isClose == 0
  4345. "
  4346. >
  4347. 折叠
  4348. </div>
  4349. <div
  4350. class="corOpen"
  4351. @click="contract(toolIndex)"
  4352. v-if="isCloseList[toolIndex].isClose == 1"
  4353. >
  4354. 展开
  4355. </div>
  4356. </div>
  4357. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4358. </div>
  4359. <div>
  4360. <div
  4361. :id="'tool-' + toolIndex"
  4362. :style="{
  4363. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4364. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4365. }"
  4366. class="worksDetailBox"
  4367. v-if="
  4368. worksStudent.length &&
  4369. worksStudent[toolIndex].length > 0
  4370. "
  4371. >
  4372. <div
  4373. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4374. :key="wIndex"
  4375. class="isWorksName2"
  4376. @click="
  4377. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4378. "
  4379. >
  4380. {{ w.sName }}
  4381. <img
  4382. class="deleteImg deleteImg2"
  4383. src="../../assets/deleteworks.png"
  4384. v-if="
  4385. w.userid == userid || tType == 1 || tType == 4
  4386. "
  4387. @click.stop="deleteWorks(w.wid)"
  4388. alt
  4389. />
  4390. </div>
  4391. <!-- <div class="works" style="
  4392. width: 200px;
  4393. height: 140px;
  4394. border-radius: 10px;
  4395. box-shadow: 0 0 6px 1px #dfdada;
  4396. overflow: hidden;
  4397. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  4398. <div class="workImg">
  4399. <img src="../../assets/icon/works/noImg.png" @click="
  4400. openTools(
  4401. 4,
  4402. toolIndex,
  4403. taskCount,
  4404. w.works,
  4405. w.sName
  4406. )
  4407. " alt />
  4408. </div>
  4409. <div class="worksName">
  4410. <div>{{ w.sName }}</div>
  4411. <div>{{ w.time }}</div>
  4412. </div>
  4413. </div> -->
  4414. </div>
  4415. </div>
  4416. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4417. 未提交
  4418. </div>
  4419. <div
  4420. class="noWorksS"
  4421. v-if="noWorksS && noWorksS[toolIndex].length"
  4422. >
  4423. <div
  4424. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4425. :key="sIndex"
  4426. class="noWorksName"
  4427. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4428. >
  4429. <el-tooltip effect="dark" :content="s.student" placement="top">
  4430. <span>{{ s.student }}</span>
  4431. </el-tooltip>
  4432. </div>
  4433. </div>
  4434. </div>
  4435. <div
  4436. v-if="
  4437. tType &&
  4438. ((tType == 2 && sIsOpen == true) ||
  4439. tType == 1 ||
  4440. tType == 4) &&
  4441. tool.tool.indexOf(45) != -1 &&
  4442. (tool.testJson.testJson[0].answer ||
  4443. tool.testJson.testJson[0].answer === 0) &&
  4444. checkJson[toolIndex].length
  4445. "
  4446. class="xuan_right_box"
  4447. >
  4448. <div
  4449. class="tool_right_box"
  4450. v-for="(item, index) in tool.testJson.testJson"
  4451. :key="index"
  4452. >
  4453. <div class="right_box_xuan" style="margin-right: 10px">
  4454. <span>正确率</span>
  4455. <span>{{
  4456. (checkJson[toolIndex][index].right
  4457. ? checkJson[toolIndex][index].right
  4458. : 0) + "%"
  4459. }}</span>
  4460. </div>
  4461. <div style="width: calc(100% - 30px);">
  4462. <el-tooltip
  4463. effect="light"
  4464. :content="index + 1 + '、' + item.teststitle"
  4465. placement="top"
  4466. popper-class="text_tooltip"
  4467. >
  4468. <div
  4469. style="
  4470. width: calc(100% - 130px);
  4471. display: flex;
  4472. white-space: nowrap;
  4473. overflow: hidden;
  4474. text-overflow: ellipsis;
  4475. word-break: break-word;
  4476. cursor: pointer;
  4477. "
  4478. class="renderedFor"
  4479. >
  4480. {{ index + 1 + "、" }} <span v-html="renderedFormula(item.teststitle)"></span>
  4481. </div>
  4482. </el-tooltip>
  4483. </div>
  4484. </div>
  4485. </div>
  4486. <div
  4487. class="xuan_right_box"
  4488. style="background: unset; padding: 0 10px; width: 91.5%"
  4489. v-if="
  4490. tType &&
  4491. ((tType == 2 && sIsOpen == true) ||
  4492. tType == 1 ||
  4493. tType == 4) &&
  4494. tool.tool.indexOf(45) != -1
  4495. "
  4496. >
  4497. <AskStatic2
  4498. v-if="
  4499. worksStudent.length &&
  4500. worksStudent[toolIndex].length > 0
  4501. "
  4502. :askJSON="tool"
  4503. :checkJson="checkJson[toolIndex]"
  4504. ></AskStatic2>
  4505. </div>
  4506. <div
  4507. v-if="
  4508. tType &&
  4509. ((tType == 2 && sIsOpen == true) ||
  4510. tType == 1 ||
  4511. tType == 4) &&
  4512. tool.tool.indexOf(45) != -1
  4513. "
  4514. class="worksBox"
  4515. >
  4516. <div
  4517. class="zuoyeYulan"
  4518. v-if="
  4519. worksStudent.length &&
  4520. worksStudent[toolIndex].length > 0
  4521. "
  4522. >
  4523. <div class="worksTop">
  4524. <div>作业预览</div>
  4525. <div
  4526. class="corOpen"
  4527. @click="contract(toolIndex)"
  4528. v-if="
  4529. (isCloseList[toolIndex].isCloseBoolean) &&
  4530. isCloseList[toolIndex].isClose == 0
  4531. "
  4532. >
  4533. 折叠
  4534. </div>
  4535. <div
  4536. class="corOpen"
  4537. @click="contract(toolIndex)"
  4538. v-if="isCloseList[toolIndex].isClose == 1"
  4539. >
  4540. 展开
  4541. </div>
  4542. </div>
  4543. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4544. </div>
  4545. <div>
  4546. <div
  4547. :id="'tool-' + toolIndex"
  4548. :style="{
  4549. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4550. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4551. }"
  4552. class="worksDetailBox"
  4553. v-if="
  4554. worksStudent.length &&
  4555. worksStudent[toolIndex].length > 0
  4556. "
  4557. >
  4558. <div
  4559. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4560. :key="wIndex"
  4561. class="isWorksName2"
  4562. @click="
  4563. openTools(
  4564. 45,
  4565. toolIndex,
  4566. taskCount,
  4567. w.works,
  4568. w.sName
  4569. )
  4570. "
  4571. >
  4572. {{ w.sName }}
  4573. <img
  4574. class="deleteImg deleteImg2"
  4575. src="../../assets/deleteworks.png"
  4576. v-if="
  4577. w.userid == userid || tType == 1 || tType == 4
  4578. "
  4579. @click.stop="deleteWorks(w.wid)"
  4580. alt
  4581. />
  4582. </div>
  4583. </div>
  4584. </div>
  4585. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4586. 未提交
  4587. </div>
  4588. <div
  4589. class="noWorksS"
  4590. v-if="noWorksS && noWorksS[toolIndex].length"
  4591. >
  4592. <div
  4593. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4594. :key="sIndex"
  4595. class="noWorksName"
  4596. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4597. >
  4598. <el-tooltip effect="dark" :content="s.student" placement="top">
  4599. <span>{{ s.student }}</span>
  4600. </el-tooltip>
  4601. </div>
  4602. </div>
  4603. </div>
  4604. <div
  4605. v-if="
  4606. tType &&
  4607. ((tType == 2 && sIsOpen == true) ||
  4608. tType == 1 ||
  4609. tType == 4) &&
  4610. tool.tool.indexOf(69) != -1
  4611. "
  4612. class="worksBox"
  4613. >
  4614. <div
  4615. class="zuoyeYulan"
  4616. v-if="
  4617. worksStudent.length &&
  4618. worksStudent[toolIndex].length > 0
  4619. "
  4620. >
  4621. <div class="worksTop">
  4622. <div>作业预览</div>
  4623. <div
  4624. class="corOpen"
  4625. @click="contract(toolIndex)"
  4626. v-if="
  4627. (isCloseList[toolIndex].isCloseBoolean) &&
  4628. isCloseList[toolIndex].isClose == 0
  4629. "
  4630. >
  4631. 折叠
  4632. </div>
  4633. <div
  4634. class="corOpen"
  4635. @click="contract(toolIndex)"
  4636. v-if="isCloseList[toolIndex].isClose == 1"
  4637. >
  4638. 展开
  4639. </div>
  4640. </div>
  4641. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4642. </div>
  4643. <div>
  4644. <div
  4645. :id="'tool-' + toolIndex"
  4646. :style="{
  4647. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4648. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4649. }"
  4650. class="worksDetailBox"
  4651. v-if="
  4652. worksStudent.length &&
  4653. worksStudent[toolIndex].length > 0
  4654. "
  4655. >
  4656. <div
  4657. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4658. :key="wIndex"
  4659. class="isWorksName2"
  4660. style="width: 160px;height: 65px;line-height: 65px;"
  4661. @click="
  4662. openTools(
  4663. 69,
  4664. toolIndex,
  4665. taskCount,
  4666. w.works,
  4667. w.sName,
  4668. w.wid
  4669. )
  4670. "
  4671. >
  4672. {{ w.sName }}
  4673. <img
  4674. class="deleteImg1"
  4675. src="../../assets/evaEnglish.png"
  4676. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4677. alt
  4678. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4679. />
  4680. <img
  4681. class="deleteImg deleteImg2"
  4682. src="../../assets/deleteworks.png"
  4683. v-if="
  4684. w.userid == userid || tType == 1 || tType == 4
  4685. "
  4686. @click.stop="deleteWorks(w.wid)"
  4687. alt
  4688. />
  4689. </div>
  4690. </div>
  4691. </div>
  4692. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4693. 未提交
  4694. </div>
  4695. <div
  4696. class="noWorksS"
  4697. v-if="noWorksS && noWorksS[toolIndex].length"
  4698. >
  4699. <div
  4700. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4701. :key="sIndex"
  4702. class="noWorksName"
  4703. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4704. >
  4705. <el-tooltip effect="dark" :content="s.student" placement="top">
  4706. <span>{{ s.student }}</span>
  4707. </el-tooltip>
  4708. </div>
  4709. </div>
  4710. </div>
  4711. <div
  4712. v-if="
  4713. tType &&
  4714. ((tType == 2 && sIsOpen == true) ||
  4715. tType == 1 ||
  4716. tType == 4) &&
  4717. tool.tool.indexOf(15) != -1
  4718. "
  4719. class="worksBox"
  4720. >
  4721. <div
  4722. class="zuoyeYulan"
  4723. v-if="
  4724. (worksStudent.length &&
  4725. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4726. "
  4727. >
  4728. <div class="worksTop">
  4729. <div>作业预览</div>
  4730. <div
  4731. class="corOpen"
  4732. @click="contract(toolIndex)"
  4733. v-if="
  4734. (isCloseList[toolIndex].isCloseBoolean) &&
  4735. isCloseList[toolIndex].isClose == 0
  4736. "
  4737. >
  4738. 折叠
  4739. </div>
  4740. <div
  4741. class="corOpen"
  4742. @click="contract(toolIndex)"
  4743. v-if="isCloseList[toolIndex].isClose == 1"
  4744. >
  4745. 展开
  4746. </div>
  4747. </div>
  4748. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4749. </div>
  4750. <div
  4751. class="group_workBox"
  4752. v-for="(g, gindex) in courseGroup.group"
  4753. :key="gindex"
  4754. >
  4755. <div class="group_box">
  4756. <div class="group_title">
  4757. <el-tooltip
  4758. class="item"
  4759. effect="light"
  4760. :content="g.name"
  4761. placement="top"
  4762. >
  4763. <div class="group_name">{{ g.name }}</div>
  4764. </el-tooltip>
  4765. </div>
  4766. <div
  4767. class="group_work"
  4768. v-if="
  4769. g.works &&
  4770. g.works.length &&
  4771. g.works[toolIndex].length
  4772. "
  4773. >
  4774. <div
  4775. class="works"
  4776. v-for="(w, wIndex) in g.works[toolIndex]"
  4777. :key="wIndex"
  4778. >
  4779. <div
  4780. class="workImg"
  4781. style="
  4782. border-radius: 15px;
  4783. box-shadow: 0px 0px 5px 5px #eee;
  4784. "
  4785. >
  4786. <div
  4787. class="answerBg"
  4788. style="border-radius: 15px 15px 0 0"
  4789. @click="
  4790. commentOther(w, toolIndex, wIndex, null, g.id)
  4791. "
  4792. >
  4793. <div class="answerContent">
  4794. {{ JSON.parse(w.works)[0].answer }}
  4795. </div>
  4796. <div
  4797. class="answerScore"
  4798. v-if="w.score"
  4799. @click.stop="openScore(w)"
  4800. :class="{
  4801. rightW:
  4802. w.userid == userid ||
  4803. tType == 1 ||
  4804. tType == 4,
  4805. }"
  4806. >
  4807. {{ JSON.parse(w.score).wScore }}分
  4808. </div>
  4809. <div
  4810. class="answerScore"
  4811. @click.stop="openScore(w)"
  4812. v-else-if="courseDetail.userid == userid"
  4813. :class="{
  4814. rightW:
  4815. w.userid == userid ||
  4816. tType == 1 ||
  4817. tType == 4,
  4818. }"
  4819. >
  4820. 评分
  4821. </div>
  4822. <img
  4823. class="deleteImg"
  4824. src="../../assets/deleteworks.png"
  4825. v-if="
  4826. w.userid == userid ||
  4827. tType == 1 ||
  4828. tType == 4
  4829. "
  4830. @click.stop="deleteWorks(w.wid)"
  4831. alt
  4832. />
  4833. </div>
  4834. <div class="comment">
  4835. <div class="worksName">
  4836. <div>{{ w.sName }}</div>
  4837. </div>
  4838. <div class="commentList">
  4839. <div
  4840. class="commentImg"
  4841. @click="
  4842. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4843. "
  4844. >
  4845. <img
  4846. :src="w.isLikes == true ? likes : noLikes"
  4847. alt=""
  4848. />
  4849. </div>
  4850. <div>{{ w.likesCount }}</div>
  4851. </div>
  4852. <div
  4853. class="commentList"
  4854. style="margin-right: 15px"
  4855. >
  4856. <div
  4857. class="commentImg"
  4858. @click="
  4859. commentOther(
  4860. w,
  4861. toolIndex,
  4862. wIndex,
  4863. null,
  4864. g.id
  4865. )
  4866. "
  4867. >
  4868. <img
  4869. src="../../assets/icon/comment/comment.png"
  4870. alt=""
  4871. />
  4872. </div>
  4873. <div>{{ w.commentCount }}</div>
  4874. </div>
  4875. </div>
  4876. </div>
  4877. </div>
  4878. </div>
  4879. <div class="group_work" v-else>暂无提交作业</div>
  4880. </div>
  4881. </div>
  4882. <div
  4883. :id="'tool-' + toolIndex"
  4884. :style="{
  4885. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4886. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4887. }"
  4888. class="worksDetailBox"
  4889. v-if="
  4890. worksStudent.length &&
  4891. worksStudent[toolIndex].length > 0
  4892. "
  4893. >
  4894. <div
  4895. class="works"
  4896. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4897. :key="wIndex"
  4898. >
  4899. <div
  4900. class="workImg"
  4901. style="
  4902. border-radius: 15px;
  4903. box-shadow: 0px 0px 5px 5px #eee;
  4904. "
  4905. >
  4906. <!-- <img
  4907. src="../../assets/icon/works/noImg.png"
  4908. @click="openTools(15, toolIndex, taskCount, w.works)"
  4909. alt=""
  4910. />-->
  4911. <div
  4912. class="answerBg"
  4913. style="border-radius: 15px 15px 0 0"
  4914. @click="commentOther(w, toolIndex, wIndex)"
  4915. >
  4916. <!-- <div>{{ w.sName }}</div> -->
  4917. <div class="answerContent">
  4918. {{ JSON.parse(w.works)[0].answer }}
  4919. </div>
  4920. <div
  4921. class="answerScore"
  4922. v-if="w.score"
  4923. @click.stop="openScore(w)"
  4924. :class="{
  4925. rightW:
  4926. w.userid == userid ||
  4927. tType == 1 ||
  4928. tType == 4,
  4929. }"
  4930. >
  4931. {{ JSON.parse(w.score).wScore }}分
  4932. </div>
  4933. <div
  4934. class="answerScore"
  4935. @click.stop="openScore(w)"
  4936. v-else-if="courseDetail.userid == userid"
  4937. :class="{
  4938. rightW:
  4939. w.userid == userid ||
  4940. tType == 1 ||
  4941. tType == 4,
  4942. }"
  4943. >
  4944. 评分
  4945. </div>
  4946. <img
  4947. class="deleteImg"
  4948. src="../../assets/deleteworks.png"
  4949. v-if="
  4950. w.userid == userid || tType == 1 || tType == 4
  4951. "
  4952. @click.stop="deleteWorks(w.wid)"
  4953. alt
  4954. />
  4955. </div>
  4956. <div class="comment">
  4957. <div class="worksName">
  4958. <div>{{ w.sName }}</div>
  4959. </div>
  4960. <div class="commentList">
  4961. <div
  4962. class="commentImg"
  4963. @click="
  4964. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4965. "
  4966. >
  4967. <img
  4968. :src="w.isLikes == true ? likes : noLikes"
  4969. alt=""
  4970. />
  4971. </div>
  4972. <div>{{ w.likesCount }}</div>
  4973. </div>
  4974. <div class="commentList" style="margin-right: 15px">
  4975. <div
  4976. class="commentImg"
  4977. @click="commentOther(w, toolIndex, wIndex)"
  4978. >
  4979. <img
  4980. src="../../assets/icon/comment/comment.png"
  4981. alt=""
  4982. />
  4983. </div>
  4984. <div>{{ w.commentCount }}</div>
  4985. </div>
  4986. </div>
  4987. </div>
  4988. </div>
  4989. </div>
  4990. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4991. 未提交
  4992. </div>
  4993. <div
  4994. class="noWorksS"
  4995. v-if="noWorksS && noWorksS[toolIndex].length"
  4996. >
  4997. <div
  4998. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4999. :key="sIndex"
  5000. class="noWorksName"
  5001. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  5002. >
  5003. <el-tooltip effect="dark" :content="s.student" placement="top">
  5004. <span>{{ s.student }}</span>
  5005. </el-tooltip>
  5006. </div>
  5007. </div>
  5008. </div>
  5009. <div
  5010. v-if="
  5011. tType &&
  5012. ((tType == 2 && sIsOpen == true) ||
  5013. tType == 1 ||
  5014. tType == 4) &&
  5015. tool.tool.indexOf(1) != -1
  5016. "
  5017. class="worksBox"
  5018. >
  5019. <div
  5020. class="zuoyeYulan"
  5021. v-if="
  5022. (worksStudent.length &&
  5023. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5024. "
  5025. >
  5026. <div class="worksTop">
  5027. <div>作业预览</div>
  5028. <div
  5029. class="corOpen"
  5030. @click="contract(toolIndex)"
  5031. v-if="
  5032. (isCloseList[toolIndex].isCloseBoolean) &&
  5033. isCloseList[toolIndex].isClose == 0
  5034. "
  5035. >
  5036. 折叠
  5037. </div>
  5038. <div
  5039. class="corOpen"
  5040. @click="contract(toolIndex)"
  5041. v-if="isCloseList[toolIndex].isClose == 1"
  5042. >
  5043. 展开
  5044. </div>
  5045. </div>
  5046. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5047. </div>
  5048. <div
  5049. class="group_workBox"
  5050. v-for="(g, gindex) in courseGroup.group"
  5051. :key="gindex"
  5052. >
  5053. <div class="group_box">
  5054. <div class="group_title">
  5055. <el-tooltip
  5056. class="item"
  5057. effect="light"
  5058. :content="g.name"
  5059. placement="top"
  5060. >
  5061. <div class="group_name">{{ g.name }}</div>
  5062. </el-tooltip>
  5063. </div>
  5064. <div
  5065. class="group_work"
  5066. v-if="
  5067. g.works &&
  5068. g.works.length &&
  5069. g.works[toolIndex].length
  5070. "
  5071. >
  5072. <div
  5073. class="works"
  5074. style="
  5075. width: 200px;
  5076. height: 140px;
  5077. margin: 10px 10px 10px 0;
  5078. border-radius: 15px;
  5079. box-shadow: 0 0 6px 1px #dfdada;
  5080. "
  5081. v-for="(w, wIndex) in g.works[toolIndex]"
  5082. :key="wIndex"
  5083. :class="w.type == 1 ? 'isTypeOne' : ''"
  5084. >
  5085. <div class="workImg">
  5086. <img
  5087. :src="w.works"
  5088. @click="previewImg(w.works,w)"
  5089. alt
  5090. />
  5091. <div
  5092. class="answerScore"
  5093. v-if="w.score"
  5094. @click.stop="openScore(w)"
  5095. :class="{
  5096. rightW:
  5097. w.userid == userid ||
  5098. tType == 1 ||
  5099. tType == 4,
  5100. }"
  5101. >
  5102. {{ JSON.parse(w.score).wScore }}分
  5103. </div>
  5104. <div
  5105. class="answerScore"
  5106. @click.stop="openScore(w)"
  5107. v-else-if="courseDetail.userid == userid"
  5108. :class="{
  5109. rightW:
  5110. w.userid == userid ||
  5111. tType == 1 ||
  5112. tType == 4,
  5113. }"
  5114. >
  5115. 评分
  5116. </div>
  5117. <img
  5118. class="deleteImg"
  5119. src="../../assets/deleteworks.png"
  5120. v-if="
  5121. w.userid == userid || tType == 1 || tType == 4
  5122. "
  5123. @click.stop="deleteWorks(w.wid)"
  5124. alt
  5125. />
  5126. </div>
  5127. <div class="comment" style="min-width: 200px">
  5128. <div class="worksName">
  5129. <div>{{ w.sName }}</div>
  5130. </div>
  5131. <div class="commentList">
  5132. <div class="commentList">
  5133. <div
  5134. class="commentImg"
  5135. @click="
  5136. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5137. "
  5138. >
  5139. <img
  5140. :src="w.isLikes == true ? likes : noLikes"
  5141. alt=""
  5142. />
  5143. </div>
  5144. <div>{{ w.likesCount }}</div>
  5145. </div>
  5146. <div
  5147. class="commentList"
  5148. style="margin-right: 15px"
  5149. >
  5150. <div
  5151. class="commentImg"
  5152. @click="
  5153. commentOther(
  5154. w,
  5155. toolIndex,
  5156. wIndex,
  5157. null,
  5158. g.id
  5159. )
  5160. "
  5161. >
  5162. <img
  5163. src="../../assets/icon/comment/comment.png"
  5164. alt=""
  5165. />
  5166. </div>
  5167. <div>{{ w.commentCount }}</div>
  5168. </div>
  5169. </div>
  5170. </div>
  5171. </div>
  5172. </div>
  5173. <div class="group_work" v-else>暂无提交作业</div>
  5174. </div>
  5175. </div>
  5176. <div
  5177. :id="'tool-' + toolIndex"
  5178. :style="{
  5179. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5180. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5181. }"
  5182. class="worksDetailBox"
  5183. v-if="
  5184. worksStudent.length &&
  5185. worksStudent[toolIndex].length > 0
  5186. "
  5187. >
  5188. <div
  5189. class="works"
  5190. style="
  5191. width: 200px;
  5192. height: 140px;
  5193. margin: 10px 10px 10px 0;
  5194. border-radius: 15px;
  5195. box-shadow: 0 0 6px 1px #dfdada;
  5196. "
  5197. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5198. :key="wIndex"
  5199. >
  5200. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  5201. <div class="workImg">
  5202. <img
  5203. :src="w.works"
  5204. @click="previewImg(w.works,w)"
  5205. alt
  5206. />
  5207. <div
  5208. class="answerScore"
  5209. v-if="w.score"
  5210. @click.stop="openScore(w)"
  5211. :class="{
  5212. rightW:
  5213. w.userid == userid || tType == 1 || tType == 4,
  5214. }"
  5215. >
  5216. {{ JSON.parse(w.score).wScore }}分
  5217. </div>
  5218. <div
  5219. class="answerScore"
  5220. @click.stop="openScore(w)"
  5221. v-else-if="courseDetail.userid == userid"
  5222. :class="{
  5223. rightW:
  5224. w.userid == userid || tType == 1 || tType == 4,
  5225. }"
  5226. >
  5227. 评分
  5228. </div>
  5229. <img
  5230. class="deleteImg"
  5231. src="../../assets/deleteworks.png"
  5232. v-if="
  5233. w.userid == userid || tType == 1 || tType == 4
  5234. "
  5235. @click.stop="deleteWorks(w.wid)"
  5236. alt
  5237. />
  5238. </div>
  5239. <div class="comment" style="min-width: 200px">
  5240. <div class="worksName">
  5241. <div>{{ w.sName }}</div>
  5242. </div>
  5243. <div class="commentList">
  5244. <div class="commentList">
  5245. <div
  5246. class="commentImg"
  5247. @click="
  5248. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5249. "
  5250. >
  5251. <img
  5252. :src="w.isLikes == true ? likes : noLikes"
  5253. alt=""
  5254. />
  5255. </div>
  5256. <div>{{ w.likesCount }}</div>
  5257. </div>
  5258. <div class="commentList" style="margin-right: 15px">
  5259. <div
  5260. class="commentImg"
  5261. @click="commentOther(w, toolIndex, wIndex)"
  5262. >
  5263. <img
  5264. src="../../assets/icon/comment/comment.png"
  5265. alt=""
  5266. />
  5267. </div>
  5268. <div>{{ w.commentCount }}</div>
  5269. </div>
  5270. </div>
  5271. </div>
  5272. </div>
  5273. </div>
  5274. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5275. 未提交
  5276. </div>
  5277. <div
  5278. class="noWorksS"
  5279. v-if="noWorksS && noWorksS[toolIndex].length"
  5280. >
  5281. <div
  5282. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5283. :key="sIndex"
  5284. class="noWorksName"
  5285. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  5286. >
  5287. <el-tooltip effect="dark" :content="s.student" placement="top">
  5288. <span>{{ s.student }}</span>
  5289. </el-tooltip>
  5290. </div>
  5291. </div>
  5292. </div>
  5293. <div
  5294. v-if="
  5295. tType &&
  5296. ((tType == 2 && sIsOpen == true) ||
  5297. tType == 1 ||
  5298. tType == 4) &&
  5299. tool.tool.indexOf(3) != -1
  5300. "
  5301. class="worksBox"
  5302. >
  5303. <div
  5304. class="zuoyeYulan"
  5305. v-if="
  5306. (worksStudent.length &&
  5307. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5308. "
  5309. >
  5310. <div class="worksTop">
  5311. <div>作业预览</div>
  5312. <div
  5313. class="corOpen"
  5314. @click="contract(toolIndex)"
  5315. v-if="
  5316. (isCloseList[toolIndex].isCloseBoolean) &&
  5317. isCloseList[toolIndex].isClose == 0
  5318. "
  5319. >
  5320. 折叠
  5321. </div>
  5322. <div
  5323. class="corOpen"
  5324. @click="contract(toolIndex)"
  5325. v-if="isCloseList[toolIndex].isClose == 1"
  5326. >
  5327. 展开
  5328. </div>
  5329. </div>
  5330. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5331. </div>
  5332. <div
  5333. class="group_workBox"
  5334. v-for="(g, gindex) in courseGroup.group"
  5335. :key="gindex"
  5336. >
  5337. <div class="group_box">
  5338. <div class="group_title">
  5339. <el-tooltip
  5340. class="item"
  5341. effect="light"
  5342. :content="g.name"
  5343. placement="top"
  5344. >
  5345. <div class="group_name">{{ g.name }}</div>
  5346. </el-tooltip>
  5347. </div>
  5348. <div
  5349. class="group_work"
  5350. v-if="
  5351. g.works &&
  5352. g.works.length &&
  5353. g.works[toolIndex].length
  5354. "
  5355. >
  5356. <div
  5357. class="works"
  5358. style="
  5359. width: 200px;
  5360. height: 140px;
  5361. margin: 10px 10px 10px 0;
  5362. border-radius: 15px;
  5363. box-shadow: 0 0 6px 1px #dfdada;
  5364. "
  5365. v-for="(w, wIndex) in g.works[toolIndex]"
  5366. :key="wIndex"
  5367. :class="w.type == 1 ? 'isTypeOne' : ''"
  5368. >
  5369. <div class="workImg">
  5370. <img
  5371. :src="w.works"
  5372. @click="previewImg(w.works,w)"
  5373. alt
  5374. />
  5375. <div
  5376. class="answerScore"
  5377. v-if="w.score"
  5378. @click.stop="openScore(w)"
  5379. :class="{
  5380. rightW:
  5381. w.userid == userid ||
  5382. tType == 1 ||
  5383. tType == 4,
  5384. }"
  5385. >
  5386. {{ JSON.parse(w.score).wScore }}分
  5387. </div>
  5388. <div
  5389. class="answerScore"
  5390. @click.stop="openScore(w)"
  5391. v-else-if="courseDetail.userid == userid"
  5392. :class="{
  5393. rightW:
  5394. w.userid == userid ||
  5395. tType == 1 ||
  5396. tType == 4,
  5397. }"
  5398. >
  5399. 评分
  5400. </div>
  5401. <img
  5402. class="deleteImg"
  5403. src="../../assets/deleteworks.png"
  5404. v-if="
  5405. w.userid == userid || tType == 1 || tType == 4
  5406. "
  5407. @click.stop="deleteWorks(w.wid)"
  5408. alt
  5409. />
  5410. </div>
  5411. <div class="comment" style="min-width: 200px">
  5412. <div class="worksName">
  5413. <div>{{ w.sName }}</div>
  5414. </div>
  5415. <div class="commentList">
  5416. <div class="commentList">
  5417. <div
  5418. class="commentImg"
  5419. @click="
  5420. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5421. "
  5422. >
  5423. <img
  5424. :src="w.isLikes == true ? likes : noLikes"
  5425. alt=""
  5426. />
  5427. </div>
  5428. <div>{{ w.likesCount }}</div>
  5429. </div>
  5430. <div
  5431. class="commentList"
  5432. style="margin-right: 15px"
  5433. >
  5434. <div
  5435. class="commentImg"
  5436. @click="
  5437. commentOther(
  5438. w,
  5439. toolIndex,
  5440. wIndex,
  5441. null,
  5442. g.id
  5443. )
  5444. "
  5445. >
  5446. <img
  5447. src="../../assets/icon/comment/comment.png"
  5448. alt=""
  5449. />
  5450. </div>
  5451. <div>{{ w.commentCount }}</div>
  5452. </div>
  5453. </div>
  5454. </div>
  5455. </div>
  5456. </div>
  5457. <div class="group_work" v-else>暂无提交作业</div>
  5458. </div>
  5459. </div>
  5460. <div
  5461. :id="'tool-' + toolIndex"
  5462. :style="{
  5463. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5464. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5465. }"
  5466. class="worksDetailBox"
  5467. v-if="
  5468. worksStudent.length &&
  5469. worksStudent[toolIndex].length > 0
  5470. "
  5471. >
  5472. <div
  5473. class="works"
  5474. style="
  5475. width: 200px;
  5476. height: 140px;
  5477. margin: 10px 10px 10px 0;
  5478. border-radius: 15px;
  5479. box-shadow: 0 0 6px 1px #dfdada;
  5480. "
  5481. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5482. :key="wIndex"
  5483. >
  5484. <!-- @click="previewImg(w.works)" -->
  5485. <div class="workImg">
  5486. <img
  5487. :src="w.works"
  5488. @click="previewImg(w.works,w)"
  5489. alt
  5490. />
  5491. <div
  5492. class="answerScore"
  5493. v-if="w.score"
  5494. @click.stop="openScore(w)"
  5495. :class="{
  5496. rightW:
  5497. w.userid == userid || tType == 1 || tType == 4,
  5498. }"
  5499. >
  5500. {{ JSON.parse(w.score).wScore }}分
  5501. </div>
  5502. <div
  5503. class="answerScore"
  5504. @click.stop="openScore(w)"
  5505. v-else-if="courseDetail.userid == userid"
  5506. :class="{
  5507. rightW:
  5508. w.userid == userid || tType == 1 || tType == 4,
  5509. }"
  5510. >
  5511. 评分
  5512. </div>
  5513. <img
  5514. class="deleteImg"
  5515. src="../../assets/deleteworks.png"
  5516. v-if="
  5517. w.userid == userid || tType == 1 || tType == 4
  5518. "
  5519. @click.stop="deleteWorks(w.wid)"
  5520. alt
  5521. />
  5522. </div>
  5523. <div class="comment" style="min-width: 200px">
  5524. <div class="worksName">
  5525. <div>{{ w.sName }}</div>
  5526. </div>
  5527. <div class="commentList">
  5528. <div class="commentList">
  5529. <div
  5530. class="commentImg"
  5531. @click="
  5532. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5533. "
  5534. >
  5535. <img
  5536. :src="w.isLikes == true ? likes : noLikes"
  5537. alt=""
  5538. />
  5539. </div>
  5540. <div>{{ w.likesCount }}</div>
  5541. </div>
  5542. <div class="commentList" style="margin-right: 15px">
  5543. <div
  5544. class="commentImg"
  5545. @click="commentOther(w, toolIndex, wIndex)"
  5546. >
  5547. <img
  5548. src="../../assets/icon/comment/comment.png"
  5549. alt=""
  5550. />
  5551. </div>
  5552. <div>{{ w.commentCount }}</div>
  5553. </div>
  5554. </div>
  5555. </div>
  5556. </div>
  5557. </div>
  5558. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5559. 未提交
  5560. </div>
  5561. <div
  5562. class="noWorksS"
  5563. v-if="noWorksS && noWorksS[toolIndex].length"
  5564. >
  5565. <div
  5566. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5567. :key="sIndex"
  5568. class="noWorksName"
  5569. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5570. >
  5571. <el-tooltip effect="dark" :content="s.student" placement="top">
  5572. <span>{{ s.student }}</span>
  5573. </el-tooltip>
  5574. </div>
  5575. </div>
  5576. </div>
  5577. <div
  5578. v-if="
  5579. tType &&
  5580. ((tType == 2 && sIsOpen == true) ||
  5581. tType == 1 ||
  5582. tType == 4) &&
  5583. tool.tool.indexOf(6) != -1
  5584. "
  5585. class="worksBox"
  5586. >
  5587. <div
  5588. class="zuoyeYulan"
  5589. v-if="
  5590. (worksStudent.length &&
  5591. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5592. "
  5593. >
  5594. <div class="worksTop">
  5595. <div>作业预览</div>
  5596. <div
  5597. class="corOpen"
  5598. @click="contract(toolIndex)"
  5599. v-if="
  5600. (isCloseList[toolIndex].isCloseBoolean) &&
  5601. isCloseList[toolIndex].isClose == 0
  5602. "
  5603. >
  5604. 折叠
  5605. </div>
  5606. <div
  5607. class="corOpen"
  5608. @click="contract(toolIndex)"
  5609. v-if="isCloseList[toolIndex].isClose == 1"
  5610. >
  5611. 展开
  5612. </div>
  5613. </div>
  5614. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5615. </div>
  5616. <div
  5617. class="group_workBox"
  5618. v-for="(g, gindex) in courseGroup.group"
  5619. :key="gindex"
  5620. >
  5621. <div class="group_box">
  5622. <div class="group_title">
  5623. <el-tooltip
  5624. class="item"
  5625. effect="light"
  5626. :content="g.name"
  5627. placement="top"
  5628. >
  5629. <div class="group_name">{{ g.name }}</div>
  5630. </el-tooltip>
  5631. </div>
  5632. <div
  5633. class="group_work"
  5634. v-if="
  5635. g.works &&
  5636. g.works.length &&
  5637. g.works[toolIndex].length
  5638. "
  5639. >
  5640. <div
  5641. class="works"
  5642. style="
  5643. width: 200px;
  5644. height: 140px;
  5645. margin: 10px 10px 10px 0;
  5646. border-radius: 15px;
  5647. box-shadow: 0 0 6px 1px #dfdada;
  5648. "
  5649. v-for="(w, wIndex) in g.works[toolIndex]"
  5650. :key="wIndex"
  5651. :class="w.type == 1 ? 'isTypeOne' : ''"
  5652. >
  5653. <div class="workImg">
  5654. <img
  5655. :src="w.works"
  5656. @click="previewImg(w.works,w)"
  5657. alt
  5658. />
  5659. <div
  5660. class="answerScore"
  5661. v-if="w.score"
  5662. @click.stop="openScore(w)"
  5663. :class="{
  5664. rightW:
  5665. w.userid == userid ||
  5666. tType == 1 ||
  5667. tType == 4,
  5668. }"
  5669. >
  5670. {{ JSON.parse(w.score).wScore }}分
  5671. </div>
  5672. <div
  5673. class="answerScore"
  5674. @click.stop="openScore(w)"
  5675. v-else-if="courseDetail.userid == userid"
  5676. :class="{
  5677. rightW:
  5678. w.userid == userid ||
  5679. tType == 1 ||
  5680. tType == 4,
  5681. }"
  5682. >
  5683. 评分
  5684. </div>
  5685. <img
  5686. class="deleteImg"
  5687. src="../../assets/deleteworks.png"
  5688. v-if="
  5689. w.userid == userid || tType == 1 || tType == 4
  5690. "
  5691. @click.stop="deleteWorks(w.wid)"
  5692. alt
  5693. />
  5694. </div>
  5695. <div class="comment" style="min-width: 200px">
  5696. <div class="worksName">
  5697. <div>{{ w.sName }}</div>
  5698. </div>
  5699. <div class="commentList">
  5700. <div class="commentList">
  5701. <div
  5702. class="commentImg"
  5703. @click="
  5704. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5705. "
  5706. >
  5707. <img
  5708. :src="w.isLikes == true ? likes : noLikes"
  5709. alt=""
  5710. />
  5711. </div>
  5712. <div>{{ w.likesCount }}</div>
  5713. </div>
  5714. <div
  5715. class="commentList"
  5716. style="margin-right: 15px"
  5717. >
  5718. <div
  5719. class="commentImg"
  5720. @click="
  5721. commentOther(
  5722. w,
  5723. toolIndex,
  5724. wIndex,
  5725. null,
  5726. g.id
  5727. )
  5728. "
  5729. >
  5730. <img
  5731. src="../../assets/icon/comment/comment.png"
  5732. alt=""
  5733. />
  5734. </div>
  5735. <div>{{ w.commentCount }}</div>
  5736. </div>
  5737. </div>
  5738. </div>
  5739. </div>
  5740. </div>
  5741. <div class="group_work" v-else>暂无提交作业</div>
  5742. </div>
  5743. </div>
  5744. <div
  5745. :id="'tool-' + toolIndex"
  5746. :style="{
  5747. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5748. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5749. }"
  5750. class="worksDetailBox"
  5751. v-if="
  5752. worksStudent.length &&
  5753. worksStudent[toolIndex].length > 0
  5754. "
  5755. >
  5756. <div
  5757. class="works"
  5758. style="
  5759. width: 200px;
  5760. height: 140px;
  5761. margin: 10px 10px 10px 0;
  5762. border-radius: 15px;
  5763. box-shadow: 0 0 6px 1px #dfdada;
  5764. "
  5765. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5766. :key="wIndex"
  5767. >
  5768. <!-- @click="previewImg(w.works)" -->
  5769. <div class="workImg">
  5770. <img
  5771. :src="w.works"
  5772. @click="previewImg(w.works,w)"
  5773. alt
  5774. />
  5775. <div
  5776. class="answerScore"
  5777. v-if="w.score"
  5778. @click.stop="openScore(w)"
  5779. :class="{
  5780. rightW:
  5781. w.userid == userid || tType == 1 || tType == 4,
  5782. }"
  5783. >
  5784. {{ JSON.parse(w.score).wScore }}分
  5785. </div>
  5786. <div
  5787. class="answerScore"
  5788. @click.stop="openScore(w)"
  5789. v-else-if="courseDetail.userid == userid"
  5790. :class="{
  5791. rightW:
  5792. w.userid == userid || tType == 1 || tType == 4,
  5793. }"
  5794. >
  5795. 评分
  5796. </div>
  5797. <img
  5798. class="deleteImg"
  5799. src="../../assets/deleteworks.png"
  5800. v-if="
  5801. w.userid == userid || tType == 1 || tType == 4
  5802. "
  5803. @click.stop="deleteWorks(w.wid)"
  5804. alt
  5805. />
  5806. </div>
  5807. <div class="comment" style="min-width: 200px">
  5808. <div class="worksName">
  5809. <div>{{ w.sName }}</div>
  5810. </div>
  5811. <div class="commentList">
  5812. <div class="commentList">
  5813. <div
  5814. class="commentImg"
  5815. @click="
  5816. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5817. "
  5818. >
  5819. <img
  5820. :src="w.isLikes == true ? likes : noLikes"
  5821. alt=""
  5822. />
  5823. </div>
  5824. <div>{{ w.likesCount }}</div>
  5825. </div>
  5826. <div class="commentList" style="margin-right: 15px">
  5827. <div
  5828. class="commentImg"
  5829. @click="commentOther(w, toolIndex, wIndex)"
  5830. >
  5831. <img
  5832. src="../../assets/icon/comment/comment.png"
  5833. alt=""
  5834. />
  5835. </div>
  5836. <div>{{ w.commentCount }}</div>
  5837. </div>
  5838. </div>
  5839. </div>
  5840. </div>
  5841. </div>
  5842. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5843. 未提交
  5844. </div>
  5845. <div
  5846. class="noWorksS"
  5847. v-if="noWorksS && noWorksS[toolIndex].length"
  5848. >
  5849. <div
  5850. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5851. :key="sIndex"
  5852. class="noWorksName"
  5853. >
  5854. <el-tooltip effect="dark" :content="s.student" placement="top">
  5855. <span>{{ s.student }}</span>
  5856. </el-tooltip>
  5857. </div>
  5858. </div>
  5859. </div>
  5860. <div
  5861. v-if="
  5862. tType &&
  5863. ((tType == 2 && sIsOpen == true) ||
  5864. tType == 1 ||
  5865. tType == 4) &&
  5866. tool.tool.indexOf(7) != -1
  5867. "
  5868. class="worksBox"
  5869. >
  5870. <div
  5871. class="zuoyeYulan"
  5872. v-if="
  5873. (worksStudent.length &&
  5874. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5875. "
  5876. >
  5877. <div class="worksTop">
  5878. <div>作业预览</div>
  5879. <div
  5880. class="corOpen"
  5881. @click="contract(toolIndex)"
  5882. v-if="
  5883. (isCloseList[toolIndex].isCloseBoolean) &&
  5884. isCloseList[toolIndex].isClose == 0
  5885. "
  5886. >
  5887. 折叠
  5888. </div>
  5889. <div
  5890. class="corOpen"
  5891. @click="contract(toolIndex)"
  5892. v-if="isCloseList[toolIndex].isClose == 1"
  5893. >
  5894. 展开
  5895. </div>
  5896. </div>
  5897. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5898. </div>
  5899. <div
  5900. class="group_workBox"
  5901. v-for="(g, gindex) in courseGroup.group"
  5902. :key="gindex"
  5903. >
  5904. <div class="group_box">
  5905. <div class="group_title">
  5906. <el-tooltip
  5907. class="item"
  5908. effect="light"
  5909. :content="g.name"
  5910. placement="top"
  5911. >
  5912. <div class="group_name">{{ g.name }}</div>
  5913. </el-tooltip>
  5914. </div>
  5915. <div
  5916. class="group_work"
  5917. v-if="
  5918. g.works &&
  5919. g.works.length &&
  5920. g.works[toolIndex].length
  5921. "
  5922. >
  5923. <div
  5924. class="works"
  5925. style="
  5926. width: 200px;
  5927. height: 140px;
  5928. margin: 10px 10px 10px 0;
  5929. border-radius: 15px;
  5930. box-shadow: 0 0 6px 1px #dfdada;
  5931. "
  5932. v-for="(w, wIndex) in g.works[toolIndex]"
  5933. :key="wIndex"
  5934. :class="w.type == 1 ? 'isTypeOne' : ''"
  5935. >
  5936. <div class="workImg">
  5937. <img
  5938. :src="w.works"
  5939. @click="previewImg(w.works,w)"
  5940. alt
  5941. />
  5942. <div
  5943. class="answerScore"
  5944. v-if="w.score"
  5945. @click.stop="openScore(w)"
  5946. :class="{
  5947. rightW:
  5948. w.userid == userid ||
  5949. tType == 1 ||
  5950. tType == 4,
  5951. }"
  5952. >
  5953. {{ JSON.parse(w.score).wScore }}分
  5954. </div>
  5955. <div
  5956. class="answerScore"
  5957. @click.stop="openScore(w)"
  5958. v-else-if="courseDetail.userid == userid"
  5959. :class="{
  5960. rightW:
  5961. w.userid == userid ||
  5962. tType == 1 ||
  5963. tType == 4,
  5964. }"
  5965. >
  5966. 评分
  5967. </div>
  5968. <img
  5969. class="deleteImg"
  5970. src="../../assets/deleteworks.png"
  5971. v-if="
  5972. w.userid == userid || tType == 1 || tType == 4
  5973. "
  5974. @click.stop="deleteWorks(w.wid)"
  5975. alt
  5976. />
  5977. </div>
  5978. <div class="comment" style="min-width: 200px">
  5979. <div class="worksName">
  5980. <div>{{ w.sName }}</div>
  5981. </div>
  5982. <div class="commentList">
  5983. <div class="commentList">
  5984. <div
  5985. class="commentImg"
  5986. @click="
  5987. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5988. "
  5989. >
  5990. <img
  5991. :src="w.isLikes == true ? likes : noLikes"
  5992. alt=""
  5993. />
  5994. </div>
  5995. <div>{{ w.likesCount }}</div>
  5996. </div>
  5997. <div
  5998. class="commentList"
  5999. style="margin-right: 15px"
  6000. >
  6001. <div
  6002. class="commentImg"
  6003. @click="
  6004. commentOther(
  6005. w,
  6006. toolIndex,
  6007. wIndex,
  6008. null,
  6009. g.id
  6010. )
  6011. "
  6012. >
  6013. <img
  6014. src="../../assets/icon/comment/comment.png"
  6015. alt=""
  6016. />
  6017. </div>
  6018. <div>{{ w.commentCount }}</div>
  6019. </div>
  6020. </div>
  6021. </div>
  6022. </div>
  6023. </div>
  6024. <div class="group_work" v-else>暂无提交作业</div>
  6025. </div>
  6026. </div>
  6027. <div
  6028. :id="'tool-' + toolIndex"
  6029. :style="{
  6030. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6031. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6032. }"
  6033. class="worksDetailBox"
  6034. v-if="
  6035. worksStudent.length &&
  6036. worksStudent[toolIndex].length > 0
  6037. "
  6038. >
  6039. <div
  6040. class="works"
  6041. style="
  6042. width: 200px;
  6043. height: 140px;
  6044. margin: 10px 10px 10px 0;
  6045. border-radius: 15px;
  6046. box-shadow: 0 0 6px 1px #dfdada;
  6047. "
  6048. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6049. :key="wIndex"
  6050. >
  6051. <!-- @click="previewImg(w.works)" -->
  6052. <div class="workImg">
  6053. <img
  6054. :src="w.works"
  6055. @click="previewImg(w.works,w)"
  6056. alt
  6057. />
  6058. <div
  6059. class="answerScore"
  6060. v-if="w.score"
  6061. @click.stop="openScore(w)"
  6062. :class="{
  6063. rightW:
  6064. w.userid == userid || tType == 1 || tType == 4,
  6065. }"
  6066. >
  6067. {{ JSON.parse(w.score).wScore }}分
  6068. </div>
  6069. <div
  6070. class="answerScore"
  6071. @click.stop="openScore(w)"
  6072. v-else-if="courseDetail.userid == userid"
  6073. :class="{
  6074. rightW:
  6075. w.userid == userid || tType == 1 || tType == 4,
  6076. }"
  6077. >
  6078. 评分
  6079. </div>
  6080. <img
  6081. class="deleteImg"
  6082. src="../../assets/deleteworks.png"
  6083. v-if="
  6084. w.userid == userid || tType == 1 || tType == 4
  6085. "
  6086. @click.stop="deleteWorks(w.wid)"
  6087. alt
  6088. />
  6089. </div>
  6090. <div class="comment" style="min-width: 200px">
  6091. <div class="worksName">
  6092. <div>{{ w.sName }}</div>
  6093. </div>
  6094. <div class="commentList">
  6095. <div class="commentList">
  6096. <div
  6097. class="commentImg"
  6098. @click="
  6099. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6100. "
  6101. >
  6102. <img
  6103. :src="w.isLikes == true ? likes : noLikes"
  6104. alt=""
  6105. />
  6106. </div>
  6107. <div>{{ w.likesCount }}</div>
  6108. </div>
  6109. <div class="commentList" style="margin-right: 15px">
  6110. <div
  6111. class="commentImg"
  6112. @click="commentOther(w, toolIndex, wIndex)"
  6113. >
  6114. <img
  6115. src="../../assets/icon/comment/comment.png"
  6116. alt=""
  6117. />
  6118. </div>
  6119. <div>{{ w.commentCount }}</div>
  6120. </div>
  6121. </div>
  6122. </div>
  6123. </div>
  6124. </div>
  6125. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6126. 未提交
  6127. </div>
  6128. <div
  6129. class="noWorksS"
  6130. v-if="noWorksS && noWorksS[toolIndex].length"
  6131. >
  6132. <div
  6133. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6134. :key="sIndex"
  6135. class="noWorksName"
  6136. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  6137. >
  6138. <el-tooltip effect="dark" :content="s.student" placement="top">
  6139. <span>{{ s.student }}</span>
  6140. </el-tooltip>
  6141. </div>
  6142. </div>
  6143. </div>
  6144. <div
  6145. v-if="
  6146. tType &&
  6147. ((tType == 2 && sIsOpen == true) ||
  6148. tType == 1 ||
  6149. tType == 4) &&
  6150. tool.tool.indexOf(26) != -1
  6151. "
  6152. class="worksBox"
  6153. >
  6154. <div
  6155. class="zuoyeYulan"
  6156. v-if="
  6157. worksStudent.length &&
  6158. worksStudent[toolIndex].length > 0
  6159. "
  6160. >
  6161. <div class="worksTop">
  6162. <div>作业预览</div>
  6163. <div
  6164. class="corOpen"
  6165. @click="contract(toolIndex)"
  6166. v-if="
  6167. (isCloseList[toolIndex].isCloseBoolean) &&
  6168. isCloseList[toolIndex].isClose == 0
  6169. "
  6170. >
  6171. 折叠
  6172. </div>
  6173. <div
  6174. class="corOpen"
  6175. @click="contract(toolIndex)"
  6176. v-if="isCloseList[toolIndex].isClose == 1"
  6177. >
  6178. 展开
  6179. </div>
  6180. </div>
  6181. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6182. </div>
  6183. <div
  6184. :id="'tool-' + toolIndex"
  6185. :style="{
  6186. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6187. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6188. }"
  6189. class="worksDetailBox"
  6190. v-if="
  6191. worksStudent.length &&
  6192. worksStudent[toolIndex].length > 0
  6193. "
  6194. >
  6195. <div
  6196. class="works"
  6197. style="width: 240px; height: 140px; overflow: hidden"
  6198. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6199. :key="wIndex"
  6200. :class="w.type == 1 ? 'isTypeOne' : ''"
  6201. >
  6202. <div class="workImg" v-if="w.type == 0">
  6203. <img
  6204. :src="w.works"
  6205. @click="previewImg(w.works,w)"
  6206. alt
  6207. />
  6208. <img
  6209. class="deleteImg"
  6210. src="../../assets/deleteworks.png"
  6211. v-if="
  6212. w.userid == userid || tType == 1 || tType == 4
  6213. "
  6214. @click.stop="deleteWorks(w.wid)"
  6215. alt
  6216. />
  6217. </div>
  6218. <div class="workImg" v-if="w.type == 1">
  6219. <img :src="word" @click="openFile(w.works)" alt />
  6220. <img
  6221. class="deleteImg"
  6222. src="../../assets/deleteworks.png"
  6223. v-if="
  6224. w.userid == userid || tType == 1 || tType == 4
  6225. "
  6226. @click.stop="deleteWorks(w.wid)"
  6227. alt
  6228. />
  6229. </div>
  6230. <div class="worksName">
  6231. <div>{{ w.sName }}</div>
  6232. </div>
  6233. </div>
  6234. </div>
  6235. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6236. 未提交
  6237. </div>
  6238. <div
  6239. class="noWorksS"
  6240. v-if="noWorksS && noWorksS[toolIndex].length"
  6241. >
  6242. <div
  6243. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6244. :key="sIndex"
  6245. class="noWorksName"
  6246. >
  6247. <el-tooltip effect="dark" :content="s.student" placement="top">
  6248. <span>{{ s.student }}</span>
  6249. </el-tooltip>
  6250. </div>
  6251. </div>
  6252. </div>
  6253. <div
  6254. v-if="
  6255. tType &&
  6256. ((tType == 2 && sIsOpen == true) ||
  6257. tType == 1 ||
  6258. tType == 4) &&
  6259. tool.tool.indexOf(40) != -1
  6260. "
  6261. class="worksBox"
  6262. >
  6263. <div
  6264. class="zuoyeYulan"
  6265. v-if="
  6266. worksStudent.length &&
  6267. worksStudent[toolIndex].length > 0
  6268. "
  6269. >
  6270. <div class="worksTop">
  6271. <div>作业预览</div>
  6272. <div
  6273. class="corOpen"
  6274. @click="contract(toolIndex)"
  6275. v-if="
  6276. (isCloseList[toolIndex].isCloseBoolean) &&
  6277. isCloseList[toolIndex].isClose == 0
  6278. "
  6279. >
  6280. 折叠
  6281. </div>
  6282. <div
  6283. class="corOpen"
  6284. @click="contract(toolIndex)"
  6285. v-if="isCloseList[toolIndex].isClose == 1"
  6286. >
  6287. 展开
  6288. </div>
  6289. </div>
  6290. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6291. </div>
  6292. <div
  6293. :id="'tool-' + toolIndex"
  6294. :style="{
  6295. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6296. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6297. }"
  6298. class="worksDetailBox"
  6299. v-if="
  6300. worksStudent.length &&
  6301. worksStudent[toolIndex].length > 0
  6302. "
  6303. >
  6304. <div
  6305. class="works"
  6306. style="
  6307. width: 200px;
  6308. height: 140px;
  6309. margin: 10px 10px 10px 0;
  6310. border-radius: 15px;
  6311. box-shadow: 0 0 6px 1px #dfdada;
  6312. "
  6313. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6314. :key="wIndex"
  6315. :class="w.type == 1 ? 'isTypeOne' : ''"
  6316. >
  6317. <div class="workImg">
  6318. <img
  6319. src="../../assets/icon/works/noImg.png"
  6320. @click="openPj(w.works, toolIndex)"
  6321. alt
  6322. />
  6323. <img
  6324. class="deleteImg"
  6325. src="../../assets/deleteworks.png"
  6326. v-if="
  6327. w.userid == userid || tType == 1 || tType == 4
  6328. "
  6329. @click.stop="deleteWorks(w.wid)"
  6330. alt
  6331. />
  6332. </div>
  6333. <div class="comment" style="min-width: 200px">
  6334. <div class="worksName">
  6335. <div>{{ w.sName }}</div>
  6336. </div>
  6337. <div class="commentList">
  6338. <div class="commentList">
  6339. <div
  6340. class="commentImg"
  6341. @click="
  6342. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6343. "
  6344. >
  6345. <img
  6346. :src="w.isLikes == true ? likes : noLikes"
  6347. alt=""
  6348. />
  6349. </div>
  6350. <div>{{ w.likesCount }}</div>
  6351. </div>
  6352. <div class="commentList" style="margin-right: 15px">
  6353. <div
  6354. class="commentImg"
  6355. @click="commentOther(w, toolIndex, wIndex)"
  6356. >
  6357. <img
  6358. src="../../assets/icon/comment/comment.png"
  6359. alt=""
  6360. />
  6361. </div>
  6362. <div>{{ w.commentCount }}</div>
  6363. </div>
  6364. </div>
  6365. </div>
  6366. </div>
  6367. </div>
  6368. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6369. 未提交
  6370. </div>
  6371. <div
  6372. class="noWorksS"
  6373. v-if="noWorksS && noWorksS[toolIndex].length"
  6374. >
  6375. <div
  6376. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6377. :key="sIndex"
  6378. class="noWorksName"
  6379. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  6380. >
  6381. <el-tooltip effect="dark" :content="s.student" placement="top">
  6382. <span>{{ s.student }}</span>
  6383. </el-tooltip>
  6384. </div>
  6385. </div>
  6386. </div>
  6387. <div
  6388. v-if="
  6389. tType &&
  6390. tType == 2 &&
  6391. !sIsOpen &&
  6392. tool.tool.indexOf(40) != -1
  6393. "
  6394. class="worksBox"
  6395. >
  6396. <div
  6397. class="zuoyeYulan"
  6398. v-if="workStudent[toolIndex].length > 0"
  6399. >
  6400. <span class="worksTitle">作业预览</span>
  6401. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6402. </div>
  6403. <div
  6404. class="worksDetailBox"
  6405. v-if="workStudent[toolIndex].length > 0"
  6406. >
  6407. <div
  6408. class="works"
  6409. style="
  6410. width: 200px;
  6411. height: 140px;
  6412. margin: 10px 10px 10px 0;
  6413. "
  6414. v-for="(w, wIndex) in workStudent[toolIndex]"
  6415. :key="wIndex"
  6416. >
  6417. <div class="workImg">
  6418. <img
  6419. src="../../assets/icon/works/noImg.png"
  6420. @click="openPj(w.works, toolIndex)"
  6421. alt
  6422. />
  6423. <img
  6424. class="deleteImg"
  6425. src="../../assets/deleteworks.png"
  6426. v-if="
  6427. w.userid == userid || tType == 1 || tType == 4
  6428. "
  6429. @click.stop="deleteWorks(w.wid)"
  6430. alt
  6431. />
  6432. </div>
  6433. <div class="worksName">
  6434. <div>{{ w.sName }}</div>
  6435. </div>
  6436. </div>
  6437. </div>
  6438. </div>
  6439. <div
  6440. v-if="
  6441. tType &&
  6442. ((tType == 2 && sIsOpen == true) ||
  6443. tType == 1 ||
  6444. tType == 4) &&
  6445. tool.tool.indexOf(41) != -1
  6446. "
  6447. >
  6448. <AnswerData2
  6449. v-if="
  6450. worksStudent.length &&
  6451. worksStudent[toolIndex].length > 0
  6452. "
  6453. :problemJson="tool.selectJson.answer"
  6454. :people="worksStudent[toolIndex]"
  6455. ></AnswerData2>
  6456. </div>
  6457. <div
  6458. v-if="
  6459. tType &&
  6460. ((tType == 2 && sIsOpen == true) ||
  6461. tType == 1 ||
  6462. tType == 4) &&
  6463. tool.tool.indexOf(41) != -1
  6464. "
  6465. class="worksBox"
  6466. >
  6467. <div
  6468. class="zuoyeYulan"
  6469. v-if="
  6470. worksStudent.length &&
  6471. worksStudent[toolIndex].length > 0
  6472. "
  6473. >
  6474. <div class="worksTop">
  6475. <div>作业预览</div>
  6476. <div
  6477. class="corOpen"
  6478. @click="contract(toolIndex)"
  6479. v-if="
  6480. (isCloseList[toolIndex].isCloseBoolean) &&
  6481. isCloseList[toolIndex].isClose == 0
  6482. "
  6483. >
  6484. 折叠
  6485. </div>
  6486. <div
  6487. class="corOpen"
  6488. @click="contract(toolIndex)"
  6489. v-if="isCloseList[toolIndex].isClose == 1"
  6490. >
  6491. 展开
  6492. </div>
  6493. </div>
  6494. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6495. </div>
  6496. <div
  6497. :id="'tool-' + toolIndex"
  6498. :style="{
  6499. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6500. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6501. }"
  6502. class="worksDetailBox"
  6503. v-if="
  6504. worksStudent.length &&
  6505. worksStudent[toolIndex].length > 0
  6506. "
  6507. >
  6508. <div
  6509. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6510. :key="wIndex"
  6511. class="isWorksName2"
  6512. @click="openXz(w, toolIndex)"
  6513. >
  6514. {{ w.sName }}
  6515. <img
  6516. class="deleteImg deleteImg2"
  6517. src="../../assets/deleteworks.png"
  6518. v-if="w.userid == userid || tType == 1 || tType == 4"
  6519. @click.stop="deleteWorks(w.wid)"
  6520. alt
  6521. />
  6522. </div>
  6523. <!-- <div
  6524. class="works"
  6525. style="
  6526. width: 200px;
  6527. height: 140px;
  6528. margin: 10px 10px 10px 0;
  6529. border-radius: 15px;
  6530. box-shadow: 0 0 6px 1px #dfdada;
  6531. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6532. :class="w.type == 5 ? 'isTypeOne' : ''">
  6533. <div class="workImg">
  6534. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6535. </div>
  6536. <div class="worksName">
  6537. <div>{{ w.sName }}</div>
  6538. </div>
  6539. </div> -->
  6540. </div>
  6541. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6542. 未提交
  6543. </div>
  6544. <div
  6545. class="noWorksS"
  6546. v-if="noWorksS && noWorksS[toolIndex].length"
  6547. >
  6548. <div
  6549. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6550. :key="sIndex"
  6551. class="noWorksName"
  6552. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6553. >
  6554. <el-tooltip effect="dark" :content="s.student" placement="top">
  6555. <span>{{ s.student }}</span>
  6556. </el-tooltip>
  6557. </div>
  6558. </div>
  6559. </div>
  6560. <div
  6561. v-if="
  6562. tType &&
  6563. tType == 2 &&
  6564. !sIsOpen &&
  6565. tool.tool.indexOf(41) != -1
  6566. "
  6567. class="worksBox"
  6568. >
  6569. <div
  6570. class="zuoyeYulan"
  6571. v-if="workStudent[toolIndex].length > 0"
  6572. >
  6573. <span class="worksTitle">作业预览</span>
  6574. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6575. </div>
  6576. <div
  6577. class="worksDetailBox"
  6578. v-if="workStudent[toolIndex].length > 0"
  6579. >
  6580. <div
  6581. class="works"
  6582. style="
  6583. width: 200px;
  6584. height: 140px;
  6585. margin: 10px 10px 10px 0;
  6586. "
  6587. v-for="(w, wIndex) in workStudent[toolIndex]"
  6588. :key="wIndex"
  6589. >
  6590. <div class="workImg">
  6591. <img
  6592. src="../../assets/icon/works/noImg.png"
  6593. @click="openXz(w, toolIndex)"
  6594. alt
  6595. />
  6596. <img
  6597. class="deleteImg"
  6598. src="../../assets/deleteworks.png"
  6599. v-if="
  6600. w.userid == userid || tType == 1 || tType == 4
  6601. "
  6602. @click.stop="deleteWorks(w.wid)"
  6603. alt
  6604. />
  6605. </div>
  6606. <div class="worksName">
  6607. <div>{{ w.sName }}</div>
  6608. </div>
  6609. </div>
  6610. </div>
  6611. </div>
  6612. <div v-if="false" class="xuan_right_box">
  6613. <div
  6614. class="tool_right_box"
  6615. v-for="(item, index) in tool.sentenceList"
  6616. :key="index"
  6617. >
  6618. <div>
  6619. <span
  6620. style="word-break: break-all; white-space: normal"
  6621. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6622. >
  6623. </div>
  6624. <div class="right_box_xuan">
  6625. <span>正确率</span>
  6626. <span>{{
  6627. (checkJson[toolIndex][index].right
  6628. ? checkJson[toolIndex][index].right
  6629. : 0) + "%"
  6630. }}</span>
  6631. </div>
  6632. <div class="right_box_xuan">
  6633. <span>答对人数</span>
  6634. <span>{{
  6635. checkJson[toolIndex][index].rightPerson.length
  6636. }}</span>
  6637. </div>
  6638. </div>
  6639. </div>
  6640. <div
  6641. v-if="
  6642. tType &&
  6643. ((tType == 2 && sIsOpen == true) ||
  6644. tType == 1 ||
  6645. tType == 4) &&
  6646. tool.tool.indexOf(47) != -1
  6647. "
  6648. >
  6649. <!-- <AnswerData
  6650. v-if="
  6651. checkJson[toolIndex].length &&
  6652. (tool.sentenceList || tool.sentenceList.length > 0)
  6653. "
  6654. :people="checkJson[toolIndex]"
  6655. ></AnswerData> -->
  6656. <sortToolWorkShow v-if="
  6657. worksStudent[toolIndex].length
  6658. "
  6659. :people="worksStudent[toolIndex]"></sortToolWorkShow>
  6660. </div>
  6661. <div
  6662. v-if="
  6663. tType &&
  6664. tType == 2 &&
  6665. !sIsOpen &&
  6666. tool.tool.indexOf(47) != -1
  6667. "
  6668. class="worksBox"
  6669. >
  6670. <div
  6671. class="zuoyeYulan"
  6672. v-if="workStudent[toolIndex].length > 0"
  6673. >
  6674. <span class="worksTitle">作业预览</span>
  6675. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6676. </div>
  6677. <div
  6678. class="worksDetailBox"
  6679. v-if="workStudent[toolIndex].length > 0"
  6680. >
  6681. <div
  6682. class="works"
  6683. style="
  6684. width: 200px;
  6685. height: 140px;
  6686. margin: 10px 10px 10px 0;
  6687. "
  6688. v-for="(w, wIndex) in workStudent[toolIndex]"
  6689. :key="wIndex"
  6690. >
  6691. <!-- @click="openXz(w, toolIndex)" -->
  6692. <div class="workImg" @click="openSen(w, toolIndex)">
  6693. <img src="../../assets/icon/works/noImg.png" alt />
  6694. <img
  6695. class="deleteImg"
  6696. src="../../assets/deleteworks.png"
  6697. v-if="
  6698. w.userid == userid || tType == 1 || tType == 4
  6699. "
  6700. @click.stop="deleteWorks(w.wid)"
  6701. alt
  6702. />
  6703. </div>
  6704. <div class="worksName">
  6705. <div>
  6706. {{ w.sName }}
  6707. </div>
  6708. </div>
  6709. </div>
  6710. </div>
  6711. </div>
  6712. <div
  6713. v-if="
  6714. tType &&
  6715. ((tType == 2 && sIsOpen == true) ||
  6716. tType == 1 ||
  6717. tType == 4) &&
  6718. tool.tool.indexOf(47) != -1
  6719. "
  6720. class="worksBox"
  6721. >
  6722. <div
  6723. class="zuoyeYulan"
  6724. v-if="
  6725. worksStudent.length &&
  6726. worksStudent[toolIndex].length > 0
  6727. "
  6728. >
  6729. <div class="worksTop">
  6730. <div>作业预览</div>
  6731. <div
  6732. class="corOpen"
  6733. @click="contract(toolIndex)"
  6734. v-if="
  6735. (isCloseList[toolIndex].isCloseBoolean) &&
  6736. isCloseList[toolIndex].isClose == 0
  6737. "
  6738. >
  6739. 折叠
  6740. </div>
  6741. <div
  6742. class="corOpen"
  6743. @click="contract(toolIndex)"
  6744. v-if="isCloseList[toolIndex].isClose == 1"
  6745. >
  6746. 展开
  6747. </div>
  6748. </div>
  6749. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6750. </div>
  6751. <div
  6752. :id="'tool-' + toolIndex"
  6753. :style="{
  6754. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6755. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6756. }"
  6757. class="worksDetailBox"
  6758. v-if="
  6759. worksStudent.length &&
  6760. worksStudent[toolIndex].length > 0
  6761. "
  6762. >
  6763. <!-- @click="openXz(w, toolIndex)" -->
  6764. <div
  6765. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6766. :key="wIndex"
  6767. class="isWorksName2"
  6768. @click="openSen(w, toolIndex)"
  6769. >
  6770. {{ w.sName }}
  6771. <img
  6772. class="deleteImg deleteImg2"
  6773. src="../../assets/deleteworks.png"
  6774. v-if="w.userid == userid || tType == 1 || tType == 4"
  6775. @click.stop="deleteWorks(w.wid)"
  6776. alt
  6777. />
  6778. </div>
  6779. </div>
  6780. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6781. 未提交
  6782. </div>
  6783. <div
  6784. class="noWorksS"
  6785. v-if="noWorksS && noWorksS[toolIndex].length"
  6786. >
  6787. <div
  6788. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6789. :key="sIndex"
  6790. class="noWorksName"
  6791. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6792. >
  6793. <el-tooltip effect="dark" :content="s.student" placement="top">
  6794. <span>{{ s.student }}</span>
  6795. </el-tooltip>
  6796. </div>
  6797. </div>
  6798. </div>
  6799. <div
  6800. v-if="
  6801. tType &&
  6802. ((tType == 2 && sIsOpen == true) ||
  6803. tType == 1 ||
  6804. tType == 4) &&
  6805. tool.tool.indexOf(48) != -1
  6806. "
  6807. class="worksBox"
  6808. >
  6809. <div
  6810. class="zuoyeYulan"
  6811. v-if="
  6812. worksStudent.length &&
  6813. worksStudent[toolIndex].length > 0
  6814. "
  6815. >
  6816. <div class="worksTop">
  6817. <div>作业预览</div>
  6818. <div
  6819. class="corOpen"
  6820. @click="contract(toolIndex)"
  6821. v-if="
  6822. (isCloseList[toolIndex].isCloseBoolean) &&
  6823. isCloseList[toolIndex].isClose == 0
  6824. "
  6825. >
  6826. 折叠
  6827. </div>
  6828. <div
  6829. class="corOpen"
  6830. @click="contract(toolIndex)"
  6831. v-if="isCloseList[toolIndex].isClose == 1"
  6832. >
  6833. 展开
  6834. </div>
  6835. </div>
  6836. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6837. </div>
  6838. <div
  6839. :id="'tool-' + toolIndex"
  6840. :style="{
  6841. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6842. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6843. }"
  6844. class="worksDetailBox"
  6845. v-if="
  6846. worksStudent.length &&
  6847. worksStudent[toolIndex].length > 0
  6848. "
  6849. >
  6850. <div
  6851. class="works"
  6852. style="
  6853. width: 200px;
  6854. height: 140px;
  6855. margin: 10px 10px 10px 0;
  6856. border-radius: 15px;
  6857. box-shadow: 0 0 6px 1px #dfdada;
  6858. "
  6859. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6860. :key="wIndex"
  6861. :class="w.type == 1 ? 'isTypeOne' : ''"
  6862. >
  6863. <div class="workImg">
  6864. <img :src="word" @click="openTable(w)" alt />
  6865. <!-- @click="openFile(w.works)" -->
  6866. <div
  6867. class="answerScore"
  6868. v-if="w.score"
  6869. @click.stop="openScore(w)"
  6870. :class="{
  6871. rightW:
  6872. w.userid == userid ||
  6873. tType == 1 ||
  6874. tType == 4 ||
  6875. w.ateacher == userid,
  6876. }"
  6877. >
  6878. {{ JSON.parse(w.score).wScore }}分
  6879. </div>
  6880. <div
  6881. class="answerScore"
  6882. @click.stop="openScore(w)"
  6883. v-else-if="courseDetail.userid == userid"
  6884. :class="{
  6885. rightW:
  6886. w.userid == userid ||
  6887. tType == 1 ||
  6888. tType == 4 ||
  6889. w.ateacher == userid,
  6890. }"
  6891. >
  6892. 评分
  6893. </div>
  6894. <img
  6895. class="deleteImg"
  6896. src="../../assets/deleteworks.png"
  6897. v-if="
  6898. w.userid == userid || tType == 1 || tType == 4
  6899. "
  6900. @click.stop="deleteWorks(w.wid)"
  6901. alt
  6902. />
  6903. </div>
  6904. <div class="comment" style="min-width: 200px">
  6905. <div class="worksName">
  6906. <div>{{ w.sName }}</div>
  6907. </div>
  6908. <div class="commentList">
  6909. <div class="commentList">
  6910. <div
  6911. class="commentImg"
  6912. @click="
  6913. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6914. "
  6915. >
  6916. <img
  6917. :src="w.isLikes == true ? likes : noLikes"
  6918. alt=""
  6919. />
  6920. </div>
  6921. <div>{{ w.likesCount }}</div>
  6922. </div>
  6923. <div class="commentList" style="margin-right: 15px">
  6924. <div
  6925. class="commentImg"
  6926. @click="commentOther(w, toolIndex, wIndex)"
  6927. >
  6928. <img
  6929. src="../../assets/icon/comment/comment.png"
  6930. alt=""
  6931. />
  6932. </div>
  6933. <div>{{ w.commentCount }}</div>
  6934. </div>
  6935. </div>
  6936. </div>
  6937. </div>
  6938. </div>
  6939. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6940. 未提交
  6941. </div>
  6942. <div
  6943. class="noWorksS"
  6944. v-if="noWorksS && noWorksS[toolIndex].length"
  6945. >
  6946. <div
  6947. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6948. :key="sIndex"
  6949. class="noWorksName"
  6950. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6951. >
  6952. <el-tooltip effect="dark" :content="s.student" placement="top">
  6953. <span>{{ s.student }}</span>
  6954. </el-tooltip>
  6955. </div>
  6956. </div>
  6957. </div>
  6958. <div
  6959. v-if="
  6960. tType &&
  6961. tType == 2 &&
  6962. !sIsOpen &&
  6963. tool.tool.indexOf(48) != -1
  6964. "
  6965. class="worksBox"
  6966. >
  6967. <div
  6968. class="zuoyeYulan"
  6969. v-if="workStudent[toolIndex].length > 0"
  6970. >
  6971. <span class="worksTitle">作业预览</span>
  6972. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6973. </div>
  6974. <div
  6975. class="worksDetailBox"
  6976. v-if="workStudent[toolIndex].length > 0"
  6977. >
  6978. <div
  6979. class="works"
  6980. style="
  6981. width: 200px;
  6982. height: 140px;
  6983. margin: 10px 10px 10px 0;
  6984. box-shadow: 0 0 6px 1px #dfdada;
  6985. "
  6986. v-for="(w, wIndex) in workStudent[toolIndex]"
  6987. :key="wIndex"
  6988. >
  6989. <div class="workImg">
  6990. <img :src="word" @click="openTable(w)" alt />
  6991. <div
  6992. class="answerScore"
  6993. v-if="w.score"
  6994. @click.stop="openScore(w)"
  6995. :class="{
  6996. rightW:
  6997. w.userid == userid || tType == 1 || tType == 4,
  6998. }"
  6999. >
  7000. {{ JSON.parse(w.score).wScore }}分
  7001. </div>
  7002. <div
  7003. class="answerScore"
  7004. @click.stop="openScore(w)"
  7005. v-else-if="courseDetail.userid == userid"
  7006. :class="{
  7007. rightW:
  7008. w.userid == userid || tType == 1 || tType == 4,
  7009. }"
  7010. >
  7011. 评分
  7012. </div>
  7013. <img
  7014. class="deleteImg"
  7015. src="../../assets/deleteworks.png"
  7016. v-if="
  7017. w.userid == userid || tType == 1 || tType == 4
  7018. "
  7019. @click.stop="deleteWorks(w.wid)"
  7020. alt
  7021. />
  7022. </div>
  7023. <div class="worksName">
  7024. <div>{{ w.sName }}</div>
  7025. </div>
  7026. </div>
  7027. </div>
  7028. </div>
  7029. <div
  7030. v-if="
  7031. tType &&
  7032. ((tType == 2 && sIsOpen == true) ||
  7033. tType == 1 ||
  7034. tType == 4) &&
  7035. tool.tool.indexOf(52) != -1
  7036. "
  7037. class="worksBox"
  7038. >
  7039. <div
  7040. class="zuoyeYulan"
  7041. v-if="
  7042. worksStudent.length &&
  7043. worksStudent[toolIndex].length > 0
  7044. "
  7045. >
  7046. <div class="worksTop">
  7047. <div>作业预览</div>
  7048. <div
  7049. class="corOpen"
  7050. @click="contract(toolIndex)"
  7051. v-if="
  7052. (isCloseList[toolIndex].isCloseBoolean) &&
  7053. isCloseList[toolIndex].isClose == 0
  7054. "
  7055. >
  7056. 折叠
  7057. </div>
  7058. <div
  7059. class="corOpen"
  7060. @click="contract(toolIndex)"
  7061. v-if="isCloseList[toolIndex].isClose == 1"
  7062. >
  7063. 展开
  7064. </div>
  7065. </div>
  7066. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7067. </div>
  7068. <div
  7069. :id="'tool-' + toolIndex"
  7070. :style="{
  7071. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  7072. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  7073. }"
  7074. class="worksDetailBox"
  7075. v-if="
  7076. worksStudent.length &&
  7077. worksStudent[toolIndex].length > 0
  7078. "
  7079. >
  7080. <div
  7081. class="works"
  7082. style="
  7083. width: 200px;
  7084. height: 140px;
  7085. margin: 10px 10px 10px 0;
  7086. border-radius: 15px;
  7087. box-shadow: 0 0 6px 1px #dfdada;
  7088. "
  7089. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7090. :key="wIndex"
  7091. :class="w.type == 1 ? 'isTypeOne' : ''"
  7092. >
  7093. <div class="workImg">
  7094. <img :src="word" @click="openWord(w)" alt />
  7095. <!-- @click="openFile(w.works)" -->
  7096. <div
  7097. class="answerScore"
  7098. v-if="w.score"
  7099. @click.stop="openScore(w)"
  7100. :class="{
  7101. rightW:
  7102. w.userid == userid ||
  7103. tType == 1 ||
  7104. tType == 4 ||
  7105. w.ateacher == userid,
  7106. }"
  7107. >
  7108. {{ JSON.parse(w.score).wScore }}分
  7109. </div>
  7110. <div
  7111. class="answerScore"
  7112. @click.stop="openScore(w)"
  7113. v-else-if="courseDetail.userid == userid"
  7114. :class="{
  7115. rightW:
  7116. w.userid == userid ||
  7117. tType == 1 ||
  7118. tType == 4 ||
  7119. w.ateacher == userid,
  7120. }"
  7121. >
  7122. 评分
  7123. </div>
  7124. <img
  7125. class="deleteImg"
  7126. src="../../assets/deleteworks.png"
  7127. v-if="
  7128. w.userid == userid || tType == 1 || tType == 4
  7129. "
  7130. @click.stop="deleteWorks(w.wid)"
  7131. alt
  7132. />
  7133. </div>
  7134. <div class="comment" style="min-width: 200px">
  7135. <div class="worksName">
  7136. <div>{{ w.sName }}</div>
  7137. </div>
  7138. <div class="commentList">
  7139. <div class="commentList">
  7140. <div
  7141. class="commentImg"
  7142. @click="
  7143. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  7144. "
  7145. >
  7146. <img
  7147. :src="w.isLikes == true ? likes : noLikes"
  7148. alt=""
  7149. />
  7150. </div>
  7151. <div>{{ w.likesCount }}</div>
  7152. </div>
  7153. <div class="commentList" style="margin-right: 15px">
  7154. <div
  7155. class="commentImg"
  7156. @click="commentOther(w, toolIndex, wIndex)"
  7157. >
  7158. <img
  7159. src="../../assets/icon/comment/comment.png"
  7160. alt=""
  7161. />
  7162. </div>
  7163. <div>{{ w.commentCount }}</div>
  7164. </div>
  7165. </div>
  7166. </div>
  7167. </div>
  7168. </div>
  7169. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7170. 未提交
  7171. </div>
  7172. <div
  7173. class="noWorksS"
  7174. v-if="noWorksS && noWorksS[toolIndex].length"
  7175. >
  7176. <div
  7177. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7178. :key="sIndex"
  7179. class="noWorksName"
  7180. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  7181. >
  7182. <el-tooltip effect="dark" :content="s.student" placement="top">
  7183. <span>{{ s.student }}</span>
  7184. </el-tooltip>
  7185. </div>
  7186. </div>
  7187. </div>
  7188. <div
  7189. v-if="
  7190. tType &&
  7191. tType == 2 &&
  7192. !sIsOpen &&
  7193. tool.tool.indexOf(52) != -1
  7194. "
  7195. class="worksBox"
  7196. >
  7197. <div
  7198. class="zuoyeYulan"
  7199. v-if="workStudent[toolIndex].length > 0"
  7200. >
  7201. <span class="worksTitle">作业预览</span>
  7202. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7203. </div>
  7204. <div
  7205. class="worksDetailBox"
  7206. v-if="workStudent[toolIndex].length > 0"
  7207. >
  7208. <div
  7209. class="works"
  7210. style="
  7211. width: 200px;
  7212. height: 140px;
  7213. margin: 10px 10px 10px 0;
  7214. box-shadow: 0 0 6px 1px #dfdada;
  7215. "
  7216. v-for="(w, wIndex) in workStudent[toolIndex]"
  7217. :key="wIndex"
  7218. >
  7219. <div class="workImg">
  7220. <img :src="word" @click="openWord(w)" alt />
  7221. <div
  7222. class="answerScore"
  7223. v-if="w.score"
  7224. @click.stop="openScore(w)"
  7225. :class="{
  7226. rightW:
  7227. w.userid == userid || tType == 1 || tType == 4,
  7228. }"
  7229. >
  7230. {{ JSON.parse(w.score).wScore }}分
  7231. </div>
  7232. <div
  7233. class="answerScore"
  7234. @click.stop="openScore(w)"
  7235. v-else-if="courseDetail.userid == userid"
  7236. :class="{
  7237. rightW:
  7238. w.userid == userid || tType == 1 || tType == 4,
  7239. }"
  7240. >
  7241. 评分
  7242. </div>
  7243. <img
  7244. class="deleteImg"
  7245. src="../../assets/deleteworks.png"
  7246. v-if="
  7247. w.userid == userid || tType == 1 || tType == 4
  7248. "
  7249. @click.stop="deleteWorks(w.wid)"
  7250. alt
  7251. />
  7252. </div>
  7253. <div class="worksName">
  7254. <div>{{ w.sName }}</div>
  7255. </div>
  7256. </div>
  7257. </div>
  7258. </div>
  7259. <div
  7260. v-if="tool.tool.indexOf(49) != -1"
  7261. class="xuan_right_box"
  7262. style="margin: 0 15px 0 25px; width: 93%"
  7263. >
  7264. <div
  7265. v-if="courseDetail.userid == userid"
  7266. style="
  7267. display: flex;
  7268. justify-content: flex-end;
  7269. margin-right: 10px;
  7270. "
  7271. >
  7272. <el-button
  7273. type="primary"
  7274. size="small"
  7275. @click="addTools(49, toolIndex, taskCount)"
  7276. >分组设置</el-button
  7277. >
  7278. </div>
  7279. <div
  7280. v-if="groupStudentUid[toolIndex]"
  7281. class="group_staic_box"
  7282. >
  7283. <div
  7284. v-for="(gp, gd) in tool.groupJson.group"
  7285. :key="gd"
  7286. class="group_staic"
  7287. >
  7288. <span> {{ gp.name }}</span>
  7289. <span>
  7290. 目前人数{{
  7291. groupStudentUid[toolIndex][gd].length
  7292. }}人</span
  7293. >
  7294. </div>
  7295. </div>
  7296. </div>
  7297. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  7298. <div
  7299. class="zuoyeYulan"
  7300. v-if="
  7301. worksStudent.length &&
  7302. worksStudent[toolIndex].length > 0
  7303. "
  7304. >
  7305. <span class="worksTitle">作业预览</span>
  7306. </div>
  7307. <div>
  7308. <div
  7309. class="group_workBox"
  7310. v-for="(g, gindex) in tool.groupJson.group"
  7311. :key="gindex"
  7312. >
  7313. <div
  7314. class="group_box"
  7315. v-if="
  7316. groupStudentUid[toolIndex] &&
  7317. worksStudent[toolIndex] &&
  7318. (worksStudent[toolIndex][gindex].length ||
  7319. groupStudentUid[toolIndex][gindex].indexOf(
  7320. userid
  7321. ) != -1)
  7322. "
  7323. >
  7324. <div class="group_title">
  7325. <el-tooltip
  7326. class="item"
  7327. effect="light"
  7328. :content="g.name"
  7329. placement="top"
  7330. >
  7331. <div class="group_name">{{ g.name }}</div>
  7332. </el-tooltip>
  7333. <el-button
  7334. type="primary"
  7335. v-if="
  7336. groupStudentUid[toolIndex][gindex].indexOf(
  7337. userid
  7338. ) != -1
  7339. "
  7340. @click="groupUpload(toolIndex, taskCount, gindex)"
  7341. >上传作业</el-button
  7342. >
  7343. </div>
  7344. <div class="group_work">
  7345. <div
  7346. class="works"
  7347. style="
  7348. width: 200px;
  7349. height: 140px;
  7350. margin: 10px 10px 10px 0;
  7351. border-radius: 15px;
  7352. box-shadow: 0 0 6px 1px #dfdada;
  7353. "
  7354. v-for="(w, wIndex) in worksStudent[toolIndex][
  7355. gindex
  7356. ]"
  7357. :key="wIndex"
  7358. :class="w.type == 1 ? 'isTypeOne' : ''"
  7359. >
  7360. <div class="workImg" v-if="w.type == 0">
  7361. <img
  7362. :src="w.works"
  7363. @click="previewImg(w.works,w)"
  7364. alt
  7365. />
  7366. <div
  7367. class="answerScore"
  7368. v-if="w.score"
  7369. @click.stop="openScore(w)"
  7370. :class="{
  7371. rightW:
  7372. w.userid == userid ||
  7373. tType == 1 ||
  7374. tType == 4 ||
  7375. w.ateacher == userid,
  7376. }"
  7377. >
  7378. {{ JSON.parse(w.score).wScore }}分
  7379. </div>
  7380. <div
  7381. class="answerScore"
  7382. @click.stop="openScore(w)"
  7383. v-else-if="courseDetail.userid == userid"
  7384. :class="{
  7385. rightW:
  7386. w.userid == userid ||
  7387. tType == 1 ||
  7388. tType == 4 ||
  7389. w.ateacher == userid,
  7390. }"
  7391. >
  7392. 评分
  7393. </div>
  7394. <img
  7395. class="deleteImg"
  7396. src="../../assets/deleteworks.png"
  7397. v-if="
  7398. w.userid == userid ||
  7399. tType == 1 ||
  7400. tType == 4
  7401. "
  7402. @click.stop="deleteWorks(w.wid)"
  7403. alt
  7404. />
  7405. </div>
  7406. <div class="workImg" v-if="w.type == 1">
  7407. <img
  7408. :src="word"
  7409. @click="openFile(w.works)"
  7410. alt
  7411. />
  7412. <!-- @click="openFile(w.works)" -->
  7413. <div
  7414. class="answerScore"
  7415. v-if="w.score"
  7416. @click.stop="openScore(w)"
  7417. :class="{
  7418. rightW:
  7419. w.userid == userid ||
  7420. tType == 1 ||
  7421. tType == 4 ||
  7422. w.ateacher == userid,
  7423. }"
  7424. >
  7425. {{ JSON.parse(w.score).wScore }}分
  7426. </div>
  7427. <div
  7428. class="answerScore"
  7429. @click.stop="openScore(w)"
  7430. v-else-if="courseDetail.userid == userid"
  7431. :class="{
  7432. rightW:
  7433. w.userid == userid ||
  7434. tType == 1 ||
  7435. tType == 4 ||
  7436. w.ateacher == userid,
  7437. }"
  7438. >
  7439. 评分
  7440. </div>
  7441. <img
  7442. class="deleteImg"
  7443. src="../../assets/deleteworks.png"
  7444. v-if="
  7445. w.userid == userid ||
  7446. tType == 1 ||
  7447. tType == 4
  7448. "
  7449. @click.stop="deleteWorks(w.wid)"
  7450. alt
  7451. />
  7452. </div>
  7453. <div class="workImg" v-if="w.type == 3">
  7454. <img
  7455. style="cursor: pointer"
  7456. :src="video"
  7457. @click="openVideo(w)"
  7458. alt
  7459. />
  7460. <!-- @click="openVideo(w.works)" -->
  7461. <div
  7462. class="answerScore"
  7463. v-if="w.score"
  7464. @click.stop="openScore(w)"
  7465. :class="{
  7466. rightW:
  7467. w.userid == userid ||
  7468. tType == 1 ||
  7469. tType == 4 ||
  7470. w.ateacher == userid,
  7471. }"
  7472. >
  7473. {{ JSON.parse(w.score).wScore }}分
  7474. </div>
  7475. <div
  7476. class="answerScore"
  7477. @click.stop="openScore(w)"
  7478. v-else-if="courseDetail.userid == userid"
  7479. :class="{
  7480. rightW:
  7481. w.userid == userid ||
  7482. tType == 1 ||
  7483. tType == 4 ||
  7484. w.ateacher == userid,
  7485. }"
  7486. >
  7487. 评分
  7488. </div>
  7489. <img
  7490. class="deleteImg"
  7491. src="../../assets/deleteworks.png"
  7492. v-if="
  7493. w.userid == userid ||
  7494. tType == 1 ||
  7495. tType == 4
  7496. "
  7497. @click.stop="deleteWorks(w.wid)"
  7498. alt
  7499. />
  7500. </div>
  7501. <div class="workImg" v-if="w.type == 12">
  7502. <img
  7503. style="cursor: pointer"
  7504. :src="word2"
  7505. @click="downloadFile(w.works,w.userid)"
  7506. alt
  7507. />
  7508. <!-- @click="openVideo(w.works)" -->
  7509. <div
  7510. class="answerScore"
  7511. v-if="w.score"
  7512. @click.stop="openScore(w)"
  7513. :class="{
  7514. rightW:
  7515. w.userid == userid ||
  7516. tType == 1 ||
  7517. tType == 4 ||
  7518. w.ateacher == userid,
  7519. }"
  7520. >
  7521. {{ JSON.parse(w.score).wScore }}分
  7522. </div>
  7523. <div
  7524. class="answerScore"
  7525. @click.stop="openScore(w)"
  7526. v-else-if="courseDetail.userid == userid"
  7527. :class="{
  7528. rightW:
  7529. w.userid == userid ||
  7530. tType == 1 ||
  7531. tType == 4 ||
  7532. w.ateacher == userid,
  7533. }"
  7534. >
  7535. 评分
  7536. </div>
  7537. <img
  7538. class="deleteImg"
  7539. src="../../assets/deleteworks.png"
  7540. v-if="
  7541. w.userid == userid ||
  7542. tType == 1 ||
  7543. tType == 4
  7544. "
  7545. @click.stop="deleteWorks(w.wid)"
  7546. alt
  7547. />
  7548. </div>
  7549. <div class="comment" style="min-width: 200px">
  7550. <div class="worksName">
  7551. <div>{{ w.sName }}</div>
  7552. </div>
  7553. <div class="commentList">
  7554. <div class="commentList">
  7555. <div
  7556. class="commentImg"
  7557. @click="
  7558. isLikes(
  7559. w.wid,
  7560. userid,
  7561. 1,
  7562. null,
  7563. w.isLikes,
  7564. w.sName
  7565. )
  7566. "
  7567. >
  7568. <img
  7569. :src="
  7570. w.isLikes == true ? likes : noLikes
  7571. "
  7572. alt=""
  7573. />
  7574. </div>
  7575. <div>{{ w.likesCount }}</div>
  7576. </div>
  7577. <div
  7578. class="commentList"
  7579. style="margin-right: 15px"
  7580. >
  7581. <div
  7582. class="commentImg"
  7583. @click="
  7584. commentOther(
  7585. w,
  7586. toolIndex,
  7587. wIndex,
  7588. gindex
  7589. )
  7590. "
  7591. >
  7592. <img
  7593. src="../../assets/icon/comment/comment.png"
  7594. alt=""
  7595. />
  7596. </div>
  7597. <div>{{ w.commentCount }}</div>
  7598. </div>
  7599. </div>
  7600. </div>
  7601. </div>
  7602. </div>
  7603. </div>
  7604. </div>
  7605. </div>
  7606. </div>
  7607. </div>
  7608. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7609. 上传文件
  7610. <input
  7611. type="file"
  7612. accept="image/png, image/gif, image/jpeg"
  7613. style="display: none"
  7614. @change="beforeUpload1($event, 2, index)"
  7615. />
  7616. </div>-->
  7617. </div>
  7618. </div>
  7619. <!-- <div
  7620. class="vedioBox"
  7621. style="margin-top: 10px"
  7622. v-if="
  7623. courseDetail.userid == userid ||
  7624. (courseDetail.course_teacher &&
  7625. courseDetail.course_teacher.indexOf(userid) != -1)
  7626. "
  7627. :style="{
  7628. borderRadius:
  7629. !(
  7630. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7631. .toolChoose[0].tool &&
  7632. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7633. .toolChoose[0].tool.length > 0
  7634. ) &&
  7635. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7636. .taskDetail == '' &&
  7637. vChapterData[taskCount].length == 0 &&
  7638. fileC[taskCount].length == 0
  7639. ? '0 0 20px 20px'
  7640. : '20px',
  7641. }"
  7642. >
  7643. <div
  7644. class="queTop"
  7645. @click="isClose = !isClose"
  7646. style="
  7647. padding: 15px 0 15px 37px;
  7648. justify-content: space-between;
  7649. "
  7650. >
  7651. <div class="queTopTitle">新增工具</div>
  7652. <div class="queTopRight">
  7653. <div class="queTopClose" v-if="isClose == 0">
  7654. 展开
  7655. <div class="closeImg">
  7656. <img src="../../assets/icon/newIcon/close.png" alt="" />
  7657. </div>
  7658. </div>
  7659. <div class="queTopClose" v-if="isClose == 1">
  7660. 折叠
  7661. <div class="openImg">
  7662. <img src="../../assets/icon/newIcon/open.png" alt="" />
  7663. </div>
  7664. </div>
  7665. <el-button
  7666. style="margin: 0 30px 0 auto"
  7667. type="primary"
  7668. size="small"
  7669. v-if="isClose == 1 && checktoolArray.length > 0"
  7670. @click.stop="addToolChoose"
  7671. >确定</el-button
  7672. >
  7673. </div>
  7674. </div>
  7675. <div
  7676. class="tool_work_box"
  7677. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7678. >
  7679. <div class="tool_box">
  7680. <div class="tool_type_box">
  7681. <div class="chooseWho">
  7682. <div
  7683. :class="toolType == 0 ? 'isChooseActive' : ''"
  7684. @click="(toolType = 0), $forceUpdate()"
  7685. >
  7686. 互动类
  7687. </div>
  7688. <div
  7689. :class="toolType == 1 ? 'isChooseActive' : ''"
  7690. @click="(toolType = 1), $forceUpdate()"
  7691. >
  7692. 思维类
  7693. </div>
  7694. <div
  7695. :class="toolType == 2 ? 'isChooseActive' : ''"
  7696. @click="(toolType = 2), $forceUpdate()"
  7697. >
  7698. 测评类
  7699. </div>
  7700. <div
  7701. :class="toolType == 3 ? 'isChooseActive' : ''"
  7702. @click="(toolType = 3), $forceUpdate()"
  7703. >
  7704. 编程类
  7705. </div>
  7706. <div
  7707. :class="toolType == 5 ? 'isChooseActive' : ''"
  7708. @click="(toolType = 5), $forceUpdate()"
  7709. >
  7710. 学科类
  7711. </div>
  7712. </div>
  7713. </div>
  7714. <div>
  7715. <div class="toolSort" v-if="toolType == 0">
  7716. <div class="tool">
  7717. <div class="whiteBIcon" @click="addTools2(10)">
  7718. <img
  7719. src="../../assets/icon/thirdToolList/time.png"
  7720. alt
  7721. />
  7722. <div style="margin: 5px 0">倒计时</div>
  7723. </div>
  7724. <div class="check" @click="addTools2(10)">
  7725. <img
  7726. src="../../assets/icon/checkNo.png"
  7727. alt
  7728. v-if="checktoolArray.indexOf(10) == -1"
  7729. />
  7730. <div class="checkDiv" v-else>
  7731. <img src="../../assets/icon/checkedIs.png" alt /><span
  7732. >已选择</span
  7733. >
  7734. </div>
  7735. </div>
  7736. </div>
  7737. <div class="tool">
  7738. <div class="whiteBIcon" @click="addTools2(65)">
  7739. <img
  7740. src="../../assets/icon/firstToolList/pickPeople.png"
  7741. alt
  7742. />
  7743. <div style="margin: 5px 0">挑人</div>
  7744. </div>
  7745. <div class="check" @click="addTools2(65)">
  7746. <img
  7747. src="../../assets/icon/checkNo.png"
  7748. alt
  7749. v-if="checktoolArray.indexOf(65) == -1"
  7750. />
  7751. <div class="checkDiv" v-else>
  7752. <img src="../../assets/icon/checkedIs.png" alt /><span
  7753. >已选择</span
  7754. >
  7755. </div>
  7756. </div>
  7757. </div>
  7758. </div>
  7759. <div class="toolSort" v-if="toolType == 1">
  7760. <div class="tool">
  7761. <div class="whiteBIcon" @click="addTools2(7)">
  7762. <img
  7763. src="../../assets/icon/secondToolList/mindNetwork.png"
  7764. alt
  7765. />
  7766. <div style="margin: 5px 0">思维网格</div>
  7767. </div>
  7768. <div class="check" @click="addTools2(7)">
  7769. <img
  7770. src="../../assets/icon/checkNo.png"
  7771. alt
  7772. v-if="checktoolArray.indexOf(7) == -1"
  7773. />
  7774. <div class="checkDiv" v-else>
  7775. <img src="../../assets/icon/checkedIs.png" alt /><span
  7776. >已选择</span
  7777. >
  7778. </div>
  7779. </div>
  7780. </div>
  7781. <div class="tool">
  7782. <div class="whiteBIcon" @click="addTools2(1)">
  7783. <img
  7784. src="../../assets/icon/secondToolList/whiteBoard.png"
  7785. alt
  7786. />
  7787. <div style="margin: 5px 0">电子白板</div>
  7788. </div>
  7789. <div class="check" @click="addTools2(1)">
  7790. <img
  7791. src="../../assets/icon/checkNo.png"
  7792. alt
  7793. v-if="checktoolArray.indexOf(1) == -1"
  7794. />
  7795. <div class="checkDiv" v-else>
  7796. <img src="../../assets/icon/checkedIs.png" alt /><span
  7797. >已选择</span
  7798. >
  7799. </div>
  7800. </div>
  7801. </div>
  7802. <div class="tool">
  7803. <div class="whiteBIcon" @click="addTools2(52)">
  7804. <img
  7805. src="../../assets/icon/fourthToolList/text.png"
  7806. alt
  7807. />
  7808. <div style="margin: 5px 0">文档</div>
  7809. </div>
  7810. <div class="check" @click="addTools2(52)">
  7811. <img
  7812. src="../../assets/icon/checkNo.png"
  7813. alt
  7814. v-if="checktoolArray.indexOf(52) == -1"
  7815. />
  7816. <div class="checkDiv" v-else>
  7817. <img src="../../assets/icon/checkedIs.png" alt /><span
  7818. >已选择</span
  7819. >
  7820. </div>
  7821. </div>
  7822. </div>
  7823. <div class="tool">
  7824. <div class="whiteBIcon" @click="addTools2(3)">
  7825. <img
  7826. src="../../assets/icon/secondToolList/mindMapping.png"
  7827. alt
  7828. />
  7829. <div style="margin: 5px 0">思维导图</div>
  7830. </div>
  7831. <div class="check" @click="addTools2(3)">
  7832. <img
  7833. src="../../assets/icon/checkNo.png"
  7834. alt
  7835. v-if="checktoolArray.indexOf(3) == -1"
  7836. />
  7837. <div class="checkDiv" v-else>
  7838. <img src="../../assets/icon/checkedIs.png" alt /><span
  7839. >已选择</span
  7840. >
  7841. </div>
  7842. </div>
  7843. </div>
  7844. <div class="tool">
  7845. <div class="whiteBIcon" @click="addTools2(48)">
  7846. <img
  7847. src="../../assets/icon/fourthToolList/table.png"
  7848. alt
  7849. />
  7850. <div style="margin: 5px 0">表格</div>
  7851. </div>
  7852. <div class="check" @click="addTools2(48)">
  7853. <img
  7854. src="../../assets/icon/checkNo.png"
  7855. alt
  7856. v-if="checktoolArray.indexOf(48) == -1"
  7857. />
  7858. <div class="checkDiv" v-else>
  7859. <img src="../../assets/icon/checkedIs.png" alt /><span
  7860. >已选择</span
  7861. >
  7862. </div>
  7863. </div>
  7864. </div>
  7865. </div>
  7866. <div class="toolSort" v-if="toolType == 6">
  7867. <div v-show="tooC == 49">
  7868. <img
  7869. @click="addTools(tooC, toolIndex, taskCount)"
  7870. src="../../assets/icon/fourthToolList/group.png"
  7871. alt
  7872. />
  7873. <div style="margin: 5px 0">学生分组</div>
  7874. </div>
  7875. </div>
  7876. <div class="toolSort" v-if="toolType == 2">
  7877. <div class="tool">
  7878. <div class="whiteBIcon" @click="addTools2(16)">
  7879. <img
  7880. src="../../assets/icon/thirdToolList/work.png"
  7881. alt
  7882. />
  7883. <div style="margin: 5px 0">作业提交</div>
  7884. </div>
  7885. <div class="check" @click="addTools2(16)">
  7886. <img
  7887. src="../../assets/icon/checkNo.png"
  7888. alt
  7889. v-if="checktoolArray.indexOf(16) == -1"
  7890. />
  7891. <div class="checkDiv" v-else>
  7892. <img src="../../assets/icon/checkedIs.png" alt /><span
  7893. >已选择</span
  7894. >
  7895. </div>
  7896. </div>
  7897. </div>
  7898. <div class="tool">
  7899. <div class="whiteBIcon" @click="addTools2(50)">
  7900. <img
  7901. src="../../assets/icon/thirdToolList/plwork.png"
  7902. alt
  7903. />
  7904. <div style="margin: 5px 0">批量上传</div>
  7905. </div>
  7906. <div class="check" @click="addTools2(50)">
  7907. <img
  7908. src="../../assets/icon/checkNo.png"
  7909. alt
  7910. v-if="checktoolArray.indexOf(50) == -1"
  7911. />
  7912. <div class="checkDiv" v-else>
  7913. <img src="../../assets/icon/checkedIs.png" alt /><span
  7914. >已选择</span
  7915. >
  7916. </div>
  7917. </div>
  7918. </div>
  7919. </div>
  7920. <div class="toolSort" v-if="toolType == 3">
  7921. <div class="tool">
  7922. <div class="whiteBIcon" @click="addTools2(18)">
  7923. <img
  7924. src="../../assets/icon/thirdToolList/trainPlatform.png"
  7925. alt
  7926. />
  7927. <div style="margin: 5px 0">训练平台</div>
  7928. </div>
  7929. <div class="check" @click="addTools2(18)">
  7930. <img
  7931. src="../../assets/icon/checkNo.png"
  7932. alt
  7933. v-if="checktoolArray.indexOf(18) == -1"
  7934. />
  7935. <div class="checkDiv" v-else>
  7936. <img src="../../assets/icon/checkedIs.png" alt /><span
  7937. >已选择</span
  7938. >
  7939. </div>
  7940. </div>
  7941. </div>
  7942. <div class="tool">
  7943. <div class="whiteBIcon" @click="addTools2(21)">
  7944. <img
  7945. src="../../assets/icon/fourthToolList/program.png"
  7946. alt
  7947. />
  7948. <div style="margin: 5px 0">AIoT Blockly</div>
  7949. </div>
  7950. <div class="check" @click="addTools2(21)">
  7951. <img
  7952. src="../../assets/icon/checkNo.png"
  7953. alt
  7954. v-if="checktoolArray.indexOf(21) == -1"
  7955. />
  7956. <div class="checkDiv" v-else>
  7957. <img src="../../assets/icon/checkedIs.png" alt /><span
  7958. >已选择</span
  7959. >
  7960. </div>
  7961. </div>
  7962. </div>
  7963. <div class="tool">
  7964. <div class="whiteBIcon" @click="addTools2(23)">
  7965. <img
  7966. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  7967. alt
  7968. />
  7969. <div style="margin: 5px 0">AI Python</div>
  7970. </div>
  7971. <div class="check" @click="addTools2(23)">
  7972. <img
  7973. src="../../assets/icon/checkNo.png"
  7974. alt
  7975. v-if="checktoolArray.indexOf(23) == -1"
  7976. />
  7977. <div class="checkDiv" v-else>
  7978. <img src="../../assets/icon/checkedIs.png" alt /><span
  7979. >已选择</span
  7980. >
  7981. </div>
  7982. </div>
  7983. </div>
  7984. <div class="tool">
  7985. <div class="whiteBIcon" @click="addTools2(24)">
  7986. <img
  7987. src="../../assets/icon/fourthToolList/AIprogram.png"
  7988. alt
  7989. />
  7990. <div style="margin: 5px 0">AI Blockly</div>
  7991. </div>
  7992. <div class="check" @click="addTools2(24)">
  7993. <img
  7994. src="../../assets/icon/checkNo.png"
  7995. alt
  7996. v-if="checktoolArray.indexOf(24) == -1"
  7997. />
  7998. <div class="checkDiv" v-else>
  7999. <img src="../../assets/icon/checkedIs.png" alt /><span
  8000. >已选择</span
  8001. >
  8002. </div>
  8003. </div>
  8004. </div>
  8005. <div class="tool">
  8006. <div class="whiteBIcon" @click="addTools2(32)">
  8007. <img
  8008. src="../../assets/icon/thirdToolList/code.png"
  8009. alt
  8010. />
  8011. <div style="margin: 5px 0">源码编辑</div>
  8012. </div>
  8013. <div class="check" @click="addTools2(32)">
  8014. <img
  8015. src="../../assets/icon/checkNo.png"
  8016. alt
  8017. v-if="checktoolArray.indexOf(32) == -1"
  8018. />
  8019. <div class="checkDiv" v-else>
  8020. <img src="../../assets/icon/checkedIs.png" alt /><span
  8021. >已选择</span
  8022. >
  8023. </div>
  8024. </div>
  8025. </div>
  8026. <div class="tool">
  8027. <div class="whiteBIcon" @click="addTools2(57)">
  8028. <img
  8029. src="../../assets/icon/fourthToolList/cocopi.png"
  8030. alt
  8031. />
  8032. <div style="margin: 5px 0">CocoPi</div>
  8033. </div>
  8034. <div class="check" @click="addTools2(57)">
  8035. <img
  8036. src="../../assets/icon/checkNo.png"
  8037. alt
  8038. v-if="checktoolArray.indexOf(57) == -1"
  8039. />
  8040. <div class="checkDiv" v-else>
  8041. <img src="../../assets/icon/checkedIs.png" alt /><span
  8042. >已选择</span
  8043. >
  8044. </div>
  8045. </div>
  8046. </div>
  8047. <div class="tool">
  8048. <div class="whiteBIcon" @click="addTools2(63)">
  8049. <img
  8050. src="../../assets/icon/fourthToolList/Wood.png"
  8051. alt
  8052. />
  8053. <div style="margin: 5px 0">海龟编程</div>
  8054. </div>
  8055. <div class="check" @click="addTools2(63)">
  8056. <img
  8057. src="../../assets/icon/checkNo.png"
  8058. alt
  8059. v-if="checktoolArray.indexOf(63) == -1"
  8060. />
  8061. <div class="checkDiv" v-else>
  8062. <img src="../../assets/icon/checkedIs.png" alt /><span
  8063. >已选择</span
  8064. >
  8065. </div>
  8066. </div>
  8067. </div>
  8068. </div>
  8069. <div class="toolSort" v-if="toolType == 5">
  8070. <div class="tool">
  8071. <div class="whiteBIcon" @click="addTools2(28)">
  8072. <img
  8073. src="../../assets/icon/secondToolList/translation.png"
  8074. alt
  8075. />
  8076. <div style="margin: 5px 0">翻译</div>
  8077. </div>
  8078. <div class="check" @click="addTools2(28)">
  8079. <img
  8080. src="../../assets/icon/checkNo.png"
  8081. alt
  8082. v-if="checktoolArray.indexOf(28) == -1"
  8083. />
  8084. <div class="checkDiv" v-else>
  8085. <img src="../../assets/icon/checkedIs.png" alt /><span
  8086. >已选择</span
  8087. >
  8088. </div>
  8089. </div>
  8090. </div>
  8091. <div class="tool">
  8092. <div class="whiteBIcon" @click="addTools2(31)">
  8093. <img
  8094. src="../../assets/icon/secondToolList/networkPanel.png"
  8095. alt
  8096. />
  8097. <div style="margin: 5px 0">数字画板</div>
  8098. </div>
  8099. <div class="check" @click="addTools2(31)">
  8100. <img
  8101. src="../../assets/icon/checkNo.png"
  8102. alt
  8103. v-if="checktoolArray.indexOf(31) == -1"
  8104. />
  8105. <div class="checkDiv" v-else>
  8106. <img src="../../assets/icon/checkedIs.png" alt /><span
  8107. >已选择</span
  8108. >
  8109. </div>
  8110. </div>
  8111. </div>
  8112. <div class="tool">
  8113. <div class="whiteBIcon" @click="addTools2(39)">
  8114. <img
  8115. src="../../assets/icon/secondToolList/GeoGebra.png"
  8116. alt
  8117. />
  8118. <div style="margin: 5px 0">GeoGebra</div>
  8119. </div>
  8120. <div class="check" @click="addTools2(39)">
  8121. <img
  8122. src="../../assets/icon/checkNo.png"
  8123. alt
  8124. v-if="checktoolArray.indexOf(39) == -1"
  8125. />
  8126. <div class="checkDiv" v-else>
  8127. <img src="../../assets/icon/checkedIs.png" alt /><span
  8128. >已选择</span
  8129. >
  8130. </div>
  8131. </div>
  8132. </div>
  8133. <div class="tool">
  8134. <div class="whiteBIcon" @click="addTools2(66)">
  8135. <img
  8136. src="../../assets/icon/secondToolList/formulaEdi.png"
  8137. alt
  8138. />
  8139. <div style="margin: 5px 0">公式编辑</div>
  8140. </div>
  8141. <div class="check" @click="addTools2(66)">
  8142. <img
  8143. src="../../assets/icon/checkNo.png"
  8144. alt
  8145. v-if="checktoolArray.indexOf(66) == -1"
  8146. />
  8147. <div class="checkDiv" v-else>
  8148. <img src="../../assets/icon/checkedIs.png" alt /><span
  8149. >已选择</span
  8150. >
  8151. </div>
  8152. </div>
  8153. </div>
  8154. <div class="tool">
  8155. <div class="whiteBIcon" @click="addTools2(67)">
  8156. <img
  8157. src="../../assets/icon/secondToolList/molStr.png"
  8158. alt
  8159. />
  8160. <div style="margin: 5px 0">分子结构</div>
  8161. </div>
  8162. <div class="check" @click="addTools2(67)">
  8163. <img
  8164. src="../../assets/icon/checkNo.png"
  8165. alt
  8166. v-if="checktoolArray.indexOf(67) == -1"
  8167. />
  8168. <div class="checkDiv" v-else>
  8169. <img src="../../assets/icon/checkedIs.png" alt /><span
  8170. >已选择</span
  8171. >
  8172. </div>
  8173. </div>
  8174. </div>
  8175. <div class="tool">
  8176. <div class="whiteBIcon" @click="addTools2(68)">
  8177. <img
  8178. src="../../assets/icon/secondToolList/timeAxis.png"
  8179. alt
  8180. />
  8181. <div style="margin: 5px 0">时间轴</div>
  8182. </div>
  8183. <div class="check" @click="addTools2(68)">
  8184. <img
  8185. src="../../assets/icon/checkNo.png"
  8186. alt
  8187. v-if="checktoolArray.indexOf(68) == -1"
  8188. />
  8189. <div class="checkDiv" v-else>
  8190. <img src="../../assets/icon/checkedIs.png" alt /><span
  8191. >已选择</span
  8192. >
  8193. </div>
  8194. </div>
  8195. </div>
  8196. </div>
  8197. <div class="toolSort" v-if="toolType == 7">
  8198. <div class="tool">
  8199. <div class="whiteBIcon" @click="addTools2(40)">
  8200. <img
  8201. src="../../assets/icon/secondToolList/eval.png"
  8202. alt
  8203. />
  8204. <div style="margin: 5px 0">个人评价</div>
  8205. </div>
  8206. <div class="check" @click="addTools2(40)">
  8207. <img
  8208. src="../../assets/icon/checkNo.png"
  8209. alt
  8210. v-if="checktoolArray.indexOf(40) == -1"
  8211. />
  8212. <div class="checkDiv" v-else>
  8213. <img src="../../assets/icon/checkedIs.png" alt /><span
  8214. >已选择</span
  8215. >
  8216. </div>
  8217. </div>
  8218. </div>
  8219. </div>
  8220. <div class="toolSort" v-if="toolType == 4">
  8221. <div class="tool">
  8222. <div class="whiteBIcon" @click="addTools2(26)">
  8223. <img
  8224. src="../../assets/icon/thirdToolList/courseDesign.png"
  8225. alt
  8226. />
  8227. <div style="margin: 5px 0">课程设计</div>
  8228. </div>
  8229. <div class="check" @click="addTools2(26)">
  8230. <img
  8231. src="../../assets/icon/checkNo.png"
  8232. alt
  8233. v-if="checktoolArray.indexOf(26) == -1"
  8234. />
  8235. <div class="checkDiv" v-else>
  8236. <img src="../../assets/icon/checkedIs.png" alt /><span
  8237. >已选择</span
  8238. >
  8239. </div>
  8240. </div>
  8241. </div>
  8242. <div class="tool">
  8243. <div class="whiteBIcon" @click="addTools2(25)">
  8244. <img
  8245. src="../../assets/icon/thirdToolList/evalua.png"
  8246. alt
  8247. />
  8248. <div style="margin: 5px 0">目标管理</div>
  8249. </div>
  8250. <div class="check" @click="addTools2(25)">
  8251. <img
  8252. src="../../assets/icon/checkNo.png"
  8253. alt
  8254. v-if="checktoolArray.indexOf(25) == -1"
  8255. />
  8256. <div class="checkDiv" v-else>
  8257. <img src="../../assets/icon/checkedIs.png" alt /><span
  8258. >已选择</span
  8259. >
  8260. </div>
  8261. </div>
  8262. </div>
  8263. </div>
  8264. </div>
  8265. </div>
  8266. </div>
  8267. </div> -->
  8268. <div
  8269. class="vedioBox"
  8270. style="margin-top: 10px; border-radius: 20px"
  8271. v-if="
  8272. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8273. .eList &&
  8274. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8275. .eList.length &&
  8276. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8277. .eList.length > 0 &&
  8278. tType != 2
  8279. "
  8280. >
  8281. <div
  8282. class="queTop"
  8283. style="
  8284. font-size: 20px;
  8285. padding: 15px 0 15px 37px;
  8286. font-weight: bold;
  8287. "
  8288. >
  8289. <!-- <div class="question" style="width: 30px">
  8290. <img src="../assets/icon/toolIcon.png" alt />
  8291. </div>
  8292. <div class="queTitle">
  8293. <div>工具</div>
  8294. </div>-->
  8295. 评一评
  8296. </div>
  8297. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  8298. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  8299. <el-table
  8300. :data="
  8301. chapInfoList[courseType].chapterInfo[0].taskJson[
  8302. taskCount
  8303. ].eList
  8304. "
  8305. :header-cell-style="{ background: '#F0F4FA' }"
  8306. :row-class-name="tableRowClassName"
  8307. border
  8308. stripe
  8309. style="width: 100%"
  8310. >
  8311. <el-table-column
  8312. label="评价名称"
  8313. align="center"
  8314. >
  8315. <template slot-scope="scope"
  8316. ><div>{{ scope.row.value }}</div></template
  8317. >
  8318. </el-table-column>
  8319. <el-table-column
  8320. label="评价描述"
  8321. align="center"
  8322. >
  8323. <template slot-scope="scope"
  8324. ><div>
  8325. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  8326. </div></template
  8327. >
  8328. </el-table-column>
  8329. <el-table-column label="目标" align="center">
  8330. <template slot-scope="scope"
  8331. ><div>
  8332. {{
  8333. scope.row.target
  8334. ? scope.row.target[scope.row.target.length - 1]
  8335. : "-"
  8336. }}
  8337. </div></template
  8338. ></el-table-column
  8339. >
  8340. </el-table>
  8341. <!-- <div
  8342. v-for="(eItem, eIndex) in chapInfoList[courseType]
  8343. .chapterInfo[0].taskJson[taskCount].eList"
  8344. :key="eIndex"
  8345. class="elist_input_box"
  8346. >
  8347. <div style="width: 95%">
  8348. <div
  8349. style="
  8350. display: flex;
  8351. flex-direction: row;
  8352. flex-wrap: nowrap;
  8353. align-items: center;
  8354. "
  8355. >
  8356. <div style="max-width: calc(100% - 285px)">
  8357. <span>{{ eItem.value }}</span>
  8358. </div>
  8359. <div
  8360. style="
  8361. padding-left: 25px;
  8362. display: flex;
  8363. flex-direction: row;
  8364. align-items: center;
  8365. "
  8366. >
  8367. <el-rate
  8368. v-model="eItem.score"
  8369. :colors="colors"
  8370. disabled
  8371. ></el-rate>
  8372. </div>
  8373. </div>
  8374. <div class="elist_inptu_text" style="padding-left: 10px">
  8375. <span v-if="eItem.detail != ''">{{
  8376. eItem.detail
  8377. }}</span>
  8378. <span v-else style="color: #b2b1b3; font-size: 14px"
  8379. >暂无描述...</span
  8380. >
  8381. </div>
  8382. </div>
  8383. </div> -->
  8384. </div>
  8385. <div
  8386. v-if="evalua"
  8387. style="
  8388. border: 1px solid #e5e5e5;
  8389. max-width: 650px;
  8390. width: 100%;
  8391. margin-top: 20px;
  8392. box-shadow: 3px 1px 15px 3px #e0e0e0;
  8393. "
  8394. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  8395. >
  8396. <div class="e_add_top">
  8397. <div class="e_add_title" style="width: 100%">
  8398. <!-- <span>目标管理名称</span> -->
  8399. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  8400. <img
  8401. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  8402. src="../../assets/line.png"
  8403. class="cru_line"
  8404. style="
  8405. width: 125px;
  8406. height: 20px;
  8407. bottom: -10px;
  8408. left: 5px;
  8409. "
  8410. />
  8411. <!-- <el-input
  8412. v-model="eTitle"
  8413. placeholder="请输入名称"
  8414. @change="setMindData"
  8415. ></el-input>-->
  8416. <div v-show="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" class="show_taskD show" style="margin:0 0 0 auto" @click="foldEva()"><img src="../../assets/icon/newIcon/icon-slide.png" />收起目标</div>
  8417. <div v-show="!chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" style="margin:0 0 0 auto" class="show_taskD" @click="foldEva()"><img src="../../assets/icon/newIcon/icon-slide.png" />展开目标</div>
  8418. </div>
  8419. </div>
  8420. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  8421. <div class="e_add_list_pbox">
  8422. <div class="e_add_list_pbox_title">
  8423. <!-- <span class="type_title">切换模式</span> -->
  8424. <div class="type_content">
  8425. <span
  8426. :class="{ active: typeMode == 1 }"
  8427. @click="typeMode = 1"
  8428. >目标树</span
  8429. >
  8430. <span
  8431. :class="{ active: typeMode == 2 }"
  8432. @click="typeMode = 2"
  8433. >目标罗盘</span
  8434. >
  8435. <!-- <span
  8436. :class="{ active: typeMode == 3 }"
  8437. @click="typeMode = 3"
  8438. >目标看板</span
  8439. > -->
  8440. </div>
  8441. </div>
  8442. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  8443. <Mind
  8444. :showBar="false"
  8445. :mindData="data"
  8446. style="width: 100%"
  8447. v-show="typeMode == 1"
  8448. ></Mind>
  8449. <Sunburst
  8450. :Josn="eJson"
  8451. :num="eJSONNum"
  8452. style="width: 100%"
  8453. v-if="typeMode == 2"
  8454. ></Sunburst>
  8455. <SeeBoard
  8456. :Josn="eJson"
  8457. :num="eJSONNum"
  8458. :ename="eTitle"
  8459. style="width: 100%"
  8460. v-if="typeMode == 3"
  8461. >
  8462. </SeeBoard>
  8463. </div>
  8464. </div>
  8465. </div>
  8466. </div>
  8467. </div>
  8468. </div>
  8469. <!-- <div
  8470. class="project_box"
  8471. style="margin-top: 15px; padding-bottom: 30px"
  8472. >
  8473. <div
  8474. style="
  8475. display: flex;
  8476. flex-wrap: nowrap;
  8477. flex-direction: column;
  8478. position: relative;
  8479. "
  8480. >
  8481. <div class="queTop">
  8482. <div class="question">
  8483. <img src="../../assets/icon/homeWork.png" alt="" />
  8484. </div>
  8485. <div class="queTitle">
  8486. <div>作业提交<span>(提交图文视频等)</span></div>
  8487. <div>:任务:{{ task.task }}</div>
  8488. </div>
  8489. </div>
  8490. <div class="ediBottom">
  8491. <div
  8492. class="addEditor"
  8493. style="margin-top: 23px"
  8494. @click="openAddWork"
  8495. v-if="!isNoHomeWork"
  8496. >
  8497. 选择文件
  8498. </div>
  8499. <div
  8500. class="addEditor"
  8501. style="margin-top: 23px"
  8502. @click="openAddWork"
  8503. v-else
  8504. >
  8505. 已提交
  8506. </div>
  8507. </div>
  8508. </div>
  8509. </div>-->
  8510. </div>
  8511. </div>
  8512. <el-dialog
  8513. title="作业提交"
  8514. :visible.sync="dialogVisible"
  8515. :append-to-body="true"
  8516. width="500px"
  8517. :before-close="handleClose"
  8518. class="dialog_change"
  8519. >
  8520. <div class="marginT">
  8521. <div>上传文件</div>
  8522. <div style="display: flex; gap: 10px">
  8523. <div
  8524. class="chapter_add"
  8525. @click="addImg($event)"
  8526. v-if="studyJuri[0].cover.length == 0"
  8527. >
  8528. <div class="up_photo">
  8529. <img src="../../assets/icon/uploadImg.png" alt />
  8530. </div>
  8531. <!-- <input
  8532. type="file"
  8533. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8534. style="display: none"
  8535. @change="beforeUpload1($event, 1)"
  8536. /> -->
  8537. <input
  8538. type="file"
  8539. accept="*"
  8540. style="display: none"
  8541. @change="beforeUpload1($event, 1)"
  8542. />
  8543. <!-- <input
  8544. type="file"
  8545. accept="image/*"
  8546. capture="camera"
  8547. style="display: none"
  8548. @change="beforeUpload1($event, 1)"
  8549. /> -->
  8550. </div>
  8551. <div
  8552. class="chapter_add"
  8553. @click="addImg($event)"
  8554. v-if="studyJuri[0].cover.length == 0"
  8555. >
  8556. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  8557. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  8558. </div>
  8559. <input
  8560. type="file"
  8561. accept="image/*"
  8562. capture="camera"
  8563. style="display: none"
  8564. @change="beforeUpload1($event, 1)"
  8565. />
  8566. </div>
  8567. </div>
  8568. <div
  8569. class="chapter_add"
  8570. style="
  8571. display: flex;
  8572. width: 100%;
  8573. flex-direction: row;
  8574. flex-wrap: wrap;
  8575. justify-content: flex-start;
  8576. padding: 15px 0;
  8577. "
  8578. v-if="studyJuri[0].cover.length > 0"
  8579. >
  8580. <div class="upCover">
  8581. <img
  8582. :src="studyJuri[0].cover[0].url"
  8583. alt
  8584. v-if="fileType == 0"
  8585. />
  8586. <img :src="word" alt v-else-if="fileType == 1" />
  8587. <img :src="video" alt v-else-if="fileType == 2" />
  8588. <img :src="word2" alt v-else-if="fileType == 3" />
  8589. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8590. <div class="deleteWord" @click="clean(1)">
  8591. <img src="../../assets/icon/deleteWorks.png" alt />
  8592. </div>
  8593. </div>
  8594. </div>
  8595. </div>
  8596. <div
  8597. class="upload_send"
  8598. @click="addCourseWorks(taskCount)"
  8599. v-if="!proVisible"
  8600. >
  8601. 提交
  8602. </div>
  8603. </el-dialog>
  8604. </div>
  8605. </div>
  8606. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  8607. <classRoomHelper v-if="!['2'].includes(tType)" @studentFreePreview="studentFreePreview" @OpenJobPreview="OpenJobPreview" :videoStart="videoStart" :IsFollow="IsFollow" :sIsOpen="sIsOpen" :IsLookOpen="IsLookOpen" :splitScreenData="splitScreenData" @splitScreenBehavior="splitScreenBehavior" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" ref="classRoomHelperRef" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  8608. '/courseDetail?userid=' +
  8609. userid +
  8610. '&oid=' +
  8611. oid +
  8612. '&org=' +
  8613. org +
  8614. '&cid=' +
  8615. classId +
  8616. '&courseId=' +
  8617. id +
  8618. '&tType=' +
  8619. tType +
  8620. '&screenType=' +
  8621. screenType+
  8622. '&role=' +
  8623. role
  8624. )"></classRoomHelper>
  8625. <studentClassRoomHelper v-else-if="['2'].includes(tType)" @studentFreePreview="studentFreePreview" @OpenJobPreview="OpenJobPreview" :videoStart="videoStart" :IsFollow="IsFollow" :sIsOpen="sIsOpen" :IsLookOpen="IsLookOpen" :splitScreenData="splitScreenData" @splitScreenBehavior="splitScreenBehavior" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  8626. '/courseDetail?userid=' +
  8627. userid +
  8628. '&oid=' +
  8629. oid +
  8630. '&org=' +
  8631. org +
  8632. '&cid=' +
  8633. classId +
  8634. '&courseId=' +
  8635. id +
  8636. '&tType=' +
  8637. tType +
  8638. '&screenType=' +
  8639. screenType+
  8640. '&role=' +
  8641. role
  8642. )"></studentClassRoomHelper>
  8643. <div
  8644. class="pButton"
  8645. @click="(pzDialog = true), selectPz()"
  8646. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8647. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8648. >
  8649. <!-- 批 -->
  8650. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  8651. </div>
  8652. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8653. <div class="pzTop2">
  8654. <!-- <div>评论</div>
  8655. <div @click="pzDialog = false">
  8656. <img src="../../assets/close1.png" alt="" />
  8657. </div> -->
  8658. <div class="checkbox">
  8659. <!-- <div class="check" style="font-size: 25px; position: unset">
  8660. 评论
  8661. </div> -->
  8662. <div class="cb-tabList">
  8663. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8664. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8665. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8666. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  8667. </div>
  8668. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8669. <el-option label="时间降序" :value="1"></el-option>
  8670. <el-option label="时间升序" :value="2"></el-option>
  8671. <el-option label="我的评课" :value="3"></el-option>
  8672. </el-select>
  8673. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8674. </div>
  8675. </div>
  8676. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8677. <div class="pzListBox" v-if="pzList && pzList.length">
  8678. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8679. <div class="pzNavTop">
  8680. <div>评</div>
  8681. <div>
  8682. {{
  8683. pz.username && pz.username.length > 5
  8684. ? pz.username.substring(0, 5) + "..."
  8685. : pz.username
  8686. }}的评论
  8687. </div>
  8688. <div
  8689. class="pzDelete"
  8690. v-if="pz.userid == userid"
  8691. @click="deletePz(pz.id)"
  8692. >
  8693. 删除
  8694. </div>
  8695. </div>
  8696. <div
  8697. @click="checkImg(getImgList(pz.content))"
  8698. class="pzContent cont"
  8699. v-html="pz.content"
  8700. v-if="pz.type == '1'"
  8701. ></div>
  8702. <div class="pzContent" v-if="pz.type == '2'">
  8703. <audio :src="pz.content" controls="controls" ref="audio">
  8704. Your browser does not support the audio element.
  8705. </audio>
  8706. </div>
  8707. <div class="pzContent" v-if="pz.type == '3'">
  8708. <img
  8709. :src="pz.content"
  8710. style="width: 90%; margin: 0 auto; display: block"
  8711. @click="previewImg(pz.content)"
  8712. />
  8713. </div>
  8714. <div class="timeAndReply">
  8715. <div class="time">
  8716. {{ pz.time }}
  8717. </div>
  8718. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8719. </div>
  8720. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8721. <div
  8722. v-for="(h, hIndex) in pz.hfList"
  8723. :key="hIndex"
  8724. class="hfItem"
  8725. >
  8726. <div class="whoReplyWho">
  8727. <div class="hfName">{{ h.username }}</div>
  8728. <div class="hfImg">
  8729. <img src="../../assets/icon/newIcons/right.png" alt="" />
  8730. </div>
  8731. <div class="hfName">{{ pz.username }}</div>
  8732. </div>
  8733. <div class="hfContent" v-html="h.content"></div>
  8734. <div class="hfBottom">
  8735. <div class="hfTime">{{ h.time }}</div>
  8736. <div
  8737. class="deleteHfItem"
  8738. @click="deleteReply(h.id)"
  8739. v-if="userid == h.userid"
  8740. >
  8741. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  8742. </div>
  8743. </div>
  8744. </div>
  8745. </div>
  8746. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8747. <div class="replyInput">
  8748. <el-input v-model="reply[pzIndex]"></el-input>
  8749. </div>
  8750. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8751. </div> -->
  8752. </div>
  8753. </div>
  8754. <div class="noPz" v-else>
  8755. <img src="../../assets/icon/noPz.png" alt="" />
  8756. </div>
  8757. <div class="addPzButton">
  8758. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8759. 添加评论
  8760. </div>
  8761. <!-- <div class="img1">
  8762. <div @click="(addPzDialog = true), (pzType = 2)">
  8763. <img src="../../assets/audio.png" /><span>音频</span>
  8764. </div>
  8765. </div> -->
  8766. </div>
  8767. </div>
  8768. <div class="scoreList" v-if="commentTagShow==1">
  8769. <scoreItem v-for="item in scoreList.datalist" @refresh="getScoreList" :data="item" :isScore="scoreList.isScoreList.filter(i=>(i.userid==item.userid && i.courseid == item.courseId))" :key="item.courseId"/>
  8770. </div>
  8771. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8772. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8773. </div>
  8774. </div>
  8775. <div
  8776. v-if="toolDialogVisible == true"
  8777. class="toolMask"
  8778. @click="toolDialogVisible = false"
  8779. ></div>
  8780. <div v-if="toolDialogVisible == true" class="addToolCss">
  8781. <div class="toolTop">
  8782. <div style="font-weight: bold">新增工具</div>
  8783. <div @click="toolDialogVisible = false">
  8784. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  8785. </div>
  8786. </div>
  8787. <div class="tool_box">
  8788. <div class="tool_type_box">
  8789. <div class="chooseWho">
  8790. <div
  8791. :class="toolType == 0 ? 'isChooseActive' : ''"
  8792. @click="(toolType = 0), $forceUpdate()"
  8793. >
  8794. 互动类
  8795. </div>
  8796. <div
  8797. :class="toolType == 1 ? 'isChooseActive' : ''"
  8798. @click="(toolType = 1), $forceUpdate()"
  8799. >
  8800. 思维类
  8801. </div>
  8802. <div
  8803. :class="toolType == 2 ? 'isChooseActive' : ''"
  8804. @click="(toolType = 2), $forceUpdate()"
  8805. >
  8806. 测评类
  8807. </div>
  8808. <div
  8809. :class="toolType == 3 ? 'isChooseActive' : ''"
  8810. @click="(toolType = 3), $forceUpdate()"
  8811. >
  8812. 编程类
  8813. </div>
  8814. <div
  8815. :class="toolType == 5 ? 'isChooseActive' : ''"
  8816. @click="(toolType = 5), $forceUpdate()"
  8817. >
  8818. 学科类
  8819. </div>
  8820. </div>
  8821. </div>
  8822. <div>
  8823. <div class="toolSort" v-if="toolType == 0">
  8824. <div
  8825. class="tool"
  8826. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8827. @click="addTools2(10)"
  8828. >
  8829. <div class="whiteBIcon">
  8830. <img src="../../assets/icon/thirdToolList/time.png" alt />
  8831. <div style="margin: 5px 0">倒计时</div>
  8832. </div>
  8833. <div class="check">
  8834. <div
  8835. v-if="checktoolArray.indexOf(10) == -1"
  8836. class="noChoose"
  8837. ></div>
  8838. <div v-else class="isChoose"></div>
  8839. </div>
  8840. </div>
  8841. <div
  8842. class="tool"
  8843. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8844. @click="addTools2(65)"
  8845. >
  8846. <div class="whiteBIcon">
  8847. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  8848. <div style="margin: 5px 0">挑人</div>
  8849. </div>
  8850. <div class="check">
  8851. <div
  8852. v-if="checktoolArray.indexOf(65) == -1"
  8853. class="noChoose"
  8854. ></div>
  8855. <div v-else class="isChoose"></div>
  8856. </div>
  8857. </div>
  8858. </div>
  8859. <div class="toolSort" v-if="toolType == 1">
  8860. <div
  8861. class="tool"
  8862. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8863. @click="addTools2(7)"
  8864. >
  8865. <div class="whiteBIcon">
  8866. <img
  8867. src="../../assets/icon/secondToolList/mindNetwork.png"
  8868. alt
  8869. />
  8870. <div style="margin: 5px 0">思维网格</div>
  8871. </div>
  8872. <div class="check">
  8873. <div
  8874. v-if="checktoolArray.indexOf(7) == -1"
  8875. class="noChoose"
  8876. ></div>
  8877. <div v-else class="isChoose"></div>
  8878. </div>
  8879. </div>
  8880. <div
  8881. class="tool"
  8882. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8883. @click="addTools2(1)"
  8884. >
  8885. <div class="whiteBIcon">
  8886. <img
  8887. src="../../assets/icon/secondToolList/whiteBoard.png"
  8888. alt
  8889. />
  8890. <div style="margin: 5px 0">电子白板</div>
  8891. </div>
  8892. <div class="check">
  8893. <div
  8894. v-if="checktoolArray.indexOf(1) == -1"
  8895. class="noChoose"
  8896. ></div>
  8897. <div v-else class="isChoose"></div>
  8898. </div>
  8899. </div>
  8900. <div
  8901. class="tool"
  8902. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8903. @click="addTools2(52)"
  8904. >
  8905. <div class="whiteBIcon">
  8906. <img src="../../assets/icon/fourthToolList/text.png" alt />
  8907. <div style="margin: 5px 0">文档</div>
  8908. </div>
  8909. <div class="check">
  8910. <div
  8911. v-if="checktoolArray.indexOf(52) == -1"
  8912. class="noChoose"
  8913. ></div>
  8914. <div v-else class="isChoose"></div>
  8915. </div>
  8916. </div>
  8917. <div
  8918. class="tool"
  8919. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8920. @click="addTools2(3)"
  8921. >
  8922. <div class="whiteBIcon">
  8923. <img
  8924. src="../../assets/icon/secondToolList/mindMapping.png"
  8925. alt
  8926. />
  8927. <div style="margin: 5px 0">思维导图</div>
  8928. </div>
  8929. <div class="check">
  8930. <div
  8931. v-if="checktoolArray.indexOf(3) == -1"
  8932. class="noChoose"
  8933. ></div>
  8934. <div v-else class="isChoose"></div>
  8935. </div>
  8936. </div>
  8937. <div
  8938. class="tool"
  8939. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8940. @click="addTools2(48)"
  8941. >
  8942. <div class="whiteBIcon">
  8943. <img src="../../assets/icon/fourthToolList/table.png" alt />
  8944. <div style="margin: 5px 0">表格</div>
  8945. </div>
  8946. <div class="check">
  8947. <div
  8948. v-if="checktoolArray.indexOf(48) == -1"
  8949. class="noChoose"
  8950. ></div>
  8951. <div v-else class="isChoose"></div>
  8952. </div>
  8953. </div>
  8954. </div>
  8955. <div class="toolSort" v-if="toolType == 6">
  8956. <div v-show="tooC == 49">
  8957. <img
  8958. @click="addTools(tooC, toolIndex, taskCount)"
  8959. src="../../assets/icon/fourthToolList/group.png"
  8960. alt
  8961. />
  8962. <div style="margin: 5px 0">学生分组</div>
  8963. </div>
  8964. </div>
  8965. <div class="toolSort" v-if="toolType == 2">
  8966. <div
  8967. class="tool"
  8968. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8969. @click="addTools2(16)"
  8970. >
  8971. <div class="whiteBIcon">
  8972. <img src="../../assets/icon/thirdToolList/work.png" alt />
  8973. <div style="margin: 5px 0">作业提交</div>
  8974. </div>
  8975. <div class="check">
  8976. <div
  8977. v-if="checktoolArray.indexOf(16) == -1"
  8978. class="noChoose"
  8979. ></div>
  8980. <div v-else class="isChoose"></div>
  8981. </div>
  8982. </div>
  8983. <div
  8984. class="tool"
  8985. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8986. @click="addTools2(50)"
  8987. >
  8988. <div class="whiteBIcon">
  8989. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  8990. <div style="margin: 5px 0">批量上传</div>
  8991. </div>
  8992. <div class="check">
  8993. <div
  8994. v-if="checktoolArray.indexOf(50) == -1"
  8995. class="noChoose"
  8996. ></div>
  8997. <div v-else class="isChoose"></div>
  8998. </div>
  8999. </div>
  9000. </div>
  9001. <div class="toolSort" v-if="toolType == 3">
  9002. <div
  9003. class="tool"
  9004. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  9005. @click="addTools2(18)"
  9006. >
  9007. <div class="whiteBIcon">
  9008. <img
  9009. src="../../assets/icon/thirdToolList/trainPlatform.png"
  9010. alt
  9011. />
  9012. <div style="margin: 5px 0">训练平台</div>
  9013. </div>
  9014. <div class="check">
  9015. <div
  9016. v-if="checktoolArray.indexOf(18) == -1"
  9017. class="noChoose"
  9018. ></div>
  9019. <div v-else class="isChoose"></div>
  9020. </div>
  9021. </div>
  9022. <div
  9023. class="tool"
  9024. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  9025. @click="addTools2(21)"
  9026. >
  9027. <div class="whiteBIcon">
  9028. <img src="../../assets/icon/fourthToolList/program.png" alt />
  9029. <div style="margin: 5px 0">AIoT Blockly</div>
  9030. </div>
  9031. <div class="check">
  9032. <div
  9033. v-if="checktoolArray.indexOf(21) == -1"
  9034. class="noChoose"
  9035. ></div>
  9036. <div v-else class="isChoose"></div>
  9037. </div>
  9038. </div>
  9039. <div
  9040. class="tool"
  9041. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  9042. @click="addTools2(23)"
  9043. >
  9044. <div class="whiteBIcon">
  9045. <img
  9046. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  9047. alt
  9048. />
  9049. <div style="margin: 5px 0">AI Python</div>
  9050. </div>
  9051. <div class="check">
  9052. <div
  9053. v-if="checktoolArray.indexOf(23) == -1"
  9054. class="noChoose"
  9055. ></div>
  9056. <div v-else class="isChoose"></div>
  9057. </div>
  9058. </div>
  9059. <div
  9060. class="tool"
  9061. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  9062. @click="addTools2(24)"
  9063. >
  9064. <div class="whiteBIcon">
  9065. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  9066. <div style="margin: 5px 0">AI Blockly</div>
  9067. </div>
  9068. <div class="check">
  9069. <div
  9070. v-if="checktoolArray.indexOf(24) == -1"
  9071. class="noChoose"
  9072. ></div>
  9073. <div v-else class="isChoose"></div>
  9074. </div>
  9075. </div>
  9076. <div
  9077. class="tool"
  9078. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  9079. @click="addTools2(32)"
  9080. >
  9081. <div class="whiteBIcon">
  9082. <img src="../../assets/icon/thirdToolList/code.png" alt />
  9083. <div style="margin: 5px 0">源码编辑</div>
  9084. </div>
  9085. <div class="check">
  9086. <div
  9087. v-if="checktoolArray.indexOf(32) == -1"
  9088. class="noChoose"
  9089. ></div>
  9090. <div v-else class="isChoose"></div>
  9091. </div>
  9092. </div>
  9093. <div
  9094. class="tool"
  9095. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  9096. @click="addTools2(57)"
  9097. >
  9098. <div class="whiteBIcon">
  9099. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  9100. <div style="margin: 5px 0">CocoPi</div>
  9101. </div>
  9102. <div class="check">
  9103. <div
  9104. v-if="checktoolArray.indexOf(57) == -1"
  9105. class="noChoose"
  9106. ></div>
  9107. <div v-else class="isChoose"></div>
  9108. </div>
  9109. </div>
  9110. <div
  9111. class="tool"
  9112. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  9113. @click="addTools2(63)"
  9114. >
  9115. <div class="whiteBIcon">
  9116. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  9117. <div style="margin: 5px 0">海龟编程</div>
  9118. </div>
  9119. <div class="check">
  9120. <div
  9121. v-if="checktoolArray.indexOf(63) == -1"
  9122. class="noChoose"
  9123. ></div>
  9124. <div v-else class="isChoose"></div>
  9125. </div>
  9126. </div>
  9127. <div
  9128. class="tool"
  9129. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  9130. @click="addTools2(71)"
  9131. >
  9132. <div class="whiteBIcon">
  9133. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  9134. <div style="margin: 5px 0">AI智能体</div>
  9135. </div>
  9136. <div class="check">
  9137. <div
  9138. v-if="checktoolArray.indexOf(71) == -1"
  9139. class="noChoose"
  9140. ></div>
  9141. <div v-else class="isChoose"></div>
  9142. </div>
  9143. </div>
  9144. </div>
  9145. <div class="toolSort" v-if="toolType == 7">
  9146. <div
  9147. class="tool"
  9148. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  9149. @click="addTools2(40)"
  9150. >
  9151. <div class="whiteBIcon">
  9152. <img src="../../assets/icon/secondToolList/eval.png" alt />
  9153. <div style="margin: 5px 0">个人评价</div>
  9154. </div>
  9155. <div class="check">
  9156. <div
  9157. v-if="checktoolArray.indexOf(40) == -1"
  9158. class="noChoose"
  9159. ></div>
  9160. <div v-else class="isChoose"></div>
  9161. </div>
  9162. </div>
  9163. </div>
  9164. <div class="toolSort" v-if="toolType == 5">
  9165. <div
  9166. class="tool"
  9167. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  9168. @click="addTools2(28)"
  9169. >
  9170. <div class="whiteBIcon">
  9171. <img
  9172. src="../../assets/icon/secondToolList/translation.png"
  9173. alt
  9174. />
  9175. <div style="margin: 5px 0">翻译</div>
  9176. </div>
  9177. <div class="check">
  9178. <div
  9179. v-if="checktoolArray.indexOf(28) == -1"
  9180. class="noChoose"
  9181. ></div>
  9182. <div v-else class="isChoose"></div>
  9183. </div>
  9184. </div>
  9185. <div
  9186. class="tool"
  9187. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  9188. @click="addTools2(31)"
  9189. >
  9190. <div class="whiteBIcon">
  9191. <img
  9192. src="../../assets/icon/secondToolList/networkPanel.png"
  9193. alt
  9194. />
  9195. <div style="margin: 5px 0">数字画板</div>
  9196. </div>
  9197. <div class="check">
  9198. <div
  9199. v-if="checktoolArray.indexOf(31) == -1"
  9200. class="noChoose"
  9201. ></div>
  9202. <div v-else class="isChoose"></div>
  9203. </div>
  9204. </div>
  9205. <div
  9206. class="tool"
  9207. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  9208. @click="addTools2(39)"
  9209. >
  9210. <div class="whiteBIcon">
  9211. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  9212. <div style="margin: 5px 0">GeoGebra</div>
  9213. </div>
  9214. <div class="check">
  9215. <div
  9216. v-if="checktoolArray.indexOf(39) == -1"
  9217. class="noChoose"
  9218. ></div>
  9219. <div v-else class="isChoose"></div>
  9220. </div>
  9221. </div>
  9222. <div
  9223. class="tool"
  9224. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  9225. @click="addTools2(66)"
  9226. >
  9227. <div class="whiteBIcon">
  9228. <img
  9229. src="../../assets/icon/secondToolList/formulaEdi.png"
  9230. alt
  9231. />
  9232. <div style="margin: 5px 0">公式编辑</div>
  9233. </div>
  9234. <div class="check">
  9235. <div
  9236. v-if="checktoolArray.indexOf(66) == -1"
  9237. class="noChoose"
  9238. ></div>
  9239. <div v-else class="isChoose"></div>
  9240. </div>
  9241. </div>
  9242. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  9243. <div class="whiteBIcon" @click="addTools2(67)">
  9244. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  9245. <div style="margin: 5px 0">分子结构</div>
  9246. </div>
  9247. <div class="check" @click="addTools2(67)">
  9248. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  9249. <div v-else class="isChoose"></div>
  9250. </div>
  9251. </div> -->
  9252. <div
  9253. class="tool"
  9254. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  9255. @click="addTools2(68)"
  9256. >
  9257. <div class="whiteBIcon">
  9258. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  9259. <div style="margin: 5px 0">时间轴</div>
  9260. </div>
  9261. <div class="check">
  9262. <div
  9263. v-if="checktoolArray.indexOf(68) == -1"
  9264. class="noChoose"
  9265. ></div>
  9266. <div v-else class="isChoose"></div>
  9267. </div>
  9268. </div>
  9269. <!-- <div
  9270. class="tool"
  9271. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  9272. @click="addTools2(69)"
  9273. >
  9274. <div class="whiteBIcon">
  9275. <img src="../../assets/icon/secondToolList/english.png" alt />
  9276. <div style="margin: 5px 0">英语写作</div>
  9277. </div>
  9278. <div class="check">
  9279. <div
  9280. v-if="checktoolArray.indexOf(69) == -1"
  9281. class="noChoose"
  9282. ></div>
  9283. <div v-else class="isChoose"></div>
  9284. </div>
  9285. </div> -->
  9286. </div>
  9287. <div class="toolSort" v-if="toolType == 4">
  9288. <div
  9289. class="tool"
  9290. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  9291. @click="addTools2(26)"
  9292. >
  9293. <div class="whiteBIcon">
  9294. <img
  9295. src="../../assets/icon/thirdToolList/courseDesign.png"
  9296. alt
  9297. />
  9298. <div style="margin: 5px 0">课程设计</div>
  9299. </div>
  9300. <div class="check">
  9301. <div
  9302. v-if="checktoolArray.indexOf(26) == -1"
  9303. class="noChoose"
  9304. ></div>
  9305. <div v-else class="isChoose"></div>
  9306. </div>
  9307. </div>
  9308. <div
  9309. class="tool"
  9310. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  9311. @click="addTools2(25)"
  9312. >
  9313. <div class="whiteBIcon">
  9314. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  9315. <div style="margin: 5px 0">目标管理</div>
  9316. </div>
  9317. <div class="check">
  9318. <div
  9319. v-if="checktoolArray.indexOf(25) == -1"
  9320. class="noChoose"
  9321. ></div>
  9322. <div v-else class="isChoose"></div>
  9323. </div>
  9324. </div>
  9325. </div>
  9326. </div>
  9327. </div>
  9328. <span
  9329. slot="footer"
  9330. class="dialog-footer"
  9331. style="display: block; text-align: center; padding: 0 0 10px 0"
  9332. >
  9333. <el-button @click="toolDialogVisible = false">取 消</el-button>
  9334. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  9335. </span>
  9336. </div>
  9337. <div
  9338. v-if="replyDialogVisible == true"
  9339. class="addDialogCss"
  9340. v-el-drag-dialog
  9341. >
  9342. <div class="pzTop">
  9343. <div class="teacherPz">
  9344. <div class="teacherPzImg">
  9345. <img src="../../assets/icon/teacherPz.png" alt="" />
  9346. </div>
  9347. <div style="margin-left: 10px; height: 25px">添加回复</div>
  9348. </div>
  9349. <div @click="replyDialogVisible = false">
  9350. <img src="../../assets/close1.png" class="pzClose" alt="" />
  9351. </div>
  9352. </div>
  9353. <div class="addPzBox">
  9354. <!-- <div class="addPzCheck">
  9355. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9356. >文本</span
  9357. >
  9358. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9359. >音频</span
  9360. >
  9361. </div> -->
  9362. <div style="height: calc(100% - 50px)">
  9363. <editor-bar
  9364. class="binfo_input pzConText"
  9365. style="width: 100% !important; margin: 0 auto"
  9366. placeholder="请输入回复描述"
  9367. v-model="reply"
  9368. @change="change"
  9369. ></editor-bar>
  9370. </div>
  9371. <div class="addTextCss" @click="addHf">确定</div>
  9372. </div>
  9373. </div>
  9374. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  9375. <div class="pzTop">
  9376. <div class="teacherPz">
  9377. <div class="teacherPzImg">
  9378. <img src="../../assets/icon/teacherPz.png" alt="" />
  9379. </div>
  9380. <div style="margin-left: 10px; height: 25px">教师评论</div>
  9381. </div>
  9382. <div @click="addPzDialog = false">
  9383. <img src="../../assets/close1.png" class="pzClose" alt="" />
  9384. </div>
  9385. </div>
  9386. <div class="addPzBox">
  9387. <div class="addPzCheck">
  9388. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9389. >文本</span
  9390. >
  9391. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  9392. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9393. >音频</span
  9394. >
  9395. </div>
  9396. <div style="height: calc(100% - 95px)">
  9397. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  9398. v-if="pzType == 1"></textarea> -->
  9399. <editor-bar
  9400. class="binfo_input pzConText"
  9401. style="width: 100% !important"
  9402. placeholder="请输入任务描述"
  9403. v-model="pzConText"
  9404. @change="change"
  9405. v-if="pzType == 1"
  9406. ></editor-bar>
  9407. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  9408. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  9409. <div @click="addImg($event)">
  9410. <el-button type="primary">上传图片</el-button>
  9411. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  9412. @change="beforeUpload1($event, 4)" />
  9413. </div>
  9414. </div> -->
  9415. </div>
  9416. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  9417. 确定
  9418. </div>
  9419. </div>
  9420. </div>
  9421. <div v-if="proVisible" class="mask">
  9422. <div class="progressBox">
  9423. <!-- <div id="closePro" class="closeCss">
  9424. <img src="../../assets/icon/close.png" alt />
  9425. </div> -->
  9426. <div class="lbox">
  9427. <img src="../../assets/loading.gif" />上传中,请稍后
  9428. </div>
  9429. <div style="margin-bottom: 10px">
  9430. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  9431. </div>
  9432. <el-progress
  9433. :text-inside="true"
  9434. :stroke-width="20"
  9435. :percentage="progress"
  9436. style="width: 80%"
  9437. ></el-progress>
  9438. </div>
  9439. </div>
  9440. <div v-if="proVisible2" class="mask">
  9441. <div class="progressBox">
  9442. <div class="lbox">
  9443. <img src="../../assets/loading.gif" />上传中,请稍后
  9444. </div>
  9445. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  9446. </div>
  9447. </div>
  9448. <el-dialog :visible.sync="pictureDialog" size="tiny">
  9449. <img width="100%" :src="dialogImageUrl" alt />
  9450. </el-dialog>
  9451. <el-dialog
  9452. :title="noteName != '' ? noteName : '查看问卷'"
  9453. :visible.sync="dialogVisible5"
  9454. :append-to-body="true"
  9455. width="1000px"
  9456. :before-close="handleClose"
  9457. class="dialog_diy dialog_diy3"
  9458. >
  9459. <div>
  9460. <div
  9461. class="a_add_title"
  9462. style="
  9463. display: flex;
  9464. flex-direction: row;
  9465. align-items: center;
  9466. justify-content: center;
  9467. "
  9468. >
  9469. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9470. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9471. </div>
  9472. <div class="a_addBox">
  9473. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9474. 题目内容
  9475. </div>
  9476. <div
  9477. class="a_add_box"
  9478. v-for="(item1, index1) in askJson.askCount"
  9479. :key="index1"
  9480. >
  9481. <div class="a_add_head">
  9482. <div style="display: flex">
  9483. <span class="askIndex"> {{ index1 + 1 }}</span>
  9484. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9485. </div>
  9486. <img
  9487. v-if="askJson.askJson[index1].img"
  9488. :src="askJson.askJson[index1].img"
  9489. style="height: 300px; margin-top: 10px; max-width: 100%"
  9490. />
  9491. </div>
  9492. <div class="a_add_body">
  9493. <div class="a_add_input">
  9494. <el-radio-group
  9495. v-model="radio[index1]"
  9496. v-if="
  9497. askJson.askJson[index1].type == '1' ||
  9498. !askJson.askJson[index1].type
  9499. "
  9500. >
  9501. <el-radio
  9502. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9503. .checkList"
  9504. :key="checkIndex"
  9505. :label="checkIndex"
  9506. :disabled="isAnswer"
  9507. class="redioStyle"
  9508. ><span v-html="item2"></span
  9509. ></el-radio>
  9510. </el-radio-group>
  9511. <el-checkbox-group
  9512. v-model="radio[index1]"
  9513. v-if="askJson.askJson[index1].type == '2'"
  9514. >
  9515. <el-checkbox
  9516. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9517. .checkList"
  9518. :key="checkIndex1"
  9519. :label="checkIndex1"
  9520. :disabled="isAnswer"
  9521. class="redioStyle"
  9522. ><span v-html="item2"></span>
  9523. </el-checkbox>
  9524. </el-checkbox-group>
  9525. </div>
  9526. </div>
  9527. </div>
  9528. </div>
  9529. </div>
  9530. <span slot="footer" class="dialog-footer">
  9531. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  9532. >取 消</el-button
  9533. >
  9534. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  9535. >确 定</el-button
  9536. >
  9537. </span>
  9538. </el-dialog>
  9539. <el-dialog
  9540. :title="noteName != '' ? noteName : '查看问卷'"
  9541. :visible.sync="dialogVisible5Teacher"
  9542. :append-to-body="true"
  9543. width="1000px"
  9544. :before-close="handleClose"
  9545. class="dialog_diy dialog_diy3"
  9546. >
  9547. <div>
  9548. <div class="w_name">
  9549. 学生姓名:<span>{{ sStudent.student }}</span>
  9550. </div>
  9551. <div
  9552. class="a_add_title"
  9553. style="
  9554. display: flex;
  9555. flex-direction: row;
  9556. align-items: center;
  9557. justify-content: center;
  9558. "
  9559. >
  9560. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9561. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9562. </div>
  9563. <div class="a_addBox">
  9564. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9565. 题目内容
  9566. </div>
  9567. <div
  9568. class="a_add_box"
  9569. v-for="(item1, index1) in askJson.askCount"
  9570. :key="index1"
  9571. >
  9572. <div class="a_add_head">
  9573. <div style="display: flex">
  9574. <span class="askIndex">{{ index1 + 1 }}</span>
  9575. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9576. </div>
  9577. <img
  9578. v-if="askJson.askJson[index1].img"
  9579. :src="askJson.askJson[index1].img"
  9580. style="height: 300px; margin-top: 10px; max-width: 100%"
  9581. />
  9582. </div>
  9583. <div class="a_add_body">
  9584. <div class="a_add_input">
  9585. <el-radio-group
  9586. v-model="radio[index1]"
  9587. v-if="
  9588. askJson.askJson[index1].type == '1' ||
  9589. !askJson.askJson[index1].type
  9590. "
  9591. >
  9592. <el-radio
  9593. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9594. .checkList"
  9595. :key="checkIndex"
  9596. :label="checkIndex"
  9597. :disabled="isAnswer"
  9598. class="redioStyle"
  9599. ><span v-html="item2"></span
  9600. ></el-radio>
  9601. </el-radio-group>
  9602. <el-checkbox-group
  9603. v-model="radio[index1]"
  9604. v-if="askJson.askJson[index1].type == '2'"
  9605. >
  9606. <el-checkbox
  9607. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9608. .checkList"
  9609. :key="checkIndex1"
  9610. :label="checkIndex1"
  9611. :disabled="isAnswer"
  9612. class="redioStyle"
  9613. ><span v-html="item2"></span>
  9614. </el-checkbox>
  9615. </el-checkbox-group>
  9616. </div>
  9617. </div>
  9618. </div>
  9619. </div>
  9620. </div>
  9621. <span slot="footer" class="dialog-footer">
  9622. <el-button
  9623. @click="dialogVisible5Teacher = false"
  9624. v-show="noteName == ''"
  9625. >取 消</el-button
  9626. >
  9627. <el-button
  9628. type="primary"
  9629. @click="addStudentAskTeacher"
  9630. v-show="noteName == ''"
  9631. >确 定</el-button
  9632. >
  9633. </span>
  9634. </el-dialog>
  9635. <el-dialog
  9636. :title="noteName != '' ? noteName : '查看选择题'"
  9637. :visible.sync="dialogVisibleChoice"
  9638. :append-to-body="true"
  9639. width="1000px"
  9640. :before-close="handleClose"
  9641. class="dialog_diy dialog_diy3"
  9642. >
  9643. <div>
  9644. <!-- <div class="a_add_title" style="
  9645. display: flex;
  9646. flex-direction: row;
  9647. align-items: center;
  9648. justify-content: center;
  9649. ">
  9650. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9651. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9652. </div> -->
  9653. <div class="a_addBox">
  9654. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9655. 题目内容
  9656. </div>
  9657. <div
  9658. class="a_add_box"
  9659. v-for="(item1, index1) in testJson.testCount"
  9660. :key="index1"
  9661. >
  9662. <div class="a_add_head">
  9663. <div style="display: flex;">
  9664. <span class="askIndex">{{ index1 + 1 }}</span>
  9665. <div
  9666. v-if="testJson.testJson[index1].type == '1'"
  9667. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9668. >
  9669. (单选题)
  9670. </div>
  9671. <div
  9672. v-if="testJson.testJson[index1].type == '2'"
  9673. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9674. >
  9675. (多选题)
  9676. </div>
  9677. <div class="renderedFor">题目:<span v-html="renderedFormula(testJson.testJson[index1].teststitle)"></span></div>
  9678. </div>
  9679. <img
  9680. v-if="testJson.testJson[index1].img"
  9681. :src="testJson.testJson[index1].img"
  9682. style="height: 300px; margin-top: 10px; max-width: 100%"
  9683. />
  9684. </div>
  9685. <div
  9686. class="timuImgBox"
  9687. v-if="
  9688. testJson.testJson[index1].timuList &&
  9689. testJson.testJson[index1].timuList.length
  9690. "
  9691. >
  9692. <div
  9693. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9694. :key="tIndex"
  9695. class="timuImg"
  9696. @click.stop="previewImg(timg.src)"
  9697. >
  9698. <img :src="timg.src" alt="" />
  9699. </div>
  9700. </div>
  9701. <div class="a_add_body">
  9702. <div class="a_add_input">
  9703. <el-radio-group
  9704. v-model="radio[index1]"
  9705. v-if="testJson.testJson[index1].type == '1'"
  9706. >
  9707. <div class="radioBox">
  9708. <el-radio
  9709. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9710. .checkList"
  9711. :key="checkIndex"
  9712. :label="checkIndex"
  9713. :disabled="isAnswer"
  9714. class="redioStyle"
  9715. >
  9716. <div
  9717. style="margin-right: 10px"
  9718. v-if="item2 && item2.imgType && item2.imgType == 1"
  9719. >
  9720. <div class="inImg" @click.stop="previewImg(item2.src)">
  9721. <img :src="item2.src" alt="" />
  9722. </div>
  9723. </div>
  9724. <span v-else v-html="item2"></span>
  9725. </el-radio>
  9726. </div>
  9727. </el-radio-group>
  9728. <el-checkbox-group
  9729. v-model="radio[index1]"
  9730. v-if="testJson.testJson[index1].type == '2'"
  9731. >
  9732. <div class="radioBox">
  9733. <el-checkbox
  9734. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9735. .checkList"
  9736. :key="checkIndex"
  9737. :label="checkIndex"
  9738. :disabled="isAnswer"
  9739. class="redioStyle"
  9740. >
  9741. <div
  9742. style="margin-right: 10px"
  9743. v-if="item2 && item2.imgType && item2.imgType == 1"
  9744. >
  9745. <div class="inImg" @click.stop="previewImg(item2.src)">
  9746. <img :src="item2.src" alt="" />
  9747. </div>
  9748. </div>
  9749. <span v-else v-html="item2"></span>
  9750. </el-checkbox>
  9751. </div>
  9752. </el-checkbox-group>
  9753. </div>
  9754. </div>
  9755. </div>
  9756. </div>
  9757. </div>
  9758. <span slot="footer" class="dialog-footer">
  9759. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9760. >取 消</el-button
  9761. >
  9762. <el-button
  9763. type="primary"
  9764. @click="addStudentTest"
  9765. v-show="noteName == ''"
  9766. >确 定</el-button
  9767. >
  9768. </span>
  9769. </el-dialog>
  9770. <el-dialog
  9771. :title="noteName != '' ? noteName : '查看选择题'"
  9772. :visible.sync="dialogVisibleChoiceTeacher"
  9773. :append-to-body="true"
  9774. width="1000px"
  9775. :before-close="handleClose"
  9776. class="dialog_diy dialog_diy3"
  9777. >
  9778. <div>
  9779. <div class="w_name">
  9780. 学生姓名:<span>{{ sStudent.student }}</span>
  9781. </div>
  9782. <div class="a_addBox">
  9783. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9784. 题目内容
  9785. </div>
  9786. <div
  9787. class="a_add_box"
  9788. v-for="(item1, index1) in testJson.testCount"
  9789. :key="index1"
  9790. >
  9791. <div class="a_add_head">
  9792. <div style="display: flex">
  9793. <span class="askIndex">{{ index1 + 1 }}</span>
  9794. <div
  9795. v-if="testJson.testJson[index1].type == '1'"
  9796. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9797. >
  9798. (单选题)
  9799. </div>
  9800. <div
  9801. v-if="testJson.testJson[index1].type == '2'"
  9802. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9803. >
  9804. (多选题)
  9805. </div>
  9806. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9807. </div>
  9808. <img
  9809. v-if="testJson.testJson[index1].img"
  9810. :src="testJson.testJson[index1].img"
  9811. style="height: 300px; margin-top: 10px; max-width: 100%"
  9812. />
  9813. </div>
  9814. <div
  9815. class="timuImgBox"
  9816. v-if="
  9817. testJson.testJson[index1].timuList &&
  9818. testJson.testJson[index1].timuList.length
  9819. "
  9820. >
  9821. <div
  9822. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9823. :key="tIndex"
  9824. class="timuImg"
  9825. @click.stop="previewImg(timg.src)"
  9826. >
  9827. <img :src="timg.src" alt="" />
  9828. </div>
  9829. </div>
  9830. <div class="a_add_body">
  9831. <div class="a_add_input">
  9832. <el-radio-group
  9833. v-model="radio[index1]"
  9834. v-if="testJson.testJson[index1].type == '1'"
  9835. >
  9836. <div class="radioBox">
  9837. <el-radio
  9838. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9839. .checkList"
  9840. :key="checkIndex"
  9841. :label="checkIndex"
  9842. :disabled="isAnswer"
  9843. class="redioStyle"
  9844. >
  9845. <div
  9846. style="margin-right: 10px"
  9847. v-if="item2 && item2.imgType && item2.imgType == 1"
  9848. >
  9849. <div class="inImg" @click.stop="previewImg(item2.src)">
  9850. <img :src="item2.src" alt="" />
  9851. </div>
  9852. </div>
  9853. <span v-else v-html="item2"></span>
  9854. </el-radio>
  9855. </div>
  9856. </el-radio-group>
  9857. <el-checkbox-group
  9858. v-model="radio[index1]"
  9859. v-if="testJson.testJson[index1].type == '2'"
  9860. >
  9861. <div class="radioBox">
  9862. <el-checkbox
  9863. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9864. .checkList"
  9865. :key="checkIndex"
  9866. :label="checkIndex"
  9867. :disabled="isAnswer"
  9868. class="redioStyle"
  9869. >
  9870. <div
  9871. style="margin-right: 10px"
  9872. v-if="item2 && item2.imgType && item2.imgType == 1"
  9873. >
  9874. <div class="inImg" @click.stop="previewImg(item2.src)">
  9875. <img :src="item2.src" alt="" />
  9876. </div>
  9877. </div>
  9878. <span v-else v-html="item2"></span>
  9879. </el-checkbox>
  9880. </div>
  9881. </el-checkbox-group>
  9882. </div>
  9883. </div>
  9884. </div>
  9885. </div>
  9886. </div>
  9887. <span slot="footer" class="dialog-footer">
  9888. <el-button
  9889. @click="dialogVisibleChoiceTeacher = false"
  9890. v-show="noteName == ''"
  9891. >取 消</el-button
  9892. >
  9893. <el-button
  9894. type="primary"
  9895. @click="addStudentTestTeacher"
  9896. v-show="noteName == ''"
  9897. >确 定</el-button
  9898. >
  9899. </span>
  9900. </el-dialog>
  9901. <el-dialog
  9902. title="查看富文本"
  9903. :visible.sync="dialogVisible1"
  9904. :append-to-body="true"
  9905. width="500px"
  9906. :before-close="handleClose"
  9907. class="dialog_diy textCss"
  9908. >
  9909. <el-form style="font-size: 20px">
  9910. <el-form-item label="文本标题" class="textTitle">
  9911. <div style="font-size: 20px">{{ text.name }}</div>
  9912. </el-form-item>
  9913. <div>富文本内容</div>
  9914. <div
  9915. v-html="text.url"
  9916. style="font-size: 18px; padding: 40px 0 0 0"
  9917. ></div>
  9918. </el-form>
  9919. <span slot="footer" class="dialog-footer">
  9920. <el-button type="primary" @click="dialogVisible1 = false"
  9921. >确定</el-button
  9922. >
  9923. </span>
  9924. </el-dialog>
  9925. <el-dialog
  9926. title="文件预览"
  9927. :visible.sync="dialogVisible3"
  9928. width="50%"
  9929. :before-close="handleClose"
  9930. class="dialog_diy"
  9931. :class="{ fullStyle: full }"
  9932. >
  9933. <div slot="title" class="header-title">
  9934. <div style="color: #fff">文件预览</div>
  9935. <div style="position: absolute; top: 19px; right: 50px">
  9936. <img
  9937. src="../../assets/full.png"
  9938. style="height: 16px; cursor: pointer"
  9939. alt=""
  9940. @click="fullTools"
  9941. />
  9942. </div>
  9943. </div>
  9944. <pdf
  9945. v-if="showPDF"
  9946. :pdfUrl="pptImgUrl"
  9947. style="width: 100%; height: 520px; overflow: auto"
  9948. :class="{ fullStyle: full }"
  9949. ></pdf>
  9950. <iframe
  9951. v-else
  9952. :src="pptImgUrl"
  9953. frameborder="0"
  9954. width="100%"
  9955. height="600"
  9956. :class="{ fullStyle: full }"
  9957. ></iframe>
  9958. </el-dialog>
  9959. <el-dialog
  9960. title="文件预览"
  9961. :visible.sync="dialogVisible6"
  9962. width="50%"
  9963. :before-close="handleClose"
  9964. class="dialog_diy"
  9965. >
  9966. <iframe
  9967. :src="pptImgUrl1"
  9968. frameborder="0"
  9969. width="100%"
  9970. height="600"
  9971. ></iframe>
  9972. </el-dialog>
  9973. <el-dialog
  9974. title="提示"
  9975. :visible.sync="dialogVisible4"
  9976. :append-to-body="true"
  9977. width="800px"
  9978. :before-close="handleClose"
  9979. class="dialog_diy notice"
  9980. >
  9981. <div>此功能暂未开放!</div>
  9982. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9983. </el-dialog>
  9984. <el-dialog
  9985. title="问答"
  9986. :visible.sync="answerDialogVisible"
  9987. :append-to-body="true"
  9988. width="800px"
  9989. :before-close="handleClose"
  9990. class="dialog_diy"
  9991. >
  9992. <div>
  9993. <div
  9994. style="
  9995. display: flex;
  9996. flex-wrap: nowrap;
  9997. flex-direction: column;
  9998. position: relative;
  9999. "
  10000. >
  10001. <div class="queTop" style="padding: 20px 0 20px 0">
  10002. <div class="question">
  10003. <img src="../../assets/icon/question.png" alt />
  10004. </div>
  10005. <div class="queTitle">
  10006. <div style="width: 90px; min-width: 90px">提问:</div>
  10007. <div>{{ answerQ }}</div>
  10008. </div>
  10009. </div>
  10010. <div class="ediBottom">
  10011. <textarea
  10012. rows="6"
  10013. class="binfo_input"
  10014. cols
  10015. style="width: 95%; height: 120px"
  10016. v-model="questionAnswer"
  10017. ></textarea>
  10018. </div>
  10019. </div>
  10020. </div>
  10021. <div slot="footer">
  10022. <el-button @click="answerDialogVisible = false">取 消</el-button>
  10023. <el-button type="primary" @click="addQuestion">提 交</el-button>
  10024. </div>
  10025. </el-dialog>
  10026. <el-dialog
  10027. title="问答"
  10028. :visible.sync="answerDialogVisibleTeacher"
  10029. :append-to-body="true"
  10030. width="800px"
  10031. :before-close="handleClose"
  10032. class="dialog_diy"
  10033. >
  10034. <div>
  10035. <div class="w_name">
  10036. 学生姓名:<span>{{ sStudent.student }}</span>
  10037. </div>
  10038. <div
  10039. style="
  10040. display: flex;
  10041. flex-wrap: nowrap;
  10042. flex-direction: column;
  10043. position: relative;
  10044. "
  10045. >
  10046. <div class="queTop" style="padding: 20px 0 20px 0">
  10047. <div class="question">
  10048. <img src="../../assets/icon/question.png" alt />
  10049. </div>
  10050. <div class="queTitle">
  10051. <div style="width: 90px; min-width: 90px">提问:</div>
  10052. <div>{{ answerQ }}</div>
  10053. </div>
  10054. </div>
  10055. <div class="ediBottom">
  10056. <textarea
  10057. rows="6"
  10058. class="binfo_input"
  10059. cols
  10060. style="width: 95%; height: 120px"
  10061. v-model="questionAnswer"
  10062. ></textarea>
  10063. </div>
  10064. </div>
  10065. </div>
  10066. <div slot="footer">
  10067. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  10068. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  10069. </div>
  10070. </el-dialog>
  10071. <el-dialog
  10072. title="倒计时"
  10073. :visible.sync="timeDialogVisible"
  10074. :append-to-body="true"
  10075. width="800px"
  10076. :before-close="handleClose"
  10077. class="dialog_diy"
  10078. >
  10079. <div>
  10080. <div style="margin-bottom: 20px; color: #999">
  10081. 提示:点击“+”或“-”修改倒计时时长。
  10082. </div>
  10083. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  10084. </div>
  10085. <div slot="footer">
  10086. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  10087. </div>
  10088. </el-dialog>
  10089. <el-dialog
  10090. title="权限设置"
  10091. :visible.sync="juriVisible"
  10092. :append-to-body="true"
  10093. width="400px"
  10094. :before-close="handleClose"
  10095. class="dialog_diy"
  10096. >
  10097. <div>
  10098. <div class="open_box">
  10099. <div class="switch_box">
  10100. <span>允许学生查看所有作业</span>
  10101. <el-switch
  10102. v-model="sIsOpen"
  10103. active-text=""
  10104. class="switchCss"
  10105. @change="updateSLook"
  10106. ></el-switch>
  10107. </div>
  10108. <div
  10109. class="switch_box"
  10110. v-if="
  10111. (courseDetail.userid == userid ||
  10112. (courseDetail.course_teacher &&
  10113. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen
  10114. "
  10115. >
  10116. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  10117. <span>禁止学生查看阶段</span>
  10118. <el-switch
  10119. v-model="IsLookOpen"
  10120. active-text=""
  10121. class="switchCss"
  10122. @change="updateLookOpen"
  10123. ></el-switch>
  10124. </div>
  10125. <div class="switch_box" v-if="courseDetail.userid == userid">
  10126. <span>开启跟随模式</span>
  10127. <el-switch
  10128. v-model="IsFollow"
  10129. active-text=""
  10130. class="switchCss"
  10131. @change="updateFollow"
  10132. ></el-switch>
  10133. </div>
  10134. <div class="switch_box" v-if="courseDetail.userid == userid">
  10135. <span>允许学生查看内容资料</span>
  10136. <el-switch
  10137. v-model="IsStulook"
  10138. active-text=""
  10139. class="switchCss"
  10140. @change="updateIsStulook"
  10141. ></el-switch>
  10142. </div>
  10143. </div>
  10144. </div>
  10145. <div slot="footer">
  10146. <el-button
  10147. style="background: #409efe; color: #fff"
  10148. @click="juriVisible = false"
  10149. >关 闭</el-button
  10150. >
  10151. </div>
  10152. </el-dialog>
  10153. <el-dialog
  10154. title="查看视频"
  10155. :visible.sync="videoVisible"
  10156. :append-to-body="true"
  10157. width="1000px"
  10158. :before-close="handleClose"
  10159. class="dialog_diy1"
  10160. >
  10161. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  10162. <video-player
  10163. class="video-player vjs-custom-skin"
  10164. :playsinline="true"
  10165. :options="videoDetail"
  10166. @play="onPlayerPlay($event)"
  10167. style="width: 100%; height: 100%"
  10168. ></video-player>
  10169. </div>
  10170. <div slot="footer">
  10171. <el-button
  10172. style="background: #409efe; color: #fff"
  10173. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  10174. >
  10175. 关 闭</el-button
  10176. >
  10177. </div>
  10178. </el-dialog>
  10179. <el-dialog
  10180. title="查看详情"
  10181. :visible.sync="commentDialogVisible"
  10182. :append-to-body="true"
  10183. width="800px"
  10184. :before-close="handleClose"
  10185. class="dialog_diy"
  10186. >
  10187. <div class="commentTop">
  10188. <div class="studentDetail">
  10189. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10190. <div class="nameAndTime">
  10191. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10192. <div>{{ commentDetail.time }}</div>
  10193. </div>
  10194. <div
  10195. class="returnBtn"
  10196. style="margin-left: auto; width: 80px"
  10197. v-if="
  10198. commentDetail.works &&
  10199. commentDetail.type == 0 &&
  10200. (tType == 1 || tType == 4)
  10201. "
  10202. @click="
  10203. showPicturePaint(
  10204. commentDetail.img ? commentDetail.img : commentDetail.works
  10205. )
  10206. "
  10207. >
  10208. 教师批注
  10209. </div>
  10210. </div>
  10211. <div
  10212. class="worksAnswer"
  10213. v-if="commentDetail.works && commentDetail.type == 2"
  10214. >
  10215. {{ JSON.parse(commentDetail.works)[0].answer }}
  10216. </div>
  10217. <div
  10218. class="worksAnswer"
  10219. v-if="commentDetail.works && commentDetail.type == 1"
  10220. >
  10221. <img
  10222. src="../../assets/teacherWork.png"
  10223. v-if="commentDetail.ateacher"
  10224. class="w_teachert"
  10225. />
  10226. <pdf
  10227. v-if="showPDF"
  10228. :pdfUrl="pptImgUrl"
  10229. style="width: 100%; height: 520px; overflow: auto"
  10230. :class="{ fullStyle: full }"
  10231. ></pdf>
  10232. <iframe
  10233. v-else
  10234. :src="pptImgUrl"
  10235. frameborder="0"
  10236. width="100%"
  10237. height="600"
  10238. :class="{ fullStyle: full }"
  10239. ></iframe>
  10240. </div>
  10241. <div
  10242. class="worksAnswer"
  10243. v-if="commentDetail.works && commentDetail.type == 0"
  10244. >
  10245. <img
  10246. src="../../assets/teacherWork.png"
  10247. v-if="commentDetail.ateacher"
  10248. class="w_teachert"
  10249. style="right: 105px"
  10250. />
  10251. <img
  10252. :src="commentDetail.works"
  10253. alt=""
  10254. @click="previewImg(commentDetail.works)"
  10255. />
  10256. </div>
  10257. <div
  10258. class="worksAnswer"
  10259. v-if="commentDetail.works && commentDetail.type == 3"
  10260. >
  10261. <img
  10262. src="../../assets/teacherWork.png"
  10263. v-if="commentDetail.ateacher"
  10264. class="w_teachert"
  10265. />
  10266. <video-player
  10267. class="video-player vjs-custom-skin"
  10268. :playsinline="true"
  10269. :options="videoDetail"
  10270. @play="onPlayerPlay($event)"
  10271. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10272. ></video-player>
  10273. </div>
  10274. <div
  10275. class="worksAnswer"
  10276. v-if="commentDetail.works && commentDetail.type == 10"
  10277. >
  10278. <div class="cont" v-html="commentDetail.works.text"></div>
  10279. </div>
  10280. <div
  10281. class="worksAnswer codeFileBox"
  10282. v-if="commentDetail.works && commentDetail.type == 12"
  10283. @click="downloadFile(commentDetail.works)"
  10284. >
  10285. <img src="../../assets/icon/codeFile.png" />
  10286. <div>点击下载文件</div>
  10287. </div>
  10288. <div
  10289. class="worksAnswer codeFileBox"
  10290. v-if="commentDetail.works && commentDetail.type == 15"
  10291. @click="
  10292. openCocoPi(
  10293. 57,
  10294. commentIndexJson.toolIndex,
  10295. commentDetail.userid,
  10296. commentDetail.sName
  10297. )
  10298. "
  10299. >
  10300. <img src="../../assets/icon/codeFile.png" />
  10301. <div>点击打开CocoPi</div>
  10302. </div>
  10303. <div
  10304. class="worksAnswer"
  10305. v-if="commentDetail.works && commentDetail.type == 13"
  10306. >
  10307. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10308. </div>
  10309. <div
  10310. class="worksAnswer"
  10311. v-if="commentDetail.works && commentDetail.type == 4"
  10312. >
  10313. <div class="evalCss">
  10314. <div class="nav">请选择星星进行评分</div>
  10315. <div class="middleBox" v-if="eScore.eStar">
  10316. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10317. <div class="nameAndrate">
  10318. <div>{{ e.value }}</div>
  10319. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  10320. </div>
  10321. <div v-if="e.detail">{{ e.detail }}</div>
  10322. </div>
  10323. <div class="bz">
  10324. <textarea
  10325. disabled
  10326. rows="4"
  10327. class="pj"
  10328. style="
  10329. padding: 10px 5px;
  10330. width: 70%;
  10331. background: #f7f6f9;
  10332. font-size: 14px;
  10333. text-indent: 10px;
  10334. color: #000;
  10335. "
  10336. cols
  10337. v-model="eScore.eBzText"
  10338. placeholder="请输入评价内容..."
  10339. ></textarea>
  10340. </div>
  10341. </div>
  10342. </div>
  10343. </div>
  10344. <div class="comment">
  10345. <div class="commentList">
  10346. <div class="commentImg">
  10347. <img
  10348. @click="
  10349. isLikes(
  10350. commentDetail.wid,
  10351. userid,
  10352. 1,
  10353. null,
  10354. commentDetail.isLikes,
  10355. commentDetail.sName
  10356. )
  10357. "
  10358. :src="commentDetail.isLikes == true ? likes : noLikes"
  10359. alt=""
  10360. />
  10361. </div>
  10362. <div>{{ commentDetail.likesCount }}</div>
  10363. </div>
  10364. <div class="commentList">
  10365. <div class="commentImg">
  10366. <img src="../../assets/icon/comment/comment.png" alt="" />
  10367. </div>
  10368. <div>{{ commentDetail.commentCount }}</div>
  10369. </div>
  10370. </div>
  10371. <div class="drawPBox" v-if="commentDetail.img">
  10372. <span>教师批注</span>
  10373. <img
  10374. :src="commentDetail.img"
  10375. alt=""
  10376. @click="previewImg(commentDetail.img)"
  10377. />
  10378. <span
  10379. class="deleteImg"
  10380. v-if="tType == 1 || tType == 4"
  10381. @click.stop="deletePicturePaint(commentDetail.wid)"
  10382. style="
  10383. font-size: 14px;
  10384. width: auto !important;
  10385. color: #b4b4b4;
  10386. top: unset;
  10387. bottom: 0;
  10388. border: none;
  10389. padding: 0;
  10390. height: auto !important;
  10391. margin: 0;
  10392. "
  10393. >删除</span
  10394. >
  10395. </div>
  10396. </div>
  10397. <div class="commentBox">
  10398. <div class="pl">评论:</div>
  10399. <div style="max-height: 200px; overflow: auto">
  10400. <div
  10401. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  10402. style="padding: 10px 0 0 0"
  10403. >
  10404. <div
  10405. class="studentDetail"
  10406. style="padding-top: 10px"
  10407. v-for="(co, coIndex) in commentDetail.commentJson"
  10408. :key="coIndex"
  10409. >
  10410. <div class="tx" style="min-width: 50px">
  10411. <img src="../../assets/avatar.png" alt="" />
  10412. </div>
  10413. <div class="plPerson">
  10414. <div class="plName">
  10415. <div>{{ co.commentPeople }}</div>
  10416. <div style="margin-left: 5px">
  10417. {{ co.commentTime }}
  10418. </div>
  10419. <div
  10420. class="deleteComment"
  10421. v-if="userid == co.userid"
  10422. @click="deleteComment(co.wid)"
  10423. >
  10424. 删除
  10425. </div>
  10426. </div>
  10427. <div class="plContent">{{ co.commentText }}</div>
  10428. </div>
  10429. </div>
  10430. </div>
  10431. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  10432. </div>
  10433. </div>
  10434. <div style="margin-top: 10px">
  10435. <div class="displayBox">
  10436. <div
  10437. style="
  10438. color: #556db4;
  10439. font-size: 14px;
  10440. font-weight: bold;
  10441. padding-bottom: 10px;
  10442. "
  10443. >
  10444. 评价
  10445. </div>
  10446. <div class="easy_comment" v-if="false">
  10447. <div
  10448. v-for="(p, pIndex) in PlTextList"
  10449. :key="pIndex"
  10450. @click="fastText(p, 1)"
  10451. >
  10452. {{ p }}
  10453. </div>
  10454. </div>
  10455. </div>
  10456. <div>
  10457. <textarea
  10458. rows="3"
  10459. class="pj"
  10460. style="padding: 10px 5px"
  10461. cols
  10462. v-model="commentText"
  10463. placeholder="请输入评论"
  10464. ></textarea>
  10465. </div>
  10466. </div>
  10467. <div slot="footer">
  10468. <el-button
  10469. @click="
  10470. (commentDialogVisible = false),
  10471. (commentIndexJson = {}),
  10472. videoDetail.sources && videoDetail.sources[0]
  10473. ? (videoDetail.sources[0].src = '')
  10474. : ''
  10475. "
  10476. >取 消</el-button
  10477. >
  10478. <el-button
  10479. type="primary"
  10480. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  10481. >确 定</el-button
  10482. >
  10483. </div>
  10484. </el-dialog>
  10485. <el-dialog
  10486. title="查看文档"
  10487. :visible.sync="fullDialogVisible"
  10488. :append-to-body="true"
  10489. width="100%"
  10490. :before-close="handleClose"
  10491. :show-close="false"
  10492. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  10493. >
  10494. <div slot="title" class="header-title">
  10495. <div v-if="fulltype == 4" style="color: #fff">AI应用</div>
  10496. <div v-else style="color: #fff">查看文档</div>
  10497. <div
  10498. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  10499. style="
  10500. cursor: pointer;
  10501. position: absolute;
  10502. top: 20px;
  10503. right: 20px;
  10504. color: #fff;
  10505. "
  10506. >
  10507. 退出全屏
  10508. </div>
  10509. </div>
  10510. <div style="height: 100%;position: relative;">
  10511. <el-button
  10512. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  10513. size="medium"
  10514. type="primary"
  10515. @click="
  10516. () => {
  10517. (fullDialogVisible = false),
  10518. changeSplitScreenBehavior({ code: 99 });
  10519. }
  10520. "
  10521. style="
  10522. cursor: pointer;
  10523. position: absolute;
  10524. top: 10px;
  10525. right: 20px;
  10526. color: #fff;
  10527. "
  10528. >
  10529. 退出全屏
  10530. </el-button>
  10531. <div
  10532. class="wheel"
  10533. v-if="fulltype == 1"
  10534. style="
  10535. box-shadow: 0 0 6px 1px #f2f2f2;
  10536. height:100%;
  10537. width: 100%;
  10538. background: #f1f1f1;
  10539. "
  10540. >
  10541. <div class="title" style="width: 100%; box-sizing: border-box">
  10542. 查看文档
  10543. </div>
  10544. <el-form class="textBox" style="height: 90%">
  10545. <el-form-item class="textTitle">
  10546. <div style="font-size: 22px">
  10547. {{ fullUrl.name }}
  10548. </div>
  10549. </el-form-item>
  10550. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  10551. <div
  10552. v-html="fullUrl.url"
  10553. class="textContent"
  10554. style="height: auto"
  10555. ></div>
  10556. </el-form>
  10557. </div>
  10558. <div
  10559. class="wheel"
  10560. v-else-if="
  10561. (fulltype == 2 || fulltype == 4) &&
  10562. fullUrl.indexOf(
  10563. 'https://view.officeapps.live.com/op/view.aspx?src='
  10564. ) != -1
  10565. "
  10566. style="width: 100%;height:100%; margin: 0 auto"
  10567. >
  10568. <iframe
  10569. style="width: 100%; height: 100%; border: none"
  10570. :src="fullUrl"
  10571. ></iframe>
  10572. </div>
  10573. <iframe
  10574. style="width: 100%; height: 100%; border: none"
  10575. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  10576. 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"
  10577. :src="fullUrl"
  10578. ></iframe>
  10579. <iframe
  10580. style="width: 100%; height: 100%; border: none"
  10581. security="restricted"
  10582. v-else-if="(fulltype == 2 || fulltype == 4)"
  10583. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10584. :src="fullUrl"
  10585. ></iframe>
  10586. <pdf
  10587. v-else-if="fulltype == 3"
  10588. :pdfUrl="fullUrl"
  10589. style="width: 100%; height: 100%; overflow: auto"
  10590. ></pdf>
  10591. <iframe
  10592. style="width: 100%; height: 100%; border: none"
  10593. security="restricted"
  10594. v-if="(fulltype == 16)"
  10595. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10596. :src="fullUrl"
  10597. ></iframe>
  10598. </div>
  10599. <!-- <div slot="footer">
  10600. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  10601. </div> -->
  10602. </el-dialog>
  10603. <el-dialog
  10604. title="个人评价"
  10605. :visible.sync="studentEvalDialogVisible"
  10606. :append-to-body="true"
  10607. width="800px"
  10608. :before-close="handleClose"
  10609. class="dialog_diy"
  10610. >
  10611. <div class="evalCss">
  10612. <div class="nav">请选择星星进行评分</div>
  10613. <div class="middleBox" v-if="eScore.eStar">
  10614. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10615. <div class="nameAndrate">
  10616. <div>{{ e.value }}</div>
  10617. <el-rate
  10618. v-model="eScore.eStar[eIndex]"
  10619. :disabled="isStar"
  10620. ></el-rate>
  10621. </div>
  10622. <div v-if="e.detail">{{ e.detail }}</div>
  10623. </div>
  10624. <div class="easy_comment" v-if="false">
  10625. <div
  10626. v-for="(p, pIndex) in PlTextList"
  10627. :key="pIndex"
  10628. @click="fastText(p, 2)"
  10629. >
  10630. {{ p }}
  10631. </div>
  10632. </div>
  10633. <div class="bz">
  10634. <textarea
  10635. :disabled="isStar"
  10636. rows="4"
  10637. class="pj"
  10638. style="
  10639. padding: 10px 5px;
  10640. width: 70%;
  10641. background: #f7f6f9;
  10642. font-size: 14px;
  10643. text-indent: 10px;
  10644. "
  10645. cols
  10646. v-model="eScore.eBzText"
  10647. placeholder="请输入评价内容..."
  10648. ></textarea>
  10649. </div>
  10650. </div>
  10651. </div>
  10652. <div slot="footer">
  10653. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10654. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10655. >确 定</el-button
  10656. >
  10657. </div>
  10658. </el-dialog>
  10659. <el-dialog
  10660. title="个人评价"
  10661. :visible.sync="studentEvalDialogVisibleTeacher"
  10662. :append-to-body="true"
  10663. width="800px"
  10664. :before-close="handleClose"
  10665. class="dialog_diy"
  10666. >
  10667. <div class="w_name">
  10668. 学生姓名:<span>{{ sStudent.student }}</span>
  10669. </div>
  10670. <div class="evalCss">
  10671. <div class="nav">请选择星星进行评分</div>
  10672. <div class="middleBox" v-if="eScore.eStar">
  10673. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10674. <div class="nameAndrate">
  10675. <div>{{ e.value }}</div>
  10676. <el-rate
  10677. v-model="eScore.eStar[eIndex]"
  10678. :disabled="isStar"
  10679. ></el-rate>
  10680. </div>
  10681. <div v-if="e.detail">{{ e.detail }}</div>
  10682. </div>
  10683. <div class="easy_comment" v-if="false">
  10684. <div
  10685. v-for="(p, pIndex) in PlTextList"
  10686. :key="pIndex"
  10687. @click="fastText(p, 2)"
  10688. >
  10689. {{ p }}
  10690. </div>
  10691. </div>
  10692. <div class="bz">
  10693. <textarea
  10694. :disabled="isStar"
  10695. rows="4"
  10696. class="pj"
  10697. style="
  10698. padding: 10px 5px;
  10699. width: 70%;
  10700. background: #f7f6f9;
  10701. font-size: 14px;
  10702. text-indent: 10px;
  10703. "
  10704. cols
  10705. v-model="eScore.eBzText"
  10706. placeholder="请输入评价内容..."
  10707. ></textarea>
  10708. </div>
  10709. </div>
  10710. </div>
  10711. <div slot="footer">
  10712. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10713. >取 消</el-button
  10714. >
  10715. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10716. >确 定</el-button
  10717. >
  10718. </div>
  10719. </el-dialog>
  10720. <el-dialog
  10721. title="选择匹配"
  10722. :visible.sync="dialogVisibleSelect"
  10723. :append-to-body="true"
  10724. width="90%"
  10725. :before-close="handleClose"
  10726. class="dialog_diy dialog_diy3"
  10727. >
  10728. <div v-if="selectJson">
  10729. <div class="select_box2">
  10730. <div class="select_box2_title">
  10731. <div>选择匹配</div>
  10732. <div>请选择对应的答案进行答题!</div>
  10733. </div>
  10734. <div class="select_box2_box">
  10735. <div class="select_box2_img">
  10736. <img
  10737. :src="selectJson.url"
  10738. @click="previewImg(selectJson.url)"
  10739. alt=""
  10740. />
  10741. </div>
  10742. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10743. <div style="padding-top: 15px">
  10744. <div class="select_answer_title" v-if="isSelect">
  10745. {{ selectAnswer.stu }}
  10746. </div>
  10747. <div class="select_answer_title" v-else>
  10748. 根据题目选择对应答案
  10749. </div>
  10750. <div
  10751. class="select_box2_answer_box"
  10752. v-for="(item2, checkIndex) in selectJson.select"
  10753. :key="checkIndex"
  10754. >
  10755. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10756. <el-select
  10757. :disabled="isSelect"
  10758. v-model="selectAnswer.answer[checkIndex]"
  10759. placeholder="请选择正确答案"
  10760. >
  10761. <el-option
  10762. v-for="(e, eIndex) in selectJson.select"
  10763. :key="eIndex"
  10764. :label="e"
  10765. :value="eIndex"
  10766. >
  10767. </el-option>
  10768. </el-select>
  10769. </div>
  10770. </div>
  10771. <div
  10772. class="rightAnswerCss"
  10773. v-if="isSelect && (tType == 1 || tType == 4)"
  10774. >
  10775. <div
  10776. v-for="(a, aIndex) in selectJson.answer"
  10777. :key="aIndex"
  10778. class="rightAnswer"
  10779. >
  10780. <div
  10781. v-if="selectAnswer.answer[aIndex] === a"
  10782. style="color: #767de1"
  10783. >
  10784. 回答正确
  10785. </div>
  10786. <div v-else>回答错误</div>
  10787. <div
  10788. style="margin-left: 10px"
  10789. v-if="selectAnswer.answer[aIndex] !== a"
  10790. >
  10791. 正确答案:
  10792. </div>
  10793. <div
  10794. :class="
  10795. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10796. "
  10797. >
  10798. {{ selectJson.select[a] }}
  10799. </div>
  10800. </div>
  10801. </div>
  10802. </div>
  10803. <div class="upAnswerCss">
  10804. <el-button
  10805. type="primary"
  10806. @click="addSelectAnswer"
  10807. v-if="!isSelect"
  10808. >提交答案</el-button
  10809. >
  10810. </div>
  10811. </div>
  10812. </div>
  10813. </div>
  10814. </el-dialog>
  10815. <el-dialog
  10816. title="选择匹配"
  10817. :visible.sync="dialogVisibleSelectTeacher"
  10818. :append-to-body="true"
  10819. width="90%"
  10820. :before-close="handleClose"
  10821. class="dialog_diy dialog_diy3"
  10822. >
  10823. <div v-if="selectJson">
  10824. <div class="w_name">
  10825. 学生姓名:<span>{{ sStudent.student }}</span>
  10826. </div>
  10827. <div class="select_box2">
  10828. <div class="select_box2_title">
  10829. <div>选择匹配</div>
  10830. <div>请选择对应的答案进行答题!</div>
  10831. </div>
  10832. <div class="select_box2_box">
  10833. <div class="select_box2_img">
  10834. <img
  10835. :src="selectJson.url"
  10836. @click="previewImg(selectJson.url)"
  10837. alt=""
  10838. />
  10839. </div>
  10840. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10841. <div style="padding-top: 15px">
  10842. <div class="select_answer_title" v-if="isSelect">
  10843. {{ selectAnswer.stu }}
  10844. </div>
  10845. <div class="select_answer_title" v-else>
  10846. 根据题目选择对应答案
  10847. </div>
  10848. <div
  10849. class="select_box2_answer_box"
  10850. v-for="(item2, checkIndex) in selectJson.select"
  10851. :key="checkIndex"
  10852. >
  10853. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10854. <el-select
  10855. :disabled="isSelect"
  10856. v-model="selectAnswer.answer[checkIndex]"
  10857. placeholder="请选择正确答案"
  10858. >
  10859. <el-option
  10860. v-for="(e, eIndex) in selectJson.select"
  10861. :key="eIndex"
  10862. :label="e"
  10863. :value="eIndex"
  10864. >
  10865. </el-option>
  10866. </el-select>
  10867. </div>
  10868. </div>
  10869. <div
  10870. class="rightAnswerCss"
  10871. v-if="isSelect && (tType == 1 || tType == 4)"
  10872. >
  10873. <div
  10874. v-for="(a, aIndex) in selectJson.answer"
  10875. :key="aIndex"
  10876. class="rightAnswer"
  10877. >
  10878. <div
  10879. v-if="selectAnswer.answer[aIndex] === a"
  10880. style="color: #767de1"
  10881. >
  10882. 回答正确
  10883. </div>
  10884. <div v-else>回答错误</div>
  10885. <div
  10886. style="margin-left: 10px"
  10887. v-if="selectAnswer.answer[aIndex] !== a"
  10888. >
  10889. 正确答案:
  10890. </div>
  10891. <div
  10892. :class="
  10893. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10894. "
  10895. >
  10896. {{ selectJson.select[a] }}
  10897. </div>
  10898. </div>
  10899. </div>
  10900. </div>
  10901. <div class="upAnswerCss">
  10902. <el-button
  10903. type="primary"
  10904. @click="addSelectAnswerTeacher"
  10905. v-if="!isSelect"
  10906. >提交答案</el-button
  10907. >
  10908. </div>
  10909. </div>
  10910. </div>
  10911. </div>
  10912. </el-dialog>
  10913. <el-dialog
  10914. title="教师评分"
  10915. :visible.sync="dialogVisibleScore"
  10916. :append-to-body="true"
  10917. width="800px"
  10918. :before-close="handleClose"
  10919. class="dialog_diy"
  10920. >
  10921. <div>
  10922. <div class="studentDetail">
  10923. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10924. <div class="nameAndTime">
  10925. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10926. <div>{{ commentDetail.time }}</div>
  10927. </div>
  10928. </div>
  10929. <div
  10930. class="worksAnswer"
  10931. v-if="commentDetail.works && commentDetail.type == 2"
  10932. >
  10933. {{ JSON.parse(commentDetail.works)[0].answer }}
  10934. </div>
  10935. <div
  10936. class="worksAnswer"
  10937. v-if="commentDetail.works && commentDetail.type == 1"
  10938. >
  10939. <pdf
  10940. v-if="showPDF"
  10941. :pdfUrl="pptImgUrl"
  10942. style="width: 100%; height: 520px; overflow: auto"
  10943. :class="{ fullStyle: full }"
  10944. ></pdf>
  10945. <iframe
  10946. v-else
  10947. :src="pptImgUrl"
  10948. frameborder="0"
  10949. width="100%"
  10950. height="600"
  10951. :class="{ fullStyle: full }"
  10952. ></iframe>
  10953. </div>
  10954. <div
  10955. class="worksAnswer"
  10956. v-if="commentDetail.works && commentDetail.type == 0"
  10957. >
  10958. <img
  10959. :src="commentDetail.works"
  10960. alt=""
  10961. @click="previewImg(commentDetail.works)"
  10962. />
  10963. </div>
  10964. <div
  10965. class="worksAnswer"
  10966. v-if="commentDetail.works && commentDetail.type == 3"
  10967. >
  10968. <video-player
  10969. class="video-player vjs-custom-skin"
  10970. :playsinline="true"
  10971. :options="videoDetail"
  10972. @play="onPlayerPlay($event)"
  10973. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10974. ></video-player>
  10975. </div>
  10976. <div
  10977. class="worksAnswer codeFileBox"
  10978. v-if="commentDetail.works && commentDetail.type == 12"
  10979. @click="downloadFile(commentDetail.works)"
  10980. >
  10981. <img src="../../assets/icon/codeFile.png" />
  10982. <div>点击下载文件</div>
  10983. </div>
  10984. <div
  10985. class="worksAnswer codeFileBox"
  10986. v-if="commentDetail.works && commentDetail.type == 15"
  10987. @click="
  10988. openCocoPi(
  10989. 57,
  10990. commentIndexJson.toolIndex,
  10991. commentDetail.userid,
  10992. commentDetail.sName
  10993. )
  10994. "
  10995. >
  10996. <img src="../../assets/icon/codeFile.png" />
  10997. <div>点击打开CocoPi</div>
  10998. </div>
  10999. <div
  11000. class="worksAnswer"
  11001. v-if="commentDetail.works && commentDetail.type == 13"
  11002. >
  11003. <div v-html="JSON.parse(commentDetail.works).text"></div>
  11004. </div>
  11005. <div class="scoreBox">
  11006. <span class="t">请输入分数</span>
  11007. <el-input-number
  11008. :disabled="courseDetail.userid != userid"
  11009. v-model="wScore"
  11010. :controls="false"
  11011. :min="0"
  11012. :max="100"
  11013. ></el-input-number>
  11014. </div>
  11015. <div class="scoreDetailBox">
  11016. <span class="t">评分评论</span>
  11017. <el-input
  11018. type="textarea"
  11019. :rows="5"
  11020. :disabled="courseDetail.userid != userid"
  11021. resize="none"
  11022. v-model="scoreDetail"
  11023. placeholder="请输入对学生的评价"
  11024. >
  11025. </el-input>
  11026. </div>
  11027. </div>
  11028. <span slot="footer" class="dialog-footer">
  11029. <el-button
  11030. @click="
  11031. (dialogVisibleScore = false),
  11032. (commentIndexJson = {}),
  11033. videoDetail.sources && videoDetail.sources[0]
  11034. ? (videoDetail.sources[0].src = '')
  11035. : ''
  11036. "
  11037. >取 消</el-button
  11038. >
  11039. <el-button
  11040. type="primary"
  11041. v-if="courseDetail.userid == userid"
  11042. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  11043. >确 定
  11044. </el-button>
  11045. </span>
  11046. </el-dialog>
  11047. <el-dialog
  11048. title="排序"
  11049. :visible.sync="dialogVisibleSentence"
  11050. :append-to-body="true"
  11051. width="1000px"
  11052. :before-close="handleClose"
  11053. class="dialog_diy dialog_diy3"
  11054. >
  11055. <div>
  11056. <div class="sentenBox">
  11057. <div
  11058. v-for="(st, stIndex) in sentenceList"
  11059. :key="stIndex"
  11060. style="padding-bottom: 20px"
  11061. >
  11062. <div
  11063. style="padding: 15px 0 10px 20px"
  11064. class="sentenceTitle"
  11065. :index="stIndex + 1"
  11066. >
  11067. 题目{{ stIndex + 1 }}:请选择正确顺序
  11068. </div>
  11069. <div class="cardList" v-if="st.chooseSenList">
  11070. <div class="cardBox">
  11071. <div
  11072. v-for="(r, rIndex) in st.chooseSenList"
  11073. :key="rIndex"
  11074. @click="returnCard(r, stIndex, rIndex)"
  11075. >
  11076. <el-tooltip
  11077. class="item"
  11078. effect="light"
  11079. :content="r"
  11080. placement="top"
  11081. v-if="r != '' && r != undefined"
  11082. >
  11083. <div
  11084. :class="{
  11085. isCard: r,
  11086. isChooseCard: r == '' || r == undefined,
  11087. }"
  11088. >
  11089. <div>{{ r }}</div>
  11090. </div>
  11091. </el-tooltip>
  11092. <div
  11093. :class="{
  11094. isCard: r,
  11095. isChooseCard: r == '' || r == undefined,
  11096. }"
  11097. v-else
  11098. >
  11099. <div>{{ r }}</div>
  11100. </div>
  11101. </div>
  11102. </div>
  11103. </div>
  11104. <div class="cardList" v-if="st.addChangeSen">
  11105. <div class="cardBox">
  11106. <div
  11107. v-for="(s, sIndex) in st.addChangeSen"
  11108. :key="sIndex"
  11109. @click="setRightAnswer(s, stIndex, sIndex)"
  11110. >
  11111. <el-tooltip
  11112. class="item"
  11113. effect="light"
  11114. :content="s"
  11115. placement="top"
  11116. v-if="s != '' && s != undefined"
  11117. >
  11118. <div
  11119. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11120. >
  11121. <div>{{ s }}</div>
  11122. </div>
  11123. </el-tooltip>
  11124. <div
  11125. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11126. v-else
  11127. >
  11128. <div>{{ s }}</div>
  11129. </div>
  11130. </div>
  11131. </div>
  11132. </div>
  11133. </div>
  11134. </div>
  11135. </div>
  11136. <span slot="footer" class="dialog-footer">
  11137. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  11138. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  11139. </span>
  11140. </el-dialog>
  11141. <el-dialog
  11142. title="排序"
  11143. :visible.sync="dialogVisibleSentenceTeacher"
  11144. :append-to-body="true"
  11145. width="1000px"
  11146. :before-close="handleClose"
  11147. class="dialog_diy dialog_diy3"
  11148. >
  11149. <div>
  11150. <div class="w_name">
  11151. 学生姓名:<span>{{ sStudent.student }}</span>
  11152. </div>
  11153. <div class="sentenBox">
  11154. <div
  11155. v-for="(st, stIndex) in sentenceList"
  11156. :key="stIndex"
  11157. style="padding-bottom: 20px"
  11158. >
  11159. <div
  11160. style="padding: 15px 0 10px 20px"
  11161. class="sentenceTitle"
  11162. :index="stIndex + 1"
  11163. >
  11164. 题目{{ stIndex + 1 }}:请选择正确顺序
  11165. </div>
  11166. <div class="cardList" v-if="st.chooseSenList">
  11167. <div class="cardBox">
  11168. <div
  11169. v-for="(r, rIndex) in st.chooseSenList"
  11170. :key="rIndex"
  11171. @click="returnCard(r, stIndex, rIndex)"
  11172. >
  11173. <el-tooltip
  11174. class="item"
  11175. effect="light"
  11176. :content="r"
  11177. placement="top"
  11178. v-if="r != '' && r != undefined"
  11179. >
  11180. <div
  11181. :class="{
  11182. isCard: r,
  11183. isChooseCard: r == '' || r == undefined,
  11184. }"
  11185. >
  11186. <div>{{ r }}</div>
  11187. </div>
  11188. </el-tooltip>
  11189. <div
  11190. :class="{
  11191. isCard: r,
  11192. isChooseCard: r == '' || r == undefined,
  11193. }"
  11194. v-else
  11195. >
  11196. <div>{{ r }}</div>
  11197. </div>
  11198. </div>
  11199. </div>
  11200. </div>
  11201. <div class="cardList" v-if="st.addChangeSen">
  11202. <div class="cardBox">
  11203. <div
  11204. v-for="(s, sIndex) in st.addChangeSen"
  11205. :key="sIndex"
  11206. @click="setRightAnswer(s, stIndex, sIndex)"
  11207. >
  11208. <el-tooltip
  11209. class="item"
  11210. effect="light"
  11211. :content="s"
  11212. placement="top"
  11213. v-if="s != '' && s != undefined"
  11214. >
  11215. <div
  11216. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11217. >
  11218. <div>{{ s }}</div>
  11219. </div>
  11220. </el-tooltip>
  11221. <div
  11222. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11223. v-else
  11224. >
  11225. <div>{{ s }}</div>
  11226. </div>
  11227. </div>
  11228. </div>
  11229. </div>
  11230. </div>
  11231. </div>
  11232. </div>
  11233. <span slot="footer" class="dialog-footer">
  11234. <el-button @click="dialogVisibleSentenceTeacher = false"
  11235. >取 消</el-button
  11236. >
  11237. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  11238. </span>
  11239. </el-dialog>
  11240. <el-dialog
  11241. title="排序"
  11242. :visible.sync="dialogVisibleSentence1"
  11243. :append-to-body="true"
  11244. width="1000px"
  11245. :before-close="handleClose"
  11246. class="dialog_diy dialog_diy3"
  11247. >
  11248. <div>
  11249. <div class="sentenBox">
  11250. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11251. {{ sentenceList1.stuName }}的作业
  11252. </div>
  11253. <div
  11254. v-for="(st, stIndex) in sentenceList1"
  11255. :key="stIndex"
  11256. style="padding-bottom: 20px"
  11257. >
  11258. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11259. 第{{ stIndex + 1 }}题
  11260. </div>
  11261. <div class="isWrong">
  11262. <div class="cardList1" v-if="st.chooseSenList">
  11263. <div class="cardBox">
  11264. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  11265. <el-tooltip
  11266. class="item"
  11267. effect="light"
  11268. :content="s"
  11269. placement="top"
  11270. >
  11271. <div class="isCard">
  11272. <div>{{ s }}</div>
  11273. </div>
  11274. </el-tooltip>
  11275. </div>
  11276. </div>
  11277. <div class="cardAnswerBox">
  11278. 组成句子:{{ st.chooseSenList.join(" ") }}
  11279. </div>
  11280. </div>
  11281. <div v-if="tType == 2" class="isTj">
  11282. <div class="isTjImg">
  11283. <img src="../../assets/icon/conSentences/right.png" alt="" />
  11284. </div>
  11285. <div>已提交</div>
  11286. </div>
  11287. <div
  11288. class="answerRight isTj"
  11289. v-if="
  11290. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  11291. (tType == 1 || tType == 4)
  11292. "
  11293. >
  11294. <div class="isTjImg">
  11295. <img src="../../assets/icon/conSentences/right.png" alt="" />
  11296. </div>
  11297. <div>回答正确</div>
  11298. </div>
  11299. <div
  11300. class="answerRight isTj"
  11301. v-if="
  11302. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11303. (tType == 1 || tType == 4)
  11304. "
  11305. >
  11306. <div class="isTjImg">
  11307. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  11308. </div>
  11309. <div>回答错误</div>
  11310. </div>
  11311. </div>
  11312. <div
  11313. v-if="
  11314. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11315. (tType == 1 || tType == 4)
  11316. "
  11317. >
  11318. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  11319. <div
  11320. class="cardList"
  11321. v-if="st.rightAnswer"
  11322. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  11323. >
  11324. <div class="cardBox">
  11325. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  11326. <el-tooltip
  11327. class="item"
  11328. effect="light"
  11329. :content="r"
  11330. placement="top"
  11331. >
  11332. <div class="isCard1">
  11333. <div>{{ r }}</div>
  11334. </div>
  11335. </el-tooltip>
  11336. </div>
  11337. </div>
  11338. <div class="cardAnswerBox">
  11339. 组成句子:{{ st.rightAnswer.join(" ") }}
  11340. </div>
  11341. </div>
  11342. </div>
  11343. </div>
  11344. </div>
  11345. </div>
  11346. <span slot="footer" class="dialog-footer">
  11347. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  11348. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  11349. >确 定</el-button
  11350. >
  11351. </span>
  11352. </el-dialog>
  11353. <el-dialog
  11354. title="教师提交作业"
  11355. :visible.sync="dialogVisibleWorks"
  11356. :append-to-body="true"
  11357. width="500px"
  11358. :before-close="handleClose"
  11359. class="dialog_change"
  11360. >
  11361. <div class="marginT">
  11362. <div class="w_name">
  11363. 学生姓名:<span>{{ sStudent.student }}</span>
  11364. </div>
  11365. <div>上传文件</div>
  11366. <div style="display: flex; gap: 10px">
  11367. <div
  11368. class="chapter_add"
  11369. @click="addImg($event)"
  11370. v-if="studyJuri[0].cover.length == 0"
  11371. >
  11372. <div class="up_photo">
  11373. <img src="../../assets/icon/uploadImg.png" alt />
  11374. </div>
  11375. <!-- <input
  11376. type="file"
  11377. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11378. style="display: none"
  11379. @change="beforeUpload1($event, 1)"
  11380. /> -->
  11381. <input
  11382. type="file"
  11383. accept="*"
  11384. style="display: none"
  11385. @change="beforeUpload1($event, 1)"
  11386. />
  11387. <!-- <input
  11388. type="file"
  11389. accept="image/*"
  11390. capture="camera"
  11391. style="display: none"
  11392. @change="beforeUpload1($event, 1)"
  11393. /> -->
  11394. </div>
  11395. <div
  11396. class="chapter_add"
  11397. @click="addImg($event)"
  11398. v-if="studyJuri[0].cover.length == 0"
  11399. >
  11400. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  11401. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  11402. </div>
  11403. <input
  11404. type="file"
  11405. accept="image/*"
  11406. capture="camera"
  11407. style="display: none"
  11408. @change="beforeUpload1($event, 1)"
  11409. />
  11410. </div>
  11411. </div>
  11412. <!-- capture="camera" -->
  11413. <div
  11414. class="chapter_add"
  11415. style="
  11416. display: flex;
  11417. width: 100%;
  11418. flex-direction: row;
  11419. flex-wrap: wrap;
  11420. justify-content: flex-start;
  11421. padding: 15px 0;
  11422. "
  11423. v-if="studyJuri[0].cover.length > 0"
  11424. >
  11425. <div class="upCover">
  11426. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11427. <img :src="word" alt v-else-if="fileType == 1" />
  11428. <img :src="video" alt v-else-if="fileType == 2" />
  11429. <img :src="word2" alt v-else-if="fileType == 3" />
  11430. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11431. <div class="deleteWord" @click="clean(1)">
  11432. <img src="../../assets/icon/deleteWorks.png" alt />
  11433. </div>
  11434. </div>
  11435. </div>
  11436. </div>
  11437. <div
  11438. class="upload_send"
  11439. @click="addCourseWorksTeacher(taskCount)"
  11440. v-if="!proVisible"
  11441. >
  11442. 提交
  11443. </div>
  11444. </el-dialog>
  11445. <ImgDraw
  11446. :drawShow="drawShow"
  11447. @closeDraw="closeDraw"
  11448. @addImgDraw="addImgDraw"
  11449. :bg="bg"
  11450. ></ImgDraw>
  11451. <el-dialog
  11452. title="表格"
  11453. :visible.sync="dialogVisibleTable"
  11454. :append-to-body="true"
  11455. width="95%"
  11456. :before-close="handleClose"
  11457. class="dialog_diy"
  11458. >
  11459. <el-form>
  11460. <div
  11461. style="
  11462. display: flex;
  11463. align-items: center;
  11464. justify-content: space-between;
  11465. "
  11466. >
  11467. <span>表格内容</span>
  11468. <el-button type="primary" size="small" @click="returnTableText"
  11469. >还原模板</el-button
  11470. >
  11471. </div>
  11472. <Table
  11473. v-model="tableJson.text"
  11474. @change="change"
  11475. v-if="dialogVisibleTable"
  11476. ></Table>
  11477. </el-form>
  11478. <span slot="footer" class="dialog-footer">
  11479. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  11480. <el-button type="primary" @click="addTableWorks">确定</el-button>
  11481. </span>
  11482. </el-dialog>
  11483. <el-dialog
  11484. title="表格"
  11485. :visible.sync="dialogVisibleTableTeacher"
  11486. :append-to-body="true"
  11487. width="95%"
  11488. :before-close="handleClose"
  11489. class="dialog_diy"
  11490. >
  11491. <el-form>
  11492. <div class="w_name">
  11493. 学生姓名:<span>{{ sStudent.student }}</span>
  11494. </div>
  11495. <div>表格内容</div>
  11496. <Table
  11497. v-model="tableJson.text"
  11498. @change="change"
  11499. v-if="dialogVisibleTableTeacher"
  11500. ></Table>
  11501. </el-form>
  11502. <span slot="footer" class="dialog-footer">
  11503. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  11504. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  11505. </span>
  11506. </el-dialog>
  11507. <el-dialog
  11508. title="文档"
  11509. :visible.sync="dialogVisibleWord"
  11510. :append-to-body="true"
  11511. width="95%"
  11512. :before-close="handleClose"
  11513. class="dialog_diy"
  11514. >
  11515. <el-form>
  11516. <div
  11517. style="
  11518. display: flex;
  11519. align-items: center;
  11520. justify-content: space-between;
  11521. "
  11522. >
  11523. <span>文档内容</span>
  11524. <el-button type="primary" size="small" @click="returnWordText"
  11525. >还原模板</el-button
  11526. >
  11527. </div>
  11528. <editor-bar
  11529. v-model="wordJson.text"
  11530. v-if="dialogVisibleWord"
  11531. ></editor-bar>
  11532. </el-form>
  11533. <span slot="footer" class="dialog-footer">
  11534. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  11535. <el-button type="primary" @click="addWordWorks">确定</el-button>
  11536. </span>
  11537. </el-dialog>
  11538. <el-dialog
  11539. title="文档"
  11540. :visible.sync="dialogVisibleWordTeacher"
  11541. :append-to-body="true"
  11542. width="95%"
  11543. :before-close="handleClose"
  11544. class="dialog_diy"
  11545. >
  11546. <el-form>
  11547. <div class="w_name">
  11548. 学生姓名:<span>{{ sStudent.student }}</span>
  11549. </div>
  11550. <div>文档内容</div>
  11551. <editor-bar
  11552. v-model="wordJson.text"
  11553. v-if="dialogVisibleWordTeacher"
  11554. ></editor-bar>
  11555. </el-form>
  11556. <span slot="footer" class="dialog-footer">
  11557. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  11558. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  11559. </span>
  11560. </el-dialog>
  11561. <el-dialog
  11562. title="表格"
  11563. :visible.sync="dialogVisibleTable2"
  11564. :append-to-body="true"
  11565. width="95%"
  11566. :before-close="handleClose"
  11567. class="dialog_diy"
  11568. >
  11569. <el-form>
  11570. <div class="cont" v-html="tableJson.text"></div>
  11571. </el-form>
  11572. <span slot="footer" class="dialog-footer">
  11573. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  11574. </span>
  11575. </el-dialog>
  11576. <el-dialog
  11577. title="文档"
  11578. :visible.sync="dialogVisibleTable3"
  11579. :append-to-body="true"
  11580. width="95%"
  11581. :before-close="handleClose"
  11582. class="dialog_diy"
  11583. >
  11584. <el-form>
  11585. <div class="cont" v-html="tableJson.text"></div>
  11586. </el-form>
  11587. <span slot="footer" class="dialog-footer">
  11588. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  11589. </span>
  11590. </el-dialog>
  11591. <el-dialog
  11592. title="分组设置"
  11593. :visible.sync="dialogVisibleGroup"
  11594. :append-to-body="true"
  11595. width="95%"
  11596. :before-close="handleClose"
  11597. class="dialog_diy"
  11598. >
  11599. <div v-if="dialogVisibleGroup">
  11600. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  11601. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  11602. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  11603. </div>
  11604. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  11605. @click="lockChair">
  11606. 锁定位置
  11607. </div>
  11608. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  11609. 解锁位置
  11610. </div> -->
  11611. <div class="group_switch">
  11612. <span>开放选座</span>
  11613. <el-switch
  11614. v-model="islock"
  11615. active-text=""
  11616. class="switchCss"
  11617. @change="lockChair"
  11618. ></el-switch>
  11619. </div>
  11620. <div
  11621. type="primary"
  11622. @click="updateGroup"
  11623. class="returnBtn"
  11624. style="background-color: #225bc7"
  11625. >
  11626. 分组设置
  11627. </div>
  11628. </div>
  11629. <div>
  11630. <div
  11631. class="g_d_box"
  11632. v-if="groupJson.group && groupStudent[toolindex]"
  11633. >
  11634. <div
  11635. class="g_d_group"
  11636. v-for="(g, gindex) in groupJson.group"
  11637. :key="gindex"
  11638. >
  11639. <div class="g_d_group_chair">
  11640. <div v-if="groupJson.number > 1">
  11641. <span
  11642. :class="{
  11643. isChair:
  11644. groupStudent[toolindex][gindex] &&
  11645. groupStudent[toolindex][gindex][0],
  11646. updateChair:
  11647. courseDetail.userid == userid &&
  11648. groupStudent[toolindex][gindex] &&
  11649. groupStudent[toolindex][gindex][0] &&
  11650. groupJson.islock == 2,
  11651. }"
  11652. ><span
  11653. class="updateChairBtn"
  11654. @click="
  11655. updateGroupChair(
  11656. groupStudent[toolindex][gindex] &&
  11657. groupStudent[toolindex][gindex][0]
  11658. )
  11659. "
  11660. >修改</span
  11661. ></span
  11662. ><span>{{
  11663. groupStudent[toolindex][gindex] &&
  11664. groupStudent[toolindex][gindex][0]
  11665. ? groupStudent[toolindex][gindex] &&
  11666. groupStudent[toolindex][gindex][0].name
  11667. : "空位置"
  11668. }}</span>
  11669. </div>
  11670. <div v-if="groupJson.number > 4">
  11671. <span
  11672. :class="{
  11673. isChair:
  11674. groupStudent[toolindex][gindex] &&
  11675. groupStudent[toolindex][gindex][4],
  11676. updateChair:
  11677. courseDetail.userid == userid &&
  11678. groupStudent[toolindex][gindex] &&
  11679. groupStudent[toolindex][gindex][4] &&
  11680. groupJson.islock == 2,
  11681. }"
  11682. ><span
  11683. class="updateChairBtn"
  11684. @click="
  11685. updateGroupChair(
  11686. groupStudent[toolindex][gindex] &&
  11687. groupStudent[toolindex][gindex][4]
  11688. )
  11689. "
  11690. >修改</span
  11691. ></span
  11692. ><span>{{
  11693. groupStudent[toolindex][gindex] &&
  11694. groupStudent[toolindex][gindex][4]
  11695. ? groupStudent[toolindex][gindex] &&
  11696. groupStudent[toolindex][gindex][4].name
  11697. : "空位置"
  11698. }}</span>
  11699. </div>
  11700. <div v-if="groupJson.number > 8">
  11701. <span
  11702. :class="{
  11703. isChair:
  11704. groupStudent[toolindex][gindex] &&
  11705. groupStudent[toolindex][gindex][8],
  11706. updateChair:
  11707. courseDetail.userid == userid &&
  11708. groupStudent[toolindex][gindex] &&
  11709. groupStudent[toolindex][gindex][8] &&
  11710. groupJson.islock == 2,
  11711. }"
  11712. ><span
  11713. class="updateChairBtn"
  11714. @click="
  11715. updateGroupChair(
  11716. groupStudent[toolindex][gindex] &&
  11717. groupStudent[toolindex][gindex][8]
  11718. )
  11719. "
  11720. >修改</span
  11721. ></span
  11722. ><span>{{
  11723. groupStudent[toolindex][gindex] &&
  11724. groupStudent[toolindex][gindex][8]
  11725. ? groupStudent[toolindex][gindex] &&
  11726. groupStudent[toolindex][gindex][8].name
  11727. : "空位置"
  11728. }}</span>
  11729. </div>
  11730. </div>
  11731. <div class="g_d_group_tableBox">
  11732. <div class="g_d_group_chair2">
  11733. <div v-if="groupJson.number > 2">
  11734. <span
  11735. :class="{
  11736. isChair:
  11737. groupStudent[toolindex][gindex] &&
  11738. groupStudent[toolindex][gindex][2],
  11739. updateChair:
  11740. courseDetail.userid == userid &&
  11741. groupStudent[toolindex][gindex] &&
  11742. groupStudent[toolindex][gindex][2] &&
  11743. groupJson.islock == 2,
  11744. }"
  11745. ><span
  11746. class="updateChairBtn"
  11747. @click="
  11748. updateGroupChair(
  11749. groupStudent[toolindex][gindex] &&
  11750. groupStudent[toolindex][gindex][2]
  11751. )
  11752. "
  11753. >修改</span
  11754. ></span
  11755. ><span>{{
  11756. groupStudent[toolindex][gindex] &&
  11757. groupStudent[toolindex][gindex][2]
  11758. ? groupStudent[toolindex][gindex] &&
  11759. groupStudent[toolindex][gindex][2].name
  11760. : "空位置"
  11761. }}</span>
  11762. </div>
  11763. <div v-if="groupJson.number > 6">
  11764. <span
  11765. :class="{
  11766. isChair:
  11767. groupStudent[toolindex][gindex] &&
  11768. groupStudent[toolindex][gindex][6],
  11769. updateChair:
  11770. courseDetail.userid == userid &&
  11771. groupStudent[toolindex][gindex] &&
  11772. groupStudent[toolindex][gindex][6] &&
  11773. groupJson.islock == 2,
  11774. }"
  11775. ><span
  11776. class="updateChairBtn"
  11777. @click="
  11778. updateGroupChair(
  11779. groupStudent[toolindex][gindex] &&
  11780. groupStudent[toolindex][gindex][6]
  11781. )
  11782. "
  11783. >修改</span
  11784. ></span
  11785. ><span>{{
  11786. groupStudent[toolindex][gindex] &&
  11787. groupStudent[toolindex][gindex][6]
  11788. ? groupStudent[toolindex][gindex] &&
  11789. groupStudent[toolindex][gindex][6].name
  11790. : "空位置"
  11791. }}</span>
  11792. </div>
  11793. </div>
  11794. <div class="g_d_group_table">
  11795. <div>
  11796. {{ g.name }}
  11797. </div>
  11798. <div>
  11799. <div
  11800. v-if="
  11801. courseDetail.userid == userid && groupJson.islock == 2
  11802. "
  11803. @click="deleteGroupChair(gindex)"
  11804. >
  11805. 移除组员
  11806. </div>
  11807. <div
  11808. @click="selectGroup(gindex)"
  11809. v-else-if="
  11810. groupStudentUid[toolindex] &&
  11811. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11812. "
  11813. >
  11814. 加入分组
  11815. </div>
  11816. <div
  11817. @click="
  11818. exitGroup(
  11819. groupStudent[toolindex][gindex] &&
  11820. groupStudent[toolindex][gindex][
  11821. groupStudentUid[toolindex][gindex].indexOf(userid)
  11822. ].id
  11823. )
  11824. "
  11825. v-else-if="
  11826. groupStudentUid[toolindex] &&
  11827. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11828. "
  11829. >
  11830. 退出分组
  11831. </div>
  11832. </div>
  11833. </div>
  11834. <div class="g_d_group_chair2">
  11835. <div v-if="groupJson.number > 3">
  11836. <span
  11837. :class="{
  11838. isChair:
  11839. groupStudent[toolindex][gindex] &&
  11840. groupStudent[toolindex][gindex][3],
  11841. updateChair:
  11842. courseDetail.userid == userid &&
  11843. groupStudent[toolindex][gindex] &&
  11844. groupStudent[toolindex][gindex][3] &&
  11845. groupJson.islock == 2,
  11846. }"
  11847. ><span
  11848. class="updateChairBtn"
  11849. @click="
  11850. updateGroupChair(
  11851. groupStudent[toolindex][gindex] &&
  11852. groupStudent[toolindex][gindex][3]
  11853. )
  11854. "
  11855. >修改</span
  11856. ></span
  11857. ><span>{{
  11858. groupStudent[toolindex][gindex] &&
  11859. groupStudent[toolindex][gindex][3]
  11860. ? groupStudent[toolindex][gindex] &&
  11861. groupStudent[toolindex][gindex][3].name
  11862. : "空位置"
  11863. }}</span>
  11864. </div>
  11865. <div v-if="groupJson.number > 7">
  11866. <span
  11867. :class="{
  11868. isChair:
  11869. groupStudent[toolindex][gindex] &&
  11870. groupStudent[toolindex][gindex][7],
  11871. updateChair:
  11872. courseDetail.userid == userid &&
  11873. groupStudent[toolindex][gindex] &&
  11874. groupStudent[toolindex][gindex][7] &&
  11875. groupJson.islock == 2,
  11876. }"
  11877. ><span
  11878. class="updateChairBtn"
  11879. @click="
  11880. updateGroupChair(
  11881. groupStudent[toolindex][gindex] &&
  11882. groupStudent[toolindex][gindex][7]
  11883. )
  11884. "
  11885. >修改</span
  11886. ></span
  11887. ><span>{{
  11888. groupStudent[toolindex][gindex] &&
  11889. groupStudent[toolindex][gindex][7]
  11890. ? groupStudent[toolindex][gindex] &&
  11891. groupStudent[toolindex][gindex][7].name
  11892. : "空位置"
  11893. }}</span>
  11894. </div>
  11895. </div>
  11896. </div>
  11897. <div class="g_d_group_chair">
  11898. <div v-if="groupJson.number > 1">
  11899. <span
  11900. :class="{
  11901. isChair:
  11902. groupStudent[toolindex][gindex] &&
  11903. groupStudent[toolindex][gindex][1],
  11904. updateChair:
  11905. courseDetail.userid == userid &&
  11906. groupStudent[toolindex][gindex] &&
  11907. groupStudent[toolindex][gindex][1] &&
  11908. groupJson.islock == 2,
  11909. }"
  11910. ><span
  11911. class="updateChairBtn"
  11912. @click="
  11913. updateGroupChair(
  11914. groupStudent[toolindex][gindex] &&
  11915. groupStudent[toolindex][gindex][1]
  11916. )
  11917. "
  11918. >修改</span
  11919. ></span
  11920. ><span>{{
  11921. groupStudent[toolindex][gindex] &&
  11922. groupStudent[toolindex][gindex][1]
  11923. ? groupStudent[toolindex][gindex] &&
  11924. groupStudent[toolindex][gindex][1].name
  11925. : "空位置"
  11926. }}</span>
  11927. </div>
  11928. <div v-if="groupJson.number > 5">
  11929. <span
  11930. :class="{
  11931. isChair:
  11932. groupStudent[toolindex][gindex] &&
  11933. groupStudent[toolindex][gindex][5],
  11934. updateChair:
  11935. courseDetail.userid == userid &&
  11936. groupStudent[toolindex][gindex] &&
  11937. groupStudent[toolindex][gindex][5] &&
  11938. groupJson.islock == 2,
  11939. }"
  11940. ><span
  11941. class="updateChairBtn"
  11942. @click="
  11943. updateGroupChair(
  11944. groupStudent[toolindex][gindex] &&
  11945. groupStudent[toolindex][gindex][5]
  11946. )
  11947. "
  11948. >修改</span
  11949. ></span
  11950. ><span>{{
  11951. groupStudent[toolindex][gindex] &&
  11952. groupStudent[toolindex][gindex][5]
  11953. ? groupStudent[toolindex][gindex] &&
  11954. groupStudent[toolindex][gindex][5].name
  11955. : "空位置"
  11956. }}</span>
  11957. </div>
  11958. <div v-if="groupJson.number > 9">
  11959. <span
  11960. :class="{
  11961. isChair:
  11962. groupStudent[toolindex][gindex] &&
  11963. groupStudent[toolindex][gindex][9],
  11964. updateChair:
  11965. courseDetail.userid == userid &&
  11966. groupStudent[toolindex][gindex] &&
  11967. groupStudent[toolindex][gindex][9] &&
  11968. groupJson.islock == 2,
  11969. }"
  11970. ><span
  11971. class="updateChairBtn"
  11972. @click="
  11973. updateGroupChair(
  11974. groupStudent[toolindex][gindex] &&
  11975. groupStudent[toolindex][gindex][9]
  11976. )
  11977. "
  11978. >修改</span
  11979. ></span
  11980. ><span>{{
  11981. groupStudent[toolindex][gindex] &&
  11982. groupStudent[toolindex][gindex][9]
  11983. ? groupStudent[toolindex][gindex] &&
  11984. groupStudent[toolindex][gindex][9].name
  11985. : "空位置"
  11986. }}</span>
  11987. </div>
  11988. </div>
  11989. </div>
  11990. </div>
  11991. </div>
  11992. </div>
  11993. <span slot="footer" class="dialog-footer">
  11994. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11995. </span>
  11996. </el-dialog>
  11997. <el-dialog
  11998. title="分组设置"
  11999. :visible.sync="dialogVisibleGroup2"
  12000. :append-to-body="true"
  12001. width="650px"
  12002. :before-close="handleClose"
  12003. class="dialog_diy"
  12004. >
  12005. <div class="groupBox">
  12006. <div v-if="groupJson2.group" class="groupContent">
  12007. <div class="groupTitle">请设置小组数量及名称</div>
  12008. <div
  12009. v-for="(item, index) in groupJson2.group"
  12010. :key="index"
  12011. class="groupName"
  12012. >
  12013. <span class="groupn">第{{ index + 1 }}组名称:</span>
  12014. <el-input
  12015. v-model="item.name"
  12016. placeholder="请输入名称..."
  12017. style="width: 250px"
  12018. ></el-input>
  12019. <!-- <div class="groupBtn">
  12020. <el-button type="primary" size="small" @click="addGroup(index)">
  12021. 添加</el-button>
  12022. <el-button type="primary" size="small" @click="deleteGroup(index)"
  12023. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  12024. </div> -->
  12025. </div>
  12026. </div>
  12027. <div class="groupContent">
  12028. <div class="groupTitle">请设置每组人数</div>
  12029. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  12030. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  12031. <el-input
  12032. v-model="groupJson2.number"
  12033. style="width: 150px"
  12034. placeholder="请输入2-10的数字"
  12035. @change="numberPan"
  12036. ></el-input>
  12037. </div>
  12038. </div>
  12039. <span slot="footer" class="dialog-footer">
  12040. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  12041. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  12042. </span>
  12043. </el-dialog>
  12044. <el-dialog
  12045. title="作业提交"
  12046. :visible.sync="dialogVisibleGroupWork"
  12047. :append-to-body="true"
  12048. width="500px"
  12049. :before-close="handleClose"
  12050. class="dialog_change"
  12051. >
  12052. <div class="marginT">
  12053. <div>上传文件</div>
  12054. <div
  12055. class="chapter_add"
  12056. @click="addImg($event)"
  12057. v-if="studyJuri[0].cover.length == 0"
  12058. >
  12059. <div class="up_photo">
  12060. <img src="../../assets/icon/uploadImg.png" alt />
  12061. </div>
  12062. <!-- <input
  12063. type="file"
  12064. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12065. style="display: none"
  12066. @change="beforeUpload1($event, 1)"
  12067. /> -->
  12068. <input
  12069. type="file"
  12070. accept="*"
  12071. style="display: none"
  12072. @change="beforeUpload1($event, 1)"
  12073. />
  12074. </div>
  12075. <!-- capture="camera" -->
  12076. <div
  12077. class="chapter_add"
  12078. style="
  12079. display: flex;
  12080. width: 100%;
  12081. flex-direction: row;
  12082. flex-wrap: wrap;
  12083. justify-content: flex-start;
  12084. padding: 15px 0;
  12085. "
  12086. v-if="studyJuri[0].cover.length > 0"
  12087. >
  12088. <div class="upCover">
  12089. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  12090. <img :src="word" alt v-else-if="fileType == 1" />
  12091. <img :src="video" alt v-else-if="fileType == 2" />
  12092. <img :src="word2" alt v-else-if="fileType == 3" />
  12093. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  12094. <div class="deleteWord" @click="clean(1)">
  12095. <img src="../../assets/icon/deleteWorks.png" alt />
  12096. </div>
  12097. </div>
  12098. </div>
  12099. </div>
  12100. <div
  12101. class="upload_send"
  12102. @click="addCourseWorks2(taskCount)"
  12103. v-if="!proVisible"
  12104. >
  12105. 提交
  12106. </div>
  12107. </el-dialog>
  12108. <el-dialog
  12109. title="修改分组"
  12110. :visible.sync="dialogVisibleUpdateGroup"
  12111. :append-to-body="true"
  12112. width="350px"
  12113. :before-close="handleClose"
  12114. class="dialog_diy"
  12115. >
  12116. <div>
  12117. <h2>
  12118. {{ this.updateGroupUser.name }}
  12119. </h2>
  12120. <div style="color: rgb(171 171 171); margin-top: 10px">
  12121. 请选择要进入的分组
  12122. </div>
  12123. <el-radio-group v-model="checkChair">
  12124. <el-radio
  12125. style="display: block; margin-top: 20px"
  12126. v-for="(item, index) in updateGroupArray"
  12127. :label="item.label"
  12128. :key="index"
  12129. >{{ item.name }}</el-radio
  12130. >
  12131. </el-radio-group>
  12132. </div>
  12133. <span slot="footer" class="dialog-footer">
  12134. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  12135. <el-button type="primary" @click="updateChair">确定</el-button>
  12136. </span>
  12137. </el-dialog>
  12138. <el-dialog
  12139. title="移除组员"
  12140. :visible.sync="dialogVisibleDeleteGroup"
  12141. :append-to-body="true"
  12142. width="350px"
  12143. :before-close="handleClose"
  12144. class="dialog_diy"
  12145. >
  12146. <div>
  12147. <h2>
  12148. {{ this.deleteGroupArray.name }}
  12149. </h2>
  12150. <div style="color: rgb(171 171 171); margin-top: 10px">
  12151. 请选择要删除的组员
  12152. </div>
  12153. <el-checkbox-group v-model="checkDeleteGroup">
  12154. <el-checkbox
  12155. style="display: flex; margin-top: 20px"
  12156. v-for="(item, index) in deleteGroupUser"
  12157. :label="item.userid"
  12158. :key="index"
  12159. >{{ item.name }}</el-checkbox
  12160. >
  12161. </el-checkbox-group>
  12162. </div>
  12163. <span slot="footer" class="dialog-footer">
  12164. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  12165. <el-button type="primary" @click="deleteChair">确定</el-button>
  12166. </span>
  12167. </el-dialog>
  12168. <el-dialog
  12169. title="批量上传"
  12170. :visible.sync="dialogVisiblePl"
  12171. :append-to-body="true"
  12172. width="700px"
  12173. :before-close="handleClose"
  12174. class="dialog_change"
  12175. >
  12176. <div class="marginT">
  12177. <div class="plworkBox">
  12178. <div
  12179. class="chapter_add"
  12180. style="
  12181. display: flex;
  12182. width: 150px;
  12183. flex-direction: row;
  12184. flex-wrap: wrap;
  12185. justify-content: flex-start;
  12186. margin: 0 10px 10px 0;
  12187. "
  12188. v-for="(item, index) in plworkFile"
  12189. :key="index"
  12190. >
  12191. <div class="upCover2">
  12192. <img
  12193. :src="item.url"
  12194. alt
  12195. v-if="item.fileType == 1"
  12196. @click="previewImg(item.url)"
  12197. />
  12198. <img :src="word" alt v-else-if="item.fileType == 4" />
  12199. <img :src="video" alt v-else />
  12200. <!-- <span class="picName">{{ item.name }}</span> -->
  12201. <!-- <el-input
  12202. v-model="item.username"
  12203. placeholder="请输入学生名字"
  12204. style="margin-top: 10px"
  12205. ></el-input> -->
  12206. <div
  12207. class="pl_select_box"
  12208. @click="
  12209. getUpdateMore(true, checkUpload(), item.username, index)
  12210. "
  12211. >
  12212. {{ getSName(item.username) }}
  12213. </div>
  12214. <!-- <el-select
  12215. style="margin-top: 10px"
  12216. v-model="item.username"
  12217. filterable
  12218. allow-create
  12219. placeholder="请选择学生"
  12220. >
  12221. <el-option
  12222. v-for="item1 in checkUpload()"
  12223. :key="item1.userid"
  12224. :label="item1.name ? item1.name : item1.username"
  12225. :value="item1.userid"
  12226. >
  12227. </el-option>
  12228. </el-select> -->
  12229. <div class="deleteWord" @click="clean2(index)">
  12230. <img src="../../assets/icon/deleteWorks.png" alt />
  12231. </div>
  12232. </div>
  12233. </div>
  12234. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  12235. <div class="up_photo2">
  12236. <img src="../../assets/icon/plwork.png" alt />
  12237. <span>点击上传文件</span>
  12238. </div>
  12239. <input
  12240. type="file"
  12241. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12242. multiple="multiple"
  12243. style="display: none"
  12244. @change="beforeUpload3($event, 6)"
  12245. />
  12246. </div>
  12247. </div>
  12248. </div>
  12249. <!-- capture="camera" -->
  12250. <div
  12251. class="upload_send"
  12252. @click="addCourseWorksPl(taskCount)"
  12253. v-if="!proVisible2"
  12254. >
  12255. 提交
  12256. </div>
  12257. </el-dialog>
  12258. <el-dialog
  12259. title="修改名称"
  12260. :visible.sync="dialogVisibleSname"
  12261. width="500px"
  12262. :before-close="handleClose"
  12263. class="dialog_diy"
  12264. center
  12265. >
  12266. <div
  12267. style="
  12268. text-align: center;
  12269. display: flex;
  12270. align-items: center;
  12271. justify-content: center;
  12272. "
  12273. >
  12274. <span class="tian1">名称</span>
  12275. <div
  12276. class="pl_select_box"
  12277. style="margin-left: 10px; width: 200px"
  12278. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  12279. >
  12280. {{ getSName(worksSName) }}
  12281. </div>
  12282. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  12283. placeholder="请选择学生">
  12284. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  12285. :value="item.userid">
  12286. </el-option>
  12287. </el-select> -->
  12288. <!-- <el-input
  12289. v-model="worksSName"
  12290. style="width: 250px; margin: 15px 0px"
  12291. ></el-input> -->
  12292. </div>
  12293. <span slot="footer" class="dialog-footer">
  12294. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  12295. <el-button type="primary" @click="updateName">确 定</el-button>
  12296. </span>
  12297. </el-dialog>
  12298. <el-dialog
  12299. title="英语写作"
  12300. :visible.sync="engDialogVisible"
  12301. :append-to-body="true"
  12302. width="800px"
  12303. :before-close="handleClose"
  12304. class="dialog_diy"
  12305. >
  12306. <onlineWrite
  12307. v-if="engDialogVisible"
  12308. :englishList="englishList"
  12309. :myAnswerList1="myAnswerList1"
  12310. ref="engJson"
  12311. ></onlineWrite>
  12312. <span slot="footer" class="dialog-footer" style="text-align: center;">
  12313. <el-button @click="engDialogVisible = false">取 消</el-button>
  12314. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  12315. </span>
  12316. </el-dialog>
  12317. <el-dialog
  12318. title="英语写作"
  12319. :visible.sync="engUpdateDialogVisible"
  12320. :append-to-body="true"
  12321. width="800px"
  12322. :before-close="handleClose"
  12323. class="dialog_diy fullStyle"
  12324. >
  12325. <div class="engUpBox">
  12326. <div class="engUpTop">
  12327. <div class="engTitle">
  12328. <div>作文题目:</div>
  12329. <div>{{ englishList1.engTitle }}</div>
  12330. </div>
  12331. <div class="engText">
  12332. <div>作文内容:</div>
  12333. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  12334. </div>
  12335. </div>
  12336. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  12337. <div class="oldBox">
  12338. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  12339. <div class="oldText">
  12340. <div class="detailBox">
  12341. <div class="oldDetail">
  12342. <div>标题:</div>
  12343. <div>{{ oldEnglishJson.engTitle }} </div>
  12344. </div>
  12345. <div class="oldDetail1">
  12346. <div>正文:</div>
  12347. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  12348. </div>
  12349. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  12350. <div>图片:</div>
  12351. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  12352. </div>
  12353. </div>
  12354. </div>
  12355. </div>
  12356. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  12357. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  12358. <div class="oldText">
  12359. <div class="detailBox" style="position: relative;">
  12360. <div class="oldDetail">
  12361. <div>标题:</div>
  12362. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12363. <div v-else v-html="newEnglishList.engTitle"></div>
  12364. </div>
  12365. <div class="oldDetail">
  12366. <div>正文:</div>
  12367. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12368. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12369. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  12370. </div>
  12371. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12372. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12373. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12374. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12375. </div>
  12376. </div>
  12377. </div>
  12378. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  12379. <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">
  12380. <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>
  12381. <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>
  12382. </div>
  12383. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  12384. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  12385. <div class="detailBox" style="position: relative;">
  12386. <div class="oldDetail">
  12387. <div>标题:</div>
  12388. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  12389. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  12390. </div>
  12391. <div class="oldDetail">
  12392. <div>正文:</div>
  12393. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  12394. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  12395. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(oldEnglishJson1.engText,correctWord)"></div> -->
  12396. </div>
  12397. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12398. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12399. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12400. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12401. </div>
  12402. </div>
  12403. <div class="oldText" v-else-if="newEngIndex == -1">
  12404. <div class="detailBox" style="position: relative;">
  12405. <div class="oldDetail">
  12406. <div>标题:</div>
  12407. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12408. <div v-else v-html="newEnglishList.engTitle"></div>
  12409. </div>
  12410. <div class="oldDetail">
  12411. <div>正文:</div>
  12412. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12413. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12414. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  12415. </div>
  12416. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12417. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12418. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12419. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12420. </div>
  12421. </div>
  12422. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  12423. <div class="detailBox" style="position: relative;">
  12424. <div class="oldDetail">
  12425. <div>标题:</div>
  12426. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12427. <div v-else>
  12428. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  12429. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12430. </div>
  12431. </div>
  12432. <div class="oldDetail">
  12433. <div>正文:</div>
  12434. <!-- <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engText"></div> -->
  12435. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12436. <div v-else>
  12437. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  12438. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12439. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList1[newEngIndex].cWork.engText,correctWord)"></div> -->
  12440. </div>
  12441. </div>
  12442. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12443. <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>
  12444. <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>
  12445. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12446. </div>
  12447. </div>
  12448. </div>
  12449. </div>
  12450. </div>
  12451. <span slot="footer" class="dialog-footer">
  12452. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  12453. <el-button type="primary" @click="addCorrect">确 定</el-button>
  12454. </span>
  12455. </el-dialog>
  12456. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  12457. <interVideo
  12458. :dialogVisibleVideo.sync="dialogVisibleVideo"
  12459. :videoJson="videoJson"
  12460. :userid="userid"
  12461. :id="id"
  12462. :courseType="courseType"
  12463. :taskCount="taskCount"
  12464. :toolindex="toolindex"
  12465. :videoType="videoType"
  12466. ></interVideo>
  12467. <UpdateMore
  12468. :dialogVisibleMember.sync="dialogVisibleMember"
  12469. :cList="uploadStudentJuri"
  12470. :userid="userid"
  12471. :searchTN="worksSName2"
  12472. @setPlname="setPlname"
  12473. ></UpdateMore>
  12474. <!-- <wordCloud
  12475. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  12476. :data="wordCloudData"
  12477. ></wordCloud> -->
  12478. <el-dialog
  12479. title="词云"
  12480. :visible.sync="dialogVisibleWordCloud"
  12481. width="30%"
  12482. class="dialog_diy"
  12483. :before-close="handleClose">
  12484. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  12485. </el-dialog>
  12486. <el-dialog
  12487. title="挑人"
  12488. :visible.sync="dialogVisiblePickPeople"
  12489. width="650px"
  12490. :before-close="handleClose"
  12491. class="dialog_diy"
  12492. center
  12493. >
  12494. <div class="pick_box">
  12495. <div
  12496. class="noWorksName"
  12497. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  12498. v-for="(item, index) in uploadStudentJuri"
  12499. :key="index"
  12500. @click="pickStudent(item)"
  12501. >
  12502. {{ item.name }}
  12503. </div>
  12504. </div>
  12505. </el-dialog>
  12506. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  12507. :englishVoiceJson='englishVoiceJson'
  12508. :userid="userid"
  12509. :id="id"
  12510. :courseType="courseType"
  12511. :taskCount="taskCount"
  12512. :toolindex="toolindex"
  12513. @selectSWorks="selectSWorks"
  12514. @selectStudent="selectStudent"
  12515. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  12516. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  12517. :userid="userid"
  12518. :dialogVisibleENScore.sync='dialogVisibleENScore'
  12519. :commentDetail="commentDetail"
  12520. :courseDetail="courseDetail"
  12521. :wScore="wScore"
  12522. :scoreDetail="scoreDetail"
  12523. @selectSWorks="selectSWorks"
  12524. @selectStudent="selectStudent"></checkEnglishVoice>
  12525. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  12526. <choseWorksDetailDialog
  12527. ref="choseWorksDetailDialogRef"
  12528. :worksStudentData="worksStudent"
  12529. :noWorksSData="noWorksS"
  12530. :chapInfoListData="chapInfoList"
  12531. :courseType="courseType"
  12532. :taskCount="taskCount"
  12533. :tType="tType"
  12534. :sIsOpen="sIsOpen"
  12535. :courseDetail="courseDetail"
  12536. :groupStudent2="groupStudent"
  12537. :groupStudentUid2="groupStudentUid"
  12538. :oid="oid"
  12539. :org="org"
  12540. @getCourseDetail="getCourseDetail"
  12541. @selectSLook="selectSLook"
  12542. @selectSWorks="selectSWorks"
  12543. @selectStudent="selectStudent"
  12544. @deleteWorks="deleteWorks"
  12545. @openTools="openTools"
  12546. @openWord="openWord"
  12547. @openScore="openScore"
  12548. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  12549. />
  12550. <el-dialog
  12551. :visible.sync="confirmOpenDig"
  12552. width="500px"
  12553. :modal="false"
  12554. class="confirmOpenDigCss dialog_diyCopy"
  12555. :before-close="handleClose">
  12556. <div style="display: flex;align-items: center;">
  12557. <img src="../../assets/icon/course/confirmOpenDig.svg" alt="">
  12558. <span>“{{ courseDetail.title }}”开课啦</span>
  12559. </div>
  12560. <div style="margin: 20px 0 35px;">
  12561. <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
  12562. <div>要认真听讲哦~</div>
  12563. </div>
  12564. <div style="text-align: center;">
  12565. <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
  12566. </div>
  12567. </el-dialog>
  12568. <appStoreC ref="appStoreC"
  12569. :sStudent="sStudent"
  12570. :courseType="courseType"
  12571. :taskCount="taskCount"
  12572. :toolindex="toolindex"
  12573. @selectSWorks="selectSWorks"
  12574. @selectStudent="selectStudent"
  12575. ></appStoreC>
  12576. <cocoFlowDia ref="cocoFlowDiaRef"></cocoFlowDia>
  12577. </div>
  12578. </template>
  12579. <script>
  12580. import "../../common/aws-sdk-2.235.1.min.js";
  12581. // import pdf from "../components/pdf3";
  12582. import pdf from "../components/vpdf";
  12583. import AskStatic from "../components/askStatic";
  12584. import AskStatic2 from "../components/askStatic2";
  12585. import AnswerData2 from "../components/answerData2";
  12586. import AnswerData from "../components/answerData";
  12587. import sortToolWorkShow from "../components/sortToolWorkShow.vue";
  12588. import EditorBar from "../tools/wangEnduit.vue";
  12589. import Table from "../tools/table.vue";
  12590. import Time from "../tools/time.vue";
  12591. import Mind from "../tools/jsmind.vue";
  12592. import Sunburst from "../tools/sunburst";
  12593. import SeeBoard from "../tools/seeBoard";
  12594. import * as imageConversion from "image-conversion";
  12595. import Audio from "../components/audio.vue";
  12596. import ImgDraw from "../tools/imgDraw/imgDraw";
  12597. import { Empty } from "element-ui";
  12598. import RecordRTC from "recordrtc";
  12599. import interVideo from "../interVideo/index.vue";
  12600. import UpdateMore from "../updateMore/updateMore.vue";
  12601. import wordCloud from "../wordCloud/index.vue";
  12602. import axios from "axios";
  12603. import JSZip from "jszip";
  12604. import FileSaver from "file-saver";
  12605. import onlineWrite from "./commpont/onlineWrite";
  12606. import englishEva from "../components/englishEva";
  12607. import * as Diff from 'diff'
  12608. import EnglishVoice from '../EnglishVoice2/index.vue'
  12609. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  12610. import correctText from '../components/correctText.vue'
  12611. import scoreItem from '../scoreList/scoreItem.vue'
  12612. import scoreZong from '../scoreZong/index.vue'
  12613. import classRoomHelper from '../classRoomHelper/index.vue'
  12614. import studentClassRoomHelper from '../classRoomHelper/studentIndex.vue'
  12615. import MarkdownIt from "markdown-it";
  12616. import statisticalAnalysis from '../components/statisticalAnalysis.vue'
  12617. import choseWorksDetailDialog from '../components/choseWorksDetailDialog.vue'
  12618. import { v4 as uuidv4 } from "uuid";
  12619. var OpenCC = require("opencc-js");
  12620. import choseWordCloud from '../components/choseWordCloud.vue'
  12621. import appStoreC from "../components/appStoreC.vue";
  12622. import cocoFlowDia from "../components/cocoFlowDia.vue";
  12623. import { myMixin } from "@/mixins/mixin.js"
  12624. import { tools as toolsList } from "@/common/tools2.js";
  12625. import katex from 'katex'
  12626. import 'katex/dist/katex.min.css'
  12627. let converter = OpenCC.Converter({
  12628. from: "hk",
  12629. to: "cn"
  12630. });
  12631. const getFile = (url) => {
  12632. return new Promise((resolve, reject) => {
  12633. var credentials = {
  12634. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  12635. secretAccessKey: "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",
  12636. }; //秘钥形式的登录上传
  12637. window.AWS.config.update(credentials);
  12638. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12639. let url2 = url;
  12640. let _url2 = "";
  12641. if (
  12642. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  12643. ) {
  12644. _url2 = url2.split(
  12645. "https://view.officeapps.live.com/op/view.aspx?src="
  12646. )[1];
  12647. } else {
  12648. _url2 = url2;
  12649. }
  12650. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  12651. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  12652. var params = {
  12653. Bucket: "ccrb",
  12654. Key: name
  12655. };
  12656. s3.getObject(params, function (err, data) {
  12657. if (err) {
  12658. console.log(err, err.stack)
  12659. resolve({ data: 1 });
  12660. }else {
  12661. resolve({ data: data.Body });
  12662. console.log(data);
  12663. } // sxuccessful response
  12664. });
  12665. // axios({
  12666. // method: "get",
  12667. // url,
  12668. // responseType: "blob",
  12669. // })
  12670. // .then((data) => {
  12671. // resolve({ data: data.data });
  12672. // })
  12673. // .catch((error) => {
  12674. // resolve({ data: 1 });
  12675. // // reject(error.toString());
  12676. // });
  12677. });
  12678. };
  12679. export default {
  12680. mixins: [ myMixin ],
  12681. components: {
  12682. choseWordCloud,
  12683. EditorBar,
  12684. Time,
  12685. pdf,
  12686. AskStatic,
  12687. AskStatic2,
  12688. Mind,
  12689. Sunburst,
  12690. SeeBoard,
  12691. AnswerData2,
  12692. AnswerData,
  12693. sortToolWorkShow,
  12694. Audio,
  12695. ImgDraw,
  12696. Table,
  12697. interVideo,
  12698. UpdateMore,
  12699. wordCloud,
  12700. onlineWrite,
  12701. englishEva,
  12702. EnglishVoice,
  12703. checkEnglishVoice,
  12704. correctText,
  12705. scoreItem,
  12706. classRoomHelper,
  12707. scoreZong,
  12708. statisticalAnalysis,
  12709. choseWorksDetailDialog,
  12710. appStoreC,
  12711. cocoFlowDia,
  12712. studentClassRoomHelper
  12713. },
  12714. data() {
  12715. return {
  12716. startTime: "",
  12717. // 是否允许学生查看内容资料 2不可以 1可以
  12718. IsStulook:false,
  12719. homeWorkLoading:false,
  12720. toolsList: toolsList,
  12721. wordCloudKey: 0,
  12722. bg: null,
  12723. drawShow: false,
  12724. dialogVisible: false,
  12725. dialogVisiblePl: false,
  12726. commentDialogVisible: false,
  12727. dialogVisibleMember: false,
  12728. dialogVisibleWordCloud: false,
  12729. videoVisible: false,
  12730. isStar: false,
  12731. studentEvalDialogVisible: false,
  12732. studentEvalDialogVisibleTeacher: false,
  12733. dialogVisibleSelect: false,
  12734. dialogVisibleSelectTeacher: false,
  12735. dialogVisibleScore: false,
  12736. dialogVisibleENScore: false,
  12737. dialogVisibleSentence: false,
  12738. dialogVisibleSentenceTeacher: false,
  12739. dialogVisibleSentence1: false,
  12740. dialogVisibleWorks: false,
  12741. dialogVisibleTable: false,
  12742. dialogVisibleTableTeacher: false,
  12743. dialogVisibleWord: false,
  12744. dialogVisibleWordTeacher: false,
  12745. dialogVisibleTable2: false,
  12746. dialogVisibleTable3: false,
  12747. dialogVisibleGroupWork: false,
  12748. dialogVisibleUpdateGroup: false,
  12749. dialogVisibleDeleteGroup: false,
  12750. dialogVisibleSname: false,
  12751. dialogVisibleVideo: false,
  12752. dialogVisiblePickPeople: false,
  12753. worksSName: "",
  12754. classJuri: [],
  12755. uploadStudentJuri: [],
  12756. uploadCid: "",
  12757. snameWid: "",
  12758. sStudent: {},
  12759. sTool: "",
  12760. bzText: "",
  12761. commentDetail: [],
  12762. selectAnswer: [],
  12763. videoDetail: {},
  12764. selectJson: {},
  12765. eScore: { eBzText: "", eStar: [] },
  12766. id: this.$route.query.courseId,
  12767. userid: this.$route.query.userid,
  12768. classId: this.$route.query.cid,
  12769. role: this.$route.query.role,
  12770. // courseTypeLine: this.$route.query.type,
  12771. oid: this.$route.query.oid,
  12772. org: this.$route.query.org,
  12773. tType: this.$route.query.tType,
  12774. courseType: this.$route.query.type,
  12775. screenType: this.$route.query.screenType,
  12776. tcid2: this.$route.query.tcid,
  12777. tcid: "",
  12778. pptImgUrl: "",
  12779. pptImgUrl1: "",
  12780. commentText: "",
  12781. full: false,
  12782. sIsOpen: false,
  12783. IsLookOpen: false,
  12784. IsFollow: false,
  12785. pzDialog: false,
  12786. contentDialog: false,
  12787. mlDialog: false,
  12788. type: 1,
  12789. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12790. sentenceList1: [],
  12791. tableJson: [],
  12792. tableJsonO: [],
  12793. wordJson: [],
  12794. wordJsonO: [],
  12795. vedio: [],
  12796. text: [],
  12797. textList: [],
  12798. line: [],
  12799. lineList: [],
  12800. chapTools: [],
  12801. chapToolList: [],
  12802. file: [],
  12803. fileC: [],
  12804. vedioTime: [],
  12805. upToolImg: "",
  12806. preTime: 0,
  12807. rateList: {
  12808. ca: 0,
  12809. },
  12810. rateParams: [],
  12811. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12812. studyJuri: [
  12813. {
  12814. content: "",
  12815. cover: [],
  12816. upVedio: [],
  12817. upFile: [],
  12818. },
  12819. ],
  12820. isClose: 0,
  12821. plworkFile: [],
  12822. mr: require("../../assets/vedioPic.png"),
  12823. word: require("../../assets/icon/isWord.png"),
  12824. word2: require("../../assets/icon/word2.png"),
  12825. video: require("../../assets/icon/isVideo.png"),
  12826. noLikes: require("../../assets/icon/comment/noLikes.png"),
  12827. likes: require("../../assets/icon/comment/likes.png"),
  12828. scoreImg: require("../../assets/score.png"),
  12829. courseDetail: {},
  12830. reply: "",
  12831. isSelect: false,
  12832. chapInfo: [],
  12833. chapInfoList: [],
  12834. taskCount: 0,
  12835. imgList: [],
  12836. noImgList: [],
  12837. pzList: [],
  12838. timeWorkList: [],
  12839. PlTextList: [
  12840. "Excellent!",
  12841. "nice!",
  12842. "很有创意!",
  12843. "还不错哦~",
  12844. "继续努力哦~",
  12845. ],
  12846. isClickNav: "",
  12847. navId: "",
  12848. playerOptions: {
  12849. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12850. autoplay: false, //如果true,浏览器准备好时开始回放。
  12851. muted: false, // 默认情况下将会消除任何音频。
  12852. loop: false, // 导致视频一结束就重新开始。
  12853. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12854. language: "zh-CN",
  12855. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12856. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12857. sources: [
  12858. {
  12859. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12860. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12861. },
  12862. ],
  12863. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12864. // poster: dataRes.imgUrl, //你的封面地址
  12865. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12866. controlBar: {
  12867. timeDivider: true, //当前时间和持续时间的分隔符
  12868. durationDisplay: true, //显示持续时间
  12869. remainingTimeDisplay: false, //是否显示剩余时间功能
  12870. fullscreenToggle: true, //全屏按钮
  12871. },
  12872. },
  12873. playerOptions1: {
  12874. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12875. autoplay: false, //如果true,浏览器准备好时开始回放。
  12876. muted: false, // 默认情况下将会消除任何音频。
  12877. loop: false, // 导致视频一结束就重新开始。
  12878. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12879. language: "zh-CN",
  12880. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12881. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12882. sources: [
  12883. {
  12884. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12885. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12886. },
  12887. ],
  12888. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12889. // poster: dataRes.imgUrl, //你的封面地址
  12890. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12891. controlBar: {
  12892. timeDivider: true, //当前时间和持续时间的分隔符
  12893. durationDisplay: true, //显示持续时间
  12894. remainingTimeDisplay: false, //是否显示剩余时间功能
  12895. fullscreenToggle: true, //全屏按钮
  12896. },
  12897. },
  12898. playerO: {},
  12899. noneBtnImg: false,
  12900. proVisible: false,
  12901. proVisible2: false,
  12902. progress: 0,
  12903. isFinishSize: 0,
  12904. isAllSize: 0,
  12905. questionAnswer: "",
  12906. answerQ: "", //问答标题
  12907. rateJson: [],
  12908. wbCount: 0,
  12909. wordCount: 0,
  12910. mindCount: 0,
  12911. askCount: 0,
  12912. noteCount: 0,
  12913. mindNetWorkCount: 0,
  12914. libraryCount: 0,
  12915. workCount: 0,
  12916. timeCount: 0,
  12917. answerCount: 0,
  12918. trainCount: 0,
  12919. evalCount: 0,
  12920. dialogImageUrl: "",
  12921. pictureDialog: false,
  12922. toolTypeList: [],
  12923. dialogVisible1: false,
  12924. dialogVisible2: false,
  12925. dialogVisible3: false,
  12926. dialogVisible6: false,
  12927. dialogVisible4: false,
  12928. isNoHomeWork: false,
  12929. dialogVisible5: false,
  12930. dialogVisible5Teacher: false,
  12931. dialogVisibleChoice: false,
  12932. dialogVisibleChoiceTeacher: false,
  12933. answerDialogVisible: false,
  12934. answerDialogVisibleTeacher: false,
  12935. juriVisible: false,
  12936. timeDialogVisible: false,
  12937. replyDialogVisible: false,
  12938. toolDialogVisible: false,
  12939. engDialogVisible: false,
  12940. engUpdateDialogVisible:false,
  12941. engEvaDialogVisible: false,
  12942. evaEngJson: {
  12943. teacherJson: {},
  12944. studentJson: {},
  12945. message: {},
  12946. },
  12947. isNoUserid:false,
  12948. engListLength:0,
  12949. engWid:"",
  12950. newEnglishList:{
  12951. engTitle:"",
  12952. engText:"",
  12953. },
  12954. newEnglishList1:[],
  12955. oldEnglishJson:{},
  12956. oldEnglishJson1:{},
  12957. englishList1:{},
  12958. englishList:{},
  12959. myAnswerList1:{},
  12960. topHeight:0,
  12961. newEngIndex:-1,
  12962. englishToolIndex:0,
  12963. userMes:{},
  12964. englishToolIndex:0,
  12965. replyIndex: 0,
  12966. replyPid: "",
  12967. radio: [],
  12968. isAsk: false,
  12969. askJson: {
  12970. askCount: 1,
  12971. askTitle: "",
  12972. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12973. },
  12974. testJson: {},
  12975. englishList: {},
  12976. topHeight:0,
  12977. checkJson: [],
  12978. askList: [],
  12979. answerList: [],
  12980. navList: [],
  12981. addPzDialog: false,
  12982. pzConText: "",
  12983. worksStudent: [],
  12984. isCloseList: [],
  12985. workStudent: [],
  12986. groupStudent: [],
  12987. groupStudentUid: [],
  12988. noWorksS: [],
  12989. isWorksS: [],
  12990. noWorksStudent: [],
  12991. toolindex: 0,
  12992. toolDetailIndex: null,
  12993. groupIndex: 0,
  12994. workTypeB: false,
  12995. workTypeC: false,
  12996. isAnswer: false,
  12997. isHovered: false,
  12998. isHovered1: false,
  12999. isHovered2: false,
  13000. commentTagShow:0,
  13001. timer: null,
  13002. timer2: null,
  13003. opertimer: null,
  13004. showType: '',
  13005. fileType: 0,
  13006. showPDF: false,
  13007. noteName: "",
  13008. evaJuri: [],
  13009. evalua: "",
  13010. eTitle: "",
  13011. eName: "",
  13012. eJson: {},
  13013. fid: "", //一级
  13014. sid: "", //二级
  13015. tid: "", //二级
  13016. typeMode: 1,
  13017. eJSONNum: 0,
  13018. Etype: 1,
  13019. data: {
  13020. meta: {
  13021. name: "example",
  13022. author: "dd@163.com",
  13023. version: "0.2",
  13024. },
  13025. format: "node_array",
  13026. data: [{ id: "root", isroot: true, topic: "" }],
  13027. },
  13028. fullDialogVisible: false,
  13029. fulltype: "",
  13030. fullUrl: "",
  13031. commentIndexJson: {},
  13032. Stbodywidth: 0,
  13033. ispzType: 0,
  13034. pzType: 1,
  13035. wScore: 0,
  13036. scoreDetail: "",
  13037. videoStart: false,
  13038. recorder: null,
  13039. groupJson: {},
  13040. islock: false,
  13041. groupJson2: {},
  13042. dialogVisibleGroup: false,
  13043. dialogVisibleGroup2: false,
  13044. updateGroupArray: [],
  13045. updateGroupUser: {},
  13046. deleteGroupUser: [],
  13047. deleteGroupArray: {},
  13048. checkChair: "",
  13049. checkDeleteGroup: [],
  13050. inviteCode: "",
  13051. courseGroupStudent: [],
  13052. courseGroupStudentUid: [],
  13053. courseGroup: {},
  13054. isGroup: false,
  13055. toolIndex: null,
  13056. tool: {},
  13057. isWorkTool: [
  13058. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  13059. ], //, 40
  13060. videoJson: {},
  13061. videoType:0,
  13062. toolType: 0,
  13063. checktoolArray: [],
  13064. vChapterData: [],
  13065. isUpdateToolDetail: false,
  13066. isUpdateToolDetail1: false,
  13067. updateToolDetailInner: "",
  13068. checkboxList: [],
  13069. plIndex: "",
  13070. worksSName2: "",
  13071. worksSid: "",
  13072. wordCloudData: [],
  13073. isPickStudent: [],
  13074. pzStype: 1,
  13075. myAnList: {},
  13076. downLoading: false,
  13077. greyType: false,
  13078. correctWord: [],
  13079. EnglishVoiceDialog: false,
  13080. englishVoiceJson: {},
  13081. englishVoiceJsonWork:[],
  13082. scoreList:{
  13083. listdata:[],
  13084. isScoreList:[],
  13085. },
  13086. classRoomHelperWidth: '85px',
  13087. orgArray:[],
  13088. oidArray:[],
  13089. splitScreenData:{
  13090. isOpen:false,
  13091. userId:"",
  13092. uid:"",
  13093. myUid:"",
  13094. loading:false,
  13095. behavior:null,
  13096. },
  13097. confirmOpenDig:false,
  13098. confirmOpenDigData:'',
  13099. diffKey:"1"
  13100. };
  13101. },
  13102. methods: {
  13103. //查看应用中心作业
  13104. openCocoFlow(w){
  13105. this.$refs.cocoFlowDiaRef.openAppWork(w)
  13106. },
  13107. getAIJ(){
  13108. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  13109. let oid = res.data[0];
  13110. let org = res.data[1];
  13111. let oidArray = [];
  13112. let orgArray = [];
  13113. oid.forEach(i=>oidArray.push(i.oid))
  13114. org.forEach(i=>orgArray.push(i.oid))
  13115. this.orgArray = orgArray;
  13116. this.oidArray = oidArray;
  13117. })
  13118. },
  13119. insertMemorandum(_html){//保存行为操作
  13120. //variable
  13121. //btn
  13122. let params = [{
  13123. uid:this.userid,
  13124. courseId:this.id+(this.tcid2?this.tcid2:''),
  13125. content:_html
  13126. }]
  13127. console.log(params)
  13128. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  13129. if(res.data==1){
  13130. console.log('保存操作成功')
  13131. }else{
  13132. console.log('保存操作失败')
  13133. }
  13134. }).catch(e=>{
  13135. console.log('保存操作失败')
  13136. console.log(e)
  13137. })
  13138. },
  13139. gx(){
  13140. this.$forceUpdate();
  13141. },
  13142. isUpdateCorrect(t,p){
  13143. if(this.greyType == false){
  13144. this.isUpdateText = t;
  13145. this.greyType = true;
  13146. }else{
  13147. if(p == 1){
  13148. this.newEnglishList.engText = this.isUpdateText;
  13149. }else if(p == 2){
  13150. this.oldEnglishJson1.engText = this.isUpdateText;
  13151. }else if(p == 3){
  13152. this.newEnglishList.engText = this.isUpdateText;
  13153. }else{
  13154. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  13155. }
  13156. this.greyType = false
  13157. }
  13158. },
  13159. aiCorrect(t,p){
  13160. let aiText = "";
  13161. const loading = this.$loading.service({
  13162. background: "rgba(255, 255, 255)",
  13163. target: document.querySelectorAll(".loadingText")[0],
  13164. });
  13165. let param = {
  13166. model: "gpt-3.5-turbo",
  13167. temperature: 0,
  13168. max_tokens: 2048,
  13169. top_p: 1,
  13170. frequency_penalty: 0,
  13171. presence_penalty: 0,
  13172. messages: [
  13173. {
  13174. role: "user",
  13175. content:
  13176. `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  13177. },
  13178. ],
  13179. uid: this.userid,
  13180. stream: false,
  13181. };
  13182. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  13183. (res) => {
  13184. if (
  13185. res.data.FunctionResponse &&
  13186. res.data.FunctionResponse.result &&
  13187. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  13188. ) {
  13189. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  13190. return;
  13191. }
  13192. aiText =
  13193. res.data.FunctionResponse.choices[0].message.content;
  13194. aiText = aiText.replace(/%/g,"%25");
  13195. // let w = "";
  13196. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  13197. // for(var k = 0;k<a.length;k++){
  13198. // //diffWordsWithSpace
  13199. // if(a.length > 1){
  13200. // if(a[k].added == true){
  13201. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  13202. // }else if(a[k].removed == true){
  13203. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  13204. // }else{
  13205. // w += '<span>' + a[k].value + '</span>';
  13206. // }
  13207. // }else{
  13208. // if(p == 1){
  13209. // w = this.newEnglishList.engText;
  13210. // }else if(p == 2){
  13211. // w = this.oldEnglishJson1.engText;
  13212. // }else if(p == 3){
  13213. // w = this.newEnglishList.engText;
  13214. // }else{
  13215. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  13216. // }
  13217. // }
  13218. // }
  13219. if(p == 1){
  13220. this.newEnglishList.engText = aiText;
  13221. }else if(p == 2){
  13222. this.oldEnglishJson1.engText = aiText;
  13223. }else if(p == 3){
  13224. this.newEnglishList.engText = aiText;
  13225. }else{
  13226. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  13227. }
  13228. loading.close();
  13229. },
  13230. (err) => {
  13231. console.log(err);
  13232. loading.close();
  13233. }
  13234. );
  13235. },
  13236. addToolChoose() {
  13237. if (!this.checktoolArray.length) {
  13238. this.$message.error("请选择要添加的任务");
  13239. return;
  13240. }
  13241. if (
  13242. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13243. this.taskCount
  13244. ].toolChoose[0].tool.length
  13245. ) {
  13246. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13247. this.taskCount
  13248. ].toolChoose[0].tool = this.checktoolArray;
  13249. } else {
  13250. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13251. this.taskCount
  13252. ].toolChoose.push({
  13253. tool: this.checktoolArray,
  13254. toolDetail: "",
  13255. toolType: 0,
  13256. askCount: 1,
  13257. askTitle: "",
  13258. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13259. });
  13260. }
  13261. let params = [
  13262. {
  13263. cid: this.id,
  13264. chapters: JSON.stringify(this.chapInfoList),
  13265. uid: this.userid,
  13266. unitIndex: this.courseType,
  13267. },
  13268. ];
  13269. this.ajax
  13270. .post(this.$store.state.api + "updateWorkNew4", params)
  13271. .then((res) => {
  13272. this.$message({
  13273. message: "添加成功",
  13274. type: "success",
  13275. });
  13276. this.checktoolArray = [];
  13277. this.getCourseDetail(2);
  13278. this.checkBz(
  13279. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13280. this.taskCount
  13281. ].toolChoose.length - 1
  13282. );
  13283. this.toolDialogVisible = false;
  13284. this.refreshCourse();
  13285. this.$forceUpdate();
  13286. })
  13287. .catch((err) => {
  13288. console.error(err);
  13289. });
  13290. },
  13291. checkBz(index) {
  13292. this.isUpdateToolDetail = false;
  13293. this.$forceUpdate();
  13294. setTimeout(() => {
  13295. document.scrollingElement.scrollTop =
  13296. document.querySelectorAll(".filebox")[index].offsetTop +
  13297. document.querySelector(".student_body").offsetTop;
  13298. }, 500);
  13299. },
  13300. updateToolDetail(i, type) {
  13301. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  13302. this.toolDetailIndex = i
  13303. this.isUpdateToolDetail1 = true;
  13304. setTimeout(() => {
  13305. this.updateToolDetailInner = JSON.parse(
  13306. JSON.stringify(
  13307. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13308. this.taskCount
  13309. ].toolChoose[i].toolDetail
  13310. )
  13311. );
  13312. document.querySelector(".checkTextArea").focus();
  13313. }, 0);
  13314. } else if((this.isUpdateToolDetail1 && type != 2)){
  13315. // this.toolDetailIndex = i;
  13316. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13317. this.taskCount
  13318. ].toolChoose[i].toolDetail = JSON.parse(
  13319. JSON.stringify(this.updateToolDetailInner)
  13320. );
  13321. let params = [
  13322. {
  13323. cid: this.id,
  13324. chapters: JSON.stringify(this.chapInfoList),
  13325. uid: this.userid,
  13326. unitIndex: this.courseType,
  13327. },
  13328. ];
  13329. this.ajax
  13330. .post(this.$store.state.api + "updateWorkNew4", params)
  13331. .then((res) => {
  13332. this.isUpdateToolDetail1 = false;
  13333. this.$message({
  13334. message: "修改成功",
  13335. type: "success",
  13336. });
  13337. this.toolDetailIndex = null;
  13338. this.updateToolDetailInner = "";
  13339. this.getCourseDetail(2);
  13340. this.$forceUpdate();
  13341. })
  13342. .catch((err) => {
  13343. console.error(err);
  13344. });
  13345. } else if((this.isUpdateToolDetail1 && type == 2)){
  13346. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13347. this.taskCount
  13348. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  13349. JSON.stringify(this.updateToolDetailInner)
  13350. );
  13351. let params = [
  13352. {
  13353. cid: this.id,
  13354. chapters: JSON.stringify(this.chapInfoList),
  13355. uid: this.userid,
  13356. unitIndex: this.courseType,
  13357. },
  13358. ];
  13359. this.ajax
  13360. .post(this.$store.state.api + "updateWorkNew4", params)
  13361. .then((res) => {
  13362. this.$message({
  13363. message: "修改成功",
  13364. type: "success",
  13365. });
  13366. this.toolDetailIndex = i;
  13367. this.isUpdateToolDetail1 = true;
  13368. setTimeout(() => {
  13369. this.updateToolDetailInner = JSON.parse(
  13370. JSON.stringify(
  13371. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13372. this.taskCount
  13373. ].toolChoose[i].toolDetail
  13374. )
  13375. );
  13376. document.querySelector(".checkTextArea").focus();
  13377. }, 0);
  13378. this.getCourseDetail(2);
  13379. this.$forceUpdate();
  13380. })
  13381. .catch((err) => {
  13382. console.error(err);
  13383. });
  13384. }
  13385. },
  13386. jumpGj(i, j, k, l) {
  13387. for (var z = 0; z < this.navList.length; z++) {
  13388. for (var q = 0; q < this.navList[z].task.length; q++) {
  13389. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  13390. this.navList[z].task[q].tool[w].isTool = false;
  13391. }
  13392. }
  13393. }
  13394. console.log(this.navList);
  13395. this.navList[i].task[j].tool[k].isTool =
  13396. !this.navList[i].task[j].tool[k].isTool;
  13397. var a = document.scrollingElement;
  13398. let target = document.querySelector(`#gj${k}`);
  13399. if (target) {
  13400. // target.scrollIntoView(true);
  13401. // setTimeout(() => {
  13402. // a.scrollTop = a.scrollTop - 150;
  13403. // }, 0);
  13404. target.scrollIntoView();
  13405. setTimeout(()=>{
  13406. let scrollBody = document.querySelector('.body_student').parentElement
  13407. scrollBody.scrollTop = scrollBody.scrollTop - 100
  13408. }, 0);
  13409. }
  13410. this.navId = ""
  13411. let flag = this.courseType == i;
  13412. let flag2 = this.taskCount == j
  13413. if (l) {
  13414. this.courseType = i;
  13415. // this.navId = l;
  13416. this.taskCount = j;
  13417. this.selectPz();
  13418. this.getHomeWork();
  13419. this.getCourseDetail(2);
  13420. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  13421. if(flag){
  13422. if(flag2){
  13423. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  13424. }else{
  13425. 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>`)
  13426. }
  13427. }else{
  13428. 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>`)
  13429. }
  13430. }
  13431. // var b = this.$refs["bz" + k][0];
  13432. // a.scrollTop = b.offsetTop;
  13433. },
  13434. addTools2(i) {
  13435. if (i == 4) {
  13436. // this.openTools2(4);
  13437. this.$message.error("暂未开放");
  13438. return;
  13439. }
  13440. if (i == 45) {
  13441. // this.openTools2(45);
  13442. this.$message.error("暂未开放");
  13443. return;
  13444. }
  13445. if (i == 47) {
  13446. // this.openTools2(47);
  13447. this.$message.error("暂未开放");
  13448. return;
  13449. }
  13450. if (i == 49) {
  13451. // this.openTools2(49);
  13452. this.$message.error("暂未开放");
  13453. return;
  13454. }
  13455. if (i == 62) {
  13456. // this.openTools(itemTaskIndex, 62, toolIndex);
  13457. this.$message.error("暂未开放");
  13458. return;
  13459. }
  13460. if (i == 15) {
  13461. // this.openTools(itemTaskIndex, 15, toolIndex);
  13462. this.$message.error("暂未开放");
  13463. return;
  13464. }
  13465. if (i == 40) {
  13466. // this.openTools(itemTaskIndex, 40, toolIndex);
  13467. this.$message.error("暂未开放");
  13468. return;
  13469. }
  13470. if (i == 41) {
  13471. // this.openTools(itemTaskIndex, 41, toolIndex);
  13472. this.$message.error("暂未开放");
  13473. return;
  13474. }
  13475. if (i == 42) {
  13476. // this.openTools(itemTaskIndex, 42, toolIndex);
  13477. this.$message.error("暂未开放");
  13478. return;
  13479. }
  13480. if (this.checktoolArray.length > 0) {
  13481. if (this.checktoolArray.indexOf(i) != -1) {
  13482. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  13483. } else {
  13484. this.checktoolArray = [];
  13485. this.checktoolArray.push(i);
  13486. }
  13487. } else {
  13488. this.checktoolArray.push(i);
  13489. }
  13490. this.$forceUpdate();
  13491. },
  13492. jump() {
  13493. window.topU.postMessage({ tools: "43" }, "*");
  13494. },
  13495. getUpdateMore(f, checkboxList, searchTN, index) {
  13496. this.dialogVisibleMember = f;
  13497. this.checkboxList = checkboxList;
  13498. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  13499. this.plIndex = index;
  13500. },
  13501. setPlname(a) {
  13502. if (this.plworkFile.length) {
  13503. this.plworkFile[this.plIndex].username = a;
  13504. } else {
  13505. this.worksSName = a;
  13506. }
  13507. this.dialogVisibleMember = false;
  13508. },
  13509. previewImg(url,w) {
  13510. this.$hevueImgPreview(url);
  13511. if(w){
  13512. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  13513. }
  13514. },
  13515. checkImg(list) {
  13516. if (!list.length) {
  13517. return;
  13518. }
  13519. this.$hevueImgPreview({
  13520. multiple: true, // 开启多图预览模式
  13521. imgList: list, // 需要预览的多图数组
  13522. });
  13523. },
  13524. change(val) {
  13525. console.log(val);
  13526. },
  13527. goTo(path) {
  13528. this.$router.push(path);
  13529. },
  13530. handlePictureCardPreview(url) {
  13531. this.dialogImageUrl = url;
  13532. this.pictureDialog = true;
  13533. },
  13534. clean(type) {
  13535. if (type == 1) {
  13536. this.studyJuri[0].cover.splice(0, 1);
  13537. } else if (type == 2) {
  13538. this.studyJuri[0].upVedio.splice(0, 1);
  13539. } else {
  13540. this.studyJuri[0].upFile.splice(0, 1);
  13541. }
  13542. },
  13543. clean2(index) {
  13544. this.plworkFile.splice(index, 1);
  13545. },
  13546. handleClose(done) {
  13547. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  13548. this.videoDetail.sources[0].src = "";
  13549. }
  13550. this.commentIndexJson = {};
  13551. this.changeSplitScreenBehavior({code:99})
  13552. done();
  13553. },
  13554. fullTools() {
  13555. this.full = !this.full;
  13556. },
  13557. imgChange(file, fileList, type) {
  13558. if (type == 1) {
  13559. var _tmp = this.studyJuri[0].cover;
  13560. } else if (type == 2) {
  13561. var _tmp = this.studyJuri[0].upVedio;
  13562. } else {
  13563. var _tmp = this.studyJuri[0].upFile;
  13564. }
  13565. this.noneBtnImg = _tmp.length >= 1;
  13566. },
  13567. setContent(bool) {
  13568. this.contentDialog = bool;
  13569. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  13570. document.querySelector(".workd_media").style.height = "650px";
  13571. } else if (document.querySelector(".workd_media")) {
  13572. document.querySelector(".workd_media").style.height = "auto";
  13573. }
  13574. },
  13575. setContent2(bool) {
  13576. this.mlDialog = bool;
  13577. if (
  13578. bool &&
  13579. this.contentDialog &&
  13580. document.querySelector(".workd_media")
  13581. ) {
  13582. document.querySelector(".workd_media").style.height = "650px";
  13583. } else if (document.querySelector(".workd_media")) {
  13584. document.querySelector(".workd_media").style.height = "auto";
  13585. }
  13586. },
  13587. openToolAll() {
  13588. this.toolDialogVisible = true;
  13589. },
  13590. addImg(e) {
  13591. var el = e.currentTarget;
  13592. // this.$message.success('触发上传')
  13593. el.getElementsByTagName("input")[0].click();
  13594. e.target.value = "";
  13595. },
  13596. addSelectAnswer() {
  13597. let params = [
  13598. {
  13599. uid: this.userid,
  13600. cid: this.id,
  13601. stage: this.courseType,
  13602. task: this.taskCount,
  13603. tool: this.toolindex,
  13604. content: this.selectAnswer.answer,
  13605. type: 7,
  13606. },
  13607. ];
  13608. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13609. this.homeWorkLoading = true
  13610. this.ajax
  13611. .post(this.$store.state.api + "addCourseWorks", params)
  13612. .then((res) => {
  13613. this.$message({
  13614. message: "提交成功",
  13615. type: "success",
  13616. });
  13617. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, "success")
  13618. setTimeout(() => {
  13619. this.homeWorkLoading = false
  13620. }, 500);
  13621. this.dialogVisibleSelect = false;
  13622. // this.selectAnswer = {};
  13623. this.selectSWorks();
  13624. this.selectStudent();
  13625. })
  13626. .catch((err) => {
  13627. this.$message.error("提交失败");
  13628. console.error(err);
  13629. setTimeout(() => {
  13630. this.homeWorkLoading = false
  13631. }, 500);
  13632. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, err)
  13633. });
  13634. },
  13635. addSelectAnswerTeacher() {
  13636. let params = [
  13637. {
  13638. uid: this.sStudent.userid,
  13639. cid: this.id,
  13640. stage: this.courseType,
  13641. task: this.taskCount,
  13642. tool: this.toolindex,
  13643. content: this.selectAnswer.answer,
  13644. type: 7,
  13645. },
  13646. ];
  13647. this.ajax
  13648. .post(this.$store.state.api + "addCourseWorks", params)
  13649. .then((res) => {
  13650. this.$message({
  13651. message: "提交成功",
  13652. type: "success",
  13653. });
  13654. this.dialogVisibleSelectTeacher = false;
  13655. // this.selectAnswer = {};
  13656. this.selectSWorks();
  13657. this.selectStudent();
  13658. })
  13659. .catch((err) => {
  13660. this.$message.error("提交失败");
  13661. console.error(err);
  13662. });
  13663. },
  13664. addSenWorks() {
  13665. for (var i = 0; i < this.sentenceList.length; i++) {
  13666. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13667. if (
  13668. this.sentenceList[i].chooseSenList[j] == undefined ||
  13669. this.sentenceList[i].chooseSenList[j] == ""
  13670. ) {
  13671. this.$message.error("请将答案填写完整!");
  13672. return;
  13673. }
  13674. }
  13675. }
  13676. let params = [
  13677. {
  13678. uid: this.userid,
  13679. cid: this.id,
  13680. stage: this.courseType,
  13681. task: this.taskCount,
  13682. tool: this.toolindex,
  13683. content: JSON.stringify(this.sentenceList),
  13684. type: 9,
  13685. },
  13686. ];
  13687. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13688. this.homeWorkLoading = true
  13689. this.ajax
  13690. .post(this.$store.state.api + "addCourseWorks", params)
  13691. .then((res) => {
  13692. this.$message({
  13693. message: "提交成功",
  13694. type: "success",
  13695. });
  13696. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, "success")
  13697. setTimeout(() => {
  13698. this.homeWorkLoading = false
  13699. }, 500);
  13700. this.dialogVisibleSentence = false;
  13701. // this.selectAnswer = {};
  13702. this.selectSWorks();
  13703. this.selectStudent();
  13704. })
  13705. .catch((err) => {
  13706. this.$message.error("提交失败");
  13707. console.error(err);
  13708. setTimeout(() => {
  13709. this.homeWorkLoading = false
  13710. }, 500);
  13711. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, err)
  13712. });
  13713. },
  13714. addSenWorksTeacher() {
  13715. for (var i = 0; i < this.sentenceList.length; i++) {
  13716. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13717. if (
  13718. this.sentenceList[i].chooseSenList[j] == undefined ||
  13719. this.sentenceList[i].chooseSenList[j] == ""
  13720. ) {
  13721. this.$message.error("请将答案填写完整!");
  13722. return;
  13723. }
  13724. }
  13725. }
  13726. let params = [
  13727. {
  13728. uid: this.sStudent.userid,
  13729. cid: this.id,
  13730. stage: this.courseType,
  13731. task: this.taskCount,
  13732. tool: this.toolindex,
  13733. content: JSON.stringify(this.sentenceList),
  13734. type: 9,
  13735. },
  13736. ];
  13737. this.ajax
  13738. .post(this.$store.state.api + "addCourseWorks", params)
  13739. .then((res) => {
  13740. this.$message({
  13741. message: "提交成功",
  13742. type: "success",
  13743. });
  13744. this.dialogVisibleSentenceTeacher = false;
  13745. // this.selectAnswer = {};
  13746. this.selectSWorks();
  13747. this.selectStudent();
  13748. })
  13749. .catch((err) => {
  13750. this.$message.error("提交失败");
  13751. console.error(err);
  13752. });
  13753. },
  13754. returnTableText() {
  13755. this.$confirm("确定还原此模板吗?", "提示", {
  13756. confirmButtonText: "确定",
  13757. cancelButtonText: "取消",
  13758. type: "warning",
  13759. })
  13760. .then(() => {
  13761. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13762. })
  13763. .catch(() => {});
  13764. },
  13765. addTableWorks() {
  13766. let params = [
  13767. {
  13768. uid: this.userid,
  13769. cid: this.id,
  13770. stage: this.courseType,
  13771. task: this.taskCount,
  13772. tool: this.toolindex,
  13773. content: JSON.stringify(this.tableJson),
  13774. type: 10,
  13775. },
  13776. ];
  13777. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13778. this.homeWorkLoading = true
  13779. this.ajax
  13780. .post(this.$store.state.api + "addCourseWorks", params)
  13781. .then((res) => {
  13782. this.$message({
  13783. message: "提交成功",
  13784. type: "success",
  13785. });
  13786. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, "success")
  13787. setTimeout(() => {
  13788. this.homeWorkLoading = false
  13789. }, 500);
  13790. this.dialogVisibleTable = false;
  13791. // this.selectAnswer = {};
  13792. this.selectSWorks();
  13793. this.selectStudent();
  13794. })
  13795. .catch((err) => {
  13796. this.$message.error("提交失败");
  13797. console.error(err);
  13798. setTimeout(() => {
  13799. this.homeWorkLoading = false
  13800. }, 500);
  13801. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, err)
  13802. });
  13803. },
  13804. tableRowClassName({ row, rowIndex }) {
  13805. if ((rowIndex + 1) % 2 === 0) {
  13806. return "even_row";
  13807. } else {
  13808. return "";
  13809. }
  13810. },
  13811. addTableWorksTeacher() {
  13812. let params = [
  13813. {
  13814. uid: this.sStudent.userid,
  13815. cid: this.id,
  13816. stage: this.courseType,
  13817. task: this.taskCount,
  13818. tool: this.toolindex,
  13819. content: JSON.stringify(this.tableJson),
  13820. type: 10,
  13821. },
  13822. ];
  13823. this.ajax
  13824. .post(this.$store.state.api + "addCourseWorks", params)
  13825. .then((res) => {
  13826. this.$message({
  13827. message: "提交成功",
  13828. type: "success",
  13829. });
  13830. this.dialogVisibleTableTeacher = false;
  13831. // this.selectAnswer = {};
  13832. this.selectSWorks();
  13833. this.selectStudent();
  13834. })
  13835. .catch((err) => {
  13836. this.$message.error("提交失败");
  13837. console.error(err);
  13838. });
  13839. },
  13840. returnWordText() {
  13841. this.$confirm("确定还原此模板吗?", "提示", {
  13842. confirmButtonText: "确定",
  13843. cancelButtonText: "取消",
  13844. type: "warning",
  13845. })
  13846. .then(() => {
  13847. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13848. })
  13849. .catch(() => {});
  13850. },
  13851. addWordWorks() {
  13852. let params = [
  13853. {
  13854. uid: this.userid,
  13855. cid: this.id,
  13856. stage: this.courseType,
  13857. task: this.taskCount,
  13858. tool: this.toolindex,
  13859. content: JSON.stringify(this.wordJson),
  13860. type: 13,
  13861. atool: 52,
  13862. },
  13863. ];
  13864. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13865. this.homeWorkLoading = true
  13866. this.ajax
  13867. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13868. .then((res) => {
  13869. this.$message({
  13870. message: "提交成功",
  13871. type: "success",
  13872. });
  13873. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, "success")
  13874. setTimeout(() => {
  13875. this.homeWorkLoading = false
  13876. }, 500);
  13877. this.dialogVisibleWord = false;
  13878. // this.selectAnswer = {};
  13879. this.selectSWorks();
  13880. this.selectStudent();
  13881. })
  13882. .catch((err) => {
  13883. this.$message.error("提交失败");
  13884. console.error(err);
  13885. setTimeout(() => {
  13886. this.homeWorkLoading = false
  13887. }, 500);
  13888. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, err)
  13889. });
  13890. },
  13891. addWordWorksTeacher() {
  13892. let params = [
  13893. {
  13894. uid: this.sStudent.userid,
  13895. cid: this.id,
  13896. stage: this.courseType,
  13897. task: this.taskCount,
  13898. tool: this.toolindex,
  13899. content: JSON.stringify(this.wordJson),
  13900. type: 13,
  13901. atool: 52,
  13902. },
  13903. ];
  13904. this.ajax
  13905. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13906. .then((res) => {
  13907. this.$message({
  13908. message: "提交成功",
  13909. type: "success",
  13910. });
  13911. this.dialogVisibleWordTeacher = false;
  13912. // this.selectAnswer = {};
  13913. this.selectSWorks();
  13914. this.selectStudent();
  13915. })
  13916. .catch((err) => {
  13917. this.$message.error("提交失败");
  13918. console.error(err);
  13919. });
  13920. },
  13921. addCourseWorks(i) {
  13922. var typesql;
  13923. if (this.fileType === 0) {
  13924. typesql = 1;
  13925. } else if (this.fileType === 1) {
  13926. typesql = 4;
  13927. } else if (this.fileType === 2) {
  13928. typesql = 5;
  13929. } else if (this.fileType === 3) {
  13930. typesql = 12;
  13931. }
  13932. if (!this.studyJuri[0].cover[0].url) {
  13933. this.$message.error("请上传文件");
  13934. return;
  13935. }
  13936. let params = [
  13937. {
  13938. uid: this.userid,
  13939. cid: this.id,
  13940. stage: this.courseType,
  13941. task: i,
  13942. tool: this.toolindex,
  13943. content: this.studyJuri[0].cover[0].url,
  13944. type: typesql,
  13945. },
  13946. ];
  13947. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13948. this.homeWorkLoading = true
  13949. this.ajax
  13950. .post(this.$store.state.api + "addCourseWorksR", params)
  13951. .then((res) => {
  13952. this.$message({
  13953. message: "提交成功",
  13954. type: "success",
  13955. });
  13956. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, "success")
  13957. setTimeout(() => {
  13958. this.homeWorkLoading = false
  13959. }, 500);
  13960. this.studyJuri[0].cover = [];
  13961. this.dialogVisible = false;
  13962. this.getCourseDetail(2);
  13963. })
  13964. .catch((err) => {
  13965. this.$message.error("提交失败");
  13966. console.error(err);
  13967. setTimeout(() => {
  13968. this.homeWorkLoading = false
  13969. }, 500);
  13970. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, err)
  13971. });
  13972. },
  13973. addCourseWorksPl(i) {
  13974. let _files = this.plworkFile;
  13975. var c = 1;
  13976. for (var k = 0; k < _files.length; k++) {
  13977. if (!_files[k].username) {
  13978. c = 2;
  13979. }
  13980. }
  13981. if (c == 2) {
  13982. this.$message.error("请填写学生姓名");
  13983. return;
  13984. }
  13985. let params = [
  13986. {
  13987. ateacher: this.userid,
  13988. cid: this.id,
  13989. stage: this.courseType,
  13990. task: i,
  13991. tool: this.toolindex,
  13992. content: JSON.stringify(_files),
  13993. },
  13994. ];
  13995. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13996. this.homeWorkLoading = true
  13997. this.ajax
  13998. .post(this.$store.state.api + "addCourseWorksPl", params)
  13999. .then((res) => {
  14000. this.$message({
  14001. message: "提交成功",
  14002. type: "success",
  14003. });
  14004. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, "success")
  14005. setTimeout(() => {
  14006. this.homeWorkLoading = false
  14007. }, 500);
  14008. this.plworkFile = [];
  14009. this.dialogVisiblePl = false;
  14010. this.getCourseDetail(2);
  14011. })
  14012. .catch((err) => {
  14013. this.$message.error("提交失败");
  14014. console.error(err);
  14015. setTimeout(() => {
  14016. this.homeWorkLoading = false
  14017. }, 500);
  14018. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, err)
  14019. });
  14020. },
  14021. addCourseWorks2(i) {
  14022. var typesql;
  14023. if (this.fileType === 0) {
  14024. typesql = 0;
  14025. } else if (this.fileType === 1) {
  14026. typesql = 1;
  14027. } else if (this.fileType === 2) {
  14028. typesql = 3;
  14029. } else if (this.fileType === 3) {
  14030. typesql = 12;
  14031. }
  14032. if (!this.studyJuri[0].cover[0].url) {
  14033. this.$message.error("请上传文件");
  14034. return;
  14035. }
  14036. let params = [
  14037. {
  14038. uid: this.userid,
  14039. cid: this.id,
  14040. stage: this.courseType,
  14041. task: i,
  14042. tool: this.toolindex,
  14043. content: JSON.stringify({
  14044. type: typesql,
  14045. groupIndex: this.groupIndex,
  14046. url: this.studyJuri[0].cover[0].url,
  14047. }),
  14048. type: 11,
  14049. atool: 49,
  14050. text: "",
  14051. },
  14052. ];
  14053. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  14054. this.homeWorkLoading = true
  14055. this.ajax
  14056. .post(this.$store.state.api + "addCourseWorks5", params)
  14057. .then((res) => {
  14058. this.$message({
  14059. message: "提交成功",
  14060. type: "success",
  14061. });
  14062. setTimeout(() => {
  14063. this.homeWorkLoading = false
  14064. }, 500);
  14065. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  14066. type: typesql,
  14067. groupIndex: this.groupIndex,
  14068. url: this.studyJuri[0].cover[0].url,
  14069. }),type: "course_tool_sub" }, "success")
  14070. this.studyJuri[0].cover = [];
  14071. this.dialogVisibleGroupWork = false;
  14072. this.getCourseDetail(2);
  14073. })
  14074. .catch((err) => {
  14075. this.$message.error("提交失败");
  14076. console.error(err);
  14077. setTimeout(() => {
  14078. this.homeWorkLoading = false
  14079. }, 500);
  14080. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  14081. type: typesql,
  14082. groupIndex: this.groupIndex,
  14083. url: this.studyJuri[0].cover[0].url,
  14084. }),type: "course_tool_sub" }, err)
  14085. });
  14086. },
  14087. addEnglishWork() {
  14088. this.myAnList = this.$refs['engJson'].myAnswerList;
  14089. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  14090. this.$message.error("请输入作文标题和正文!");
  14091. return;
  14092. }
  14093. let params = [
  14094. {
  14095. uid: this.userid,
  14096. cid: this.id,
  14097. stage: this.courseType,
  14098. task: this.taskCount,
  14099. tool: this.englishToolIndex,
  14100. content: JSON.stringify(this.myAnList),
  14101. type: 16,
  14102. atool: 69,
  14103. text: "",
  14104. },
  14105. ];
  14106. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  14107. this.homeWorkLoading = true
  14108. this.ajax
  14109. .post(this.$store.state.api + "addCourseWorks5", params)
  14110. .then((res) => {
  14111. this.$message({
  14112. message: "提交成功",
  14113. type: "success",
  14114. });
  14115. setTimeout(() => {
  14116. this.homeWorkLoading = false
  14117. }, 500);
  14118. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  14119. data: JSON.stringify(this.myAnList),
  14120. type: "course_tool_sub" }, "success")
  14121. this.myAnList = {};
  14122. this.englishList = {};
  14123. this.englishToolIndex = 0;
  14124. this.engDialogVisible = false;
  14125. this.selectSWorks();
  14126. this.selectStudent();
  14127. })
  14128. .catch((err) => {
  14129. this.$message.error("提交失败");
  14130. console.error(err);
  14131. setTimeout(() => {
  14132. this.homeWorkLoading = false
  14133. }, 500);
  14134. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  14135. data: JSON.stringify(this.myAnList),
  14136. type: "course_tool_sub" }, err)
  14137. });
  14138. },
  14139. addCourseWorksGong(i, data, tool) {
  14140. let params = [
  14141. {
  14142. uid: this.userid,
  14143. cid: this.id,
  14144. stage: this.courseType,
  14145. task: this.taskCount,
  14146. tool: i,
  14147. content: data,
  14148. type: 12,
  14149. atool: tool,
  14150. text: "",
  14151. },
  14152. ];
  14153. this.ajax
  14154. .post(this.$store.state.api + "addCourseWorks5", params)
  14155. .then((res) => {
  14156. this.$message({
  14157. message: "提交成功",
  14158. type: "success",
  14159. });
  14160. this.studyJuri[0].cover = [];
  14161. this.selectSWorks();
  14162. this.selectStudent();
  14163. })
  14164. .catch((err) => {
  14165. this.$message.error("提交失败");
  14166. console.error(err);
  14167. });
  14168. },
  14169. addCourseWorksGongTeacher(i, data, tool) {
  14170. let params = [
  14171. {
  14172. uid: this.sStudent.userid,
  14173. cid: this.id,
  14174. stage: this.courseType,
  14175. task: this.taskCount,
  14176. tool: i,
  14177. content: data,
  14178. type: 12,
  14179. atool: tool,
  14180. text: "",
  14181. },
  14182. ];
  14183. this.ajax
  14184. .post(this.$store.state.api + "addCourseWorks5", params)
  14185. .then((res) => {
  14186. this.$message({
  14187. message: "提交成功",
  14188. type: "success",
  14189. });
  14190. this.studyJuri[0].cover = [];
  14191. this.dialogVisibleWorks = false;
  14192. this.selectSWorks();
  14193. this.selectStudent();
  14194. })
  14195. .catch((err) => {
  14196. this.$message.error("提交失败");
  14197. console.error(err);
  14198. });
  14199. },
  14200. addCourseWorksGongPl(i, data, tool, type) {
  14201. let params = [
  14202. {
  14203. uid: this.sStudent.userid,
  14204. cid: this.id,
  14205. stage: this.courseType,
  14206. task: this.taskCount,
  14207. tool: i,
  14208. content: data,
  14209. type: type,
  14210. atool: tool,
  14211. text: "",
  14212. },
  14213. ];
  14214. this.ajax
  14215. .post(this.$store.state.api + "addCourseWorks5", params)
  14216. .then((res) => {
  14217. this.$message({
  14218. message: "提交成功",
  14219. type: "success",
  14220. });
  14221. this.studyJuri[0].cover = [];
  14222. this.dialogVisibleWorks = false;
  14223. this.selectSWorks();
  14224. this.selectStudent();
  14225. })
  14226. .catch((err) => {
  14227. this.$message.error("提交失败");
  14228. console.error(err);
  14229. });
  14230. },
  14231. addCourseWorksTeacher(i) {
  14232. var typesql;
  14233. if (this.sTool == 32) {
  14234. this.addCourseWorksGongTeacher(
  14235. this.toolindex,
  14236. this.studyJuri[0].cover[0].url,
  14237. this.sTool
  14238. );
  14239. return;
  14240. }
  14241. if (this.fileType === 0) {
  14242. typesql = 1;
  14243. } else if (this.fileType === 1) {
  14244. typesql = 4;
  14245. } else if (this.fileType === 2) {
  14246. typesql = 5;
  14247. } else if (this.fileType === 3) {
  14248. typesql = 12;
  14249. }
  14250. if (this.sTool == 50) {
  14251. this.addCourseWorksGongPl(
  14252. this.toolindex,
  14253. this.studyJuri[0].cover[0].url,
  14254. this.sTool,
  14255. typesql
  14256. );
  14257. return;
  14258. }
  14259. if (!this.studyJuri[0].cover[0].url) {
  14260. this.$message.error("请上传文件");
  14261. return;
  14262. }
  14263. let params = [
  14264. {
  14265. uid: this.sStudent.userid,
  14266. cid: this.id,
  14267. stage: this.courseType,
  14268. task: i,
  14269. tool: this.toolindex,
  14270. content: this.studyJuri[0].cover[0].url,
  14271. type: typesql,
  14272. ateacher: this.userid,
  14273. },
  14274. ];
  14275. this.ajax
  14276. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  14277. .then((res) => {
  14278. this.$message({
  14279. message: "提交成功",
  14280. type: "success",
  14281. });
  14282. this.studyJuri[0].cover = [];
  14283. this.dialogVisibleWorks = false;
  14284. this.getCourseDetail(2);
  14285. })
  14286. .catch((err) => {
  14287. this.$message.error("提交失败");
  14288. console.error(err);
  14289. });
  14290. },
  14291. selectUploadStudent(type) {
  14292. const loading = this.$loading.service({
  14293. background: "rgba(255, 255, 255, 0.7)",
  14294. target: document.body,
  14295. });
  14296. let params = {
  14297. cid: this.uploadCid,
  14298. oid: this.oid,
  14299. cn: "",
  14300. };
  14301. this.ajax
  14302. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14303. .then((res) => {
  14304. loading.close();
  14305. var studentK = [];
  14306. if (this.isWorksS[this.toolindex].length > 0) {
  14307. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  14308. studentK.push(this.isWorksS[this.toolindex][z].uid);
  14309. }
  14310. studentK = studentK.join(",");
  14311. }
  14312. this.uploadStudentJuri = res.data[0].filter((el) => {
  14313. return studentK.indexOf(el.userid) == -1;
  14314. });
  14315. if (this.worksSName && this.worksSid) {
  14316. this.uploadStudentJuri.push({
  14317. userid: this.worksSid,
  14318. name: this.worksSName,
  14319. });
  14320. }
  14321. if (type == 1) {
  14322. this.plworkFile = [];
  14323. this.dialogVisibleSname = true;
  14324. } else if (type == 2) {
  14325. this.dialogVisiblePl = true;
  14326. }
  14327. })
  14328. .catch((err) => {
  14329. loading.close();
  14330. console.error(err);
  14331. });
  14332. },
  14333. selectPickStudent() {
  14334. const loading = this.$loading.service({
  14335. background: "rgba(255, 255, 255, 0.7)",
  14336. target: document.body,
  14337. });
  14338. let params = {
  14339. cid: this.uploadCid,
  14340. oid: this.oid,
  14341. cn: "",
  14342. };
  14343. this.ajax
  14344. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14345. .then((res) => {
  14346. loading.close();
  14347. this.uploadStudentJuri = res.data[0];
  14348. this.dialogVisiblePickPeople = true;
  14349. })
  14350. .catch((err) => {
  14351. loading.close();
  14352. console.error(err);
  14353. });
  14354. },
  14355. arrayToArray(arrayo, arrayt) {
  14356. let array1 = arrayo;
  14357. let array2 = arrayt;
  14358. let commonElements = [];
  14359. for (let i = 0; i < array1.length; i++) {
  14360. for (let j = 0; j < array2.length; j++) {
  14361. if (array1[i] === array2[j]) {
  14362. commonElements.push(array1[i]);
  14363. }
  14364. }
  14365. }
  14366. return commonElements;
  14367. },
  14368. selectWorksStudent() {
  14369. let params = {
  14370. oid: this.oid,
  14371. cid: this.courseDetail.juri,
  14372. };
  14373. this.ajax
  14374. .get(this.$store.state.api + "selectWorksStudent", params)
  14375. .then((res) => {
  14376. var a = res.data[0];
  14377. for (var i = 0; i < this.isWorksS.length; i++) {
  14378. this.noWorksS[i] = [];
  14379. var studentK = [];
  14380. if (this.isWorksS[i].length > 0) {
  14381. for (var z = 0; z < this.isWorksS[i].length; z++) {
  14382. studentK.push(this.isWorksS[i][z].uid);
  14383. }
  14384. studentK = studentK.join(",");
  14385. for (var j = 0; j < a.length; j++) {
  14386. if (studentK.indexOf(a[j].userid) == -1) {
  14387. if (this.tcid) {
  14388. // a[j].classid.indexOf(this.tcid) != -1
  14389. if (
  14390. this.arrayToArray(
  14391. a[j].classid.split(","),
  14392. this.tcid.split(",")
  14393. ).length
  14394. ) {
  14395. this.noWorksS[i].push({
  14396. student: a[j].name,
  14397. userid: a[j].userid,
  14398. });
  14399. }
  14400. } else {
  14401. this.noWorksS[i].push({
  14402. student: a[j].name,
  14403. userid: a[j].userid,
  14404. });
  14405. }
  14406. }
  14407. }
  14408. } else {
  14409. for (var k = 0; k < a.length; k++) {
  14410. if (this.tcid) {
  14411. if (
  14412. this.arrayToArray(
  14413. a[k].classid.split(","),
  14414. this.tcid.split(",")
  14415. ).length
  14416. ) {
  14417. this.noWorksS[i].push({
  14418. student: a[k].name,
  14419. userid: a[k].userid,
  14420. });
  14421. }
  14422. } else {
  14423. this.noWorksS[i].push({
  14424. student: a[k].name,
  14425. userid: a[k].userid,
  14426. });
  14427. }
  14428. }
  14429. }
  14430. }
  14431. this.$forceUpdate();
  14432. if (
  14433. Object.keys(this.commentDetail).length &&
  14434. Object.keys(this.commentIndexJson).length &&
  14435. !this.dialogVisibleScore && !this.dialogVisibleENScore
  14436. ) {
  14437. let a = 1;
  14438. let c = this.commentIndexJson;
  14439. if (
  14440. this.commentIndexJson.gindex ||
  14441. this.commentIndexJson.gindex === 0
  14442. ) {
  14443. for (
  14444. var i = 0;
  14445. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  14446. i++
  14447. ) {
  14448. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  14449. groupA: for (var k = 0; k < _el.length; k++) {
  14450. let el = _el[k];
  14451. if (el.wid == this.commentDetail.wid) {
  14452. a = 2;
  14453. this.commentOther(
  14454. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  14455. this.commentIndexJson.toolIndex,
  14456. k,
  14457. this.commentIndexJson.gindex
  14458. );
  14459. break groupA;
  14460. }
  14461. }
  14462. }
  14463. if (a === 1) {
  14464. this.commentDetail = [];
  14465. this.commentIndexJson = {};
  14466. this.commentDialogVisible = false;
  14467. this.$message("此作业已被删除");
  14468. }
  14469. } else {
  14470. if (this.isGroup && this.commentIndexJson.gid) {
  14471. groupA: for (
  14472. var i = 0;
  14473. i < this.courseGroup.group.length;
  14474. i++
  14475. ) {
  14476. let _group = this.courseGroup.group[i];
  14477. if (_group.id == this.commentIndexJson.gid) {
  14478. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  14479. for (var k = 0; k < _el2.length; k++) {
  14480. let el2 = _el2[k];
  14481. if (el2.wid == this.commentDetail.wid) {
  14482. a = 2;
  14483. this.commentOther(
  14484. _el2[k],
  14485. this.commentIndexJson.toolIndex,
  14486. k,
  14487. null,
  14488. this.commentIndexJson.gid
  14489. );
  14490. break groupA;
  14491. }
  14492. }
  14493. }
  14494. }
  14495. }
  14496. if (a == 1) {
  14497. for (
  14498. var i = 0;
  14499. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  14500. i++
  14501. ) {
  14502. let el =
  14503. this.worksStudent[this.commentIndexJson.toolIndex][i];
  14504. if (el.wid == this.commentDetail.wid) {
  14505. a = 2;
  14506. this.commentOther(
  14507. this.worksStudent[this.commentIndexJson.toolIndex][i],
  14508. this.commentIndexJson.toolIndex,
  14509. i
  14510. );
  14511. break;
  14512. }
  14513. }
  14514. }
  14515. if (a === 1) {
  14516. this.commentDetail = [];
  14517. this.commentIndexJson = {};
  14518. this.commentDialogVisible = false;
  14519. this.$message("此作业已被删除");
  14520. }
  14521. }
  14522. }
  14523. })
  14524. .catch((err) => {
  14525. console.error(err);
  14526. });
  14527. },
  14528. selectStudent() {
  14529. //学生查看自己作业
  14530. let params = {
  14531. uid: this.userid,
  14532. cid: this.id,
  14533. s: this.courseType,
  14534. t: this.taskCount,
  14535. };
  14536. this.ajax
  14537. .get(this.$store.state.api + "selectStudentWorks", params)
  14538. .then((res) => {
  14539. var a =
  14540. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14541. this.taskCount
  14542. ].toolChoose;
  14543. var b = res.data[0];
  14544. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14545. var y = [
  14546. "AVI",
  14547. "NAVI",
  14548. "MPEG",
  14549. "ASF",
  14550. "MOV",
  14551. "WMV",
  14552. "3GP",
  14553. "RM",
  14554. "RMVB",
  14555. "FLV",
  14556. "F4V",
  14557. "H.264",
  14558. "H.265",
  14559. "REAL VIDEO",
  14560. "MKV",
  14561. "WebM",
  14562. "HDDVD",
  14563. "MP4",
  14564. "MPG",
  14565. "M4V",
  14566. "MGV",
  14567. "OGV",
  14568. "QTM",
  14569. "STR",
  14570. "AMC",
  14571. "DVX",
  14572. "EVO",
  14573. "DAT",
  14574. "OGG",
  14575. "OGM",
  14576. ];
  14577. for (var i = 0; i < a.length; i++) {
  14578. this.workStudent[i] = [];
  14579. for (var j = 0; j < b.length; j++) {
  14580. if (i == b[j].tool) {
  14581. if (
  14582. (b[j].type == 1 ||
  14583. b[j].type == 4 ||
  14584. b[j].type == 5 ||
  14585. b[j].type == 6 ||
  14586. b[j].type == 12 ||
  14587. b[j].type == 7) &&
  14588. a[i].tool[0] != 15 &&
  14589. a[i].tool[0] != 4 &&
  14590. a[i].tool[0] != 45 &&
  14591. a[i].tool[0] != 50 &&
  14592. a[i].tool[0] != 32 &&
  14593. a[i].tool[0] != 57 &&
  14594. a[i].tool[0] != 52 &&
  14595. a[i].tool[0] != 69
  14596. ) {
  14597. if (
  14598. c.indexOf(
  14599. b[j].content
  14600. .split(".")
  14601. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14602. ) != -1 &&
  14603. a[i].tool[0] == 16 &&
  14604. b[j].atool != 50
  14605. ) {
  14606. this.workStudent[i].push({
  14607. works: b[j].content,
  14608. sName: b[j].name,
  14609. score: b[j].score,
  14610. img: b[j].img,
  14611. type: 1,
  14612. time: b[j].time,
  14613. userid: b[j].userid,
  14614. wid: b[j].id,
  14615. });
  14616. } else if (
  14617. y.indexOf(
  14618. b[j].content
  14619. .split(".")
  14620. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14621. ) != -1 &&
  14622. a[i].tool[0] == 16 &&
  14623. b[j].atool != 50
  14624. ) {
  14625. this.workStudent[i].push({
  14626. userid: b[j].userid,
  14627. wid: b[j].id,
  14628. works: b[j].content,
  14629. sName: b[j].name,
  14630. score: b[j].score,
  14631. img: b[j].img,
  14632. type: 3,
  14633. time: b[j].time,
  14634. });
  14635. } else if (b[j].type == 6 && b[j].atool != 50) {
  14636. this.workStudent[i].push({
  14637. userid: b[j].userid,
  14638. wid: b[j].id,
  14639. works: b[j].content,
  14640. sName: b[j].name,
  14641. score: b[j].score,
  14642. img: b[j].img,
  14643. type: 4,
  14644. time: b[j].time,
  14645. });
  14646. } else if (b[j].type == 7 && b[j].atool != 50) {
  14647. this.workStudent[i].push({
  14648. userid: b[j].userid,
  14649. wid: b[j].id,
  14650. works: b[j].content,
  14651. sName: b[j].name,
  14652. score: b[j].score,
  14653. img: b[j].img,
  14654. type: 5,
  14655. time: b[j].time,
  14656. });
  14657. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14658. this.workStudent[i].push({
  14659. works: b[j].content,
  14660. sName: b[j].name,
  14661. score: b[j].score,
  14662. img: b[j].img,
  14663. type: 12,
  14664. time: b[j].time,
  14665. userid: b[j].userid,
  14666. wid: b[j].id,
  14667. });
  14668. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14669. this.workStudent[i].push({
  14670. works: b[j].content,
  14671. sName: b[j].name,
  14672. score: b[j].score,
  14673. img: b[j].img,
  14674. type: 0,
  14675. time: b[j].time,
  14676. userid: b[j].userid,
  14677. wid: b[j].id,
  14678. });
  14679. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14680. this.workStudent[i].push({
  14681. works: b[j].content,
  14682. sName: b[j].name,
  14683. score: b[j].score,
  14684. img: b[j].img,
  14685. type: 0,
  14686. time: b[j].time,
  14687. userid: b[j].userid,
  14688. wid: b[j].id,
  14689. });
  14690. }
  14691. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14692. this.workStudent[i].push({
  14693. works: b[j].content,
  14694. sName: b[j].name,
  14695. score: b[j].score,
  14696. img: b[j].img,
  14697. type: 2,
  14698. time: b[j].time,
  14699. userid: b[j].userid,
  14700. wid: b[j].id,
  14701. });
  14702. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  14703. this.workStudent[i].push({
  14704. works: b[j].content,
  14705. sName: b[j].name,
  14706. score: b[j].score,
  14707. img: b[j].img,
  14708. type: 20,
  14709. time: b[j].time,
  14710. userid: b[j].userid,
  14711. wid: b[j].id,
  14712. });
  14713. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14714. //问卷
  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: 2,
  14721. time: b[j].time,
  14722. userid: b[j].userid,
  14723. wid: b[j].id,
  14724. });
  14725. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14726. //选择题
  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: 8,
  14733. time: b[j].time,
  14734. userid: b[j].userid,
  14735. wid: b[j].id,
  14736. });
  14737. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14738. //选择题
  14739. this.workStudent[i].push({
  14740. works: b[j].content,
  14741. sName: b[j].name,
  14742. score: b[j].score,
  14743. img: b[j].img,
  14744. type: 9,
  14745. time: b[j].time,
  14746. userid: b[j].userid,
  14747. wid: b[j].id,
  14748. });
  14749. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14750. //选择题
  14751. this.workStudent[i].push({
  14752. works: b[j].content,
  14753. sName: b[j].name,
  14754. score: b[j].score,
  14755. img: b[j].img,
  14756. type: 10,
  14757. time: b[j].time,
  14758. userid: b[j].userid,
  14759. wid: b[j].id,
  14760. });
  14761. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14762. //选择题
  14763. this.workStudent[i].push({
  14764. works: b[j].content,
  14765. sName: b[j].name,
  14766. score: b[j].score,
  14767. img: b[j].img,
  14768. type: 13,
  14769. time: b[j].time,
  14770. userid: b[j].userid,
  14771. wid: b[j].id,
  14772. });
  14773. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  14774. //选择题
  14775. this.workStudent[i].push({
  14776. works: b[j].content,
  14777. sName: b[j].name,
  14778. score: b[j].score,
  14779. img: b[j].img,
  14780. type: 12,
  14781. time: b[j].time,
  14782. userid: b[j].userid,
  14783. wid: b[j].id,
  14784. });
  14785. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  14786. //选择题
  14787. this.workStudent[i].push({
  14788. works: b[j].content,
  14789. sName: b[j].name,
  14790. score: b[j].score,
  14791. img: b[j].img,
  14792. type: 12,
  14793. time: b[j].time,
  14794. userid: b[j].userid,
  14795. wid: b[j].id,
  14796. });
  14797. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  14798. //选择题
  14799. this.workStudent[i].push({
  14800. works: b[j].content,
  14801. sName: b[j].name,
  14802. score: b[j].score,
  14803. img: b[j].img,
  14804. type: 15,
  14805. time: b[j].time,
  14806. userid: b[j].userid,
  14807. wid: b[j].id,
  14808. });
  14809. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14810. //英语写作
  14811. this.workStudent[i].push({
  14812. works: b[j].content,
  14813. sName: b[j].name,
  14814. score: b[j].score,
  14815. img: b[j].img,
  14816. type: 16,
  14817. time: b[j].time,
  14818. userid: b[j].userid,
  14819. wid: b[j].id,
  14820. aiCode: b[j].aiCode,
  14821. teacherCode: b[j].teacherCode
  14822. });
  14823. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14824. //英语口语
  14825. this.workStudent[i].push({
  14826. works: b[j].content,
  14827. sName: b[j].name,
  14828. score: b[j].score,
  14829. img: b[j].img,
  14830. type: 17,
  14831. time: b[j].time,
  14832. userid: b[j].userid,
  14833. wid: b[j].id,
  14834. });
  14835. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14836. //交互视频
  14837. this.workStudent[i].push({
  14838. works: b[j].content,
  14839. sName: b[j].name,
  14840. score: b[j].score,
  14841. img: b[j].img,
  14842. type: 14,
  14843. time: b[j].time,
  14844. userid: b[j].userid,
  14845. wid: b[j].id,
  14846. });
  14847. }
  14848. }
  14849. }
  14850. }
  14851. })
  14852. .catch((err) => {
  14853. console.error(err);
  14854. });
  14855. },
  14856. openVideo(w) {
  14857. this.videoDetail = {};
  14858. this.playerOptions1.sources[0].src = w.works;
  14859. this.videoDetail = this.playerOptions1;
  14860. this.videoVisible = true;
  14861. },
  14862. isLikes(wid, uid, t, c, isLikes,sName) {
  14863. if (isLikes == false) {
  14864. let params = [
  14865. {
  14866. wid: wid,
  14867. lid: uid,
  14868. t: t,
  14869. c: c,
  14870. },
  14871. ];
  14872. this.ajax
  14873. .post(this.$store.state.api + "insertComment", params)
  14874. .then((res) => {
  14875. this.$message({
  14876. message: "点赞成功",
  14877. type: "success",
  14878. });
  14879. this.selectSWorks();
  14880. this.selectStudent();
  14881. if(this.tType!=2){
  14882. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14883. }
  14884. })
  14885. .catch((err) => {
  14886. this.$message.error("点赞失败");
  14887. console.error(err);
  14888. });
  14889. } else {
  14890. let params = {
  14891. wid: wid,
  14892. lid: uid,
  14893. type: t,
  14894. };
  14895. this.ajax
  14896. .get(this.$store.state.api + "deleteComment", params)
  14897. .then((res) => {
  14898. this.$message({
  14899. message: "取消点赞成功",
  14900. type: "success",
  14901. });
  14902. this.selectSWorks();
  14903. this.selectStudent();
  14904. })
  14905. .catch((err) => {
  14906. console.error(err);
  14907. });
  14908. }
  14909. },
  14910. deleteComment(wid) {
  14911. this.$confirm("确定删除此评论吗?", "提示", {
  14912. confirmButtonText: "确定",
  14913. cancelButtonText: "取消",
  14914. type: "warning",
  14915. })
  14916. .then(() => {
  14917. let params = {
  14918. id: wid,
  14919. };
  14920. this.ajax
  14921. .get(this.$store.state.api + "deleteComment2", params)
  14922. .then((res) => {
  14923. this.$message({
  14924. message: "删除评论成功",
  14925. type: "success",
  14926. });
  14927. this.selectSWorks();
  14928. this.selectStudent();
  14929. })
  14930. .catch((err) => {
  14931. console.error(err);
  14932. });
  14933. })
  14934. .catch(() => {});
  14935. },
  14936. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14937. this.commentIndexJson = {
  14938. toolIndex: toolIndex,
  14939. wIndex: wIndex,
  14940. gindex: gindex,
  14941. gid: gid,
  14942. };
  14943. this.commentDetail = [];
  14944. this.commentDialogVisible = true;
  14945. this.commentDetail = w;
  14946. if (w.works && w.type == 1) {
  14947. // this.pptImgUrl = "";
  14948. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14949. if (
  14950. a.indexOf(
  14951. w.works
  14952. .split(".")
  14953. [w.works.split(".").length - 1].toLocaleUpperCase()
  14954. ) != -1
  14955. ) {
  14956. let _uuurl = await this.checkLink(w.works);
  14957. console.log(_uuurl)
  14958. this.pptImgUrl =
  14959. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14960. this.showPDF = false;
  14961. } else if (
  14962. w.works
  14963. .split(".")
  14964. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14965. ) {
  14966. this.pptImgUrl = w.works;
  14967. this.showPDF = true;
  14968. }
  14969. } else if (w.works && w.type == 3) {
  14970. this.videoDetail = {};
  14971. this.playerOptions1.sources[0].src = w.works;
  14972. this.videoDetail = this.playerOptions1;
  14973. // this.videoVisible = true;
  14974. } else if (w.works && w.type == 4) {
  14975. this.eScore = JSON.parse(w.works);
  14976. this.rateJson =
  14977. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14978. this.taskCount
  14979. ].toolChoose[toolIndex].rateJson;
  14980. } else if (w.works && w.type == 10) {
  14981. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14982. } else if (w.works && w.type == 13) {
  14983. this.wordJson =
  14984. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14985. this.taskCount
  14986. ].toolChoose[toolIndex].wordJson;
  14987. }
  14988. },
  14989. async openScore(w, index) {
  14990. this.wScore = 0;
  14991. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14992. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14993. this.commentDetail = [];
  14994. if(w.type == 17){
  14995. this.dialogVisibleENScore = true;
  14996. }else{
  14997. this.dialogVisibleScore = true;
  14998. }
  14999. this.commentDetail = w;
  15000. if (w.works && w.type == 1) {
  15001. this.pptImgUrl = "";
  15002. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  15003. if (
  15004. a.indexOf(
  15005. w.works
  15006. .split(".")
  15007. [w.works.split(".").length - 1].toLocaleUpperCase()
  15008. ) != -1
  15009. ) {
  15010. let _uuurl = await this.checkLink(w.works);
  15011. console.log(_uuurl)
  15012. this.pptImgUrl =
  15013. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  15014. this.showPDF = false;
  15015. } else if (
  15016. w.works
  15017. .split(".")
  15018. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15019. ) {
  15020. this.pptImgUrl = w.works;
  15021. this.showPDF = true;
  15022. }
  15023. } else if (w.works && w.type == 3) {
  15024. this.videoDetail = {};
  15025. this.playerOptions1.sources[0].src = w.works;
  15026. this.videoDetail = this.playerOptions1;
  15027. }else if(w.type == 17){
  15028. let englishVoiceJson = {}
  15029. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15030. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  15031. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  15032. .toolChoose[index].englishVoiceJson
  15033. : {};
  15034. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  15035. }
  15036. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15037. },
  15038. addComment(wid, uid, t,detail) {
  15039. if (this.commentText == "") {
  15040. this.$message.error("请输入评论");
  15041. return;
  15042. }
  15043. let params2 = [
  15044. {
  15045. wid: wid,
  15046. lid: uid,
  15047. t: t,
  15048. },
  15049. ];
  15050. this.ajax
  15051. .post(this.$store.state.api + "getComment", params2)
  15052. .then((res) => {
  15053. if (res.data[0].length > 0) {
  15054. this.$message.error("一个作业只能评论一条");
  15055. } else {
  15056. let params = [
  15057. {
  15058. wid: wid,
  15059. lid: uid,
  15060. t: t,
  15061. c: this.commentText,
  15062. },
  15063. ];
  15064. this.ajax
  15065. .post(this.$store.state.api + "insertComment", params)
  15066. .then((res) => {
  15067. this.$message({
  15068. message: "评论成功",
  15069. type: "success",
  15070. });
  15071. this.commentText = "";
  15072. this.selectSWorks();
  15073. this.selectStudent();
  15074. if(this.tType!=2){
  15075. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  15076. }
  15077. })
  15078. .catch((err) => {
  15079. this.$message.error("评论失败");
  15080. console.error(err);
  15081. });
  15082. }
  15083. })
  15084. .catch((err) => {
  15085. // this.$message.error("评论失败");
  15086. console.error(err);
  15087. });
  15088. },
  15089. scoreWork(wid,sName) {
  15090. if (this.wScore == 0) {
  15091. this.$message.error("请评分");
  15092. return;
  15093. }
  15094. let params = [
  15095. {
  15096. wid: wid,
  15097. score: JSON.stringify({
  15098. wScore: this.wScore,
  15099. detail: this.scoreDetail,
  15100. }),
  15101. },
  15102. ];
  15103. this.ajax
  15104. .post(this.$store.state.api + "scoreWork", params)
  15105. .then((res) => {
  15106. this.$message({
  15107. message: "评分成功",
  15108. type: "success",
  15109. });
  15110. this.wScore = 0;
  15111. this.scoreDetail = "";
  15112. this.dialogVisibleScore = false;
  15113. this.selectSWorks();
  15114. this.selectStudent();
  15115. if(this.tType!=2){
  15116. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  15117. }
  15118. })
  15119. .catch((err) => {
  15120. this.$message.error("评分失败");
  15121. console.error(err);
  15122. });
  15123. },
  15124. openXz(w, i) {
  15125. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15126. .taskJson[this.taskCount].toolChoose[i].selectJson
  15127. ? JSON.parse(
  15128. JSON.stringify(
  15129. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15130. this.taskCount
  15131. ].toolChoose[i].selectJson
  15132. )
  15133. )
  15134. : { url: "", select: [], answer: [] };
  15135. var a = w.works.split(",");
  15136. for (var k = 0; k < a.length; k++) {
  15137. a[k] = parseInt(a[k]);
  15138. }
  15139. this.selectAnswer = { answer: a, stu: w.sName };
  15140. this.isSelect = true;
  15141. this.dialogVisibleSelect = true;
  15142. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15143. },
  15144. openSen(w, i) {
  15145. this.sentenceList1 = JSON.parse(w.works);
  15146. this.sentenceList1.stuName = w.sName;
  15147. this.dialogVisibleSentence1 = true;
  15148. },
  15149. openPj(w, toolindex) {
  15150. this.isStar = true;
  15151. this.eScore = JSON.parse(w);
  15152. this.rateJson =
  15153. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15154. this.taskCount
  15155. ].toolChoose[toolindex].rateJson;
  15156. this.studentEvalDialogVisible = true;
  15157. },
  15158. openEnglishEva(id,i){
  15159. let params = {
  15160. wid: id
  15161. };
  15162. this.ajax
  15163. .get(this.$store.state.api + "selectEngWork", params)
  15164. .then((res) => {
  15165. this.evaEngJson.message = res.data[0][0];
  15166. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  15167. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  15168. .toolChoose[i].englishList;
  15169. this.engEvaDialogVisible = true;
  15170. })
  15171. .catch((err) => {
  15172. console.error(err);
  15173. });
  15174. },
  15175. deleteWorks(id) {
  15176. this.$confirm("确定删除此作业吗?", "提示", {
  15177. confirmButtonText: "确定",
  15178. cancelButtonText: "取消",
  15179. type: "warning",
  15180. })
  15181. .then(() => {
  15182. let params = [
  15183. {
  15184. id: id,
  15185. },
  15186. ];
  15187. this.ajax
  15188. .post(this.$store.state.api + "deleteCourseWork", params)
  15189. .then((res) => {
  15190. this.$message({
  15191. message: "删除成功",
  15192. type: "success",
  15193. });
  15194. this.selectStudent();
  15195. this.selectSWorks();
  15196. this.selectSLook();
  15197. })
  15198. .catch((err) => {
  15199. this.$message.error("网络异常");
  15200. console.error(err);
  15201. });
  15202. })
  15203. .catch(() => {});
  15204. },
  15205. selectSWorks(gindex) {
  15206. //教师查看全部作业
  15207. let params = {
  15208. cid: this.id,
  15209. s: this.courseType,
  15210. t: this.taskCount,
  15211. };
  15212. this.ajax
  15213. .get(this.$store.state.api + "selectSWorks", params)
  15214. .then((res) => {
  15215. var a =
  15216. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15217. this.taskCount
  15218. ].toolChoose;
  15219. var b = res.data[0];
  15220. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15221. var y = [
  15222. "AVI",
  15223. "NAVI",
  15224. "MPEG",
  15225. "ASF",
  15226. "MOV",
  15227. "WMV",
  15228. "3GP",
  15229. "RM",
  15230. "RMVB",
  15231. "FLV",
  15232. "F4V",
  15233. "H.264",
  15234. "H.265",
  15235. "REAL VIDEO",
  15236. "MKV",
  15237. "WebM",
  15238. "HDDVD",
  15239. "MP4",
  15240. "MPG",
  15241. "M4V",
  15242. "MGV",
  15243. "OGV",
  15244. "QTM",
  15245. "STR",
  15246. "AMC",
  15247. "DVX",
  15248. "EVO",
  15249. "DAT",
  15250. "OGG",
  15251. "OGM",
  15252. ];
  15253. var d = res.data[1];
  15254. var e = res.data[2];
  15255. var f = res.data[3];
  15256. let _worksStudent = [];
  15257. var _worksStudent2 = [];
  15258. for (var i = 0; i < a.length; i++) {
  15259. _worksStudent[i] = [];
  15260. _worksStudent2[i] = [];
  15261. if (
  15262. !this.isCloseList[i] ||
  15263. this.isCloseList[i].isClose == undefined
  15264. ) {
  15265. this.isCloseList[i] = { isClose: 0 };
  15266. }
  15267. this.groupStudent[i] = [];
  15268. this.groupStudentUid[i] = [];
  15269. if (this.isGroup) {
  15270. for (
  15271. var groupI = 0;
  15272. groupI < this.courseGroup.group.length;
  15273. groupI++
  15274. ) {
  15275. this.courseGroup.group[groupI].works[i] = [];
  15276. }
  15277. }
  15278. this.isWorksS[i] = [];
  15279. this.checkJson[i] = [];
  15280. if (a[i].tool[0] == 49) {
  15281. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  15282. this.groupStudent[i][gA] = [];
  15283. this.groupStudentUid[i][gA] = [];
  15284. _worksStudent[i][gA] = [];
  15285. _worksStudent2[i][gA] = [];
  15286. this.isCloseList[i][gA] = [];
  15287. for (var g = 0; g < f.length; g++) {
  15288. if (
  15289. f[g].ttype == 2 &&
  15290. this.tcid &&
  15291. this.arrayToArray(
  15292. (f[g].classid ? f[g].classid.split(",") : []),
  15293. this.tcid.split(",")
  15294. ).length == 0
  15295. ) {
  15296. continue;
  15297. }
  15298. let _classId = this.arrayToArray(
  15299. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15300. this.classId ? this.classId.split(",") : []
  15301. )
  15302. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  15303. (f[g].classid ? f[g].classid.split(",") : []),
  15304. this.tcid.split(",")
  15305. ).length !== 0 || this.arrayToArray(
  15306. (f[g].classid ? f[g].classid.split(",") : []),
  15307. _classId
  15308. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  15309. this.groupStudent[i][gA].push(f[g]);
  15310. this.groupStudentUid[i][gA].push(f[g].userid);
  15311. }
  15312. }
  15313. }
  15314. this.$forceUpdate();
  15315. }
  15316. for (var j = 0; j < b.length; j++) {
  15317. if (
  15318. b[j].ttype == 2 &&
  15319. this.tcid &&
  15320. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  15321. .length == 0
  15322. ) {
  15323. continue;
  15324. }
  15325. var likesCount = 0;
  15326. var commentCount = 0;
  15327. var isLikes = false;
  15328. var commentJson = [];
  15329. var likeJson = [];
  15330. var data = b[j];
  15331. if (i == b[j].tool) {
  15332. if (data.type == 2 && a[i].tool[0] == 4) {
  15333. // if(JSON.parse(data.content)[0].anwer){
  15334. var checkL =
  15335. JSON.parse(data.content)[0].anwer instanceof Array
  15336. ? JSON.parse(data.content)[0].anwer
  15337. : JSON.parse(data.content)[0].anwer.split(",");
  15338. for (var z = 0; z < checkL.length; z++) {
  15339. if (!this.checkJson[i][z]) {
  15340. this.checkJson[i].push({
  15341. checkCount: [],
  15342. checkPerson: [],
  15343. rightPerson: [],
  15344. });
  15345. }
  15346. if (!this.checkJson[i][z].checkCount.length) {
  15347. this.checkJson[i][z].checkCount = [];
  15348. let _askItemCount = JSON.parse(data.content)[0].askJson
  15349. .askJson[z].askItem;
  15350. for (var aic = 0; aic < _askItemCount; aic++) {
  15351. this.checkJson[i][z].checkCount.push(0);
  15352. }
  15353. }
  15354. if (checkL[z] instanceof Array) {
  15355. if (
  15356. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  15357. checkL[z].sort().join(",")
  15358. ) {
  15359. this.checkJson[i][z].rightPerson.push(data.name);
  15360. }
  15361. for (var q = 0; q < checkL[z].length; q++) {
  15362. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15363. ? this.checkJson[i][z].checkPerson[
  15364. parseInt(checkL[z][q])
  15365. ].push(data.name)
  15366. : (this.checkJson[i][z].checkPerson[
  15367. parseInt(checkL[z][q])
  15368. ] = [data.name]);
  15369. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15370. ? this.checkJson[i][z].checkCount[
  15371. parseInt(checkL[z][q])
  15372. ]++
  15373. : (this.checkJson[i][z].checkCount[
  15374. parseInt(checkL[z][q])
  15375. ] = 1);
  15376. }
  15377. } else {
  15378. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  15379. this.checkJson[i][z].rightPerson.push(data.name);
  15380. }
  15381. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  15382. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  15383. ? this.checkJson[i][z].checkPerson[
  15384. parseInt(checkL[z])
  15385. ].push(data.name)
  15386. : (this.checkJson[i][z].checkPerson[
  15387. parseInt(checkL[z])
  15388. ] = [data.name]);
  15389. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  15390. ? this.checkJson[i][z].checkCount[
  15391. parseInt(checkL[z])
  15392. ]++
  15393. : (this.checkJson[i][z].checkCount[
  15394. parseInt(checkL[z])
  15395. ] = 1);
  15396. }
  15397. }
  15398. }
  15399. } else if (data.type == 8 && a[i].tool[0] == 45) {
  15400. var checkL = JSON.parse(data.content)[0].anwer;
  15401. for (var z = 0; z < checkL.length; z++) {
  15402. if (!this.checkJson[i][z]) {
  15403. this.checkJson[i].push({
  15404. checkCount: [],
  15405. checkPerson: [],
  15406. rightPerson: [],
  15407. });
  15408. }
  15409. if (!this.checkJson[i][z].checkCount.length) {
  15410. this.checkJson[i][z].checkCount = [];
  15411. let _askItemCount = JSON.parse(data.content)[0].testJson
  15412. .testJson[z].testItem;
  15413. for (var aic = 0; aic < _askItemCount; aic++) {
  15414. this.checkJson[i][z].checkCount.push(0);
  15415. }
  15416. }
  15417. if (checkL[z] instanceof Array) {
  15418. if (
  15419. JSON.parse(data.content)[0]
  15420. .testJson.testJson[z].answer.sort()
  15421. .join(",") == checkL[z].sort().join(",")
  15422. ) {
  15423. this.checkJson[i][z].rightPerson.push(data.name);
  15424. }
  15425. for (var q = 0; q < checkL[z].length; q++) {
  15426. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15427. ? this.checkJson[i][z].checkPerson[
  15428. parseInt(checkL[z][q])
  15429. ].push(data.name)
  15430. : (this.checkJson[i][z].checkPerson[
  15431. parseInt(checkL[z][q])
  15432. ] = [data.name]);
  15433. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15434. ? this.checkJson[i][z].checkCount[
  15435. parseInt(checkL[z][q])
  15436. ]++
  15437. : (this.checkJson[i][z].checkCount[
  15438. parseInt(checkL[z][q])
  15439. ] = 1);
  15440. }
  15441. } else {
  15442. if (
  15443. JSON.parse(data.content)[0].testJson.testJson[z]
  15444. .answer == checkL[z]
  15445. ) {
  15446. this.checkJson[i][z].rightPerson.push(data.name);
  15447. }
  15448. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  15449. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  15450. ? this.checkJson[i][z].checkPerson[
  15451. parseInt(checkL[z])
  15452. ].push(data.name)
  15453. : (this.checkJson[i][z].checkPerson[
  15454. parseInt(checkL[z])
  15455. ] = [data.name]);
  15456. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  15457. ? this.checkJson[i][z].checkCount[
  15458. parseInt(checkL[z])
  15459. ]++
  15460. : (this.checkJson[i][z].checkCount[
  15461. parseInt(checkL[z])
  15462. ] = 1);
  15463. }
  15464. }
  15465. }
  15466. } else if (data.type == 9 && a[i].tool[0] == 47) {
  15467. var checkL = JSON.parse(data.content);
  15468. for (var z = 0; z < checkL.length; z++) {
  15469. if (!this.checkJson[i][z]) {
  15470. this.checkJson[i].push({
  15471. checkCount: [],
  15472. checkPerson: [],
  15473. rightPerson: [],
  15474. });
  15475. }
  15476. this.checkJson[i][z].checkPerson.push(data.name);
  15477. if (
  15478. checkL[z].chooseSenList.toString() ==
  15479. checkL[z].rightAnswer.toString()
  15480. ) {
  15481. this.checkJson[i][z].rightPerson.push(data.name);
  15482. }
  15483. }
  15484. }
  15485. for (var k = 0; k < d.length; k++) {
  15486. //点赞
  15487. if (d[k].workId == b[j].id) {
  15488. likesCount++;
  15489. likeJson.push(d[k])
  15490. if (d[k].likesId == this.userid) {
  15491. isLikes = true;
  15492. }
  15493. }
  15494. }
  15495. for (var l = 0; l < e.length; l++) {
  15496. //评论
  15497. if (e[l].workId == b[j].id) {
  15498. if (e[l].comment != "") {
  15499. commentCount++;
  15500. commentJson.push({
  15501. commentText: e[l].comment,
  15502. commentTime: e[l].commentTime,
  15503. commentPeople: e[l].commentPeople,
  15504. userid: e[l].userid,
  15505. wid: e[l].id,
  15506. });
  15507. }
  15508. }
  15509. }
  15510. if (
  15511. (b[j].type == 1 ||
  15512. b[j].type == 4 ||
  15513. b[j].type == 5 ||
  15514. b[j].type == 6 ||
  15515. b[j].type == 12 ||
  15516. b[j].type == 7) &&
  15517. a[i].tool[0] != 15 &&
  15518. a[i].tool[0] != 4 &&
  15519. a[i].tool[0] != 45 &&
  15520. a[i].tool[0] != 50 &&
  15521. a[i].tool[0] != 32 &&
  15522. a[i].tool[0] != 57 &&
  15523. a[i].tool[0] != 52
  15524. ) {
  15525. if (
  15526. c.indexOf(
  15527. b[j].content
  15528. .split(".")
  15529. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15530. ) != -1 &&
  15531. a[i].tool[0] == 16 &&
  15532. b[j].atool != 50
  15533. ) {
  15534. let _works = {
  15535. userid: b[j].userid,
  15536. ateacher: b[j].ateacher,
  15537. wid: b[j].id,
  15538. works: b[j].content,
  15539. sName: b[j].name,
  15540. type: 1,
  15541. ttype:b[j].ttype,
  15542. time: b[j].time,
  15543. score: b[j].score,
  15544. img: b[j].img,
  15545. likesCount: likesCount,
  15546. commentCount: commentCount,
  15547. isLikes: isLikes,
  15548. commentJson: commentJson,
  15549. likeJson:likeJson
  15550. };
  15551. if (this.isGroup) {
  15552. let isGw = 1;
  15553. for (
  15554. var groupI = 0;
  15555. groupI < this.courseGroup.group.length;
  15556. groupI++
  15557. ) {
  15558. let gid = this.courseGroup.group[groupI].id;
  15559. if (
  15560. this.courseGroupStudentUid[gid].indexOf(
  15561. b[j].userid
  15562. ) != -1
  15563. ) {
  15564. isGw = 2;
  15565. this.courseGroup.group[groupI].works[i].push(_works);
  15566. break;
  15567. }
  15568. }
  15569. if (isGw == 1) {
  15570. _worksStudent[i].push(_works);
  15571. }
  15572. } else {
  15573. _worksStudent[i].push(_works);
  15574. }
  15575. _worksStudent2[i].push(_works);
  15576. this.isWorksS[i].push({
  15577. uid: b[j].userid,
  15578. sName: b[j].name,
  15579. });
  15580. } else if (
  15581. y.indexOf(
  15582. b[j].content
  15583. .split(".")
  15584. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15585. ) != -1 &&
  15586. a[i].tool[0] == 16 &&
  15587. b[j].atool != 50
  15588. ) {
  15589. let _works = {
  15590. userid: b[j].userid,
  15591. ateacher: b[j].ateacher,
  15592. wid: b[j].id,
  15593. works: b[j].content,
  15594. sName: b[j].name,
  15595. type: 3,
  15596. ttype:b[j].ttype,
  15597. time: b[j].time,
  15598. score: b[j].score,
  15599. img: b[j].img,
  15600. likesCount: likesCount,
  15601. commentCount: commentCount,
  15602. isLikes: isLikes,
  15603. commentJson: commentJson,
  15604. likeJson:likeJson
  15605. };
  15606. if (this.isGroup) {
  15607. let isGw = 1;
  15608. for (
  15609. var groupI = 0;
  15610. groupI < this.courseGroup.group.length;
  15611. groupI++
  15612. ) {
  15613. let gid = this.courseGroup.group[groupI].id;
  15614. if (
  15615. this.courseGroupStudentUid[gid].indexOf(
  15616. b[j].userid
  15617. ) != -1
  15618. ) {
  15619. isGw = 2;
  15620. this.courseGroup.group[groupI].works[i].push(_works);
  15621. break;
  15622. }
  15623. }
  15624. if (isGw == 1) {
  15625. _worksStudent[i].push(_works);
  15626. }
  15627. } else {
  15628. _worksStudent[i].push(_works);
  15629. }
  15630. _worksStudent2[i].push(_works);
  15631. this.isWorksS[i].push({
  15632. uid: b[j].userid,
  15633. sName: b[j].name,
  15634. });
  15635. } else if (b[j].type == 6 && b[j].atool != 50) {
  15636. let _works = {
  15637. userid: b[j].userid,
  15638. ateacher: b[j].ateacher,
  15639. wid: b[j].id,
  15640. works: b[j].content,
  15641. sName: b[j].name,
  15642. type: 4,
  15643. ttype:b[j].ttype,
  15644. time: b[j].time,
  15645. score: b[j].score,
  15646. img: b[j].img,
  15647. likesCount: likesCount,
  15648. commentCount: commentCount,
  15649. isLikes: isLikes,
  15650. commentJson: commentJson,
  15651. likeJson:likeJson
  15652. };
  15653. _worksStudent[i].push(_works);
  15654. _worksStudent2[i].push(_works);
  15655. this.isWorksS[i].push({
  15656. uid: b[j].userid,
  15657. sName: b[j].name,
  15658. });
  15659. } else if (b[j].type == 7 && b[j].atool != 50) {
  15660. let _work = {
  15661. userid: b[j].userid,
  15662. ateacher: b[j].ateacher,
  15663. wid: b[j].id,
  15664. works: b[j].content,
  15665. sName: b[j].name,
  15666. type: 5,
  15667. ttype:b[j].ttype,
  15668. time: b[j].time,
  15669. score: b[j].score,
  15670. img: b[j].img,
  15671. likesCount: likesCount,
  15672. commentCount: commentCount,
  15673. isLikes: isLikes,
  15674. commentJson: commentJson,
  15675. likeJson:likeJson
  15676. };
  15677. _worksStudent[i].push(_work);
  15678. _worksStudent2[i].push(_work);
  15679. this.isWorksS[i].push({
  15680. uid: b[j].userid,
  15681. sName: b[j].name,
  15682. });
  15683. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  15684. let _works = {
  15685. userid: b[j].userid,
  15686. ateacher: b[j].ateacher,
  15687. wid: b[j].id,
  15688. works: b[j].content,
  15689. sName: b[j].name,
  15690. type: 12,
  15691. ttype:b[j].ttype,
  15692. time: b[j].time,
  15693. score: b[j].score,
  15694. img: b[j].img,
  15695. likesCount: likesCount,
  15696. commentCount: commentCount,
  15697. isLikes: isLikes,
  15698. commentJson: commentJson,
  15699. likeJson:likeJson
  15700. };
  15701. if (this.isGroup) {
  15702. let isGw = 1;
  15703. for (
  15704. var groupI = 0;
  15705. groupI < this.courseGroup.group.length;
  15706. groupI++
  15707. ) {
  15708. let gid = this.courseGroup.group[groupI].id;
  15709. if (
  15710. this.courseGroupStudentUid[gid].indexOf(
  15711. b[j].userid
  15712. ) != -1
  15713. ) {
  15714. isGw = 2;
  15715. this.courseGroup.group[groupI].works[i].push(_works);
  15716. break;
  15717. }
  15718. }
  15719. if (isGw == 1) {
  15720. _worksStudent[i].push(_works);
  15721. }
  15722. } else {
  15723. _worksStudent[i].push(_works);
  15724. }
  15725. _worksStudent2[i].push(_works);
  15726. this.isWorksS[i].push({
  15727. uid: b[j].userid,
  15728. sName: b[j].name,
  15729. });
  15730. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  15731. let _works = {
  15732. userid: b[j].userid,
  15733. ateacher: b[j].ateacher,
  15734. wid: b[j].id,
  15735. works: b[j].content,
  15736. sName: b[j].name,
  15737. type: 0,
  15738. ttype:b[j].ttype,
  15739. time: b[j].time,
  15740. score: b[j].score,
  15741. img: b[j].img,
  15742. likesCount: likesCount,
  15743. commentCount: commentCount,
  15744. isLikes: isLikes,
  15745. commentJson: commentJson,
  15746. likeJson:likeJson
  15747. };
  15748. if (this.isGroup) {
  15749. let isGw = 1;
  15750. for (
  15751. var groupI = 0;
  15752. groupI < this.courseGroup.group.length;
  15753. groupI++
  15754. ) {
  15755. let gid = this.courseGroup.group[groupI].id;
  15756. if (
  15757. this.courseGroupStudentUid[gid].indexOf(
  15758. b[j].userid
  15759. ) != -1
  15760. ) {
  15761. isGw = 2;
  15762. this.courseGroup.group[groupI].works[i].push(_works);
  15763. break;
  15764. }
  15765. }
  15766. if (isGw == 1) {
  15767. _worksStudent[i].push(_works);
  15768. }
  15769. } else {
  15770. _worksStudent[i].push(_works);
  15771. }
  15772. _worksStudent2[i].push(_works);
  15773. this.isWorksS[i].push({
  15774. uid: b[j].userid,
  15775. sName: b[j].name,
  15776. });
  15777. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  15778. let _works = {
  15779. userid: b[j].userid,
  15780. ateacher: b[j].ateacher,
  15781. wid: b[j].id,
  15782. works: b[j].content,
  15783. sName: b[j].name,
  15784. type: 0,
  15785. ttype:b[j].ttype,
  15786. time: b[j].time,
  15787. score: b[j].score,
  15788. img: b[j].img,
  15789. likesCount: likesCount,
  15790. commentCount: commentCount,
  15791. isLikes: isLikes,
  15792. commentJson: commentJson,
  15793. likeJson:likeJson
  15794. };
  15795. if (this.isGroup) {
  15796. let isGw = 1;
  15797. for (
  15798. var groupI = 0;
  15799. groupI < this.courseGroup.group.length;
  15800. groupI++
  15801. ) {
  15802. let gid = this.courseGroup.group[groupI].id;
  15803. if (
  15804. this.courseGroupStudentUid[gid].indexOf(
  15805. b[j].userid
  15806. ) != -1
  15807. ) {
  15808. isGw = 2;
  15809. this.courseGroup.group[groupI].works[i].push(_works);
  15810. break;
  15811. }
  15812. }
  15813. if (isGw == 1) {
  15814. _worksStudent[i].push(_works);
  15815. }
  15816. } else {
  15817. _worksStudent[i].push(_works);
  15818. }
  15819. _worksStudent2[i].push(_works);
  15820. this.isWorksS[i].push({
  15821. uid: b[j].userid,
  15822. sName: b[j].name,
  15823. });
  15824. }
  15825. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15826. let _works = {
  15827. userid: b[j].userid,
  15828. ateacher: b[j].ateacher,
  15829. wid: b[j].id,
  15830. works: b[j].content,
  15831. sName: b[j].name,
  15832. type: 2,
  15833. ttype:b[j].ttype,
  15834. time: b[j].time,
  15835. score: b[j].score,
  15836. img: b[j].img,
  15837. likesCount: likesCount,
  15838. commentCount: commentCount,
  15839. isLikes: isLikes,
  15840. commentJson: commentJson,
  15841. likeJson:likeJson
  15842. };
  15843. if (this.isGroup) {
  15844. let isGw = 1;
  15845. for (
  15846. var groupI = 0;
  15847. groupI < this.courseGroup.group.length;
  15848. groupI++
  15849. ) {
  15850. let gid = this.courseGroup.group[groupI].id;
  15851. if (
  15852. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15853. -1
  15854. ) {
  15855. isGw = 2;
  15856. this.courseGroup.group[groupI].works[i].push(_works);
  15857. break;
  15858. }
  15859. }
  15860. if (isGw == 1) {
  15861. _worksStudent[i].push(_works);
  15862. }
  15863. } else {
  15864. _worksStudent[i].push(_works);
  15865. }
  15866. _worksStudent2[i].push(_works);
  15867. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15868. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  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: 20,
  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 == 2 && a[i].tool[0] == 4) {
  15912. //问卷
  15913. let _work = {
  15914. userid: b[j].userid,
  15915. ateacher: b[j].ateacher,
  15916. wid: b[j].id,
  15917. works: b[j].content,
  15918. sName: b[j].name,
  15919. type: 2,
  15920. ttype:b[j].ttype,
  15921. time: b[j].time,
  15922. score: b[j].score,
  15923. img: b[j].img,
  15924. likesCount: likesCount,
  15925. commentCount: commentCount,
  15926. isLikes: isLikes,
  15927. commentJson: commentJson,
  15928. likeJson:likeJson
  15929. };
  15930. _worksStudent[i].push(_work);
  15931. _worksStudent2[i].push(_work);
  15932. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15933. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15934. //选择题
  15935. let _work = {
  15936. userid: b[j].userid,
  15937. ateacher: b[j].ateacher,
  15938. wid: b[j].id,
  15939. works: b[j].content,
  15940. sName: b[j].name,
  15941. type: 8,
  15942. ttype:b[j].ttype,
  15943. time: b[j].time,
  15944. score: b[j].score,
  15945. img: b[j].img,
  15946. likesCount: likesCount,
  15947. commentCount: commentCount,
  15948. isLikes: isLikes,
  15949. commentJson: commentJson,
  15950. likeJson:likeJson
  15951. };
  15952. _worksStudent[i].push(_work);
  15953. _worksStudent2[i].push(_work);
  15954. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15955. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15956. //选择题
  15957. let _work = {
  15958. userid: b[j].userid,
  15959. ateacher: b[j].ateacher,
  15960. wid: b[j].id,
  15961. works: b[j].content,
  15962. sName: b[j].name,
  15963. type: 9,
  15964. ttype:b[j].ttype,
  15965. time: b[j].time,
  15966. score: b[j].score,
  15967. img: b[j].img,
  15968. likesCount: likesCount,
  15969. commentCount: commentCount,
  15970. isLikes: isLikes,
  15971. commentJson: commentJson,
  15972. likeJson:likeJson
  15973. };
  15974. _worksStudent[i].push(_work);
  15975. _worksStudent2[i].push(_work);
  15976. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15977. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15978. //选择题
  15979. let _work = {
  15980. userid: b[j].userid,
  15981. ateacher: b[j].ateacher,
  15982. wid: b[j].id,
  15983. works: b[j].content,
  15984. sName: b[j].name,
  15985. type: 10,
  15986. ttype:b[j].ttype,
  15987. time: b[j].time,
  15988. score: b[j].score,
  15989. img: b[j].img,
  15990. likesCount: likesCount,
  15991. commentCount: commentCount,
  15992. isLikes: isLikes,
  15993. commentJson: commentJson,
  15994. likeJson:likeJson
  15995. };
  15996. _worksStudent[i].push(_work);
  15997. _worksStudent2[i].push(_work);
  15998. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15999. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  16000. //选择题
  16001. let _work = {
  16002. userid: b[j].userid,
  16003. ateacher: b[j].ateacher,
  16004. wid: b[j].id,
  16005. works: b[j].content,
  16006. sName: b[j].name,
  16007. type: 13,
  16008. ttype:b[j].ttype,
  16009. time: b[j].time,
  16010. score: b[j].score,
  16011. img: b[j].img,
  16012. likesCount: likesCount,
  16013. commentCount: commentCount,
  16014. isLikes: isLikes,
  16015. commentJson: commentJson,
  16016. likeJson:likeJson
  16017. };
  16018. _worksStudent[i].push(_work);
  16019. _worksStudent2[i].push(_work);
  16020. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16021. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  16022. //选择题
  16023. let _work = {
  16024. userid: b[j].userid,
  16025. ateacher: b[j].ateacher,
  16026. wid: b[j].id,
  16027. works: b[j].content,
  16028. sName: b[j].name,
  16029. type: 16,
  16030. ttype:b[j].ttype,
  16031. time: b[j].time,
  16032. score: b[j].score,
  16033. img: b[j].img,
  16034. likesCount: likesCount,
  16035. commentCount: commentCount,
  16036. isLikes: isLikes,
  16037. commentJson: commentJson,
  16038. aiCode: b[j].aiCode,
  16039. teacherCode: b[j].teacherCode,
  16040. likeJson:likeJson
  16041. };
  16042. _worksStudent[i].push(_work);
  16043. _worksStudent2[i].push(_work);
  16044. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16045. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  16046. //英语口语
  16047. let _work = {
  16048. userid: b[j].userid,
  16049. ateacher: b[j].ateacher,
  16050. wid: b[j].id,
  16051. works: b[j].content,
  16052. sName: b[j].name,
  16053. type: 17,
  16054. ttype:b[j].ttype,
  16055. time: b[j].time,
  16056. score: b[j].score,
  16057. img: b[j].img,
  16058. likesCount: likesCount,
  16059. commentCount: commentCount,
  16060. isLikes: isLikes,
  16061. commentJson: commentJson,
  16062. likeJson:likeJson
  16063. };
  16064. _worksStudent[i].push(_work);
  16065. _worksStudent2[i].push(_work);
  16066. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16067. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  16068. //交互视频
  16069. let _work = {
  16070. userid: b[j].userid,
  16071. ateacher: b[j].ateacher,
  16072. wid: b[j].id,
  16073. works: b[j].content,
  16074. sName: b[j].name,
  16075. type: 14,
  16076. ttype:b[j].ttype,
  16077. time: b[j].time,
  16078. score: b[j].score,
  16079. img: b[j].img,
  16080. likesCount: likesCount,
  16081. commentCount: commentCount,
  16082. isLikes: isLikes,
  16083. commentJson: commentJson,
  16084. likeJson:likeJson
  16085. };
  16086. _worksStudent[i].push(_work);
  16087. _worksStudent2[i].push(_work);
  16088. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16089. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  16090. let _gindex = JSON.parse(b[j].content);
  16091. if (
  16092. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  16093. b[j].userid
  16094. ) != -1
  16095. ) {
  16096. let _work = {
  16097. userid: b[j].userid,
  16098. ateacher: b[j].ateacher,
  16099. wid: b[j].id,
  16100. works: _gindex.url,
  16101. sName: b[j].name,
  16102. type: _gindex.type,
  16103. ttype:b[j].ttype,
  16104. time: b[j].time,
  16105. score: b[j].score,
  16106. img: b[j].img,
  16107. likesCount: likesCount,
  16108. commentCount: commentCount,
  16109. isLikes: isLikes,
  16110. commentJson: commentJson,
  16111. likeJson:likeJson
  16112. };
  16113. _worksStudent[i][_gindex.groupIndex].push(_work);
  16114. _worksStudent2[i][_gindex.groupIndex].push(_work);
  16115. }
  16116. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16117. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  16118. let _work = {
  16119. userid: b[j].userid,
  16120. ateacher: b[j].ateacher,
  16121. wid: b[j].id,
  16122. works: b[j].content,
  16123. sName: b[j].name ? b[j].name : b[j].userid,
  16124. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  16125. ttype:b[j].ttype,
  16126. time: b[j].time,
  16127. score: b[j].score,
  16128. img: b[j].img,
  16129. likesCount: likesCount,
  16130. commentCount: commentCount,
  16131. isLikes: isLikes,
  16132. commentJson: commentJson,
  16133. likeJson:likeJson
  16134. };
  16135. _worksStudent[i].push(_work);
  16136. _worksStudent2[i].push(_work);
  16137. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16138. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  16139. let _work = {
  16140. userid: b[j].userid,
  16141. ateacher: b[j].ateacher,
  16142. wid: b[j].id,
  16143. works: b[j].content,
  16144. sName: b[j].name ? b[j].name : b[j].userid,
  16145. type: 12,
  16146. ttype:b[j].ttype,
  16147. time: b[j].time,
  16148. score: b[j].score,
  16149. img: b[j].img,
  16150. likesCount: likesCount,
  16151. commentCount: commentCount,
  16152. isLikes: isLikes,
  16153. commentJson: commentJson,
  16154. likeJson:likeJson
  16155. };
  16156. _worksStudent[i].push(_work);
  16157. _worksStudent2[i].push(_work);
  16158. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16159. } else if (
  16160. a[i].tool[0] == 57 &&
  16161. b[j].atool == 57 &&
  16162. b[j].type == 12
  16163. ) {
  16164. let _work = {
  16165. userid: b[j].userid,
  16166. ateacher: b[j].ateacher,
  16167. wid: b[j].id,
  16168. works: b[j].content,
  16169. sName: b[j].name ? b[j].name : b[j].userid,
  16170. type: 12,
  16171. ttype:b[j].ttype,
  16172. time: b[j].time,
  16173. score: b[j].score,
  16174. img: b[j].img,
  16175. likesCount: likesCount,
  16176. commentCount: commentCount,
  16177. isLikes: isLikes,
  16178. commentJson: commentJson,
  16179. likeJson:likeJson
  16180. };
  16181. _worksStudent[i].push(_work);
  16182. _worksStudent2[i].push(_work);
  16183. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16184. } else if (
  16185. a[i].tool[0] == 57 &&
  16186. b[j].atool == 57 &&
  16187. b[j].type == 15
  16188. ) {
  16189. let _work = {
  16190. userid: b[j].userid,
  16191. ateacher: b[j].ateacher,
  16192. wid: b[j].id,
  16193. works: b[j].content,
  16194. sName: b[j].name ? b[j].name : b[j].userid,
  16195. type: 15,
  16196. ttype:b[j].ttype,
  16197. time: b[j].time,
  16198. score: b[j].score,
  16199. img: b[j].img,
  16200. likesCount: likesCount,
  16201. commentCount: commentCount,
  16202. isLikes: isLikes,
  16203. commentJson: commentJson,
  16204. likeJson:likeJson
  16205. };
  16206. _worksStudent[i].push(_work);
  16207. _worksStudent2[i].push(_work);
  16208. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16209. }
  16210. }
  16211. }
  16212. if (_worksStudent[i] && _worksStudent[i].length) {
  16213. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  16214. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  16215. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  16216. var scoreA = parseFloat(jscoreA);
  16217. var scoreB = parseFloat(jscoreB);
  16218. if (scoreA == scoreB) {
  16219. return b.likesCount - a.likesCount;
  16220. }
  16221. return scoreB - scoreA;
  16222. });
  16223. if (this.isGroup) {
  16224. for (
  16225. var groupI = 0;
  16226. groupI < this.courseGroup.group.length;
  16227. groupI++
  16228. ) {
  16229. this.courseGroup.group[groupI].works[i] =
  16230. this.courseGroup.group[groupI].works[i].sort(function (
  16231. a,
  16232. b
  16233. ) {
  16234. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  16235. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  16236. var scoreA = parseFloat(jscoreA);
  16237. var scoreB = parseFloat(jscoreB);
  16238. if (scoreA == scoreB) {
  16239. return b.likesCount - a.likesCount;
  16240. }
  16241. return scoreB - scoreA;
  16242. });
  16243. }
  16244. }
  16245. }
  16246. }
  16247. this.timeWorkList = _worksStudent2;
  16248. for (var i = 0; i < a.length; i++) {
  16249. for (var j = 0; j < b.length; j++) {
  16250. var data = b[j];
  16251. if (i == b[j].tool) {
  16252. if (data.type == 2 || data.type == 8) {
  16253. for (var z = 0; z < this.checkJson[i].length; z++) {
  16254. this.checkJson[i][z].checkPerent = [];
  16255. this.checkJson[i][z].right = Math.round(
  16256. (this.checkJson[i][z].rightPerson.length /
  16257. parseInt(_worksStudent[i].length)) *
  16258. 100
  16259. );
  16260. let aaaa = this.checkJson[i][z];
  16261. for (
  16262. var k = 0;
  16263. k < this.checkJson[i][z].checkCount.length;
  16264. k++
  16265. ) {
  16266. this.checkJson[i][z].checkPerent.push(
  16267. Math.round(
  16268. (this.checkJson[i][z].checkCount[k] /
  16269. parseInt(_worksStudent[i].length)) *
  16270. 100
  16271. )
  16272. );
  16273. }
  16274. }
  16275. } else if (data.type == 9) {
  16276. for (var z = 0; z < this.checkJson[i].length; z++) {
  16277. this.checkJson[i][z].checkPerent = [];
  16278. this.checkJson[i][z].right = Math.round(
  16279. (this.checkJson[i][z].rightPerson.length /
  16280. this.checkJson[i][z].checkPerson.length) *
  16281. 100
  16282. );
  16283. }
  16284. }
  16285. }
  16286. }
  16287. }
  16288. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  16289. this.joinGroup(gindex);
  16290. }
  16291. this.worksStudent = _worksStudent;
  16292. this.selectWorksStudent();
  16293. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  16294. this.$nextTick(()=>{
  16295. setTimeout(()=>{
  16296. setTimeout(()=>{
  16297. this.panToolHeight('tool-'+ci);
  16298. }, 500)
  16299. }, 0)
  16300. })
  16301. }
  16302. })
  16303. .catch((err) => {
  16304. console.error(err);
  16305. });
  16306. },
  16307. pngToWhiteBg(file) {
  16308. const _file = file;
  16309. let read = new FileReader();
  16310. read.readAsDataURL(file); // 文件转base64
  16311. return new Promise((resolve, reject) => {
  16312. read.onload = (e) => {
  16313. let img = new Image();
  16314. img.src = e.target.result;
  16315. img.onload = async () => {
  16316. // 生成canvas
  16317. let canvas = document.createElement("canvas");
  16318. let context = canvas.getContext("2d");
  16319. // 绘制图片到canvas上
  16320. canvas.width = img.width;
  16321. canvas.height = img.height;
  16322. // 在canvas绘制前填充白色背景
  16323. context.fillStyle = "#fff";
  16324. context.fillRect(0, 0, canvas.width, canvas.height);
  16325. context.drawImage(img, 0, 0);
  16326. let base64 = canvas.toDataURL(file["type"], 1);
  16327. let newFile = this.dataUrlToFile(base64, _file);
  16328. resolve(newFile);
  16329. };
  16330. };
  16331. });
  16332. },
  16333. dataUrlToFile(dataurl, file) {
  16334. let arr = dataurl.split(","),
  16335. mime = arr[0].match(/:(.*?);/)[1],
  16336. bstr = atob(arr[1]),
  16337. n = bstr.length,
  16338. u8arr = new Uint8Array(n);
  16339. while (n--) {
  16340. u8arr[n] = bstr.charCodeAt(n);
  16341. }
  16342. // return new Blob([u8arr], { type: mime });
  16343. return new File([new Blob([u8arr], { type: mime })], file.name, {
  16344. type: mime,
  16345. });
  16346. },
  16347. async beforeUpload1(event, type, i) {
  16348. // this.$message.success('进入上传')
  16349. var file = "";
  16350. if (type == 5) {
  16351. file = event;
  16352. } else {
  16353. file = event.target.files[0];
  16354. }
  16355. var credentials = {
  16356. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16357. secretAccessKey: "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",
  16358. }; //秘钥形式的登录上传
  16359. window.AWS.config.update(credentials);
  16360. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16361. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16362. var _this = this;
  16363. _this.progress = 0;
  16364. _this.proVisible = true;
  16365. _this.isFinishSize = 0;
  16366. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  16367. var b = [
  16368. "DOC",
  16369. "DOCX",
  16370. "DOCM",
  16371. "DOTM",
  16372. "DOTX",
  16373. "PPTX",
  16374. "PPSX",
  16375. "PPT",
  16376. "PPS",
  16377. "PPTM",
  16378. "POTM",
  16379. "PPAM",
  16380. "POTX",
  16381. "PPSM",
  16382. ];
  16383. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16384. var photoA = [
  16385. "BMP",
  16386. "GIF",
  16387. "PNG",
  16388. "JPEG",
  16389. "JPEG",
  16390. "JPG",
  16391. "TIF",
  16392. "PCX",
  16393. "TGA",
  16394. "EXIF",
  16395. "FPX",
  16396. "SVG",
  16397. "APNG",
  16398. ];
  16399. // if (
  16400. // b.indexOf(
  16401. // file.name
  16402. // .split(".")
  16403. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16404. // ) != -1
  16405. // ) {
  16406. // if (file.size / 1024 / 1024 > 10) {
  16407. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  16408. // return;
  16409. // }
  16410. // } else if (
  16411. // excelA.indexOf(
  16412. // file.name
  16413. // .split(".")
  16414. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16415. // ) != "-1"
  16416. // ) {
  16417. // if (file.size / 1024 / 1024 > 5) {
  16418. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  16419. // return;
  16420. // }
  16421. // }
  16422. if (
  16423. photoA.indexOf(
  16424. file.name
  16425. .split(".")
  16426. [file.name.split(".").length - 1].toLocaleUpperCase()
  16427. ) != -1 &&
  16428. type != 4
  16429. ) {
  16430. // const blob = await imageConversion.compress(file, 0.8)
  16431. file = await this.pngToWhiteBg(file);
  16432. const blob = await imageConversion.compressAccurately(file, 256);
  16433. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16434. file = new File([blob], file.name, { type: file.type });
  16435. }
  16436. if (file) {
  16437. var params = {
  16438. Key:
  16439. file.name.split(".")[0] +
  16440. new Date().getTime() +
  16441. "." +
  16442. file.name.split(".")[file.name.split(".").length - 1],
  16443. ContentType: file.type,
  16444. Body: file,
  16445. "Access-Control-Allow-Credentials": "*",
  16446. ACL: "public-read",
  16447. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16448. var options = {
  16449. // partSize: 2048 * 1024 * 1024,
  16450. partSize: 1024 * 1024 * 1024,
  16451. queueSize: 2,
  16452. leavePartsOnError: true,
  16453. };
  16454. bucket
  16455. .upload(params, options)
  16456. .on("httpUploadProgress", function (evt) {
  16457. //这里可以写进度条
  16458. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16459. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  16460. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  16461. })
  16462. .send(function (err, data) {
  16463. _this.progress = 100;
  16464. _this.isFinishSize = _this.isAllSize;
  16465. setTimeout(() => {
  16466. _this.proVisible = false;
  16467. }, 1000);
  16468. if (err) {
  16469. var a = _this.$refs.upload1.uploadFiles;
  16470. a.splice(a.length - 1, a.length);
  16471. _this.$message.error("上传失败");
  16472. } else {
  16473. // _this.$message.success('上传成功')
  16474. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16475. var c = [
  16476. "AVI",
  16477. "NAVI",
  16478. "MPEG",
  16479. "ASF",
  16480. "MOV",
  16481. "WMV",
  16482. "3GP",
  16483. "RM",
  16484. "RMVB",
  16485. "FLV",
  16486. "F4V",
  16487. "H.264",
  16488. "H.265",
  16489. "REAL VIDEO",
  16490. "MKV",
  16491. "WebM",
  16492. "HDDVD",
  16493. "MP4",
  16494. "MPG",
  16495. "M4V",
  16496. "MGV",
  16497. "OGV",
  16498. "QTM",
  16499. "STR",
  16500. "AMC",
  16501. "DVX",
  16502. "EVO",
  16503. "DAT",
  16504. "OGG",
  16505. "OGM",
  16506. ];
  16507. if (type == 1) {
  16508. _this.studyJuri[0].cover.push({
  16509. name: file.name,
  16510. url: data.Location,
  16511. uid: file.uid,
  16512. });
  16513. if (
  16514. c.indexOf(
  16515. _this.studyJuri[0].cover[0].url
  16516. .split(".")
  16517. [
  16518. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16519. ].toLocaleUpperCase()
  16520. ) != -1
  16521. ) {
  16522. _this.fileType = 2;
  16523. } else if (
  16524. b.indexOf(
  16525. _this.studyJuri[0].cover[0].url
  16526. .split(".")
  16527. [
  16528. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16529. ].toLocaleUpperCase()
  16530. ) != -1
  16531. ) {
  16532. _this.fileType = 1;
  16533. } else if (
  16534. photoA.indexOf(
  16535. _this.studyJuri[0].cover[0].url
  16536. .split(".")
  16537. [
  16538. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16539. ].toLocaleUpperCase()
  16540. ) != -1
  16541. ) {
  16542. _this.fileType = 0;
  16543. } else {
  16544. _this.fileType = 3;
  16545. }
  16546. _this.imgChange(null, null, type);
  16547. } else if (type == 2) {
  16548. _this.upToolImg = data.Location;
  16549. _this.imgChange(null, null, type);
  16550. _this.addCourseWorks(i);
  16551. } else if (type == 4) {
  16552. _this.addPz("3", data.Location);
  16553. } else if (type == 5) {
  16554. _this.addImgDrawImG(data.Location);
  16555. } else if (type == 6) {
  16556. var _ftype = 1;
  16557. if (
  16558. c.indexOf(
  16559. data.Location.split(".")[
  16560. data.Location.split(".").length - 1
  16561. ].toLocaleUpperCase()
  16562. ) != -1
  16563. ) {
  16564. _ftype = 5;
  16565. } else if (
  16566. b.indexOf(
  16567. data.Location.split(".")[
  16568. data.Location.split(".").length - 1
  16569. ].toLocaleUpperCase()
  16570. ) != -1
  16571. ) {
  16572. _ftype = 4;
  16573. } else {
  16574. _ftype = 1;
  16575. }
  16576. _this.plworkFile.push({
  16577. name: file.name,
  16578. url: data.Location,
  16579. uid: file.uid,
  16580. fileType: _ftype,
  16581. username:
  16582. _this.plworkFile.length > 10
  16583. ? _this.plworkFile.length + 1
  16584. : "0" + (_this.plworkFile.length + 1),
  16585. });
  16586. } else if (type == 7) {
  16587. _this.addCourseWorksGong(i, data.Location, 32);
  16588. } else if (type == 8) {
  16589. _this.addCourseWorksGong(i, data.Location, 57);
  16590. }
  16591. _this.imgChange(null, null, type);
  16592. console.log(data.Location);
  16593. // _this.$message.success('上传成功'+data.Location)
  16594. }
  16595. });
  16596. }
  16597. },
  16598. async beforeUpload3(event, type, i) {
  16599. // this.$message.success('进入上传')
  16600. let file = "";
  16601. let cfindex2 = 0;
  16602. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  16603. file = event.target.files[cfindex];
  16604. var credentials = {
  16605. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16606. secretAccessKey: "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",
  16607. }; //秘钥形式的登录上传
  16608. window.AWS.config.update(credentials);
  16609. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16610. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16611. var _this = this;
  16612. // _this.progress = 0;
  16613. _this.proVisible2 = true;
  16614. var b = [
  16615. "DOC",
  16616. "DOCX",
  16617. "DOCM",
  16618. "DOTM",
  16619. "DOTX",
  16620. "PPTX",
  16621. "PPSX",
  16622. "PPT",
  16623. "PPS",
  16624. "PPTM",
  16625. "POTM",
  16626. "PPAM",
  16627. "POTX",
  16628. "PPSM",
  16629. ];
  16630. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16631. var photoA = [
  16632. "BMP",
  16633. "GIF",
  16634. "PNG",
  16635. "JPEG",
  16636. "JPG",
  16637. "TIF",
  16638. "PCX",
  16639. "TGA",
  16640. "EXIF",
  16641. "FPX",
  16642. "SVG",
  16643. "APNG",
  16644. ];
  16645. if (
  16646. photoA.indexOf(
  16647. file.name
  16648. .split(".")
  16649. [file.name.split(".").length - 1].toLocaleUpperCase()
  16650. ) != -1 &&
  16651. type != 4
  16652. ) {
  16653. // const blob = await imageConversion.compress(file, 0.8)
  16654. file = await this.pngToWhiteBg(file);
  16655. const blob = await imageConversion.compressAccurately(file, 256);
  16656. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16657. file = new File([blob], file.name, { type: file.type });
  16658. }
  16659. if (file) {
  16660. var params = {
  16661. Key:
  16662. file.name.split(".")[0] +
  16663. new Date().getTime() +
  16664. "." +
  16665. file.name.split(".")[file.name.split(".").length - 1],
  16666. ContentType: file.type,
  16667. Body: file,
  16668. "Access-Control-Allow-Credentials": "*",
  16669. ACL: "public-read",
  16670. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16671. var options = {
  16672. // partSize: 2048 * 1024 * 1024,
  16673. partSize: 1024 * 1024 * 1024,
  16674. queueSize: 2,
  16675. leavePartsOnError: true,
  16676. };
  16677. bucket
  16678. .upload(params, options)
  16679. .on("httpUploadProgress", function (evt) {
  16680. //这里可以写进度条
  16681. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16682. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16683. })
  16684. .send(function (err, data) {
  16685. // _this.progress = 100;
  16686. cfindex2++;
  16687. setTimeout(() => {
  16688. if (
  16689. cfindex2 == event.target.files.length - 1 ||
  16690. cfindex2 > event.target.files.length - 1
  16691. ) {
  16692. _this.proVisible2 = false;
  16693. }
  16694. }, 1000);
  16695. if (err) {
  16696. var a = _this.$refs.upload1.uploadFiles;
  16697. a.splice(a.length - 1, a.length);
  16698. _this.$message.error("上传失败");
  16699. } else {
  16700. // _this.$message.success('上传成功')
  16701. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16702. var c = [
  16703. "AVI",
  16704. "NAVI",
  16705. "MPEG",
  16706. "ASF",
  16707. "MOV",
  16708. "WMV",
  16709. "3GP",
  16710. "RM",
  16711. "RMVB",
  16712. "FLV",
  16713. "F4V",
  16714. "H.264",
  16715. "H.265",
  16716. "REAL VIDEO",
  16717. "MKV",
  16718. "WebM",
  16719. "HDDVD",
  16720. "MP4",
  16721. "MPG",
  16722. "M4V",
  16723. "MGV",
  16724. "OGV",
  16725. "QTM",
  16726. "STR",
  16727. "AMC",
  16728. "DVX",
  16729. "EVO",
  16730. "DAT",
  16731. "OGG",
  16732. "OGM",
  16733. ];
  16734. if (type == 1) {
  16735. _this.studyJuri[0].cover.push({
  16736. name: file.name,
  16737. url: data.Location,
  16738. uid: file.uid,
  16739. });
  16740. if (
  16741. c.indexOf(
  16742. _this.studyJuri[0].cover[0].url
  16743. .split(".")
  16744. [
  16745. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16746. ].toLocaleUpperCase()
  16747. ) != -1
  16748. ) {
  16749. _this.fileType = 2;
  16750. } else if (
  16751. b.indexOf(
  16752. _this.studyJuri[0].cover[0].url
  16753. .split(".")
  16754. [
  16755. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16756. ].toLocaleUpperCase()
  16757. ) != -1
  16758. ) {
  16759. _this.fileType = 1;
  16760. } else {
  16761. _this.fileType = 0;
  16762. }
  16763. _this.imgChange(null, null, type);
  16764. } else if (type == 2) {
  16765. _this.upToolImg = data.Location;
  16766. _this.imgChange(null, null, type);
  16767. _this.addCourseWorks(i);
  16768. } else if (type == 4) {
  16769. _this.addPz("3", data.Location);
  16770. } else if (type == 5) {
  16771. _this.addImgDrawImG(data.Location);
  16772. } else if (type == 6) {
  16773. var _ftype = 1;
  16774. if (
  16775. c.indexOf(
  16776. data.Location.split(".")[
  16777. data.Location.split(".").length - 1
  16778. ].toLocaleUpperCase()
  16779. ) != -1
  16780. ) {
  16781. _ftype = 5;
  16782. } else if (
  16783. b.indexOf(
  16784. data.Location.split(".")[
  16785. data.Location.split(".").length - 1
  16786. ].toLocaleUpperCase()
  16787. ) != -1
  16788. ) {
  16789. _ftype = 4;
  16790. } else {
  16791. _ftype = 1;
  16792. }
  16793. _this.plworkFile.push({
  16794. name: file.name,
  16795. url: data.Location,
  16796. uid: file.uid,
  16797. fileType: _ftype,
  16798. username:
  16799. _this.plworkFile.length + 1 > 9
  16800. ? _this.plworkFile.length + 1
  16801. : "0" + (_this.plworkFile.length + 1),
  16802. });
  16803. }
  16804. _this.imgChange(null, null, type);
  16805. console.log(data.Location);
  16806. // _this.$message.success('上传成功'+data.Location)
  16807. }
  16808. });
  16809. }
  16810. }
  16811. },
  16812. beforeUpload2(event, type) {
  16813. var file = event.target.files[0];
  16814. var credentials = {
  16815. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16816. secretAccessKey: "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",
  16817. }; //秘钥形式的登录上传
  16818. window.AWS.config.update(credentials);
  16819. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16820. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16821. var _this = this;
  16822. _this.progress = 0;
  16823. _this.proVisible = true;
  16824. if (file) {
  16825. var params = {
  16826. Key:
  16827. file.name.split(".")[0] +
  16828. new Date().getTime() +
  16829. "." +
  16830. file.name.split(".")[file.name.split(".").length - 1],
  16831. ContentType: file.type,
  16832. Body: file,
  16833. "Access-Control-Allow-Credentials": "*",
  16834. ACL: "public-read",
  16835. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16836. var options = {
  16837. partSize: 2048 * 1024 * 1024,
  16838. queueSize: 2,
  16839. leavePartsOnError: true,
  16840. };
  16841. bucket
  16842. .upload(params, options)
  16843. .on("httpUploadProgress", function (evt) {
  16844. //这里可以写进度条
  16845. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16846. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16847. })
  16848. .send(function (err, data) {
  16849. _this.progress = 100;
  16850. setTimeout(() => {
  16851. _this.proVisible = false;
  16852. }, 1000);
  16853. if (err) {
  16854. var a = _this.$refs.upload1.uploadFiles;
  16855. a.splice(a.length - 1, a.length);
  16856. _this.$message.error("上传失败");
  16857. } else {
  16858. if (type == 2) {
  16859. _this.studyJuri[0].upVedio.push({
  16860. name: file.name,
  16861. url: data.Location,
  16862. uid: file.uid,
  16863. });
  16864. _this.imgChange(null, null, type);
  16865. } else if (type == 3) {
  16866. _this.studyJuri[0].upFile.push({
  16867. name: file.name,
  16868. url: data.Location,
  16869. uid: file.uid,
  16870. });
  16871. _this.imgChange(null, null, type);
  16872. }
  16873. console.log(data.Location);
  16874. }
  16875. });
  16876. }
  16877. },
  16878. allScrell() {
  16879. window.topU.postMessage({ allScreen: this.screenType }, "*");
  16880. },
  16881. nextOrpreSteps(t) {
  16882. if (this.IsFollow && this.tType == 2) {
  16883. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16884. return;
  16885. }
  16886. var b = this.chapInfoList.length - 1;
  16887. if (t == 0) {
  16888. if (this.courseType == 0) {
  16889. if (this.taskCount == 0) {
  16890. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16891. if (this.IsLookOpen) {
  16892. if (
  16893. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16894. ) {
  16895. if (
  16896. this.courseDetail.userid != this.userid &&
  16897. (!this.courseDetail.course_teacher ||
  16898. (this.courseDetail.course_teacher &&
  16899. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16900. ) {
  16901. this.$message.error("任务未解锁");
  16902. } else {
  16903. this.$message.error("上一任务未解锁");
  16904. }
  16905. return;
  16906. }
  16907. }
  16908. this.navList[this.courseType].isOpen = false;
  16909. this.courseType = b;
  16910. this.taskCount =
  16911. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16912. .length - 1;
  16913. this.navList[this.courseType].isOpen = true;
  16914. } else {
  16915. this.taskCount--;
  16916. }
  16917. } else {
  16918. if (this.taskCount == 0) {
  16919. this.navList[this.courseType].isOpen = false;
  16920. this.courseType--;
  16921. this.taskCount =
  16922. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16923. .length - 1;
  16924. this.navList[this.courseType].isOpen = true;
  16925. } else {
  16926. this.taskCount--;
  16927. }
  16928. }
  16929. } else {
  16930. if (this.courseType == b) {
  16931. if (
  16932. this.taskCount ==
  16933. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16934. 1
  16935. ) {
  16936. this.navList[this.courseType].isOpen = false;
  16937. this.courseType = 0;
  16938. this.taskCount = 0;
  16939. this.navList[this.courseType].isOpen = true;
  16940. } else {
  16941. var bbb = parseInt(this.taskCount) + 1;
  16942. if (
  16943. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16944. .isLook &&
  16945. this.courseDetail.userid != this.userid &&
  16946. (!this.courseDetail.course_teacher ||
  16947. (this.courseDetail.course_teacher &&
  16948. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16949. this.IsLookOpen
  16950. ) {
  16951. this.$message.error("任务未解锁");
  16952. return;
  16953. }
  16954. this.taskCount++;
  16955. if (this.IsLookOpen) {
  16956. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16957. this.taskCount
  16958. ].isLook = true;
  16959. this.addCourseState(3);
  16960. }
  16961. }
  16962. } else {
  16963. if (
  16964. this.taskCount ==
  16965. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16966. 1
  16967. ) {
  16968. var bbb = parseInt(this.courseType) + 1;
  16969. if (
  16970. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16971. this.courseDetail.userid != this.userid &&
  16972. (!this.courseDetail.course_teacher ||
  16973. (this.courseDetail.course_teacher &&
  16974. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16975. this.IsLookOpen
  16976. ) {
  16977. this.$message.error("任务未解锁");
  16978. return;
  16979. }
  16980. this.navList[this.courseType].isOpen = false;
  16981. this.courseType++;
  16982. this.taskCount = 0;
  16983. this.navList[this.courseType].isOpen = true;
  16984. } else {
  16985. var bbb = parseInt(this.taskCount) + 1;
  16986. if (
  16987. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16988. .isLook &&
  16989. this.courseDetail.userid != this.userid &&
  16990. (!this.courseDetail.course_teacher ||
  16991. (this.courseDetail.course_teacher &&
  16992. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16993. this.IsLookOpen
  16994. ) {
  16995. this.$message.error("任务未解锁");
  16996. return;
  16997. }
  16998. this.taskCount++;
  16999. }
  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. // if (
  17008. // this.taskCount ==
  17009. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  17010. // ) {
  17011. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  17012. // } else {
  17013. // this.taskCount++;
  17014. // }
  17015. }
  17016. document.scrollingElement.scrollTop = 0;
  17017. // this.showType = 7;
  17018. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17019. // if (this.vedio[this.taskCount].length > 0) {
  17020. // var a =
  17021. // document.getElementsByClassName("box_course")[this.taskCount]
  17022. // .offsetHeight;
  17023. // document.getElementsByClassName("vedioList")[
  17024. // this.taskCount
  17025. // ].style.height = a + "px";
  17026. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  17027. // a - 40 + "px";
  17028. // }
  17029. this.isNoHomeWork = false;
  17030. (this.studyJuri = [
  17031. {
  17032. content: "",
  17033. cover: [],
  17034. upVedio: [],
  17035. upFile: [],
  17036. },
  17037. ]),
  17038. (this.radio = []);
  17039. this.isClickNav = "";
  17040. this.selectPz();
  17041. this.getHomeWork();
  17042. this.getCourseDetail(2);
  17043. this.$forceUpdate();
  17044. if (this.courseDetail.userid == this.userid && this.IsFollow) {
  17045. this.setCTask();
  17046. }
  17047. },
  17048. openTask(s, n, i) {
  17049. if (this.IsFollow && this.tType == 2) {
  17050. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  17051. return;
  17052. }
  17053. if (this.IsLookOpen &&
  17054. this.courseDetail.userid != this.userid &&
  17055. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  17056. if (
  17057. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  17058. this.courseDetail.userid != this.userid &&
  17059. (!this.courseDetail.course_teacher ||
  17060. (this.courseDetail.course_teacher &&
  17061. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  17062. ) {
  17063. this.$message.error("任务未解锁");
  17064. return;
  17065. }
  17066. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  17067. if (
  17068. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  17069. .isLook
  17070. ) {
  17071. this.$message.error("上一任务未解锁");
  17072. return;
  17073. }
  17074. } else if (s > this.courseType) {
  17075. if (n > 0) {
  17076. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  17077. this.$message.error("上一任务未解锁");
  17078. return;
  17079. }
  17080. } else {
  17081. if (
  17082. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  17083. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  17084. ].isLook
  17085. ) {
  17086. this.$message.error("上一任务未解锁");
  17087. return;
  17088. }
  17089. }
  17090. }
  17091. }
  17092. if (this.navList[s].task[n].isOpen == true) {
  17093. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  17094. return;
  17095. }
  17096. let flag = this.courseType==s;
  17097. this.courseType = s;
  17098. this.navId = i;
  17099. this.taskCount = n;
  17100. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  17101. this.navList[this.courseType].task[this.taskCount].isOpen =
  17102. !this.navList[this.courseType].task[this.taskCount].isOpen;
  17103. if (this.IsLookOpen) {
  17104. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17105. this.taskCount
  17106. ].isLook = true;
  17107. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  17108. this.addCourseState(3,yym);
  17109. }
  17110. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  17111. this.isCloseList[ci].isClose = 0;
  17112. this.isCloseList[ci].isCloseBoolean = false;
  17113. this.$nextTick(()=>{
  17114. setTimeout(()=>{
  17115. setTimeout(()=>{
  17116. this.panToolHeight('tool-'+ci);
  17117. }, 0)
  17118. }, 0)
  17119. })
  17120. }
  17121. // this.showType = 7;
  17122. this.isNoHomeWork = false;
  17123. (this.studyJuri = [
  17124. {
  17125. content: "",
  17126. cover: [],
  17127. upVedio: [],
  17128. upFile: [],
  17129. },
  17130. ]),
  17131. (this.radio = []);
  17132. document.scrollingElement.scrollTop = 0;
  17133. // setTimeout(() => {
  17134. // let a = document.getElementById(i);
  17135. // if (a.offsetTop - 110 == 0) {
  17136. // window.scrollTo(0, 0);
  17137. // } else {
  17138. // window.scrollTo(0, a.offsetTop);
  17139. // }
  17140. // }, 0);
  17141. for (var z = 0; z < this.navList.length; z++) {
  17142. for (var q = 0; q < this.navList[z].task.length; q++) {
  17143. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  17144. this.navList[z].task[q].tool[w].isTool = false;
  17145. }
  17146. }
  17147. }
  17148. this.selectPz();
  17149. this.getHomeWork();
  17150. this.getCourseDetail(2);
  17151. if (this.courseDetail.userid == this.userid && this.IsFollow) {
  17152. this.setCTask();
  17153. }
  17154. if(flag){
  17155. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  17156. }else{
  17157. 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>`)
  17158. }
  17159. },
  17160. get(i) {
  17161. if (this.IsFollow && this.tType == 2) {
  17162. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  17163. return;
  17164. }
  17165. // for(var k=0;k<this.navList.length;k++){
  17166. // this.navList[k].isOpen = false;
  17167. // }
  17168. // this.navList[i].isOpen = true;
  17169. this.navList[i].isOpen = !this.navList[i].isOpen;
  17170. if (this.navList[i].isOpen) {
  17171. this.openTask(i, 0, i + "-0");
  17172. }
  17173. },
  17174. addQuestion() {
  17175. this.answerList.push({
  17176. answerTitle: this.answerQ,
  17177. answer: this.questionAnswer,
  17178. });
  17179. let params = [
  17180. {
  17181. uid: this.userid,
  17182. cid: this.id,
  17183. stage: this.courseType,
  17184. task: this.taskCount,
  17185. tool: this.toolindex,
  17186. content: JSON.stringify(this.answerList),
  17187. type: 3,
  17188. },
  17189. ];
  17190. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17191. this.homeWorkLoading = true
  17192. this.ajax
  17193. .post(this.$store.state.api + "addCourseWorks", params)
  17194. .then((res) => {
  17195. this.$message({
  17196. message: "提交成功",
  17197. type: "success",
  17198. });
  17199. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, "success")
  17200. setTimeout(() => {
  17201. this.homeWorkLoading = false
  17202. }, 500);
  17203. this.answerList = [];
  17204. this.answerDialogVisible = false;
  17205. this.selectStudent();
  17206. this.selectSWorks();
  17207. this.selectSLook();
  17208. })
  17209. .catch((err) => {
  17210. this.$message.error("提交失败");
  17211. console.error(err);
  17212. setTimeout(() => {
  17213. this.homeWorkLoading = false
  17214. }, 500);
  17215. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
  17216. });
  17217. },
  17218. addQuestionTeacher() {
  17219. this.answerList.push({
  17220. answerTitle: this.answerQ,
  17221. answer: this.questionAnswer,
  17222. });
  17223. let params = [
  17224. {
  17225. uid: this.sStudent.userid,
  17226. cid: this.id,
  17227. stage: this.courseType,
  17228. task: this.taskCount,
  17229. tool: this.toolindex,
  17230. content: JSON.stringify(this.answerList),
  17231. type: 3,
  17232. ateacher: this.userid,
  17233. },
  17234. ];
  17235. this.ajax
  17236. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  17237. .then((res) => {
  17238. this.$message({
  17239. message: "提交成功",
  17240. type: "success",
  17241. });
  17242. this.answerList = [];
  17243. this.questionAnswer = "";
  17244. this.answerDialogVisibleTeacher = false;
  17245. this.selectStudent();
  17246. this.selectSWorks();
  17247. this.selectSLook();
  17248. })
  17249. .catch((err) => {
  17250. this.$message.error("提交失败");
  17251. console.error(err);
  17252. });
  17253. },
  17254. refreshCourse() {
  17255. // window.location.reload();
  17256. this.navList = [];
  17257. this.getCourseDetail(1);
  17258. },
  17259. getCourseDetail(type, gindex) {
  17260. let loading;
  17261. if (type != 2) {
  17262. loading = this.$loading.service({
  17263. background: "rgba(255, 255, 255, 0.7)",
  17264. target: document.querySelector(".student_table"),
  17265. });
  17266. }
  17267. this.downLoading = false
  17268. // this.navList[0].isOpen = false;
  17269. // this.navList[this.courseType].isOpen = true;
  17270. // this.courseType = this.courseTypeLine;
  17271. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17272. let params = {
  17273. courseId: this.id,
  17274. };
  17275. this.ajax
  17276. .get(this.$store.state.api + "selectCourseDetail3", params)
  17277. .then((res) => {
  17278. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  17279. if (type != 2) {
  17280. loading.close();
  17281. if (
  17282. this.courseType >
  17283. JSON.parse(res.data[0][0].chapters).length - 1
  17284. ) {
  17285. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  17286. }
  17287. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17288. .chapterInfo[0].taskJson;
  17289. var b = [
  17290. "AVI",
  17291. "NAVI",
  17292. "MPEG",
  17293. "ASF",
  17294. "MOV",
  17295. "WMV",
  17296. "3GP",
  17297. "RM",
  17298. "RMVB",
  17299. "FLV",
  17300. "F4V",
  17301. "H.264",
  17302. "H.265",
  17303. "REAL VIDEO",
  17304. "MKV",
  17305. "WebM",
  17306. "HDDVD",
  17307. "MP4",
  17308. "MPG",
  17309. "M4V",
  17310. "MGV",
  17311. "OGV",
  17312. "QTM",
  17313. "STR",
  17314. "AMC",
  17315. "DVX",
  17316. "EVO",
  17317. "DAT",
  17318. "OGG",
  17319. "OGM",
  17320. "MP3",
  17321. ];
  17322. let _chapterData = [];
  17323. for (var i = 0; i < a.length; i++) {
  17324. var c = a[i].chapterData;
  17325. this.vedio[i] = [];
  17326. this.textList[i] = [];
  17327. this.lineList[i] = [];
  17328. this.chapToolList[i] = [];
  17329. this.file[i] = [];
  17330. this.fileC[i] = [];
  17331. _chapterData[i] = c.filter((el) => {
  17332. return el.type != 12;
  17333. });
  17334. this.fileC[i] = c.filter((el) => {
  17335. return el.type == 12;
  17336. });
  17337. if (this.tType == 2) {
  17338. if (this.fileC[i].length) {
  17339. let yym1 = this.fileC[i].filter(e=>{
  17340. if(!converter(e.name).includes(converter("教案"))){
  17341. return e
  17342. }
  17343. })
  17344. this.fileC[i] = yym1
  17345. }
  17346. }
  17347. // else if (c[j].type == 12) {
  17348. // this.fileC[i].push(c[j]);
  17349. // }
  17350. for (var j = 0; j < c.length; j++) {
  17351. if (c[j].type == 7) {
  17352. this.chapToolList[i].push(c[j]);
  17353. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  17354. this.lineList[i].push(c[j]);
  17355. } else if (c[j].type == 6) {
  17356. this.textList[i].push(c[j]);
  17357. } else {
  17358. if (
  17359. b.indexOf(
  17360. c[j].url
  17361. .split(".")
  17362. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17363. ) != -1
  17364. ) {
  17365. this.vedio[i].push(c[j]);
  17366. } else {
  17367. this.file[i].push(c[j]);
  17368. }
  17369. }
  17370. }
  17371. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17372. d.sources[0].src =
  17373. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17374. this.playerO[i] = d;
  17375. }
  17376. this.courseDetail = res.data[0][0];
  17377. if(this.tType == 2){
  17378. this.tcid = this.arrayToArray(
  17379. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17380. this.classId ? this.classId.split(",") : []
  17381. ).join(",");
  17382. }else{
  17383. this.tcid = this.arrayToArray(
  17384. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17385. this.tcid2 ? this.tcid2.split(",") : []
  17386. ).join(",");
  17387. }
  17388. this.evalua = res.data[0][0].evaId;
  17389. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  17390. this.courseType
  17391. ];
  17392. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17393. if (this.tcid && res.data[1].length) {
  17394. let _inviteA = [];
  17395. for (var ik = 0; ik < res.data[1].length; ik++) {
  17396. _inviteA.push({
  17397. cid: res.data[1][ik].classid,
  17398. ic: res.data[1][ik].code,
  17399. });
  17400. }
  17401. for (var ik = 0; ik < _inviteA.length; ik++) {
  17402. if (
  17403. this.arrayToArray(
  17404. _inviteA[ik].cid.split(","),
  17405. this.tcid.split(",")
  17406. ).length
  17407. ) {
  17408. this.inviteCode = _inviteA[ik].ic;
  17409. break;
  17410. }
  17411. }
  17412. }
  17413. for (var l = 0; l < this.chapInfoList.length; l++) {
  17414. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17415. for (var m = 0; m < w.length; m++) {
  17416. w[m].id = l + "-" + m;
  17417. }
  17418. }
  17419. let taskCount = 0;
  17420. if (
  17421. _chapterData[taskCount].length &&
  17422. _chapterData[taskCount][0].type == 2
  17423. ) {
  17424. this.showType = 0;
  17425. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  17426. } else {
  17427. if (_chapterData[taskCount].length > 0) {
  17428. let _url = _chapterData[taskCount][0].url;
  17429. if (
  17430. _chapterData[taskCount][0].type == 8 ||
  17431. _chapterData[taskCount][0].type == 14 ||
  17432. _chapterData[taskCount][0].type == 15
  17433. ) {
  17434. this.showType = 2;
  17435. if (
  17436. _url.indexOf("https://") == -1 &&
  17437. _url.indexOf("http://") == -1
  17438. ) {
  17439. _url = "https://" + _url;
  17440. }
  17441. this.pptImgUrl1 = _url;
  17442. } else if (_chapterData[taskCount][0].type == 3) {
  17443. if (
  17444. _url
  17445. .split(".")
  17446. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17447. ) {
  17448. this.showType = 3;
  17449. this.pptImgUrl1 = _url;
  17450. } else if (
  17451. this.isAssetTypeAnImage(
  17452. _url
  17453. .split(".")
  17454. [_url.split(".").length - 1].toLocaleLowerCase()
  17455. )
  17456. ) {
  17457. this.showType = 4;
  17458. this.pptImgUrl1 = _url;
  17459. } else {
  17460. this.showType = 2;
  17461. this.pptImgUrl1 =
  17462. "https://view.officeapps.live.com/op/view.aspx?src=" +
  17463. encodeURIComponent(_url);
  17464. }
  17465. } else if (_chapterData[taskCount][0].type == 13) {
  17466. this.showType = 4;
  17467. this.pptImgUrl1 = _url;
  17468. } else if (_chapterData[taskCount][0].type == 6) {
  17469. this.showType = 1;
  17470. this.text = this.textList[taskCount][0];
  17471. } else if (_chapterData[taskCount][0].type == 16) {
  17472. this.showType = 16;
  17473. this.pptImgUrl1 = _url;
  17474. }
  17475. }
  17476. }
  17477. this.isClickNav = 0;
  17478. if (
  17479. !_chapterData[taskCount].length ||
  17480. _chapterData[taskCount][0].type == 12
  17481. ) {
  17482. this.isClickNav = "";
  17483. this.showType = "";
  17484. }
  17485. if (this.tType == 2) {
  17486. _chapterData.forEach((e,i)=>{
  17487. if (e.length) {
  17488. let yym = e.filter(k=>{
  17489. if(!converter(k.name).includes(converter("教案"))){
  17490. return k
  17491. }
  17492. })
  17493. _chapterData[i] = yym
  17494. }
  17495. })
  17496. }
  17497. this.vChapterData = _chapterData;
  17498. } else {
  17499. // this.showType = 0;
  17500. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17501. .chapterInfo[0].taskJson;
  17502. var b = [
  17503. "AVI",
  17504. "NAVI",
  17505. "MPEG",
  17506. "ASF",
  17507. "MOV",
  17508. "WMV",
  17509. "3GP",
  17510. "RM",
  17511. "RMVB",
  17512. "FLV",
  17513. "F4V",
  17514. "H.264",
  17515. "H.265",
  17516. "REAL VIDEO",
  17517. "MKV",
  17518. "WebM",
  17519. "HDDVD",
  17520. "MP4",
  17521. "MPG",
  17522. "M4V",
  17523. "MGV",
  17524. "OGV",
  17525. "QTM",
  17526. "STR",
  17527. "AMC",
  17528. "DVX",
  17529. "EVO",
  17530. "DAT",
  17531. "OGG",
  17532. "OGM",
  17533. "MP3",
  17534. ];
  17535. let _chapterData = [];
  17536. for (var i = 0; i < a.length; i++) {
  17537. var c = a[i].chapterData;
  17538. this.vedio[i] = [];
  17539. this.textList[i] = [];
  17540. this.lineList[i] = [];
  17541. this.chapToolList[i] = [];
  17542. this.file[i] = [];
  17543. this.fileC[i] = [];
  17544. _chapterData[i] = c.filter((el) => {
  17545. return el.type != 12;
  17546. });
  17547. this.fileC[i] = c.filter((el) => {
  17548. return el.type == 12;
  17549. });
  17550. if (this.tType == 2) {
  17551. if (this.fileC[i].length) {
  17552. let yym1 = this.fileC[i].filter(e=>{
  17553. if(!converter(e.name).includes(converter("教案"))){
  17554. return e
  17555. }
  17556. })
  17557. this.fileC[i] = yym1
  17558. }
  17559. }
  17560. for (var j = 0; j < c.length; j++) {
  17561. if (c[j].type == 7) {
  17562. this.chapToolList[i].push(c[j]);
  17563. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  17564. this.lineList[i].push(c[j]);
  17565. } else if (c[j].type == 6) {
  17566. this.textList[i].push(c[j]);
  17567. } else {
  17568. if (
  17569. b.indexOf(
  17570. c[j].url
  17571. .split(".")
  17572. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17573. ) != -1
  17574. ) {
  17575. this.vedio[i].push(c[j]);
  17576. } else {
  17577. this.file[i].push(c[j]);
  17578. }
  17579. }
  17580. }
  17581. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17582. d.sources[0].src =
  17583. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17584. this.playerO[i] = d;
  17585. }
  17586. let taskCount = 0;
  17587. if (
  17588. _chapterData[taskCount].length &&
  17589. _chapterData[taskCount][0].type == 2
  17590. ) {
  17591. // this.showType = 0;
  17592. // this.pptImgUrl1 = _chapterData[taskCount][0].url;
  17593. } else {
  17594. if (_chapterData[taskCount].length > 0) {
  17595. let _url = _chapterData[taskCount][0].url;
  17596. if (
  17597. _chapterData[taskCount][0].type == 8 ||
  17598. _chapterData[taskCount][0].type == 14||
  17599. _chapterData[taskCount][0].type == 15
  17600. ) {
  17601. // this.showType = 2;
  17602. if (
  17603. _url.indexOf("https://") == -1 &&
  17604. _url.indexOf("http://") == -1
  17605. ) {
  17606. _url = "https://" + _url;
  17607. }
  17608. // this.pptImgUrl1 = _url;
  17609. } else if (_chapterData[taskCount][0].type == 3) {
  17610. if (
  17611. _url
  17612. .split(".")
  17613. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17614. ) {
  17615. // this.showType = 3;
  17616. // this.pptImgUrl1 = _url;
  17617. } else if (
  17618. this.isAssetTypeAnImage(
  17619. _url
  17620. .split(".")
  17621. [_url.split(".").length - 1].toLocaleLowerCase()
  17622. )
  17623. ) {
  17624. // this.showType = 4;
  17625. // this.pptImgUrl1 = _url;
  17626. } else {
  17627. // this.showType = 2;
  17628. // this.pptImgUrl1 =
  17629. // "https://view.officeapps.live.com/op/view.aspx?src=" +
  17630. // encodeURIComponent(_url);
  17631. }
  17632. } else if (_chapterData[taskCount][0].type == 13) {
  17633. // this.showType = 4;
  17634. // this.pptImgUrl1 = _url;
  17635. } else if (_chapterData[taskCount][0].type == 6) {
  17636. this.showType = 1;
  17637. this.text = this.textList[taskCount][0];
  17638. } else if (_chapterData[taskCount][0].type == 16) {
  17639. this.showType = 16;
  17640. this.pptImgUrl1 = _url;
  17641. }
  17642. }
  17643. }
  17644. this.isClickNav = 0;
  17645. if (
  17646. !_chapterData[taskCount].length ||
  17647. _chapterData[taskCount][0].type == 12
  17648. ) {
  17649. this.isClickNav = "";
  17650. // this.showType = "";
  17651. }
  17652. if (this.tType == 2) {
  17653. _chapterData.forEach((e,i)=>{
  17654. if (e.length) {
  17655. let yym = e.filter(k=>{
  17656. if(!converter(k.name).includes(converter("教案"))){
  17657. return k
  17658. }
  17659. })
  17660. _chapterData[i] = yym
  17661. }
  17662. })
  17663. }
  17664. this.vChapterData = _chapterData;
  17665. this.$forceUpdate();
  17666. }
  17667. // else {
  17668. // this.courseDetail = res.data[0][0];
  17669. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17670. // }
  17671. // 判断进入课程是否是创建老师,如果去创建老师,就自动开启下面两个按钮
  17672. if (type == 10) {
  17673. console.log('this.courseDetail.userid',this.courseDetail.userid);
  17674. console.log('this.userid',this.userid);
  17675. if (this.courseDetail.userid == this.userid) {
  17676. // 开局关闭学生查看内容
  17677. this.StulookMode(false)
  17678. // 开局打开跟随模式
  17679. this.followingMode(true)
  17680. }
  17681. }
  17682. let _this = this;
  17683. if (_this.timer) {
  17684. clearInterval(_this.timer);
  17685. _this.timer = null;
  17686. }
  17687. if (_this.tcid) {
  17688. _this.getCourseGroup(gindex);
  17689. } else {
  17690. _this.selectSWorks(gindex);
  17691. }
  17692. _this.selectStudent();
  17693. _this.selectSLook();
  17694. _this.getPick();
  17695. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17696. // _this.setCTask();
  17697. // }
  17698. if (_this.dialogVisibleGroup) {
  17699. _this.groupJson =
  17700. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17701. _this.taskCount
  17702. ].toolChoose[_this.toolindex].groupJson;
  17703. }
  17704. _this.$nextTick(() => {
  17705. setTimeout(() => {
  17706. _this.checkEva();
  17707. }, 1000);
  17708. });
  17709. _this.timer = setInterval(function () {
  17710. // _this.getCourseDetail(2);
  17711. if (_this.tcid) {
  17712. _this.getCourseGroup();
  17713. } else {
  17714. _this.selectSWorks();
  17715. }
  17716. _this.selectStudent();
  17717. _this.selectSLook();
  17718. _this.getPick();
  17719. // _this.getSplitScreenData();//获取分屏数据
  17720. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17721. // _this.setCTask();
  17722. // }
  17723. if (_this.dialogVisibleGroup) {
  17724. _this.groupJson =
  17725. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17726. _this.taskCount
  17727. ].toolChoose[_this.toolindex].groupJson;
  17728. }
  17729. if (_this.tType == 4 || _this.ispzType == 4) {
  17730. _this.selectPz();
  17731. }
  17732. }, 5000);
  17733. if (_this.timer2 == null) {
  17734. _this.timer2 = setInterval(()=> {
  17735. _this.getSplitScreenData();//获取分屏数据
  17736. }, 5000);
  17737. }
  17738. _this.$nextTick(function () {
  17739. setTimeout(() => {
  17740. // var a =
  17741. // document.getElementsByClassName("box_course")[0].offsetHeight;
  17742. // document.getElementsByClassName("vedioList")[0].style.height =
  17743. // a + "px";
  17744. // document.getElementsByClassName("navBox")[0].style.height =
  17745. // a - 40 + "px";
  17746. // if (_this.vedio[_this.taskCount].length > 0) {
  17747. // _this.vedioTime = [];
  17748. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17749. // _this.vedioTime[i] = document.getElementsByClassName(
  17750. // "vjs-duration-display"
  17751. // )[i].textContent;
  17752. // }
  17753. // }
  17754. }, 1000);
  17755. });
  17756. })
  17757. .catch((err) => {
  17758. loading.close();
  17759. console.error(err);
  17760. });
  17761. },
  17762. getCourseGroup(gindex) {
  17763. let params = {
  17764. cid: this.id,
  17765. classid: this.tcid ? this.tcid : "1",
  17766. };
  17767. this.ajax
  17768. .get(this.$store.state.api + "getCourseGroup", params)
  17769. .then((res) => {
  17770. if (res.data && res.data[0].length) {
  17771. if (!this.isGroup) {
  17772. let courseGroup = JSON.parse(res.data[0][0].group);
  17773. courseGroup.group = courseGroup.group.filter((el) => {
  17774. el.works = [];
  17775. return el;
  17776. });
  17777. if (courseGroup.isopen == 2) {
  17778. this.isGroup = false;
  17779. this.selectSWorks(gindex);
  17780. return;
  17781. }
  17782. this.courseGroup = courseGroup;
  17783. let groupPerson = res.data[1];
  17784. let group = JSON.parse(res.data[0][0].group).group;
  17785. let courseGroupStudent = {};
  17786. let courseGroupStudentUid = {};
  17787. for (var i = 0; i < group.length; i++) {
  17788. courseGroupStudent[group[i].id] = [];
  17789. courseGroupStudentUid[group[i].id] = [];
  17790. for (var j = 0; j < groupPerson.length; j++) {
  17791. if (groupPerson[j].groupCid == group[i].id) {
  17792. courseGroupStudent[group[i].id].push(groupPerson[j]);
  17793. courseGroupStudentUid[group[i].id].push(
  17794. groupPerson[j].userid
  17795. );
  17796. }
  17797. }
  17798. }
  17799. this.courseGroupStudent = courseGroupStudent;
  17800. this.courseGroupStudentUid = courseGroupStudentUid;
  17801. }
  17802. if (this.courseGroup.isopen == 2) {
  17803. this.isGroup = false;
  17804. } else {
  17805. this.isGroup = true;
  17806. }
  17807. this.selectSWorks(gindex);
  17808. } else {
  17809. this.selectSWorks(gindex);
  17810. this.isGroup = false;
  17811. }
  17812. })
  17813. .catch((err) => {
  17814. // this.$message.error("网络不佳");
  17815. console.error(err);
  17816. });
  17817. },
  17818. setOperationTime() {
  17819. let _this = this;
  17820. if (_this.opertimer) {
  17821. clearInterval(_this.opertimer);
  17822. _this.opertimer = null;
  17823. }
  17824. _this.opertimer = setInterval(() => {
  17825. _this.setoTime("600");
  17826. }, 600000);
  17827. },
  17828. setoTime(time) {
  17829. let params = [
  17830. {
  17831. uid: this.userid,
  17832. cid: this.id,
  17833. type: "2",
  17834. time: time,
  17835. },
  17836. ];
  17837. this.ajax
  17838. .post(this.$store.state.api + "addOperationTimeT2", params)
  17839. .then((res) => {})
  17840. .catch((err) => {
  17841. console.error(err);
  17842. });
  17843. },
  17844. addPz(type, content) {
  17845. if (type == "1" && this.pzConText == "") {
  17846. this.$message.error("评论不能为空!");
  17847. return;
  17848. }
  17849. let params = [
  17850. {
  17851. cid: this.id,
  17852. uid: this.userid,
  17853. s: this.courseType,
  17854. t: this.taskCount,
  17855. c: type == "1" ? this.pzConText : content,
  17856. type: type,
  17857. },
  17858. ];
  17859. this.ajax
  17860. .post(this.$store.state.api + "addPz2", params)
  17861. .then((res) => {
  17862. this.$message({
  17863. message: "添加成功",
  17864. type: "success",
  17865. });
  17866. this.pzConText = "";
  17867. this.addPzDialog = false;
  17868. this.selectPz();
  17869. if(this.tType!=2){
  17870. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  17871. }
  17872. })
  17873. .catch((err) => {
  17874. this.$message.error("添加失败");
  17875. console.error(err);
  17876. });
  17877. },
  17878. setReplyIndex(id, i) {
  17879. this.replyIndex = i;
  17880. this.replyPid = id;
  17881. this.replyDialogVisible = true;
  17882. },
  17883. addHf() {
  17884. if (this.reply == "") {
  17885. this.$message.error("回复不能为空!");
  17886. return;
  17887. }
  17888. let params = [
  17889. {
  17890. cid: this.id,
  17891. uid: this.userid,
  17892. s: this.courseType,
  17893. t: this.taskCount,
  17894. type: "1",
  17895. ct: 2,
  17896. pid: this.replyPid,
  17897. c: this.reply,
  17898. },
  17899. ];
  17900. this.ajax
  17901. .post(this.$store.state.api + "addHf", params)
  17902. .then((res) => {
  17903. this.reply = "";
  17904. this.$message({
  17905. message: "回复成功",
  17906. type: "success",
  17907. });
  17908. this.replyDialogVisible = false;
  17909. this.selectPz();
  17910. })
  17911. .catch((err) => {
  17912. this.$message.error("回复失败");
  17913. console.error(err);
  17914. });
  17915. },
  17916. deletePz(id) {
  17917. this.$confirm("确定删除此评论吗?", "提示", {
  17918. confirmButtonText: "确定",
  17919. cancelButtonText: "取消",
  17920. type: "warning",
  17921. })
  17922. .then(() => {
  17923. let params = [
  17924. {
  17925. id: id,
  17926. },
  17927. ];
  17928. this.ajax
  17929. .post(this.$store.state.api + "deletePz", params)
  17930. .then((res) => {
  17931. this.$message({
  17932. message: "删除成功",
  17933. type: "success",
  17934. });
  17935. this.selectPz();
  17936. })
  17937. .catch((err) => {
  17938. this.$message.error("网络异常");
  17939. console.error(err);
  17940. });
  17941. })
  17942. .catch(() => {});
  17943. },
  17944. deleteReply(id) {
  17945. this.$confirm("确定删除此回复吗?", "提示", {
  17946. confirmButtonText: "确定",
  17947. cancelButtonText: "取消",
  17948. type: "warning",
  17949. })
  17950. .then(() => {
  17951. let params = [
  17952. {
  17953. id: id,
  17954. },
  17955. ];
  17956. this.ajax
  17957. .post(this.$store.state.api + "deleteReply", params)
  17958. .then((res) => {
  17959. this.$message({
  17960. message: "删除成功",
  17961. type: "success",
  17962. });
  17963. this.selectPz();
  17964. })
  17965. .catch((err) => {
  17966. this.$message.error("网络异常");
  17967. console.error(err);
  17968. });
  17969. })
  17970. .catch(() => {});
  17971. },
  17972. setPz() {
  17973. if (this.ispzType == 4) {
  17974. this.ispzType = 0;
  17975. this.pzDialog = false;
  17976. return;
  17977. }
  17978. this.ispzType = 4;
  17979. this.pzDialog = true;
  17980. this.selectPz();
  17981. },
  17982. selectPz() {
  17983. let params = {
  17984. cid: this.id,
  17985. s: this.courseType,
  17986. t: this.taskCount,
  17987. type: this.pzStype,
  17988. uid: this.userid,
  17989. };
  17990. this.ajax
  17991. .get(this.$store.state.api + "selectPzListType", params)
  17992. .then((res) => {
  17993. this.pzList = res.data[0];
  17994. var a = res.data[1];
  17995. for (var i = 0; i < a.length; i++) {
  17996. for (var j = 0; j < this.pzList.length; j++) {
  17997. if (!this.pzList[j].hfList) {
  17998. this.pzList[j].hfList = [];
  17999. }
  18000. if (a[i].pid == this.pzList[j].id) {
  18001. this.pzList[j].hfList.push(a[i]);
  18002. }
  18003. }
  18004. }
  18005. })
  18006. .catch((err) => {
  18007. console.error(err);
  18008. });
  18009. },
  18010. // selectHf() {
  18011. // let params = {
  18012. // cid: this.id,
  18013. // s: this.courseType,
  18014. // t: this.taskCount,
  18015. // };
  18016. // this.ajax
  18017. // .get(this.$store.state.api + "selectHfList", params)
  18018. // .then((res) => {
  18019. // var a = res.data[0];
  18020. // for (var i = 0; i < a.length; i++) {
  18021. // for (var j = 0; j < this.pzList.length; j++) {
  18022. // if (!this.pzList[i].hfList) {
  18023. // this.pzList[i].hfList = [];
  18024. // }
  18025. // if (a[i].pid == this.pzList[j].id) {
  18026. // this.pzList[i].hfList.push(a[i]);
  18027. // }
  18028. // }
  18029. // }
  18030. // })
  18031. // .catch((err) => {
  18032. // console.error(err);
  18033. // });
  18034. // },
  18035. updateSLook() {
  18036. let params = {
  18037. sopen: this.sIsOpen == false ? 1 : 2,
  18038. cid: this.id,
  18039. };
  18040. this.ajax
  18041. .get(this.$store.state.api + "updateCourseSLook", params)
  18042. .then((res) => {
  18043. if (this.sIsOpen == true) {
  18044. this.$message({
  18045. message: "权限设置成功",
  18046. type: "success",
  18047. });
  18048. } else {
  18049. this.$message({
  18050. message: "权限关闭成功",
  18051. type: "success",
  18052. });
  18053. }
  18054. })
  18055. .catch((err) => {
  18056. console.error(err);
  18057. });
  18058. },
  18059. updateIsStulook(){
  18060. let params = [
  18061. {
  18062. sopen: this.IsStulook == false ? 2 : 1,
  18063. cid: this.id
  18064. }
  18065. ];
  18066. this.ajax
  18067. .post(this.$store.state.api + "updateCourseStulook", params)
  18068. .then(res => {
  18069. if (this.IsStulook == true) {
  18070. this.$message({
  18071. message: "学生查看内容资料权限已开启",
  18072. type: "success"
  18073. });
  18074. } else {
  18075. this.$message({
  18076. message: "关闭学生查看内容资料权限",
  18077. type: "success"
  18078. });
  18079. }
  18080. // this.setCTask();
  18081. })
  18082. .catch(err => {
  18083. console.error(err);
  18084. });
  18085. },
  18086. updateFollow() {
  18087. let params = [
  18088. {
  18089. sopen: this.IsFollow == false ? 1 : 2,
  18090. cid: this.id,
  18091. },
  18092. ];
  18093. this.ajax
  18094. .post(this.$store.state.api + "updateCourseFollow", params)
  18095. .then((res) => {
  18096. if (this.IsFollow == true) {
  18097. this.$message({
  18098. message: "跟随模式已开启",
  18099. type: "success",
  18100. });
  18101. } else {
  18102. this.$message({
  18103. message: "跟随模式已关闭",
  18104. type: "success",
  18105. });
  18106. }
  18107. this.setCTask();
  18108. })
  18109. .catch((err) => {
  18110. console.error(err);
  18111. });
  18112. },
  18113. setCTask() {
  18114. let params = [
  18115. {
  18116. sopen: this.courseType + "-" + this.taskCount,
  18117. cid: this.id,
  18118. },
  18119. ];
  18120. this.ajax
  18121. .post(this.$store.state.api + "updateCourseFollowC", params)
  18122. .then((res) => {})
  18123. .catch((err) => {
  18124. console.error(err);
  18125. });
  18126. },
  18127. updateLookOpen() {
  18128. let params = [
  18129. {
  18130. sopen: this.IsLookOpen == false ? 1 : 2,
  18131. cid: this.id,
  18132. },
  18133. ];
  18134. this.ajax
  18135. .post(this.$store.state.api + "updateCourseLookOpen", params)
  18136. .then((res) => {
  18137. if (this.IsLookOpen == true) {
  18138. // if (this.courseType != 0 && this.taskCount != 0) {
  18139. // this.openTask(0, 0, "0-0");
  18140. // }
  18141. this.$message({
  18142. message: "权限设置成功",
  18143. type: "success",
  18144. });
  18145. } else {
  18146. this.$message({
  18147. message: "权限关闭成功",
  18148. type: "success",
  18149. });
  18150. }
  18151. this.getCourseState(2);
  18152. })
  18153. .catch((err) => {
  18154. console.error(err);
  18155. });
  18156. },
  18157. selectSLook() {
  18158. let params = {
  18159. cid: this.id,
  18160. };
  18161. this.ajax
  18162. .get(this.$store.state.api + "selectCourseSLook", params)
  18163. .then((res) => {
  18164. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  18165. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  18166. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  18167. this.IsStulook = res.data[0][0].isStulook == 2 ? false : true;
  18168. if (!this.IsLookOpen) {
  18169. this.setNavList();
  18170. }else {
  18171. this.getCourseState(1);
  18172. }
  18173. if ((this.IsFollow && this.tType == 2)) {
  18174. this.setContent2(false);
  18175. let _followC = res.data[0][0].followC.split("-");
  18176. if (
  18177. this.courseType != _followC[0] ||
  18178. this.taskCount != _followC[1]
  18179. ) {
  18180. this.navList[this.courseType].isOpen = false;
  18181. this.courseType = _followC[0];
  18182. this.navList[this.courseType].isOpen = true;
  18183. this.taskCount = parseInt(_followC[1]);
  18184. this.navId = res.data[0][0].followC;
  18185. document.scrollingElement.scrollTop = 0;
  18186. this.getCourseDetail(2);
  18187. }
  18188. }
  18189. })
  18190. .catch((err) => {
  18191. console.error(err);
  18192. });
  18193. },
  18194. setNavList() {
  18195. if (this.navList.length == 0) {
  18196. this.navList = [];
  18197. var copyList = [];
  18198. for (var l = 0; l < this.chapInfoList.length; l++) {
  18199. var q = this.chapInfoList[l].dyName;
  18200. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18201. var e;
  18202. copyList.push({
  18203. dyName: q,
  18204. isOpen: l === 0 ? true : false,
  18205. task: [],
  18206. });
  18207. for (var r = 0; r < w.length; r++) {
  18208. e = w[r].task;
  18209. if (this.chapInfoList[l].easy == 1) {
  18210. copyList[l].task.push({
  18211. taskName: q,
  18212. id: l + "-" + r,
  18213. isLook: w[r].isLook,
  18214. isOpen: r === 0 ? true : false,
  18215. tool: [],
  18216. });
  18217. } else {
  18218. copyList[l].task.push({
  18219. taskName: e,
  18220. id: l + "-" + r,
  18221. isLook: w[r].isLook,
  18222. isOpen: r === 0 ? true : false,
  18223. tool: [],
  18224. });
  18225. }
  18226. var t = w[r].toolChoose;
  18227. for (var k = 0; k < t.length; k++) {
  18228. var tool = t[k].tool[0];
  18229. copyList[l].task[r].tool.push({
  18230. tool: tool,
  18231. isTool: false,
  18232. });
  18233. }
  18234. // this.navId = this.navId ? this.navId : l + "-" + r;
  18235. // this.navId = l + "-" + r;
  18236. }
  18237. }
  18238. this.navList = copyList;
  18239. this.navList[0].isOpen = false;
  18240. this.navList[this.courseType].isOpen = true;
  18241. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  18242. } else {
  18243. this.setNavList2();
  18244. }
  18245. },
  18246. setNavList2() {
  18247. for (var l = 0; l < this.chapInfoList.length; l++) {
  18248. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18249. for (var r = 0; r < w.length; r++) {
  18250. this.navList[l].task[r].isLook = w[r].isLook;
  18251. }
  18252. }
  18253. if (
  18254. this.IsLookOpen &&
  18255. !this.navList[this.courseType].task[this.taskCount].isLook
  18256. ) {
  18257. this.openTask(0, 0, "0-0");
  18258. }
  18259. this.$forceUpdate();
  18260. },
  18261. getCourseState(type) {
  18262. let params = {
  18263. cid: this.id,
  18264. };
  18265. this.ajax
  18266. .get(this.$store.state.api + "getCourseState", params)
  18267. .then((res) => {
  18268. // if (res.data[0].length > 0) {
  18269. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  18270. // }
  18271. if (res.data[0].length > 0 && type == 1) {
  18272. this.chapInfoList = JSON.parse(res.data[0][0].state);
  18273. this.setNavList();
  18274. this.$forceUpdate();
  18275. } else if (res.data[0].length > 0 && type == 2) {
  18276. this.addCourseState(2);
  18277. } else {
  18278. // this.addCourseState(1);
  18279. }
  18280. })
  18281. .catch((err) => {
  18282. console.error(err);
  18283. });
  18284. },
  18285. addCourseState(type,val = '') {
  18286. let _state = val ? val : this.chapInfoList;
  18287. // this.courseType this.taskCount
  18288. if (type == 1 || type == 2) {
  18289. for (var i = 0; i < _state.length; i++) {
  18290. let el = _state[i].chapterInfo[0].taskJson;
  18291. for (var j = 0; j < el.length; j++) {
  18292. // if (i == 0 && j == 0) {
  18293. // el[j].isLook = true;
  18294. // } else {
  18295. // el[j].isLook = false;
  18296. // }
  18297. if (
  18298. this.courseType > i ||
  18299. (this.courseType == i && this.taskCount + 1 > j)
  18300. ) {
  18301. el[j].isLook = true;
  18302. } else {
  18303. el[j].isLook = false;
  18304. }
  18305. }
  18306. }
  18307. }
  18308. let params = [
  18309. {
  18310. cid: this.id,
  18311. state: JSON.stringify(_state),
  18312. },
  18313. ];
  18314. this.ajax
  18315. .post(
  18316. this.$store.state.api +
  18317. (type == 1 ? "addCourseState" : "updateCourseSate"),
  18318. params
  18319. )
  18320. .then((res) => {
  18321. if (this.IsLookOpen) {
  18322. this.setNavList();
  18323. }
  18324. if (type == 3 && type == 2) {
  18325. this.getCourseState(1);
  18326. }
  18327. })
  18328. .catch((err) => {
  18329. console.error(err);
  18330. });
  18331. },
  18332. getHomeWork() {
  18333. let params = {
  18334. cid: this.id,
  18335. stage: this.courseType,
  18336. task: this.taskCount,
  18337. uid: this.userid,
  18338. };
  18339. this.ajax
  18340. .get(this.$store.state.api + "selectWork", params)
  18341. .then((res) => {
  18342. if (res.data[0].length > 0) {
  18343. this.studyJuri = JSON.parse(res.data[0][0].content);
  18344. this.isNoHomeWork = true;
  18345. }
  18346. })
  18347. .catch((err) => {
  18348. console.error(err);
  18349. });
  18350. },
  18351. isAssetTypeAnImage(ext) {
  18352. return (
  18353. [
  18354. "png",
  18355. "jpg",
  18356. "jpeg",
  18357. "bmp",
  18358. "gif",
  18359. "webp",
  18360. "psd",
  18361. "svg",
  18362. "tiff",
  18363. ].indexOf(ext) !== -1
  18364. );
  18365. },
  18366. switchVideo(media) {
  18367. this.playerO = {};
  18368. this.playerOptions.poster = "";
  18369. this.playerOptions.sources[0].src = media;
  18370. this.playerO = this.playerOptions;
  18371. },
  18372. onPlayerPlay() {},
  18373. onPlayerTimeupdate(player) {
  18374. let gklog = player.cache_.currentTime; //当前播放的秒数
  18375. let a = player.cache_.duration; //视频的总时长
  18376. let gklog2 = parseInt(gklog);
  18377. // if(gklog2 == '3'){
  18378. // player.pause()
  18379. // setTimeout(()=>{
  18380. // player.currentTime(gklog2+1)
  18381. // player.play()
  18382. // },1000)
  18383. // }
  18384. console.log(" onPlayerTimeupdate!", gklog);
  18385. console.log(" onPlayerTimeupdate!", gklog2);
  18386. },
  18387. lookVedio(u, i) {
  18388. this.isClickNav = "";
  18389. // this.playerOptions.sources[0].src = u;
  18390. var d = JSON.parse(JSON.stringify(this.playerOptions));
  18391. d.sources[0].src = u;
  18392. this.playerO[0] = d;
  18393. this.showType = 0;
  18394. // this.isClickNav = "video" + i;
  18395. this.isClickNav = i;
  18396. this.$forceUpdate();
  18397. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  18398. },
  18399. lookText(i, t) {
  18400. this.isClickNav = "";
  18401. // this.text = this.textList[i][t];
  18402. this.text = this.vChapterData[i][t];
  18403. // this.dialogVisible1 = true;
  18404. this.showType = 1;
  18405. // this.isClickNav = "text" + t;
  18406. this.isClickNav = t;
  18407. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  18408. },
  18409. lookTools(i, t) {
  18410. this.chapTools = this.chapToolList[i][t];
  18411. this.dialogVisible2 = true;
  18412. },
  18413. async openFile(f) {
  18414. this.pptImgUrl = "";
  18415. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18416. if (
  18417. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  18418. -1
  18419. ) {
  18420. let _uuurl = await this.checkLink(f);
  18421. console.log(_uuurl)
  18422. this.pptImgUrl =
  18423. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18424. this.showPDF = false;
  18425. this.dialogVisible3 = true;
  18426. } else if (
  18427. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18428. ) {
  18429. this.pptImgUrl = f;
  18430. this.showPDF = true;
  18431. this.dialogVisible3 = true;
  18432. }
  18433. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  18434. },
  18435. openTable(f) {
  18436. this.tableJson = JSON.parse(f.works);
  18437. this.dialogVisibleTable2 = true;
  18438. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18439. },
  18440. openWord(f) {
  18441. this.tableJson = JSON.parse(f.works);
  18442. this.dialogVisibleTable3 = true;
  18443. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18444. },
  18445. doUrl(url, i) {
  18446. this.isClickNav = "";
  18447. this.pptImgUrl1 = "";
  18448. this.showType = 2;
  18449. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  18450. url = "https://" + url;
  18451. }
  18452. this.pptImgUrl1 = "";
  18453. this.diffKey = new Date().getTime();
  18454. setTimeout(() => {
  18455. this.pptImgUrl1 = url;
  18456. }, 500);
  18457. // this.isClickNav = "line" + i;
  18458. this.isClickNav = i;
  18459. this.$forceUpdate();
  18460. },
  18461. checkPhoto(f, i) {
  18462. this.showType = 4;
  18463. this.pptImgUrl1 = f.url;
  18464. this.isClickNav = i;
  18465. this.$forceUpdate();
  18466. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18467. },
  18468. checkHtml(f, i){
  18469. this.showType = 16;
  18470. this.pptImgUrl1 = f.url;
  18471. this.isClickNav = i;
  18472. this.$forceUpdate();
  18473. },
  18474. async downFile(f, i) {
  18475. this.isClickNav = "";
  18476. this.pptImgUrl1 = "";
  18477. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  18478. if (
  18479. a.indexOf(
  18480. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  18481. ) != -1
  18482. ) {
  18483. let _uuurl = await this.checkLink(f.url);
  18484. console.log(_uuurl)
  18485. this.pptImgUrl1 =
  18486. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18487. // this.dialogVisible3 = true;
  18488. this.showType = 2;
  18489. } else if (
  18490. this.isAssetTypeAnImage(
  18491. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  18492. )
  18493. ) {
  18494. this.showType = 4;
  18495. this.pptImgUrl1 = f.url;
  18496. } else if (
  18497. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18498. "PDF"
  18499. ) {
  18500. this.pptImgUrl1 = f.url;
  18501. // this.dialogVisible3 = true;
  18502. this.showType = 3;
  18503. } else {
  18504. window.open(this.file[i].url);
  18505. }
  18506. // this.isClickNav = "word" + i;
  18507. this.isClickNav = i;
  18508. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18509. },
  18510. downFileList(i) {
  18511. window.open(this.noImgList[i].url);
  18512. },
  18513. openAddWork() {
  18514. this.dialogVisible = true;
  18515. },
  18516. addBzWorks() {
  18517. let params = [
  18518. {
  18519. uid: this.userid,
  18520. cid: this.id,
  18521. stage: this.courseType,
  18522. task: this.taskCount,
  18523. tool: this.toolindex,
  18524. content: JSON.stringify(this.eScore),
  18525. type: 6,
  18526. },
  18527. ];
  18528. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18529. this.homeWorkLoading = true
  18530. this.ajax
  18531. .post(this.$store.state.api + "addCourseWorks", params)
  18532. .then((res) => {
  18533. this.$message({
  18534. message: "提交成功",
  18535. type: "success",
  18536. });
  18537. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
  18538. setTimeout(() => {
  18539. this.homeWorkLoading = false
  18540. }, 500);
  18541. this.eScore = { eBzText: "", eStar: [] };
  18542. this.studentEvalDialogVisible = false;
  18543. this.selectSWorks();
  18544. })
  18545. .catch((err) => {
  18546. this.$message.error("提交失败");
  18547. console.error(err);
  18548. setTimeout(() => {
  18549. this.homeWorkLoading = false
  18550. }, 500);
  18551. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
  18552. });
  18553. },
  18554. addBzWorksTeacher() {
  18555. let params = [
  18556. {
  18557. uid: this.sStudent.userid,
  18558. cid: this.id,
  18559. stage: this.courseType,
  18560. task: this.taskCount,
  18561. tool: this.toolindex,
  18562. content: JSON.stringify(this.eScore),
  18563. type: 6,
  18564. },
  18565. ];
  18566. this.ajax
  18567. .post(this.$store.state.api + "addCourseWorks", params)
  18568. .then((res) => {
  18569. this.$message({
  18570. message: "提交成功",
  18571. type: "success",
  18572. });
  18573. this.eScore = { eBzText: "", eStar: [] };
  18574. this.studentEvalDialogVisibleTeacher = false;
  18575. this.selectSWorks();
  18576. })
  18577. .catch((err) => {
  18578. this.$message.error("提交失败");
  18579. console.error(err);
  18580. });
  18581. },
  18582. addStudentAsk() {
  18583. if (!this.radio.length) {
  18584. this.$message.error("请选择选项");
  18585. return;
  18586. }
  18587. for (var i = 0; i < this.askJson.askCount; i++) {
  18588. if (
  18589. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18590. (this.radio[i] !== 0 && !this.radio[i])
  18591. ) {
  18592. this.$message.error("请选择选项");
  18593. return;
  18594. }
  18595. }
  18596. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18597. let params = [
  18598. {
  18599. uid: this.userid,
  18600. cid: this.id,
  18601. stage: this.courseType,
  18602. task: this.taskCount,
  18603. tool: this.toolindex,
  18604. content: JSON.stringify(this.askList),
  18605. type: 2,
  18606. },
  18607. ];
  18608. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18609. this.homeWorkLoading = true
  18610. this.ajax
  18611. .post(this.$store.state.api + "addCourseWorks", params)
  18612. .then((res) => {
  18613. this.$message({
  18614. message: "提交成功",
  18615. type: "success",
  18616. });
  18617. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18618. setTimeout(() => {
  18619. this.homeWorkLoading = false
  18620. }, 500);
  18621. this.askList = [];
  18622. this.dialogVisible5 = false;
  18623. this.selectStudent();
  18624. this.selectSWorks();
  18625. this.selectSLook();
  18626. })
  18627. .catch((err) => {
  18628. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18629. setTimeout(() => {
  18630. this.homeWorkLoading = false
  18631. }, 500);
  18632. this.$message.error("提交失败");
  18633. console.error(err);
  18634. });
  18635. },
  18636. addStudentAskTeacher() {
  18637. if (!this.radio.length) {
  18638. this.$message.error("请选择选项");
  18639. return;
  18640. }
  18641. for (var i = 0; i < this.askJson.askCount; i++) {
  18642. if (
  18643. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18644. (this.radio[i] !== 0 && !this.radio[i])
  18645. ) {
  18646. this.$message.error("请选择选项");
  18647. return;
  18648. }
  18649. }
  18650. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18651. let params = [
  18652. {
  18653. uid: this.sStudent.userid,
  18654. cid: this.id,
  18655. stage: this.courseType,
  18656. task: this.taskCount,
  18657. tool: this.toolindex,
  18658. content: JSON.stringify(this.askList),
  18659. type: 2,
  18660. },
  18661. ];
  18662. this.ajax
  18663. .post(this.$store.state.api + "addCourseWorks", params)
  18664. .then((res) => {
  18665. this.$message({
  18666. message: "提交成功",
  18667. type: "success",
  18668. });
  18669. this.askList = [];
  18670. this.dialogVisible5Teacher = false;
  18671. this.selectStudent();
  18672. this.selectSWorks();
  18673. this.selectSLook();
  18674. })
  18675. .catch((err) => {
  18676. this.$message.error("提交失败");
  18677. console.error(err);
  18678. });
  18679. },
  18680. addStudentTest() {
  18681. if (!this.radio.length) {
  18682. this.$message.error("请选择选项");
  18683. return;
  18684. }
  18685. for (var i = 0; i < this.testJson.testCount; i++) {
  18686. if (
  18687. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18688. (this.radio[i] !== 0 && !this.radio[i])
  18689. ) {
  18690. this.$message.error("请选择选项");
  18691. return;
  18692. }
  18693. }
  18694. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18695. let params = [
  18696. {
  18697. uid: this.userid,
  18698. cid: this.id,
  18699. stage: this.courseType,
  18700. task: this.taskCount,
  18701. tool: this.toolindex,
  18702. content: JSON.stringify(this.askList),
  18703. type: 8,
  18704. },
  18705. ];
  18706. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18707. this.homeWorkLoading = true
  18708. this.ajax
  18709. .post(this.$store.state.api + "addCourseWorks", params)
  18710. .then((res) => {
  18711. this.$message({
  18712. message: "提交成功",
  18713. type: "success",
  18714. });
  18715. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18716. setTimeout(() => {
  18717. this.homeWorkLoading = false
  18718. }, 500);
  18719. this.askList = [];
  18720. this.dialogVisibleChoice = false;
  18721. this.selectStudent();
  18722. this.selectSWorks();
  18723. this.selectSLook();
  18724. })
  18725. .catch((err) => {
  18726. this.$message.error("提交失败");
  18727. console.error(err);
  18728. setTimeout(() => {
  18729. this.homeWorkLoading = false
  18730. }, 500);
  18731. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18732. });
  18733. },
  18734. addStudentTestTeacher() {
  18735. if (!this.radio.length) {
  18736. this.$message.error("请选择选项");
  18737. return;
  18738. }
  18739. for (var i = 0; i < this.testJson.testCount; i++) {
  18740. if (
  18741. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18742. (this.radio[i] !== 0 && !this.radio[i])
  18743. ) {
  18744. this.$message.error("请选择选项");
  18745. return;
  18746. }
  18747. }
  18748. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18749. let params = [
  18750. {
  18751. uid: this.sStudent.userid,
  18752. cid: this.id,
  18753. stage: this.courseType,
  18754. task: this.taskCount,
  18755. tool: this.toolindex,
  18756. content: JSON.stringify(this.askList),
  18757. type: 8,
  18758. },
  18759. ];
  18760. this.ajax
  18761. .post(this.$store.state.api + "addCourseWorks", params)
  18762. .then((res) => {
  18763. this.$message({
  18764. message: "提交成功",
  18765. type: "success",
  18766. });
  18767. this.askList = [];
  18768. this.dialogVisibleChoiceTeacher = false;
  18769. this.selectStudent();
  18770. this.selectSWorks();
  18771. this.selectSLook();
  18772. })
  18773. .catch((err) => {
  18774. this.$message.error("提交失败");
  18775. console.error(err);
  18776. });
  18777. },
  18778. addWork() {
  18779. if (this.studyJuri[0].content == "") {
  18780. this.$message.error("请将信息填写完整");
  18781. return;
  18782. } else if (this.studyJuri[0].cover.length == 0) {
  18783. this.$message.error("请将信息填写完整");
  18784. return;
  18785. } else if (this.studyJuri[0].upVedio.length == 0) {
  18786. this.$message.error("请将信息填写完整");
  18787. return;
  18788. }
  18789. if (this.isNoHomeWork) {
  18790. this.$confirm(
  18791. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  18792. "提示",
  18793. {
  18794. confirmButtonText: "确定",
  18795. cancelButtonText: "取消",
  18796. type: "warning",
  18797. }
  18798. )
  18799. .then(() => {
  18800. let params = [
  18801. {
  18802. uid: this.userid,
  18803. cid: this.id,
  18804. stage: this.courseType,
  18805. task: this.taskCount,
  18806. content: JSON.stringify(this.studyJuri),
  18807. },
  18808. ];
  18809. this.ajax
  18810. .post(this.$store.state.api + "addWorks", params)
  18811. .then((res) => {
  18812. this.$message({
  18813. message: "提交成功",
  18814. type: "success",
  18815. });
  18816. this.isNoHomeWork = true;
  18817. this.dialogVisible = false;
  18818. })
  18819. .catch((err) => {
  18820. this.$message.error("提交失败");
  18821. console.error(err);
  18822. });
  18823. })
  18824. .catch(() => {});
  18825. } else {
  18826. let params = [
  18827. {
  18828. uid: this.userid,
  18829. cid: this.id,
  18830. stage: this.courseType,
  18831. task: this.taskCount,
  18832. content: JSON.stringify(this.studyJuri),
  18833. },
  18834. ];
  18835. this.ajax
  18836. .post(this.$store.state.api + "addWorks", params)
  18837. .then((res) => {
  18838. this.$message({
  18839. message: "提交成功",
  18840. type: "success",
  18841. });
  18842. this.isNoHomeWork = true;
  18843. this.dialogVisible = false;
  18844. })
  18845. .catch((err) => {
  18846. this.$message.error("提交失败");
  18847. console.error(err);
  18848. });
  18849. }
  18850. },
  18851. selectCount() {
  18852. let params = {
  18853. cid: this.id,
  18854. chid: this.courseType,
  18855. uid: this.userid,
  18856. };
  18857. this.ajax
  18858. .get(this.$store.state.api + "selectToolsCount", params)
  18859. .then((res) => {
  18860. for (var i = 0; i < res.data[0].length; i++) {
  18861. if (res.data[0][i].tools == 1) {
  18862. this.wbCount = res.data[0][i].count;
  18863. } else if (res.data[0][i].tools == 2) {
  18864. this.wordCount = res.data[0][i].count;
  18865. } else if (res.data[0][i].tools == 3) {
  18866. this.mindCount = res.data[0][i].count;
  18867. } else if (res.data[0][i].tools == 4) {
  18868. this.askCount = res.data[0][i].count;
  18869. } else if (res.data[0][i].tools == 6) {
  18870. this.noteCount = res.data[0][i].count;
  18871. } else if (res.data[0][i].tools == 7) {
  18872. this.mindNetWorkCount = res.data[0][i].count;
  18873. } else if (res.data[0][i].tools == 8) {
  18874. this.libraryCount = res.data[0][i].count;
  18875. } else if (res.data[0][i].tools == 16) {
  18876. this.workCount = res.data[0][i].count;
  18877. } else if (res.data[0][i].tools == 10) {
  18878. this.timeCount = res.data[0][i].count;
  18879. } else if (res.data[0][i].tools == 15) {
  18880. this.answerCount = res.data[0][i].count;
  18881. } else if (res.data[0][i].tools == 18) {
  18882. this.trainCount = res.data[0][i].count;
  18883. }
  18884. }
  18885. })
  18886. .catch((err) => {
  18887. console.error(err);
  18888. });
  18889. },
  18890. openTools(t, i, index, c, sName,id) {
  18891. var z = JSON.parse(c);
  18892. this.noteName = sName;
  18893. if (t == 4) {
  18894. this.radio = [];
  18895. this.isAnswer = false;
  18896. let b = z[0].anwer;
  18897. this.radio = b;
  18898. this.askJson = z[0].askJson;
  18899. this.isAnswer = true;
  18900. this.dialogVisible5 = true;
  18901. } else if (t == 45) {
  18902. this.radio = [];
  18903. this.isAnswer = false;
  18904. let b = z[0].anwer;
  18905. this.radio = b;
  18906. this.testJson = z[0].testJson;
  18907. this.isAnswer = true;
  18908. this.dialogVisibleChoice = true;
  18909. }else if(t == 69){
  18910. this.oldEnglishJson1 = {}
  18911. this.oldEnglishJson = {}
  18912. this.englishList1 = {}
  18913. this.newEngIndex = -1;
  18914. this.isNoUserid = false;
  18915. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18916. .toolChoose[i].englishList;
  18917. this.oldEnglishJson = z;
  18918. this.engWid = id;
  18919. this.newEnglishList = { engTitle:"",engText:"" }
  18920. this.newEnglishList1 = []
  18921. this.selectEngC(id,z);
  18922. }else if(t == 62){
  18923. this.videoType = 1;
  18924. this.videoJson = {};
  18925. this.videoJson = JSON.parse(c);
  18926. // this.videoJson =
  18927. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18928. // index
  18929. // ].toolChoose[i].videoJson;
  18930. this.dialogVisibleVideo = true;
  18931. }
  18932. // else if (t == 15) {
  18933. // this.answerQ = "";
  18934. // this.questionAnswer = "";
  18935. // this.answerQ = z[0].answerTitle;
  18936. // this.questionAnswer = z[0].answer;
  18937. // this.answerDialogVisible = true;
  18938. // }
  18939. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  18940. },
  18941. fastText(p, t) {
  18942. if (t == 1) {
  18943. this.commentText += p;
  18944. } else {
  18945. this.eScore.eBzText += p;
  18946. }
  18947. },
  18948. addTools(t, i, index) {
  18949. var a = 0;
  18950. // this.taskCount = index;
  18951. this.toolindex = i;
  18952. if (t == 1) {
  18953. if (this.wbCount > 0) {
  18954. this.updateCount(this.wbCount, t);
  18955. } else {
  18956. this.wbCount++;
  18957. a = this.wbCount;
  18958. this.toolsCount(a, t);
  18959. }
  18960. window.topU.postMessage(
  18961. {
  18962. tools: "1",
  18963. cid: this.id,
  18964. stage: this.courseType,
  18965. task: this.taskCount,
  18966. tool: i,
  18967. },
  18968. "*"
  18969. );
  18970. } else if (t == 2) {
  18971. if (this.wordCount > 0) {
  18972. this.updateCount(this.wordCount, t);
  18973. } else {
  18974. this.wordCount++;
  18975. a = this.wordCount;
  18976. this.toolsCount(a, t);
  18977. }
  18978. window.topU.postMessage({ tools: "2" }, "*");
  18979. } else if (t == 3) {
  18980. if (this.mindCount > 0) {
  18981. this.updateCount(this.mindCount, t);
  18982. } else {
  18983. this.mindCount++;
  18984. a = this.mindCount;
  18985. this.toolsCount(a, t);
  18986. }
  18987. window.topU.postMessage(
  18988. {
  18989. tools: "3",
  18990. cid: this.id,
  18991. stage: this.courseType,
  18992. task: this.taskCount,
  18993. tool: i,
  18994. },
  18995. "*"
  18996. );
  18997. } else if (t == 4) {
  18998. this.radio = [];
  18999. this.noteName = "";
  19000. this.isAnswer = false;
  19001. if (this.askCount > 0) {
  19002. this.updateCount(this.askCount, t);
  19003. } else {
  19004. this.askCount++;
  19005. a = this.askCount;
  19006. this.toolsCount(a, t);
  19007. }
  19008. if (!this.dialogVisible2) {
  19009. this.askJson.askJson =
  19010. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19011. index
  19012. ].toolChoose[i].askJson;
  19013. this.askJson.askTitle =
  19014. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19015. index
  19016. ].toolChoose[i].askTitle;
  19017. this.askJson.askCount =
  19018. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19019. index
  19020. ].toolChoose[i].askCount;
  19021. } else {
  19022. this.askJson.askJson = this.chapTools.askJson.askJson;
  19023. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  19024. this.askJson.askCount = this.chapTools.askJson.askCount;
  19025. }
  19026. for (var k = 0; k < this.askJson.askJson.length; k++) {
  19027. if (this.askJson.askJson[k].type == "2") {
  19028. this.radio.push([]);
  19029. } else {
  19030. this.radio.push("");
  19031. }
  19032. }
  19033. this.dialogVisible5 = true;
  19034. // window.topU.postMessage({ tools: "4" }, "*");
  19035. } else if (t == 45) {
  19036. this.noteName = "";
  19037. this.radio = [];
  19038. this.isAnswer = false;
  19039. if (this.askCount > 0) {
  19040. this.updateCount(this.askCount, t);
  19041. } else {
  19042. this.askCount++;
  19043. a = this.askCount;
  19044. this.toolsCount(a, t);
  19045. }
  19046. this.testJson =
  19047. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19048. index
  19049. ].toolChoose[i].testJson;
  19050. for (var k = 0; k < this.testJson.testJson.length; k++) {
  19051. if (this.testJson.testJson[k].type == "2") {
  19052. this.radio.push([]);
  19053. } else {
  19054. this.radio.push("");
  19055. }
  19056. }
  19057. this.dialogVisibleChoice = true;
  19058. // window.topU.postMessage({ tools: "4" }, "*");
  19059. } else if (t == 5) {
  19060. if (this.scoreCount > 0) {
  19061. this.updateCount(this.scoreCount, t);
  19062. } else {
  19063. this.scoreCount++;
  19064. a = this.scoreCount;
  19065. this.toolsCount(a, t);
  19066. }
  19067. this.dialogVisible4 = true;
  19068. // window.topU.postMessage({ tools: "5" }, "*");
  19069. } else if (t == 6) {
  19070. if (this.noteCount > 0) {
  19071. this.updateCount(this.noteCount, t);
  19072. } else {
  19073. this.noteCount++;
  19074. a = this.noteCount;
  19075. this.toolsCount(a, t);
  19076. }
  19077. window.topU.postMessage(
  19078. {
  19079. tools: "6",
  19080. cid: this.id,
  19081. stage: this.courseType,
  19082. task: this.taskCount,
  19083. tool: i,
  19084. },
  19085. "*"
  19086. );
  19087. } else if (t == 7) {
  19088. if (this.mindNetWorkCount > 0) {
  19089. this.updateCount(this.mindNetWorkCount, t);
  19090. } else {
  19091. this.mindNetWorkCount++;
  19092. a = this.mindNetWorkCount;
  19093. this.toolsCount(a, t);
  19094. }
  19095. window.topU.postMessage(
  19096. {
  19097. tools: "7",
  19098. cid: this.id,
  19099. stage: this.courseType,
  19100. task: this.taskCount,
  19101. tool: i,
  19102. },
  19103. "*"
  19104. );
  19105. } else if (t == 16) {
  19106. if (this.workCount > 0) {
  19107. this.updateCount(this.workCount, t);
  19108. } else {
  19109. this.workCount++;
  19110. a = this.workCount;
  19111. this.toolsCount(a, t);
  19112. }
  19113. this.dialogVisible = true;
  19114. } else if (t == 50) {
  19115. if (this.tType == 2) {
  19116. this.$message.error("不支持学生使用");
  19117. return;
  19118. }
  19119. this.plworkFile = [];
  19120. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19121. if (!this.uploadCid) {
  19122. this.$message.error(
  19123. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19124. );
  19125. return;
  19126. }
  19127. // this.uploadCid =
  19128. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19129. // index
  19130. // ].toolChoose[i].uploadJson[0];
  19131. this.selectUploadStudent(2);
  19132. } else if (t == 8) {
  19133. if (this.libraryCount > 0) {
  19134. this.updateCount(this.libraryCount, t);
  19135. } else {
  19136. this.libraryCount++;
  19137. a = this.libraryCount;
  19138. this.toolsCount(a, t);
  19139. }
  19140. window.topU.postMessage({ tools: "8" }, "*");
  19141. } else if (t == 17) {
  19142. if (this.libraryCount > 0) {
  19143. this.updateCount(this.libraryCount, t);
  19144. } else {
  19145. this.libraryCount++;
  19146. a = this.libraryCount;
  19147. this.toolsCount(a, t);
  19148. }
  19149. window.topU.postMessage({ tools: "17" }, "*");
  19150. } else if (t == 18) {
  19151. if (this.trainCount > 0) {
  19152. this.updateCount(this.trainCount, t);
  19153. } else {
  19154. this.trainCount++;
  19155. a = this.trainCount;
  19156. this.toolsCount(a, t);
  19157. }
  19158. window.topU.postMessage({ tools: "18" }, "*");
  19159. } else if (t == 10) {
  19160. if (this.timeCount > 0) {
  19161. this.updateCount(this.timeCount, t);
  19162. } else {
  19163. this.timeCount++;
  19164. a = this.timeCount;
  19165. this.toolsCount(a, t);
  19166. }
  19167. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  19168. .taskJson[index].toolChoose[i].preTime
  19169. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19170. .toolChoose[i].preTime
  19171. : "";
  19172. this.timeDialogVisible = true;
  19173. } else if (t == 15) {
  19174. this.answerQ = "";
  19175. this.questionAnswer = "";
  19176. if (this.answerCount > 0) {
  19177. this.updateCount(this.answerCount, t);
  19178. } else {
  19179. this.answerCount++;
  19180. a = this.answerCount;
  19181. this.toolsCount(a, t);
  19182. }
  19183. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19184. .taskJson[index].toolChoose[i].answerQ
  19185. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19186. .toolChoose[i].answerQ
  19187. : "";
  19188. this.answerDialogVisible = true;
  19189. } else if (t == 21) {
  19190. window.topU.postMessage({ tools: "21" }, "*");
  19191. } else if (t == 22) {
  19192. window.topU.postMessage({ tools: "22" }, "*");
  19193. } else if (t == 23) {
  19194. window.topU.postMessage({ tools: "23" }, "*");
  19195. } else if (t == 24) {
  19196. window.topU.postMessage({ tools: "24" }, "*");
  19197. } else if (t == 25) {
  19198. window.topU.postMessage({ tools: "25" }, "*");
  19199. } else if (t == 31) {
  19200. window.topU.postMessage({ tools: "31" }, "*");
  19201. } else if (t == 28) {
  19202. window.topU.postMessage({ tools: "28" }, "*");
  19203. } else if (t == 37) {
  19204. window.topU.postMessage({ tools: "37" }, "*");
  19205. } else if (t == 38) {
  19206. window.topU.postMessage({ tools: "38" }, "*");
  19207. } else if (t == 39) {
  19208. window.topU.postMessage({ tools: "39" }, "*");
  19209. } else if (t == 32) {
  19210. window.topU.postMessage({ tools: "32" }, "*");
  19211. } else if (t == 66) {
  19212. window.topU.postMessage({ tools: "66" }, "*");
  19213. } else if (t == 67) {
  19214. window.topU.postMessage({ tools: "67" }, "*");
  19215. } else if (t == 68) {
  19216. window.topU.postMessage({ tools: "68" }, "*");
  19217. } else if (t == 57) {
  19218. // window.topU.postMessage({ tools: "57" }, "*");
  19219. window.topU.postMessage(
  19220. {
  19221. tools: "57u",
  19222. cid: this.id,
  19223. stage: this.courseType,
  19224. task: this.taskCount,
  19225. tool: i,
  19226. },
  19227. "*"
  19228. );
  19229. } else if (t == 58) {
  19230. window.topU.postMessage({ tools: "58" }, "*");
  19231. } else if (t == 59) {
  19232. window.topU.postMessage({ tools: "59" }, "*");
  19233. } else if (t == 60) {
  19234. window.topU.postMessage({ tools: "60" }, "*");
  19235. } else if (t == 61) {
  19236. window.topU.postMessage({ tools: "61" }, "*");
  19237. } else if (t == 63) {
  19238. window.topU.postMessage({ tools: "63" }, "*");
  19239. } else if (t == 71) {
  19240. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  19241. // this.$message.error("该工具不可使用");
  19242. // return
  19243. // }
  19244. window.topU.postMessage({ tools: "71" }, "*");
  19245. } else if (t == 72) {
  19246. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  19247. .taskJson[index].toolChoose[i].appJson
  19248. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19249. .toolChoose[i].appJson
  19250. : "";
  19251. if(!item || !item.url){
  19252. this.$message.error("应用连接为空, 请到课程管理中添加");
  19253. return;
  19254. }
  19255. if (!document.fullscreenElement) {
  19256. this.enterFullScreen();
  19257. }
  19258. this.$refs.appStoreC.getData(item.url,this.userid)
  19259. // window.topU.postMessage({ tools: "72", data: item }, "*");
  19260. // window.open(item.url, "_blank");
  19261. } else if (t == 69) {
  19262. if (this.worksStudent[i].length) {
  19263. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19264. if (this.userid == this.worksStudent[i][k].userid) {
  19265. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  19266. break;
  19267. } else {
  19268. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  19269. }
  19270. }
  19271. } else {
  19272. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  19273. }
  19274. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  19275. .taskJson[index].toolChoose[i].englishList
  19276. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19277. .toolChoose[i].englishList
  19278. : {};
  19279. this.englishToolIndex = i;
  19280. this.myAnList = this.myAnswerList1;
  19281. this.engDialogVisible = true;
  19282. } else if (t == 70) {
  19283. if (this.worksStudent[i].length) {
  19284. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19285. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  19286. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  19287. break;
  19288. } else {
  19289. this.englishVoiceJsonWork = [];
  19290. }
  19291. }
  19292. } else {
  19293. this.englishVoiceJsonWork = [];
  19294. }
  19295. let englishVoiceJson = {}
  19296. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19297. .taskJson[index].toolChoose[i].englishVoiceJson
  19298. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19299. .toolChoose[i].englishVoiceJson
  19300. : {};
  19301. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  19302. this.EnglishVoiceDialog = true;
  19303. } else if (t == 65) {
  19304. if (this.tType == 2) {
  19305. this.$message.error("不支持学生使用");
  19306. return;
  19307. }
  19308. this.uploadCid = this.tcid;
  19309. if (!this.uploadCid) {
  19310. this.$message.error(
  19311. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  19312. );
  19313. return;
  19314. }
  19315. this.selectPickStudent();
  19316. } else if (t == 26) {
  19317. window.topU.postMessage(
  19318. {
  19319. tools: "26",
  19320. cid: this.id,
  19321. stage: this.courseType,
  19322. task: this.taskCount,
  19323. tool: i,
  19324. },
  19325. "*"
  19326. );
  19327. } else if (t == 40) {
  19328. if (this.evalCount > 0) {
  19329. this.updateCount(this.evalCount, t);
  19330. } else {
  19331. this.evalCount++;
  19332. a = this.evalCount;
  19333. this.toolsCount(a, t);
  19334. }
  19335. this.eScore = { eBzText: "", eStar: [] };
  19336. if (this.worksStudent[i].length) {
  19337. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19338. if (this.userid == this.worksStudent[i][k].userid) {
  19339. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19340. this.rateJson =
  19341. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19342. index
  19343. ].toolChoose[i].rateJson;
  19344. break;
  19345. } else {
  19346. this.rateJson =
  19347. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19348. index
  19349. ].toolChoose[i].rateJson;
  19350. }
  19351. }
  19352. } else {
  19353. this.rateJson =
  19354. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19355. index
  19356. ].toolChoose[i].rateJson;
  19357. }
  19358. this.isStar = false;
  19359. this.studentEvalDialogVisible = true;
  19360. } else if (t == 41) {
  19361. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19362. .taskJson[index].toolChoose[i].selectJson
  19363. ? JSON.parse(
  19364. JSON.stringify(
  19365. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19366. index
  19367. ].toolChoose[i].selectJson
  19368. )
  19369. )
  19370. : { url: "", select: [], answer: [] };
  19371. if (this.worksStudent[i].length) {
  19372. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19373. if (this.userid == this.worksStudent[i][k].userid) {
  19374. var a = this.worksStudent[i][k].works.split(",");
  19375. for (var ki = 0; ki < a.length; ki++) {
  19376. a[ki] = parseInt(a[ki]);
  19377. }
  19378. this.selectAnswer = {
  19379. answer: a,
  19380. stu: this.worksStudent[i][k].sName,
  19381. };
  19382. break;
  19383. } else {
  19384. this.selectAnswer = { answer: [], stu: "" };
  19385. }
  19386. }
  19387. } else {
  19388. this.selectAnswer = { answer: [], stu: "" };
  19389. }
  19390. this.isSelect = false;
  19391. this.dialogVisibleSelect = true;
  19392. } else if (t == 44) {
  19393. window.topU.postMessage({ tools: "44" }, "*");
  19394. } else if (t == 47) {
  19395. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19396. .taskJson[index].toolChoose[i].sentenceList
  19397. ? JSON.parse(
  19398. JSON.stringify(
  19399. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19400. index
  19401. ].toolChoose[i].sentenceList
  19402. )
  19403. )
  19404. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19405. for (var q = 0; q < this.sentenceList.length; q++) {
  19406. this.sentenceList[q].chooseSenList = [];
  19407. this.sentenceList[q].addChangeSen = [];
  19408. this.sentenceList[q].addChangeSen = JSON.parse(
  19409. JSON.stringify(this.sentenceList[q].addSentence)
  19410. );
  19411. this.sentenceList[q].chooseSenList.length =
  19412. this.sentenceList[q].rightAnswer.length;
  19413. }
  19414. this.dialogVisibleSentence = true;
  19415. } else if (t == 48) {
  19416. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19417. .taskJson[index].toolChoose[i].tableJson
  19418. ? JSON.parse(
  19419. JSON.stringify(
  19420. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19421. index
  19422. ].toolChoose[i].tableJson
  19423. )
  19424. )
  19425. : { text: "" };
  19426. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  19427. if (this.worksStudent[i].length) {
  19428. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19429. if (this.userid == this.worksStudent[i][k].userid) {
  19430. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19431. break;
  19432. }
  19433. }
  19434. }
  19435. this.dialogVisibleTable = true;
  19436. } else if (t == 52) {
  19437. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19438. .taskJson[index].toolChoose[i].wordJson
  19439. ? JSON.parse(
  19440. JSON.stringify(
  19441. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19442. index
  19443. ].toolChoose[i].wordJson
  19444. )
  19445. )
  19446. : { text: "" };
  19447. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  19448. if (this.worksStudent[i].length) {
  19449. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19450. if (this.userid == this.worksStudent[i][k].userid) {
  19451. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19452. break;
  19453. }
  19454. }
  19455. }
  19456. this.dialogVisibleWord = true;
  19457. } else if (t == 49) {
  19458. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  19459. return
  19460. }
  19461. this.groupJson =
  19462. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19463. index
  19464. ].toolChoose[i].groupJson;
  19465. this.islock = this.groupJson.islock == 1 ? true : false;
  19466. this.dialogVisibleGroup = true;
  19467. } else if (t == 62) {
  19468. this.videoType = 0;
  19469. this.videoJson = {};
  19470. this.videoJson =
  19471. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19472. index
  19473. ].toolChoose[i].videoJson;
  19474. this.dialogVisibleVideo = true;
  19475. }
  19476. this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
  19477. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  19478. },
  19479. teacherWorkSubmit(t, i, index, s) {
  19480. this.sStudent = s;
  19481. this.toolindex = i;
  19482. this.sTool = t;
  19483. if (this.tType !== "1" && this.tType !== "4") {
  19484. return;
  19485. }
  19486. if (t == 16 || t == 32 || t == 50) {
  19487. this.dialogVisibleWorks = true;
  19488. } else if (t == 15) {
  19489. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19490. .taskJson[index].toolChoose[i].answerQ
  19491. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19492. .toolChoose[i].answerQ
  19493. : "";
  19494. this.questionAnswer = "";
  19495. this.answerDialogVisibleTeacher = true; //问答
  19496. } else if (t == 52) {
  19497. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19498. .taskJson[index].toolChoose[i].wordJson
  19499. ? JSON.parse(
  19500. JSON.stringify(
  19501. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19502. index
  19503. ].toolChoose[i].wordJson
  19504. )
  19505. )
  19506. : { text: "" };
  19507. if (this.worksStudent[i].length) {
  19508. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19509. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19510. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19511. break;
  19512. }
  19513. }
  19514. }
  19515. this.dialogVisibleWordTeacher = true; //文档
  19516. } else if (t == 4) {
  19517. this.radio = [];
  19518. this.noteName = "";
  19519. this.isAnswer = false;
  19520. if (this.askCount > 0) {
  19521. this.updateCount(this.askCount, t);
  19522. } else {
  19523. this.askCount++;
  19524. a = this.askCount;
  19525. this.toolsCount(a, t);
  19526. }
  19527. if (!this.dialogVisible2) {
  19528. this.askJson.askJson =
  19529. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19530. index
  19531. ].toolChoose[i].askJson;
  19532. this.askJson.askTitle =
  19533. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19534. index
  19535. ].toolChoose[i].askTitle;
  19536. this.askJson.askCount =
  19537. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19538. index
  19539. ].toolChoose[i].askCount;
  19540. } else {
  19541. this.askJson.askJson = this.chapTools.askJson.askJson;
  19542. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  19543. this.askJson.askCount = this.chapTools.askJson.askCount;
  19544. }
  19545. for (var k = 0; k < this.askJson.askJson.length; k++) {
  19546. if (this.askJson.askJson[k].type == "2") {
  19547. this.radio.push([]);
  19548. } else {
  19549. this.radio.push("");
  19550. }
  19551. }
  19552. this.dialogVisible5Teacher = true;
  19553. } else if (t == 45) {
  19554. this.noteName = "";
  19555. this.radio = [];
  19556. this.isAnswer = false;
  19557. if (this.askCount > 0) {
  19558. this.updateCount(this.askCount, t);
  19559. } else {
  19560. this.askCount++;
  19561. a = this.askCount;
  19562. this.toolsCount(a, t);
  19563. }
  19564. this.testJson =
  19565. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19566. index
  19567. ].toolChoose[i].testJson;
  19568. for (var k = 0; k < this.testJson.testJson.length; k++) {
  19569. if (this.testJson.testJson[k].type == "2") {
  19570. this.radio.push([]);
  19571. } else {
  19572. this.radio.push("");
  19573. }
  19574. }
  19575. this.dialogVisibleChoiceTeacher = true;
  19576. } else if (t == 41) {
  19577. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19578. .taskJson[index].toolChoose[i].selectJson
  19579. ? JSON.parse(
  19580. JSON.stringify(
  19581. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19582. index
  19583. ].toolChoose[i].selectJson
  19584. )
  19585. )
  19586. : { url: "", select: [], answer: [] };
  19587. if (this.worksStudent[i].length) {
  19588. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19589. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19590. var a = this.worksStudent[i][k].works.split(",");
  19591. for (var ki = 0; ki < a.length; ki++) {
  19592. a[ki] = parseInt(a[ki]);
  19593. }
  19594. this.selectAnswer = {
  19595. answer: a,
  19596. stu: this.worksStudent[i][k].sName,
  19597. };
  19598. break;
  19599. } else {
  19600. this.selectAnswer = { answer: [], stu: "" };
  19601. }
  19602. }
  19603. } else {
  19604. this.selectAnswer = { answer: [], stu: "" };
  19605. }
  19606. this.isSelect = false;
  19607. this.dialogVisibleSelectTeacher = true;
  19608. } else if (t == 47) {
  19609. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19610. .taskJson[index].toolChoose[i].sentenceList
  19611. ? JSON.parse(
  19612. JSON.stringify(
  19613. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19614. index
  19615. ].toolChoose[i].sentenceList
  19616. )
  19617. )
  19618. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19619. for (var q = 0; q < this.sentenceList.length; q++) {
  19620. this.sentenceList[q].chooseSenList = [];
  19621. this.sentenceList[q].addChangeSen = [];
  19622. this.sentenceList[q].addChangeSen = JSON.parse(
  19623. JSON.stringify(this.sentenceList[q].addSentence)
  19624. );
  19625. this.sentenceList[q].chooseSenList.length =
  19626. this.sentenceList[q].rightAnswer.length;
  19627. }
  19628. this.dialogVisibleSentenceTeacher = true;
  19629. } else if (t == 48) {
  19630. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19631. .taskJson[index].toolChoose[i].tableJson
  19632. ? JSON.parse(
  19633. JSON.stringify(
  19634. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19635. index
  19636. ].toolChoose[i].tableJson
  19637. )
  19638. )
  19639. : { text: "" };
  19640. if (this.worksStudent[i].length) {
  19641. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19642. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19643. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19644. break;
  19645. }
  19646. }
  19647. }
  19648. this.dialogVisibleTableTeacher = true;
  19649. } else if (t == 40) {
  19650. if (this.evalCount > 0) {
  19651. this.updateCount(this.evalCount, t);
  19652. } else {
  19653. this.evalCount++;
  19654. a = this.evalCount;
  19655. this.toolsCount(a, t);
  19656. }
  19657. this.eScore = { eBzText: "", eStar: [] };
  19658. if (this.worksStudent[i].length) {
  19659. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19660. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19661. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19662. this.rateJson =
  19663. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19664. index
  19665. ].toolChoose[i].rateJson;
  19666. break;
  19667. } else {
  19668. this.rateJson =
  19669. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19670. index
  19671. ].toolChoose[i].rateJson;
  19672. }
  19673. }
  19674. } else {
  19675. this.rateJson =
  19676. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19677. index
  19678. ].toolChoose[i].rateJson;
  19679. }
  19680. this.isStar = false;
  19681. this.studentEvalDialogVisibleTeacher = true;
  19682. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  19683. window.topU.postMessage(
  19684. {
  19685. tools: t + "teacher",
  19686. cid: this.id,
  19687. stage: this.courseType,
  19688. task: this.taskCount,
  19689. tool: i,
  19690. student: this.sStudent,
  19691. },
  19692. "*"
  19693. );
  19694. }else if (t == 72) {
  19695. if (!document.fullscreenElement) {
  19696. this.enterFullScreen();
  19697. }
  19698. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  19699. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  19700. }
  19701. },
  19702. openCocoPi(tool, i, uid, uname) {
  19703. let student = {
  19704. userid: uid,
  19705. student: uname,
  19706. };
  19707. if (tool == 57) {
  19708. window.topU.postMessage(
  19709. {
  19710. tools: tool + "teacher",
  19711. cid: this.id,
  19712. stage: this.courseType,
  19713. task: this.taskCount,
  19714. tool: i,
  19715. student: student,
  19716. },
  19717. "*"
  19718. );
  19719. }
  19720. },
  19721. setRightAnswer(s, i, j) {
  19722. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  19723. if (
  19724. this.sentenceList[i].chooseSenList[q] == undefined ||
  19725. this.sentenceList[i].chooseSenList[q] == ""
  19726. ) {
  19727. this.sentenceList[i].chooseSenList[q] = s;
  19728. this.sentenceList[i].addChangeSen[j] = "";
  19729. break;
  19730. }
  19731. }
  19732. this.$forceUpdate();
  19733. },
  19734. returnCard(r, i, j) {
  19735. var a = this.sentenceList[i].addSentence.indexOf(r);
  19736. this.sentenceList[i].chooseSenList[j] = "";
  19737. this.sentenceList[i].addChangeSen[a] = r;
  19738. this.$forceUpdate();
  19739. },
  19740. // addSentenceTool() {
  19741. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19742. // this.taskCount
  19743. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  19744. // this.sentenceList = [
  19745. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  19746. // ];
  19747. // this.dialogVisibleSentence = false;
  19748. // },
  19749. toolsCount(a, t) {
  19750. let params = {
  19751. cid: this.id,
  19752. chid: this.courseType,
  19753. uid: this.userid,
  19754. tid: t,
  19755. count: a,
  19756. };
  19757. this.ajax
  19758. .get(this.$store.state.api + "insertToolsCount", params)
  19759. .then((res) => {
  19760. this.selectCount();
  19761. })
  19762. .catch((err) => {
  19763. console.error(err);
  19764. });
  19765. },
  19766. updateCount(c, t) {
  19767. c++;
  19768. let params = {
  19769. cid: this.id,
  19770. chid: this.courseType,
  19771. uid: this.userid,
  19772. tid: t,
  19773. count: c,
  19774. };
  19775. this.ajax
  19776. .get(this.$store.state.api + "updateToolsCount", params)
  19777. .then((res) => {
  19778. this.selectCount();
  19779. })
  19780. .catch((err) => {
  19781. console.error(err);
  19782. });
  19783. },
  19784. checkEva() {
  19785. if (this.evalua != "") {
  19786. for (var i = 0; i < this.evaJuri.length; i++) {
  19787. if (this.evalua == this.evaJuri[i].id) {
  19788. this.eTitle = this.evaJuri[i].title;
  19789. this.eJson = JSON.parse(this.evaJuri[i].content);
  19790. }
  19791. }
  19792. this.$forceUpdate();
  19793. setTimeout(() => {
  19794. this.setMindData();
  19795. }, 0);
  19796. }
  19797. },
  19798. selectEva() {
  19799. let params = {
  19800. oid: this.oid,
  19801. };
  19802. this.ajax
  19803. .get(this.$store.state.api + "selectAllEvaluation", params)
  19804. .then((res) => {
  19805. this.evaJuri = res.data[0];
  19806. })
  19807. .catch((err) => {
  19808. console.error(err);
  19809. });
  19810. },
  19811. setMindData() {
  19812. this.data.data = [];
  19813. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  19814. let _eJson = Object.keys(this.eJson);
  19815. let _e = this.eJson;
  19816. for (let i = 0; i < _eJson.length; i++) {
  19817. let element = _e[_eJson[i]];
  19818. this.data.data.push({
  19819. id: element.id,
  19820. parentid: "root",
  19821. topic: element.name,
  19822. });
  19823. let _eJsonc = Object.keys(element.child);
  19824. let _e2 = element.child;
  19825. for (let j = 0; j < _eJsonc.length; j++) {
  19826. let _ec = _e2[_eJsonc[j]];
  19827. this.data.data.push({
  19828. id: _ec.id,
  19829. parentid: element.id,
  19830. topic: _ec.name,
  19831. });
  19832. let _eJsonz = Object.keys(_ec.child);
  19833. let _e3 = _ec.child;
  19834. for (let z = 0; z < _eJsonz.length; z++) {
  19835. let _ez = _e3[_eJsonz[z]];
  19836. this.data.data.push({
  19837. id: _ez.id,
  19838. parentid: _ec.id,
  19839. topic: _ez.name,
  19840. });
  19841. }
  19842. }
  19843. }
  19844. this.$forceUpdate();
  19845. },
  19846. checkFileFull(type, url) {
  19847. this.fullDialogVisible = true;
  19848. this.fulltype = type;
  19849. this.fullUrl = url;
  19850. },
  19851. async checkFileFull1(t, f) {
  19852. this.fullDialogVisible = true;
  19853. if (t == 6) {
  19854. this.fulltype = 1;
  19855. console.log('checkFileFull1',f);
  19856. this.fullUrl = JSON.parse(JSON.stringify(f));
  19857. } else if (t == 8) {
  19858. this.fulltype = 2;
  19859. this.fullUrl = f.url;
  19860. } else if (t == 16) {
  19861. this.fulltype = 16;
  19862. this.fullUrl = f.url;
  19863. } else if (t == 15) {
  19864. this.fulltype = 4;
  19865. this.fullUrl = f.url;
  19866. } else if (
  19867. t == 3 &&
  19868. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  19869. "PDF"
  19870. ) {
  19871. this.fulltype = 3;
  19872. this.fullUrl = f.url;
  19873. } else if (t == 3) {
  19874. this.fulltype = 2;
  19875. let _uuurl = await this.checkLink(f.url);
  19876. console.log(_uuurl)
  19877. this.fullUrl =
  19878. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  19879. }
  19880. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  19881. },
  19882. openSname(n, id, i, uid) {
  19883. this.snameWid = id;
  19884. this.worksSName = n;
  19885. this.worksSid = uid == n ? "" : uid;
  19886. this.toolindex = i;
  19887. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19888. if (!this.uploadCid) {
  19889. this.$message.error(
  19890. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19891. );
  19892. return;
  19893. }
  19894. this.selectUploadStudent(1);
  19895. },
  19896. updateName() {
  19897. let params = {
  19898. n: this.worksSName,
  19899. cid: this.snameWid,
  19900. };
  19901. this.ajax
  19902. .get(this.$store.state.api + "updateCourseWorksName", params)
  19903. .then((res) => {
  19904. this.$message({
  19905. message: "修改成功",
  19906. type: "success",
  19907. });
  19908. this.dialogVisibleSname = false;
  19909. this.getCourseDetail(2);
  19910. this.snameWid = "";
  19911. this.worksSName = "";
  19912. })
  19913. .catch((err) => {
  19914. console.error(err);
  19915. });
  19916. },
  19917. downloadFile2(f) {
  19918. // const loading = this.$loading.service({
  19919. // background: "rgba(255, 255, 255, 0.7)",
  19920. // target: document.body,
  19921. // text: "文件加载中...",
  19922. // });
  19923. // let url2 = f.url;
  19924. // let _url2 = "";
  19925. // if (
  19926. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19927. // ) {
  19928. // _url2 = url2.split(
  19929. // "https://view.officeapps.live.com/op/view.aspx?src="
  19930. // )[1];
  19931. // } else {
  19932. // _url2 = url2;
  19933. // }
  19934. // let params = {
  19935. // url: _url2,
  19936. // name: f.name,
  19937. // };
  19938. // this.ajax
  19939. // .get(this.$store.state.api + "download", params)
  19940. // .then((res) => {
  19941. // loading.close();
  19942. // let content = res.data.data.data;
  19943. // let ab = new ArrayBuffer(content.length);
  19944. // let view = new Uint8Array(ab);
  19945. // for (var i = 0; i < content.length; ++i) {
  19946. // view[i] = content[i];
  19947. // }
  19948. // let elink = document.createElement("a");
  19949. // elink.download = f.name;
  19950. // elink.style.display = "none";
  19951. // let blob = new Blob([ab], {
  19952. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  19953. // });
  19954. // elink.href = URL.createObjectURL(blob);
  19955. // document.body.appendChild(elink);
  19956. // elink.click();
  19957. // document.body.removeChild(elink);
  19958. // })
  19959. // .catch((err) => {
  19960. // loading.close();
  19961. // console.error(err);
  19962. // });
  19963. var credentials = {
  19964. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19965. secretAccessKey: "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",
  19966. }; //秘钥形式的登录上传
  19967. window.AWS.config.update(credentials);
  19968. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19969. let url2 = f.url;
  19970. let _url2 = "";
  19971. if (
  19972. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19973. ) {
  19974. _url2 = url2.split(
  19975. "https://view.officeapps.live.com/op/view.aspx?src="
  19976. )[1];
  19977. } else {
  19978. _url2 = url2;
  19979. }
  19980. let _this = this;
  19981. _this.downLoading = true
  19982. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19983. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19984. var params = {
  19985. Bucket: "ccrb",
  19986. Key: name
  19987. };
  19988. s3.getObject(params, function (err, data) {
  19989. _this.downLoading = false
  19990. if (err) console.log(err, err.stack); // an error occurred
  19991. else {
  19992. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19993. let a = document.createElement("a");
  19994. a.name = f.name;
  19995. a.href = url;
  19996. a.download = f.name;
  19997. a.click();
  19998. console.log(data);
  19999. } // sxuccessful response
  20000. });
  20001. return;
  20002. let url = f.url;
  20003. let _url = "";
  20004. if (
  20005. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20006. ) {
  20007. _url = url.split(
  20008. "https://view.officeapps.live.com/op/view.aspx?src="
  20009. )[1];
  20010. } else {
  20011. _url = url;
  20012. }
  20013. _this.downLoading = true
  20014. // const loading = _this.$loading.service({
  20015. // background: "rgba(255, 255, 255, 0.7)",
  20016. // target: document.body,
  20017. // text: "文件加载中...",
  20018. // });
  20019. let x = new XMLHttpRequest();
  20020. x.open("GET", _url, true);
  20021. x.responseType = "blob";
  20022. x.onload = function () {
  20023. _this.downLoading = false
  20024. // loading.close();
  20025. let url = window.URL.createObjectURL(new Blob([x.response]));
  20026. let a = document.createElement("a");
  20027. a.name = f.name;
  20028. a.href = url;
  20029. a.download = f.name;
  20030. a.click();
  20031. };
  20032. x.send();
  20033. },
  20034. downloadFile(url,uid) {
  20035. if (this.tType == 1 || this.userid == uid) {
  20036. var credentials = {
  20037. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20038. secretAccessKey: "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",
  20039. }; //秘钥形式的登录上传
  20040. window.AWS.config.update(credentials);
  20041. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20042. let url2 = url;
  20043. let _url2 = "";
  20044. if (
  20045. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20046. ) {
  20047. _url2 = url2.split(
  20048. "https://view.officeapps.live.com/op/view.aspx?src="
  20049. )[1];
  20050. } else {
  20051. _url2 = url2;
  20052. }
  20053. const loading2 = this.$loading.service({
  20054. background: "rgba(255, 255, 255, 0.7)",
  20055. target: document.body,
  20056. text: "文件加载中...",
  20057. });
  20058. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  20059. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  20060. var params = {
  20061. Bucket: "ccrb",
  20062. Key: name
  20063. };
  20064. s3.getObject(params, function (err, data) {
  20065. loading2.close();
  20066. if (err) console.log(err, err.stack); // an error occurred
  20067. else {
  20068. let url = window.URL.createObjectURL(new Blob([data.Body]));
  20069. let a = document.createElement("a");
  20070. a.name = name;
  20071. a.href = url;
  20072. a.download = name;
  20073. a.click();
  20074. console.log(data);
  20075. } // sxuccessful response
  20076. });
  20077. }
  20078. return;
  20079. let _this = this;
  20080. let _url = "";
  20081. if (
  20082. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20083. ) {
  20084. _url = url.split(
  20085. "https://view.officeapps.live.com/op/view.aspx?src="
  20086. )[1];
  20087. } else {
  20088. _url = url;
  20089. }
  20090. const x = new XMLHttpRequest();
  20091. x.open("GET", _url, true);
  20092. x.responseType = "blob";
  20093. // this.downLoading = true
  20094. const loading = _this.$loading.service({
  20095. background: "rgba(255, 255, 255, 0.7)",
  20096. target: document.body,
  20097. text: "文件加载中...",
  20098. });
  20099. // _this.$message.success("文件下载中...");
  20100. x.onload = function (e) {
  20101. this.downLoading = false
  20102. loading.close();
  20103. let content = x.response;
  20104. let elink = document.createElement("a");
  20105. elink.download = decodeURI(
  20106. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  20107. );
  20108. elink.style.display = "none";
  20109. let blob = new Blob([content]);
  20110. elink.href = URL.createObjectURL(blob);
  20111. document.body.appendChild(elink);
  20112. elink.click();
  20113. document.body.removeChild(elink);
  20114. };
  20115. x.send();
  20116. },
  20117. openLine(url) {
  20118. window.open(url);
  20119. },
  20120. resize() {
  20121. if (document.getElementsByClassName("box_course").length) {
  20122. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20123. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20124. if (this.showType == 2 || this.showType == 3) {
  20125. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  20126. document.getElementsByClassName("navBox")[0].style.height =
  20127. a - 40 + 0+ "px";
  20128. }
  20129. } else {
  20130. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  20131. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  20132. }
  20133. }
  20134. }
  20135. this.Stbodywidth =
  20136. document.getElementsByClassName("student_body").length &&
  20137. document.getElementsByClassName("student_body")[0].offsetWidth;
  20138. },
  20139. closeDraw() {
  20140. this.bg = null;
  20141. this.drawShow = false;
  20142. },
  20143. showPicturePaint(url) {
  20144. let params = {
  20145. img: url,
  20146. };
  20147. this.ajax
  20148. .get(this.$store.state.api + "imgToBase64", params)
  20149. .then((res) => {
  20150. this.drawShow = true;
  20151. this.bg = res.data[0].img;
  20152. })
  20153. .catch((err) => {
  20154. console.error(err);
  20155. });
  20156. },
  20157. addImgDraw(base64) {
  20158. let file = { name: "批注图.png" };
  20159. let img = this.dataUrlToFile(base64, file);
  20160. this.beforeUpload1(img, 5);
  20161. },
  20162. addImgDrawImG(url) {
  20163. // console.log(url);
  20164. let params = [
  20165. {
  20166. wid: this.commentDetail.wid,
  20167. img: url,
  20168. },
  20169. ];
  20170. this.ajax
  20171. .post(this.$store.state.api + "updateCourseWorks", params)
  20172. .then((res) => {
  20173. this.$message({
  20174. message: "提交成功",
  20175. type: "success",
  20176. });
  20177. this.drawShow = false;
  20178. this.bg = "";
  20179. this.selectSWorks();
  20180. this.selectStudent();
  20181. })
  20182. .catch((err) => {
  20183. this.$message.error("提交失败");
  20184. console.error(err);
  20185. });
  20186. },
  20187. deletePicturePaint() {
  20188. this.$confirm("确定删除此批注吗?", "提示", {
  20189. confirmButtonText: "确定",
  20190. cancelButtonText: "取消",
  20191. type: "warning",
  20192. })
  20193. .then(() => {
  20194. let params = [
  20195. {
  20196. wid: this.commentDetail.wid,
  20197. img: "",
  20198. },
  20199. ];
  20200. this.ajax
  20201. .post(this.$store.state.api + "updateCourseWorks", params)
  20202. .then((res) => {
  20203. this.$message({
  20204. message: "删除成功",
  20205. type: "success",
  20206. });
  20207. this.selectSWorks();
  20208. this.selectStudent();
  20209. })
  20210. .catch((err) => {
  20211. this.$message.error("删除失败");
  20212. console.error(err);
  20213. });
  20214. })
  20215. .catch(() => {});
  20216. },
  20217. getAudioVideo(constraintsData) {
  20218. if (navigator.mediaDevices === undefined) {
  20219. navigator.mediaDevices = {};
  20220. }
  20221. if (navigator.mediaDevices.getUserMedia === undefined) {
  20222. navigator.mediaDevices.getUserMedia = function (constraints) {
  20223. // 首先,如果有getUserMedia的话,就获得它
  20224. var getUserMedia =
  20225. navigator.getUserMedia ||
  20226. navigator.webkitGetUserMedia ||
  20227. navigator.mozGetUserMedia ||
  20228. navigator.msGetUserMedia;
  20229. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  20230. if (!getUserMedia) {
  20231. return Promise.reject({ code: 404 });
  20232. }
  20233. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  20234. return new Promise(function (resolve, reject) {
  20235. getUserMedia.call(navigator, constraints, resolve, reject);
  20236. });
  20237. };
  20238. }
  20239. return navigator.mediaDevices.getUserMedia(constraintsData);
  20240. },
  20241. /**
  20242. * 开始录制
  20243. */
  20244. startRecording(callback) {
  20245. let _function = (screenStream) => {
  20246. this.addStreamStopListener(screenStream, () => {
  20247. console.log("流停止监听");
  20248. this.stopRecording();
  20249. this.$emit("streamStop", {});
  20250. // this.stopRecording();
  20251. });
  20252. var options = {
  20253. type: "video",
  20254. mimeType: "video/webm",
  20255. disableLogs: false,
  20256. getNativeBlob: false, // enable it for longer recordings
  20257. ignoreMutedMedia: false,
  20258. };
  20259. // this.video.srcObject = screenStream;
  20260. this.recorder = RecordRTC(screenStream, options);
  20261. this.recorder.startRecording();
  20262. this.recorder.screen = screenStream;
  20263. this.videoStart = true;
  20264. // callback(true);
  20265. };
  20266. this.getAudioVideo({ audio: true })
  20267. .then((res) => {
  20268. this.captureScreen(_function, true);
  20269. console.log("已点击允许,开启成功");
  20270. })
  20271. .catch((err) => {
  20272. // console.log('浏览器不支持,请更换浏览器')
  20273. // } else {
  20274. this.captureScreen(_function, false);
  20275. console.log("请检查是否存在麦克风");
  20276. });
  20277. },
  20278. /**
  20279. * 停止录制
  20280. */
  20281. stopRecording(callback) {
  20282. this.recorder.stopRecording(() => {
  20283. // this.video.src = this.video.srcObject = null;
  20284. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  20285. const url = URL.createObjectURL(this.recorder.getBlob());
  20286. const a = document.createElement("a"); //this.fileName+
  20287. let videoFile = new File(
  20288. [this.recorder.getBlob()],
  20289. this.courseDetail.title + "录屏.mp4",
  20290. {
  20291. type: "video/mp4",
  20292. }
  20293. );
  20294. let downloadUrl = URL.createObjectURL(videoFile);
  20295. if(this.$refs.classRoomHelperRef){
  20296. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  20297. }
  20298. document.body.appendChild(a);
  20299. a.style.display = "none";
  20300. a.href = url;
  20301. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  20302. a.click();
  20303. this.recorder.screen.stop();
  20304. this.recorder.destroy();
  20305. this.recorder = null;
  20306. this.videoStart = false;
  20307. // callback(false);
  20308. });
  20309. },
  20310. //初始化
  20311. captureScreen(callback, type) {
  20312. if (navigator.getDisplayMedia) {
  20313. //录制结束,文件下载
  20314. navigator
  20315. .getDisplayMedia({
  20316. video: true,
  20317. })
  20318. .then((screenStream) => {
  20319. if (type) {
  20320. navigator.mediaDevices
  20321. .getUserMedia({ audio: true })
  20322. .then((mic) => {
  20323. screenStream.addTrack(mic.getTracks()[0]);
  20324. callback(screenStream);
  20325. });
  20326. } else {
  20327. callback(screenStream);
  20328. }
  20329. })
  20330. .catch(function (error) {
  20331. console.log("error", error);
  20332. });
  20333. } else if (navigator.mediaDevices.getDisplayMedia) {
  20334. navigator.mediaDevices
  20335. .getDisplayMedia({
  20336. video: true,
  20337. })
  20338. .then((screenStream) => {
  20339. if (type) {
  20340. navigator.mediaDevices
  20341. .getUserMedia({ audio: true })
  20342. .then((mic) => {
  20343. screenStream.addTrack(mic.getTracks()[0]);
  20344. callback(screenStream);
  20345. });
  20346. } else {
  20347. callback(screenStream);
  20348. }
  20349. })
  20350. .catch(function (error) {
  20351. console.log("error", error);
  20352. });
  20353. } else {
  20354. var error = "getDisplayMedia API are not supported in this browser.";
  20355. console.log("error", error);
  20356. alert(error);
  20357. }
  20358. },
  20359. //流监听
  20360. addStreamStopListener(stream, callback) {
  20361. stream.addEventListener(
  20362. "ended",
  20363. function () {
  20364. callback();
  20365. callback = function () {};
  20366. },
  20367. false
  20368. );
  20369. stream.addEventListener(
  20370. "inactive",
  20371. function () {
  20372. callback();
  20373. callback = function () {};
  20374. },
  20375. false
  20376. );
  20377. stream.getTracks().forEach(function (track) {
  20378. track.addEventListener(
  20379. "ended",
  20380. function () {
  20381. callback();
  20382. callback = function () {};
  20383. },
  20384. false
  20385. );
  20386. track.addEventListener(
  20387. "inactive",
  20388. function () {
  20389. callback();
  20390. callback = function () {};
  20391. },
  20392. false
  20393. );
  20394. });
  20395. },
  20396. updateGroup() {
  20397. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20398. this.dialogVisibleGroup2 = true;
  20399. },
  20400. numberPan() {
  20401. if (
  20402. /[^\d]/.test(this.groupJson.number) ||
  20403. this.groupJson.number < 2 ||
  20404. this.groupJson.number > 10
  20405. ) {
  20406. this.$message.error("请输入2-10的数字");
  20407. this.groupJson.number = "";
  20408. }
  20409. },
  20410. updateGroupJson() {
  20411. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  20412. if (
  20413. this.groupStudentUid[this.toolindex][i].length >
  20414. this.groupJson2.number
  20415. ) {
  20416. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  20417. return;
  20418. }
  20419. }
  20420. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  20421. this.islock = this.groupJson.islock == 1 ? true : false;
  20422. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20423. this.taskCount
  20424. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  20425. let params = [
  20426. {
  20427. cid: this.id,
  20428. chapters: JSON.stringify(this.chapInfoList),
  20429. uid: this.userid,
  20430. unitIndex: this.courseType,
  20431. },
  20432. ];
  20433. this.ajax
  20434. .post(this.$store.state.api + "updateWorkNew4", params)
  20435. .then((res) => {
  20436. this.$message.success("设置成功");
  20437. this.getCourseDetail(2);
  20438. this.dialogVisibleGroup2 = false;
  20439. this.groupJson2 = {};
  20440. this.$forceUpdate();
  20441. })
  20442. .catch((err) => {
  20443. this.$message.error("网络不佳");
  20444. console.error(err);
  20445. });
  20446. },
  20447. lockChair() {
  20448. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20449. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  20450. this.updateGroupJson();
  20451. },
  20452. selectGroup(index) {
  20453. this.getCourseDetail(2, index);
  20454. },
  20455. joinGroup(index) {
  20456. if (this.groupJson.islock == 2) {
  20457. this.$message.error("位置已被锁定,无法加入");
  20458. return;
  20459. }
  20460. if (
  20461. this.groupStudent[this.toolindex][index].length >
  20462. this.groupJson.number ||
  20463. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  20464. ) {
  20465. this.$message.error("位置已满,无法加入");
  20466. return;
  20467. }
  20468. let params = [
  20469. {
  20470. cid: this.id,
  20471. stage: this.courseType,
  20472. task: this.taskCount,
  20473. tool: this.toolindex,
  20474. g: index,
  20475. uid: this.userid,
  20476. },
  20477. ];
  20478. this.ajax
  20479. .post(this.$store.state.api + "joinGroup", params)
  20480. .then((res) => {
  20481. this.$message.success("加入成功");
  20482. this.getCourseDetail(2);
  20483. })
  20484. .catch((err) => {
  20485. this.$message.error("网络不佳");
  20486. console.error(err);
  20487. });
  20488. },
  20489. exitGroup(id) {
  20490. if (this.groupJson.islock == 2) {
  20491. this.$message.error("位置已被锁定,无法退出");
  20492. return;
  20493. }
  20494. let params = [
  20495. {
  20496. gid: id,
  20497. },
  20498. ];
  20499. this.ajax
  20500. .post(this.$store.state.api + "exitGroup", params)
  20501. .then((res) => {
  20502. this.$message.success("退出成功");
  20503. this.getCourseDetail(2);
  20504. })
  20505. .catch((err) => {
  20506. this.$message.error("网络不佳");
  20507. console.error(err);
  20508. });
  20509. },
  20510. groupUpload(index, task, gindex) {
  20511. this.taskCount = task;
  20512. this.toolindex = index;
  20513. this.groupIndex = gindex;
  20514. this.dialogVisibleGroupWork = true;
  20515. },
  20516. updateGroupChair(user) {
  20517. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  20518. el.label = index;
  20519. return index != user.group;
  20520. });
  20521. this.updateGroupUser = user;
  20522. this.dialogVisibleUpdateGroup = true;
  20523. },
  20524. updateChair() {
  20525. if (
  20526. this.groupStudent[this.toolindex][this.checkChair].length >
  20527. this.groupJson.number ||
  20528. this.groupStudent[this.toolindex][this.checkChair].length ==
  20529. this.groupJson.number
  20530. ) {
  20531. this.$message.error("位置已满,无法加入");
  20532. return;
  20533. }
  20534. let params = [
  20535. {
  20536. cid: this.id,
  20537. stage: this.courseType,
  20538. task: this.taskCount,
  20539. tool: this.toolindex,
  20540. g: this.checkChair,
  20541. uid: this.updateGroupUser.userid,
  20542. },
  20543. ];
  20544. this.ajax
  20545. .post(this.$store.state.api + "joinGroup", params)
  20546. .then((res) => {
  20547. this.$message.success("修改成功");
  20548. this.updateGroupUser = {};
  20549. this.checkChair = "";
  20550. this.updateGroupArray = {};
  20551. this.dialogVisibleUpdateGroup = false;
  20552. this.getCourseDetail(2);
  20553. })
  20554. .catch((err) => {
  20555. this.$message.error("网络不佳");
  20556. console.error(err);
  20557. });
  20558. },
  20559. deleteGroupChair(gindex) {
  20560. this.checkDeleteGroup = [];
  20561. this.deleteGroupUser = JSON.parse(
  20562. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  20563. );
  20564. this.deleteGroupArray = this.groupJson.group[gindex];
  20565. this.groupIndex = gindex;
  20566. this.dialogVisibleDeleteGroup = true;
  20567. },
  20568. async deleteChair() {
  20569. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  20570. const gid =
  20571. this.groupStudent[this.toolindex][this.groupIndex][
  20572. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  20573. this.checkDeleteGroup[i]
  20574. )
  20575. ];
  20576. let params = [
  20577. {
  20578. gid: gid.id,
  20579. },
  20580. ];
  20581. var a = await this.deleteChairA(params);
  20582. if (i == this.checkDeleteGroup.length - 1) {
  20583. this.$message.success("退出成功");
  20584. this.dialogVisibleDeleteGroup = false;
  20585. this.deleteGroupUser = [];
  20586. this.deleteGroupArray = {};
  20587. this.groupIndex = "";
  20588. this.checkDeleteGroup = [];
  20589. this.getCourseDetail(2);
  20590. }
  20591. }
  20592. },
  20593. deleteChairA(params) {
  20594. return new Promise((resolve, reject) => {
  20595. this.ajax
  20596. .post(this.$store.state.api + "exitGroup", params)
  20597. .then((res) => {
  20598. resolve(1);
  20599. })
  20600. .catch((err) => {
  20601. this.$message.error("网络不佳");
  20602. console.error(err);
  20603. });
  20604. });
  20605. },
  20606. contract(i) {
  20607. if (this.isCloseList[i].isClose == 0) {
  20608. this.isCloseList[i].isClose = 1;
  20609. } else {
  20610. this.isCloseList[i].isClose = 0;
  20611. }
  20612. this.$forceUpdate();
  20613. },
  20614. openWordCloud(toolindex) {
  20615. this.wordCloudData = '';
  20616. let array = [];
  20617. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  20618. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  20619. array.push({ name: works });
  20620. }
  20621. if (this.isGroup) {
  20622. for (var i = 0; i < this.courseGroup.group.length; i++) {
  20623. let works = this.courseGroup.group[i].works[toolindex];
  20624. for (var j = 0; j < works.length; j++) {
  20625. let answer = JSON.parse(works[j].works)[0].answer;
  20626. array.push({ name: answer });
  20627. }
  20628. }
  20629. }
  20630. let _result = ''
  20631. array.forEach(e=>{
  20632. _result +=e.name+','
  20633. })
  20634. this.wordCloudData = _result;
  20635. this.dialogVisibleWordCloud = true;
  20636. this.wordCloudKey += 1;
  20637. },
  20638. uploadWorks(i) {
  20639. this.$confirm("确定导出作业吗?", "提示", {
  20640. confirmButtonText: "确定",
  20641. cancelButtonText: "取消",
  20642. type: "warning",
  20643. })
  20644. .then(() => {
  20645. const loading = this.$loading.service({
  20646. background: "rgba(255, 255, 255, 0.7)",
  20647. target: document.body,
  20648. text: "文件加载中...",
  20649. });
  20650. const _worksStudent = this.worksStudent;
  20651. let url = [];
  20652. var counts = {};
  20653. for (var l = 0; l < _worksStudent[i].length; l++) {
  20654. var item = _worksStudent[i][l];
  20655. var name = item.sName;
  20656. if (!counts.hasOwnProperty(name)) {
  20657. counts[name] = 0;
  20658. } else {
  20659. counts[name]++;
  20660. }
  20661. if (counts[name] > 0) {
  20662. item.sName += " (" + counts[name] + ")";
  20663. }
  20664. }
  20665. for (var l = 0; l < _worksStudent[i].length; l++) {
  20666. var item = _worksStudent[i][l];
  20667. if (
  20668. item.works.indexOf(
  20669. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  20670. ) !== -1 &&
  20671. item.works.indexOf("img") === -1
  20672. ) {
  20673. url.push({ name: item.sName, url: item.works });
  20674. }
  20675. }
  20676. // var toolList = [
  20677. // { name: "电子白板", tool: 1 },
  20678. // { name: "思维导图", tool: 3 },
  20679. // { name: "协同文档", tool: 6 },
  20680. // { name: "思维网格", tool: 7 },
  20681. // { name: "素材库", tool: 8 },
  20682. // { name: "学习资料", tool: 17 },
  20683. // { name: "便签", tool: 2 },
  20684. // { name: "问卷调查", tool: 4 },
  20685. // { name: "选择题", tool: 45 },
  20686. // { name: "倒计时", tool: 10 },
  20687. // { name: "问答", tool: 15 },
  20688. // { name: "课程设计", tool: 26 },
  20689. // { name: "训练服务器", tool: 18 },
  20690. // { name: "作业提交", tool: 16 },
  20691. // { name: "批量上传", tool: 50 },
  20692. // { name: "AIoT Blockly", tool: 21 },
  20693. // { name: "AI Python", tool: 23 },
  20694. // { name: "AI Blockly", tool: 24 },
  20695. // { name: "目标管理", tool: 25 },
  20696. // { name: "数学画板", tool: 31 },
  20697. // { name: "翻译", tool: 28 },
  20698. // { name: "魔盒识字", tool: 37 },
  20699. // { name: "数学画板", tool: 31 },
  20700. // { name: "24点", tool: 38 },
  20701. // { name: "GeoGebra", tool: 39 },
  20702. // { name: "源码编辑", tool: 32 },
  20703. // { name: "个人评价", tool: 40 },
  20704. // { name: "选择匹配", tool: 41 },
  20705. // { name: "汉字宫", tool: 44 },
  20706. // { name: "排序", tool: 47 },
  20707. // { name: "表格", tool: 48 },
  20708. // { name: "文档", tool: 52 },
  20709. // { name: "学生分组", tool: 49 },
  20710. // { name: "CocoPi", tool: 57 },
  20711. // { name: "模拟驾驶", tool: 58 },
  20712. // { name: "路径搜索", tool: 59 },
  20713. // { name: "深度学习", tool: 60 },
  20714. // { name: "全历史", tool: 61 },
  20715. // { name: "交互视频", tool: 62 },
  20716. // { name: "海龟编程", tool: 63 },
  20717. // { name: "挑人", tool: 65 },
  20718. // { name: "公式编辑", tool: 66 },
  20719. // { name: "分子结构", tool: 67 },
  20720. // { name: "时间轴", tool: 68 },
  20721. // ];
  20722. // var toolName = "";
  20723. // for(var w = 0;w<toolList.length;w++){
  20724. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  20725. // toolName = toolList[w].name;
  20726. // }
  20727. // }
  20728. console.log(url);
  20729. this.downLoadAll(url, loading);
  20730. })
  20731. .catch(() => {});
  20732. },
  20733. downLoadAll(url, loading) {
  20734. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  20735. const zip = new JSZip();
  20736. const cache = {};
  20737. const promises = [];
  20738. data.forEach((item) => {
  20739. const promise = getFile(item.url).then((data) => {
  20740. if (data.data != 1) {
  20741. // 下载文件, 并存成ArrayBuffer对象
  20742. const file_name =
  20743. item.name +
  20744. "." +
  20745. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  20746. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  20747. cache[file_name] = data.data;
  20748. }
  20749. });
  20750. promises.push(promise);
  20751. });
  20752. Promise.all(promises).then(() => {
  20753. zip.generateAsync({ type: "blob" }).then((content) => {
  20754. // 生成二进制流
  20755. FileSaver.saveAs(
  20756. content,
  20757. this.courseDetail.title + "-" + "作业提交工具.zip"
  20758. ); // 利用file-saver保存文件 自定义文件名
  20759. setTimeout(() => {
  20760. loading.close();
  20761. }, 2000);
  20762. });
  20763. });
  20764. },
  20765. pickStudent(stu) {
  20766. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  20767. return;
  20768. }
  20769. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  20770. confirmButtonText: "确定",
  20771. cancelButtonText: "取消",
  20772. type: "warning",
  20773. })
  20774. .then(() => {
  20775. let params = [
  20776. {
  20777. uid: stu.userid,
  20778. cid: this.id,
  20779. stage: this.courseType,
  20780. task: this.taskCount,
  20781. tool: this.toolindex,
  20782. },
  20783. ];
  20784. this.ajax
  20785. .post(this.$store.state.api + "updateCoursePick", params)
  20786. .then((res) => {
  20787. this.$message.success("操作成功");
  20788. this.getPick();
  20789. })
  20790. .catch((err) => {
  20791. this.$message.error("网络不佳");
  20792. console.error(err);
  20793. });
  20794. })
  20795. .catch(() => {});
  20796. },
  20797. selectUser(){
  20798. let params = {
  20799. userid: this.userid,
  20800. };
  20801. this.ajax
  20802. .get(this.$store.state.api + "selectUser", params)
  20803. .then((res) => {
  20804. this.userMes = res.data[0];
  20805. })
  20806. .catch((err) => {
  20807. console.error(err);
  20808. });
  20809. },
  20810. setEngText(i){
  20811. this.newEngIndex = i;
  20812. this.$forceUpdate();
  20813. },
  20814. addCorrect(){
  20815. this.$confirm("你确定提交批改嘛?", "提示", {
  20816. confirmButtonText: "确定",
  20817. showCancelButton: false,
  20818. closeOnClickModal: false,
  20819. type: "warning",
  20820. })
  20821. .then(() => {
  20822. let params = {
  20823. cid: this.id,
  20824. s: parseInt(this.courseType),
  20825. t: this.taskCount,
  20826. tool: this.toolindex,
  20827. wid: this.engWid,
  20828. c: this.userid,
  20829. 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) : "",
  20830. };
  20831. this.ajax
  20832. .get(this.$store.state.api + "addEngC", params)
  20833. .then((res) => {
  20834. this.$message.success("提交成功");
  20835. this.engUpdateDialogVisible = false;
  20836. })
  20837. .catch((err) => {
  20838. console.error(err);
  20839. });
  20840. })
  20841. .catch(() => {});
  20842. },
  20843. selectEngC(id,z){
  20844. let params = {
  20845. workid: id,
  20846. };
  20847. this.ajax
  20848. .get(this.$store.state.api + "selectEngC", params)
  20849. .then((res) => {
  20850. if(res.data[0].length == 0){
  20851. this.newEnglishList.engTitle = z.engTitle;
  20852. this.newEnglishList.engText = z.engText;
  20853. }else{
  20854. var a = res.data[0];
  20855. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  20856. if(this.userMes[0].type == 2){
  20857. var snum = 0;
  20858. for(var i = 0;i<a.length;i++){
  20859. if(this.userMes[0].userid == a[i].correct){
  20860. this.newEnglishList = JSON.parse(a[i].cWork);
  20861. snum = 1;
  20862. }
  20863. }
  20864. if(snum == 0){
  20865. this.newEnglishList = { engTitle:"",engText:"" };
  20866. this.newEnglishList.engTitle = z.engTitle;
  20867. this.newEnglishList.engText = z.engText;
  20868. }
  20869. }else if(this.userMes[0].type == 1){
  20870. var num = 0;
  20871. for(var w= 0;w<a.length;w++){
  20872. if(this.userMes[0].userid == a[w].correct){
  20873. num = 1;
  20874. }
  20875. }
  20876. if(num == 0){
  20877. this.isNoUserid = true;
  20878. var c = JSON.parse(JSON.stringify(z));
  20879. this.oldEnglishJson1 = c;
  20880. }else{
  20881. this.isNoUserid = false;
  20882. }
  20883. var b = a.sort((item, index) => {
  20884. console.log(item)
  20885. if (item.correct === this.userMes[0].userid) {
  20886. return -1; // 将a移到前面
  20887. } else if (index.correct === this.userMes[0].userid) {
  20888. return 1; // 将b移到前面
  20889. } else {
  20890. return 0; // 保持默认顺序
  20891. }
  20892. });
  20893. for(var p = 0;p<b.length;p++){
  20894. for(var y = 0;y<ppp.length;y++){
  20895. if(b[p].id == ppp[y].id){
  20896. b[p].cWork = JSON.parse(ppp[y].cWork);
  20897. break
  20898. }
  20899. }
  20900. }
  20901. this.newEnglishList1 = b;
  20902. }
  20903. }
  20904. this.greyType = false;
  20905. setTimeout(() => {
  20906. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20907. if(this.newEnglishList1.length > 0){
  20908. if(this.isNoUserid == true){
  20909. this.engListLength = this.newEnglishList1.length + 1;
  20910. this.newEngIndex = -1;
  20911. }else{
  20912. this.engListLength = this.newEnglishList1.length;
  20913. this.newEngIndex = 0;
  20914. }
  20915. }
  20916. if(this.userMes[0].type == 2){
  20917. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20918. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  20919. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  20920. }else if(this.newEngIndex == -1){
  20921. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20922. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  20923. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  20924. }
  20925. }, 500);
  20926. this.engUpdateDialogVisible = true;
  20927. this.$forceUpdate();
  20928. })
  20929. .catch((err) => {
  20930. console.error(err);
  20931. });
  20932. },
  20933. getPick() {
  20934. let params = {
  20935. cid: this.id,
  20936. };
  20937. this.ajax
  20938. .get(this.$store.state.api + "getPick", params)
  20939. .then((res) => {
  20940. let array = [];
  20941. for (var i = 0; i < res.data[0].length; i++) {
  20942. array.push(res.data[0][i].userid);
  20943. }
  20944. this.isPickStudent = array;
  20945. if (array.indexOf(this.userid) !== -1) {
  20946. this.$confirm("你被老师选到啦!", "提示", {
  20947. confirmButtonText: "确定",
  20948. showCancelButton: false,
  20949. closeOnClickModal: false,
  20950. type: "warning",
  20951. })
  20952. .then(() => {
  20953. let pa = [
  20954. {
  20955. uid: this.userid,
  20956. cid: this.id,
  20957. },
  20958. ];
  20959. this.ajax
  20960. .post(this.$store.state.api + "deletePick", pa)
  20961. .then((res) => {
  20962. this.getPick();
  20963. })
  20964. .catch((err) => {
  20965. this.$message.error("网络不佳");
  20966. console.error(err);
  20967. });
  20968. })
  20969. .catch(() => {});
  20970. }
  20971. })
  20972. .catch((err) => {
  20973. this.$message.error("网络不佳");
  20974. console.error(err);
  20975. });
  20976. },
  20977. foldEva() {
  20978. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  20979. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  20980. } else {
  20981. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  20982. setTimeout(() => {
  20983. this.checkEva();
  20984. setTimeout(() => {
  20985. this.checkEva();
  20986. }, 500);
  20987. }, 0);
  20988. }
  20989. this.$forceUpdate();
  20990. },
  20991. panToolHeight(tool) {
  20992. var _tool = document.querySelectorAll('#'+tool)[0]
  20993. var _toolA = _tool ? _tool.offsetHeight : 0
  20994. var _toolC = 0
  20995. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  20996. let boolean2 = (_toolA > _toolC) ? true : false
  20997. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  20998. this.$forceUpdate();
  20999. },
  21000. async checkLink(url) {
  21001. // console.log(url)
  21002. let _url = url
  21003. try {
  21004. const response = await fetch(url);
  21005. if(!response.ok){
  21006. _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]))
  21007. }
  21008. // console.log(response.ok)
  21009. } catch (error) {
  21010. console.error('Error checking link:', error);
  21011. // console.log(false)
  21012. _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]))
  21013. }
  21014. // console.log(_url)
  21015. return _url
  21016. },
  21017. getScoreList(){
  21018. let params = {
  21019. cid: this.id,
  21020. };
  21021. this.ajax
  21022. .get(this.$store.state.api + "selectTestCourseByCid", params)
  21023. .then((res) => {
  21024. let result = res.data;
  21025. this.scoreList.datalist = result[0];
  21026. this.scoreList.isScoreList = result[1];
  21027. })
  21028. .catch((err) => {
  21029. console.error(err);
  21030. });
  21031. },
  21032. setClassRoomHelperWidth(width){
  21033. this.classRoomHelperWidth = width
  21034. },
  21035. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  21036. this.$refs.choseWorksDetailDialogRef.open({
  21037. toolType:tooc,
  21038. tType: this.tType,
  21039. toolIndex: toolIndex
  21040. });
  21041. this.changeSplitScreenBehavior({
  21042. code: 1,
  21043. form: {
  21044. toolType:tooc,
  21045. toolIndex: toolIndex,
  21046. courseType: this.courseType,
  21047. taskCount: this.taskCount,
  21048. type: 0
  21049. }
  21050. });
  21051. },
  21052. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  21053. this.$refs.statisticalAnalysisRef.open({
  21054. worksStudent: this.worksStudent[toolIndex],
  21055. tType: this.tType,
  21056. toolIndex: toolIndex
  21057. });
  21058. this.changeSplitScreenBehavior({
  21059. code: 2,
  21060. form: {
  21061. toolType:4,
  21062. courseType: this.courseType,
  21063. taskCount: this.taskCount,
  21064. toolIndex: toolIndex,
  21065. type: 0
  21066. }
  21067. });
  21068. },
  21069. statisticalAnalysisRefresh(toolIndex) {
  21070. this.$refs.statisticalAnalysisRef.refreshData({
  21071. worksStudent: this.worksStudent[toolIndex],
  21072. tType: this.tType,
  21073. toolIndex: toolIndex
  21074. });
  21075. },
  21076. async splitScreenBehavior(type = 0) {
  21077. // return;
  21078. if (this.splitScreenData.loading)
  21079. return this.$message.info("操作过快,请稍等");
  21080. if (type == 0) {
  21081. //关闭分屏
  21082. this.splitScreenData.isOpen = false;
  21083. // this.splitScreenData.userId = "";
  21084. // this.splitScreenData.uid = "";
  21085. this.splitScreenData.behavior = null;
  21086. await this.updateSplitScreenData(1);
  21087. this.$message.success("已关闭分屏模式");
  21088. this.studentFreePreview(false);
  21089. this.OpenJobPreview(false);
  21090. // this.followingMode(false);
  21091. } else if (type == 1) {
  21092. //开启分屏
  21093. this.splitScreenData.isOpen = true;
  21094. this.splitScreenData.userId = this.userid;
  21095. this.splitScreenData.uid = this.splitScreenData.myUid;
  21096. this.splitScreenData.behavior = null;
  21097. let status = await this.updateSplitScreenData(0);
  21098. this.changeSplitScreenBehavior({form:{}})
  21099. if (status == 1) {
  21100. this.$message.success("已开启分屏");
  21101. this.studentFreePreview(false);
  21102. this.OpenJobPreview(true);
  21103. // this.followingMode(true);
  21104. } else {
  21105. this.splitScreenData.isOpen = false;
  21106. this.splitScreenData.userId = "";
  21107. this.splitScreenData.uid = "";
  21108. this.splitScreenData.behavior = null;
  21109. this.$message.success("分屏开启失败");
  21110. }
  21111. }
  21112. },
  21113. enterFullScreen() {
  21114. let element = document.documentElement;
  21115. if (element.requestFullscreen) {
  21116. element.requestFullscreen();
  21117. } else if (element.mozRequestFullScreen) { /* Firefox */
  21118. element.mozRequestFullScreen();
  21119. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  21120. element.webkitRequestFullscreen();
  21121. } else if (element.msRequestFullscreen) { /* IE/Edge */
  21122. element.msRequestFullscreen();
  21123. }
  21124. },
  21125. exitFullScreen() {
  21126. if (document.exitFullscreen) {
  21127. document.exitFullscreen();
  21128. } else if (document.mozCancelFullScreen) { /* Firefox */
  21129. document.mozCancelFullScreen();
  21130. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  21131. document.webkitExitFullscreen();
  21132. } else if (document.msExitFullscreen) { /* IE/Edge */
  21133. document.msExitFullscreen();
  21134. }
  21135. },
  21136. confirmOpen(){
  21137. this.splitScreenData.isOpen = true;
  21138. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  21139. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  21140. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  21141. this.confirmOpenDig = false
  21142. if (!document.fullscreenElement) {
  21143. this.enterFullScreen();
  21144. }
  21145. // if (this.timer2) {
  21146. // clearInterval(this.timer2);
  21147. // this.timer2 = null;
  21148. // }
  21149. // this.timer2 = setInterval(()=> {
  21150. // this.getSplitScreenData();//获取分屏数据
  21151. // }, 1000);
  21152. this.$message.success("分屏模式已开启");
  21153. },
  21154. getSplitScreenData() {
  21155. // return;
  21156. // if (this.tType != 1) return;
  21157. let params = {
  21158. cid: this.id
  21159. };
  21160. this.ajax
  21161. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  21162. .then(async res => {
  21163. let data = res.data[0][0]["splitScreenData"];
  21164. console.log("获取了分屏数:", data);
  21165. if (data) {
  21166. data = JSON.parse(data);
  21167. if (
  21168. !this.splitScreenData.isOpen &&
  21169. data.isOpen &&
  21170. this.splitScreenData.myUid == data.uid
  21171. ) {
  21172. this.splitScreenData.isOpen = false;
  21173. this.splitScreenData.userId = "";
  21174. this.splitScreenData.uid = "";
  21175. this.splitScreenData.behavior = null;
  21176. await this.updateSplitScreenData(1);
  21177. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  21178. this.confirmOpenDig = true
  21179. this.confirmOpenDigData = data
  21180. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  21181. this.splitScreenData.isOpen = false;
  21182. this.splitScreenData.userId = "";
  21183. this.splitScreenData.uid = "";
  21184. this.splitScreenData.behavior = null;
  21185. this.$message.error("已结束分屏模式");
  21186. } else if (this.splitScreenData.isOpen && data.isOpen) {
  21187. this.splitScreenData.isOpen = true;
  21188. this.splitScreenData.uid = data.uid;
  21189. this.splitScreenData.userId = data.userId;
  21190. this.splitScreenData.behavior = data.behavior;
  21191. }
  21192. this.doSplitScreenBehavior();
  21193. } else {
  21194. if (this.splitScreenData.isOpen) {
  21195. this.splitScreenData.isOpen = false;
  21196. this.splitScreenData.userId = "";
  21197. this.splitScreenData.uid = "";
  21198. this.splitScreenData.behavior = null;
  21199. this.$message.error("已结束分屏模式");
  21200. // if (this.timer2) {
  21201. // clearInterval(this.timer2);
  21202. // this.timer2 = null;
  21203. // }
  21204. // this.timer2 = setInterval(()=> {
  21205. // this.getSplitScreenData();//获取分屏数据
  21206. // }, 5000);
  21207. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  21208. confirmButtonText: '确定', //确认按钮的文字
  21209. showCancelButton: false, //是否显示取消按钮
  21210. showClose: false, //是否显示关闭按钮
  21211. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  21212. type: "warning",
  21213. })
  21214. .then(() => {
  21215. if (document.fullscreenElement) {
  21216. this.exitFullScreen();
  21217. }
  21218. })
  21219. .catch(() => {});
  21220. }
  21221. }
  21222. })
  21223. .catch(e => {
  21224. console.log("获取分屏数出错:", e);
  21225. });
  21226. },
  21227. doSplitScreenBehavior() {
  21228. if (
  21229. this.splitScreenData.isOpen &&
  21230. this.splitScreenData.uid != this.splitScreenData.myUid
  21231. ) {
  21232. let behavior = this.splitScreenData.behavior;
  21233. if (behavior) {
  21234. if (behavior.code === 99) {
  21235. //初始化
  21236. this.fullDialogVisible = false;
  21237. if(this.$refs.choseWorksDetailDialogRef.show){
  21238. this.$refs.choseWorksDetailDialogRef.close();
  21239. }
  21240. if(this.$refs.statisticalAnalysisRef.show){
  21241. this.$refs.statisticalAnalysisRef.close();
  21242. }
  21243. }
  21244. if (behavior.code === 0) {
  21245. //开启内容列表弹窗
  21246. this.checkFileFull1(behavior.form.t, behavior.form.f);
  21247. }else{
  21248. this.fullDialogVisible = false;
  21249. }
  21250. if (behavior.code === 1) {
  21251. //关于选择题的作业详细的操作
  21252. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  21253. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  21254. this.courseType = behavior.form.courseType;
  21255. this.taskCount = behavior.form.taskCount;
  21256. }
  21257. this.$nextTick(() => {
  21258. if (this.$refs.choseWorksDetailDialogRef.show) {
  21259. //已经打开了
  21260. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  21261. } else {
  21262. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  21263. }
  21264. });
  21265. }else{
  21266. this.$refs.choseWorksDetailDialogRef.close()
  21267. }
  21268. if(behavior.code === 2){
  21269. if(this.$refs.statisticalAnalysisRef.show){
  21270. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  21271. }else{
  21272. this.$refs.statisticalAnalysisRef.open({
  21273. worksStudent: this.worksStudent[behavior.form.toolIndex],
  21274. tType: this.tType,
  21275. toolIndex: behavior.form.toolIndex
  21276. });
  21277. }
  21278. }else{
  21279. this.$refs.statisticalAnalysisRef.close();
  21280. }
  21281. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  21282. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  21283. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  21284. if (behavior.form.courseType != this.courseType ||
  21285. behavior.form.taskCount != this.taskCount ||
  21286. behavior.form.toolType != this.toolindex
  21287. ) {
  21288. var a = document.scrollingElement;
  21289. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  21290. if (target) {
  21291. target.scrollIntoView(true);
  21292. setTimeout(()=>{
  21293. let scrollBody = document.querySelector('.body_student').parentElement
  21294. scrollBody.scrollTop = scrollBody.scrollTop - 100
  21295. }, 0);
  21296. // setTimeout(() => {
  21297. // a.scrollTop = 0
  21298. // }, 0);
  21299. }
  21300. }
  21301. if(this.courseType !=behavior.form.courseType){
  21302. this.courseType = behavior.form.courseType;
  21303. }
  21304. if(this.taskCount !=behavior.form.taskCount){
  21305. this.taskCount = behavior.form.taskCount;
  21306. }
  21307. if((behavior.form.toolType || behavior.form.toolType == 0) && (this.toolindex != behavior.form.toolType)){
  21308. this.toolindex = behavior.form.toolType;
  21309. }
  21310. // if(behavior.form.navId){
  21311. // this.navId = behavior.form.navId
  21312. // }
  21313. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  21314. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  21315. console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  21316. this.getCourseDetail()
  21317. }
  21318. this.setContent2(false)
  21319. }
  21320. } else {
  21321. }
  21322. }
  21323. },
  21324. updateSplitScreenData(empty = 0) {
  21325. return new Promise(resolve => {
  21326. if(this.userid!==this.courseDetail.userid){
  21327. if(!this.courseDetail.userid){
  21328. return setTimeout(()=>{
  21329. this.updateSplitScreenData(empty)
  21330. },2000)
  21331. }
  21332. return;
  21333. };
  21334. if (
  21335. this.splitScreenData.uid == this.splitScreenData.myUid &&
  21336. this.splitScreenData.userId == this.userid
  21337. ) {
  21338. this.splitScreenData.loading = true;
  21339. let params = [
  21340. {
  21341. cid: this.id,
  21342. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  21343. }
  21344. ];
  21345. this.ajax
  21346. .post(
  21347. this.$store.state.api + "update_courseSplitScreenData",
  21348. params
  21349. )
  21350. .then(res => {
  21351. this.splitScreenData.loading = false;
  21352. if (res.data == 1) {
  21353. resolve(1);
  21354. console.log("修改分屏数据成功");
  21355. }
  21356. })
  21357. .catch(e => {
  21358. this.splitScreenData.loading = false;
  21359. console.log("修改分屏数据失败", e);
  21360. resoleve(0);
  21361. });
  21362. } else if (empty == 2 && this.tType == 1) {
  21363. let params = [
  21364. {
  21365. cid: this.id,
  21366. nData: ""
  21367. }
  21368. ];
  21369. return this.ajax
  21370. .post(
  21371. this.$store.state.api + "update_courseSplitScreenData",
  21372. params
  21373. )
  21374. .then(_ => resolve(1))
  21375. .catch(_ => resolve(0));
  21376. } else {
  21377. return resolve(0);
  21378. }
  21379. });
  21380. },
  21381. changeSplitScreenBehavior(newValue) {
  21382. if (
  21383. this.splitScreenData.isOpen &&
  21384. this.splitScreenData.uid == this.splitScreenData.myUid
  21385. ) {
  21386. let _behavior = null;
  21387. if(!newValue){
  21388. _behavior = {}
  21389. }else{
  21390. _behavior = newValue
  21391. }
  21392. if(_behavior.form){
  21393. _behavior.form.taskCount = this.taskCount;
  21394. _behavior.form.courseType = this.courseType
  21395. }else{
  21396. _behavior.form = {
  21397. taskCount:this.taskCount,
  21398. courseType:this.courseType
  21399. }
  21400. }
  21401. this.splitScreenData.behavior = _behavior;
  21402. this.updateSplitScreenData(0);
  21403. }
  21404. },
  21405. studentFreePreview(flag) {
  21406. this.IsLookOpen = flag;
  21407. this.followingMode(flag)
  21408. this.updateLookOpen();
  21409. },
  21410. OpenJobPreview(flag) {
  21411. this.sIsOpen = flag;
  21412. this.updateSLook();
  21413. },
  21414. followingMode(flag) {
  21415. this.IsFollow = flag;
  21416. this.updateFollow();
  21417. },
  21418. StulookMode(flag) {
  21419. this.IsStulook = flag;
  21420. this.updateIsStulook();
  21421. }
  21422. },
  21423. directives: {
  21424. // 使用局部注册指令的方式
  21425. resize: {
  21426. // 指令的名称
  21427. bind(el, binding) {
  21428. // el为绑定的元素,binding为绑定给指令的对象
  21429. let width = "",
  21430. height = "";
  21431. function isReize() {
  21432. const style = document.defaultView.getComputedStyle(el);
  21433. if (width !== style.width || height !== style.height) {
  21434. binding.value(); // 关键
  21435. }
  21436. width = style.width;
  21437. height = style.height;
  21438. }
  21439. el.__vueSetInterval__ = setInterval(isReize, 300);
  21440. },
  21441. unbind(el) {
  21442. clearInterval(el.__vueSetInterval__);
  21443. },
  21444. },
  21445. autoHeight: {
  21446. update(el, binding) {
  21447. const { value } = binding
  21448. if (value && typeof value === 'number') {
  21449. el.style.height = `${value}px`
  21450. } else {
  21451. el.style.height = 'auto'
  21452. }
  21453. },
  21454. componentUpdated(el) {
  21455. el.style.height = `${el.scrollHeight + 5}px`
  21456. },
  21457. },
  21458. },
  21459. beforeDestroy() {
  21460. window.onresize = null;
  21461. clearInterval(this.timer);
  21462. this.timer = null;
  21463. clearInterval(this.timer2);
  21464. this.timer2 = null;
  21465. clearInterval(this.opertimer);
  21466. this.opertimer = null;
  21467. this.updateSplitScreenData(1);
  21468. if(this.courseDetail.userid == this.userid && this.tcid2 && this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  21469. let endTime = new Date().toLocaleString("zh-CN", {
  21470. hour12: false,
  21471. timeZone: "Asia/Shanghai"
  21472. }).replace(/\//g, "-")
  21473. let courseTime = Math.floor((new Date(endTime) - new Date(this.startTime)) / (1000 * 60))
  21474. this.syncClassData({
  21475. courseId: this.id,
  21476. title: this.courseDetail.title,
  21477. courseGrade: this.tcid2,
  21478. courseTime: courseTime,
  21479. startTime: this.startTime,
  21480. endTime: endTime,
  21481. })
  21482. console.log('同步数据')
  21483. }
  21484. },
  21485. computed: {
  21486. renderedFormula2() {
  21487. return function(val){
  21488. // 处理换行符和HTML实体
  21489. const normalized = val
  21490. .replace(/&amp;/g, '&')
  21491. .replace(/<br\/?>/g, '\n');
  21492. // 匹配行内公式($...$)和块级公式($$...$$)
  21493. return normalized.replace(/(\${1,2})([^$]+)(\${1,2})/g, (_, delim, expr) => {
  21494. try {
  21495. return katex.renderToString(expr.trim(), {
  21496. displayMode: false,
  21497. throwOnError: false,
  21498. macros: {
  21499. '\\aligned': '\\begin{aligned}#1\\end{aligned}'
  21500. }
  21501. });
  21502. } catch (e) {
  21503. console.warn('KaTeX渲染失败:', e);
  21504. return `<span style="color:red">${expr}</span>`;
  21505. }
  21506. })
  21507. }
  21508. },
  21509. renderedFormula() {
  21510. return function(val){
  21511. try {
  21512. // 判断是否含有HTML标签,<tag ...>...</tag>
  21513. const hasTag = /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g.test(val);
  21514. if (!hasTag) {
  21515. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  21516. // 纯文本,整体渲染
  21517. try {
  21518. return katex.renderToString(val.trim(), {
  21519. throwOnError: false,
  21520. strict: false,
  21521. output: "htmlAndMathml"
  21522. });
  21523. } catch (e) {
  21524. return val; // 渲染失败原样输出
  21525. }
  21526. } else {
  21527. // 有标签,对每个标签内容渲染
  21528. return val.replace(
  21529. /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g,
  21530. (match, tag, attrs, inner) => {
  21531. let html;
  21532. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  21533. try {
  21534. html = katex.renderToString(inner.trim(), {
  21535. throwOnError: false,
  21536. strict: false,
  21537. output: "htmlAndMathml"
  21538. });
  21539. } catch (e) {
  21540. html = inner;
  21541. }
  21542. return `<${tag}${attrs}>${html}</${tag}>`;
  21543. }
  21544. );
  21545. }
  21546. } catch (e) {
  21547. console.error('KaTeX渲染错误:', e);
  21548. return val;
  21549. }
  21550. }
  21551. },
  21552. isAndroid() {
  21553. return /Android/i.test(navigator.userAgent);
  21554. },
  21555. getHeight(){
  21556. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  21557. },
  21558. contentConvent() {
  21559. return function (c) {
  21560. return c
  21561. ? c
  21562. .replaceAll(/\r\n/g, "<br/>")
  21563. .replaceAll(/\n/g, "<br/>")
  21564. .replaceAll(/\s/g, "&nbsp")
  21565. : "";
  21566. };
  21567. },
  21568. MarkdownT() {
  21569. return function (c) {
  21570. let md = new MarkdownIt();
  21571. return c
  21572. ? md.render(c) : "";
  21573. };
  21574. },
  21575. commentRight(){
  21576. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  21577. return "35px";
  21578. }
  21579. return `calc(${this.classRoomHelperWidth} + 5px)`
  21580. // if(this.$refs["classRoomHelperRef"].type==0){
  21581. // return "100px";
  21582. // }else if(this.$refs["classRoomHelperRef"].type==1){
  21583. // return "502px"
  21584. // }else{
  21585. // return "0px"
  21586. // }
  21587. },
  21588. checkUpload() {
  21589. return function () {
  21590. var studentK = [];
  21591. if (this.plworkFile.length > 0) {
  21592. for (var z = 0; z < this.plworkFile.length; z++) {
  21593. studentK.push(this.plworkFile[z].username);
  21594. }
  21595. studentK = studentK.join(",");
  21596. }
  21597. var a = this.uploadStudentJuri.filter((el) => {
  21598. return studentK.indexOf(el.userid) == -1;
  21599. });
  21600. return a;
  21601. };
  21602. },
  21603. getSName() {
  21604. return function (name) {
  21605. var check = name;
  21606. this.uploadStudentJuri.forEach((el) => {
  21607. if (el.userid == check) {
  21608. check = el.name ? el.name : el.username;
  21609. }
  21610. });
  21611. return check;
  21612. };
  21613. },
  21614. getImgList() {
  21615. return function (val) {
  21616. let srcList = []; // 定义一个数组用来接收后面的img地址
  21617. val.replace(
  21618. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  21619. function (match, capture) {
  21620. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  21621. srcList.push(capture);
  21622. }
  21623. );
  21624. return srcList;
  21625. };
  21626. },
  21627. retrnToolHeight(){
  21628. return function (tool) {
  21629. var _tool = document.querySelectorAll('#'+tool)[0]
  21630. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  21631. };
  21632. },
  21633. Correct() {
  21634. return function (c,d) {
  21635. let w = "";
  21636. let a = this.correctWord;
  21637. for(var k = 0;k<a.length;k++){
  21638. //diffWordsWithSpace
  21639. if(a.length > 1){
  21640. if(a[k].added == true){
  21641. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21642. }else if(a[k].removed == true){
  21643. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21644. }else{
  21645. w += '<span>' + a[k].value + '</span>';
  21646. }
  21647. }else{
  21648. w = c
  21649. }
  21650. console.log("👇👇!+++==")
  21651. console.log(w)
  21652. //diffChars方法
  21653. // if(w == ""){
  21654. // if(a.length > 1){
  21655. // if(a[k].added == true){
  21656. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21657. // }else if(a[k].removed == true){
  21658. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21659. // }
  21660. // }else{
  21661. // w = c
  21662. // }
  21663. // }else{
  21664. // if(k == a.length - 1){
  21665. // if(a[k].added == true){
  21666. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21667. // }else if(a[k].removed == true){
  21668. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21669. // }
  21670. // }else{
  21671. // if(a[k].added == true){
  21672. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21673. // }else if(a[k].removed == true){
  21674. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21675. // }
  21676. // }
  21677. // }
  21678. }
  21679. c = w;
  21680. return c;
  21681. };
  21682. },
  21683. },
  21684. mounted() {
  21685. this.startTime = new Date().toLocaleString("zh-CN", {
  21686. hour12: false,
  21687. timeZone: "Asia/Shanghai"
  21688. }).replace(/\//g, "-")
  21689. if (this.tType == 1) {
  21690. // 开局关闭学生查看内容
  21691. this.StulookMode(false)
  21692. // 开局打开跟随模式
  21693. this.followingMode(true)
  21694. }
  21695. document.body.addEventListener("click", (e) => {
  21696. if (this.isUpdateToolDetail1) {
  21697. this.updateToolDetail(this.toolDetailIndex);
  21698. }
  21699. });
  21700. try {
  21701. if (this.screenType == 2) {
  21702. window.topU.postMessage({ allScreen: 4 }, "*");
  21703. } else if (this.screenType == 3) {
  21704. window.topU.postMessage({ allScreen: 5 }, "*");
  21705. } else if (this.screenType == 1) {
  21706. window.topU.postMessage({ allScreen: 6 }, "*");
  21707. }
  21708. } catch (error) {
  21709. console.log(error)
  21710. }
  21711. this.setOperationTime();
  21712. this.selectEva();
  21713. this.getCourseDetail(10);
  21714. this.selectCount();
  21715. this.getHomeWork();
  21716. this.selectUser();
  21717. this.getAIJ();
  21718. this.contentDialog = false;
  21719. this.setContent2(true);
  21720. if (this.tType == 4) {
  21721. this.pzDialog = true;
  21722. this.selectPz();
  21723. }
  21724. // 获取评分列表
  21725. this.getScoreList()
  21726. this.updateSplitScreenData(2);
  21727. this.splitScreenData.myUid = uuidv4();
  21728. document.scrollingElement.scrollTop = 0;
  21729. window.addEventListener("resize", () => {
  21730. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  21731. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  21732. if (this.showType == 2 || this.showType == 3) {
  21733. document.getElementsByClassName("navBox")[0].style.height =
  21734. a - 40 + 0+ "px";
  21735. } else {
  21736. document.getElementsByClassName("navBox")[0].style.height =
  21737. a - 40 + "px";
  21738. }
  21739. });
  21740. let _this = this;
  21741. setTimeout(() => {
  21742. // _this.vedioTime = [];
  21743. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21744. // _this.vedioTime[i] = document.getElementsByClassName(
  21745. // "vjs-duration-display"
  21746. // )[i].textContent;
  21747. // }
  21748. }, 1000);
  21749. },
  21750. };
  21751. </script>
  21752. <style scoped>
  21753. @media screen and (max-width: 1280px) {
  21754. /* .courseIndex > div:first-child(2) {
  21755. width: 15% !important;
  21756. } */
  21757. /* .navText {
  21758. width: 120px !important;
  21759. } */
  21760. .evaCss {
  21761. flex-direction: column !important;
  21762. align-items: center !important;
  21763. }
  21764. .elist_input {
  21765. width: 90% !important;
  21766. }
  21767. .dialog_diy1 >>> .el-dialog {
  21768. width: 100% !important;
  21769. }
  21770. .rightWidthCss {
  21771. width: 100% !important;
  21772. }
  21773. .dialog_diy3 >>> .el-dialog {
  21774. width: 100% !important;
  21775. }
  21776. .addToolCss {
  21777. right: 0 !important;
  21778. width: 100% !important;
  21779. min-width: unset !important;
  21780. }
  21781. }
  21782. .evaCssMax {
  21783. flex-direction: column !important;
  21784. align-items: center !important;
  21785. }
  21786. .dialog_diy >>> .el-dialog {
  21787. margin-top: 10vh !important;
  21788. }
  21789. .body_student {
  21790. width: 77%;
  21791. height: 100%;
  21792. position: absolute;
  21793. left: 22%;
  21794. top: 0;
  21795. }
  21796. .student_head {
  21797. width: 100%;
  21798. margin: 20px auto 0;
  21799. padding-bottom: 20px;
  21800. display: flex;
  21801. flex-direction: column;
  21802. flex-wrap: nowrap;
  21803. align-items: flex-start;
  21804. justify-content: flex-start;
  21805. }
  21806. .pb_left {
  21807. width: 15%;
  21808. margin-right: 10px;
  21809. background: rgb(255, 255, 255);
  21810. position: fixed;
  21811. height: calc(100% - 40px);
  21812. border-radius: 20px;
  21813. padding-bottom: 15px;
  21814. box-sizing: border-box;
  21815. }
  21816. .wheel > img,
  21817. .project > img,
  21818. .star > img,
  21819. .evaluate > img,
  21820. .up_photo > img,
  21821. .chapter_add > img,
  21822. .deleteWord > img,
  21823. .question > img,
  21824. .homework > img {
  21825. width: 100%;
  21826. height: 100%;
  21827. }
  21828. .upCover > img {
  21829. width: 131px;
  21830. height: 69px;
  21831. object-fit: cover;
  21832. }
  21833. .upCover {
  21834. width: calc(100% / 3.5);
  21835. position: relative;
  21836. margin: 0 15px 10px 0;
  21837. display: flex;
  21838. flex-direction: column;
  21839. flex-wrap: nowrap;
  21840. justify-content: center;
  21841. align-content: center;
  21842. align-items: center;
  21843. height: fit-content;
  21844. }
  21845. .upCover2 {
  21846. width: 100%;
  21847. position: relative;
  21848. margin: 0 15px 10px 0;
  21849. display: flex;
  21850. flex-direction: column;
  21851. flex-wrap: nowrap;
  21852. justify-content: center;
  21853. align-content: center;
  21854. align-items: center;
  21855. }
  21856. .upCover2 > img {
  21857. width: 100%;
  21858. height: 90px;
  21859. object-fit: contain;
  21860. }
  21861. .chapter_add {
  21862. width: 120px;
  21863. position: relative;
  21864. text-align: center;
  21865. }
  21866. .isAddThings {
  21867. margin-top: 20px;
  21868. position: relative;
  21869. text-align: center;
  21870. background: #f7f8fa;
  21871. height: 90px;
  21872. width: 90px;
  21873. display: flex;
  21874. flex-direction: column;
  21875. justify-content: center;
  21876. }
  21877. .deleteWord {
  21878. width: 22px;
  21879. height: 22px;
  21880. position: absolute;
  21881. right: -5px;
  21882. top: -5px;
  21883. cursor: pointer;
  21884. }
  21885. .box_course {
  21886. /* width: 60%; */
  21887. width: calc(100% - 300px);
  21888. }
  21889. .wheel {
  21890. width: 100%;
  21891. /* height: 100%; */
  21892. height: 650px;
  21893. }
  21894. .right_box {
  21895. display: flex;
  21896. flex-direction: column;
  21897. margin-left: 30px;
  21898. justify-content: space-around;
  21899. }
  21900. .right_box_title {
  21901. font-size: 23px;
  21902. }
  21903. .people {
  21904. display: flex;
  21905. }
  21906. .student_body {
  21907. width: 100%;
  21908. margin: 0 auto;
  21909. margin-top: 10px;
  21910. padding: 0 0 20px;
  21911. }
  21912. .study_top {
  21913. margin-top: 100px;
  21914. width: 100%;
  21915. height: auto;
  21916. padding-bottom: 20px;
  21917. margin-left: 2px;
  21918. min-height: 90%;
  21919. }
  21920. .study_top .checkbox {
  21921. display: flex;
  21922. align-items: center;
  21923. padding: 15px 0 15px 30px;
  21924. flex: 0 0 auto;
  21925. font-weight: bold;
  21926. border-bottom: 1px solid #eee;
  21927. }
  21928. .study_top .check {
  21929. padding-bottom: 5px;
  21930. text-align: center;
  21931. cursor: pointer;
  21932. height: 30px;
  21933. box-sizing: border-box;
  21934. display: flex;
  21935. }
  21936. .study_top .checked {
  21937. border-bottom: 4px solid #3fc6a0;
  21938. padding-bottom: 5px;
  21939. color: #3fc6a0;
  21940. display: flex;
  21941. height: 35px;
  21942. }
  21943. .study_top .checked > div,
  21944. .study_top .check > div {
  21945. margin-right: 5px;
  21946. }
  21947. .videoTop {
  21948. display: flex;
  21949. flex-direction: row;
  21950. justify-content: space-between;
  21951. background: #fff;
  21952. align-items: center;
  21953. width: 95%;
  21954. padding: 20px;
  21955. }
  21956. .filebox {
  21957. display: flex;
  21958. flex-wrap: wrap;
  21959. flex-direction: column;
  21960. padding: 0 0 5px;
  21961. position: relative;
  21962. }
  21963. .filebox:before {
  21964. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  21965. position: absolute;
  21966. top: 20px;
  21967. left: 13px;
  21968. border-left: 2px dotted #cad1dc;
  21969. height: calc(100% - 15px);
  21970. }
  21971. .toolHeng2 > div:last-child::before {
  21972. height: calc(100% - 43px);
  21973. }
  21974. .filebox .tooldetail {
  21975. width: calc(100%);
  21976. margin: 0px 12px;
  21977. padding: 12px;
  21978. line-height: 30px;
  21979. word-break: break-word;
  21980. background: #ffffff;
  21981. border-radius: 8px 8px 8px 8px;
  21982. opacity: 1;
  21983. border: 1px solid #cad1dc;
  21984. overflow:hidden;
  21985. box-sizing:border-box;
  21986. }
  21987. .pb_content >>> .katex {
  21988. font-size: 16px;
  21989. width: 100%;
  21990. white-space: normal;
  21991. }
  21992. .pb_content >>> .katex .base{
  21993. display: inline !important;
  21994. display: contents !important;
  21995. }
  21996. .pb_content >>> .katex .base .cjk_fallback{
  21997. white-space: normal !important;
  21998. display: inline !important;
  21999. }
  22000. .file {
  22001. display: flex;
  22002. flex-direction: column;
  22003. align-items: center;
  22004. justify-content: center;
  22005. cursor: pointer;
  22006. width: 200px;
  22007. }
  22008. .file div {
  22009. margin-top: 10px;
  22010. width: 150px;
  22011. text-align: center;
  22012. overflow: hidden;
  22013. white-space: nowrap;
  22014. text-overflow: ellipsis;
  22015. }
  22016. .media {
  22017. display: flex;
  22018. flex-direction: column;
  22019. align-items: center;
  22020. justify-content: center;
  22021. margin: 0 20px 20px 0;
  22022. cursor: pointer;
  22023. margin: 12px 0 5px 15px;
  22024. overflow: hidden;
  22025. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  22026. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  22027. box-sizing: border-box;
  22028. }
  22029. .media img {
  22030. height: 90px;
  22031. width: 160px;
  22032. object-fit: cover;
  22033. }
  22034. .media .title {
  22035. padding: 5px;
  22036. text-align: left;
  22037. width: 100%;
  22038. box-sizing: border-box;
  22039. }
  22040. .media .btn {
  22041. width: 100%;
  22042. height: 35px;
  22043. line-height: 35px;
  22044. color: #fff;
  22045. background: #606060;
  22046. text-align: center;
  22047. overflow: hidden;
  22048. white-space: nowrap;
  22049. text-overflow: ellipsis;
  22050. }
  22051. .detail_content_top {
  22052. width: 100%;
  22053. padding: 25px 0 25px 0;
  22054. }
  22055. .detail_title {
  22056. text-align: center;
  22057. font-size: 24px;
  22058. }
  22059. .detail_time {
  22060. font-size: 13px;
  22061. padding: 15px 0 0 40px;
  22062. }
  22063. .detail_content {
  22064. line-height: 2pc;
  22065. width: 90%;
  22066. margin: 0 auto;
  22067. padding-top: 30px;
  22068. text-indent: 30px;
  22069. overflow: auto;
  22070. height: 200px;
  22071. }
  22072. .score_box >>> .el-rate {
  22073. margin-left: 10px;
  22074. }
  22075. .dialog_change >>> .el-dialog {
  22076. border-radius: 5px;
  22077. }
  22078. .dialog_change >>> .el-dialog__header {
  22079. background: #f2f2f2;
  22080. text-align: center;
  22081. }
  22082. .dialog_change >>> .el-dialog__title {
  22083. line-height: 5px;
  22084. }
  22085. .dialog_change >>> .el-dialog__body {
  22086. background: #fff;
  22087. padding: 10px 20px;
  22088. }
  22089. .score_box {
  22090. display: flex;
  22091. align-items: center;
  22092. margin-bottom: 18px;
  22093. margin-top: 20px;
  22094. }
  22095. .up_photo {
  22096. width: 120px;
  22097. cursor: pointer;
  22098. margin-top: 10px;
  22099. }
  22100. .up_photo2 {
  22101. width: 180px;
  22102. box-sizing: border-box;
  22103. min-width: 180px;
  22104. height: 180px;
  22105. max-height: 180px;
  22106. min-height: 180px;
  22107. cursor: pointer;
  22108. display: flex;
  22109. flex-direction: column;
  22110. align-items: center;
  22111. justify-content: center;
  22112. background: rgb(242, 246, 255);
  22113. /* padding: 25px; */
  22114. margin-bottom: 10px;
  22115. }
  22116. .up_photo2 img {
  22117. width: 50%;
  22118. height: auto;
  22119. }
  22120. .up_photo2 span {
  22121. color: #898989;
  22122. }
  22123. .plworkBox {
  22124. display: flex;
  22125. align-items: center;
  22126. margin-top: 10px;
  22127. flex-wrap: wrap;
  22128. }
  22129. .upload_send {
  22130. margin: 30px auto 30px;
  22131. width: 60%;
  22132. background: #3681fc;
  22133. text-align: center;
  22134. height: 35px;
  22135. line-height: 35px;
  22136. color: #fff;
  22137. border-radius: 5px;
  22138. cursor: pointer;
  22139. }
  22140. .marginT {
  22141. margin-top: 20px;
  22142. }
  22143. .cd_content_steps {
  22144. display: flex;
  22145. width: 90%;
  22146. justify-content: space-around;
  22147. border-top: 1px solid #eeeeee;
  22148. }
  22149. .cd_steps_box {
  22150. display: flex;
  22151. justify-content: center;
  22152. align-items: center;
  22153. flex-direction: column;
  22154. cursor: pointer;
  22155. }
  22156. .first {
  22157. display: flex;
  22158. align-items: center;
  22159. margin: 15px 0 20px 0;
  22160. font-size: 20px;
  22161. }
  22162. .first > div:nth-child(2) {
  22163. font-size: 16px !important;
  22164. padding-left: 10px;
  22165. line-height: 26px;
  22166. box-sizing: border-box;
  22167. }
  22168. .blue_box_one {
  22169. text-align: center;
  22170. color: #fff;
  22171. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  22172. border-radius: 7px;
  22173. margin: 10px;
  22174. cursor: pointer;
  22175. width: 95%;
  22176. height: 45px;
  22177. display: flex;
  22178. flex-direction: row;
  22179. justify-content: flex-start;
  22180. align-items: center;
  22181. }
  22182. .blue_box_one > div:nth-child(1) {
  22183. line-height: 30px;
  22184. margin: 0 5px 0 10px;
  22185. width: 30%;
  22186. min-width: 70px;
  22187. border-radius: 4px;
  22188. }
  22189. .blue_box_one > div:nth-child(2) {
  22190. white-space: nowrap;
  22191. text-overflow: ellipsis;
  22192. overflow: hidden;
  22193. word-break: break-all;
  22194. width: 70%;
  22195. text-align: left;
  22196. margin-right: 10px;
  22197. max-width: calc(100% - 85px);
  22198. }
  22199. .blue_box_one > div:nth-child(2):hover {
  22200. overflow: hidden;
  22201. text-overflow: ellipsis;
  22202. white-space: nowrap;
  22203. cursor: pointer;
  22204. }
  22205. .upFile {
  22206. margin: 0 auto;
  22207. width: 120px;
  22208. background: #3681fc;
  22209. color: #fff;
  22210. height: 30px;
  22211. text-align: center;
  22212. line-height: 30px;
  22213. border-radius: 5px;
  22214. font-size: 14px;
  22215. cursor: pointer;
  22216. }
  22217. .courseTitle {
  22218. width: 85%;
  22219. margin: 10px auto 26px auto;
  22220. display: flex;
  22221. flex-direction: row;
  22222. align-items: center;
  22223. justify-content: space-between;
  22224. text-align: center;
  22225. }
  22226. .courseTitle .ctitle {
  22227. font-size: 20px;
  22228. font-weight: bold;
  22229. color: #0e1e33;
  22230. white-space: nowrap;
  22231. overflow: hidden;
  22232. text-overflow: ellipsis;
  22233. }
  22234. .inviteBox {
  22235. font-size: 14px;
  22236. /* margin-top: 5px; */
  22237. color: #00000099;
  22238. text-align: center;
  22239. }
  22240. .courseTitle >>> .el-tooltip {
  22241. width: 100%;
  22242. white-space: nowrap;
  22243. overflow: hidden;
  22244. text-overflow: ellipsis;
  22245. word-break: break-word;
  22246. }
  22247. .ml {
  22248. margin-left: 20px;
  22249. color: #5b7dba;
  22250. border-left: 3px solid #5b7dba;
  22251. padding-left: 5px;
  22252. font-weight: bold;
  22253. }
  22254. .return {
  22255. width: 2rem;
  22256. height: 2rem;
  22257. cursor: pointer;
  22258. }
  22259. .return > img {
  22260. width: 100%;
  22261. height: 100%;
  22262. }
  22263. .returnBtn {
  22264. width: 86px;
  22265. height: 36px;
  22266. background: #3681fc;
  22267. border-radius: 4px;
  22268. color: #fff;
  22269. text-align: center;
  22270. line-height: 36px;
  22271. margin-right: 20px;
  22272. cursor: pointer;
  22273. font-size: 14px;
  22274. font-weight: 400;
  22275. display: flex;
  22276. flex-direction: row;
  22277. flex-wrap: nowrap;
  22278. align-items: center;
  22279. justify-content: center;
  22280. }
  22281. .reBtnIcon,
  22282. .commentIcon,
  22283. .vedioIcon,
  22284. .vedioIcon1 {
  22285. /* width: 36px; */
  22286. height: 36px;
  22287. border-radius: 4px;
  22288. position: relative;
  22289. /* background: #e0eafb; */
  22290. background: #0061ff;
  22291. cursor: pointer;
  22292. margin-right: 12px;
  22293. display: flex;
  22294. align-items: center;
  22295. padding: 0 10px;
  22296. box-sizing: border-box;
  22297. font-size: 14px;
  22298. color: #fff;
  22299. }
  22300. .reBtnIcon::before,
  22301. .commentIcon::before,
  22302. .vedioIcon::before,
  22303. .vedioIcon1::before {
  22304. content: "";
  22305. display: block;
  22306. background-size: 100% 100%;
  22307. background-repeat: no-repeat;
  22308. width: 20px;
  22309. height: 20px;
  22310. margin-right: 5px;
  22311. /* position: absolute; */
  22312. /* top: 8px;
  22313. left: 8px; */
  22314. }
  22315. .vedioIcon1 {
  22316. background: #f63564;
  22317. }
  22318. .reBtnIcon::before {
  22319. background-image: url("../../assets/icon/newIcons/refresh.png");
  22320. }
  22321. .commentIcon::before {
  22322. background-image: url("../../assets/icon/newIcons/comment.png");
  22323. }
  22324. .vedioIcon::before {
  22325. background-image: url("../../assets/icon/newIcons/transcribe.png");
  22326. }
  22327. .vedioIcon1::before {
  22328. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  22329. background-image: url("../../assets/icon/newIcons/transcribe.png");
  22330. }
  22331. .tool {
  22332. display: flex;
  22333. flex-direction: column;
  22334. flex-wrap: nowrap;
  22335. width: 13%;
  22336. margin: 0 30px;
  22337. align-items: center;
  22338. position: relative;
  22339. padding: 10px 25px;
  22340. cursor: pointer;
  22341. }
  22342. .whiteBIcon {
  22343. width: 150px;
  22344. }
  22345. .whiteBIcon > img {
  22346. width: 100%;
  22347. height: 100%;
  22348. }
  22349. .mask {
  22350. background-color: rgba(0, 0, 0, 0);
  22351. position: fixed;
  22352. top: 0;
  22353. left: 0;
  22354. width: 100%;
  22355. height: 100%;
  22356. z-index: 20000;
  22357. display: flex;
  22358. align-items: center;
  22359. justify-content: center;
  22360. }
  22361. .progressBox {
  22362. width: 500px;
  22363. height: 180px;
  22364. background: #fff;
  22365. border-radius: 10px;
  22366. box-shadow: 0 0 6px 1px #bfbfbf;
  22367. display: flex;
  22368. align-items: center;
  22369. justify-content: center;
  22370. flex-direction: column;
  22371. position: relative;
  22372. color: #6c6c6c;
  22373. }
  22374. .progressBox >>> .el-progress-bar__outer {
  22375. background-color: #d1dfff !important;
  22376. }
  22377. .progressBox .lbox {
  22378. height: 50px;
  22379. font-size: 19px;
  22380. display: flex;
  22381. align-items: center;
  22382. color: #747474;
  22383. }
  22384. .progressBox .lbox img {
  22385. width: 40px;
  22386. margin-right: 20px;
  22387. }
  22388. .closeCss {
  22389. position: absolute;
  22390. top: 8px;
  22391. right: 8px;
  22392. cursor: pointer;
  22393. width: 20px;
  22394. height: 20px;
  22395. }
  22396. .closeCss > img {
  22397. width: 100%;
  22398. height: 100%;
  22399. }
  22400. .uploadVedio {
  22401. display: flex;
  22402. flex-direction: column;
  22403. flex-wrap: nowrap;
  22404. justify-content: center;
  22405. align-items: center;
  22406. margin: 0 15px 10px 0;
  22407. }
  22408. .uploadVedio > img {
  22409. width: 30px;
  22410. height: 30px;
  22411. }
  22412. .uploadVedio > span {
  22413. white-space: nowrap;
  22414. overflow: hidden;
  22415. text-overflow: ellipsis;
  22416. width: 75px;
  22417. margin-top: 7px;
  22418. }
  22419. .picName {
  22420. white-space: nowrap;
  22421. overflow: hidden;
  22422. text-overflow: ellipsis;
  22423. width: 75px;
  22424. margin-top: 7px;
  22425. }
  22426. .new_top {
  22427. display: flex;
  22428. background: #fff;
  22429. flex-direction: row;
  22430. justify-content: flex-start;
  22431. align-items: center;
  22432. height: 60px;
  22433. position: fixed;
  22434. top: 20px;
  22435. left: 22%;
  22436. width: 77%;
  22437. z-index: 999;
  22438. border-radius: 12px 12px 0 0;
  22439. border-bottom: 1px solid #cad1dc;
  22440. padding: 10px 0;
  22441. }
  22442. .new_topFixed {
  22443. width: 100%;
  22444. height: 40px;
  22445. position: fixed;
  22446. top: 0px;
  22447. display: block;
  22448. background: #f2f2f2;
  22449. z-index: 998;
  22450. }
  22451. .before {
  22452. position: absolute;
  22453. background: #c3dad4;
  22454. width: 6px;
  22455. height: 100%;
  22456. }
  22457. .courseIndex {
  22458. display: flex;
  22459. flex-direction: row;
  22460. align-items: center;
  22461. width: calc(100% - 745px);
  22462. }
  22463. .courseIndex > div:nth-child(1) {
  22464. margin: 0 0 0 10px;
  22465. font-size: 20px;
  22466. min-width: 100px;
  22467. font-weight: bold;
  22468. border-left: 4px solid #3363b9;
  22469. height: 32px;
  22470. text-align: center;
  22471. line-height: 35px;
  22472. }
  22473. .courseIndex > div:nth-child(2) {
  22474. font-size: 20px;
  22475. /* width: 300px; */
  22476. max-width: calc(100% - 105px);
  22477. white-space: nowrap;
  22478. overflow: hidden;
  22479. text-overflow: ellipsis;
  22480. }
  22481. .courseIndex > div:nth-child(3) {
  22482. border-bottom: 1px solid #d7d7d7;
  22483. padding-bottom: 5px;
  22484. background: #3681fc;
  22485. width: 55px;
  22486. min-width: 55px;
  22487. border-radius: 5px;
  22488. color: #fff;
  22489. text-align: center;
  22490. height: 20px;
  22491. line-height: 26px;
  22492. font-size: 14px;
  22493. margin: 0 0 0 10px;
  22494. }
  22495. .course_text {
  22496. padding: 20px 0 0 15px;
  22497. text-indent: 30px;
  22498. width: 80%;
  22499. min-height: 20px;
  22500. }
  22501. .vedioList {
  22502. background: #f2f2f2;
  22503. border: 1px solid #ececec;
  22504. /* width: 38.8%; */
  22505. /* width: 300px; */
  22506. width: 100%;
  22507. height: 445px;
  22508. border-radius: 10px;
  22509. overflow: hidden;
  22510. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  22511. }
  22512. .vedioNav {
  22513. margin: 10px 0 0 15px;
  22514. border-bottom: 1px solid #d7d7d7;
  22515. padding-bottom: 5px;
  22516. background: #3681fc;
  22517. width: 55px;
  22518. min-width: 55px;
  22519. border-radius: 5px;
  22520. color: #fff;
  22521. text-align: center;
  22522. height: 20px;
  22523. line-height: 26px;
  22524. font-size: 14px;
  22525. }
  22526. .queTop {
  22527. display: flex;
  22528. padding: 20px 0 20px 30px;
  22529. width: 100%;
  22530. flex-direction: row;
  22531. justify-content: flex-start;
  22532. align-items: center;
  22533. box-sizing: border-box;
  22534. }
  22535. .queTopTitle {
  22536. display: flex;
  22537. flex-direction: row;
  22538. flex-wrap: nowrap;
  22539. align-items: center;
  22540. font-weight: bold;
  22541. font-size: 20px;
  22542. color: rgb(14, 30, 51);
  22543. }
  22544. .queTopTitle::before {
  22545. content: "";
  22546. width: 2px;
  22547. height: 22px;
  22548. background: #3681fc;
  22549. border-radius: 3px;
  22550. display: block;
  22551. margin: 2px 6px 0 0;
  22552. }
  22553. .queTopRight {
  22554. display: flex;
  22555. flex-direction: row;
  22556. flex-wrap: nowrap;
  22557. align-items: center;
  22558. }
  22559. .queTopClose {
  22560. margin-right: 20px;
  22561. cursor: pointer;
  22562. position: relative;
  22563. display: flex;
  22564. }
  22565. .closeImg,
  22566. .openImg {
  22567. width: 25px;
  22568. height: 25px;
  22569. position: absolute;
  22570. left: -20px;
  22571. top: -1px;
  22572. }
  22573. .closeImg > img,
  22574. .openImg > img {
  22575. width: 100%;
  22576. height: 100%;
  22577. }
  22578. .question {
  22579. width: 40px;
  22580. margin-right: 10px;
  22581. margin-top: 7px;
  22582. }
  22583. .queTitle {
  22584. margin-left: 5px;
  22585. font-size: 25px;
  22586. display: flex;
  22587. align-items: center;
  22588. }
  22589. .addEditor {
  22590. width: 100px;
  22591. height: 30px;
  22592. background: #42cda6;
  22593. color: #fff;
  22594. border-radius: 5px;
  22595. text-align: center;
  22596. line-height: 30px;
  22597. box-shadow: 1px 3px 6px 1px #bfbfbf;
  22598. cursor: pointer;
  22599. }
  22600. /* .vedioName {
  22601. cursor: pointer;
  22602. margin: 0px 0px 10px 5px;
  22603. white-space: nowrap;
  22604. overflow: hidden;
  22605. text-overflow: ellipsis;
  22606. width: 100%;
  22607. } */
  22608. .vedioTime {
  22609. width: 35px;
  22610. position: absolute;
  22611. color: #fff;
  22612. bottom: 0px;
  22613. right: 0px;
  22614. text-align: center;
  22615. background: #46411f;
  22616. height: 20px;
  22617. font-size: 14px;
  22618. line-height: 20px;
  22619. }
  22620. .homework {
  22621. width: 200px;
  22622. display: flex;
  22623. flex-direction: column;
  22624. flex-wrap: nowrap;
  22625. align-items: center;
  22626. cursor: pointer;
  22627. }
  22628. .homebox {
  22629. display: flex;
  22630. flex-wrap: wrap;
  22631. flex-direction: row;
  22632. justify-content: flex-start;
  22633. align-items: center;
  22634. padding: 15px 0;
  22635. }
  22636. .isChooseActive {
  22637. color: #3681fc !important;
  22638. font-weight: bold !important;
  22639. }
  22640. .chooseWho {
  22641. display: flex;
  22642. width: 100%;
  22643. flex-direction: row;
  22644. flex-wrap: nowrap;
  22645. justify-content: flex-start;
  22646. padding-bottom: 10px;
  22647. }
  22648. .chooseWho > div {
  22649. cursor: pointer;
  22650. padding-bottom: 10px;
  22651. margin: 0 30px 0 0;
  22652. font-weight: 400;
  22653. color: #0e1e33;
  22654. }
  22655. .addPoint > div > img {
  22656. cursor: pointer;
  22657. width: 85px;
  22658. border-radius: 15px;
  22659. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  22660. }
  22661. .addPoint > div {
  22662. display: flex;
  22663. flex-direction: column;
  22664. flex-wrap: nowrap;
  22665. align-items: center;
  22666. }
  22667. .isBorder > div {
  22668. margin: 0 0 10px 0;
  22669. align-items: flex-start !important;
  22670. }
  22671. .noiframeBox {
  22672. display: flex;
  22673. flex-wrap: wrap;
  22674. }
  22675. .iframeBox iframe {
  22676. width: 100%;
  22677. height: 800px;
  22678. border: none;
  22679. margin-bottom: 20px;
  22680. border: 1px solid #ccc;
  22681. }
  22682. .upload_toolBtn {
  22683. background: #3681fc;
  22684. color: #fff;
  22685. width: 110px;
  22686. text-align: center;
  22687. height: 35px;
  22688. line-height: 35px;
  22689. font-size: 14px;
  22690. border-radius: 5px;
  22691. cursor: pointer;
  22692. position: absolute;
  22693. right: 10px;
  22694. bottom: 0;
  22695. }
  22696. .binfo_input,
  22697. .pj {
  22698. font: inherit;
  22699. color: currentColor;
  22700. width: 100%;
  22701. margin: 0;
  22702. padding: 15px 14px;
  22703. display: block;
  22704. min-width: 0;
  22705. outline: none;
  22706. box-sizing: content-box;
  22707. background: none;
  22708. -webkit-tap-highlight-color: transparent;
  22709. border: 1px solid rgba(0, 0, 0, 0.23);
  22710. border-radius: 4px;
  22711. box-sizing: border-box;
  22712. resize: none;
  22713. }
  22714. .binfo_input:focus-visible {
  22715. border: 1px solid rgba(61, 103, 188);
  22716. }
  22717. .dialog_diy >>> .el-dialog__header,
  22718. .dialog_diy1 >>> .el-dialog__header {
  22719. background: #454545 !important;
  22720. padding: 15px 20px;
  22721. }
  22722. .dialog_diy >>> .el-dialog__title,
  22723. .dialog_diy1 >>> .el-dialog__title {
  22724. color: #fff;
  22725. }
  22726. .dialog_diy >>> .el-dialog__headerbtn,
  22727. .dialog_diy1 >>> .el-dialog__headerbtn {
  22728. top: 19px;
  22729. }
  22730. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  22731. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  22732. color: #fff;
  22733. }
  22734. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  22735. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  22736. color: #fff;
  22737. }
  22738. .dialog_diy1 >>> .el-dialog__body {
  22739. padding: 0;
  22740. }
  22741. .dialog_diy >>> .el-dialog__body,
  22742. .dialog_diy >>> .el-dialog__footer,
  22743. .dialog_diy1 >>> .el-dialog__footer {
  22744. background: #fafafa;
  22745. }
  22746. .a_addBox {
  22747. padding: 0 0 0 15px;
  22748. }
  22749. .a_add_box {
  22750. padding: 10px;
  22751. background: #fff;
  22752. margin-bottom: 10px;
  22753. border-radius: 5px;
  22754. box-shadow: 0 0 5px 0 #d5d5d5;
  22755. }
  22756. .a_add_head {
  22757. display: flex;
  22758. align-items: flex-start;
  22759. /* justify-content: space-between; */
  22760. flex-direction: column;
  22761. /* flex-direction: row; */
  22762. margin: 10px 0 20px 0;
  22763. font-size: 18px;
  22764. width: 100%;
  22765. }
  22766. .askIndex {
  22767. background: #3681fc;
  22768. border-radius: 50%;
  22769. color: #fff;
  22770. width: 25px;
  22771. height: 25px;
  22772. min-width: 25px;
  22773. min-height: 25px;
  22774. text-align: center;
  22775. line-height: 25px;
  22776. margin-right: 5px;
  22777. }
  22778. .a_add_head .a_add_head_input {
  22779. width: 300px;
  22780. }
  22781. .a_add_head .a_add_head_div {
  22782. display: flex;
  22783. align-items: center;
  22784. justify-content: space-between;
  22785. }
  22786. .a_add_body {
  22787. display: flex;
  22788. align-items: center;
  22789. }
  22790. .a_add_input {
  22791. display: flex;
  22792. align-items: center;
  22793. flex-wrap: wrap;
  22794. width: 100%;
  22795. }
  22796. .a_add_input >>> .el-radio-group,
  22797. .a_add_input >>> .el-checkbox-group {
  22798. width: 100%;
  22799. }
  22800. .a_add_input >>> .el-radio,
  22801. .a_add_input >>> .el-checkbox {
  22802. display: flex;
  22803. flex-direction: row;
  22804. flex-wrap: nowrap;
  22805. align-items: center;
  22806. padding: 15px 0;
  22807. }
  22808. .a_add_input >>> .el-radio:not(:last-child),
  22809. .a_add_input >>> .el-checkbox:not(:last-child) {
  22810. width: 100%;
  22811. border-bottom: 1px solid #efefef;
  22812. }
  22813. .redioStyle >>> .el-radio__label {
  22814. font-size: 18px;
  22815. }
  22816. .redioStyle >>> .el-radio__label > span,
  22817. .redioStyle >>> .el-checkbox__label > span {
  22818. word-break: break-all;
  22819. white-space: normal;
  22820. }
  22821. .redioStyle >>> .el-checkbox__label {
  22822. font-size: 18px;
  22823. }
  22824. .toolHeng2 {
  22825. width: 100%;
  22826. padding-left: 15px;
  22827. box-sizing: border-box;
  22828. }
  22829. .workNav {
  22830. font-size: 20px;
  22831. font-weight: bold;
  22832. color: #0e1e33;
  22833. display: flex;
  22834. flex-direction: row;
  22835. flex-wrap: nowrap;
  22836. align-items: center;
  22837. padding: 15px 0 15px 0;
  22838. }
  22839. .workNav::before {
  22840. content: "";
  22841. width: 2px;
  22842. height: 22px;
  22843. background: #3681fc;
  22844. border-radius: 3px;
  22845. display: block;
  22846. margin: 2px 6px 0 0;
  22847. }
  22848. .toolHeng {
  22849. display: flex;
  22850. flex-direction: row;
  22851. flex-wrap: wrap;
  22852. justify-content: flex-start;
  22853. align-items: center;
  22854. width: 100%;
  22855. }
  22856. .toolHeng > div {
  22857. padding-left: 20px;
  22858. }
  22859. .isWidth {
  22860. width: 20%;
  22861. }
  22862. .textTitle {
  22863. display: flex;
  22864. flex-direction: row;
  22865. flex-wrap: nowrap;
  22866. align-items: center;
  22867. width: 95%;
  22868. }
  22869. .textTitle >>> .el-form-item__label {
  22870. font-size: 22px;
  22871. color: #918f8f;
  22872. width: 100px;
  22873. }
  22874. .textTitle >>> .el-form-item__content {
  22875. width: calc(100% - 100px);
  22876. }
  22877. .textCss >>> .el-dialog {
  22878. width: 800px !important;
  22879. height: 400px;
  22880. background: #fafafa;
  22881. }
  22882. .textCss >>> .el-dialog__body {
  22883. margin: 55px 8% 0 8%;
  22884. padding: 0 !important;
  22885. }
  22886. .textCss >>> .el-dialog__footer {
  22887. padding-top: 38px;
  22888. }
  22889. .toolsCss >>> .el-dialog__body {
  22890. padding: 20px;
  22891. }
  22892. .lineCss >>> .el-dialog__body {
  22893. display: flex;
  22894. flex-direction: row;
  22895. align-items: center;
  22896. justify-content: center;
  22897. }
  22898. .newNav {
  22899. display: flex;
  22900. flex-direction: row;
  22901. align-items: baseline;
  22902. justify-content: flex-start;
  22903. }
  22904. .navListItem {
  22905. width: calc(100% - 20px);
  22906. height: 50px;
  22907. margin: 0px auto 10px;
  22908. display: flex;
  22909. flex-direction: row;
  22910. flex-wrap: nowrap;
  22911. align-items: center;
  22912. justify-content: space-between;
  22913. background: #f0f4fa;
  22914. border-radius: 6px 6px 6px 6px;
  22915. }
  22916. .navText {
  22917. cursor: pointer;
  22918. white-space: nowrap;
  22919. overflow: hidden;
  22920. text-overflow: ellipsis;
  22921. width: 220px;
  22922. padding: 0 10px;
  22923. font-weight: 400;
  22924. color: #0e1e33;
  22925. }
  22926. .downIcon {
  22927. width: 20px;
  22928. min-width: 20px;
  22929. height: 20px;
  22930. margin-right: 15px;
  22931. cursor: pointer;
  22932. }
  22933. .downIcon > img {
  22934. width: 100%;
  22935. height: 100%;
  22936. }
  22937. .noVedio {
  22938. display: flex;
  22939. flex-direction: row;
  22940. justify-content: center;
  22941. align-content: center;
  22942. }
  22943. .noNavText {
  22944. cursor: pointer;
  22945. margin: 0px 0px 10px 5px;
  22946. width: 112px;
  22947. }
  22948. .listNoVedio {
  22949. margin: 0 0 0 30px;
  22950. width: 97%;
  22951. }
  22952. .video-player >>> .video-js {
  22953. height: 100%;
  22954. }
  22955. .hangVedioList {
  22956. width: 90% !important;
  22957. height: 150px !important;
  22958. margin: 20px 0 0 30px;
  22959. }
  22960. .hangVedio {
  22961. width: 100%;
  22962. height: 170px !important;
  22963. align-items: flex-start !important;
  22964. }
  22965. .hangHand {
  22966. height: 150px !important;
  22967. }
  22968. .twoChild {
  22969. width: 95%;
  22970. margin: 10px;
  22971. border-radius: 5px;
  22972. background: #f2f2f2;
  22973. display: flex;
  22974. flex-direction: column;
  22975. flex-wrap: nowrap;
  22976. justify-content: flex-start;
  22977. align-items: flex-start;
  22978. transition: all 0.5s;
  22979. overflow: hidden;
  22980. height: 0;
  22981. background: #e7f3ff;
  22982. }
  22983. .twoChild > div:nth-child(1) {
  22984. margin-top: 5px;
  22985. }
  22986. .navChild {
  22987. width: 100%;
  22988. cursor: pointer;
  22989. margin-bottom: 10px;
  22990. position: relative;
  22991. }
  22992. .navChild img {
  22993. position: absolute;
  22994. right: 11px;
  22995. width: 15px;
  22996. top: 50%;
  22997. transform: translateY(-50%);
  22998. }
  22999. .navActive,
  23000. .toolActive {
  23001. height: auto !important;
  23002. overflow: auto !important;
  23003. /* padding-bottom: 16px; */
  23004. }
  23005. .toolActive {
  23006. padding: 0;
  23007. }
  23008. .navTask {
  23009. display: flex;
  23010. flex-direction: row;
  23011. flex-wrap: nowrap;
  23012. align-items: center;
  23013. align-content: flex-start;
  23014. height: 40px;
  23015. justify-content: flex-start;
  23016. padding: 0 10px;
  23017. width: 100%;
  23018. box-sizing: border-box;
  23019. }
  23020. .navTaskname {
  23021. white-space: nowrap;
  23022. text-overflow: ellipsis;
  23023. overflow: hidden;
  23024. word-break: break-all;
  23025. padding-left: 5px;
  23026. }
  23027. .openTaskActive {
  23028. /* background-color: #e0eafb !important;
  23029. color: #0061ff; */
  23030. color:#fff;
  23031. background: rgb(55, 129, 252) !important;
  23032. }
  23033. .iframeName {
  23034. margin: 5px 0;
  23035. border-left: 4px solid #41c4a4;
  23036. padding-left: 4px;
  23037. }
  23038. .toolTitle {
  23039. margin: 0px 0px 20px;
  23040. font-size: 20px;
  23041. font-weight: 500;
  23042. border-left: 4px solid #41c4a4;
  23043. padding-left: 4px;
  23044. }
  23045. .cru_selectBox {
  23046. overflow: auto;
  23047. width: 95%;
  23048. margin: 17px auto 0;
  23049. height: calc(100% - 40px - 21px - 20px - 17px);
  23050. background: #fff;
  23051. border-radius: 8px;
  23052. }
  23053. .cru_selectBox::-webkit-scrollbar,
  23054. .study_top::-webkit-scrollbar,
  23055. .textContent::-webkit-scrollbar {
  23056. /*滚动条整体样式*/
  23057. width: 6px;
  23058. /*高宽分别对应横竖滚动条的尺寸*/
  23059. height: 6px;
  23060. }
  23061. /*定义滚动条轨道 内阴影+圆角*/
  23062. .cru_selectBox::-webkit-scrollbar-track,
  23063. .study_top::-webkit-scrollbar-track,
  23064. .textContent::-webkit-scrollbar {
  23065. border-radius: 10px;
  23066. background-color: #b8bdc9;
  23067. }
  23068. /*定义滑块 内阴影+圆角*/
  23069. .cru_selectBox::-webkit-scrollbar-thumb,
  23070. .study_top::-webkit-scrollbar-thumb,
  23071. .textContent::-webkit-scrollbar-thumb {
  23072. border-radius: 10px;
  23073. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  23074. background-color: #2c5ab3;
  23075. }
  23076. .vedioBox {
  23077. border-radius: 0 0 20px 20px;
  23078. background: #fff;
  23079. overflow: auto;
  23080. }
  23081. .taskBox {
  23082. width: 98%;
  23083. background: #f0f4fa;
  23084. margin: 10px auto;
  23085. padding: 0 10px;
  23086. border-radius: 4px;
  23087. box-sizing: border-box;
  23088. }
  23089. .vedioTaskBox {
  23090. width: 100%;
  23091. display: flex;
  23092. flex-direction: row;
  23093. flex-wrap: nowrap;
  23094. align-items: flex-start;
  23095. position: relative;
  23096. }
  23097. .toolBox {
  23098. margin: 15px 0 0 25px;
  23099. display: flex;
  23100. position: relative;
  23101. padding: 18px 20px;
  23102. border-top-left-radius: 5px;
  23103. border-top-right-radius: 5px;
  23104. width: 90%;
  23105. }
  23106. .btnAll {
  23107. position: absolute;
  23108. right: 0;
  23109. display: flex;
  23110. flex-direction: row;
  23111. flex-wrap: nowrap;
  23112. align-items: center;
  23113. }
  23114. .btnLeft,
  23115. .btnRight {
  23116. display: flex;
  23117. flex-direction: row;
  23118. flex-wrap: nowrap;
  23119. align-items: center;
  23120. padding: 5px 0;
  23121. }
  23122. .btnLeft {
  23123. border-right: 1px solid #cad1dc;
  23124. }
  23125. .btnLeft > .custom-tooltip {
  23126. background: #3681fc;
  23127. color: #fff;
  23128. }
  23129. .last:hover {
  23130. background: #3383fa !important;
  23131. color: #fff;
  23132. border: 1px solid #3383fa !important;
  23133. }
  23134. .last,
  23135. .returnBtn1 {
  23136. width: 90px;
  23137. height: 36px;
  23138. background: #ffffff;
  23139. border-radius: 4px;
  23140. border: 1px solid #0061ff;
  23141. color: #0061ff;
  23142. cursor: pointer;
  23143. display: flex;
  23144. flex-direction: row;
  23145. flex-wrap: nowrap;
  23146. align-items: center;
  23147. justify-content: center;
  23148. margin-left: 12px;
  23149. }
  23150. .returnBtn1 {
  23151. background: #f0f4fa;
  23152. border-radius: 4px;
  23153. border: 1px solid #cad1dc;
  23154. margin: 0 12px;
  23155. }
  23156. .lastImg {
  23157. min-width: 15px;
  23158. width: 15px;
  23159. height: 15px;
  23160. display: flex;
  23161. }
  23162. .lastText {
  23163. padding: 0 5px 0 5px;
  23164. box-sizing: border-box;
  23165. font-size: 14px;
  23166. }
  23167. .lastImg > img {
  23168. width: 100%;
  23169. height: 100%;
  23170. }
  23171. /* .vedioTimeBox {
  23172. display: flex;
  23173. flex-direction: row;
  23174. align-items: center;
  23175. flex-wrap: nowrap;
  23176. position: relative;
  23177. } */
  23178. .navBox {
  23179. background: #fff;
  23180. height: calc(100% - 40px);
  23181. overflow-y: auto;
  23182. overflow-x: hidden;
  23183. }
  23184. .worksBox {
  23185. margin: 0 0 10px 25px;
  23186. border-bottom: 1px solid #eeeeee;
  23187. padding: 18px 20px;
  23188. border-radius: 4px;
  23189. width: 90%;
  23190. }
  23191. .worksBTitle {
  23192. font-size: 20px;
  23193. padding-bottom: 15px;
  23194. border-bottom: 1px solid #eeeeee;
  23195. display: flex;
  23196. align-items: center;
  23197. }
  23198. .greenBox {
  23199. width: 5px;
  23200. height: 30px;
  23201. background: #63b6fa;
  23202. margin-right: 5px;
  23203. }
  23204. .worksDetailBox {
  23205. display: flex;
  23206. width: 100%;
  23207. flex-direction: row;
  23208. flex-wrap: wrap;
  23209. align-items: flex-end;
  23210. justify-content: flex-start;
  23211. padding: 15px 5px;
  23212. box-sizing: border-box;
  23213. }
  23214. .works {
  23215. display: flex;
  23216. flex-direction: column;
  23217. flex-wrap: nowrap;
  23218. align-items: flex-start;
  23219. justify-content: flex-start;
  23220. align-content: center;
  23221. max-width: 240px;
  23222. width: calc(100% / 3 - 10px);
  23223. height: auto;
  23224. margin-right: 10px;
  23225. margin-bottom: 10px;
  23226. overflow: hidden;
  23227. height: 140px;
  23228. box-shadow: 0 0 6px 1px #dfdada;
  23229. border-radius: 15px;
  23230. }
  23231. .workImg {
  23232. width: 100%;
  23233. /* height: calc(100% - 40px); */
  23234. height: 105px;
  23235. position: relative;
  23236. }
  23237. .workImg > img {
  23238. width: 100%;
  23239. height: 100%;
  23240. object-fit: contain;
  23241. cursor: pointer;
  23242. }
  23243. .worksName {
  23244. height: 40px;
  23245. line-height: 40px;
  23246. display: flex;
  23247. width: 100%;
  23248. flex-direction: row;
  23249. flex-wrap: nowrap;
  23250. justify-content: space-between;
  23251. align-items: center;
  23252. margin: 0 0 0 10px;
  23253. }
  23254. .worksName > div:nth-child(1) {
  23255. width: 110px;
  23256. white-space: nowrap;
  23257. overflow: hidden;
  23258. text-overflow: ellipsis;
  23259. }
  23260. .worksName > div:nth-child(2) {
  23261. color: #b7b4b5;
  23262. }
  23263. .noWorksS {
  23264. padding: 15px 0;
  23265. display: flex;
  23266. flex-direction: row;
  23267. flex-wrap: wrap;
  23268. align-items: center;
  23269. justify-content: flex-start;
  23270. }
  23271. .noWorksName,
  23272. .isWorksName,
  23273. .isWorksName2 {
  23274. background: #ddebf8;
  23275. color: #000;
  23276. width: 90px;
  23277. height: 25px;
  23278. text-align: center;
  23279. line-height: 25px;
  23280. border-radius: 4px;
  23281. margin: 10px 15px 10px 0;
  23282. white-space: nowrap;
  23283. overflow: hidden;
  23284. padding: 5px;
  23285. text-overflow: ellipsis;
  23286. cursor: pointer;
  23287. border: 1px solid #ddebf8;
  23288. }
  23289. .noWorksName {
  23290. background: #fff;
  23291. color: #0061ff;
  23292. border: 1px solid #0061ff;
  23293. }
  23294. .noWorksName > span{
  23295. max-width: 100%;
  23296. display: block;
  23297. overflow: hidden;
  23298. text-overflow: ellipsis;
  23299. white-space: nowrap;
  23300. }
  23301. .isWorksName2 {
  23302. width: 100px;
  23303. height: 40px;
  23304. line-height: 40px;
  23305. position: relative;
  23306. background: #dae6f9;
  23307. }
  23308. .isWorksName {
  23309. background: #e7ebf1 !important;
  23310. width: 100px;
  23311. height: 40px;
  23312. line-height: 40px;
  23313. position: relative;
  23314. color: #acb4bf;
  23315. border: 1px solid #cad1dc !important;
  23316. }
  23317. .isSelectName,
  23318. .noWorksName:hover {
  23319. background: #3383fa !important;
  23320. color: #fff !important;
  23321. border: 1px solid #3383fa !important;
  23322. }
  23323. .title {
  23324. background: #1e5cc9;
  23325. /* width: 98%; */
  23326. height: 45px;
  23327. color: #fff;
  23328. line-height: 45px;
  23329. padding-left: 20px;
  23330. box-sizing: border-box;
  23331. }
  23332. .textBox {
  23333. font-size: 20px;
  23334. width: 90%;
  23335. display: flex;
  23336. flex-direction: column;
  23337. align-items: center;
  23338. margin: 20px auto 0;
  23339. max-height: calc(100% - 75px);
  23340. overflow: auto;
  23341. }
  23342. .textContent {
  23343. font-size: 18px;
  23344. width: 95%;
  23345. max-width: 95%;
  23346. }
  23347. .answerBg {
  23348. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  23349. background-size: 100% 100%;
  23350. width: 100%;
  23351. height: 100%;
  23352. color: #fff;
  23353. text-align: center;
  23354. display: flex;
  23355. flex-direction: column;
  23356. flex-wrap: nowrap;
  23357. align-items: center;
  23358. position: relative;
  23359. justify-content: center;
  23360. }
  23361. /* .answerBg > div:nth-child(1) {
  23362. font-size: 22px;
  23363. padding: 25px 0 10px;
  23364. } */
  23365. .answerContent {
  23366. width: 215px;
  23367. max-height: 60px;
  23368. word-break: break-all;
  23369. text-align: center;
  23370. /* white-space: nowrap; */
  23371. overflow: hidden;
  23372. text-overflow: ellipsis;
  23373. /* padding: 23px 0 0; */
  23374. -webkit-line-clamp: 3;
  23375. -webkit-box-orient: vertical;
  23376. display: -webkit-box;
  23377. font-size: 15px;
  23378. cursor: pointer;
  23379. }
  23380. .elist_input_box {
  23381. display: flex;
  23382. align-items: flex-start;
  23383. flex-wrap: nowrap;
  23384. padding: 10px 0 15px 30px;
  23385. flex-direction: column;
  23386. }
  23387. .elist_input {
  23388. /* width: 40%; */
  23389. width: 45%;
  23390. margin: 20px;
  23391. }
  23392. .elist_input .elist_input_box input {
  23393. font: inherit;
  23394. color: currentColor;
  23395. width: 200px;
  23396. padding: 8px 14px;
  23397. display: block;
  23398. min-width: 0;
  23399. outline: none;
  23400. border: 1px solid rgba(0, 0, 0, 0.23);
  23401. border-radius: 4px;
  23402. box-sizing: border-box;
  23403. background: #fff;
  23404. margin: 0 20px 0 0;
  23405. }
  23406. .elist_input .elist_input_box span {
  23407. height: 36px;
  23408. line-height: 36px;
  23409. color: rgb(82, 82, 82);
  23410. }
  23411. .elist_input .elist_input_box .remove {
  23412. height: 20px;
  23413. width: 20px;
  23414. background-size: 100% 100%;
  23415. background-position: unset;
  23416. margin-left: 5px;
  23417. }
  23418. .elist_input_box >>> .el-rate {
  23419. display: flex;
  23420. height: 36px;
  23421. align-items: center;
  23422. }
  23423. .elist_input_box .elist_inptu_text {
  23424. min-height: 50px;
  23425. /* width: 500px;
  23426. max-height: 150px; */
  23427. width: 100%;
  23428. line-height: 50px;
  23429. color: rgb(82, 82, 82);
  23430. overflow: auto;
  23431. text-indent: 5px;
  23432. background: #f7f6f9;
  23433. border-radius: 10px;
  23434. }
  23435. .elist_input_box .elist_inptu_text input {
  23436. width: 500px;
  23437. }
  23438. .elist_input_box >>> .el-rate__icon {
  23439. font-size: 24px;
  23440. }
  23441. .isClick {
  23442. background: #4d9def;
  23443. }
  23444. .bzBox {
  23445. display: flex;
  23446. flex-direction: row;
  23447. align-items: center;
  23448. }
  23449. .bzBox .yCss {
  23450. width: 7px;
  23451. height: 7px;
  23452. background: #fff;
  23453. margin: 0 16px 0 6px;
  23454. border-radius: 50%;
  23455. border: 5px solid #3681fc;
  23456. z-index: 99;
  23457. }
  23458. .bzBox > div:nth-child(2) {
  23459. font-size: 18px;
  23460. font-weight: bold;
  23461. color: #0e1e33;
  23462. }
  23463. .navTitile {
  23464. padding: 0 0px 0 15px;
  23465. font-size: 16px;
  23466. font-weight: bold;
  23467. color: #0e1e33;
  23468. height: 40px;
  23469. line-height: 40px;
  23470. }
  23471. .isTypeOne {
  23472. width: 240px;
  23473. height: 170px;
  23474. /* border: 1px solid #f8f8f8; */
  23475. border-radius: 10px;
  23476. box-shadow: 0 0 6px 1px #dfdada;
  23477. }
  23478. .e_add_top {
  23479. display: flex;
  23480. justify-content: space-between;
  23481. padding: 10px 20px;
  23482. border-radius: 3px;
  23483. background: #fff;
  23484. }
  23485. .e_add_title2 {
  23486. display: flex;
  23487. align-items: center;
  23488. }
  23489. .e_add_title2 span {
  23490. width: 40px;
  23491. }
  23492. .e_add_title {
  23493. display: flex;
  23494. align-items: center;
  23495. color: #b8b8b8;
  23496. font-size: 18px;
  23497. position: relative;
  23498. height: 40px;
  23499. }
  23500. .e_add_title span {
  23501. margin-right: 10px;
  23502. }
  23503. .e_add_title .el_input {
  23504. width: 300px;
  23505. }
  23506. .e_add_title >>> .el-input__inner {
  23507. width: 400px;
  23508. }
  23509. /* .e_add_btn {
  23510. } */
  23511. .e_add_content {
  23512. display: flex;
  23513. width: 100%;
  23514. max-width: 650px;
  23515. height: 550px;
  23516. }
  23517. .e_add_list {
  23518. background: #fff;
  23519. height: 500px;
  23520. width: 210px;
  23521. position: relative;
  23522. margin: 15px 5px 0 0;
  23523. flex-shrink: 0;
  23524. display: flex;
  23525. flex-direction: column;
  23526. }
  23527. .e_add_list_title {
  23528. font-size: 20px;
  23529. width: 100%;
  23530. box-sizing: border-box;
  23531. padding: 15px 40px;
  23532. text-align: center;
  23533. border-bottom: 1px solid #eaeaea;
  23534. position: relative;
  23535. display: flex;
  23536. align-items: center;
  23537. justify-content: center;
  23538. height: 57px;
  23539. background: #f6f6f6;
  23540. }
  23541. .e_add_list_title span {
  23542. overflow: hidden;
  23543. white-space: nowrap;
  23544. text-overflow: ellipsis;
  23545. }
  23546. .e_add_list_title img {
  23547. position: absolute;
  23548. right: 15px;
  23549. width: 25px;
  23550. cursor: pointer;
  23551. top: 50%;
  23552. transform: translateY(-50%);
  23553. }
  23554. .e_add_list_body {
  23555. height: calc(100% - 187px);
  23556. overflow: auto;
  23557. }
  23558. .e_add_list_child {
  23559. width: 100%;
  23560. display: flex;
  23561. align-items: center;
  23562. justify-content: center;
  23563. position: relative;
  23564. box-sizing: border-box;
  23565. padding: 15px 40px;
  23566. text-align: center;
  23567. }
  23568. .e_add_list_child span {
  23569. overflow: hidden;
  23570. white-space: nowrap;
  23571. text-overflow: ellipsis;
  23572. cursor: pointer;
  23573. }
  23574. .e_add_list_child img {
  23575. position: absolute;
  23576. right: 10px;
  23577. width: 21px;
  23578. cursor: pointer;
  23579. top: 50%;
  23580. transform: translateY(-50%);
  23581. }
  23582. .e_add_list_child + .e_add_list_child {
  23583. border-top: 1px solid #eaeaea;
  23584. }
  23585. .e_add_list_child .active {
  23586. color: #409eff;
  23587. }
  23588. .e_add_list_btn {
  23589. position: absolute;
  23590. bottom: 0;
  23591. height: 50px;
  23592. background: rgb(120, 120, 254);
  23593. width: 100%;
  23594. color: #fff;
  23595. font-size: 16px;
  23596. text-align: center;
  23597. line-height: 50px;
  23598. cursor: pointer;
  23599. }
  23600. .e_add_list_detail {
  23601. position: absolute;
  23602. bottom: 0;
  23603. height: 130px;
  23604. background: rgb(120, 120, 254);
  23605. width: 100%;
  23606. color: #fff;
  23607. font-size: 16px;
  23608. display: flex;
  23609. align-items: center;
  23610. justify-content: center;
  23611. }
  23612. .e_add_list_detail textarea {
  23613. height: 90%;
  23614. width: 95%;
  23615. border: none;
  23616. resize: none;
  23617. outline: none;
  23618. padding: 5px;
  23619. box-sizing: border-box;
  23620. }
  23621. .e_add_list_pbox {
  23622. width: 100%;
  23623. max-width: 650px;
  23624. /* height: 600px; */
  23625. }
  23626. .e_add_list_pbox_title {
  23627. height: 50px;
  23628. background: #fff;
  23629. display: flex;
  23630. align-items: center;
  23631. width: 100%;
  23632. box-sizing: border-box;
  23633. padding: 0 20px;
  23634. }
  23635. .type_title {
  23636. font-size: 18px;
  23637. font-weight: 700;
  23638. }
  23639. .type_content {
  23640. font-size: 16px;
  23641. /* margin-left: 30px; */
  23642. }
  23643. .type_content span + span {
  23644. margin-left: 20px;
  23645. }
  23646. .type_content span {
  23647. cursor: pointer;
  23648. padding-bottom: 5px;
  23649. box-sizing: border-box;
  23650. }
  23651. .type_content .active {
  23652. color: #409eff;
  23653. border-bottom: 2px solid #409eff;
  23654. }
  23655. .e_add_list_pbox_content {
  23656. height: calc(100% - 50px);
  23657. display: flex;
  23658. align-items: center;
  23659. width: 100%;
  23660. background: #fff;
  23661. }
  23662. .evaCss {
  23663. display: flex;
  23664. flex-direction: row;
  23665. flex-wrap: nowrap;
  23666. align-items: flex-start;
  23667. padding: 0 0 20px;
  23668. }
  23669. .cru_line {
  23670. position: absolute;
  23671. bottom: 0px;
  23672. transition: all 0.5s;
  23673. left: 0px;
  23674. width: 125px;
  23675. margin-left: -25px;
  23676. }
  23677. .isNoMessage {
  23678. width: 20%;
  23679. margin: 25% auto 0;
  23680. }
  23681. .isNoMessage > img {
  23682. width: 100%;
  23683. height: 100%;
  23684. }
  23685. .fullStyle >>> .el-dialog__body {
  23686. height: 100% !important;
  23687. }
  23688. .fullStyle >>> .el-dialog,
  23689. .fullStyle {
  23690. width: 100% !important;
  23691. max-width: 100% !important;
  23692. height: 100% !important;
  23693. margin: 0 !important;
  23694. }
  23695. .full_diy >>> .el-dialog {
  23696. margin: 0 !important;
  23697. height: 100%;
  23698. padding: 4px;
  23699. }
  23700. .full_diy >>> .el-dialog__body {
  23701. height: calc(100% - 100px);
  23702. }
  23703. .full_diy2 >>> .el-dialog__body {
  23704. height: calc(100% - 50px);
  23705. padding: 0;
  23706. }
  23707. .switchCss {
  23708. /* width: 100%; */
  23709. display: flex;
  23710. flex-direction: row;
  23711. flex-wrap: nowrap;
  23712. align-items: center;
  23713. /* justify-content: center; */
  23714. }
  23715. .isClickNav {
  23716. /* color: #499eef; */
  23717. color: #000;
  23718. }
  23719. .commentImg {
  23720. width: 25px;
  23721. height: 25px;
  23722. cursor: pointer;
  23723. }
  23724. .commentImg > img {
  23725. width: 100%;
  23726. height: 100%;
  23727. }
  23728. .comment {
  23729. background: #f9f9f9;
  23730. border-radius: 0 0 4px 4px;
  23731. display: flex;
  23732. flex-direction: row;
  23733. flex-wrap: nowrap;
  23734. align-items: center;
  23735. justify-content: flex-end;
  23736. height: 35px;
  23737. }
  23738. .commentList {
  23739. display: flex;
  23740. flex-direction: row;
  23741. flex-wrap: nowrap;
  23742. align-items: center;
  23743. justify-content: center;
  23744. align-content: center;
  23745. /* margin-left: 15px; */
  23746. /* margin-left: 8px; */
  23747. }
  23748. .scoreImg {
  23749. width: 17px;
  23750. height: 17px;
  23751. }
  23752. .studentDetail {
  23753. display: flex;
  23754. flex-direction: row;
  23755. flex-wrap: nowrap;
  23756. /* align-items: center; */
  23757. align-items: flex-start;
  23758. }
  23759. .tx {
  23760. width: 50px;
  23761. }
  23762. .tx > img {
  23763. width: 100%;
  23764. height: 100%;
  23765. }
  23766. .nameAndTime {
  23767. display: flex;
  23768. flex-direction: column;
  23769. flex-wrap: nowrap;
  23770. align-items: flex-start;
  23771. margin-left: 10px;
  23772. }
  23773. .worksAnswer {
  23774. color: #4078dd;
  23775. margin: 10px 0;
  23776. font-size: 16px;
  23777. position: relative;
  23778. }
  23779. .worksAnswer > img {
  23780. width: 500px;
  23781. height: 300px;
  23782. object-fit: contain;
  23783. margin: 0 auto;
  23784. display: block;
  23785. }
  23786. .commentTop {
  23787. border-bottom: 1px solid #eaeaea;
  23788. padding-bottom: 10px;
  23789. }
  23790. .commentBox {
  23791. padding-top: 15px;
  23792. }
  23793. .pl {
  23794. font-size: 18px;
  23795. }
  23796. .plPerson {
  23797. width: 100%;
  23798. }
  23799. .plName {
  23800. display: flex;
  23801. flex-direction: row;
  23802. flex-wrap: nowrap;
  23803. align-items: baseline;
  23804. color: #78787a;
  23805. width: 100%;
  23806. }
  23807. .deleteComment {
  23808. cursor: pointer;
  23809. margin-left: auto;
  23810. color: #237ade;
  23811. }
  23812. .plContent {
  23813. margin-top: 5px;
  23814. }
  23815. .evalCss {
  23816. background: #fff;
  23817. font-size: 18px;
  23818. }
  23819. .nav {
  23820. color: #9d9d9d;
  23821. padding: 5px 0 15px 20px;
  23822. }
  23823. .middleBox {
  23824. padding: 5px 0 15px 20px;
  23825. }
  23826. .pfBox {
  23827. padding-bottom: 30px;
  23828. }
  23829. .nameAndrate {
  23830. display: flex;
  23831. flex-direction: row;
  23832. flex-wrap: nowrap;
  23833. align-items: center;
  23834. padding-bottom: 10px;
  23835. height: 30px;
  23836. line-height: 30px;
  23837. }
  23838. .nameAndrate > div {
  23839. margin-left: 10px;
  23840. color: #000;
  23841. height: 30px;
  23842. }
  23843. .nameAndrate >>> .el-rate__icon {
  23844. font-size: 28px !important;
  23845. }
  23846. .pfBox > div:nth-child(2) {
  23847. background: #f7f6f9;
  23848. width: 400px;
  23849. min-height: 45px;
  23850. border-radius: 10px;
  23851. font-size: 16px;
  23852. display: flex;
  23853. flex-wrap: wrap;
  23854. align-items: center;
  23855. padding: 10px 20px;
  23856. box-sizing: border-box;
  23857. color: #000;
  23858. }
  23859. .bz {
  23860. display: flex;
  23861. flex-direction: row;
  23862. flex-wrap: nowrap;
  23863. align-items: flex-start;
  23864. }
  23865. .bz > div {
  23866. padding: 0 10px;
  23867. }
  23868. .select_box2_title {
  23869. background: #fff;
  23870. border-radius: 5px;
  23871. padding: 15px 10px;
  23872. box-sizing: border-box;
  23873. margin-bottom: 10px;
  23874. display: flex;
  23875. flex-direction: row;
  23876. flex-wrap: nowrap;
  23877. align-items: center;
  23878. }
  23879. .select_box2_title > div:nth-child(2) {
  23880. margin-left: 10px;
  23881. color: #c4c4c4;
  23882. }
  23883. .select_box2_box {
  23884. display: flex;
  23885. height: 500px;
  23886. }
  23887. .select_box2_img {
  23888. width: calc(100% - 310px);
  23889. height: 100%;
  23890. overflow: auto;
  23891. background: #fff;
  23892. border-radius: 5px;
  23893. }
  23894. .select_box2_img img {
  23895. width: 100%;
  23896. }
  23897. .select_box2_answer {
  23898. background: #fff;
  23899. margin-left: 10px;
  23900. border-radius: 5px;
  23901. width: 300px;
  23902. overflow: auto;
  23903. height: 90%;
  23904. display: flex;
  23905. flex-direction: column;
  23906. align-items: flex-start;
  23907. padding-top: 10px;
  23908. box-sizing: border-box;
  23909. position: relative;
  23910. }
  23911. .select_answer_title {
  23912. padding: 0 0 15px 20px;
  23913. color: #c4c4c4;
  23914. }
  23915. .select_box2_answer_box {
  23916. margin: 0 0 10px 20px;
  23917. width: 85%;
  23918. display: flex;
  23919. flex-direction: row;
  23920. flex-wrap: nowrap;
  23921. align-items: center;
  23922. }
  23923. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  23924. color: #000;
  23925. }
  23926. .upAnswerCss {
  23927. position: absolute;
  23928. bottom: 15px;
  23929. right: 15px;
  23930. }
  23931. .upAnswerCss >>> .el-button {
  23932. width: 95px;
  23933. height: 35px;
  23934. line-height: 35px;
  23935. padding: 0;
  23936. }
  23937. .rightWidthCss {
  23938. width: 60%;
  23939. display: flex;
  23940. flex-direction: row;
  23941. align-items: flex-start;
  23942. }
  23943. .rightAnswer {
  23944. display: flex;
  23945. flex-direction: row;
  23946. flex-wrap: nowrap;
  23947. align-items: center;
  23948. color: red;
  23949. margin-bottom: 31px;
  23950. }
  23951. .rightAnswerCss {
  23952. display: flex;
  23953. flex-direction: column;
  23954. flex-wrap: nowrap;
  23955. padding-top: 60px;
  23956. }
  23957. .blueCss {
  23958. color: #767de1;
  23959. margin-left: 10px;
  23960. }
  23961. .redCss {
  23962. color: red;
  23963. }
  23964. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  23965. color: rgb(0 123 255) !important;
  23966. }
  23967. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  23968. color: rgb(0 123 255) !important;
  23969. }
  23970. .zuoyeYulan {
  23971. padding-top: 0;
  23972. font-size: 18px;
  23973. display: flex;
  23974. align-items: flex-end;
  23975. }
  23976. .buttonA {
  23977. margin-left: 10px;
  23978. padding: 0;
  23979. }
  23980. .displayBox {
  23981. margin-bottom: 10px;
  23982. display: block;
  23983. border-bottom: 3px solid #eee;
  23984. display: flex;
  23985. align-items: center;
  23986. }
  23987. .easy_comment {
  23988. width: calc(100% - 90px);
  23989. margin-left: 10px;
  23990. display: flex;
  23991. flex-wrap: wrap;
  23992. }
  23993. .easy_comment > div {
  23994. border: 1px solid #4a4a4a;
  23995. color: #666;
  23996. border-radius: 15px;
  23997. padding: 5px 10px;
  23998. font-size: 16px;
  23999. margin-bottom: 10px;
  24000. margin-right: 5px;
  24001. cursor: pointer;
  24002. }
  24003. .easy_comment div:hover {
  24004. border: 1px solid #f7ba2a;
  24005. color: #c69217;
  24006. }
  24007. .xuan_right_box {
  24008. padding: 10px 0;
  24009. background: #f0f4fa;
  24010. margin: 0 15px 0 25px;
  24011. border-bottom-left-radius: 5px;
  24012. border-bottom-right-radius: 5px;
  24013. width: 91.5%;
  24014. }
  24015. .tool_right_box {
  24016. display: flex;
  24017. align-items: center;
  24018. }
  24019. .tool_right_box + .tool_right_box {
  24020. margin-top: 10px;
  24021. }
  24022. .right_box_xuan {
  24023. border-radius: 5px;
  24024. padding: 5px;
  24025. margin-left: 10px;
  24026. min-width: 85px;
  24027. background: #fff;
  24028. color: #0061ff;
  24029. border: 1px solid #0061ff;
  24030. font-size: 14px;
  24031. }
  24032. .pButton:hover {
  24033. opacity: 1 !important;
  24034. }
  24035. .pButton {
  24036. position: fixed;
  24037. text-align: center;
  24038. cursor: pointer;
  24039. z-index: 999;
  24040. right: 20px;
  24041. top: 110px;
  24042. width: 50px;
  24043. height: 50px;
  24044. display: flex;
  24045. align-items: center;
  24046. justify-content: center;
  24047. border-radius: 5px;
  24048. }
  24049. .pzClass {
  24050. width: calc(100% - 340px);
  24051. }
  24052. .newDialogCss {
  24053. /* position: fixed;
  24054. right: 5%;
  24055. top: 50%;
  24056. width: 340px;
  24057. transform: translateY(-50%);
  24058. height: 60%;
  24059. box-shadow: 0px 0 8px 0px #555555;
  24060. border-radius: 15px;
  24061. z-index: 999; */
  24062. position: fixed;
  24063. right: 20px;
  24064. top: 101px;
  24065. width: 330px;
  24066. height: calc(100% - 80px);
  24067. z-index: 999;
  24068. background: #fff;
  24069. border-top-right-radius: 0px;
  24070. border-bottom-right-radius: 0px;
  24071. overflow: hidden;
  24072. }
  24073. .newDialogCss>.scoreList{
  24074. width:100%;
  24075. height:100%;
  24076. box-sizing:border-box;
  24077. padding:10px 15px;
  24078. overflow:auto;
  24079. padding-bottom:80px;
  24080. }
  24081. .pzTop {
  24082. color: #fff;
  24083. background: #000;
  24084. display: flex;
  24085. flex-direction: row;
  24086. flex-wrap: nowrap;
  24087. align-items: center;
  24088. justify-content: space-between;
  24089. height: 40px;
  24090. border-radius: 15px 15px 0 0;
  24091. user-select: none;
  24092. }
  24093. .pzTop2 .checkbox {
  24094. display: flex;
  24095. align-items: center;
  24096. padding: 5px 10px;
  24097. flex: 0 0 auto;
  24098. font-weight: bold;
  24099. border-bottom: 1px solid #eee;
  24100. justify-content: space-between;
  24101. }
  24102. .checkbox>.cb-tabList{
  24103. display:flex;
  24104. align-items:center;
  24105. }
  24106. .cb-tabList>div{
  24107. margin-right:20px;
  24108. font-weight:400;
  24109. cursor:pointer;
  24110. }
  24111. .cb-tabList>.cb-tabItem{
  24112. color:#1684FC;
  24113. position:relative;
  24114. }
  24115. .cb-tabItem::after{
  24116. content:"";
  24117. width:100%;
  24118. height:2px;
  24119. background:#1684FC;
  24120. position:absolute;
  24121. bottom:-5px;
  24122. left:0
  24123. }
  24124. .pzTop2 .check {
  24125. text-align: center;
  24126. cursor: pointer;
  24127. box-sizing: border-box;
  24128. display: flex;
  24129. }
  24130. .pzTop2 img {
  24131. width: 25px;
  24132. cursor: pointer;
  24133. }
  24134. .pzTop > div:nth-child(1) {
  24135. padding-left: 10px;
  24136. }
  24137. .pzTop > div:nth-child(2) {
  24138. width: 15px;
  24139. height: 15px;
  24140. padding-right: 10px;
  24141. cursor: pointer;
  24142. }
  24143. .pzTop > div:nth-child(2) > img {
  24144. width: 100%;
  24145. height: 100%;
  24146. }
  24147. .pzBox,
  24148. .noPzBox {
  24149. height: calc(100% - 60px);
  24150. /* background: #ededed; */
  24151. background: #fff;
  24152. /* border-radius: 0 0 15px 15px; */
  24153. }
  24154. .noPzBox {
  24155. display: flex;
  24156. flex-direction: column;
  24157. flex-wrap: nowrap;
  24158. justify-content: center;
  24159. align-items: center;
  24160. }
  24161. .pzList {
  24162. background: #f7f7f7;
  24163. width: 90%;
  24164. margin: 0 auto 15px;
  24165. border-radius: 5px;
  24166. }
  24167. .pzNavTop {
  24168. display: flex;
  24169. flex-direction: row;
  24170. flex-wrap: nowrap;
  24171. padding: 10px 10px 0 10px;
  24172. align-items: center;
  24173. }
  24174. .pzDelete {
  24175. cursor: pointer;
  24176. margin-left: auto;
  24177. font-size: 14px;
  24178. color: #afafaf;
  24179. }
  24180. .pzNavTop > div:nth-child(1) {
  24181. background: #3760af;
  24182. width: 35px;
  24183. height: 35px;
  24184. color: #fff;
  24185. text-align: center;
  24186. line-height: 35px;
  24187. border-radius: 50%;
  24188. font-size: 14px;
  24189. }
  24190. .pzNavTop > div:nth-child(2) {
  24191. font-size: 18px;
  24192. color: #959595;
  24193. margin-left: 5px;
  24194. }
  24195. .pzContent {
  24196. padding: 10px;
  24197. word-break: break-word;
  24198. }
  24199. .pzContent audio {
  24200. width: 100%;
  24201. }
  24202. .pzContent audio::-webkit-media-controls-panel {
  24203. background: #fff;
  24204. }
  24205. .pzContent >>> img {
  24206. max-width: 100%;
  24207. }
  24208. .pzListBox {
  24209. padding-top: 15px;
  24210. height: calc(100% - 110px);
  24211. overflow: auto;
  24212. }
  24213. .addPzButton {
  24214. position: relative;
  24215. margin-top: 3px;
  24216. width: 100%;
  24217. }
  24218. .addPzButton .img1 {
  24219. position: absolute;
  24220. top: 50%;
  24221. right: 25px;
  24222. transform: translateY(-50%);
  24223. height: 100%;
  24224. display: flex;
  24225. align-items: center;
  24226. }
  24227. .addPzButton .img1 div {
  24228. display: flex;
  24229. }
  24230. .addPzButton .img1 div img {
  24231. width: 28px;
  24232. margin-left: 10px;
  24233. cursor: pointer;
  24234. }
  24235. .addPzButton .img1 div span {
  24236. font-size: 14px;
  24237. margin: 4px 0 0 3px;
  24238. color: #afafaf;
  24239. }
  24240. .addPz {
  24241. background: #4b79ce;
  24242. width: 100px;
  24243. color: #fff;
  24244. font-size: 12px;
  24245. height: 30px;
  24246. margin: 0 auto;
  24247. text-align: center;
  24248. line-height: 30px;
  24249. border-radius: 10px;
  24250. cursor: pointer;
  24251. }
  24252. .addDialogCss {
  24253. position: fixed;
  24254. width: 600px;
  24255. height: 70%;
  24256. min-height: 450px;
  24257. box-shadow: 0px 0 8px 0px #555555;
  24258. border-radius: 15px;
  24259. z-index: 999;
  24260. left: 50%;
  24261. top: 50%;
  24262. margin: -18% 0 0 -300px;
  24263. }
  24264. .teacherPz {
  24265. display: flex;
  24266. flex-direction: row;
  24267. align-items: center;
  24268. flex-wrap: nowrap;
  24269. }
  24270. .teacherPzImg {
  24271. width: 30px;
  24272. height: 30px;
  24273. }
  24274. .teacherPzImg > img {
  24275. width: 100%;
  24276. height: 100%;
  24277. }
  24278. .addPzBox {
  24279. height: calc(100% - 40px);
  24280. background: #ededed;
  24281. border-bottom-left-radius: 15px;
  24282. border-bottom-right-radius: 15px;
  24283. }
  24284. .pzAudioClass {
  24285. margin: 15px 14px;
  24286. background: #fff;
  24287. height: 100%;
  24288. display: flex;
  24289. justify-content: center;
  24290. align-items: center;
  24291. }
  24292. .pzConText {
  24293. width: 95%;
  24294. height: 100%;
  24295. margin: 10px auto 0;
  24296. border: none;
  24297. background: #fff;
  24298. border-radius: 0px;
  24299. }
  24300. .pzConText >>> .text {
  24301. height: calc(100% - 82px);
  24302. }
  24303. .addTextCss {
  24304. background: #4b79ce;
  24305. width: 80px;
  24306. height: 30px;
  24307. text-align: center;
  24308. color: #fff;
  24309. line-height: 30px;
  24310. border-radius: 10px;
  24311. margin: 10px auto 0;
  24312. cursor: pointer;
  24313. }
  24314. .pzConText:focus-visible {
  24315. border: none !important;
  24316. }
  24317. .maxWidth {
  24318. width: 1000px;
  24319. }
  24320. .noPz {
  24321. width: 150px;
  24322. margin: 0 auto 20%;
  24323. }
  24324. .noPz > img {
  24325. width: 100%;
  24326. height: 100%;
  24327. }
  24328. .timeAndReply {
  24329. display: flex;
  24330. flex-direction: row;
  24331. flex-wrap: nowrap;
  24332. justify-content: space-between;
  24333. align-items: center;
  24334. font-size: 14px;
  24335. box-sizing: border-box;
  24336. padding: 0 10px 10px 0px;
  24337. }
  24338. .timeAndReply .time {
  24339. color: #bfbfbf;
  24340. padding: 0 0 0 10px;
  24341. box-sizing: border-box;
  24342. }
  24343. .timeAndReply > div:last-child {
  24344. cursor: pointer;
  24345. color: #777;
  24346. }
  24347. /* table 样式 */
  24348. .cont >>> table {
  24349. border-top: 1px solid #ccc;
  24350. border-left: 1px solid #ccc;
  24351. }
  24352. .cont >>> table td,
  24353. .cont >>> table th {
  24354. border-bottom: 1px solid #ccc;
  24355. border-right: 1px solid #ccc;
  24356. /* padding: 20px 5px; */
  24357. padding: 5px 10px;
  24358. max-width: 0px;
  24359. height: 30px;
  24360. vertical-align: baseline;
  24361. box-sizing: border-box;
  24362. }
  24363. .cont >>> table th {
  24364. border-bottom: 2px solid #ccc;
  24365. text-align: center;
  24366. }
  24367. /* blockquote 样式 */
  24368. .cont >>> blockquote {
  24369. display: block;
  24370. border-left: 8px solid #d0e5f2;
  24371. padding: 5px 10px;
  24372. margin: 10px 0;
  24373. line-height: 1.4;
  24374. font-size: 100%;
  24375. background-color: #f1f1f1;
  24376. }
  24377. /* code 样式 */
  24378. .cont >>> code {
  24379. display: inline-block;
  24380. /* *display: inline; */
  24381. zoom: 1;
  24382. background-color: #f1f1f1;
  24383. border-radius: 3px;
  24384. padding: 3px 5px;
  24385. margin: 0 3px;
  24386. }
  24387. .cont >>> pre code {
  24388. display: block;
  24389. }
  24390. /* ul ol 样式 */
  24391. .cont >>> ul,
  24392. ol {
  24393. margin: 10px 0 10px 20px;
  24394. }
  24395. .addPzCheck {
  24396. display: flex;
  24397. flex-direction: row;
  24398. flex-wrap: nowrap;
  24399. padding: 10px 15px 0;
  24400. }
  24401. .addPzCheck span {
  24402. cursor: pointer;
  24403. padding-bottom: 5px;
  24404. font-weight: bold;
  24405. }
  24406. .addPzCheck span + span {
  24407. margin-left: 10px;
  24408. }
  24409. .addPzCheck .isChooseActive {
  24410. color: #3e88f4;
  24411. border-bottom: 2px solid #2f80f3;
  24412. }
  24413. /* code 样式 */
  24414. .cont {
  24415. /* -webkit-user-modify: read-write; */
  24416. overflow-wrap: break-word;
  24417. -webkit-line-break: after-white-space;
  24418. word-break: break-word;
  24419. white-space: pre-line;
  24420. }
  24421. .scoreBox,
  24422. .scoreDetailBox {
  24423. display: flex;
  24424. align-items: center;
  24425. justify-content: flex-start;
  24426. margin-top: 20px;
  24427. font-size: 18px;
  24428. width: 100%;
  24429. }
  24430. .scoreBox .t,
  24431. .scoreDetailBox .t {
  24432. margin-right: 10px;
  24433. width: 100px;
  24434. text-align: right;
  24435. }
  24436. .scoreDetailBox {
  24437. align-items: flex-start;
  24438. }
  24439. .scoreDetailBox >>> .el-textarea {
  24440. width: calc(100% - 200px);
  24441. }
  24442. .scoreBox >>> .el-input {
  24443. width: 130px;
  24444. font-size: 38px;
  24445. }
  24446. .scoreBox >>> .el-input__inner {
  24447. height: 60px;
  24448. }
  24449. .answerScore {
  24450. position: absolute;
  24451. top: 10px;
  24452. right: 10px;
  24453. background: #0000008f;
  24454. border-radius: 5px;
  24455. padding: 3px 5px;
  24456. font-size: 14px;
  24457. color: #fff;
  24458. cursor: pointer;
  24459. }
  24460. .open_box .switch_box {
  24461. width: 100%;
  24462. margin: 0 auto;
  24463. display: flex;
  24464. justify-content: space-between;
  24465. }
  24466. .open_box .switch_box + .switch_box {
  24467. margin-top: 10px;
  24468. }
  24469. .deleteImg,.deleteImg1 {
  24470. width: 25px !important;
  24471. height: 25px !important;
  24472. cursor: pointer;
  24473. position: absolute;
  24474. top: 10px;
  24475. right: 10px;
  24476. }
  24477. .deleteImg2 {
  24478. width: 23px !important;
  24479. height: 23px !important;
  24480. top: 5px;
  24481. right: 5px;
  24482. }
  24483. .deleteImg1{
  24484. width: 23px !important;
  24485. height: 23px !important;
  24486. top: 5px !important;
  24487. right: 30px !important;
  24488. }
  24489. .rightW {
  24490. right: 40px;
  24491. }
  24492. .drawPBox {
  24493. display: flex;
  24494. flex-direction: column;
  24495. position: relative;
  24496. }
  24497. .drawPBox span {
  24498. font-size: 18px;
  24499. color: #606266;
  24500. padding-bottom: 10px;
  24501. margin: 10px 0;
  24502. border-bottom: 1px solid #eaeaea;
  24503. }
  24504. .drawPBox img {
  24505. width: 500px;
  24506. height: 300px;
  24507. object-fit: contain;
  24508. cursor: pointer;
  24509. margin: 0 auto;
  24510. }
  24511. .sentenBox {
  24512. background: #fff;
  24513. height: 450px;
  24514. overflow: auto;
  24515. background-image: url("../../assets/icon/conSentences/stuBg.png");
  24516. background-position: 102%;
  24517. background-repeat: no-repeat;
  24518. background-size: 60%;
  24519. }
  24520. .addSen {
  24521. background: #409efe;
  24522. width: 90px;
  24523. color: #fff;
  24524. height: 35px;
  24525. text-align: center;
  24526. line-height: 35px;
  24527. border-radius: 5px;
  24528. float: right;
  24529. margin: 10px 20px 0 0;
  24530. cursor: pointer;
  24531. }
  24532. .sentenTop {
  24533. display: flex;
  24534. flex-direction: row;
  24535. flex-wrap: nowrap;
  24536. align-items: center;
  24537. padding: 55px 0 0 20px;
  24538. box-sizing: border-box;
  24539. }
  24540. .sentenTop > div:nth-child(2) {
  24541. width: 300px;
  24542. margin: 0 15px;
  24543. }
  24544. .sentenTop > div:nth-child(3) {
  24545. background: #409efe;
  24546. color: #fff;
  24547. width: 65px;
  24548. height: 35px;
  24549. text-align: center;
  24550. line-height: 35px;
  24551. border-radius: 5px;
  24552. cursor: pointer;
  24553. }
  24554. .cardList,
  24555. .cardList1 {
  24556. padding: 10px 0 10px 0;
  24557. display: flex;
  24558. flex-direction: row;
  24559. flex-wrap: wrap;
  24560. align-items: center;
  24561. box-sizing: border-box;
  24562. border-bottom: 1px solid #f4f4f4;
  24563. width: 98%;
  24564. margin: 0 auto;
  24565. min-width: 60%;
  24566. max-width: 85%;
  24567. }
  24568. .cardList1 {
  24569. padding: 10px 0 10px 10px !important;
  24570. margin: 0 !important;
  24571. }
  24572. .cardBox {
  24573. display: flex;
  24574. flex-direction: row;
  24575. flex-wrap: wrap;
  24576. align-items: center;
  24577. align-content: center;
  24578. }
  24579. .cardBox > div {
  24580. margin-bottom: 10px;
  24581. }
  24582. .isCard,
  24583. .isChooseCard,
  24584. .noCard,
  24585. .isCard1 {
  24586. min-width: 130px;
  24587. width: auto;
  24588. height: 60px;
  24589. text-align: center;
  24590. line-height: 60px;
  24591. font-size: 20px;
  24592. cursor: pointer;
  24593. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  24594. background-size: cover;
  24595. transition: all 2s;
  24596. margin-right: 20px;
  24597. background-size: 100% 100%;
  24598. padding: 0 20px;
  24599. box-sizing: border-box;
  24600. }
  24601. .isCard > div,
  24602. .noCard > div,
  24603. .isCard1 > div {
  24604. white-space: nowrap;
  24605. overflow: hidden;
  24606. text-overflow: ellipsis;
  24607. width: 100%;
  24608. margin: 0 auto;
  24609. }
  24610. .noCard {
  24611. background-image: none;
  24612. }
  24613. .isCard1 {
  24614. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  24615. }
  24616. .isChooseCard {
  24617. background-image: none;
  24618. border: 1px dashed #b9b9b9;
  24619. border-radius: 10px;
  24620. }
  24621. .card {
  24622. width: 130px;
  24623. height: 60px;
  24624. }
  24625. .card > img {
  24626. width: 100%;
  24627. height: 100%;
  24628. }
  24629. .rightCardBox {
  24630. margin: 10px 0 0 10px;
  24631. }
  24632. .rightCardBox > div:nth-child(1) {
  24633. margin-bottom: 10px;
  24634. }
  24635. .cardCss {
  24636. display: flex;
  24637. flex-direction: column;
  24638. flex-wrap: nowrap;
  24639. align-items: center;
  24640. border-bottom: 3px solid #b4c3d3;
  24641. padding: 0 0 5px 0;
  24642. margin-right: 10px;
  24643. }
  24644. .cardCss > div:nth-child(2) {
  24645. background: #5b7b9d;
  24646. color: #fff;
  24647. width: 20px;
  24648. height: 20px;
  24649. border-radius: 50%;
  24650. text-align: center;
  24651. line-height: 20px;
  24652. }
  24653. .isWrong {
  24654. display: flex;
  24655. flex-direction: row;
  24656. flex-wrap: nowrap;
  24657. align-content: center;
  24658. align-items: center;
  24659. }
  24660. .answerRight {
  24661. width: 25%;
  24662. }
  24663. .isTj {
  24664. display: flex;
  24665. flex-direction: row;
  24666. flex-wrap: nowrap;
  24667. align-items: center;
  24668. }
  24669. .isTj > div:nth-child(2) {
  24670. color: #727070;
  24671. margin-left: 10px;
  24672. }
  24673. .isTjImg {
  24674. width: 30px;
  24675. height: 30px;
  24676. }
  24677. .isTjImg > img {
  24678. width: 100%;
  24679. height: 100%;
  24680. }
  24681. .cardAnswerBox {
  24682. font-size: 18px;
  24683. width: 97%;
  24684. border: 5px;
  24685. padding: 0;
  24686. border-radius: 5px;
  24687. margin: 10px auto;
  24688. word-break: break-word;
  24689. }
  24690. .w_name {
  24691. margin-bottom: 10px;
  24692. }
  24693. .w_name span {
  24694. font-size: 16px;
  24695. }
  24696. .w_teachert {
  24697. width: 50px !important;
  24698. position: absolute;
  24699. height: auto !important;
  24700. z-index: 10;
  24701. right: 25px;
  24702. top: -25px;
  24703. }
  24704. /* .group_workBox {
  24705. } */
  24706. .group_workBox + .group_workBox {
  24707. margin-top: 20px;
  24708. }
  24709. .group_box {
  24710. padding-bottom: 20px;
  24711. border-bottom: 2px solid #f0f0f0;
  24712. margin-top: 10px;
  24713. }
  24714. .group_title {
  24715. display: flex;
  24716. align-items: center;
  24717. justify-content: space-between;
  24718. width: 95%;
  24719. }
  24720. .group_name {
  24721. background-image: url(../../assets/icon/groupN.png);
  24722. width: 220px;
  24723. background-size: 100% 100%;
  24724. height: 67px;
  24725. padding: 0 20px 0 43px;
  24726. box-sizing: border-box;
  24727. line-height: 63px;
  24728. color: #fff;
  24729. overflow: hidden;
  24730. white-space: nowrap;
  24731. text-overflow: ellipsis;
  24732. }
  24733. .group_work {
  24734. width: 100%;
  24735. padding: 0 10px;
  24736. box-sizing: border-box;
  24737. display: flex;
  24738. flex-wrap: wrap;
  24739. }
  24740. .g_d_box {
  24741. display: flex;
  24742. flex-flow: wrap;
  24743. justify-content: space-around;
  24744. }
  24745. .g_d_box .isChair {
  24746. background-image: url(../../assets/avatar.png) !important;
  24747. }
  24748. .g_d_group {
  24749. width: 500px;
  24750. margin-bottom: 80px;
  24751. }
  24752. .g_d_group_chair {
  24753. display: flex;
  24754. align-items: center;
  24755. justify-content: center;
  24756. }
  24757. .g_d_group_chair > div + div {
  24758. margin-left: 30px;
  24759. }
  24760. .g_d_group_chair > div,
  24761. .g_d_group_chair2 > div {
  24762. display: flex;
  24763. flex-direction: column;
  24764. align-items: center;
  24765. }
  24766. .g_d_group_chair > div > span:nth-child(1),
  24767. .g_d_group_chair2 > div > span:nth-child(1) {
  24768. background-image: url(../../assets/icon/chair.png);
  24769. width: 50px;
  24770. height: 50px;
  24771. display: block;
  24772. background-size: 100% 100%;
  24773. }
  24774. .g_d_group_tableBox {
  24775. display: flex;
  24776. align-items: center;
  24777. justify-content: center;
  24778. }
  24779. .g_d_group_chair2 {
  24780. display: flex;
  24781. flex-direction: column;
  24782. align-items: center;
  24783. justify-content: center;
  24784. }
  24785. .g_d_group_chair2 > div + div {
  24786. margin-top: 10px;
  24787. }
  24788. .g_d_group_table {
  24789. background-image: url(../../assets/icon/groupBg.png);
  24790. width: 354px;
  24791. height: 196px;
  24792. background-size: 100% 100%;
  24793. display: flex;
  24794. align-items: center;
  24795. justify-content: center;
  24796. flex-direction: column;
  24797. color: #fff;
  24798. }
  24799. .g_d_group_table > div:nth-child(1) {
  24800. font-size: 24px;
  24801. margin-bottom: 5px;
  24802. }
  24803. .g_d_group_table > div:nth-child(2) div {
  24804. cursor: pointer;
  24805. background: #2e77bf;
  24806. padding: 4px 10px;
  24807. border-radius: 5px;
  24808. }
  24809. /* .groupBox {
  24810. } */
  24811. .groupContent + .groupContent {
  24812. margin-top: 30px;
  24813. }
  24814. .groupTitle {
  24815. font-size: 24px;
  24816. color: rgb(80, 80, 80);
  24817. margin-bottom: 20px;
  24818. }
  24819. .groupName {
  24820. display: flex;
  24821. align-items: center;
  24822. }
  24823. .groupn {
  24824. font-size: 15px;
  24825. margin-right: 10px;
  24826. }
  24827. .groupName + .groupName {
  24828. margin-top: 15px;
  24829. }
  24830. .groupBtn {
  24831. margin-left: 10px;
  24832. }
  24833. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  24834. text-align: left;
  24835. }
  24836. .g_d_btnBox {
  24837. display: flex;
  24838. justify-content: flex-end;
  24839. align-items: center;
  24840. margin-bottom: 20px;
  24841. }
  24842. .updateChair {
  24843. position: relative;
  24844. }
  24845. .updateChairBtn {
  24846. position: absolute;
  24847. width: 50px;
  24848. height: 50px;
  24849. overflow: hidden;
  24850. /* display: flex; */
  24851. align-items: center;
  24852. justify-content: center;
  24853. background: #00000087;
  24854. color: #fff;
  24855. border-radius: 50px;
  24856. display: none;
  24857. cursor: pointer;
  24858. }
  24859. .updateChair:hover .updateChairBtn {
  24860. display: flex;
  24861. }
  24862. .group_staic_box {
  24863. display: flex;
  24864. padding: 30px 40px 10px;
  24865. flex-wrap: wrap;
  24866. }
  24867. .group_staic {
  24868. /* width: 50%; */
  24869. margin-bottom: 20px;
  24870. display: flex;
  24871. align-items: center;
  24872. }
  24873. .group_staic span:nth-child(1) {
  24874. width: 150px;
  24875. text-align: right;
  24876. margin-right: 15px;
  24877. }
  24878. .group_staic span:nth-child(2) {
  24879. background: rgb(0 123 255);
  24880. color: #fff;
  24881. border-radius: 5px;
  24882. padding: 5px;
  24883. }
  24884. .codeFileBox {
  24885. height: 300px;
  24886. background: #fff;
  24887. display: flex;
  24888. align-items: center;
  24889. justify-content: center;
  24890. }
  24891. .codeFileBox img {
  24892. width: 200px;
  24893. margin: 0;
  24894. height: auto;
  24895. }
  24896. .codeFileBox div {
  24897. background: rgb(80, 142, 226);
  24898. color: #fff;
  24899. padding: 10px 20px;
  24900. border-radius: 25px;
  24901. cursor: pointer;
  24902. margin-left: 15px;
  24903. }
  24904. .radioBox {
  24905. display: flex;
  24906. flex-direction: column;
  24907. flex-wrap: nowrap;
  24908. align-items: flex-start;
  24909. }
  24910. .radioBox > div {
  24911. margin: 10px 0 0 10px;
  24912. }
  24913. /* .radioBox >>> .el-radio__input,
  24914. .radioBox >>> .el-checkbox__inner {
  24915. margin-left: 10px;
  24916. } */
  24917. .radioBox >>> .el-radio__label,
  24918. .radioBox >>> .el-checkbox__label {
  24919. display: flex;
  24920. align-items: center;
  24921. width: 100%;
  24922. }
  24923. .radioBox >>> .el-radio__label > span {
  24924. width: 100%;
  24925. display: -webkit-box;
  24926. overflow: hidden;
  24927. white-space: normal !important;
  24928. text-overflow: ellipsis;
  24929. word-wrap: break-word;
  24930. }
  24931. .inImg {
  24932. width: 100px;
  24933. cursor: pointer;
  24934. }
  24935. .inImg > img {
  24936. width: 100%;
  24937. height: 100%;
  24938. object-fit: cover;
  24939. }
  24940. .timuImgBox {
  24941. margin: 10px 0;
  24942. display: flex;
  24943. flex-direction: column;
  24944. flex-wrap: wrap;
  24945. align-items: flex-start;
  24946. }
  24947. .timuImg {
  24948. width: 150px;
  24949. margin: 5px 0;
  24950. cursor: pointer;
  24951. }
  24952. .timuImg > img {
  24953. width: 100%;
  24954. height: 100%;
  24955. object-fit: cover;
  24956. }
  24957. .worksTop {
  24958. display: flex;
  24959. flex-direction: row;
  24960. align-items: flex-end;
  24961. }
  24962. .worksTitle {
  24963. display: flex;
  24964. flex-direction: row;
  24965. flex-wrap: nowrap;
  24966. align-items: center;
  24967. }
  24968. .worksTitle::before,
  24969. .worksTop::before {
  24970. content: "";
  24971. display: block;
  24972. width: 3px;
  24973. height: 20px;
  24974. background: #0061ff;
  24975. border-radius: 3px;
  24976. margin: 0 5px 0 0;
  24977. }
  24978. .corOpen {
  24979. margin: 0 0 0 10px;
  24980. font-size: 14px;
  24981. cursor: pointer;
  24982. color: #505050;
  24983. }
  24984. .corOpen:hover {
  24985. color: #499eef;
  24986. }
  24987. .navCorOpenBox {
  24988. display: flex;
  24989. flex-direction: row;
  24990. align-items: center;
  24991. justify-content: space-between;
  24992. height: 55px;
  24993. background: #ffffff;
  24994. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  24995. border-radius: 8px 8px 0px 0px;
  24996. z-index: 9;
  24997. position: relative;
  24998. }
  24999. .navCorOpen {
  25000. padding-right: 15px;
  25001. cursor: pointer;
  25002. width: 45px;
  25003. display: flex;
  25004. }
  25005. .navCorOpen > img {
  25006. width: 100%;
  25007. height: 100%;
  25008. }
  25009. .mlImg {
  25010. width: 40px !important;
  25011. min-width: 40px;
  25012. cursor: pointer;
  25013. transform: rotate(180deg);
  25014. }
  25015. .mlImg > img {
  25016. width: 100%;
  25017. height: 100%;
  25018. }
  25019. .navLeftCss {
  25020. width: 100% !important;
  25021. left: 0 !important;
  25022. }
  25023. .isContentCss {
  25024. width: 100% !important;
  25025. }
  25026. .isAllWidth {
  25027. width: 100% !important;
  25028. }
  25029. .group_switch {
  25030. margin-right: 10px;
  25031. height: 30px;
  25032. display: flex;
  25033. align-items: center;
  25034. }
  25035. .group_switch > span {
  25036. margin-right: 5px;
  25037. }
  25038. .fileC_box {
  25039. padding-top: 15px;
  25040. }
  25041. .fileC_box > .fileC_title {
  25042. padding: 10px 5px 14px 10px;
  25043. border-top: 1px solid #cad1dc;
  25044. font-size: 14px;
  25045. font-weight: 400;
  25046. color: #cad1dc;
  25047. width: calc(100% - 20px);
  25048. margin: 0 auto;
  25049. box-sizing: border-box;
  25050. }
  25051. .pl_select_box {
  25052. height: 40px;
  25053. line-height: 40px;
  25054. width: 100%;
  25055. cursor: pointer;
  25056. padding: 0 20px;
  25057. box-sizing: border-box;
  25058. border-radius: 5px;
  25059. border: 1px solid #d6d6d6;
  25060. white-space: nowrap;
  25061. overflow: hidden;
  25062. text-overflow: ellipsis;
  25063. background: #fff;
  25064. text-align: left;
  25065. }
  25066. .newButton {
  25067. width: 102px;
  25068. height: 36px;
  25069. background: #e7ebf1;
  25070. border-radius: 4px;
  25071. color: #0e1e33;
  25072. font-weight: 400;
  25073. font-size: 14px;
  25074. border: none;
  25075. float: right;
  25076. margin-left: 10px;
  25077. }
  25078. .el-table >>> .even_row {
  25079. background-color: #f0f4fa;
  25080. }
  25081. .stageBoxCss,
  25082. .stageBoxIsCss {
  25083. display: flex;
  25084. flex-direction: row;
  25085. flex-wrap: nowrap;
  25086. align-items: center;
  25087. height: 50px;
  25088. border-bottom: 1px solid #e2f5fc;
  25089. cursor: pointer;
  25090. width: 100%;
  25091. }
  25092. .stageBoxIsCss {
  25093. background: #0061ff;
  25094. color: #fff;
  25095. border-radius: 8px;
  25096. }
  25097. .closeTri,
  25098. .closeTri1 {
  25099. min-width: 15px;
  25100. width: 15px;
  25101. height: 15px;
  25102. }
  25103. .closeTri1 {
  25104. padding-left: 10px;
  25105. cursor: pointer;
  25106. }
  25107. .closeTri > img,
  25108. .closeTri1 > img {
  25109. width: 100%;
  25110. height: 100%;
  25111. /* transition: all .5s; */
  25112. }
  25113. .noToolBlue {
  25114. min-width: 10px;
  25115. width: 10px;
  25116. height: 10px;
  25117. background: #0061ff;
  25118. border-radius: 50%;
  25119. margin-left: 13px;
  25120. }
  25121. .stageChild,
  25122. .toolChild {
  25123. height: 0;
  25124. overflow: hidden;
  25125. transition: all 0.5s;
  25126. }
  25127. /* .toolChild { */
  25128. /* margin: 0 0 0 17px;
  25129. padding: 0 0 0 20px;
  25130. border-left: 1px solid #d7d7d7; */
  25131. /* } */
  25132. .toolChild > div + div{
  25133. margin-top:5px;
  25134. }
  25135. .gjCss {
  25136. display: flex;
  25137. flex-direction: row;
  25138. flex-wrap: nowrap;
  25139. align-items: center;
  25140. padding: 10px 0 10px 40px;
  25141. box-sizing: border-box;
  25142. font-size: 14px;
  25143. cursor: pointer;
  25144. border-radius:5px;
  25145. }
  25146. .toolChild > div {
  25147. position: relative;
  25148. width: 100%;
  25149. }
  25150. /* .toolChild > div::before { */
  25151. /* content: "";
  25152. width: 15px;
  25153. height: 1px;
  25154. background: #cad1dc;
  25155. position: absolute;
  25156. top: 24px;
  25157. left: -20px;
  25158. display: block; */
  25159. /* } */
  25160. .isGjCss {
  25161. /* color: #0061ff; */
  25162. color:#fff;
  25163. background: rgb(55, 129, 252);
  25164. /* background-color: #e0eafb !important;
  25165. color: #0061ff !important; */
  25166. }
  25167. .navItem {
  25168. background: #ffffff;
  25169. border-radius: 4px;
  25170. width: 100%;
  25171. margin: 10px auto;
  25172. position: relative;
  25173. height: 40px;
  25174. display: flex;
  25175. flex-direction: row;
  25176. flex-wrap: nowrap;
  25177. align-items: center;
  25178. }
  25179. .navItemList {
  25180. display: flex;
  25181. flex-direction: row;
  25182. flex-wrap: nowrap;
  25183. align-items: center;
  25184. padding: 0 13px;
  25185. cursor: pointer;
  25186. width: calc(100% - 60px);
  25187. height: 100%;
  25188. }
  25189. .navItemList > div:first-child {
  25190. min-width: 60px;
  25191. }
  25192. .navItemList > div:last-child {
  25193. width: calc(100% - 80px);
  25194. white-space: nowrap;
  25195. overflow: hidden;
  25196. text-overflow: ellipsis;
  25197. word-break: break-word;
  25198. }
  25199. /* .isItemList > div {
  25200. color: #fff !important;
  25201. } */
  25202. .tool_work_box {
  25203. width: 100%;
  25204. padding: 0 37px 0;
  25205. box-sizing: border-box;
  25206. }
  25207. .tool_box {
  25208. width: 100%;
  25209. padding: 0 0 0 20px;
  25210. }
  25211. .tool_type_box {
  25212. display: flex;
  25213. flex-direction: row;
  25214. align-items: baseline;
  25215. flex-wrap: nowrap;
  25216. justify-content: flex-start;
  25217. position: relative;
  25218. }
  25219. .toolSort {
  25220. display: flex;
  25221. flex-direction: row;
  25222. flex-wrap: wrap;
  25223. justify-content: flex-start;
  25224. align-items: flex-start;
  25225. padding: 0 0 15px 0;
  25226. }
  25227. .toolSort > div {
  25228. margin: 0 10px 0 0;
  25229. width: 135px;
  25230. box-sizing: border-box;
  25231. border: 2px solid transparent;
  25232. }
  25233. .tools {
  25234. width: 100%;
  25235. display: flex;
  25236. flex-direction: column;
  25237. flex-wrap: nowrap;
  25238. align-items: flex-start;
  25239. }
  25240. .whiteBIcon {
  25241. width: fit-content;
  25242. cursor: pointer;
  25243. display: flex;
  25244. flex-direction: column;
  25245. flex-wrap: nowrap;
  25246. align-items: center;
  25247. font-size: 14px;
  25248. }
  25249. .tool:hover {
  25250. border: 2px solid #a5c7ff;
  25251. border-radius: 5px;
  25252. }
  25253. .whiteBIcon > img {
  25254. width: 65px;
  25255. height: 100%;
  25256. }
  25257. .whiteBIcon > img {
  25258. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  25259. border-radius: 15px;
  25260. }
  25261. .check {
  25262. /* width: 20px;
  25263. height: 20px; */
  25264. cursor: pointer;
  25265. margin: 10px 0;
  25266. position: absolute;
  25267. right: 2px;
  25268. top: -5px;
  25269. }
  25270. .noChoose,
  25271. .isChoose {
  25272. width: 15px;
  25273. height: 15px;
  25274. border-radius: 50%;
  25275. border: 1px solid #adadad;
  25276. }
  25277. .isChoose {
  25278. border: 4px solid #0363ff !important;
  25279. width: 10px;
  25280. height: 10px;
  25281. }
  25282. .isToolChoose {
  25283. border: 2px solid #5394ff !important;
  25284. border-radius: 5px;
  25285. box-shadow: 0 0 6px 0px #5394ff;
  25286. }
  25287. .checkDiv {
  25288. display: flex;
  25289. align-items: center;
  25290. }
  25291. .checkDiv span {
  25292. margin-left: 5px;
  25293. color: #858585;
  25294. }
  25295. .check img {
  25296. width: 20px;
  25297. height: 20px;
  25298. }
  25299. .lockTaskIcon {
  25300. width: 20px;
  25301. height: 20px;
  25302. position: absolute;
  25303. right: 10px;
  25304. top: 10px;
  25305. }
  25306. .lockTaskIcon > img {
  25307. width: 100%;
  25308. height: 100%;
  25309. }
  25310. .pick_box {
  25311. display: flex;
  25312. align-items: flex-start;
  25313. flex-wrap: wrap;
  25314. }
  25315. .selectBox {
  25316. width: 110px;
  25317. margin-left: 10px;
  25318. margin: 0 10px 0 auto;
  25319. }
  25320. .selectBox >>> .el-input__inner {
  25321. height: 30px;
  25322. line-height: 30px;
  25323. }
  25324. .selectBox >>> .el-input__icon {
  25325. line-height: 30px;
  25326. }
  25327. .sentenceTitle {
  25328. display: flex;
  25329. flex-direction: row;
  25330. flex-wrap: nowrap;
  25331. align-items: center;
  25332. }
  25333. .sentenceTitle::before {
  25334. content: attr(index);
  25335. background: #3681fc;
  25336. border-radius: 50%;
  25337. color: #fff;
  25338. width: 25px;
  25339. height: 25px;
  25340. min-width: 25px;
  25341. min-height: 25px;
  25342. text-align: center;
  25343. line-height: 25px;
  25344. margin-right: 5px;
  25345. }
  25346. .hfBox {
  25347. padding: 10px;
  25348. box-sizing: border-box;
  25349. }
  25350. .whoReplyWho {
  25351. display: flex;
  25352. flex-direction: row;
  25353. flex-wrap: nowrap;
  25354. align-items: baseline;
  25355. justify-content: flex-start;
  25356. }
  25357. .hfBottom {
  25358. display: flex;
  25359. flex-direction: row;
  25360. flex-wrap: nowrap;
  25361. align-items: center;
  25362. justify-content: space-between;
  25363. font-size: 14px;
  25364. }
  25365. .deleteHfItem {
  25366. cursor: pointer;
  25367. width: 20px;
  25368. height: 20px;
  25369. }
  25370. .deleteHfItem > img {
  25371. width: 100%;
  25372. height: 100%;
  25373. }
  25374. .whoReplyWho > .hfImg {
  25375. width: 12px;
  25376. height: 12px;
  25377. margin: 0 5px;
  25378. }
  25379. .whoReplyWho > .hfImg > img {
  25380. width: 100%;
  25381. height: 100%;
  25382. }
  25383. .hfContent {
  25384. padding-top: 10px;
  25385. box-sizing: border-box;
  25386. display: -webkit-box;
  25387. overflow: hidden;
  25388. white-space: normal !important;
  25389. text-overflow: ellipsis;
  25390. word-wrap: break-word;
  25391. -webkit-box-orient: vertical;
  25392. }
  25393. .hfTime {
  25394. text-align: left;
  25395. box-sizing: border-box;
  25396. padding: 10px 0 10px 0px;
  25397. color: #bfbfbf;
  25398. font-size: 14px;
  25399. }
  25400. .btnAllNT {
  25401. position: fixed;
  25402. bottom: 100px;
  25403. right: 40px;
  25404. z-index: 999;
  25405. display: flex;
  25406. flex-direction: row;
  25407. }
  25408. .btnAllNT > img {
  25409. cursor: pointer;
  25410. width: 80px;
  25411. }
  25412. .toolMask {
  25413. position: fixed;
  25414. width: 100%;
  25415. height: 100%;
  25416. background: #3f3c3c;
  25417. opacity: 0.5;
  25418. top: 0;
  25419. left: 0;
  25420. z-index: 999;
  25421. }
  25422. .addToolCss {
  25423. position: fixed;
  25424. z-index: 999;
  25425. background: #fff;
  25426. right: 5%;
  25427. bottom: 18%;
  25428. min-width: 1035px;
  25429. min-height: 300px;
  25430. border-radius: 10px;
  25431. box-shadow: 0 0 8px 1px #b2b2b2;
  25432. }
  25433. .toolTop {
  25434. display: flex;
  25435. flex-direction: row;
  25436. flex-wrap: nowrap;
  25437. justify-content: space-between;
  25438. align-items: center;
  25439. padding: 20px;
  25440. }
  25441. .toolTop > div:nth-child(2) {
  25442. width: 15px;
  25443. height: 15px;
  25444. padding-right: 10px;
  25445. cursor: pointer;
  25446. }
  25447. .toolTop > div:nth-child(2) > img {
  25448. width: 100%;
  25449. height: 100%;
  25450. }
  25451. .fullStyle>>>.el-dialog__body {
  25452. height: calc(100% - 125px) !important;
  25453. box-sizing: border-box;
  25454. padding: 30px 0 !important;
  25455. background: #fff !important;
  25456. }
  25457. .fullStyle>>>.el-dialog {
  25458. width: 100% !important;
  25459. max-width: 100% !important;
  25460. height: 100% !important;
  25461. margin: 0 !important;
  25462. }
  25463. .fullStyle {
  25464. width: 100% !important;
  25465. max-width: 100% !important;
  25466. height: 100% !important;
  25467. margin: 0 auto !important;
  25468. }
  25469. .fullStyle>>>.el-dialog__footer{
  25470. background: #fff !important;
  25471. }
  25472. .engUpBox {
  25473. width: 100%;
  25474. height: 100%;
  25475. }
  25476. .engTitle,
  25477. .engText {
  25478. display: flex;
  25479. flex-direction: row;
  25480. flex-wrap: nowrap;
  25481. align-items: flex-start;
  25482. padding: 0 20px 20px 20px;
  25483. box-sizing: border-box;
  25484. }
  25485. .engTitle > .div:first-child,
  25486. .engText > div:first-child {
  25487. min-width: 75px;
  25488. }
  25489. .correctBox{
  25490. width: 100%;
  25491. display: flex;
  25492. flex-direction: row;
  25493. flex-wrap: nowrap;
  25494. align-items: flex-start;
  25495. }
  25496. .oldBox{
  25497. width: 50%;
  25498. height: 100%;
  25499. display: flex;
  25500. flex-direction: column;
  25501. flex-wrap: nowrap;
  25502. align-items: center;
  25503. border-top: 1px solid #d9d9d9;
  25504. border-left: 1px solid #d9d9d9;
  25505. border-right: 1px solid #d9d9d9;
  25506. }
  25507. .oldBox>div:first-child{
  25508. width: 100%;
  25509. text-align: center;
  25510. background: #d9d9d9;
  25511. height: 35px;
  25512. line-height: 35px;
  25513. font-weight: bold;
  25514. }
  25515. .oldText{
  25516. width: 100%;
  25517. height: calc(100% - 35px);
  25518. overflow: auto;
  25519. margin: 10px 0;
  25520. display: flex;
  25521. flex-direction: column;
  25522. flex-wrap: nowrap;
  25523. align-content: center;
  25524. align-items: center;
  25525. }
  25526. .detailBox{
  25527. width: 50%;
  25528. padding: 10px;
  25529. background: #f6f6f6;
  25530. border-radius: 5px;
  25531. }
  25532. .oldDetail,.oldDetail1{
  25533. padding-bottom: 30px;
  25534. }
  25535. .oldImg{
  25536. width:30px;
  25537. height: 30px;
  25538. }
  25539. .oldImg>img{
  25540. width: 100%;
  25541. height: 100%;
  25542. }
  25543. .allName{
  25544. min-width: 200px;
  25545. white-space: nowrap;
  25546. overflow: hidden;
  25547. text-overflow: ellipsis;
  25548. word-break: break-word;
  25549. cursor: pointer;
  25550. text-align: center;
  25551. border: 1px solid #bcc2cc;
  25552. box-sizing: border-box;
  25553. }
  25554. .engUpTop{
  25555. max-height: 300px;
  25556. overflow: auto;
  25557. }
  25558. .isUpdateToolDetailClass{
  25559. padding: 0 !important;
  25560. }
  25561. .isUpdateToolDetailClass textarea{
  25562. padding:12px;
  25563. font-size: 16px;
  25564. min-height:100%;
  25565. width: 100%;
  25566. box-sizing:border-box;
  25567. outline: none;
  25568. border:none;
  25569. line-height: 30px;
  25570. resize: none;
  25571. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  25572. color: #838383;
  25573. }
  25574. .show_taskD {
  25575. min-width: fit-content;
  25576. margin-left: 10px;
  25577. display: flex;
  25578. align-items: center;
  25579. font-size: 14px;
  25580. cursor: pointer;
  25581. color: #717c8d;
  25582. }
  25583. .show_taskD > img {
  25584. width: 15px;
  25585. margin-right: 5px;
  25586. transition: 0.2s all;
  25587. transform: rotate(-90deg);
  25588. }
  25589. .show_taskD.show > img {
  25590. transform: rotate(0deg);
  25591. }
  25592. .dialog_diyCopy >>> .el-dialog__header {
  25593. display: none !important;
  25594. }
  25595. .dialog_diyCopy >>> .el-dialog__body {
  25596. padding: 0 !important;
  25597. height: 100% !important;
  25598. }
  25599. .confirmOpenDigCss > div{
  25600. font-size: 14px;
  25601. color: rgba(0, 0, 0, 0.6);
  25602. }
  25603. .confirmOpenDigCss >>> .el-dialog{
  25604. border-radius: 6px;
  25605. }
  25606. .confirmOpenDigCss >>> .el-dialog__body{
  25607. padding: 25px !important;
  25608. }
  25609. .confirmOpenDigCss > span{
  25610. font-size: 16px;
  25611. font-weight: 600;
  25612. color: rgba(0, 0, 0, 0.8);
  25613. }
  25614. .correctCss{
  25615. position: absolute;
  25616. bottom: -70px;
  25617. background: #409eff;
  25618. color: #fff;
  25619. }
  25620. div::-webkit-scrollbar {
  25621. width: 10px;
  25622. height: 6px;
  25623. }
  25624. .Ovh{
  25625. margin: 5px 0;
  25626. width: 4em;
  25627. -webkit-line-clamp: 2;
  25628. display: -webkit-box;
  25629. -webkit-box-orient: vertical;
  25630. overflow: hidden;
  25631. text-overflow: ellipsis;
  25632. }
  25633. .renderedFor >>> .katex {
  25634. font-size: 18px;
  25635. width: 100%;
  25636. white-space: normal;
  25637. font-family: '黑体' !important;
  25638. }
  25639. .renderedFor >>> .katex .base{
  25640. display: inline !important;
  25641. display: contents !important;
  25642. }
  25643. .renderedFor >>> .katex .base .cjk_fallback{
  25644. white-space: normal !important;
  25645. display: inline !important;
  25646. }
  25647. </style>